@nextorders/food-schema 0.2.0 → 0.2.1
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 +65 -10
- package/dist/index.d.ts +65 -10
- package/dist/index.mjs +9 -1
- package/package.json +1 -1
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";
|
|
@@ -2426,9 +2433,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2426
2433
|
value: z.ZodString;
|
|
2427
2434
|
}, z.core.$strip>>;
|
|
2428
2435
|
type: z.ZodEnum<{
|
|
2436
|
+
custom: "custom";
|
|
2429
2437
|
cash: "cash";
|
|
2430
2438
|
card: "card";
|
|
2431
|
-
custom: "custom";
|
|
2432
2439
|
}>;
|
|
2433
2440
|
}, z.core.$strip>>;
|
|
2434
2441
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2490,9 +2497,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2490
2497
|
value: z.ZodString;
|
|
2491
2498
|
}, z.core.$strip>>;
|
|
2492
2499
|
type: z.ZodEnum<{
|
|
2500
|
+
custom: "custom";
|
|
2493
2501
|
cash: "cash";
|
|
2494
2502
|
card: "card";
|
|
2495
|
-
custom: "custom";
|
|
2496
2503
|
}>;
|
|
2497
2504
|
}, z.core.$strip>>;
|
|
2498
2505
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3043,6 +3050,13 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3043
3050
|
webp: "webp";
|
|
3044
3051
|
}>;
|
|
3045
3052
|
}, z.core.$strip>>;
|
|
3053
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3054
|
+
id: z.ZodString;
|
|
3055
|
+
url: z.ZodString;
|
|
3056
|
+
type: z.ZodEnum<{
|
|
3057
|
+
"video/mp4": "video/mp4";
|
|
3058
|
+
}>;
|
|
3059
|
+
}, z.core.$strip>>;
|
|
3046
3060
|
weightUnit: z.ZodEnum<{
|
|
3047
3061
|
g: "g";
|
|
3048
3062
|
kg: "kg";
|
|
@@ -3337,6 +3351,13 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3337
3351
|
webp: "webp";
|
|
3338
3352
|
}>;
|
|
3339
3353
|
}, z.core.$strip>>;
|
|
3354
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3355
|
+
id: z.ZodString;
|
|
3356
|
+
url: z.ZodString;
|
|
3357
|
+
type: z.ZodEnum<{
|
|
3358
|
+
"video/mp4": "video/mp4";
|
|
3359
|
+
}>;
|
|
3360
|
+
}, z.core.$strip>>;
|
|
3340
3361
|
weightUnit: z.ZodEnum<{
|
|
3341
3362
|
g: "g";
|
|
3342
3363
|
kg: "kg";
|
|
@@ -3468,6 +3489,13 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3468
3489
|
webp: "webp";
|
|
3469
3490
|
}>;
|
|
3470
3491
|
}, z.core.$strip>>;
|
|
3492
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3493
|
+
id: z.ZodString;
|
|
3494
|
+
url: z.ZodString;
|
|
3495
|
+
type: z.ZodEnum<{
|
|
3496
|
+
"video/mp4": "video/mp4";
|
|
3497
|
+
}>;
|
|
3498
|
+
}, z.core.$strip>>;
|
|
3471
3499
|
weightUnit: z.ZodEnum<{
|
|
3472
3500
|
g: "g";
|
|
3473
3501
|
kg: "kg";
|
|
@@ -3935,9 +3963,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
3935
3963
|
type Order = z.infer<typeof OrderSchema>;
|
|
3936
3964
|
|
|
3937
3965
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
3966
|
+
custom: "custom";
|
|
3938
3967
|
cash: "cash";
|
|
3939
3968
|
card: "card";
|
|
3940
|
-
custom: "custom";
|
|
3941
3969
|
}>;
|
|
3942
3970
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
3943
3971
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -3955,9 +3983,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
3955
3983
|
value: z.ZodString;
|
|
3956
3984
|
}, z.core.$strip>>;
|
|
3957
3985
|
type: z.ZodEnum<{
|
|
3986
|
+
custom: "custom";
|
|
3958
3987
|
cash: "cash";
|
|
3959
3988
|
card: "card";
|
|
3960
|
-
custom: "custom";
|
|
3961
3989
|
}>;
|
|
3962
3990
|
}, z.core.$strip>;
|
|
3963
3991
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4014,6 +4042,13 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4014
4042
|
webp: "webp";
|
|
4015
4043
|
}>;
|
|
4016
4044
|
}, z.core.$strip>>;
|
|
4045
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
4046
|
+
id: z.ZodString;
|
|
4047
|
+
url: z.ZodString;
|
|
4048
|
+
type: z.ZodEnum<{
|
|
4049
|
+
"video/mp4": "video/mp4";
|
|
4050
|
+
}>;
|
|
4051
|
+
}, z.core.$strip>>;
|
|
4017
4052
|
weightUnit: z.ZodEnum<{
|
|
4018
4053
|
g: "g";
|
|
4019
4054
|
kg: "kg";
|
|
@@ -4097,6 +4132,13 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4097
4132
|
webp: "webp";
|
|
4098
4133
|
}>;
|
|
4099
4134
|
}, z.core.$strip>>;
|
|
4135
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
4136
|
+
id: z.ZodString;
|
|
4137
|
+
url: z.ZodString;
|
|
4138
|
+
type: z.ZodEnum<{
|
|
4139
|
+
"video/mp4": "video/mp4";
|
|
4140
|
+
}>;
|
|
4141
|
+
}, z.core.$strip>>;
|
|
4100
4142
|
weightUnit: z.ZodEnum<{
|
|
4101
4143
|
g: "g";
|
|
4102
4144
|
kg: "kg";
|
|
@@ -4319,6 +4361,19 @@ declare const OpeningStatusSchema: z.ZodObject<{
|
|
|
4319
4361
|
}, z.core.$strip>;
|
|
4320
4362
|
type OpeningStatus = z.infer<typeof OpeningStatusSchema>;
|
|
4321
4363
|
|
|
4364
|
+
declare const VideoTypeSchema: z.ZodEnum<{
|
|
4365
|
+
"video/mp4": "video/mp4";
|
|
4366
|
+
}>;
|
|
4367
|
+
type VideoType = z.infer<typeof VideoTypeSchema>;
|
|
4368
|
+
declare const VideoSchema: z.ZodObject<{
|
|
4369
|
+
id: z.ZodString;
|
|
4370
|
+
url: z.ZodString;
|
|
4371
|
+
type: z.ZodEnum<{
|
|
4372
|
+
"video/mp4": "video/mp4";
|
|
4373
|
+
}>;
|
|
4374
|
+
}, z.core.$strip>;
|
|
4375
|
+
type Video = z.infer<typeof VideoSchema>;
|
|
4376
|
+
|
|
4322
4377
|
declare const WarehouseAddressSchema: z.ZodObject<{
|
|
4323
4378
|
street: z.ZodArray<z.ZodObject<{
|
|
4324
4379
|
locale: z.ZodEnum<{
|
|
@@ -4365,5 +4420,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
4365
4420
|
}, z.core.$strip>;
|
|
4366
4421
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
4367
4422
|
|
|
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 };
|
|
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 };
|
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";
|
|
@@ -2426,9 +2433,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2426
2433
|
value: z.ZodString;
|
|
2427
2434
|
}, z.core.$strip>>;
|
|
2428
2435
|
type: z.ZodEnum<{
|
|
2436
|
+
custom: "custom";
|
|
2429
2437
|
cash: "cash";
|
|
2430
2438
|
card: "card";
|
|
2431
|
-
custom: "custom";
|
|
2432
2439
|
}>;
|
|
2433
2440
|
}, z.core.$strip>>;
|
|
2434
2441
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2490,9 +2497,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2490
2497
|
value: z.ZodString;
|
|
2491
2498
|
}, z.core.$strip>>;
|
|
2492
2499
|
type: z.ZodEnum<{
|
|
2500
|
+
custom: "custom";
|
|
2493
2501
|
cash: "cash";
|
|
2494
2502
|
card: "card";
|
|
2495
|
-
custom: "custom";
|
|
2496
2503
|
}>;
|
|
2497
2504
|
}, z.core.$strip>>;
|
|
2498
2505
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3043,6 +3050,13 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3043
3050
|
webp: "webp";
|
|
3044
3051
|
}>;
|
|
3045
3052
|
}, z.core.$strip>>;
|
|
3053
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3054
|
+
id: z.ZodString;
|
|
3055
|
+
url: z.ZodString;
|
|
3056
|
+
type: z.ZodEnum<{
|
|
3057
|
+
"video/mp4": "video/mp4";
|
|
3058
|
+
}>;
|
|
3059
|
+
}, z.core.$strip>>;
|
|
3046
3060
|
weightUnit: z.ZodEnum<{
|
|
3047
3061
|
g: "g";
|
|
3048
3062
|
kg: "kg";
|
|
@@ -3337,6 +3351,13 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3337
3351
|
webp: "webp";
|
|
3338
3352
|
}>;
|
|
3339
3353
|
}, z.core.$strip>>;
|
|
3354
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3355
|
+
id: z.ZodString;
|
|
3356
|
+
url: z.ZodString;
|
|
3357
|
+
type: z.ZodEnum<{
|
|
3358
|
+
"video/mp4": "video/mp4";
|
|
3359
|
+
}>;
|
|
3360
|
+
}, z.core.$strip>>;
|
|
3340
3361
|
weightUnit: z.ZodEnum<{
|
|
3341
3362
|
g: "g";
|
|
3342
3363
|
kg: "kg";
|
|
@@ -3468,6 +3489,13 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3468
3489
|
webp: "webp";
|
|
3469
3490
|
}>;
|
|
3470
3491
|
}, z.core.$strip>>;
|
|
3492
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
3493
|
+
id: z.ZodString;
|
|
3494
|
+
url: z.ZodString;
|
|
3495
|
+
type: z.ZodEnum<{
|
|
3496
|
+
"video/mp4": "video/mp4";
|
|
3497
|
+
}>;
|
|
3498
|
+
}, z.core.$strip>>;
|
|
3471
3499
|
weightUnit: z.ZodEnum<{
|
|
3472
3500
|
g: "g";
|
|
3473
3501
|
kg: "kg";
|
|
@@ -3935,9 +3963,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
3935
3963
|
type Order = z.infer<typeof OrderSchema>;
|
|
3936
3964
|
|
|
3937
3965
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
3966
|
+
custom: "custom";
|
|
3938
3967
|
cash: "cash";
|
|
3939
3968
|
card: "card";
|
|
3940
|
-
custom: "custom";
|
|
3941
3969
|
}>;
|
|
3942
3970
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
3943
3971
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -3955,9 +3983,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
3955
3983
|
value: z.ZodString;
|
|
3956
3984
|
}, z.core.$strip>>;
|
|
3957
3985
|
type: z.ZodEnum<{
|
|
3986
|
+
custom: "custom";
|
|
3958
3987
|
cash: "cash";
|
|
3959
3988
|
card: "card";
|
|
3960
|
-
custom: "custom";
|
|
3961
3989
|
}>;
|
|
3962
3990
|
}, z.core.$strip>;
|
|
3963
3991
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4014,6 +4042,13 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4014
4042
|
webp: "webp";
|
|
4015
4043
|
}>;
|
|
4016
4044
|
}, z.core.$strip>>;
|
|
4045
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
4046
|
+
id: z.ZodString;
|
|
4047
|
+
url: z.ZodString;
|
|
4048
|
+
type: z.ZodEnum<{
|
|
4049
|
+
"video/mp4": "video/mp4";
|
|
4050
|
+
}>;
|
|
4051
|
+
}, z.core.$strip>>;
|
|
4017
4052
|
weightUnit: z.ZodEnum<{
|
|
4018
4053
|
g: "g";
|
|
4019
4054
|
kg: "kg";
|
|
@@ -4097,6 +4132,13 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4097
4132
|
webp: "webp";
|
|
4098
4133
|
}>;
|
|
4099
4134
|
}, z.core.$strip>>;
|
|
4135
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
4136
|
+
id: z.ZodString;
|
|
4137
|
+
url: z.ZodString;
|
|
4138
|
+
type: z.ZodEnum<{
|
|
4139
|
+
"video/mp4": "video/mp4";
|
|
4140
|
+
}>;
|
|
4141
|
+
}, z.core.$strip>>;
|
|
4100
4142
|
weightUnit: z.ZodEnum<{
|
|
4101
4143
|
g: "g";
|
|
4102
4144
|
kg: "kg";
|
|
@@ -4319,6 +4361,19 @@ declare const OpeningStatusSchema: z.ZodObject<{
|
|
|
4319
4361
|
}, z.core.$strip>;
|
|
4320
4362
|
type OpeningStatus = z.infer<typeof OpeningStatusSchema>;
|
|
4321
4363
|
|
|
4364
|
+
declare const VideoTypeSchema: z.ZodEnum<{
|
|
4365
|
+
"video/mp4": "video/mp4";
|
|
4366
|
+
}>;
|
|
4367
|
+
type VideoType = z.infer<typeof VideoTypeSchema>;
|
|
4368
|
+
declare const VideoSchema: z.ZodObject<{
|
|
4369
|
+
id: z.ZodString;
|
|
4370
|
+
url: z.ZodString;
|
|
4371
|
+
type: z.ZodEnum<{
|
|
4372
|
+
"video/mp4": "video/mp4";
|
|
4373
|
+
}>;
|
|
4374
|
+
}, z.core.$strip>;
|
|
4375
|
+
type Video = z.infer<typeof VideoSchema>;
|
|
4376
|
+
|
|
4322
4377
|
declare const WarehouseAddressSchema: z.ZodObject<{
|
|
4323
4378
|
street: z.ZodArray<z.ZodObject<{
|
|
4324
4379
|
locale: z.ZodEnum<{
|
|
@@ -4365,5 +4420,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
4365
4420
|
}, z.core.$strip>;
|
|
4366
4421
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
4367
4422
|
|
|
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 };
|
|
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 };
|
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(),
|
|
@@ -677,4 +685,4 @@ const GatewayResponseSchema = z.discriminatedUnion("type", [
|
|
|
677
685
|
GatewayGetTimeSlotsResponseSchema
|
|
678
686
|
]);
|
|
679
687
|
|
|
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 };
|
|
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 };
|