@nextorders/food-schema 0.1.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 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<{
@@ -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<{
@@ -1797,6 +1798,13 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
1797
1798
  webp: "webp";
1798
1799
  }>;
1799
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>>;
1800
1808
  weightUnit: z.ZodEnum<{
1801
1809
  g: "g";
1802
1810
  kg: "kg";
@@ -1806,8 +1814,7 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
1806
1814
  lb: "lb";
1807
1815
  }>;
1808
1816
  weightValue: z.ZodNumber;
1809
- gross: z.ZodNumber;
1810
- net: z.ZodNullable<z.ZodNumber>;
1817
+ price: z.ZodNumber;
1811
1818
  sku: z.ZodNullable<z.ZodString>;
1812
1819
  nutritionFacts: z.ZodNullable<z.ZodObject<{
1813
1820
  calories: z.ZodNumber;
@@ -1831,6 +1838,11 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
1831
1838
  value: z.ZodString;
1832
1839
  }, z.core.$strip>>;
1833
1840
  }, z.core.$strip>>>;
1841
+ recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1842
+ id: z.ZodString;
1843
+ productId: z.ZodString;
1844
+ productVariantId: z.ZodString;
1845
+ }, z.core.$strip>>>;
1834
1846
  }, z.core.$strip>>;
1835
1847
  }, z.core.$strip>>;
1836
1848
  }, z.core.$strip>;
@@ -2421,9 +2433,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2421
2433
  value: z.ZodString;
2422
2434
  }, z.core.$strip>>;
2423
2435
  type: z.ZodEnum<{
2436
+ custom: "custom";
2424
2437
  cash: "cash";
2425
2438
  card: "card";
2426
- custom: "custom";
2427
2439
  }>;
2428
2440
  }, z.core.$strip>>;
2429
2441
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2485,9 +2497,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2485
2497
  value: z.ZodString;
2486
2498
  }, z.core.$strip>>;
2487
2499
  type: z.ZodEnum<{
2500
+ custom: "custom";
2488
2501
  cash: "cash";
2489
2502
  card: "card";
2490
- custom: "custom";
2491
2503
  }>;
2492
2504
  }, z.core.$strip>>;
2493
2505
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3008,6 +3020,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3008
3020
  value: z.ZodString;
3009
3021
  }, z.core.$strip>>>;
3010
3022
  isAvailableForPurchase: z.ZodBoolean;
3023
+ isShownInCatalog: z.ZodBoolean;
3011
3024
  variants: z.ZodArray<z.ZodObject<{
3012
3025
  id: z.ZodString;
3013
3026
  title: z.ZodArray<z.ZodObject<{
@@ -3037,6 +3050,13 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3037
3050
  webp: "webp";
3038
3051
  }>;
3039
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>>;
3040
3060
  weightUnit: z.ZodEnum<{
3041
3061
  g: "g";
3042
3062
  kg: "kg";
@@ -3046,8 +3066,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3046
3066
  lb: "lb";
3047
3067
  }>;
3048
3068
  weightValue: z.ZodNumber;
3049
- gross: z.ZodNumber;
3050
- net: z.ZodNullable<z.ZodNumber>;
3069
+ price: z.ZodNumber;
3051
3070
  sku: z.ZodNullable<z.ZodString>;
3052
3071
  nutritionFacts: z.ZodNullable<z.ZodObject<{
3053
3072
  calories: z.ZodNumber;
@@ -3071,6 +3090,11 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3071
3090
  value: z.ZodString;
3072
3091
  }, z.core.$strip>>;
3073
3092
  }, z.core.$strip>>>;
3093
+ recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3094
+ id: z.ZodString;
3095
+ productId: z.ZodString;
3096
+ productVariantId: z.ZodString;
3097
+ }, z.core.$strip>>>;
3074
3098
  }, z.core.$strip>>;
3075
3099
  }, z.core.$strip>>;
3076
3100
  }, z.core.$strip>;
@@ -3297,6 +3321,7 @@ declare const MenuCategorySchema: z.ZodObject<{
3297
3321
  value: z.ZodString;
3298
3322
  }, z.core.$strip>>>;
3299
3323
  isAvailableForPurchase: z.ZodBoolean;
3324
+ isShownInCatalog: z.ZodBoolean;
3300
3325
  variants: z.ZodArray<z.ZodObject<{
3301
3326
  id: z.ZodString;
3302
3327
  title: z.ZodArray<z.ZodObject<{
@@ -3326,6 +3351,13 @@ declare const MenuCategorySchema: z.ZodObject<{
3326
3351
  webp: "webp";
3327
3352
  }>;
3328
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>>;
3329
3361
  weightUnit: z.ZodEnum<{
3330
3362
  g: "g";
3331
3363
  kg: "kg";
@@ -3335,8 +3367,7 @@ declare const MenuCategorySchema: z.ZodObject<{
3335
3367
  lb: "lb";
3336
3368
  }>;
3337
3369
  weightValue: z.ZodNumber;
3338
- gross: z.ZodNumber;
3339
- net: z.ZodNullable<z.ZodNumber>;
3370
+ price: z.ZodNumber;
3340
3371
  sku: z.ZodNullable<z.ZodString>;
3341
3372
  nutritionFacts: z.ZodNullable<z.ZodObject<{
3342
3373
  calories: z.ZodNumber;
@@ -3360,6 +3391,11 @@ declare const MenuCategorySchema: z.ZodObject<{
3360
3391
  value: z.ZodString;
3361
3392
  }, z.core.$strip>>;
3362
3393
  }, z.core.$strip>>>;
3394
+ recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3395
+ id: z.ZodString;
3396
+ productId: z.ZodString;
3397
+ productVariantId: z.ZodString;
3398
+ }, z.core.$strip>>>;
3363
3399
  }, z.core.$strip>>;
3364
3400
  }, z.core.$strip>;
3365
3401
  type MenuCategory = z.infer<typeof MenuCategorySchema>;
@@ -3423,6 +3459,7 @@ declare const MenuSchema: z.ZodObject<{
3423
3459
  value: z.ZodString;
3424
3460
  }, z.core.$strip>>>;
3425
3461
  isAvailableForPurchase: z.ZodBoolean;
3462
+ isShownInCatalog: z.ZodBoolean;
3426
3463
  variants: z.ZodArray<z.ZodObject<{
3427
3464
  id: z.ZodString;
3428
3465
  title: z.ZodArray<z.ZodObject<{
@@ -3452,6 +3489,13 @@ declare const MenuSchema: z.ZodObject<{
3452
3489
  webp: "webp";
3453
3490
  }>;
3454
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>>;
3455
3499
  weightUnit: z.ZodEnum<{
3456
3500
  g: "g";
3457
3501
  kg: "kg";
@@ -3461,8 +3505,7 @@ declare const MenuSchema: z.ZodObject<{
3461
3505
  lb: "lb";
3462
3506
  }>;
3463
3507
  weightValue: z.ZodNumber;
3464
- gross: z.ZodNumber;
3465
- net: z.ZodNullable<z.ZodNumber>;
3508
+ price: z.ZodNumber;
3466
3509
  sku: z.ZodNullable<z.ZodString>;
3467
3510
  nutritionFacts: z.ZodNullable<z.ZodObject<{
3468
3511
  calories: z.ZodNumber;
@@ -3486,6 +3529,11 @@ declare const MenuSchema: z.ZodObject<{
3486
3529
  value: z.ZodString;
3487
3530
  }, z.core.$strip>>;
3488
3531
  }, z.core.$strip>>>;
3532
+ recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3533
+ id: z.ZodString;
3534
+ productId: z.ZodString;
3535
+ productVariantId: z.ZodString;
3536
+ }, z.core.$strip>>>;
3489
3537
  }, z.core.$strip>>;
3490
3538
  }, z.core.$strip>>;
3491
3539
  }, z.core.$strip>;
@@ -3915,9 +3963,9 @@ declare const OrderSchema: z.ZodObject<{
3915
3963
  type Order = z.infer<typeof OrderSchema>;
3916
3964
 
3917
3965
  declare const PaymentMethodTypeSchema: z.ZodEnum<{
3966
+ custom: "custom";
3918
3967
  cash: "cash";
3919
3968
  card: "card";
3920
- custom: "custom";
3921
3969
  }>;
3922
3970
  type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
3923
3971
  declare const PaymentMethodSchema: z.ZodObject<{
@@ -3935,9 +3983,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
3935
3983
  value: z.ZodString;
3936
3984
  }, z.core.$strip>>;
3937
3985
  type: z.ZodEnum<{
3986
+ custom: "custom";
3938
3987
  cash: "cash";
3939
3988
  card: "card";
3940
- custom: "custom";
3941
3989
  }>;
3942
3990
  }, z.core.$strip>;
3943
3991
  type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
@@ -3994,6 +4042,13 @@ declare const ProductVariantSchema: z.ZodObject<{
3994
4042
  webp: "webp";
3995
4043
  }>;
3996
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>>;
3997
4052
  weightUnit: z.ZodEnum<{
3998
4053
  g: "g";
3999
4054
  kg: "kg";
@@ -4003,8 +4058,7 @@ declare const ProductVariantSchema: z.ZodObject<{
4003
4058
  lb: "lb";
4004
4059
  }>;
4005
4060
  weightValue: z.ZodNumber;
4006
- gross: z.ZodNumber;
4007
- net: z.ZodNullable<z.ZodNumber>;
4061
+ price: z.ZodNumber;
4008
4062
  sku: z.ZodNullable<z.ZodString>;
4009
4063
  nutritionFacts: z.ZodNullable<z.ZodObject<{
4010
4064
  calories: z.ZodNumber;
@@ -4014,6 +4068,12 @@ declare const ProductVariantSchema: z.ZodObject<{
4014
4068
  }, z.core.$strip>>;
4015
4069
  }, z.core.$strip>;
4016
4070
  type ProductVariant = z.infer<typeof ProductVariantSchema>;
4071
+ declare const RecommendedProductSchema: z.ZodObject<{
4072
+ id: z.ZodString;
4073
+ productId: z.ZodString;
4074
+ productVariantId: z.ZodString;
4075
+ }, z.core.$strip>;
4076
+ type RecommendedProduct = z.infer<typeof RecommendedProductSchema>;
4017
4077
  declare const ProductSchema: z.ZodObject<{
4018
4078
  id: z.ZodString;
4019
4079
  slug: z.ZodString;
@@ -4042,6 +4102,7 @@ declare const ProductSchema: z.ZodObject<{
4042
4102
  value: z.ZodString;
4043
4103
  }, z.core.$strip>>>;
4044
4104
  isAvailableForPurchase: z.ZodBoolean;
4105
+ isShownInCatalog: z.ZodBoolean;
4045
4106
  variants: z.ZodArray<z.ZodObject<{
4046
4107
  id: z.ZodString;
4047
4108
  title: z.ZodArray<z.ZodObject<{
@@ -4071,6 +4132,13 @@ declare const ProductSchema: z.ZodObject<{
4071
4132
  webp: "webp";
4072
4133
  }>;
4073
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>>;
4074
4142
  weightUnit: z.ZodEnum<{
4075
4143
  g: "g";
4076
4144
  kg: "kg";
@@ -4080,8 +4148,7 @@ declare const ProductSchema: z.ZodObject<{
4080
4148
  lb: "lb";
4081
4149
  }>;
4082
4150
  weightValue: z.ZodNumber;
4083
- gross: z.ZodNumber;
4084
- net: z.ZodNullable<z.ZodNumber>;
4151
+ price: z.ZodNumber;
4085
4152
  sku: z.ZodNullable<z.ZodString>;
4086
4153
  nutritionFacts: z.ZodNullable<z.ZodObject<{
4087
4154
  calories: z.ZodNumber;
@@ -4105,6 +4172,11 @@ declare const ProductSchema: z.ZodObject<{
4105
4172
  value: z.ZodString;
4106
4173
  }, z.core.$strip>>;
4107
4174
  }, z.core.$strip>>>;
4175
+ recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
4176
+ id: z.ZodString;
4177
+ productId: z.ZodString;
4178
+ productVariantId: z.ZodString;
4179
+ }, z.core.$strip>>>;
4108
4180
  }, z.core.$strip>;
4109
4181
  type Product = z.infer<typeof ProductSchema>;
4110
4182
 
@@ -4289,6 +4361,19 @@ declare const OpeningStatusSchema: z.ZodObject<{
4289
4361
  }, z.core.$strip>;
4290
4362
  type OpeningStatus = z.infer<typeof OpeningStatusSchema>;
4291
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
+
4292
4377
  declare const WarehouseAddressSchema: z.ZodObject<{
4293
4378
  street: z.ZodArray<z.ZodObject<{
4294
4379
  locale: z.ZodEnum<{
@@ -4335,5 +4420,5 @@ declare const WarehouseSchema: z.ZodObject<{
4335
4420
  }, z.core.$strip>;
4336
4421
  type Warehouse = z.infer<typeof WarehouseSchema>;
4337
4422
 
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 };
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<{
@@ -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<{
@@ -1797,6 +1798,13 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
1797
1798
  webp: "webp";
1798
1799
  }>;
1799
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>>;
1800
1808
  weightUnit: z.ZodEnum<{
1801
1809
  g: "g";
1802
1810
  kg: "kg";
@@ -1806,8 +1814,7 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
1806
1814
  lb: "lb";
1807
1815
  }>;
1808
1816
  weightValue: z.ZodNumber;
1809
- gross: z.ZodNumber;
1810
- net: z.ZodNullable<z.ZodNumber>;
1817
+ price: z.ZodNumber;
1811
1818
  sku: z.ZodNullable<z.ZodString>;
1812
1819
  nutritionFacts: z.ZodNullable<z.ZodObject<{
1813
1820
  calories: z.ZodNumber;
@@ -1831,6 +1838,11 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
1831
1838
  value: z.ZodString;
1832
1839
  }, z.core.$strip>>;
1833
1840
  }, z.core.$strip>>>;
1841
+ recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1842
+ id: z.ZodString;
1843
+ productId: z.ZodString;
1844
+ productVariantId: z.ZodString;
1845
+ }, z.core.$strip>>>;
1834
1846
  }, z.core.$strip>>;
1835
1847
  }, z.core.$strip>>;
1836
1848
  }, z.core.$strip>;
@@ -2421,9 +2433,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2421
2433
  value: z.ZodString;
2422
2434
  }, z.core.$strip>>;
2423
2435
  type: z.ZodEnum<{
2436
+ custom: "custom";
2424
2437
  cash: "cash";
2425
2438
  card: "card";
2426
- custom: "custom";
2427
2439
  }>;
2428
2440
  }, z.core.$strip>>;
2429
2441
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2485,9 +2497,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2485
2497
  value: z.ZodString;
2486
2498
  }, z.core.$strip>>;
2487
2499
  type: z.ZodEnum<{
2500
+ custom: "custom";
2488
2501
  cash: "cash";
2489
2502
  card: "card";
2490
- custom: "custom";
2491
2503
  }>;
2492
2504
  }, z.core.$strip>>;
2493
2505
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3008,6 +3020,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3008
3020
  value: z.ZodString;
3009
3021
  }, z.core.$strip>>>;
3010
3022
  isAvailableForPurchase: z.ZodBoolean;
3023
+ isShownInCatalog: z.ZodBoolean;
3011
3024
  variants: z.ZodArray<z.ZodObject<{
3012
3025
  id: z.ZodString;
3013
3026
  title: z.ZodArray<z.ZodObject<{
@@ -3037,6 +3050,13 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3037
3050
  webp: "webp";
3038
3051
  }>;
3039
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>>;
3040
3060
  weightUnit: z.ZodEnum<{
3041
3061
  g: "g";
3042
3062
  kg: "kg";
@@ -3046,8 +3066,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3046
3066
  lb: "lb";
3047
3067
  }>;
3048
3068
  weightValue: z.ZodNumber;
3049
- gross: z.ZodNumber;
3050
- net: z.ZodNullable<z.ZodNumber>;
3069
+ price: z.ZodNumber;
3051
3070
  sku: z.ZodNullable<z.ZodString>;
3052
3071
  nutritionFacts: z.ZodNullable<z.ZodObject<{
3053
3072
  calories: z.ZodNumber;
@@ -3071,6 +3090,11 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3071
3090
  value: z.ZodString;
3072
3091
  }, z.core.$strip>>;
3073
3092
  }, z.core.$strip>>>;
3093
+ recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3094
+ id: z.ZodString;
3095
+ productId: z.ZodString;
3096
+ productVariantId: z.ZodString;
3097
+ }, z.core.$strip>>>;
3074
3098
  }, z.core.$strip>>;
3075
3099
  }, z.core.$strip>>;
3076
3100
  }, z.core.$strip>;
@@ -3297,6 +3321,7 @@ declare const MenuCategorySchema: z.ZodObject<{
3297
3321
  value: z.ZodString;
3298
3322
  }, z.core.$strip>>>;
3299
3323
  isAvailableForPurchase: z.ZodBoolean;
3324
+ isShownInCatalog: z.ZodBoolean;
3300
3325
  variants: z.ZodArray<z.ZodObject<{
3301
3326
  id: z.ZodString;
3302
3327
  title: z.ZodArray<z.ZodObject<{
@@ -3326,6 +3351,13 @@ declare const MenuCategorySchema: z.ZodObject<{
3326
3351
  webp: "webp";
3327
3352
  }>;
3328
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>>;
3329
3361
  weightUnit: z.ZodEnum<{
3330
3362
  g: "g";
3331
3363
  kg: "kg";
@@ -3335,8 +3367,7 @@ declare const MenuCategorySchema: z.ZodObject<{
3335
3367
  lb: "lb";
3336
3368
  }>;
3337
3369
  weightValue: z.ZodNumber;
3338
- gross: z.ZodNumber;
3339
- net: z.ZodNullable<z.ZodNumber>;
3370
+ price: z.ZodNumber;
3340
3371
  sku: z.ZodNullable<z.ZodString>;
3341
3372
  nutritionFacts: z.ZodNullable<z.ZodObject<{
3342
3373
  calories: z.ZodNumber;
@@ -3360,6 +3391,11 @@ declare const MenuCategorySchema: z.ZodObject<{
3360
3391
  value: z.ZodString;
3361
3392
  }, z.core.$strip>>;
3362
3393
  }, z.core.$strip>>>;
3394
+ recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3395
+ id: z.ZodString;
3396
+ productId: z.ZodString;
3397
+ productVariantId: z.ZodString;
3398
+ }, z.core.$strip>>>;
3363
3399
  }, z.core.$strip>>;
3364
3400
  }, z.core.$strip>;
3365
3401
  type MenuCategory = z.infer<typeof MenuCategorySchema>;
@@ -3423,6 +3459,7 @@ declare const MenuSchema: z.ZodObject<{
3423
3459
  value: z.ZodString;
3424
3460
  }, z.core.$strip>>>;
3425
3461
  isAvailableForPurchase: z.ZodBoolean;
3462
+ isShownInCatalog: z.ZodBoolean;
3426
3463
  variants: z.ZodArray<z.ZodObject<{
3427
3464
  id: z.ZodString;
3428
3465
  title: z.ZodArray<z.ZodObject<{
@@ -3452,6 +3489,13 @@ declare const MenuSchema: z.ZodObject<{
3452
3489
  webp: "webp";
3453
3490
  }>;
3454
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>>;
3455
3499
  weightUnit: z.ZodEnum<{
3456
3500
  g: "g";
3457
3501
  kg: "kg";
@@ -3461,8 +3505,7 @@ declare const MenuSchema: z.ZodObject<{
3461
3505
  lb: "lb";
3462
3506
  }>;
3463
3507
  weightValue: z.ZodNumber;
3464
- gross: z.ZodNumber;
3465
- net: z.ZodNullable<z.ZodNumber>;
3508
+ price: z.ZodNumber;
3466
3509
  sku: z.ZodNullable<z.ZodString>;
3467
3510
  nutritionFacts: z.ZodNullable<z.ZodObject<{
3468
3511
  calories: z.ZodNumber;
@@ -3486,6 +3529,11 @@ declare const MenuSchema: z.ZodObject<{
3486
3529
  value: z.ZodString;
3487
3530
  }, z.core.$strip>>;
3488
3531
  }, z.core.$strip>>>;
3532
+ recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3533
+ id: z.ZodString;
3534
+ productId: z.ZodString;
3535
+ productVariantId: z.ZodString;
3536
+ }, z.core.$strip>>>;
3489
3537
  }, z.core.$strip>>;
3490
3538
  }, z.core.$strip>>;
3491
3539
  }, z.core.$strip>;
@@ -3915,9 +3963,9 @@ declare const OrderSchema: z.ZodObject<{
3915
3963
  type Order = z.infer<typeof OrderSchema>;
3916
3964
 
3917
3965
  declare const PaymentMethodTypeSchema: z.ZodEnum<{
3966
+ custom: "custom";
3918
3967
  cash: "cash";
3919
3968
  card: "card";
3920
- custom: "custom";
3921
3969
  }>;
3922
3970
  type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
3923
3971
  declare const PaymentMethodSchema: z.ZodObject<{
@@ -3935,9 +3983,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
3935
3983
  value: z.ZodString;
3936
3984
  }, z.core.$strip>>;
3937
3985
  type: z.ZodEnum<{
3986
+ custom: "custom";
3938
3987
  cash: "cash";
3939
3988
  card: "card";
3940
- custom: "custom";
3941
3989
  }>;
3942
3990
  }, z.core.$strip>;
3943
3991
  type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
@@ -3994,6 +4042,13 @@ declare const ProductVariantSchema: z.ZodObject<{
3994
4042
  webp: "webp";
3995
4043
  }>;
3996
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>>;
3997
4052
  weightUnit: z.ZodEnum<{
3998
4053
  g: "g";
3999
4054
  kg: "kg";
@@ -4003,8 +4058,7 @@ declare const ProductVariantSchema: z.ZodObject<{
4003
4058
  lb: "lb";
4004
4059
  }>;
4005
4060
  weightValue: z.ZodNumber;
4006
- gross: z.ZodNumber;
4007
- net: z.ZodNullable<z.ZodNumber>;
4061
+ price: z.ZodNumber;
4008
4062
  sku: z.ZodNullable<z.ZodString>;
4009
4063
  nutritionFacts: z.ZodNullable<z.ZodObject<{
4010
4064
  calories: z.ZodNumber;
@@ -4014,6 +4068,12 @@ declare const ProductVariantSchema: z.ZodObject<{
4014
4068
  }, z.core.$strip>>;
4015
4069
  }, z.core.$strip>;
4016
4070
  type ProductVariant = z.infer<typeof ProductVariantSchema>;
4071
+ declare const RecommendedProductSchema: z.ZodObject<{
4072
+ id: z.ZodString;
4073
+ productId: z.ZodString;
4074
+ productVariantId: z.ZodString;
4075
+ }, z.core.$strip>;
4076
+ type RecommendedProduct = z.infer<typeof RecommendedProductSchema>;
4017
4077
  declare const ProductSchema: z.ZodObject<{
4018
4078
  id: z.ZodString;
4019
4079
  slug: z.ZodString;
@@ -4042,6 +4102,7 @@ declare const ProductSchema: z.ZodObject<{
4042
4102
  value: z.ZodString;
4043
4103
  }, z.core.$strip>>>;
4044
4104
  isAvailableForPurchase: z.ZodBoolean;
4105
+ isShownInCatalog: z.ZodBoolean;
4045
4106
  variants: z.ZodArray<z.ZodObject<{
4046
4107
  id: z.ZodString;
4047
4108
  title: z.ZodArray<z.ZodObject<{
@@ -4071,6 +4132,13 @@ declare const ProductSchema: z.ZodObject<{
4071
4132
  webp: "webp";
4072
4133
  }>;
4073
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>>;
4074
4142
  weightUnit: z.ZodEnum<{
4075
4143
  g: "g";
4076
4144
  kg: "kg";
@@ -4080,8 +4148,7 @@ declare const ProductSchema: z.ZodObject<{
4080
4148
  lb: "lb";
4081
4149
  }>;
4082
4150
  weightValue: z.ZodNumber;
4083
- gross: z.ZodNumber;
4084
- net: z.ZodNullable<z.ZodNumber>;
4151
+ price: z.ZodNumber;
4085
4152
  sku: z.ZodNullable<z.ZodString>;
4086
4153
  nutritionFacts: z.ZodNullable<z.ZodObject<{
4087
4154
  calories: z.ZodNumber;
@@ -4105,6 +4172,11 @@ declare const ProductSchema: z.ZodObject<{
4105
4172
  value: z.ZodString;
4106
4173
  }, z.core.$strip>>;
4107
4174
  }, z.core.$strip>>>;
4175
+ recommendedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
4176
+ id: z.ZodString;
4177
+ productId: z.ZodString;
4178
+ productVariantId: z.ZodString;
4179
+ }, z.core.$strip>>>;
4108
4180
  }, z.core.$strip>;
4109
4181
  type Product = z.infer<typeof ProductSchema>;
4110
4182
 
@@ -4289,6 +4361,19 @@ declare const OpeningStatusSchema: z.ZodObject<{
4289
4361
  }, z.core.$strip>;
4290
4362
  type OpeningStatus = z.infer<typeof OpeningStatusSchema>;
4291
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
+
4292
4377
  declare const WarehouseAddressSchema: z.ZodObject<{
4293
4378
  street: z.ZodArray<z.ZodObject<{
4294
4379
  locale: z.ZodEnum<{
@@ -4335,5 +4420,5 @@ declare const WarehouseSchema: z.ZodObject<{
4335
4420
  }, z.core.$strip>;
4336
4421
  type Warehouse = z.infer<typeof WarehouseSchema>;
4337
4422
 
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 };
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,21 +416,28 @@ 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
- gross: z.number(),
415
- net: z.number().nullable(),
422
+ price: z.number(),
416
423
  sku: z.string().nullable(),
417
424
  nutritionFacts: NutritionFactsSchema.nullable()
418
425
  });
426
+ const RecommendedProductSchema = z.object({
427
+ id: z.string(),
428
+ productId: z.string(),
429
+ productVariantId: z.string()
430
+ });
419
431
  const ProductSchema = z.object({
420
432
  id: z.string(),
421
433
  slug: z.string(),
422
434
  title: LocaleValueSchema.array(),
423
435
  description: LocaleValueSchema.array().optional(),
424
436
  isAvailableForPurchase: z.boolean(),
437
+ isShownInCatalog: z.boolean(),
425
438
  variants: ProductVariantSchema.array(),
426
- badges: ProductBadgeSchema.array().optional()
439
+ badges: ProductBadgeSchema.array().optional(),
440
+ recommendedProducts: RecommendedProductSchema.array().optional()
427
441
  });
428
442
 
429
443
  const MenuCategorySchema = z.object({
@@ -671,4 +685,4 @@ const GatewayResponseSchema = z.discriminatedUnion("type", [
671
685
  GatewayGetTimeSlotsResponseSchema
672
686
  ]);
673
687
 
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 };
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 };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nextorders/food-schema",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.2.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },