@nextorders/food-schema 0.1.0 → 0.2.0
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 +44 -14
- package/dist/index.d.ts +44 -14
- package/dist/index.mjs +10 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1768,6 +1768,7 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1768
1768
|
value: z.ZodString;
|
|
1769
1769
|
}, z.core.$strip>>>;
|
|
1770
1770
|
isAvailableForPurchase: z.ZodBoolean;
|
|
1771
|
+
isShownInCatalog: z.ZodBoolean;
|
|
1771
1772
|
variants: z.ZodArray<z.ZodObject<{
|
|
1772
1773
|
id: z.ZodString;
|
|
1773
1774
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -1806,8 +1807,7 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1806
1807
|
lb: "lb";
|
|
1807
1808
|
}>;
|
|
1808
1809
|
weightValue: z.ZodNumber;
|
|
1809
|
-
|
|
1810
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
1810
|
+
price: z.ZodNumber;
|
|
1811
1811
|
sku: z.ZodNullable<z.ZodString>;
|
|
1812
1812
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
1813
1813
|
calories: z.ZodNumber;
|
|
@@ -1831,6 +1831,11 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1831
1831
|
value: z.ZodString;
|
|
1832
1832
|
}, z.core.$strip>>;
|
|
1833
1833
|
}, z.core.$strip>>>;
|
|
1834
|
+
recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1835
|
+
id: z.ZodString;
|
|
1836
|
+
productId: z.ZodString;
|
|
1837
|
+
productVariantId: z.ZodString;
|
|
1838
|
+
}, z.core.$strip>>>;
|
|
1834
1839
|
}, z.core.$strip>>;
|
|
1835
1840
|
}, z.core.$strip>>;
|
|
1836
1841
|
}, z.core.$strip>;
|
|
@@ -3008,6 +3013,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3008
3013
|
value: z.ZodString;
|
|
3009
3014
|
}, z.core.$strip>>>;
|
|
3010
3015
|
isAvailableForPurchase: z.ZodBoolean;
|
|
3016
|
+
isShownInCatalog: z.ZodBoolean;
|
|
3011
3017
|
variants: z.ZodArray<z.ZodObject<{
|
|
3012
3018
|
id: z.ZodString;
|
|
3013
3019
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3046,8 +3052,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3046
3052
|
lb: "lb";
|
|
3047
3053
|
}>;
|
|
3048
3054
|
weightValue: z.ZodNumber;
|
|
3049
|
-
|
|
3050
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
3055
|
+
price: z.ZodNumber;
|
|
3051
3056
|
sku: z.ZodNullable<z.ZodString>;
|
|
3052
3057
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
3053
3058
|
calories: z.ZodNumber;
|
|
@@ -3071,6 +3076,11 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3071
3076
|
value: z.ZodString;
|
|
3072
3077
|
}, z.core.$strip>>;
|
|
3073
3078
|
}, z.core.$strip>>>;
|
|
3079
|
+
recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3080
|
+
id: z.ZodString;
|
|
3081
|
+
productId: z.ZodString;
|
|
3082
|
+
productVariantId: z.ZodString;
|
|
3083
|
+
}, z.core.$strip>>>;
|
|
3074
3084
|
}, z.core.$strip>>;
|
|
3075
3085
|
}, z.core.$strip>>;
|
|
3076
3086
|
}, z.core.$strip>;
|
|
@@ -3297,6 +3307,7 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3297
3307
|
value: z.ZodString;
|
|
3298
3308
|
}, z.core.$strip>>>;
|
|
3299
3309
|
isAvailableForPurchase: z.ZodBoolean;
|
|
3310
|
+
isShownInCatalog: z.ZodBoolean;
|
|
3300
3311
|
variants: z.ZodArray<z.ZodObject<{
|
|
3301
3312
|
id: z.ZodString;
|
|
3302
3313
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3335,8 +3346,7 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3335
3346
|
lb: "lb";
|
|
3336
3347
|
}>;
|
|
3337
3348
|
weightValue: z.ZodNumber;
|
|
3338
|
-
|
|
3339
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
3349
|
+
price: z.ZodNumber;
|
|
3340
3350
|
sku: z.ZodNullable<z.ZodString>;
|
|
3341
3351
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
3342
3352
|
calories: z.ZodNumber;
|
|
@@ -3360,6 +3370,11 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3360
3370
|
value: z.ZodString;
|
|
3361
3371
|
}, z.core.$strip>>;
|
|
3362
3372
|
}, z.core.$strip>>>;
|
|
3373
|
+
recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3374
|
+
id: z.ZodString;
|
|
3375
|
+
productId: z.ZodString;
|
|
3376
|
+
productVariantId: z.ZodString;
|
|
3377
|
+
}, z.core.$strip>>>;
|
|
3363
3378
|
}, z.core.$strip>>;
|
|
3364
3379
|
}, z.core.$strip>;
|
|
3365
3380
|
type MenuCategory = z.infer<typeof MenuCategorySchema>;
|
|
@@ -3423,6 +3438,7 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3423
3438
|
value: z.ZodString;
|
|
3424
3439
|
}, z.core.$strip>>>;
|
|
3425
3440
|
isAvailableForPurchase: z.ZodBoolean;
|
|
3441
|
+
isShownInCatalog: z.ZodBoolean;
|
|
3426
3442
|
variants: z.ZodArray<z.ZodObject<{
|
|
3427
3443
|
id: z.ZodString;
|
|
3428
3444
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3461,8 +3477,7 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3461
3477
|
lb: "lb";
|
|
3462
3478
|
}>;
|
|
3463
3479
|
weightValue: z.ZodNumber;
|
|
3464
|
-
|
|
3465
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
3480
|
+
price: z.ZodNumber;
|
|
3466
3481
|
sku: z.ZodNullable<z.ZodString>;
|
|
3467
3482
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
3468
3483
|
calories: z.ZodNumber;
|
|
@@ -3486,6 +3501,11 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3486
3501
|
value: z.ZodString;
|
|
3487
3502
|
}, z.core.$strip>>;
|
|
3488
3503
|
}, z.core.$strip>>>;
|
|
3504
|
+
recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3505
|
+
id: z.ZodString;
|
|
3506
|
+
productId: z.ZodString;
|
|
3507
|
+
productVariantId: z.ZodString;
|
|
3508
|
+
}, z.core.$strip>>>;
|
|
3489
3509
|
}, z.core.$strip>>;
|
|
3490
3510
|
}, z.core.$strip>>;
|
|
3491
3511
|
}, z.core.$strip>;
|
|
@@ -4003,8 +4023,7 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4003
4023
|
lb: "lb";
|
|
4004
4024
|
}>;
|
|
4005
4025
|
weightValue: z.ZodNumber;
|
|
4006
|
-
|
|
4007
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
4026
|
+
price: z.ZodNumber;
|
|
4008
4027
|
sku: z.ZodNullable<z.ZodString>;
|
|
4009
4028
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
4010
4029
|
calories: z.ZodNumber;
|
|
@@ -4014,6 +4033,12 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4014
4033
|
}, z.core.$strip>>;
|
|
4015
4034
|
}, z.core.$strip>;
|
|
4016
4035
|
type ProductVariant = z.infer<typeof ProductVariantSchema>;
|
|
4036
|
+
declare const RecommendedProductSchema: z.ZodObject<{
|
|
4037
|
+
id: z.ZodString;
|
|
4038
|
+
productId: z.ZodString;
|
|
4039
|
+
productVariantId: z.ZodString;
|
|
4040
|
+
}, z.core.$strip>;
|
|
4041
|
+
type RecommendedProduct = z.infer<typeof RecommendedProductSchema>;
|
|
4017
4042
|
declare const ProductSchema: z.ZodObject<{
|
|
4018
4043
|
id: z.ZodString;
|
|
4019
4044
|
slug: z.ZodString;
|
|
@@ -4042,6 +4067,7 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4042
4067
|
value: z.ZodString;
|
|
4043
4068
|
}, z.core.$strip>>>;
|
|
4044
4069
|
isAvailableForPurchase: z.ZodBoolean;
|
|
4070
|
+
isShownInCatalog: z.ZodBoolean;
|
|
4045
4071
|
variants: z.ZodArray<z.ZodObject<{
|
|
4046
4072
|
id: z.ZodString;
|
|
4047
4073
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -4080,8 +4106,7 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4080
4106
|
lb: "lb";
|
|
4081
4107
|
}>;
|
|
4082
4108
|
weightValue: z.ZodNumber;
|
|
4083
|
-
|
|
4084
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
4109
|
+
price: z.ZodNumber;
|
|
4085
4110
|
sku: z.ZodNullable<z.ZodString>;
|
|
4086
4111
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
4087
4112
|
calories: z.ZodNumber;
|
|
@@ -4105,6 +4130,11 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4105
4130
|
value: z.ZodString;
|
|
4106
4131
|
}, z.core.$strip>>;
|
|
4107
4132
|
}, z.core.$strip>>>;
|
|
4133
|
+
recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4134
|
+
id: z.ZodString;
|
|
4135
|
+
productId: z.ZodString;
|
|
4136
|
+
productVariantId: z.ZodString;
|
|
4137
|
+
}, z.core.$strip>>>;
|
|
4108
4138
|
}, z.core.$strip>;
|
|
4109
4139
|
type Product = z.infer<typeof ProductSchema>;
|
|
4110
4140
|
|
|
@@ -4335,5 +4365,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
4335
4365
|
}, z.core.$strip>;
|
|
4336
4366
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
4337
4367
|
|
|
4338
|
-
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, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
|
4339
|
-
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, Schedule, TimePeriod, TimeType, TimeZone, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1768,6 +1768,7 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1768
1768
|
value: z.ZodString;
|
|
1769
1769
|
}, z.core.$strip>>>;
|
|
1770
1770
|
isAvailableForPurchase: z.ZodBoolean;
|
|
1771
|
+
isShownInCatalog: z.ZodBoolean;
|
|
1771
1772
|
variants: z.ZodArray<z.ZodObject<{
|
|
1772
1773
|
id: z.ZodString;
|
|
1773
1774
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -1806,8 +1807,7 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1806
1807
|
lb: "lb";
|
|
1807
1808
|
}>;
|
|
1808
1809
|
weightValue: z.ZodNumber;
|
|
1809
|
-
|
|
1810
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
1810
|
+
price: z.ZodNumber;
|
|
1811
1811
|
sku: z.ZodNullable<z.ZodString>;
|
|
1812
1812
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
1813
1813
|
calories: z.ZodNumber;
|
|
@@ -1831,6 +1831,11 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
1831
1831
|
value: z.ZodString;
|
|
1832
1832
|
}, z.core.$strip>>;
|
|
1833
1833
|
}, z.core.$strip>>>;
|
|
1834
|
+
recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1835
|
+
id: z.ZodString;
|
|
1836
|
+
productId: z.ZodString;
|
|
1837
|
+
productVariantId: z.ZodString;
|
|
1838
|
+
}, z.core.$strip>>>;
|
|
1834
1839
|
}, z.core.$strip>>;
|
|
1835
1840
|
}, z.core.$strip>>;
|
|
1836
1841
|
}, z.core.$strip>;
|
|
@@ -3008,6 +3013,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3008
3013
|
value: z.ZodString;
|
|
3009
3014
|
}, z.core.$strip>>>;
|
|
3010
3015
|
isAvailableForPurchase: z.ZodBoolean;
|
|
3016
|
+
isShownInCatalog: z.ZodBoolean;
|
|
3011
3017
|
variants: z.ZodArray<z.ZodObject<{
|
|
3012
3018
|
id: z.ZodString;
|
|
3013
3019
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3046,8 +3052,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3046
3052
|
lb: "lb";
|
|
3047
3053
|
}>;
|
|
3048
3054
|
weightValue: z.ZodNumber;
|
|
3049
|
-
|
|
3050
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
3055
|
+
price: z.ZodNumber;
|
|
3051
3056
|
sku: z.ZodNullable<z.ZodString>;
|
|
3052
3057
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
3053
3058
|
calories: z.ZodNumber;
|
|
@@ -3071,6 +3076,11 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3071
3076
|
value: z.ZodString;
|
|
3072
3077
|
}, z.core.$strip>>;
|
|
3073
3078
|
}, z.core.$strip>>>;
|
|
3079
|
+
recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3080
|
+
id: z.ZodString;
|
|
3081
|
+
productId: z.ZodString;
|
|
3082
|
+
productVariantId: z.ZodString;
|
|
3083
|
+
}, z.core.$strip>>>;
|
|
3074
3084
|
}, z.core.$strip>>;
|
|
3075
3085
|
}, z.core.$strip>>;
|
|
3076
3086
|
}, z.core.$strip>;
|
|
@@ -3297,6 +3307,7 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3297
3307
|
value: z.ZodString;
|
|
3298
3308
|
}, z.core.$strip>>>;
|
|
3299
3309
|
isAvailableForPurchase: z.ZodBoolean;
|
|
3310
|
+
isShownInCatalog: z.ZodBoolean;
|
|
3300
3311
|
variants: z.ZodArray<z.ZodObject<{
|
|
3301
3312
|
id: z.ZodString;
|
|
3302
3313
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3335,8 +3346,7 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3335
3346
|
lb: "lb";
|
|
3336
3347
|
}>;
|
|
3337
3348
|
weightValue: z.ZodNumber;
|
|
3338
|
-
|
|
3339
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
3349
|
+
price: z.ZodNumber;
|
|
3340
3350
|
sku: z.ZodNullable<z.ZodString>;
|
|
3341
3351
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
3342
3352
|
calories: z.ZodNumber;
|
|
@@ -3360,6 +3370,11 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3360
3370
|
value: z.ZodString;
|
|
3361
3371
|
}, z.core.$strip>>;
|
|
3362
3372
|
}, z.core.$strip>>>;
|
|
3373
|
+
recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3374
|
+
id: z.ZodString;
|
|
3375
|
+
productId: z.ZodString;
|
|
3376
|
+
productVariantId: z.ZodString;
|
|
3377
|
+
}, z.core.$strip>>>;
|
|
3363
3378
|
}, z.core.$strip>>;
|
|
3364
3379
|
}, z.core.$strip>;
|
|
3365
3380
|
type MenuCategory = z.infer<typeof MenuCategorySchema>;
|
|
@@ -3423,6 +3438,7 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3423
3438
|
value: z.ZodString;
|
|
3424
3439
|
}, z.core.$strip>>>;
|
|
3425
3440
|
isAvailableForPurchase: z.ZodBoolean;
|
|
3441
|
+
isShownInCatalog: z.ZodBoolean;
|
|
3426
3442
|
variants: z.ZodArray<z.ZodObject<{
|
|
3427
3443
|
id: z.ZodString;
|
|
3428
3444
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -3461,8 +3477,7 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3461
3477
|
lb: "lb";
|
|
3462
3478
|
}>;
|
|
3463
3479
|
weightValue: z.ZodNumber;
|
|
3464
|
-
|
|
3465
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
3480
|
+
price: z.ZodNumber;
|
|
3466
3481
|
sku: z.ZodNullable<z.ZodString>;
|
|
3467
3482
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
3468
3483
|
calories: z.ZodNumber;
|
|
@@ -3486,6 +3501,11 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
3486
3501
|
value: z.ZodString;
|
|
3487
3502
|
}, z.core.$strip>>;
|
|
3488
3503
|
}, z.core.$strip>>>;
|
|
3504
|
+
recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3505
|
+
id: z.ZodString;
|
|
3506
|
+
productId: z.ZodString;
|
|
3507
|
+
productVariantId: z.ZodString;
|
|
3508
|
+
}, z.core.$strip>>>;
|
|
3489
3509
|
}, z.core.$strip>>;
|
|
3490
3510
|
}, z.core.$strip>>;
|
|
3491
3511
|
}, z.core.$strip>;
|
|
@@ -4003,8 +4023,7 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4003
4023
|
lb: "lb";
|
|
4004
4024
|
}>;
|
|
4005
4025
|
weightValue: z.ZodNumber;
|
|
4006
|
-
|
|
4007
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
4026
|
+
price: z.ZodNumber;
|
|
4008
4027
|
sku: z.ZodNullable<z.ZodString>;
|
|
4009
4028
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
4010
4029
|
calories: z.ZodNumber;
|
|
@@ -4014,6 +4033,12 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4014
4033
|
}, z.core.$strip>>;
|
|
4015
4034
|
}, z.core.$strip>;
|
|
4016
4035
|
type ProductVariant = z.infer<typeof ProductVariantSchema>;
|
|
4036
|
+
declare const RecommendedProductSchema: z.ZodObject<{
|
|
4037
|
+
id: z.ZodString;
|
|
4038
|
+
productId: z.ZodString;
|
|
4039
|
+
productVariantId: z.ZodString;
|
|
4040
|
+
}, z.core.$strip>;
|
|
4041
|
+
type RecommendedProduct = z.infer<typeof RecommendedProductSchema>;
|
|
4017
4042
|
declare const ProductSchema: z.ZodObject<{
|
|
4018
4043
|
id: z.ZodString;
|
|
4019
4044
|
slug: z.ZodString;
|
|
@@ -4042,6 +4067,7 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4042
4067
|
value: z.ZodString;
|
|
4043
4068
|
}, z.core.$strip>>>;
|
|
4044
4069
|
isAvailableForPurchase: z.ZodBoolean;
|
|
4070
|
+
isShownInCatalog: z.ZodBoolean;
|
|
4045
4071
|
variants: z.ZodArray<z.ZodObject<{
|
|
4046
4072
|
id: z.ZodString;
|
|
4047
4073
|
title: z.ZodArray<z.ZodObject<{
|
|
@@ -4080,8 +4106,7 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4080
4106
|
lb: "lb";
|
|
4081
4107
|
}>;
|
|
4082
4108
|
weightValue: z.ZodNumber;
|
|
4083
|
-
|
|
4084
|
-
net: z.ZodNullable<z.ZodNumber>;
|
|
4109
|
+
price: z.ZodNumber;
|
|
4085
4110
|
sku: z.ZodNullable<z.ZodString>;
|
|
4086
4111
|
nutritionFacts: z.ZodNullable<z.ZodObject<{
|
|
4087
4112
|
calories: z.ZodNumber;
|
|
@@ -4105,6 +4130,11 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4105
4130
|
value: z.ZodString;
|
|
4106
4131
|
}, z.core.$strip>>;
|
|
4107
4132
|
}, z.core.$strip>>>;
|
|
4133
|
+
recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4134
|
+
id: z.ZodString;
|
|
4135
|
+
productId: z.ZodString;
|
|
4136
|
+
productVariantId: z.ZodString;
|
|
4137
|
+
}, z.core.$strip>>>;
|
|
4108
4138
|
}, z.core.$strip>;
|
|
4109
4139
|
type Product = z.infer<typeof ProductSchema>;
|
|
4110
4140
|
|
|
@@ -4335,5 +4365,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
4335
4365
|
}, z.core.$strip>;
|
|
4336
4366
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
4337
4367
|
|
|
4338
|
-
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, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
|
4339
|
-
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, Schedule, TimePeriod, TimeType, TimeZone, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
|
|
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -411,19 +411,25 @@ const ProductVariantSchema = z.object({
|
|
|
411
411
|
images: ImageSchema.array(),
|
|
412
412
|
weightUnit: WeightUnitSchema,
|
|
413
413
|
weightValue: z.number(),
|
|
414
|
-
|
|
415
|
-
net: z.number().nullable(),
|
|
414
|
+
price: z.number(),
|
|
416
415
|
sku: z.string().nullable(),
|
|
417
416
|
nutritionFacts: NutritionFactsSchema.nullable()
|
|
418
417
|
});
|
|
418
|
+
const RecommendedProductSchema = z.object({
|
|
419
|
+
id: z.string(),
|
|
420
|
+
productId: z.string(),
|
|
421
|
+
productVariantId: z.string()
|
|
422
|
+
});
|
|
419
423
|
const ProductSchema = z.object({
|
|
420
424
|
id: z.string(),
|
|
421
425
|
slug: z.string(),
|
|
422
426
|
title: LocaleValueSchema.array(),
|
|
423
427
|
description: LocaleValueSchema.array().optional(),
|
|
424
428
|
isAvailableForPurchase: z.boolean(),
|
|
429
|
+
isShownInCatalog: z.boolean(),
|
|
425
430
|
variants: ProductVariantSchema.array(),
|
|
426
|
-
badges: ProductBadgeSchema.array().optional()
|
|
431
|
+
badges: ProductBadgeSchema.array().optional(),
|
|
432
|
+
recommendedProducts: RecommendedProductSchema.array().optional()
|
|
427
433
|
});
|
|
428
434
|
|
|
429
435
|
const MenuCategorySchema = z.object({
|
|
@@ -671,4 +677,4 @@ const GatewayResponseSchema = z.discriminatedUnion("type", [
|
|
|
671
677
|
GatewayGetTimeSlotsResponseSchema
|
|
672
678
|
]);
|
|
673
679
|
|
|
674
|
-
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, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
|
|
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 };
|