@shophost/rest-api 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151,6 +151,7 @@ export declare const buildCartRouter: (prisma: PrismaClientType) => import("@ts-
151
151
  title?: string | undefined;
152
152
  description?: string | null | undefined;
153
153
  }>, "many">>;
154
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
154
155
  } & {
155
156
  title: import("zod").ZodDefault<import("zod").ZodString>;
156
157
  description: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -254,6 +255,7 @@ export declare const buildCartRouter: (prisma: PrismaClientType) => import("@ts-
254
255
  url: string;
255
256
  }[] | undefined;
256
257
  manufacturerId?: string | null | undefined;
258
+ metadata?: Record<string, string> | null | undefined;
257
259
  }, {
258
260
  id: string;
259
261
  createdAt: Date;
@@ -289,6 +291,7 @@ export declare const buildCartRouter: (prisma: PrismaClientType) => import("@ts-
289
291
  id: string;
290
292
  }[] | undefined;
291
293
  manufacturerId?: string | null | undefined;
294
+ metadata?: Record<string, string> | null | undefined;
292
295
  }>>;
293
296
  invalidProductIds: import("zod").ZodArray<import("zod").ZodString, "many">;
294
297
  shipping: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -332,6 +335,7 @@ export declare const buildCartRouter: (prisma: PrismaClientType) => import("@ts-
332
335
  url: string;
333
336
  }[] | undefined;
334
337
  manufacturerId?: string | null | undefined;
338
+ metadata?: Record<string, string> | null | undefined;
335
339
  }>;
336
340
  invalidProductIds: string[];
337
341
  shipping?: number | undefined;
@@ -373,6 +377,7 @@ export declare const buildCartRouter: (prisma: PrismaClientType) => import("@ts-
373
377
  id: string;
374
378
  }[] | undefined;
375
379
  manufacturerId?: string | null | undefined;
380
+ metadata?: Record<string, string> | null | undefined;
376
381
  }>;
377
382
  invalidProductIds: string[];
378
383
  shipping?: number | undefined;
@@ -244,6 +244,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
244
244
  title?: string | undefined;
245
245
  description?: string | null | undefined;
246
246
  }>, "many">>;
247
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
247
248
  }, "strip", import("zod").ZodTypeAny, {
248
249
  id: string;
249
250
  createdAt: Date;
@@ -300,6 +301,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
300
301
  }[] | undefined;
301
302
  }[] | undefined;
302
303
  manufacturerId?: string | null | undefined;
304
+ metadata?: Record<string, string> | null | undefined;
303
305
  }, {
304
306
  id: string;
305
307
  createdAt: Date;
@@ -356,6 +358,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
356
358
  }[] | undefined;
357
359
  }[] | undefined;
358
360
  manufacturerId?: string | null | undefined;
361
+ metadata?: Record<string, string> | null | undefined;
359
362
  }>, import("zod").ZodObject<Omit<{
360
363
  id: import("zod").ZodString;
361
364
  slug: import("zod").ZodOptional<import("zod").ZodString>;
@@ -398,6 +401,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
398
401
  title?: string | undefined;
399
402
  description?: string | null | undefined;
400
403
  }>, "many">>;
404
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
401
405
  } & {
402
406
  title: import("zod").ZodDefault<import("zod").ZodString>;
403
407
  description: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -501,6 +505,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
501
505
  url: string;
502
506
  }[] | undefined;
503
507
  manufacturerId?: string | null | undefined;
508
+ metadata?: Record<string, string> | null | undefined;
504
509
  }, {
505
510
  id: string;
506
511
  createdAt: Date;
@@ -536,6 +541,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
536
541
  id: string;
537
542
  }[] | undefined;
538
543
  manufacturerId?: string | null | undefined;
544
+ metadata?: Record<string, string> | null | undefined;
539
545
  }>]>, "many">;
540
546
  }, "strip", import("zod").ZodTypeAny, {
541
547
  meta: {
@@ -603,6 +609,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
603
609
  }[] | undefined;
604
610
  }[] | undefined;
605
611
  manufacturerId?: string | null | undefined;
612
+ metadata?: Record<string, string> | null | undefined;
606
613
  } | {
607
614
  id: string;
608
615
  createdAt: Date;
@@ -638,6 +645,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
638
645
  url: string;
639
646
  }[] | undefined;
640
647
  manufacturerId?: string | null | undefined;
648
+ metadata?: Record<string, string> | null | undefined;
641
649
  })[];
642
650
  }, {
643
651
  meta: {
@@ -705,6 +713,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
705
713
  }[] | undefined;
706
714
  }[] | undefined;
707
715
  manufacturerId?: string | null | undefined;
716
+ metadata?: Record<string, string> | null | undefined;
708
717
  } | {
709
718
  id: string;
710
719
  createdAt: Date;
@@ -740,6 +749,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
740
749
  id: string;
741
750
  }[] | undefined;
742
751
  manufacturerId?: string | null | undefined;
752
+ metadata?: Record<string, string> | null | undefined;
743
753
  })[];
744
754
  }>;
745
755
  400: import("zod").ZodObject<{
@@ -974,6 +984,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
974
984
  title?: string | undefined;
975
985
  description?: string | null | undefined;
976
986
  }>, "many">>;
987
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
977
988
  }, "strip", import("zod").ZodTypeAny, {
978
989
  id: string;
979
990
  createdAt: Date;
@@ -1030,6 +1041,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1030
1041
  }[] | undefined;
1031
1042
  }[] | undefined;
1032
1043
  manufacturerId?: string | null | undefined;
1044
+ metadata?: Record<string, string> | null | undefined;
1033
1045
  }, {
1034
1046
  id: string;
1035
1047
  createdAt: Date;
@@ -1086,6 +1098,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1086
1098
  }[] | undefined;
1087
1099
  }[] | undefined;
1088
1100
  manufacturerId?: string | null | undefined;
1101
+ metadata?: Record<string, string> | null | undefined;
1089
1102
  }>, import("zod").ZodObject<Omit<{
1090
1103
  id: import("zod").ZodString;
1091
1104
  slug: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1128,6 +1141,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1128
1141
  title?: string | undefined;
1129
1142
  description?: string | null | undefined;
1130
1143
  }>, "many">>;
1144
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
1131
1145
  } & {
1132
1146
  title: import("zod").ZodDefault<import("zod").ZodString>;
1133
1147
  description: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1231,6 +1245,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1231
1245
  url: string;
1232
1246
  }[] | undefined;
1233
1247
  manufacturerId?: string | null | undefined;
1248
+ metadata?: Record<string, string> | null | undefined;
1234
1249
  }, {
1235
1250
  id: string;
1236
1251
  createdAt: Date;
@@ -1266,6 +1281,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1266
1281
  id: string;
1267
1282
  }[] | undefined;
1268
1283
  manufacturerId?: string | null | undefined;
1284
+ metadata?: Record<string, string> | null | undefined;
1269
1285
  }>]>;
1270
1286
  401: import("zod").ZodObject<{
1271
1287
  status: import("zod").ZodNumber;
@@ -1343,6 +1359,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1343
1359
  url: string;
1344
1360
  }>, "many">>>;
1345
1361
  manufacturerId: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
1362
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>>;
1346
1363
  defaultLocale: import("zod").ZodOptional<import("zod").ZodString>;
1347
1364
  modifierGroups: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodObject<{
1348
1365
  selectMin: import("zod").ZodNumber;
@@ -1524,6 +1541,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1524
1541
  }[] | undefined;
1525
1542
  categories?: string[] | undefined;
1526
1543
  manufacturerId?: string | null | undefined;
1544
+ metadata?: Record<string, string> | null | undefined;
1527
1545
  }, {
1528
1546
  translations?: {
1529
1547
  locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
@@ -1560,6 +1578,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1560
1578
  }[] | undefined;
1561
1579
  categories?: string[] | undefined;
1562
1580
  manufacturerId?: string | null | undefined;
1581
+ metadata?: Record<string, string> | null | undefined;
1563
1582
  }>, {
1564
1583
  translations?: {
1565
1584
  locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
@@ -1596,6 +1615,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1596
1615
  }[] | undefined;
1597
1616
  categories?: string[] | undefined;
1598
1617
  manufacturerId?: string | null | undefined;
1618
+ metadata?: Record<string, string> | null | undefined;
1599
1619
  }, {
1600
1620
  translations?: {
1601
1621
  locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
@@ -1632,6 +1652,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1632
1652
  }[] | undefined;
1633
1653
  categories?: string[] | undefined;
1634
1654
  manufacturerId?: string | null | undefined;
1655
+ metadata?: Record<string, string> | null | undefined;
1635
1656
  }>;
1636
1657
  path: "/:organizationId/products/:id";
1637
1658
  headers: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -1821,6 +1842,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1821
1842
  title?: string | undefined;
1822
1843
  description?: string | null | undefined;
1823
1844
  }>, "many">>;
1845
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
1824
1846
  }, "strip", import("zod").ZodTypeAny, {
1825
1847
  id: string;
1826
1848
  createdAt: Date;
@@ -1877,6 +1899,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1877
1899
  }[] | undefined;
1878
1900
  }[] | undefined;
1879
1901
  manufacturerId?: string | null | undefined;
1902
+ metadata?: Record<string, string> | null | undefined;
1880
1903
  }, {
1881
1904
  id: string;
1882
1905
  createdAt: Date;
@@ -1933,6 +1956,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
1933
1956
  }[] | undefined;
1934
1957
  }[] | undefined;
1935
1958
  manufacturerId?: string | null | undefined;
1959
+ metadata?: Record<string, string> | null | undefined;
1936
1960
  }>;
1937
1961
  400: import("zod").ZodObject<{
1938
1962
  status: import("zod").ZodNumber;
@@ -2153,7 +2177,8 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
2153
2177
  title?: string | undefined;
2154
2178
  description?: string | null | undefined;
2155
2179
  }>, "many">>;
2156
- }, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId"> & {
2180
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
2181
+ }, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId" | "metadata"> & {
2157
2182
  defaultLocale: import("zod").ZodString;
2158
2183
  modifierGroups: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodObject<{
2159
2184
  selectMin: import("zod").ZodNumber;
@@ -2335,6 +2360,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
2335
2360
  }[] | undefined;
2336
2361
  categories?: string[] | undefined;
2337
2362
  manufacturerId?: string | null | undefined;
2363
+ metadata?: Record<string, string> | null | undefined;
2338
2364
  }, {
2339
2365
  defaultLocale: string;
2340
2366
  basePrice: number;
@@ -2371,6 +2397,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
2371
2397
  }[] | undefined;
2372
2398
  categories?: string[] | undefined;
2373
2399
  manufacturerId?: string | null | undefined;
2400
+ metadata?: Record<string, string> | null | undefined;
2374
2401
  }>, {
2375
2402
  defaultLocale: string;
2376
2403
  basePrice: number;
@@ -2407,6 +2434,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
2407
2434
  }[] | undefined;
2408
2435
  categories?: string[] | undefined;
2409
2436
  manufacturerId?: string | null | undefined;
2437
+ metadata?: Record<string, string> | null | undefined;
2410
2438
  }, {
2411
2439
  defaultLocale: string;
2412
2440
  basePrice: number;
@@ -2443,6 +2471,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
2443
2471
  }[] | undefined;
2444
2472
  categories?: string[] | undefined;
2445
2473
  manufacturerId?: string | null | undefined;
2474
+ metadata?: Record<string, string> | null | undefined;
2446
2475
  }>;
2447
2476
  path: "/:organizationId/products";
2448
2477
  headers: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -2632,6 +2661,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
2632
2661
  title?: string | undefined;
2633
2662
  description?: string | null | undefined;
2634
2663
  }>, "many">>;
2664
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
2635
2665
  }, "strip", import("zod").ZodTypeAny, {
2636
2666
  id: string;
2637
2667
  createdAt: Date;
@@ -2688,6 +2718,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
2688
2718
  }[] | undefined;
2689
2719
  }[] | undefined;
2690
2720
  manufacturerId?: string | null | undefined;
2721
+ metadata?: Record<string, string> | null | undefined;
2691
2722
  }, {
2692
2723
  id: string;
2693
2724
  createdAt: Date;
@@ -2744,6 +2775,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
2744
2775
  }[] | undefined;
2745
2776
  }[] | undefined;
2746
2777
  manufacturerId?: string | null | undefined;
2778
+ metadata?: Record<string, string> | null | undefined;
2747
2779
  }>;
2748
2780
  400: import("zod").ZodObject<{
2749
2781
  status: import("zod").ZodNumber;
@@ -2983,6 +3015,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
2983
3015
  title?: string | undefined;
2984
3016
  description?: string | null | undefined;
2985
3017
  }>, "many">>;
3018
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
2986
3019
  }, "strip", import("zod").ZodTypeAny, {
2987
3020
  id: string;
2988
3021
  createdAt: Date;
@@ -3039,6 +3072,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
3039
3072
  }[] | undefined;
3040
3073
  }[] | undefined;
3041
3074
  manufacturerId?: string | null | undefined;
3075
+ metadata?: Record<string, string> | null | undefined;
3042
3076
  }, {
3043
3077
  id: string;
3044
3078
  createdAt: Date;
@@ -3095,6 +3129,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
3095
3129
  }[] | undefined;
3096
3130
  }[] | undefined;
3097
3131
  manufacturerId?: string | null | undefined;
3132
+ metadata?: Record<string, string> | null | undefined;
3098
3133
  }>;
3099
3134
  400: import("zod").ZodObject<{
3100
3135
  status: import("zod").ZodNumber;
@@ -3435,6 +3470,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
3435
3470
  title?: string | undefined;
3436
3471
  description?: string | null | undefined;
3437
3472
  }>, "many">>;
3473
+ metadata: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
3438
3474
  }, "strip", import("zod").ZodTypeAny, {
3439
3475
  id: string;
3440
3476
  createdAt: Date;
@@ -3491,6 +3527,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
3491
3527
  }[] | undefined;
3492
3528
  }[] | undefined;
3493
3529
  manufacturerId?: string | null | undefined;
3530
+ metadata?: Record<string, string> | null | undefined;
3494
3531
  }, {
3495
3532
  id: string;
3496
3533
  createdAt: Date;
@@ -3547,6 +3584,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
3547
3584
  }[] | undefined;
3548
3585
  }[] | undefined;
3549
3586
  manufacturerId?: string | null | undefined;
3587
+ metadata?: Record<string, string> | null | undefined;
3550
3588
  }>, "many">;
3551
3589
  }, "strip", import("zod").ZodTypeAny, {
3552
3590
  meta: {
@@ -3614,6 +3652,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
3614
3652
  }[] | undefined;
3615
3653
  }[] | undefined;
3616
3654
  manufacturerId?: string | null | undefined;
3655
+ metadata?: Record<string, string> | null | undefined;
3617
3656
  }[];
3618
3657
  }, {
3619
3658
  meta: {
@@ -3681,6 +3720,7 @@ export declare const buildProductRouter: (prisma: PrismaClientType) => import("@
3681
3720
  }[] | undefined;
3682
3721
  }[] | undefined;
3683
3722
  manufacturerId?: string | null | undefined;
3723
+ metadata?: Record<string, string> | null | undefined;
3684
3724
  }[];
3685
3725
  }>;
3686
3726
  400: import("zod").ZodObject<{
@@ -41,6 +41,7 @@ export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodOb
41
41
  title?: string | undefined;
42
42
  description?: string | null | undefined;
43
43
  }>, "many">>;
44
+ metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
44
45
  } & {
45
46
  title: z.ZodDefault<z.ZodString>;
46
47
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -144,6 +145,7 @@ export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodOb
144
145
  url: string;
145
146
  }[] | undefined;
146
147
  manufacturerId?: string | null | undefined;
148
+ metadata?: Record<string, string> | null | undefined;
147
149
  }, {
148
150
  id: string;
149
151
  createdAt: Date;
@@ -179,6 +181,7 @@ export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodOb
179
181
  id: string;
180
182
  }[] | undefined;
181
183
  manufacturerId?: string | null | undefined;
184
+ metadata?: Record<string, string> | null | undefined;
182
185
  }>>;
183
186
  export declare const CartItemSchema: z.ZodObject<{
184
187
  productId: z.ZodString;
@@ -175,6 +175,7 @@ export declare const ProductSchema: z.ZodObject<{
175
175
  title?: string | undefined;
176
176
  description?: string | null | undefined;
177
177
  }>, "many">>;
178
+ metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
178
179
  }, "strip", z.ZodTypeAny, {
179
180
  id: string;
180
181
  createdAt: Date;
@@ -231,6 +232,7 @@ export declare const ProductSchema: z.ZodObject<{
231
232
  }[] | undefined;
232
233
  }[] | undefined;
233
234
  manufacturerId?: string | null | undefined;
235
+ metadata?: Record<string, string> | null | undefined;
234
236
  }, {
235
237
  id: string;
236
238
  createdAt: Date;
@@ -287,6 +289,7 @@ export declare const ProductSchema: z.ZodObject<{
287
289
  }[] | undefined;
288
290
  }[] | undefined;
289
291
  manufacturerId?: string | null | undefined;
292
+ metadata?: Record<string, string> | null | undefined;
290
293
  }>;
291
294
  export declare const LocalizedProductSchema: z.ZodObject<Omit<{
292
295
  id: z.ZodString;
@@ -330,6 +333,7 @@ export declare const LocalizedProductSchema: z.ZodObject<Omit<{
330
333
  title?: string | undefined;
331
334
  description?: string | null | undefined;
332
335
  }>, "many">>;
336
+ metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
333
337
  } & {
334
338
  title: z.ZodDefault<z.ZodString>;
335
339
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -433,6 +437,7 @@ export declare const LocalizedProductSchema: z.ZodObject<Omit<{
433
437
  url: string;
434
438
  }[] | undefined;
435
439
  manufacturerId?: string | null | undefined;
440
+ metadata?: Record<string, string> | null | undefined;
436
441
  }, {
437
442
  id: string;
438
443
  createdAt: Date;
@@ -468,6 +473,7 @@ export declare const LocalizedProductSchema: z.ZodObject<Omit<{
468
473
  id: string;
469
474
  }[] | undefined;
470
475
  manufacturerId?: string | null | undefined;
476
+ metadata?: Record<string, string> | null | undefined;
471
477
  }>;
472
478
  export declare const CreateProductSchema: z.ZodEffects<z.ZodObject<Pick<{
473
479
  id: z.ZodString;
@@ -645,7 +651,8 @@ export declare const CreateProductSchema: z.ZodEffects<z.ZodObject<Pick<{
645
651
  title?: string | undefined;
646
652
  description?: string | null | undefined;
647
653
  }>, "many">>;
648
- }, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId"> & {
654
+ metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
655
+ }, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId" | "metadata"> & {
649
656
  defaultLocale: z.ZodString;
650
657
  modifierGroups: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
651
658
  selectMin: z.ZodNumber;
@@ -827,6 +834,7 @@ export declare const CreateProductSchema: z.ZodEffects<z.ZodObject<Pick<{
827
834
  }[] | undefined;
828
835
  categories?: string[] | undefined;
829
836
  manufacturerId?: string | null | undefined;
837
+ metadata?: Record<string, string> | null | undefined;
830
838
  }, {
831
839
  defaultLocale: string;
832
840
  basePrice: number;
@@ -863,6 +871,7 @@ export declare const CreateProductSchema: z.ZodEffects<z.ZodObject<Pick<{
863
871
  }[] | undefined;
864
872
  categories?: string[] | undefined;
865
873
  manufacturerId?: string | null | undefined;
874
+ metadata?: Record<string, string> | null | undefined;
866
875
  }>, {
867
876
  defaultLocale: string;
868
877
  basePrice: number;
@@ -899,6 +908,7 @@ export declare const CreateProductSchema: z.ZodEffects<z.ZodObject<Pick<{
899
908
  }[] | undefined;
900
909
  categories?: string[] | undefined;
901
910
  manufacturerId?: string | null | undefined;
911
+ metadata?: Record<string, string> | null | undefined;
902
912
  }, {
903
913
  defaultLocale: string;
904
914
  basePrice: number;
@@ -935,6 +945,7 @@ export declare const CreateProductSchema: z.ZodEffects<z.ZodObject<Pick<{
935
945
  }[] | undefined;
936
946
  categories?: string[] | undefined;
937
947
  manufacturerId?: string | null | undefined;
948
+ metadata?: Record<string, string> | null | undefined;
938
949
  }>;
939
950
  export declare const UpdateProductSchema: z.ZodEffects<z.ZodObject<{
940
951
  translations: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -975,6 +986,7 @@ export declare const UpdateProductSchema: z.ZodEffects<z.ZodObject<{
975
986
  url: string;
976
987
  }>, "many">>>;
977
988
  manufacturerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
989
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>>;
978
990
  defaultLocale: z.ZodOptional<z.ZodString>;
979
991
  modifierGroups: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
980
992
  selectMin: z.ZodNumber;
@@ -1156,6 +1168,7 @@ export declare const UpdateProductSchema: z.ZodEffects<z.ZodObject<{
1156
1168
  }[] | undefined;
1157
1169
  categories?: string[] | undefined;
1158
1170
  manufacturerId?: string | null | undefined;
1171
+ metadata?: Record<string, string> | null | undefined;
1159
1172
  }, {
1160
1173
  translations?: {
1161
1174
  locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
@@ -1192,6 +1205,7 @@ export declare const UpdateProductSchema: z.ZodEffects<z.ZodObject<{
1192
1205
  }[] | undefined;
1193
1206
  categories?: string[] | undefined;
1194
1207
  manufacturerId?: string | null | undefined;
1208
+ metadata?: Record<string, string> | null | undefined;
1195
1209
  }>, {
1196
1210
  translations?: {
1197
1211
  locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
@@ -1228,6 +1242,7 @@ export declare const UpdateProductSchema: z.ZodEffects<z.ZodObject<{
1228
1242
  }[] | undefined;
1229
1243
  categories?: string[] | undefined;
1230
1244
  manufacturerId?: string | null | undefined;
1245
+ metadata?: Record<string, string> | null | undefined;
1231
1246
  }, {
1232
1247
  translations?: {
1233
1248
  locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
@@ -1264,6 +1279,7 @@ export declare const UpdateProductSchema: z.ZodEffects<z.ZodObject<{
1264
1279
  }[] | undefined;
1265
1280
  categories?: string[] | undefined;
1266
1281
  manufacturerId?: string | null | undefined;
1282
+ metadata?: Record<string, string> | null | undefined;
1267
1283
  }>;
1268
1284
  export type LocalizedProduct = z.infer<typeof LocalizedProductSchema>;
1269
1285
  export type Product = z.infer<typeof ProductSchema>;
@@ -55,6 +55,14 @@ export const ProductSchema = z
55
55
  }),
56
56
  }))
57
57
  .optional(),
58
+ metadata: z
59
+ .record(z
60
+ .string()
61
+ .min(1, "Key cannot be empty")
62
+ .max(50, "Key too long")
63
+ .regex(/^[a-zA-Z][a-zA-Z0-9_-]*$/, "Key must start with letter and contain only letters, numbers, underscore, or dash"), z.string().min(1, "Value cannot be empty").max(200, "Value too long"))
64
+ .optional()
65
+ .nullable(),
58
66
  })
59
67
  .openapi("Product");
60
68
  export const LocalizedProductSchema = ProductSchema.extend({
@@ -83,6 +91,7 @@ const BaseProductFormData = ProductSchema.pick({
83
91
  images: true,
84
92
  manufacturerId: true,
85
93
  translations: true,
94
+ metadata: true,
86
95
  }).extend({
87
96
  defaultLocale: z.string().min(1, "Default locale is required").openapi({
88
97
  example: "en-US",
@@ -1 +1 @@
1
- {"version":3,"file":"product.schema.js","sourceRoot":"","sources":["../../../../../packages/rest-api/src/schemas/product.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAA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AQ,CAAC;YACX,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,IAAI,EAAE,CAAC,qBAAqB,CAAC;YAC7B,OAAO,EAAE,2CAA2C;SACrD,CAAC,CAAC;IACL,CAAC;IACD,yCAAyC;IACzC,OAAO,gCAAgC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC9D,CAAC,CACF,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;AAE3B,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,OAAO,EAAE;KAC7D,WAAW,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACzB,yDAAyD;IACzD,IACE,IAAI,CAAC,mBAAmB,KAAK,IAAI;QACjC,IAAI,CAAC,mBAAmB,KAAK,SAAS;QACtC,IAAI,CAAC,SAAS;QACd,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,SAAS,EACzC,CAAC;QACD,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,IAAI,EAAE,CAAC,qBAAqB,CAAC;YAC7B,OAAO,EAAE,2CAA2C;SACrD,CAAC,CAAC;IACL,CAAC;IACD,yCAAyC;IACzC,OAAO,gCAAgC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC9D,CAAC,CAAC;KACD,OAAO,CAAC,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"product.schema.js","sourceRoot":"","sources":["../../../../../packages/rest-api/src/schemas/product.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM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IACL,CAAC;IACD,yCAAyC;IACzC,OAAO,gCAAgC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC9D,CAAC,CAAC;KACD,OAAO,CAAC,eAAe,CAAC,CAAC"}
@@ -51,6 +51,7 @@ declare class CartService {
51
51
  url: string;
52
52
  }[] | undefined;
53
53
  manufacturerId?: string | null | undefined;
54
+ metadata?: Record<string, string> | null | undefined;
54
55
  }>;
55
56
  total: number;
56
57
  subtotal: number;
@@ -68,6 +68,7 @@ declare class ProductService {
68
68
  }[] | undefined;
69
69
  }[] | undefined;
70
70
  manufacturerId?: string | null | undefined;
71
+ metadata?: Record<string, string> | null | undefined;
71
72
  }>;
72
73
  /**
73
74
  * Get a product by ID
@@ -131,6 +132,7 @@ declare class ProductService {
131
132
  }[] | undefined;
132
133
  }[] | undefined;
133
134
  manufacturerId?: string | null | undefined;
135
+ metadata?: Record<string, string> | null | undefined;
134
136
  } | {
135
137
  id: string;
136
138
  createdAt: Date;
@@ -166,6 +168,7 @@ declare class ProductService {
166
168
  url: string;
167
169
  }[] | undefined;
168
170
  manufacturerId?: string | null | undefined;
171
+ metadata?: Record<string, string> | null | undefined;
169
172
  }>;
170
173
  /**
171
174
  * Get a paginated list of products
@@ -242,6 +245,7 @@ declare class ProductService {
242
245
  }[] | undefined;
243
246
  }[] | undefined;
244
247
  manufacturerId?: string | null | undefined;
248
+ metadata?: Record<string, string> | null | undefined;
245
249
  }[];
246
250
  } | {
247
251
  meta: {
@@ -288,6 +292,7 @@ declare class ProductService {
288
292
  url: string;
289
293
  }[] | undefined;
290
294
  manufacturerId?: string | null | undefined;
295
+ metadata?: Record<string, string> | null | undefined;
291
296
  }[];
292
297
  }>;
293
298
  /**
@@ -364,6 +369,7 @@ declare class ProductService {
364
369
  }[] | undefined;
365
370
  }[] | undefined;
366
371
  manufacturerId?: string | null | undefined;
372
+ metadata?: Record<string, string> | null | undefined;
367
373
  }[];
368
374
  }>;
369
375
  /**
@@ -425,6 +431,7 @@ declare class ProductService {
425
431
  }[] | undefined;
426
432
  }[] | undefined;
427
433
  manufacturerId?: string | null | undefined;
434
+ metadata?: Record<string, string> | null | undefined;
428
435
  }>;
429
436
  /**
430
437
  * Update product status (publish/unpublish)
@@ -485,6 +492,7 @@ declare class ProductService {
485
492
  }[] | undefined;
486
493
  }[] | undefined;
487
494
  manufacturerId?: string | null | undefined;
495
+ metadata?: Record<string, string> | null | undefined;
488
496
  }>;
489
497
  /**
490
498
  * Delete a product (soft delete)