- Replace dual Product interfaces with unified domain model in types/market.ts - Rename API response type to ProductApiResponse for clarity - Add mapApiResponseToProduct() function for clean API-to-domain conversion - Update MerchantStore.vue to use mapping function instead of manual property assignment - Fix CreateProductDialog.vue to properly handle type conversions for API calls - Resolve TypeScript readonly type conflicts using type assertions instead of array spreading - Add missing reactive references (searchQuery) and remove unused imports - Prevent Vue 3 recursion issues by maintaining original reactive object references This eliminates confusion between API response structure and application domain model, following single source of truth principle for better maintainability and type safety. |
||
|---|---|---|
| .. | ||
| components | ||
| composables | ||
| services | ||
| stores | ||
| types | ||
| views | ||
| index.ts | ||