@nextorders/food-schema 0.2.0 → 0.2.2
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/dist/index.d.mts +212 -10
- package/dist/index.d.ts +212 -10
- package/dist/index.mjs +22 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -86,9 +86,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
86
86
|
value: z.ZodString;
|
|
87
87
|
}, z.core.$strip>>;
|
|
88
88
|
type: z.ZodEnum<{
|
|
89
|
+
custom: "custom";
|
|
89
90
|
cash: "cash";
|
|
90
91
|
card: "card";
|
|
91
|
-
custom: "custom";
|
|
92
92
|
}>;
|
|
93
93
|
}, z.core.$strip>>;
|
|
94
94
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -150,9 +150,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
150
150
|
value: z.ZodString;
|
|
151
151
|
}, z.core.$strip>>;
|
|
152
152
|
type: z.ZodEnum<{
|
|
153
|
+
custom: "custom";
|
|
153
154
|
cash: "cash";
|
|
154
155
|
card: "card";
|
|
155
|
-
custom: "custom";
|
|
156
156
|
}>;
|
|
157
157
|
}, z.core.$strip>>;
|
|
158
158
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1058,9 +1058,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1058
1058
|
value: z.ZodString;
|
|
1059
1059
|
}, z.core.$strip>>;
|
|
1060
1060
|
type: z.ZodEnum<{
|
|
1061
|
+
custom: "custom";
|
|
1061
1062
|
cash: "cash";
|
|
1062
1063
|
card: "card";
|
|
1063
|
-
custom: "custom";
|
|
1064
1064
|
}>;
|
|
1065
1065
|
}, z.core.$strip>>;
|
|
1066
1066
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1122,9 +1122,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1122
1122
|
value: z.ZodString;
|
|
1123
1123
|
}, z.core.$strip>>;
|
|
1124
1124
|
type: z.ZodEnum<{
|
|
1125
|
+
custom: "custom";
|
|
1125
1126
|
cash: "cash";
|
|
1126
1127
|
card: "card";
|
|
1127
|
-
custom: "custom";
|
|
1128
1128
|
}>;
|
|
1129
1129
|
}, z.core.$strip>>;
|
|
1130
1130
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1798,6 +1798,13 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1798
1798
|
webp: "webp";
|
|
1799
1799
|
}>;
|
|
1800
1800
|
}, z.core.$strip>>;
|
|
1801
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
1802
|
+
id: z.ZodString;
|
|
1803
|
+
url: z.ZodString;
|
|
1804
|
+
type: z.ZodEnum<{
|
|
1805
|
+
"video/mp4": "video/mp4";
|
|
1806
|
+
}>;
|
|
1807
|
+
}, z.core.$strip>>;
|
|
1801
1808
|
weightUnit: z.ZodEnum<{
|
|
1802
1809
|
g: "g";
|
|
1803
1810
|
kg: "kg";
|
|
@@ -1816,6 +1823,27 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1816
1823
|
fat: z.ZodNumber;
|
|
1817
1824
|
}, z.core.$strip>>;
|
|
1818
1825
|
}, z.core.$strip>>;
|
|
1826
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
1827
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1828
|
+
id: z.ZodString;
|
|
1829
|
+
productId: z.ZodString;
|
|
1830
|
+
productVariantId: z.ZodString;
|
|
1831
|
+
}, z.core.$strip>>>;
|
|
1832
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1833
|
+
title: z.ZodArray<z.ZodObject<{
|
|
1834
|
+
locale: z.ZodEnum<{
|
|
1835
|
+
de: "de";
|
|
1836
|
+
en: "en";
|
|
1837
|
+
es: "es";
|
|
1838
|
+
fr: "fr";
|
|
1839
|
+
ka: "ka";
|
|
1840
|
+
ru: "ru";
|
|
1841
|
+
zh_cn: "zh_cn";
|
|
1842
|
+
}>;
|
|
1843
|
+
value: z.ZodString;
|
|
1844
|
+
}, z.core.$strip>>;
|
|
1845
|
+
}, z.core.$strip>>>;
|
|
1846
|
+
}, z.core.$strip>>;
|
|
1819
1847
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1820
1848
|
id: z.ZodString;
|
|
1821
1849
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -2426,9 +2454,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2426
2454
|
value: z.ZodString;
|
|
2427
2455
|
}, z.core.$strip>>;
|
|
2428
2456
|
type: z.ZodEnum<{
|
|
2457
|
+
custom: "custom";
|
|
2429
2458
|
cash: "cash";
|
|
2430
2459
|
card: "card";
|
|
2431
|
-
custom: "custom";
|
|
2432
2460
|
}>;
|
|
2433
2461
|
}, z.core.$strip>>;
|
|
2434
2462
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2490,9 +2518,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2490
2518
|
value: z.ZodString;
|
|
2491
2519
|
}, z.core.$strip>>;
|
|
2492
2520
|
type: z.ZodEnum<{
|
|
2521
|
+
custom: "custom";
|
|
2493
2522
|
cash: "cash";
|
|
2494
2523
|
card: "card";
|
|
2495
|
-
custom: "custom";
|
|
2496
2524
|
}>;
|
|
2497
2525
|
}, z.core.$strip>>;
|
|
2498
2526
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3043,6 +3071,13 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3043
3071
|
webp: "webp";
|
|
3044
3072
|
}>;
|
|
3045
3073
|
}, z.core.$strip>>;
|
|
3074
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3075
|
+
id: z.ZodString;
|
|
3076
|
+
url: z.ZodString;
|
|
3077
|
+
type: z.ZodEnum<{
|
|
3078
|
+
"video/mp4": "video/mp4";
|
|
3079
|
+
}>;
|
|
3080
|
+
}, z.core.$strip>>;
|
|
3046
3081
|
weightUnit: z.ZodEnum<{
|
|
3047
3082
|
g: "g";
|
|
3048
3083
|
kg: "kg";
|
|
@@ -3061,6 +3096,27 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3061
3096
|
fat: z.ZodNumber;
|
|
3062
3097
|
}, z.core.$strip>>;
|
|
3063
3098
|
}, z.core.$strip>>;
|
|
3099
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
3100
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3101
|
+
id: z.ZodString;
|
|
3102
|
+
productId: z.ZodString;
|
|
3103
|
+
productVariantId: z.ZodString;
|
|
3104
|
+
}, z.core.$strip>>>;
|
|
3105
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3106
|
+
title: z.ZodArray<z.ZodObject<{
|
|
3107
|
+
locale: z.ZodEnum<{
|
|
3108
|
+
de: "de";
|
|
3109
|
+
en: "en";
|
|
3110
|
+
es: "es";
|
|
3111
|
+
fr: "fr";
|
|
3112
|
+
ka: "ka";
|
|
3113
|
+
ru: "ru";
|
|
3114
|
+
zh_cn: "zh_cn";
|
|
3115
|
+
}>;
|
|
3116
|
+
value: z.ZodString;
|
|
3117
|
+
}, z.core.$strip>>;
|
|
3118
|
+
}, z.core.$strip>>>;
|
|
3119
|
+
}, z.core.$strip>>;
|
|
3064
3120
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3065
3121
|
id: z.ZodString;
|
|
3066
3122
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3337,6 +3393,13 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3337
3393
|
webp: "webp";
|
|
3338
3394
|
}>;
|
|
3339
3395
|
}, z.core.$strip>>;
|
|
3396
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3397
|
+
id: z.ZodString;
|
|
3398
|
+
url: z.ZodString;
|
|
3399
|
+
type: z.ZodEnum<{
|
|
3400
|
+
"video/mp4": "video/mp4";
|
|
3401
|
+
}>;
|
|
3402
|
+
}, z.core.$strip>>;
|
|
3340
3403
|
weightUnit: z.ZodEnum<{
|
|
3341
3404
|
g: "g";
|
|
3342
3405
|
kg: "kg";
|
|
@@ -3355,6 +3418,27 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3355
3418
|
fat: z.ZodNumber;
|
|
3356
3419
|
}, z.core.$strip>>;
|
|
3357
3420
|
}, z.core.$strip>>;
|
|
3421
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
3422
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3423
|
+
id: z.ZodString;
|
|
3424
|
+
productId: z.ZodString;
|
|
3425
|
+
productVariantId: z.ZodString;
|
|
3426
|
+
}, z.core.$strip>>>;
|
|
3427
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3428
|
+
title: z.ZodArray<z.ZodObject<{
|
|
3429
|
+
locale: z.ZodEnum<{
|
|
3430
|
+
de: "de";
|
|
3431
|
+
en: "en";
|
|
3432
|
+
es: "es";
|
|
3433
|
+
fr: "fr";
|
|
3434
|
+
ka: "ka";
|
|
3435
|
+
ru: "ru";
|
|
3436
|
+
zh_cn: "zh_cn";
|
|
3437
|
+
}>;
|
|
3438
|
+
value: z.ZodString;
|
|
3439
|
+
}, z.core.$strip>>;
|
|
3440
|
+
}, z.core.$strip>>>;
|
|
3441
|
+
}, z.core.$strip>>;
|
|
3358
3442
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3359
3443
|
id: z.ZodString;
|
|
3360
3444
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3468,6 +3552,13 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3468
3552
|
webp: "webp";
|
|
3469
3553
|
}>;
|
|
3470
3554
|
}, z.core.$strip>>;
|
|
3555
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3556
|
+
id: z.ZodString;
|
|
3557
|
+
url: z.ZodString;
|
|
3558
|
+
type: z.ZodEnum<{
|
|
3559
|
+
"video/mp4": "video/mp4";
|
|
3560
|
+
}>;
|
|
3561
|
+
}, z.core.$strip>>;
|
|
3471
3562
|
weightUnit: z.ZodEnum<{
|
|
3472
3563
|
g: "g";
|
|
3473
3564
|
kg: "kg";
|
|
@@ -3486,6 +3577,27 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3486
3577
|
fat: z.ZodNumber;
|
|
3487
3578
|
}, z.core.$strip>>;
|
|
3488
3579
|
}, z.core.$strip>>;
|
|
3580
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
3581
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3582
|
+
id: z.ZodString;
|
|
3583
|
+
productId: z.ZodString;
|
|
3584
|
+
productVariantId: z.ZodString;
|
|
3585
|
+
}, z.core.$strip>>>;
|
|
3586
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3587
|
+
title: z.ZodArray<z.ZodObject<{
|
|
3588
|
+
locale: z.ZodEnum<{
|
|
3589
|
+
de: "de";
|
|
3590
|
+
en: "en";
|
|
3591
|
+
es: "es";
|
|
3592
|
+
fr: "fr";
|
|
3593
|
+
ka: "ka";
|
|
3594
|
+
ru: "ru";
|
|
3595
|
+
zh_cn: "zh_cn";
|
|
3596
|
+
}>;
|
|
3597
|
+
value: z.ZodString;
|
|
3598
|
+
}, z.core.$strip>>;
|
|
3599
|
+
}, z.core.$strip>>>;
|
|
3600
|
+
}, z.core.$strip>>;
|
|
3489
3601
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3490
3602
|
id: z.ZodString;
|
|
3491
3603
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3935,9 +4047,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
3935
4047
|
type Order = z.infer<typeof OrderSchema>;
|
|
3936
4048
|
|
|
3937
4049
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
4050
|
+
custom: "custom";
|
|
3938
4051
|
cash: "cash";
|
|
3939
4052
|
card: "card";
|
|
3940
|
-
custom: "custom";
|
|
3941
4053
|
}>;
|
|
3942
4054
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
3943
4055
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -3955,9 +4067,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
3955
4067
|
value: z.ZodString;
|
|
3956
4068
|
}, z.core.$strip>>;
|
|
3957
4069
|
type: z.ZodEnum<{
|
|
4070
|
+
custom: "custom";
|
|
3958
4071
|
cash: "cash";
|
|
3959
4072
|
card: "card";
|
|
3960
|
-
custom: "custom";
|
|
3961
4073
|
}>;
|
|
3962
4074
|
}, z.core.$strip>;
|
|
3963
4075
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4014,6 +4126,13 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4014
4126
|
webp: "webp";
|
|
4015
4127
|
}>;
|
|
4016
4128
|
}, z.core.$strip>>;
|
|
4129
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
4130
|
+
id: z.ZodString;
|
|
4131
|
+
url: z.ZodString;
|
|
4132
|
+
type: z.ZodEnum<{
|
|
4133
|
+
"video/mp4": "video/mp4";
|
|
4134
|
+
}>;
|
|
4135
|
+
}, z.core.$strip>>;
|
|
4017
4136
|
weightUnit: z.ZodEnum<{
|
|
4018
4137
|
g: "g";
|
|
4019
4138
|
kg: "kg";
|
|
@@ -4039,6 +4158,48 @@ declare const RecommendedProductSchema: z.ZodObject<{
|
|
|
4039
4158
|
productVariantId: z.ZodString;
|
|
4040
4159
|
}, z.core.$strip>;
|
|
4041
4160
|
type RecommendedProduct = z.infer<typeof RecommendedProductSchema>;
|
|
4161
|
+
declare const CompositionIngredientSchema: z.ZodObject<{
|
|
4162
|
+
title: z.ZodArray<z.ZodObject<{
|
|
4163
|
+
locale: z.ZodEnum<{
|
|
4164
|
+
de: "de";
|
|
4165
|
+
en: "en";
|
|
4166
|
+
es: "es";
|
|
4167
|
+
fr: "fr";
|
|
4168
|
+
ka: "ka";
|
|
4169
|
+
ru: "ru";
|
|
4170
|
+
zh_cn: "zh_cn";
|
|
4171
|
+
}>;
|
|
4172
|
+
value: z.ZodString;
|
|
4173
|
+
}, z.core.$strip>>;
|
|
4174
|
+
}, z.core.$strip>;
|
|
4175
|
+
declare const CompositionProductSchema: z.ZodObject<{
|
|
4176
|
+
id: z.ZodString;
|
|
4177
|
+
productId: z.ZodString;
|
|
4178
|
+
productVariantId: z.ZodString;
|
|
4179
|
+
}, z.core.$strip>;
|
|
4180
|
+
type CompositionProductItem = z.infer<typeof CompositionProductSchema>;
|
|
4181
|
+
declare const ProductCompositionSchema: z.ZodObject<{
|
|
4182
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4183
|
+
id: z.ZodString;
|
|
4184
|
+
productId: z.ZodString;
|
|
4185
|
+
productVariantId: z.ZodString;
|
|
4186
|
+
}, z.core.$strip>>>;
|
|
4187
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4188
|
+
title: z.ZodArray<z.ZodObject<{
|
|
4189
|
+
locale: z.ZodEnum<{
|
|
4190
|
+
de: "de";
|
|
4191
|
+
en: "en";
|
|
4192
|
+
es: "es";
|
|
4193
|
+
fr: "fr";
|
|
4194
|
+
ka: "ka";
|
|
4195
|
+
ru: "ru";
|
|
4196
|
+
zh_cn: "zh_cn";
|
|
4197
|
+
}>;
|
|
4198
|
+
value: z.ZodString;
|
|
4199
|
+
}, z.core.$strip>>;
|
|
4200
|
+
}, z.core.$strip>>>;
|
|
4201
|
+
}, z.core.$strip>;
|
|
4202
|
+
type ProductComposition = z.infer<typeof ProductCompositionSchema>;
|
|
4042
4203
|
declare const ProductSchema: z.ZodObject<{
|
|
4043
4204
|
id: z.ZodString;
|
|
4044
4205
|
slug: z.ZodString;
|
|
@@ -4097,6 +4258,13 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4097
4258
|
webp: "webp";
|
|
4098
4259
|
}>;
|
|
4099
4260
|
}, z.core.$strip>>;
|
|
4261
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
4262
|
+
id: z.ZodString;
|
|
4263
|
+
url: z.ZodString;
|
|
4264
|
+
type: z.ZodEnum<{
|
|
4265
|
+
"video/mp4": "video/mp4";
|
|
4266
|
+
}>;
|
|
4267
|
+
}, z.core.$strip>>;
|
|
4100
4268
|
weightUnit: z.ZodEnum<{
|
|
4101
4269
|
g: "g";
|
|
4102
4270
|
kg: "kg";
|
|
@@ -4115,6 +4283,27 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4115
4283
|
fat: z.ZodNumber;
|
|
4116
4284
|
}, z.core.$strip>>;
|
|
4117
4285
|
}, z.core.$strip>>;
|
|
4286
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
4287
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4288
|
+
id: z.ZodString;
|
|
4289
|
+
productId: z.ZodString;
|
|
4290
|
+
productVariantId: z.ZodString;
|
|
4291
|
+
}, z.core.$strip>>>;
|
|
4292
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4293
|
+
title: z.ZodArray<z.ZodObject<{
|
|
4294
|
+
locale: z.ZodEnum<{
|
|
4295
|
+
de: "de";
|
|
4296
|
+
en: "en";
|
|
4297
|
+
es: "es";
|
|
4298
|
+
fr: "fr";
|
|
4299
|
+
ka: "ka";
|
|
4300
|
+
ru: "ru";
|
|
4301
|
+
zh_cn: "zh_cn";
|
|
4302
|
+
}>;
|
|
4303
|
+
value: z.ZodString;
|
|
4304
|
+
}, z.core.$strip>>;
|
|
4305
|
+
}, z.core.$strip>>>;
|
|
4306
|
+
}, z.core.$strip>>;
|
|
4118
4307
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4119
4308
|
id: z.ZodString;
|
|
4120
4309
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -4319,6 +4508,19 @@ declare const OpeningStatusSchema: z.ZodObject<{
|
|
|
4319
4508
|
}, z.core.$strip>;
|
|
4320
4509
|
type OpeningStatus = z.infer<typeof OpeningStatusSchema>;
|
|
4321
4510
|
|
|
4511
|
+
declare const VideoTypeSchema: z.ZodEnum<{
|
|
4512
|
+
"video/mp4": "video/mp4";
|
|
4513
|
+
}>;
|
|
4514
|
+
type VideoType = z.infer<typeof VideoTypeSchema>;
|
|
4515
|
+
declare const VideoSchema: z.ZodObject<{
|
|
4516
|
+
id: z.ZodString;
|
|
4517
|
+
url: z.ZodString;
|
|
4518
|
+
type: z.ZodEnum<{
|
|
4519
|
+
"video/mp4": "video/mp4";
|
|
4520
|
+
}>;
|
|
4521
|
+
}, z.core.$strip>;
|
|
4522
|
+
type Video = z.infer<typeof VideoSchema>;
|
|
4523
|
+
|
|
4322
4524
|
declare const WarehouseAddressSchema: z.ZodObject<{
|
|
4323
4525
|
street: z.ZodArray<z.ZodObject<{
|
|
4324
4526
|
locale: z.ZodEnum<{
|
|
@@ -4365,5 +4567,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
4365
4567
|
}, z.core.$strip>;
|
|
4366
4568
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
4367
4569
|
|
|
4368
|
-
export { BaseResponseSchema, ChannelSchema, CountryCodeSchema, CurrencyCodeSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
|
4369
|
-
export type { Channel, CountryCode, CurrencyCode, DaySchedule, DeliveryMethod, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, Image, ImageFormat, ImageSize, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductVariant, RecommendedProduct, Schedule, TimePeriod, TimeType, TimeZone, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
|
|
4570
|
+
export { BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
|
4571
|
+
export type { Channel, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, DeliveryMethod, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, Image, ImageFormat, ImageSize, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
|
package/dist/index.d.ts
CHANGED
|
@@ -86,9 +86,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
86
86
|
value: z.ZodString;
|
|
87
87
|
}, z.core.$strip>>;
|
|
88
88
|
type: z.ZodEnum<{
|
|
89
|
+
custom: "custom";
|
|
89
90
|
cash: "cash";
|
|
90
91
|
card: "card";
|
|
91
|
-
custom: "custom";
|
|
92
92
|
}>;
|
|
93
93
|
}, z.core.$strip>>;
|
|
94
94
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -150,9 +150,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
150
150
|
value: z.ZodString;
|
|
151
151
|
}, z.core.$strip>>;
|
|
152
152
|
type: z.ZodEnum<{
|
|
153
|
+
custom: "custom";
|
|
153
154
|
cash: "cash";
|
|
154
155
|
card: "card";
|
|
155
|
-
custom: "custom";
|
|
156
156
|
}>;
|
|
157
157
|
}, z.core.$strip>>;
|
|
158
158
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1058,9 +1058,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1058
1058
|
value: z.ZodString;
|
|
1059
1059
|
}, z.core.$strip>>;
|
|
1060
1060
|
type: z.ZodEnum<{
|
|
1061
|
+
custom: "custom";
|
|
1061
1062
|
cash: "cash";
|
|
1062
1063
|
card: "card";
|
|
1063
|
-
custom: "custom";
|
|
1064
1064
|
}>;
|
|
1065
1065
|
}, z.core.$strip>>;
|
|
1066
1066
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1122,9 +1122,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1122
1122
|
value: z.ZodString;
|
|
1123
1123
|
}, z.core.$strip>>;
|
|
1124
1124
|
type: z.ZodEnum<{
|
|
1125
|
+
custom: "custom";
|
|
1125
1126
|
cash: "cash";
|
|
1126
1127
|
card: "card";
|
|
1127
|
-
custom: "custom";
|
|
1128
1128
|
}>;
|
|
1129
1129
|
}, z.core.$strip>>;
|
|
1130
1130
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1798,6 +1798,13 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1798
1798
|
webp: "webp";
|
|
1799
1799
|
}>;
|
|
1800
1800
|
}, z.core.$strip>>;
|
|
1801
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
1802
|
+
id: z.ZodString;
|
|
1803
|
+
url: z.ZodString;
|
|
1804
|
+
type: z.ZodEnum<{
|
|
1805
|
+
"video/mp4": "video/mp4";
|
|
1806
|
+
}>;
|
|
1807
|
+
}, z.core.$strip>>;
|
|
1801
1808
|
weightUnit: z.ZodEnum<{
|
|
1802
1809
|
g: "g";
|
|
1803
1810
|
kg: "kg";
|
|
@@ -1816,6 +1823,27 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1816
1823
|
fat: z.ZodNumber;
|
|
1817
1824
|
}, z.core.$strip>>;
|
|
1818
1825
|
}, z.core.$strip>>;
|
|
1826
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
1827
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1828
|
+
id: z.ZodString;
|
|
1829
|
+
productId: z.ZodString;
|
|
1830
|
+
productVariantId: z.ZodString;
|
|
1831
|
+
}, z.core.$strip>>>;
|
|
1832
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1833
|
+
title: z.ZodArray<z.ZodObject<{
|
|
1834
|
+
locale: z.ZodEnum<{
|
|
1835
|
+
de: "de";
|
|
1836
|
+
en: "en";
|
|
1837
|
+
es: "es";
|
|
1838
|
+
fr: "fr";
|
|
1839
|
+
ka: "ka";
|
|
1840
|
+
ru: "ru";
|
|
1841
|
+
zh_cn: "zh_cn";
|
|
1842
|
+
}>;
|
|
1843
|
+
value: z.ZodString;
|
|
1844
|
+
}, z.core.$strip>>;
|
|
1845
|
+
}, z.core.$strip>>>;
|
|
1846
|
+
}, z.core.$strip>>;
|
|
1819
1847
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1820
1848
|
id: z.ZodString;
|
|
1821
1849
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -2426,9 +2454,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2426
2454
|
value: z.ZodString;
|
|
2427
2455
|
}, z.core.$strip>>;
|
|
2428
2456
|
type: z.ZodEnum<{
|
|
2457
|
+
custom: "custom";
|
|
2429
2458
|
cash: "cash";
|
|
2430
2459
|
card: "card";
|
|
2431
|
-
custom: "custom";
|
|
2432
2460
|
}>;
|
|
2433
2461
|
}, z.core.$strip>>;
|
|
2434
2462
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2490,9 +2518,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2490
2518
|
value: z.ZodString;
|
|
2491
2519
|
}, z.core.$strip>>;
|
|
2492
2520
|
type: z.ZodEnum<{
|
|
2521
|
+
custom: "custom";
|
|
2493
2522
|
cash: "cash";
|
|
2494
2523
|
card: "card";
|
|
2495
|
-
custom: "custom";
|
|
2496
2524
|
}>;
|
|
2497
2525
|
}, z.core.$strip>>;
|
|
2498
2526
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3043,6 +3071,13 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3043
3071
|
webp: "webp";
|
|
3044
3072
|
}>;
|
|
3045
3073
|
}, z.core.$strip>>;
|
|
3074
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3075
|
+
id: z.ZodString;
|
|
3076
|
+
url: z.ZodString;
|
|
3077
|
+
type: z.ZodEnum<{
|
|
3078
|
+
"video/mp4": "video/mp4";
|
|
3079
|
+
}>;
|
|
3080
|
+
}, z.core.$strip>>;
|
|
3046
3081
|
weightUnit: z.ZodEnum<{
|
|
3047
3082
|
g: "g";
|
|
3048
3083
|
kg: "kg";
|
|
@@ -3061,6 +3096,27 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3061
3096
|
fat: z.ZodNumber;
|
|
3062
3097
|
}, z.core.$strip>>;
|
|
3063
3098
|
}, z.core.$strip>>;
|
|
3099
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
3100
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3101
|
+
id: z.ZodString;
|
|
3102
|
+
productId: z.ZodString;
|
|
3103
|
+
productVariantId: z.ZodString;
|
|
3104
|
+
}, z.core.$strip>>>;
|
|
3105
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3106
|
+
title: z.ZodArray<z.ZodObject<{
|
|
3107
|
+
locale: z.ZodEnum<{
|
|
3108
|
+
de: "de";
|
|
3109
|
+
en: "en";
|
|
3110
|
+
es: "es";
|
|
3111
|
+
fr: "fr";
|
|
3112
|
+
ka: "ka";
|
|
3113
|
+
ru: "ru";
|
|
3114
|
+
zh_cn: "zh_cn";
|
|
3115
|
+
}>;
|
|
3116
|
+
value: z.ZodString;
|
|
3117
|
+
}, z.core.$strip>>;
|
|
3118
|
+
}, z.core.$strip>>>;
|
|
3119
|
+
}, z.core.$strip>>;
|
|
3064
3120
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3065
3121
|
id: z.ZodString;
|
|
3066
3122
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3337,6 +3393,13 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3337
3393
|
webp: "webp";
|
|
3338
3394
|
}>;
|
|
3339
3395
|
}, z.core.$strip>>;
|
|
3396
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3397
|
+
id: z.ZodString;
|
|
3398
|
+
url: z.ZodString;
|
|
3399
|
+
type: z.ZodEnum<{
|
|
3400
|
+
"video/mp4": "video/mp4";
|
|
3401
|
+
}>;
|
|
3402
|
+
}, z.core.$strip>>;
|
|
3340
3403
|
weightUnit: z.ZodEnum<{
|
|
3341
3404
|
g: "g";
|
|
3342
3405
|
kg: "kg";
|
|
@@ -3355,6 +3418,27 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3355
3418
|
fat: z.ZodNumber;
|
|
3356
3419
|
}, z.core.$strip>>;
|
|
3357
3420
|
}, z.core.$strip>>;
|
|
3421
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
3422
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3423
|
+
id: z.ZodString;
|
|
3424
|
+
productId: z.ZodString;
|
|
3425
|
+
productVariantId: z.ZodString;
|
|
3426
|
+
}, z.core.$strip>>>;
|
|
3427
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3428
|
+
title: z.ZodArray<z.ZodObject<{
|
|
3429
|
+
locale: z.ZodEnum<{
|
|
3430
|
+
de: "de";
|
|
3431
|
+
en: "en";
|
|
3432
|
+
es: "es";
|
|
3433
|
+
fr: "fr";
|
|
3434
|
+
ka: "ka";
|
|
3435
|
+
ru: "ru";
|
|
3436
|
+
zh_cn: "zh_cn";
|
|
3437
|
+
}>;
|
|
3438
|
+
value: z.ZodString;
|
|
3439
|
+
}, z.core.$strip>>;
|
|
3440
|
+
}, z.core.$strip>>>;
|
|
3441
|
+
}, z.core.$strip>>;
|
|
3358
3442
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3359
3443
|
id: z.ZodString;
|
|
3360
3444
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3468,6 +3552,13 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3468
3552
|
webp: "webp";
|
|
3469
3553
|
}>;
|
|
3470
3554
|
}, z.core.$strip>>;
|
|
3555
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3556
|
+
id: z.ZodString;
|
|
3557
|
+
url: z.ZodString;
|
|
3558
|
+
type: z.ZodEnum<{
|
|
3559
|
+
"video/mp4": "video/mp4";
|
|
3560
|
+
}>;
|
|
3561
|
+
}, z.core.$strip>>;
|
|
3471
3562
|
weightUnit: z.ZodEnum<{
|
|
3472
3563
|
g: "g";
|
|
3473
3564
|
kg: "kg";
|
|
@@ -3486,6 +3577,27 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3486
3577
|
fat: z.ZodNumber;
|
|
3487
3578
|
}, z.core.$strip>>;
|
|
3488
3579
|
}, z.core.$strip>>;
|
|
3580
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
3581
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3582
|
+
id: z.ZodString;
|
|
3583
|
+
productId: z.ZodString;
|
|
3584
|
+
productVariantId: z.ZodString;
|
|
3585
|
+
}, z.core.$strip>>>;
|
|
3586
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3587
|
+
title: z.ZodArray<z.ZodObject<{
|
|
3588
|
+
locale: z.ZodEnum<{
|
|
3589
|
+
de: "de";
|
|
3590
|
+
en: "en";
|
|
3591
|
+
es: "es";
|
|
3592
|
+
fr: "fr";
|
|
3593
|
+
ka: "ka";
|
|
3594
|
+
ru: "ru";
|
|
3595
|
+
zh_cn: "zh_cn";
|
|
3596
|
+
}>;
|
|
3597
|
+
value: z.ZodString;
|
|
3598
|
+
}, z.core.$strip>>;
|
|
3599
|
+
}, z.core.$strip>>>;
|
|
3600
|
+
}, z.core.$strip>>;
|
|
3489
3601
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3490
3602
|
id: z.ZodString;
|
|
3491
3603
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3935,9 +4047,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
3935
4047
|
type Order = z.infer<typeof OrderSchema>;
|
|
3936
4048
|
|
|
3937
4049
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
4050
|
+
custom: "custom";
|
|
3938
4051
|
cash: "cash";
|
|
3939
4052
|
card: "card";
|
|
3940
|
-
custom: "custom";
|
|
3941
4053
|
}>;
|
|
3942
4054
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
3943
4055
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -3955,9 +4067,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
3955
4067
|
value: z.ZodString;
|
|
3956
4068
|
}, z.core.$strip>>;
|
|
3957
4069
|
type: z.ZodEnum<{
|
|
4070
|
+
custom: "custom";
|
|
3958
4071
|
cash: "cash";
|
|
3959
4072
|
card: "card";
|
|
3960
|
-
custom: "custom";
|
|
3961
4073
|
}>;
|
|
3962
4074
|
}, z.core.$strip>;
|
|
3963
4075
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4014,6 +4126,13 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4014
4126
|
webp: "webp";
|
|
4015
4127
|
}>;
|
|
4016
4128
|
}, z.core.$strip>>;
|
|
4129
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
4130
|
+
id: z.ZodString;
|
|
4131
|
+
url: z.ZodString;
|
|
4132
|
+
type: z.ZodEnum<{
|
|
4133
|
+
"video/mp4": "video/mp4";
|
|
4134
|
+
}>;
|
|
4135
|
+
}, z.core.$strip>>;
|
|
4017
4136
|
weightUnit: z.ZodEnum<{
|
|
4018
4137
|
g: "g";
|
|
4019
4138
|
kg: "kg";
|
|
@@ -4039,6 +4158,48 @@ declare const RecommendedProductSchema: z.ZodObject<{
|
|
|
4039
4158
|
productVariantId: z.ZodString;
|
|
4040
4159
|
}, z.core.$strip>;
|
|
4041
4160
|
type RecommendedProduct = z.infer<typeof RecommendedProductSchema>;
|
|
4161
|
+
declare const CompositionIngredientSchema: z.ZodObject<{
|
|
4162
|
+
title: z.ZodArray<z.ZodObject<{
|
|
4163
|
+
locale: z.ZodEnum<{
|
|
4164
|
+
de: "de";
|
|
4165
|
+
en: "en";
|
|
4166
|
+
es: "es";
|
|
4167
|
+
fr: "fr";
|
|
4168
|
+
ka: "ka";
|
|
4169
|
+
ru: "ru";
|
|
4170
|
+
zh_cn: "zh_cn";
|
|
4171
|
+
}>;
|
|
4172
|
+
value: z.ZodString;
|
|
4173
|
+
}, z.core.$strip>>;
|
|
4174
|
+
}, z.core.$strip>;
|
|
4175
|
+
declare const CompositionProductSchema: z.ZodObject<{
|
|
4176
|
+
id: z.ZodString;
|
|
4177
|
+
productId: z.ZodString;
|
|
4178
|
+
productVariantId: z.ZodString;
|
|
4179
|
+
}, z.core.$strip>;
|
|
4180
|
+
type CompositionProductItem = z.infer<typeof CompositionProductSchema>;
|
|
4181
|
+
declare const ProductCompositionSchema: z.ZodObject<{
|
|
4182
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4183
|
+
id: z.ZodString;
|
|
4184
|
+
productId: z.ZodString;
|
|
4185
|
+
productVariantId: z.ZodString;
|
|
4186
|
+
}, z.core.$strip>>>;
|
|
4187
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4188
|
+
title: z.ZodArray<z.ZodObject<{
|
|
4189
|
+
locale: z.ZodEnum<{
|
|
4190
|
+
de: "de";
|
|
4191
|
+
en: "en";
|
|
4192
|
+
es: "es";
|
|
4193
|
+
fr: "fr";
|
|
4194
|
+
ka: "ka";
|
|
4195
|
+
ru: "ru";
|
|
4196
|
+
zh_cn: "zh_cn";
|
|
4197
|
+
}>;
|
|
4198
|
+
value: z.ZodString;
|
|
4199
|
+
}, z.core.$strip>>;
|
|
4200
|
+
}, z.core.$strip>>>;
|
|
4201
|
+
}, z.core.$strip>;
|
|
4202
|
+
type ProductComposition = z.infer<typeof ProductCompositionSchema>;
|
|
4042
4203
|
declare const ProductSchema: z.ZodObject<{
|
|
4043
4204
|
id: z.ZodString;
|
|
4044
4205
|
slug: z.ZodString;
|
|
@@ -4097,6 +4258,13 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4097
4258
|
webp: "webp";
|
|
4098
4259
|
}>;
|
|
4099
4260
|
}, z.core.$strip>>;
|
|
4261
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
4262
|
+
id: z.ZodString;
|
|
4263
|
+
url: z.ZodString;
|
|
4264
|
+
type: z.ZodEnum<{
|
|
4265
|
+
"video/mp4": "video/mp4";
|
|
4266
|
+
}>;
|
|
4267
|
+
}, z.core.$strip>>;
|
|
4100
4268
|
weightUnit: z.ZodEnum<{
|
|
4101
4269
|
g: "g";
|
|
4102
4270
|
kg: "kg";
|
|
@@ -4115,6 +4283,27 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4115
4283
|
fat: z.ZodNumber;
|
|
4116
4284
|
}, z.core.$strip>>;
|
|
4117
4285
|
}, z.core.$strip>>;
|
|
4286
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
4287
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4288
|
+
id: z.ZodString;
|
|
4289
|
+
productId: z.ZodString;
|
|
4290
|
+
productVariantId: z.ZodString;
|
|
4291
|
+
}, z.core.$strip>>>;
|
|
4292
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4293
|
+
title: z.ZodArray<z.ZodObject<{
|
|
4294
|
+
locale: z.ZodEnum<{
|
|
4295
|
+
de: "de";
|
|
4296
|
+
en: "en";
|
|
4297
|
+
es: "es";
|
|
4298
|
+
fr: "fr";
|
|
4299
|
+
ka: "ka";
|
|
4300
|
+
ru: "ru";
|
|
4301
|
+
zh_cn: "zh_cn";
|
|
4302
|
+
}>;
|
|
4303
|
+
value: z.ZodString;
|
|
4304
|
+
}, z.core.$strip>>;
|
|
4305
|
+
}, z.core.$strip>>>;
|
|
4306
|
+
}, z.core.$strip>>;
|
|
4118
4307
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4119
4308
|
id: z.ZodString;
|
|
4120
4309
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -4319,6 +4508,19 @@ declare const OpeningStatusSchema: z.ZodObject<{
|
|
|
4319
4508
|
}, z.core.$strip>;
|
|
4320
4509
|
type OpeningStatus = z.infer<typeof OpeningStatusSchema>;
|
|
4321
4510
|
|
|
4511
|
+
declare const VideoTypeSchema: z.ZodEnum<{
|
|
4512
|
+
"video/mp4": "video/mp4";
|
|
4513
|
+
}>;
|
|
4514
|
+
type VideoType = z.infer<typeof VideoTypeSchema>;
|
|
4515
|
+
declare const VideoSchema: z.ZodObject<{
|
|
4516
|
+
id: z.ZodString;
|
|
4517
|
+
url: z.ZodString;
|
|
4518
|
+
type: z.ZodEnum<{
|
|
4519
|
+
"video/mp4": "video/mp4";
|
|
4520
|
+
}>;
|
|
4521
|
+
}, z.core.$strip>;
|
|
4522
|
+
type Video = z.infer<typeof VideoSchema>;
|
|
4523
|
+
|
|
4322
4524
|
declare const WarehouseAddressSchema: z.ZodObject<{
|
|
4323
4525
|
street: z.ZodArray<z.ZodObject<{
|
|
4324
4526
|
locale: z.ZodEnum<{
|
|
@@ -4365,5 +4567,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
4365
4567
|
}, z.core.$strip>;
|
|
4366
4568
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
4367
4569
|
|
|
4368
|
-
export { BaseResponseSchema, ChannelSchema, CountryCodeSchema, CurrencyCodeSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
|
4369
|
-
export type { Channel, CountryCode, CurrencyCode, DaySchedule, DeliveryMethod, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, Image, ImageFormat, ImageSize, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductVariant, RecommendedProduct, Schedule, TimePeriod, TimeType, TimeZone, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
|
|
4570
|
+
export { BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
|
4571
|
+
export type { Channel, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, DeliveryMethod, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, Image, ImageFormat, ImageSize, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
|
package/dist/index.mjs
CHANGED
|
@@ -395,6 +395,13 @@ const ImageSchema = z.object({
|
|
|
395
395
|
format: ImageFormatSchema
|
|
396
396
|
});
|
|
397
397
|
|
|
398
|
+
const VideoTypeSchema = z.enum(["video/mp4"]);
|
|
399
|
+
const VideoSchema = z.object({
|
|
400
|
+
id: z.string(),
|
|
401
|
+
url: z.string(),
|
|
402
|
+
type: VideoTypeSchema
|
|
403
|
+
});
|
|
404
|
+
|
|
398
405
|
const NutritionFactsSchema = z.object({
|
|
399
406
|
calories: z.number(),
|
|
400
407
|
carbohydrate: z.number(),
|
|
@@ -409,6 +416,7 @@ const ProductVariantSchema = z.object({
|
|
|
409
416
|
id: z.string(),
|
|
410
417
|
title: LocaleValueSchema.array(),
|
|
411
418
|
images: ImageSchema.array(),
|
|
419
|
+
video: VideoSchema.optional(),
|
|
412
420
|
weightUnit: WeightUnitSchema,
|
|
413
421
|
weightValue: z.number(),
|
|
414
422
|
price: z.number(),
|
|
@@ -420,6 +428,18 @@ const RecommendedProductSchema = z.object({
|
|
|
420
428
|
productId: z.string(),
|
|
421
429
|
productVariantId: z.string()
|
|
422
430
|
});
|
|
431
|
+
const CompositionIngredientSchema = z.object({
|
|
432
|
+
title: LocaleValueSchema.array()
|
|
433
|
+
});
|
|
434
|
+
const CompositionProductSchema = z.object({
|
|
435
|
+
id: z.string(),
|
|
436
|
+
productId: z.string(),
|
|
437
|
+
productVariantId: z.string()
|
|
438
|
+
});
|
|
439
|
+
const ProductCompositionSchema = z.object({
|
|
440
|
+
products: CompositionProductSchema.array().optional(),
|
|
441
|
+
ingredients: CompositionIngredientSchema.array().optional()
|
|
442
|
+
});
|
|
423
443
|
const ProductSchema = z.object({
|
|
424
444
|
id: z.string(),
|
|
425
445
|
slug: z.string(),
|
|
@@ -428,6 +448,7 @@ const ProductSchema = z.object({
|
|
|
428
448
|
isAvailableForPurchase: z.boolean(),
|
|
429
449
|
isShownInCatalog: z.boolean(),
|
|
430
450
|
variants: ProductVariantSchema.array(),
|
|
451
|
+
composition: ProductCompositionSchema.optional(),
|
|
431
452
|
badges: ProductBadgeSchema.array().optional(),
|
|
432
453
|
recommendedProducts: RecommendedProductSchema.array().optional()
|
|
433
454
|
});
|
|
@@ -677,4 +698,4 @@ const GatewayResponseSchema = z.discriminatedUnion("type", [
|
|
|
677
698
|
GatewayGetTimeSlotsResponseSchema
|
|
678
699
|
]);
|
|
679
700
|
|
|
680
|
-
export { BaseResponseSchema, ChannelSchema, CountryCodeSchema, CurrencyCodeSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
|
701
|
+
export { BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextorders/food-schema",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"zod": "^4.3.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "^25.0.
|
|
31
|
+
"@types/node": "^25.0.8",
|
|
32
32
|
"typescript": "^5.9.3",
|
|
33
33
|
"unbuild": "^3.6.1"
|
|
34
34
|
},
|