@nextorders/food-schema 0.2.1 → 0.2.3
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 +158 -10
- package/dist/index.d.ts +158 -10
- package/dist/index.mjs +14 -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";
|
|
90
89
|
cash: "cash";
|
|
91
90
|
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";
|
|
154
153
|
cash: "cash";
|
|
155
154
|
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";
|
|
1062
1061
|
cash: "cash";
|
|
1063
1062
|
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";
|
|
1126
1125
|
cash: "cash";
|
|
1127
1126
|
card: "card";
|
|
1127
|
+
custom: "custom";
|
|
1128
1128
|
}>;
|
|
1129
1129
|
}, z.core.$strip>>;
|
|
1130
1130
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1823,6 +1823,27 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1823
1823
|
fat: z.ZodNumber;
|
|
1824
1824
|
}, z.core.$strip>>;
|
|
1825
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>>;
|
|
1826
1847
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1827
1848
|
id: z.ZodString;
|
|
1828
1849
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -2433,9 +2454,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2433
2454
|
value: z.ZodString;
|
|
2434
2455
|
}, z.core.$strip>>;
|
|
2435
2456
|
type: z.ZodEnum<{
|
|
2436
|
-
custom: "custom";
|
|
2437
2457
|
cash: "cash";
|
|
2438
2458
|
card: "card";
|
|
2459
|
+
custom: "custom";
|
|
2439
2460
|
}>;
|
|
2440
2461
|
}, z.core.$strip>>;
|
|
2441
2462
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2497,9 +2518,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2497
2518
|
value: z.ZodString;
|
|
2498
2519
|
}, z.core.$strip>>;
|
|
2499
2520
|
type: z.ZodEnum<{
|
|
2500
|
-
custom: "custom";
|
|
2501
2521
|
cash: "cash";
|
|
2502
2522
|
card: "card";
|
|
2523
|
+
custom: "custom";
|
|
2503
2524
|
}>;
|
|
2504
2525
|
}, z.core.$strip>>;
|
|
2505
2526
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3075,6 +3096,27 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3075
3096
|
fat: z.ZodNumber;
|
|
3076
3097
|
}, z.core.$strip>>;
|
|
3077
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>>;
|
|
3078
3120
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3079
3121
|
id: z.ZodString;
|
|
3080
3122
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3376,6 +3418,27 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3376
3418
|
fat: z.ZodNumber;
|
|
3377
3419
|
}, z.core.$strip>>;
|
|
3378
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>>;
|
|
3379
3442
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3380
3443
|
id: z.ZodString;
|
|
3381
3444
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3514,6 +3577,27 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3514
3577
|
fat: z.ZodNumber;
|
|
3515
3578
|
}, z.core.$strip>>;
|
|
3516
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>>;
|
|
3517
3601
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3518
3602
|
id: z.ZodString;
|
|
3519
3603
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3963,9 +4047,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
3963
4047
|
type Order = z.infer<typeof OrderSchema>;
|
|
3964
4048
|
|
|
3965
4049
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
3966
|
-
custom: "custom";
|
|
3967
4050
|
cash: "cash";
|
|
3968
4051
|
card: "card";
|
|
4052
|
+
custom: "custom";
|
|
3969
4053
|
}>;
|
|
3970
4054
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
3971
4055
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -3983,9 +4067,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
3983
4067
|
value: z.ZodString;
|
|
3984
4068
|
}, z.core.$strip>>;
|
|
3985
4069
|
type: z.ZodEnum<{
|
|
3986
|
-
custom: "custom";
|
|
3987
4070
|
cash: "cash";
|
|
3988
4071
|
card: "card";
|
|
4072
|
+
custom: "custom";
|
|
3989
4073
|
}>;
|
|
3990
4074
|
}, z.core.$strip>;
|
|
3991
4075
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4074,6 +4158,49 @@ declare const RecommendedProductSchema: z.ZodObject<{
|
|
|
4074
4158
|
productVariantId: z.ZodString;
|
|
4075
4159
|
}, z.core.$strip>;
|
|
4076
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
|
+
type CompositionIngredient = z.infer<typeof CompositionIngredientSchema>;
|
|
4176
|
+
declare const CompositionProductSchema: z.ZodObject<{
|
|
4177
|
+
id: z.ZodString;
|
|
4178
|
+
productId: z.ZodString;
|
|
4179
|
+
productVariantId: z.ZodString;
|
|
4180
|
+
}, z.core.$strip>;
|
|
4181
|
+
type CompositionProductItem = z.infer<typeof CompositionProductSchema>;
|
|
4182
|
+
declare const ProductCompositionSchema: z.ZodObject<{
|
|
4183
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4184
|
+
id: z.ZodString;
|
|
4185
|
+
productId: z.ZodString;
|
|
4186
|
+
productVariantId: z.ZodString;
|
|
4187
|
+
}, z.core.$strip>>>;
|
|
4188
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4189
|
+
title: z.ZodArray<z.ZodObject<{
|
|
4190
|
+
locale: z.ZodEnum<{
|
|
4191
|
+
de: "de";
|
|
4192
|
+
en: "en";
|
|
4193
|
+
es: "es";
|
|
4194
|
+
fr: "fr";
|
|
4195
|
+
ka: "ka";
|
|
4196
|
+
ru: "ru";
|
|
4197
|
+
zh_cn: "zh_cn";
|
|
4198
|
+
}>;
|
|
4199
|
+
value: z.ZodString;
|
|
4200
|
+
}, z.core.$strip>>;
|
|
4201
|
+
}, z.core.$strip>>>;
|
|
4202
|
+
}, z.core.$strip>;
|
|
4203
|
+
type ProductComposition = z.infer<typeof ProductCompositionSchema>;
|
|
4077
4204
|
declare const ProductSchema: z.ZodObject<{
|
|
4078
4205
|
id: z.ZodString;
|
|
4079
4206
|
slug: z.ZodString;
|
|
@@ -4157,6 +4284,27 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4157
4284
|
fat: z.ZodNumber;
|
|
4158
4285
|
}, z.core.$strip>>;
|
|
4159
4286
|
}, z.core.$strip>>;
|
|
4287
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
4288
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4289
|
+
id: z.ZodString;
|
|
4290
|
+
productId: z.ZodString;
|
|
4291
|
+
productVariantId: z.ZodString;
|
|
4292
|
+
}, z.core.$strip>>>;
|
|
4293
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4294
|
+
title: z.ZodArray<z.ZodObject<{
|
|
4295
|
+
locale: z.ZodEnum<{
|
|
4296
|
+
de: "de";
|
|
4297
|
+
en: "en";
|
|
4298
|
+
es: "es";
|
|
4299
|
+
fr: "fr";
|
|
4300
|
+
ka: "ka";
|
|
4301
|
+
ru: "ru";
|
|
4302
|
+
zh_cn: "zh_cn";
|
|
4303
|
+
}>;
|
|
4304
|
+
value: z.ZodString;
|
|
4305
|
+
}, z.core.$strip>>;
|
|
4306
|
+
}, z.core.$strip>>>;
|
|
4307
|
+
}, z.core.$strip>>;
|
|
4160
4308
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4161
4309
|
id: z.ZodString;
|
|
4162
4310
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -4420,5 +4568,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
4420
4568
|
}, z.core.$strip>;
|
|
4421
4569
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
4422
4570
|
|
|
4423
|
-
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, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
|
4424
|
-
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, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
|
|
4571
|
+
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 };
|
|
4572
|
+
export type { Channel, CompositionIngredient, 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";
|
|
90
89
|
cash: "cash";
|
|
91
90
|
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";
|
|
154
153
|
cash: "cash";
|
|
155
154
|
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";
|
|
1062
1061
|
cash: "cash";
|
|
1063
1062
|
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";
|
|
1126
1125
|
cash: "cash";
|
|
1127
1126
|
card: "card";
|
|
1127
|
+
custom: "custom";
|
|
1128
1128
|
}>;
|
|
1129
1129
|
}, z.core.$strip>>;
|
|
1130
1130
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1823,6 +1823,27 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1823
1823
|
fat: z.ZodNumber;
|
|
1824
1824
|
}, z.core.$strip>>;
|
|
1825
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>>;
|
|
1826
1847
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1827
1848
|
id: z.ZodString;
|
|
1828
1849
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -2433,9 +2454,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2433
2454
|
value: z.ZodString;
|
|
2434
2455
|
}, z.core.$strip>>;
|
|
2435
2456
|
type: z.ZodEnum<{
|
|
2436
|
-
custom: "custom";
|
|
2437
2457
|
cash: "cash";
|
|
2438
2458
|
card: "card";
|
|
2459
|
+
custom: "custom";
|
|
2439
2460
|
}>;
|
|
2440
2461
|
}, z.core.$strip>>;
|
|
2441
2462
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2497,9 +2518,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2497
2518
|
value: z.ZodString;
|
|
2498
2519
|
}, z.core.$strip>>;
|
|
2499
2520
|
type: z.ZodEnum<{
|
|
2500
|
-
custom: "custom";
|
|
2501
2521
|
cash: "cash";
|
|
2502
2522
|
card: "card";
|
|
2523
|
+
custom: "custom";
|
|
2503
2524
|
}>;
|
|
2504
2525
|
}, z.core.$strip>>;
|
|
2505
2526
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3075,6 +3096,27 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3075
3096
|
fat: z.ZodNumber;
|
|
3076
3097
|
}, z.core.$strip>>;
|
|
3077
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>>;
|
|
3078
3120
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3079
3121
|
id: z.ZodString;
|
|
3080
3122
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3376,6 +3418,27 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3376
3418
|
fat: z.ZodNumber;
|
|
3377
3419
|
}, z.core.$strip>>;
|
|
3378
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>>;
|
|
3379
3442
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3380
3443
|
id: z.ZodString;
|
|
3381
3444
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3514,6 +3577,27 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3514
3577
|
fat: z.ZodNumber;
|
|
3515
3578
|
}, z.core.$strip>>;
|
|
3516
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>>;
|
|
3517
3601
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3518
3602
|
id: z.ZodString;
|
|
3519
3603
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3963,9 +4047,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
3963
4047
|
type Order = z.infer<typeof OrderSchema>;
|
|
3964
4048
|
|
|
3965
4049
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
3966
|
-
custom: "custom";
|
|
3967
4050
|
cash: "cash";
|
|
3968
4051
|
card: "card";
|
|
4052
|
+
custom: "custom";
|
|
3969
4053
|
}>;
|
|
3970
4054
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
3971
4055
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -3983,9 +4067,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
3983
4067
|
value: z.ZodString;
|
|
3984
4068
|
}, z.core.$strip>>;
|
|
3985
4069
|
type: z.ZodEnum<{
|
|
3986
|
-
custom: "custom";
|
|
3987
4070
|
cash: "cash";
|
|
3988
4071
|
card: "card";
|
|
4072
|
+
custom: "custom";
|
|
3989
4073
|
}>;
|
|
3990
4074
|
}, z.core.$strip>;
|
|
3991
4075
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4074,6 +4158,49 @@ declare const RecommendedProductSchema: z.ZodObject<{
|
|
|
4074
4158
|
productVariantId: z.ZodString;
|
|
4075
4159
|
}, z.core.$strip>;
|
|
4076
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
|
+
type CompositionIngredient = z.infer<typeof CompositionIngredientSchema>;
|
|
4176
|
+
declare const CompositionProductSchema: z.ZodObject<{
|
|
4177
|
+
id: z.ZodString;
|
|
4178
|
+
productId: z.ZodString;
|
|
4179
|
+
productVariantId: z.ZodString;
|
|
4180
|
+
}, z.core.$strip>;
|
|
4181
|
+
type CompositionProductItem = z.infer<typeof CompositionProductSchema>;
|
|
4182
|
+
declare const ProductCompositionSchema: z.ZodObject<{
|
|
4183
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4184
|
+
id: z.ZodString;
|
|
4185
|
+
productId: z.ZodString;
|
|
4186
|
+
productVariantId: z.ZodString;
|
|
4187
|
+
}, z.core.$strip>>>;
|
|
4188
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4189
|
+
title: z.ZodArray<z.ZodObject<{
|
|
4190
|
+
locale: z.ZodEnum<{
|
|
4191
|
+
de: "de";
|
|
4192
|
+
en: "en";
|
|
4193
|
+
es: "es";
|
|
4194
|
+
fr: "fr";
|
|
4195
|
+
ka: "ka";
|
|
4196
|
+
ru: "ru";
|
|
4197
|
+
zh_cn: "zh_cn";
|
|
4198
|
+
}>;
|
|
4199
|
+
value: z.ZodString;
|
|
4200
|
+
}, z.core.$strip>>;
|
|
4201
|
+
}, z.core.$strip>>>;
|
|
4202
|
+
}, z.core.$strip>;
|
|
4203
|
+
type ProductComposition = z.infer<typeof ProductCompositionSchema>;
|
|
4077
4204
|
declare const ProductSchema: z.ZodObject<{
|
|
4078
4205
|
id: z.ZodString;
|
|
4079
4206
|
slug: z.ZodString;
|
|
@@ -4157,6 +4284,27 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4157
4284
|
fat: z.ZodNumber;
|
|
4158
4285
|
}, z.core.$strip>>;
|
|
4159
4286
|
}, z.core.$strip>>;
|
|
4287
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
4288
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4289
|
+
id: z.ZodString;
|
|
4290
|
+
productId: z.ZodString;
|
|
4291
|
+
productVariantId: z.ZodString;
|
|
4292
|
+
}, z.core.$strip>>>;
|
|
4293
|
+
ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4294
|
+
title: z.ZodArray<z.ZodObject<{
|
|
4295
|
+
locale: z.ZodEnum<{
|
|
4296
|
+
de: "de";
|
|
4297
|
+
en: "en";
|
|
4298
|
+
es: "es";
|
|
4299
|
+
fr: "fr";
|
|
4300
|
+
ka: "ka";
|
|
4301
|
+
ru: "ru";
|
|
4302
|
+
zh_cn: "zh_cn";
|
|
4303
|
+
}>;
|
|
4304
|
+
value: z.ZodString;
|
|
4305
|
+
}, z.core.$strip>>;
|
|
4306
|
+
}, z.core.$strip>>>;
|
|
4307
|
+
}, z.core.$strip>>;
|
|
4160
4308
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4161
4309
|
id: z.ZodString;
|
|
4162
4310
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -4420,5 +4568,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
4420
4568
|
}, z.core.$strip>;
|
|
4421
4569
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
4422
4570
|
|
|
4423
|
-
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, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
|
4424
|
-
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, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
|
|
4571
|
+
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 };
|
|
4572
|
+
export type { Channel, CompositionIngredient, 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
|
@@ -428,6 +428,18 @@ const RecommendedProductSchema = z.object({
|
|
|
428
428
|
productId: z.string(),
|
|
429
429
|
productVariantId: z.string()
|
|
430
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
|
+
});
|
|
431
443
|
const ProductSchema = z.object({
|
|
432
444
|
id: z.string(),
|
|
433
445
|
slug: z.string(),
|
|
@@ -436,6 +448,7 @@ const ProductSchema = z.object({
|
|
|
436
448
|
isAvailableForPurchase: z.boolean(),
|
|
437
449
|
isShownInCatalog: z.boolean(),
|
|
438
450
|
variants: ProductVariantSchema.array(),
|
|
451
|
+
composition: ProductCompositionSchema.optional(),
|
|
439
452
|
badges: ProductBadgeSchema.array().optional(),
|
|
440
453
|
recommendedProducts: RecommendedProductSchema.array().optional()
|
|
441
454
|
});
|
|
@@ -685,4 +698,4 @@ const GatewayResponseSchema = z.discriminatedUnion("type", [
|
|
|
685
698
|
GatewayGetTimeSlotsResponseSchema
|
|
686
699
|
]);
|
|
687
700
|
|
|
688
|
-
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, VideoSchema, VideoTypeSchema, 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.3",
|
|
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
|
},
|