@shophost/rest-api 2.0.51 → 2.0.53
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/schema.prisma +4 -0
- package/src/bootstrap.js +1 -1
- package/src/bootstrap.js.map +1 -1
- package/src/{app-services.d.ts → container.d.ts} +7 -5
- package/src/container.js +1 -0
- package/src/container.js.map +1 -0
- package/src/core/db/__generated__/client/internal/class.js +33 -29
- package/src/core/db/__generated__/client/internal/class.js.map +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +4 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +4 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -1
- package/src/core/db/__generated__/client/models/Order.d.ts +178 -1
- package/src/core/db/__generated__/client/models/Product.d.ts +75 -1
- package/src/core/utils/zod.util.js +1 -1
- package/src/core/utils/zod.util.js.map +1 -1
- package/src/features/cart/cart.route.d.ts +29 -0
- package/src/features/cart/cart.route.js +1 -1
- package/src/features/cart/cart.route.js.map +1 -1
- package/src/features/cart/cart.schema.d.ts +399 -0
- package/src/features/cart/cart.schema.js +1 -1
- package/src/features/cart/cart.schema.js.map +1 -1
- package/src/features/cart/cart.service.d.ts +30 -3
- package/src/features/cart/cart.service.js +1 -1
- package/src/features/cart/cart.service.js.map +1 -1
- package/src/features/inventory/inventory.service.d.ts +24 -0
- package/src/features/inventory/inventory.service.js +1 -0
- package/src/features/inventory/inventory.service.js.map +1 -0
- package/src/features/order/order.handler.js +1 -1
- package/src/features/order/order.handler.js.map +1 -1
- package/src/features/order/order.route.d.ts +314 -0
- package/src/features/order/order.route.js +1 -1
- package/src/features/order/order.route.js.map +1 -1
- package/src/features/order/order.schema.d.ts +33 -0
- package/src/features/order/order.schema.js +1 -1
- package/src/features/order/order.schema.js.map +1 -1
- package/src/features/order/order.service.d.ts +55 -1
- package/src/features/order/order.service.js +1 -1
- package/src/features/order/order.service.js.map +1 -1
- package/src/features/payment/payment.service.d.ts +4 -1
- package/src/features/payment/payment.service.js +1 -1
- package/src/features/payment/payment.service.js.map +1 -1
- package/src/features/payment/stripe.service.d.ts +2 -2
- package/src/features/payment/stripe.service.js +1 -1
- package/src/features/payment/stripe.service.js.map +1 -1
- package/src/features/product/product.route.d.ts +10 -0
- package/src/features/product/product.schema.d.ts +4 -0
- package/src/features/product/product.schema.js +1 -1
- package/src/features/product/product.schema.js.map +1 -1
- package/src/features/product/product.service.d.ts +8 -0
- package/src/features/product/product.service.js +1 -1
- package/src/features/product/product.service.js.map +1 -1
- package/src/schemas/number.schema.d.ts +1 -0
- package/src/schemas/number.schema.js +1 -1
- package/src/schemas/number.schema.js.map +1 -1
- package/src/app-services.js +0 -1
- package/src/app-services.js.map +0 -1
|
@@ -13,10 +13,12 @@ export type AggregateProduct = {
|
|
|
13
13
|
_max: ProductMaxAggregateOutputType | null;
|
|
14
14
|
};
|
|
15
15
|
export type ProductAvgAggregateOutputType = {
|
|
16
|
+
availableQuantity: number | null;
|
|
16
17
|
basePrice: number | null;
|
|
17
18
|
discountedBasePrice: number | null;
|
|
18
19
|
};
|
|
19
20
|
export type ProductSumAggregateOutputType = {
|
|
21
|
+
availableQuantity: number | null;
|
|
20
22
|
basePrice: number | null;
|
|
21
23
|
discountedBasePrice: number | null;
|
|
22
24
|
};
|
|
@@ -25,6 +27,7 @@ export type ProductMinAggregateOutputType = {
|
|
|
25
27
|
content: string | null;
|
|
26
28
|
slug: string | null;
|
|
27
29
|
sku: string | null;
|
|
30
|
+
availableQuantity: number | null;
|
|
28
31
|
basePrice: number | null;
|
|
29
32
|
discountedBasePrice: number | null;
|
|
30
33
|
currency: string | null;
|
|
@@ -45,6 +48,7 @@ export type ProductMaxAggregateOutputType = {
|
|
|
45
48
|
content: string | null;
|
|
46
49
|
slug: string | null;
|
|
47
50
|
sku: string | null;
|
|
51
|
+
availableQuantity: number | null;
|
|
48
52
|
basePrice: number | null;
|
|
49
53
|
discountedBasePrice: number | null;
|
|
50
54
|
currency: string | null;
|
|
@@ -65,6 +69,7 @@ export type ProductCountAggregateOutputType = {
|
|
|
65
69
|
content: number;
|
|
66
70
|
slug: number;
|
|
67
71
|
sku: number;
|
|
72
|
+
availableQuantity: number;
|
|
68
73
|
basePrice: number;
|
|
69
74
|
discountedBasePrice: number;
|
|
70
75
|
currency: number;
|
|
@@ -84,10 +89,12 @@ export type ProductCountAggregateOutputType = {
|
|
|
84
89
|
_all: number;
|
|
85
90
|
};
|
|
86
91
|
export type ProductAvgAggregateInputType = {
|
|
92
|
+
availableQuantity?: true;
|
|
87
93
|
basePrice?: true;
|
|
88
94
|
discountedBasePrice?: true;
|
|
89
95
|
};
|
|
90
96
|
export type ProductSumAggregateInputType = {
|
|
97
|
+
availableQuantity?: true;
|
|
91
98
|
basePrice?: true;
|
|
92
99
|
discountedBasePrice?: true;
|
|
93
100
|
};
|
|
@@ -96,6 +103,7 @@ export type ProductMinAggregateInputType = {
|
|
|
96
103
|
content?: true;
|
|
97
104
|
slug?: true;
|
|
98
105
|
sku?: true;
|
|
106
|
+
availableQuantity?: true;
|
|
99
107
|
basePrice?: true;
|
|
100
108
|
discountedBasePrice?: true;
|
|
101
109
|
currency?: true;
|
|
@@ -116,6 +124,7 @@ export type ProductMaxAggregateInputType = {
|
|
|
116
124
|
content?: true;
|
|
117
125
|
slug?: true;
|
|
118
126
|
sku?: true;
|
|
127
|
+
availableQuantity?: true;
|
|
119
128
|
basePrice?: true;
|
|
120
129
|
discountedBasePrice?: true;
|
|
121
130
|
currency?: true;
|
|
@@ -136,6 +145,7 @@ export type ProductCountAggregateInputType = {
|
|
|
136
145
|
content?: true;
|
|
137
146
|
slug?: true;
|
|
138
147
|
sku?: true;
|
|
148
|
+
availableQuantity?: true;
|
|
139
149
|
basePrice?: true;
|
|
140
150
|
discountedBasePrice?: true;
|
|
141
151
|
currency?: true;
|
|
@@ -235,6 +245,7 @@ export type ProductGroupByOutputType = {
|
|
|
235
245
|
content: string | null;
|
|
236
246
|
slug: string | null;
|
|
237
247
|
sku: string | null;
|
|
248
|
+
availableQuantity: number | null;
|
|
238
249
|
basePrice: number;
|
|
239
250
|
discountedBasePrice: number | null;
|
|
240
251
|
currency: string;
|
|
@@ -268,6 +279,7 @@ export type ProductWhereInput = {
|
|
|
268
279
|
content?: Prisma.StringNullableFilter<"Product"> | string | null;
|
|
269
280
|
slug?: Prisma.StringNullableFilter<"Product"> | string | null;
|
|
270
281
|
sku?: Prisma.StringNullableFilter<"Product"> | string | null;
|
|
282
|
+
availableQuantity?: Prisma.IntNullableFilter<"Product"> | number | null;
|
|
271
283
|
basePrice?: Prisma.FloatFilter<"Product"> | number;
|
|
272
284
|
discountedBasePrice?: Prisma.FloatNullableFilter<"Product"> | number | null;
|
|
273
285
|
currency?: Prisma.StringFilter<"Product"> | string;
|
|
@@ -298,6 +310,7 @@ export type ProductOrderByWithRelationInput = {
|
|
|
298
310
|
content?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
299
311
|
slug?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
300
312
|
sku?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
313
|
+
availableQuantity?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
301
314
|
basePrice?: Prisma.SortOrder;
|
|
302
315
|
discountedBasePrice?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
303
316
|
currency?: Prisma.SortOrder;
|
|
@@ -332,6 +345,7 @@ export type ProductWhereUniqueInput = Prisma.AtLeast<{
|
|
|
332
345
|
content?: Prisma.StringNullableFilter<"Product"> | string | null;
|
|
333
346
|
slug?: Prisma.StringNullableFilter<"Product"> | string | null;
|
|
334
347
|
sku?: Prisma.StringNullableFilter<"Product"> | string | null;
|
|
348
|
+
availableQuantity?: Prisma.IntNullableFilter<"Product"> | number | null;
|
|
335
349
|
basePrice?: Prisma.FloatFilter<"Product"> | number;
|
|
336
350
|
discountedBasePrice?: Prisma.FloatNullableFilter<"Product"> | number | null;
|
|
337
351
|
currency?: Prisma.StringFilter<"Product"> | string;
|
|
@@ -361,6 +375,7 @@ export type ProductOrderByWithAggregationInput = {
|
|
|
361
375
|
content?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
362
376
|
slug?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
363
377
|
sku?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
378
|
+
availableQuantity?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
364
379
|
basePrice?: Prisma.SortOrder;
|
|
365
380
|
discountedBasePrice?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
366
381
|
currency?: Prisma.SortOrder;
|
|
@@ -391,6 +406,7 @@ export type ProductScalarWhereWithAggregatesInput = {
|
|
|
391
406
|
content?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
|
|
392
407
|
slug?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
|
|
393
408
|
sku?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
|
|
409
|
+
availableQuantity?: Prisma.IntNullableWithAggregatesFilter<"Product"> | number | null;
|
|
394
410
|
basePrice?: Prisma.FloatWithAggregatesFilter<"Product"> | number;
|
|
395
411
|
discountedBasePrice?: Prisma.FloatNullableWithAggregatesFilter<"Product"> | number | null;
|
|
396
412
|
currency?: Prisma.StringWithAggregatesFilter<"Product"> | string;
|
|
@@ -413,6 +429,7 @@ export type ProductCreateInput = {
|
|
|
413
429
|
content?: string | null;
|
|
414
430
|
slug?: string | null;
|
|
415
431
|
sku?: string | null;
|
|
432
|
+
availableQuantity?: number | null;
|
|
416
433
|
basePrice: number;
|
|
417
434
|
discountedBasePrice?: number | null;
|
|
418
435
|
currency: string;
|
|
@@ -440,6 +457,7 @@ export type ProductUncheckedCreateInput = {
|
|
|
440
457
|
content?: string | null;
|
|
441
458
|
slug?: string | null;
|
|
442
459
|
sku?: string | null;
|
|
460
|
+
availableQuantity?: number | null;
|
|
443
461
|
basePrice: number;
|
|
444
462
|
discountedBasePrice?: number | null;
|
|
445
463
|
currency: string;
|
|
@@ -467,6 +485,7 @@ export type ProductUpdateInput = {
|
|
|
467
485
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
468
486
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
469
487
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
488
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
470
489
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
471
490
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
472
491
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -494,6 +513,7 @@ export type ProductUncheckedUpdateInput = {
|
|
|
494
513
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
495
514
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
496
515
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
516
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
497
517
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
498
518
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
499
519
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -521,6 +541,7 @@ export type ProductCreateManyInput = {
|
|
|
521
541
|
content?: string | null;
|
|
522
542
|
slug?: string | null;
|
|
523
543
|
sku?: string | null;
|
|
544
|
+
availableQuantity?: number | null;
|
|
524
545
|
basePrice: number;
|
|
525
546
|
discountedBasePrice?: number | null;
|
|
526
547
|
currency: string;
|
|
@@ -543,6 +564,7 @@ export type ProductUpdateManyMutationInput = {
|
|
|
543
564
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
544
565
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
545
566
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
567
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
546
568
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
547
569
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
548
570
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -562,6 +584,7 @@ export type ProductUncheckedUpdateManyInput = {
|
|
|
562
584
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
563
585
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
564
586
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
587
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
565
588
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
566
589
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
567
590
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -592,6 +615,7 @@ export type ProductCountOrderByAggregateInput = {
|
|
|
592
615
|
content?: Prisma.SortOrder;
|
|
593
616
|
slug?: Prisma.SortOrder;
|
|
594
617
|
sku?: Prisma.SortOrder;
|
|
618
|
+
availableQuantity?: Prisma.SortOrder;
|
|
595
619
|
basePrice?: Prisma.SortOrder;
|
|
596
620
|
discountedBasePrice?: Prisma.SortOrder;
|
|
597
621
|
currency?: Prisma.SortOrder;
|
|
@@ -610,6 +634,7 @@ export type ProductCountOrderByAggregateInput = {
|
|
|
610
634
|
latestSnapshotId?: Prisma.SortOrder;
|
|
611
635
|
};
|
|
612
636
|
export type ProductAvgOrderByAggregateInput = {
|
|
637
|
+
availableQuantity?: Prisma.SortOrder;
|
|
613
638
|
basePrice?: Prisma.SortOrder;
|
|
614
639
|
discountedBasePrice?: Prisma.SortOrder;
|
|
615
640
|
};
|
|
@@ -618,6 +643,7 @@ export type ProductMaxOrderByAggregateInput = {
|
|
|
618
643
|
content?: Prisma.SortOrder;
|
|
619
644
|
slug?: Prisma.SortOrder;
|
|
620
645
|
sku?: Prisma.SortOrder;
|
|
646
|
+
availableQuantity?: Prisma.SortOrder;
|
|
621
647
|
basePrice?: Prisma.SortOrder;
|
|
622
648
|
discountedBasePrice?: Prisma.SortOrder;
|
|
623
649
|
currency?: Prisma.SortOrder;
|
|
@@ -638,6 +664,7 @@ export type ProductMinOrderByAggregateInput = {
|
|
|
638
664
|
content?: Prisma.SortOrder;
|
|
639
665
|
slug?: Prisma.SortOrder;
|
|
640
666
|
sku?: Prisma.SortOrder;
|
|
667
|
+
availableQuantity?: Prisma.SortOrder;
|
|
641
668
|
basePrice?: Prisma.SortOrder;
|
|
642
669
|
discountedBasePrice?: Prisma.SortOrder;
|
|
643
670
|
currency?: Prisma.SortOrder;
|
|
@@ -654,6 +681,7 @@ export type ProductMinOrderByAggregateInput = {
|
|
|
654
681
|
latestSnapshotId?: Prisma.SortOrder;
|
|
655
682
|
};
|
|
656
683
|
export type ProductSumOrderByAggregateInput = {
|
|
684
|
+
availableQuantity?: Prisma.SortOrder;
|
|
657
685
|
basePrice?: Prisma.SortOrder;
|
|
658
686
|
discountedBasePrice?: Prisma.SortOrder;
|
|
659
687
|
};
|
|
@@ -914,6 +942,7 @@ export type ProductCreateWithoutOrganizationInput = {
|
|
|
914
942
|
content?: string | null;
|
|
915
943
|
slug?: string | null;
|
|
916
944
|
sku?: string | null;
|
|
945
|
+
availableQuantity?: number | null;
|
|
917
946
|
basePrice: number;
|
|
918
947
|
discountedBasePrice?: number | null;
|
|
919
948
|
currency: string;
|
|
@@ -940,6 +969,7 @@ export type ProductUncheckedCreateWithoutOrganizationInput = {
|
|
|
940
969
|
content?: string | null;
|
|
941
970
|
slug?: string | null;
|
|
942
971
|
sku?: string | null;
|
|
972
|
+
availableQuantity?: number | null;
|
|
943
973
|
basePrice: number;
|
|
944
974
|
discountedBasePrice?: number | null;
|
|
945
975
|
currency: string;
|
|
@@ -990,6 +1020,7 @@ export type ProductScalarWhereInput = {
|
|
|
990
1020
|
content?: Prisma.StringNullableFilter<"Product"> | string | null;
|
|
991
1021
|
slug?: Prisma.StringNullableFilter<"Product"> | string | null;
|
|
992
1022
|
sku?: Prisma.StringNullableFilter<"Product"> | string | null;
|
|
1023
|
+
availableQuantity?: Prisma.IntNullableFilter<"Product"> | number | null;
|
|
993
1024
|
basePrice?: Prisma.FloatFilter<"Product"> | number;
|
|
994
1025
|
discountedBasePrice?: Prisma.FloatNullableFilter<"Product"> | number | null;
|
|
995
1026
|
currency?: Prisma.StringFilter<"Product"> | string;
|
|
@@ -1012,6 +1043,7 @@ export type ProductCreateWithoutImagesInput = {
|
|
|
1012
1043
|
content?: string | null;
|
|
1013
1044
|
slug?: string | null;
|
|
1014
1045
|
sku?: string | null;
|
|
1046
|
+
availableQuantity?: number | null;
|
|
1015
1047
|
basePrice: number;
|
|
1016
1048
|
discountedBasePrice?: number | null;
|
|
1017
1049
|
currency: string;
|
|
@@ -1038,6 +1070,7 @@ export type ProductUncheckedCreateWithoutImagesInput = {
|
|
|
1038
1070
|
content?: string | null;
|
|
1039
1071
|
slug?: string | null;
|
|
1040
1072
|
sku?: string | null;
|
|
1073
|
+
availableQuantity?: number | null;
|
|
1041
1074
|
basePrice: number;
|
|
1042
1075
|
discountedBasePrice?: number | null;
|
|
1043
1076
|
currency: string;
|
|
@@ -1081,6 +1114,7 @@ export type ProductCreateWithoutManufacturerInput = {
|
|
|
1081
1114
|
content?: string | null;
|
|
1082
1115
|
slug?: string | null;
|
|
1083
1116
|
sku?: string | null;
|
|
1117
|
+
availableQuantity?: number | null;
|
|
1084
1118
|
basePrice: number;
|
|
1085
1119
|
discountedBasePrice?: number | null;
|
|
1086
1120
|
currency: string;
|
|
@@ -1107,6 +1141,7 @@ export type ProductUncheckedCreateWithoutManufacturerInput = {
|
|
|
1107
1141
|
content?: string | null;
|
|
1108
1142
|
slug?: string | null;
|
|
1109
1143
|
sku?: string | null;
|
|
1144
|
+
availableQuantity?: number | null;
|
|
1110
1145
|
basePrice: number;
|
|
1111
1146
|
discountedBasePrice?: number | null;
|
|
1112
1147
|
currency: string;
|
|
@@ -1154,6 +1189,7 @@ export type ProductCreateWithoutCategoriesInput = {
|
|
|
1154
1189
|
content?: string | null;
|
|
1155
1190
|
slug?: string | null;
|
|
1156
1191
|
sku?: string | null;
|
|
1192
|
+
availableQuantity?: number | null;
|
|
1157
1193
|
basePrice: number;
|
|
1158
1194
|
discountedBasePrice?: number | null;
|
|
1159
1195
|
currency: string;
|
|
@@ -1180,6 +1216,7 @@ export type ProductUncheckedCreateWithoutCategoriesInput = {
|
|
|
1180
1216
|
content?: string | null;
|
|
1181
1217
|
slug?: string | null;
|
|
1182
1218
|
sku?: string | null;
|
|
1219
|
+
availableQuantity?: number | null;
|
|
1183
1220
|
basePrice: number;
|
|
1184
1221
|
discountedBasePrice?: number | null;
|
|
1185
1222
|
currency: string;
|
|
@@ -1223,6 +1260,7 @@ export type ProductCreateWithoutSnapshotsInput = {
|
|
|
1223
1260
|
content?: string | null;
|
|
1224
1261
|
slug?: string | null;
|
|
1225
1262
|
sku?: string | null;
|
|
1263
|
+
availableQuantity?: number | null;
|
|
1226
1264
|
basePrice: number;
|
|
1227
1265
|
discountedBasePrice?: number | null;
|
|
1228
1266
|
currency: string;
|
|
@@ -1249,6 +1287,7 @@ export type ProductUncheckedCreateWithoutSnapshotsInput = {
|
|
|
1249
1287
|
content?: string | null;
|
|
1250
1288
|
slug?: string | null;
|
|
1251
1289
|
sku?: string | null;
|
|
1290
|
+
availableQuantity?: number | null;
|
|
1252
1291
|
basePrice: number;
|
|
1253
1292
|
discountedBasePrice?: number | null;
|
|
1254
1293
|
currency: string;
|
|
@@ -1279,6 +1318,7 @@ export type ProductCreateWithoutLatestSnapshotInput = {
|
|
|
1279
1318
|
content?: string | null;
|
|
1280
1319
|
slug?: string | null;
|
|
1281
1320
|
sku?: string | null;
|
|
1321
|
+
availableQuantity?: number | null;
|
|
1282
1322
|
basePrice: number;
|
|
1283
1323
|
discountedBasePrice?: number | null;
|
|
1284
1324
|
currency: string;
|
|
@@ -1305,6 +1345,7 @@ export type ProductUncheckedCreateWithoutLatestSnapshotInput = {
|
|
|
1305
1345
|
content?: string | null;
|
|
1306
1346
|
slug?: string | null;
|
|
1307
1347
|
sku?: string | null;
|
|
1348
|
+
availableQuantity?: number | null;
|
|
1308
1349
|
basePrice: number;
|
|
1309
1350
|
discountedBasePrice?: number | null;
|
|
1310
1351
|
currency: string;
|
|
@@ -1344,6 +1385,7 @@ export type ProductUpdateWithoutSnapshotsInput = {
|
|
|
1344
1385
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1345
1386
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1346
1387
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1388
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1347
1389
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1348
1390
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1349
1391
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1370,6 +1412,7 @@ export type ProductUncheckedUpdateWithoutSnapshotsInput = {
|
|
|
1370
1412
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1371
1413
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1372
1414
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1415
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1373
1416
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1374
1417
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1375
1418
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1405,6 +1448,7 @@ export type ProductUpdateWithoutLatestSnapshotInput = {
|
|
|
1405
1448
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1406
1449
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1407
1450
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1451
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1408
1452
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1409
1453
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1410
1454
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1431,6 +1475,7 @@ export type ProductUncheckedUpdateWithoutLatestSnapshotInput = {
|
|
|
1431
1475
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1432
1476
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1433
1477
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1478
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1434
1479
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1435
1480
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1436
1481
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1457,6 +1502,7 @@ export type ProductCreateWithoutTranslationsInput = {
|
|
|
1457
1502
|
content?: string | null;
|
|
1458
1503
|
slug?: string | null;
|
|
1459
1504
|
sku?: string | null;
|
|
1505
|
+
availableQuantity?: number | null;
|
|
1460
1506
|
basePrice: number;
|
|
1461
1507
|
discountedBasePrice?: number | null;
|
|
1462
1508
|
currency: string;
|
|
@@ -1483,6 +1529,7 @@ export type ProductUncheckedCreateWithoutTranslationsInput = {
|
|
|
1483
1529
|
content?: string | null;
|
|
1484
1530
|
slug?: string | null;
|
|
1485
1531
|
sku?: string | null;
|
|
1532
|
+
availableQuantity?: number | null;
|
|
1486
1533
|
basePrice: number;
|
|
1487
1534
|
discountedBasePrice?: number | null;
|
|
1488
1535
|
currency: string;
|
|
@@ -1522,6 +1569,7 @@ export type ProductUpdateWithoutTranslationsInput = {
|
|
|
1522
1569
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1523
1570
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1524
1571
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1572
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1525
1573
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1526
1574
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1527
1575
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1548,6 +1596,7 @@ export type ProductUncheckedUpdateWithoutTranslationsInput = {
|
|
|
1548
1596
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1549
1597
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1550
1598
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1599
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1551
1600
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1552
1601
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1553
1602
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1574,6 +1623,7 @@ export type ProductCreateWithoutModifierGroupsInput = {
|
|
|
1574
1623
|
content?: string | null;
|
|
1575
1624
|
slug?: string | null;
|
|
1576
1625
|
sku?: string | null;
|
|
1626
|
+
availableQuantity?: number | null;
|
|
1577
1627
|
basePrice: number;
|
|
1578
1628
|
discountedBasePrice?: number | null;
|
|
1579
1629
|
currency: string;
|
|
@@ -1600,6 +1650,7 @@ export type ProductUncheckedCreateWithoutModifierGroupsInput = {
|
|
|
1600
1650
|
content?: string | null;
|
|
1601
1651
|
slug?: string | null;
|
|
1602
1652
|
sku?: string | null;
|
|
1653
|
+
availableQuantity?: number | null;
|
|
1603
1654
|
basePrice: number;
|
|
1604
1655
|
discountedBasePrice?: number | null;
|
|
1605
1656
|
currency: string;
|
|
@@ -1643,6 +1694,7 @@ export type ProductCreateManyOrganizationInput = {
|
|
|
1643
1694
|
content?: string | null;
|
|
1644
1695
|
slug?: string | null;
|
|
1645
1696
|
sku?: string | null;
|
|
1697
|
+
availableQuantity?: number | null;
|
|
1646
1698
|
basePrice: number;
|
|
1647
1699
|
discountedBasePrice?: number | null;
|
|
1648
1700
|
currency: string;
|
|
@@ -1664,6 +1716,7 @@ export type ProductUpdateWithoutOrganizationInput = {
|
|
|
1664
1716
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1665
1717
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1666
1718
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1719
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1667
1720
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1668
1721
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1669
1722
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1690,6 +1743,7 @@ export type ProductUncheckedUpdateWithoutOrganizationInput = {
|
|
|
1690
1743
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1691
1744
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1692
1745
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1746
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1693
1747
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1694
1748
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1695
1749
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1716,6 +1770,7 @@ export type ProductUncheckedUpdateManyWithoutOrganizationInput = {
|
|
|
1716
1770
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1717
1771
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1718
1772
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1773
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1719
1774
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1720
1775
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1721
1776
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1737,6 +1792,7 @@ export type ProductUpdateWithoutImagesInput = {
|
|
|
1737
1792
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1738
1793
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1739
1794
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1795
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1740
1796
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1741
1797
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1742
1798
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1763,6 +1819,7 @@ export type ProductUncheckedUpdateWithoutImagesInput = {
|
|
|
1763
1819
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1764
1820
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1765
1821
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1822
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1766
1823
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1767
1824
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1768
1825
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1789,6 +1846,7 @@ export type ProductUncheckedUpdateManyWithoutImagesInput = {
|
|
|
1789
1846
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1790
1847
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1791
1848
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1849
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1792
1850
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1793
1851
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1794
1852
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1811,6 +1869,7 @@ export type ProductCreateManyManufacturerInput = {
|
|
|
1811
1869
|
content?: string | null;
|
|
1812
1870
|
slug?: string | null;
|
|
1813
1871
|
sku?: string | null;
|
|
1872
|
+
availableQuantity?: number | null;
|
|
1814
1873
|
basePrice: number;
|
|
1815
1874
|
discountedBasePrice?: number | null;
|
|
1816
1875
|
currency: string;
|
|
@@ -1832,6 +1891,7 @@ export type ProductUpdateWithoutManufacturerInput = {
|
|
|
1832
1891
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1833
1892
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1834
1893
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1894
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1835
1895
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1836
1896
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1837
1897
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1858,6 +1918,7 @@ export type ProductUncheckedUpdateWithoutManufacturerInput = {
|
|
|
1858
1918
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1859
1919
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1860
1920
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1921
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1861
1922
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1862
1923
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1863
1924
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1884,6 +1945,7 @@ export type ProductUncheckedUpdateManyWithoutManufacturerInput = {
|
|
|
1884
1945
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1885
1946
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1886
1947
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1948
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1887
1949
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1888
1950
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1889
1951
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1905,6 +1967,7 @@ export type ProductUpdateWithoutCategoriesInput = {
|
|
|
1905
1967
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1906
1968
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1907
1969
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1970
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1908
1971
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1909
1972
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1910
1973
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1931,6 +1994,7 @@ export type ProductUncheckedUpdateWithoutCategoriesInput = {
|
|
|
1931
1994
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1932
1995
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1933
1996
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1997
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1934
1998
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1935
1999
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1936
2000
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1957,6 +2021,7 @@ export type ProductUncheckedUpdateManyWithoutCategoriesInput = {
|
|
|
1957
2021
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1958
2022
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1959
2023
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2024
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1960
2025
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1961
2026
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1962
2027
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -1979,6 +2044,7 @@ export type ProductUpdateWithoutModifierGroupsInput = {
|
|
|
1979
2044
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1980
2045
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1981
2046
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2047
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1982
2048
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1983
2049
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1984
2050
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -2005,6 +2071,7 @@ export type ProductUncheckedUpdateWithoutModifierGroupsInput = {
|
|
|
2005
2071
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2006
2072
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2007
2073
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2074
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2008
2075
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2009
2076
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2010
2077
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -2031,6 +2098,7 @@ export type ProductUncheckedUpdateManyWithoutModifierGroupsInput = {
|
|
|
2031
2098
|
content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2032
2099
|
slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2033
2100
|
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2101
|
+
availableQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2034
2102
|
basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2035
2103
|
discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2036
2104
|
currency?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -2109,6 +2177,7 @@ export type ProductSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|
|
2109
2177
|
content?: boolean;
|
|
2110
2178
|
slug?: boolean;
|
|
2111
2179
|
sku?: boolean;
|
|
2180
|
+
availableQuantity?: boolean;
|
|
2112
2181
|
basePrice?: boolean;
|
|
2113
2182
|
discountedBasePrice?: boolean;
|
|
2114
2183
|
currency?: boolean;
|
|
@@ -2140,6 +2209,7 @@ export type ProductSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|
|
2140
2209
|
content?: boolean;
|
|
2141
2210
|
slug?: boolean;
|
|
2142
2211
|
sku?: boolean;
|
|
2212
|
+
availableQuantity?: boolean;
|
|
2143
2213
|
basePrice?: boolean;
|
|
2144
2214
|
discountedBasePrice?: boolean;
|
|
2145
2215
|
currency?: boolean;
|
|
@@ -2165,6 +2235,7 @@ export type ProductSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|
|
2165
2235
|
content?: boolean;
|
|
2166
2236
|
slug?: boolean;
|
|
2167
2237
|
sku?: boolean;
|
|
2238
|
+
availableQuantity?: boolean;
|
|
2168
2239
|
basePrice?: boolean;
|
|
2169
2240
|
discountedBasePrice?: boolean;
|
|
2170
2241
|
currency?: boolean;
|
|
@@ -2190,6 +2261,7 @@ export type ProductSelectScalar = {
|
|
|
2190
2261
|
content?: boolean;
|
|
2191
2262
|
slug?: boolean;
|
|
2192
2263
|
sku?: boolean;
|
|
2264
|
+
availableQuantity?: boolean;
|
|
2193
2265
|
basePrice?: boolean;
|
|
2194
2266
|
discountedBasePrice?: boolean;
|
|
2195
2267
|
currency?: boolean;
|
|
@@ -2207,7 +2279,7 @@ export type ProductSelectScalar = {
|
|
|
2207
2279
|
updatedBy?: boolean;
|
|
2208
2280
|
latestSnapshotId?: boolean;
|
|
2209
2281
|
};
|
|
2210
|
-
export type ProductOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "content" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "organizationId" | "manufacturerId" | "tags" | "metadata" | "publishedAt" | "publishedBy" | "deletedAt" | "deletedBy" | "createdAt" | "createdBy" | "updatedAt" | "updatedBy" | "latestSnapshotId", ExtArgs["result"]["product"]>;
|
|
2282
|
+
export type ProductOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "content" | "slug" | "sku" | "availableQuantity" | "basePrice" | "discountedBasePrice" | "currency" | "organizationId" | "manufacturerId" | "tags" | "metadata" | "publishedAt" | "publishedBy" | "deletedAt" | "deletedBy" | "createdAt" | "createdBy" | "updatedAt" | "updatedBy" | "latestSnapshotId", ExtArgs["result"]["product"]>;
|
|
2211
2283
|
export type ProductInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2212
2284
|
images?: boolean | Prisma.Product$imagesArgs<ExtArgs>;
|
|
2213
2285
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
@@ -2246,6 +2318,7 @@ export type $ProductPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|
|
2246
2318
|
content: string | null;
|
|
2247
2319
|
slug: string | null;
|
|
2248
2320
|
sku: string | null;
|
|
2321
|
+
availableQuantity: number | null;
|
|
2249
2322
|
basePrice: number;
|
|
2250
2323
|
discountedBasePrice: number | null;
|
|
2251
2324
|
currency: string;
|
|
@@ -2628,6 +2701,7 @@ export interface ProductFieldRefs {
|
|
|
2628
2701
|
readonly content: Prisma.FieldRef<"Product", 'String'>;
|
|
2629
2702
|
readonly slug: Prisma.FieldRef<"Product", 'String'>;
|
|
2630
2703
|
readonly sku: Prisma.FieldRef<"Product", 'String'>;
|
|
2704
|
+
readonly availableQuantity: Prisma.FieldRef<"Product", 'Int'>;
|
|
2631
2705
|
readonly basePrice: Prisma.FieldRef<"Product", 'Float'>;
|
|
2632
2706
|
readonly discountedBasePrice: Prisma.FieldRef<"Product", 'Float'>;
|
|
2633
2707
|
readonly currency: Prisma.FieldRef<"Product", 'String'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as
|
|
1
|
+
import{z as i}from"@hono/zod-openapi";export const validateRequiredForDefaultLocale=(...t)=>(n,s)=>{const{translations:e,defaultLocale:o}=n;if(e===void 0&&o===void 0)return;if(!Array.isArray(e)||e.length===0){s.addIssue({code:i.ZodIssueCode.custom,message:"Missing translation for the default locale",path:["translations"]});return}if(typeof o!="string"||!o.trim()){s.addIssue({code:i.ZodIssueCode.custom,message:"Default locale is required when translations are provided",path:["defaultLocale"]});return}const r=e.findIndex(a=>a.locale===o);if(r===-1){s.addIssue({code:i.ZodIssueCode.custom,message:"Missing translation for the default locale",path:["translations"]});return}t.forEach(a=>{const l=e[r][a];(typeof l!="string"||!l.trim())&&s.addIssue({code:i.ZodIssueCode.custom,message:"This field is required",path:["translations",r,a]})})},flattenTranslationData=t=>{if(t==null||typeof t!="object"||t instanceof Date)return t;if(Array.isArray(t))return t.map(s=>flattenTranslationData(s));const n={};for(const[s,e]of Object.entries(t))if(s==="translations"&&Array.isArray(e)&&e.length>0){const o=e[0];if(o&&typeof o=="object")for(const[r,a]of Object.entries(o))r!=="id"&&(n[r]=a)}else typeof e=="object"&&e!==null&&!(e instanceof Date)?n[s]=flattenTranslationData(e):n[s]=e;return n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.util.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/core/utils/zod.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CA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AC;IAEvB,sCAAsC;IACtC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAChD,IAAI,GAAG,KAAK,cAAc,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvE,6DAA6D;YAC7D,8CAA8C;YAC9C,MAAM,cAAc,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YAChC,IAAI,cAAc,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;gBACzD,sEAAsE;gBACtE,4BAA4B;gBAC5B,KAAK,MAAM,CAAC,cAAc,EAAE,gBAAgB,CAAC,IAAI,MAAM,CAAC,OAAO,CAC7D,cAAc,CACf,EAAE,CAAC;oBACF,IAAI,cAAc,KAAK,IAAI,EAAE,CAAC;wBAC5B,MAAM,CAAC,cAAc,CAAC,GAAG,gBAAgB,CAAC;oBAC5C,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;aAAM,IACL,OAAO,KAAK,KAAK,QAAQ;YACzB,KAAK,KAAK,IAAI;YACd,CAAC,CAAC,KAAK,YAAY,IAAI,CAAC,EACxB,CAAC;YACD,qCAAqC;YACrC,MAAM,CAAC,GAAG,CAAC,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAC9C,CAAC;aAAM,CAAC;YACN,wCAAwC;YACxC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACtB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -161,6 +161,34 @@ export declare const cartRoute: {
|
|
|
161
161
|
"application/json": {
|
|
162
162
|
schema: z.ZodObject<{
|
|
163
163
|
invalidProductIds: z.ZodArray<z.ZodString>;
|
|
164
|
+
normalizedItems: z.ZodArray<z.ZodObject<{
|
|
165
|
+
productId: z.ZodString;
|
|
166
|
+
quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
167
|
+
modifierGroups: z.ZodArray<z.ZodObject<{
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
modifiers: z.ZodArray<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
quantity: z.ZodDefault<z.ZodNumber>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
adjustments: z.ZodArray<z.ZodObject<{
|
|
176
|
+
productId: z.ZodString;
|
|
177
|
+
modifierGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
modifiers: z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
quantity: z.ZodDefault<z.ZodNumber>;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
}, z.core.$strip>>>;
|
|
184
|
+
reason: z.ZodEnum<{
|
|
185
|
+
invalid_product: "invalid_product";
|
|
186
|
+
out_of_stock: "out_of_stock";
|
|
187
|
+
insufficient_stock: "insufficient_stock";
|
|
188
|
+
}>;
|
|
189
|
+
requestedQuantity: z.ZodNumber;
|
|
190
|
+
resolvedQuantity: z.ZodNumber;
|
|
191
|
+
}, z.core.$strip>>;
|
|
164
192
|
products: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
165
193
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
166
194
|
title: z.ZodDefault<z.ZodString>;
|
|
@@ -172,6 +200,7 @@ export declare const cartRoute: {
|
|
|
172
200
|
sku: z.ZodOptional<z.ZodString>;
|
|
173
201
|
basePrice: z.ZodCoercedNumber<unknown>;
|
|
174
202
|
discountedBasePrice: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
|
|
203
|
+
availableQuantity: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
|
|
175
204
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
176
205
|
id: z.ZodString;
|
|
177
206
|
url: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as t}from"@hono/zod-openapi";import{createApiRoute as r}from"../../core/hono/hono";import{
|
|
1
|
+
import{z as t}from"@hono/zod-openapi";import{createApiRoute as r}from"../../core/hono/hono";import{CartDataSchema as e,CartSchema as o,ErrorSchema as a,HeaderSchema as m,locale as c,OrganizationParams as s}from"../../schemas";const d=r({body:o,description:"Fetches formatted cart data",headers:m,method:"POST",operationId:"getCartData",path:"/:organizationId/cart",pathParams:s,query:t.object({locale:c.default("en")}),responses:{200:e,400:a,401:a},summary:"Get Formatted Cart",tags:["Cart"]});export const cartRoute={getCartData:d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.route.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/features/cart/cart.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"cart.route.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/features/cart/cart.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,cAAc,EACd,UAAU,EACV,WAAW,EACX,YAAY,EACZ,MAAM,EACN,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAEvB,MAAM,gBAAgB,GAAG,cAAc,CAAC;IACtC,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,6BAA6B;IAC1C,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,MAAM;IACd,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,kBAAkB;IAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;KAC7B,CAAC;IACF,SAAS,EAAE;QACT,GAAG,EAAE,cAAc;QACnB,GAAG,EAAE,WAAW;QAChB,GAAG,EAAE,WAAW;KACjB;IACD,OAAO,EAAE,oBAAoB;IAC7B,IAAI,EAAE,CAAC,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,WAAW,EAAE,gBAAgB;CAC9B,CAAC"}
|