@shophost/rest-api 0.1.19 → 0.1.20
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.
- package/package.json +1 -1
- package/src/contract.d.ts +134 -123
- package/src/contracts/cart.contract.d.ts +5 -0
- package/src/contracts/index.d.ts +46 -1
- package/src/contracts/products.contract.d.ts +41 -1
- package/src/db/__generated__/client/commonInputTypes.d.ts +54 -54
- package/src/db/__generated__/client/internal/class.js +5 -6
- package/src/db/__generated__/client/internal/class.js.map +1 -1
- package/src/db/__generated__/client/internal/prismaNamespace.d.ts +10 -9
- package/src/db/__generated__/client/internal/prismaNamespace.js +4 -3
- package/src/db/__generated__/client/internal/prismaNamespace.js.map +1 -1
- package/src/db/__generated__/client/models/Product.d.ts +63 -1
- package/src/routers/cart.router.d.ts +5 -0
- package/src/routers/product.router.d.ts +41 -1
- package/src/schemas/cart.schema.d.ts +3 -0
- package/src/schemas/product.schema.d.ts +17 -1
- package/src/schemas/product.schema.js +9 -0
- package/src/schemas/product.schema.js.map +1 -1
- package/src/services/cart.service.d.ts +1 -0
- package/src/services/product.service.d.ts +8 -0
- package/src/services/product.service.js +3 -2
- package/src/services/product.service.js.map +1 -1
- package/src/utils/client.util.d.ts +134 -123
|
@@ -244,6 +244,7 @@ export declare const productsContract: {
|
|
|
244
244
|
title?: string | undefined;
|
|
245
245
|
description?: string | null | undefined;
|
|
246
246
|
}>, "many">>;
|
|
247
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
247
248
|
}, "strip", z.ZodTypeAny, {
|
|
248
249
|
id: string;
|
|
249
250
|
createdAt: Date;
|
|
@@ -300,6 +301,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
356
358
|
}[] | undefined;
|
|
357
359
|
}[] | undefined;
|
|
358
360
|
manufacturerId?: string | null | undefined;
|
|
361
|
+
metadata?: Record<string, string> | null | undefined;
|
|
359
362
|
}>, z.ZodObject<Omit<{
|
|
360
363
|
id: z.ZodString;
|
|
361
364
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -398,6 +401,7 @@ export declare const productsContract: {
|
|
|
398
401
|
title?: string | undefined;
|
|
399
402
|
description?: string | null | undefined;
|
|
400
403
|
}>, "many">>;
|
|
404
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
401
405
|
} & {
|
|
402
406
|
title: z.ZodDefault<z.ZodString>;
|
|
403
407
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -501,6 +505,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
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", z.ZodTypeAny, {
|
|
541
547
|
meta: {
|
|
@@ -603,6 +609,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
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 productsContract: {
|
|
|
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 productsContract: {
|
|
|
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: z.ZodObject<{
|
|
@@ -974,6 +984,7 @@ export declare const productsContract: {
|
|
|
974
984
|
title?: string | undefined;
|
|
975
985
|
description?: string | null | undefined;
|
|
976
986
|
}>, "many">>;
|
|
987
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
977
988
|
}, "strip", z.ZodTypeAny, {
|
|
978
989
|
id: string;
|
|
979
990
|
createdAt: Date;
|
|
@@ -1030,6 +1041,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
1086
1098
|
}[] | undefined;
|
|
1087
1099
|
}[] | undefined;
|
|
1088
1100
|
manufacturerId?: string | null | undefined;
|
|
1101
|
+
metadata?: Record<string, string> | null | undefined;
|
|
1089
1102
|
}>, z.ZodObject<Omit<{
|
|
1090
1103
|
id: z.ZodString;
|
|
1091
1104
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -1128,6 +1141,7 @@ export declare const productsContract: {
|
|
|
1128
1141
|
title?: string | undefined;
|
|
1129
1142
|
description?: string | null | undefined;
|
|
1130
1143
|
}>, "many">>;
|
|
1144
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1131
1145
|
} & {
|
|
1132
1146
|
title: z.ZodDefault<z.ZodString>;
|
|
1133
1147
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1231,6 +1245,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
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: z.ZodObject<{
|
|
1271
1287
|
status: z.ZodNumber;
|
|
@@ -1343,6 +1359,7 @@ export declare const productsContract: {
|
|
|
1343
1359
|
url: string;
|
|
1344
1360
|
}>, "many">>>;
|
|
1345
1361
|
manufacturerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1362
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>>;
|
|
1346
1363
|
defaultLocale: z.ZodOptional<z.ZodString>;
|
|
1347
1364
|
modifierGroups: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1348
1365
|
selectMin: z.ZodNumber;
|
|
@@ -1524,6 +1541,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
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 productsContract: {
|
|
|
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 productsContract: {
|
|
|
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: z.ZodOptional<z.ZodObject<{
|
|
@@ -1821,6 +1842,7 @@ export declare const productsContract: {
|
|
|
1821
1842
|
title?: string | undefined;
|
|
1822
1843
|
description?: string | null | undefined;
|
|
1823
1844
|
}>, "many">>;
|
|
1845
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1824
1846
|
}, "strip", z.ZodTypeAny, {
|
|
1825
1847
|
id: string;
|
|
1826
1848
|
createdAt: Date;
|
|
@@ -1877,6 +1899,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
1933
1956
|
}[] | undefined;
|
|
1934
1957
|
}[] | undefined;
|
|
1935
1958
|
manufacturerId?: string | null | undefined;
|
|
1959
|
+
metadata?: Record<string, string> | null | undefined;
|
|
1936
1960
|
}>;
|
|
1937
1961
|
400: z.ZodObject<{
|
|
1938
1962
|
status: z.ZodNumber;
|
|
@@ -2153,7 +2177,8 @@ export declare const productsContract: {
|
|
|
2153
2177
|
title?: string | undefined;
|
|
2154
2178
|
description?: string | null | undefined;
|
|
2155
2179
|
}>, "many">>;
|
|
2156
|
-
|
|
2180
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2181
|
+
}, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId" | "metadata"> & {
|
|
2157
2182
|
defaultLocale: z.ZodString;
|
|
2158
2183
|
modifierGroups: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2159
2184
|
selectMin: z.ZodNumber;
|
|
@@ -2335,6 +2360,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
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 productsContract: {
|
|
|
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 productsContract: {
|
|
|
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: z.ZodOptional<z.ZodObject<{
|
|
@@ -2632,6 +2661,7 @@ export declare const productsContract: {
|
|
|
2632
2661
|
title?: string | undefined;
|
|
2633
2662
|
description?: string | null | undefined;
|
|
2634
2663
|
}>, "many">>;
|
|
2664
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2635
2665
|
}, "strip", z.ZodTypeAny, {
|
|
2636
2666
|
id: string;
|
|
2637
2667
|
createdAt: Date;
|
|
@@ -2688,6 +2718,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
2744
2775
|
}[] | undefined;
|
|
2745
2776
|
}[] | undefined;
|
|
2746
2777
|
manufacturerId?: string | null | undefined;
|
|
2778
|
+
metadata?: Record<string, string> | null | undefined;
|
|
2747
2779
|
}>;
|
|
2748
2780
|
400: z.ZodObject<{
|
|
2749
2781
|
status: z.ZodNumber;
|
|
@@ -2983,6 +3015,7 @@ export declare const productsContract: {
|
|
|
2983
3015
|
title?: string | undefined;
|
|
2984
3016
|
description?: string | null | undefined;
|
|
2985
3017
|
}>, "many">>;
|
|
3018
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2986
3019
|
}, "strip", z.ZodTypeAny, {
|
|
2987
3020
|
id: string;
|
|
2988
3021
|
createdAt: Date;
|
|
@@ -3039,6 +3072,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
3095
3129
|
}[] | undefined;
|
|
3096
3130
|
}[] | undefined;
|
|
3097
3131
|
manufacturerId?: string | null | undefined;
|
|
3132
|
+
metadata?: Record<string, string> | null | undefined;
|
|
3098
3133
|
}>;
|
|
3099
3134
|
400: z.ZodObject<{
|
|
3100
3135
|
status: z.ZodNumber;
|
|
@@ -3435,6 +3470,7 @@ export declare const productsContract: {
|
|
|
3435
3470
|
title?: string | undefined;
|
|
3436
3471
|
description?: string | null | undefined;
|
|
3437
3472
|
}>, "many">>;
|
|
3473
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
3438
3474
|
}, "strip", z.ZodTypeAny, {
|
|
3439
3475
|
id: string;
|
|
3440
3476
|
createdAt: Date;
|
|
@@ -3491,6 +3527,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
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", z.ZodTypeAny, {
|
|
3552
3590
|
meta: {
|
|
@@ -3614,6 +3652,7 @@ export declare const productsContract: {
|
|
|
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 productsContract: {
|
|
|
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: z.ZodObject<{
|
|
@@ -245,6 +245,23 @@ export type FloatFilter<$PrismaModel = never> = {
|
|
|
245
245
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
246
246
|
not?: Prisma.NestedFloatFilter<$PrismaModel> | number;
|
|
247
247
|
};
|
|
248
|
+
export type JsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
249
|
+
export type JsonNullableFilterBase<$PrismaModel = never> = {
|
|
250
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
251
|
+
path?: string[];
|
|
252
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
253
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
254
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
255
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
256
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
257
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
258
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
259
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
260
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
261
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
262
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
263
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
264
|
+
};
|
|
248
265
|
export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
|
249
266
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
250
267
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
|
|
@@ -260,6 +277,26 @@ export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
260
277
|
_min?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
261
278
|
_max?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
262
279
|
};
|
|
280
|
+
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
|
|
281
|
+
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
282
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
283
|
+
path?: string[];
|
|
284
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
285
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
286
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
287
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
288
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
289
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
290
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
291
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
292
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
293
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
294
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
295
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
296
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
297
|
+
_min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
298
|
+
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
299
|
+
};
|
|
263
300
|
export type JsonFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>, Required<JsonFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>;
|
|
264
301
|
export type JsonFilterBase<$PrismaModel = never> = {
|
|
265
302
|
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
@@ -322,23 +359,6 @@ export type IntFilter<$PrismaModel = never> = {
|
|
|
322
359
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
323
360
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
324
361
|
};
|
|
325
|
-
export type JsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
326
|
-
export type JsonNullableFilterBase<$PrismaModel = never> = {
|
|
327
|
-
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
328
|
-
path?: string[];
|
|
329
|
-
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
330
|
-
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
331
|
-
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
332
|
-
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
333
|
-
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
334
|
-
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
335
|
-
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
336
|
-
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
337
|
-
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
338
|
-
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
339
|
-
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
340
|
-
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
341
|
-
};
|
|
342
362
|
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
343
363
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
344
364
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
@@ -354,26 +374,6 @@ export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
354
374
|
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
355
375
|
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
356
376
|
};
|
|
357
|
-
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
|
|
358
|
-
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
359
|
-
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
360
|
-
path?: string[];
|
|
361
|
-
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
362
|
-
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
363
|
-
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
364
|
-
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
365
|
-
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
366
|
-
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
367
|
-
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
368
|
-
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
369
|
-
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
370
|
-
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
371
|
-
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
372
|
-
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
373
|
-
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
374
|
-
_min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
375
|
-
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
376
|
-
};
|
|
377
377
|
export type EnumPaymentMethodFilter<$PrismaModel = never> = {
|
|
378
378
|
equals?: $Enums.PaymentMethod | Prisma.EnumPaymentMethodFieldRefInput<$PrismaModel>;
|
|
379
379
|
in?: $Enums.PaymentMethod[] | Prisma.ListEnumPaymentMethodFieldRefInput<$PrismaModel>;
|
|
@@ -690,6 +690,23 @@ export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
690
690
|
_min?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
691
691
|
_max?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
692
692
|
};
|
|
693
|
+
export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
694
|
+
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|
695
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
696
|
+
path?: string[];
|
|
697
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
698
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
699
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
700
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
701
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
702
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
703
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
704
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
705
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
706
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
707
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
708
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
709
|
+
};
|
|
693
710
|
export type NestedJsonFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>;
|
|
694
711
|
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
|
695
712
|
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
@@ -737,23 +754,6 @@ export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
737
754
|
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
738
755
|
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
739
756
|
};
|
|
740
|
-
export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
741
|
-
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|
742
|
-
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
743
|
-
path?: string[];
|
|
744
|
-
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
745
|
-
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
746
|
-
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
747
|
-
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
748
|
-
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
749
|
-
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
750
|
-
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
751
|
-
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
752
|
-
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
753
|
-
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
754
|
-
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
755
|
-
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
756
|
-
};
|
|
757
757
|
export type NestedEnumPaymentMethodFilter<$PrismaModel = never> = {
|
|
758
758
|
equals?: $Enums.PaymentMethod | Prisma.EnumPaymentMethodFieldRefInput<$PrismaModel>;
|
|
759
759
|
in?: $Enums.PaymentMethod[] | Prisma.ListEnumPaymentMethodFieldRefInput<$PrismaModel>;
|