@nextorders/food-schema 0.2.1 → 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 +149 -2
- package/dist/index.d.ts +149 -2
- package/dist/index.mjs +14 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -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<{
|
|
@@ -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<{
|
|
@@ -4074,6 +4158,48 @@ 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
|
+
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>;
|
|
4077
4203
|
declare const ProductSchema: z.ZodObject<{
|
|
4078
4204
|
id: z.ZodString;
|
|
4079
4205
|
slug: z.ZodString;
|
|
@@ -4157,6 +4283,27 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4157
4283
|
fat: z.ZodNumber;
|
|
4158
4284
|
}, z.core.$strip>>;
|
|
4159
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>>;
|
|
4160
4307
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4161
4308
|
id: z.ZodString;
|
|
4162
4309
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -4420,5 +4567,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
4420
4567
|
}, z.core.$strip>;
|
|
4421
4568
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
4422
4569
|
|
|
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 };
|
|
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
|
@@ -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<{
|
|
@@ -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<{
|
|
@@ -4074,6 +4158,48 @@ 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
|
+
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>;
|
|
4077
4203
|
declare const ProductSchema: z.ZodObject<{
|
|
4078
4204
|
id: z.ZodString;
|
|
4079
4205
|
slug: z.ZodString;
|
|
@@ -4157,6 +4283,27 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4157
4283
|
fat: z.ZodNumber;
|
|
4158
4284
|
}, z.core.$strip>>;
|
|
4159
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>>;
|
|
4160
4307
|
badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4161
4308
|
id: z.ZodString;
|
|
4162
4309
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -4420,5 +4567,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
4420
4567
|
}, z.core.$strip>;
|
|
4421
4568
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
4422
4569
|
|
|
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 };
|
|
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
|
@@ -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.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
|
},
|