@nextorders/food-schema 0.3.1 → 0.3.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 CHANGED
@@ -21,9 +21,9 @@ declare const DeliveryByCourierSchema: z.ZodObject<{
21
21
  value: z.ZodString;
22
22
  }, z.core.$strip>>;
23
23
  type: z.ZodEnum<{
24
- custom: "custom";
25
24
  cash: "cash";
26
25
  card: "card";
26
+ custom: "custom";
27
27
  }>;
28
28
  }, z.core.$strip>>;
29
29
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -98,9 +98,9 @@ declare const SelfPickupSchema: z.ZodObject<{
98
98
  value: z.ZodString;
99
99
  }, z.core.$strip>>;
100
100
  type: z.ZodEnum<{
101
- custom: "custom";
102
101
  cash: "cash";
103
102
  card: "card";
103
+ custom: "custom";
104
104
  }>;
105
105
  }, z.core.$strip>>;
106
106
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -400,9 +400,9 @@ declare const ChannelSchema: z.ZodObject<{
400
400
  value: z.ZodString;
401
401
  }, z.core.$strip>>;
402
402
  type: z.ZodEnum<{
403
- custom: "custom";
404
403
  cash: "cash";
405
404
  card: "card";
405
+ custom: "custom";
406
406
  }>;
407
407
  }, z.core.$strip>>;
408
408
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -476,9 +476,9 @@ declare const ChannelSchema: z.ZodObject<{
476
476
  value: z.ZodString;
477
477
  }, z.core.$strip>>;
478
478
  type: z.ZodEnum<{
479
- custom: "custom";
480
479
  cash: "cash";
481
480
  card: "card";
481
+ custom: "custom";
482
482
  }>;
483
483
  }, z.core.$strip>>;
484
484
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -987,6 +987,7 @@ declare const GatewayActionTypeSchema: z.ZodEnum<{
987
987
  getSelfPickupStatus: "getSelfPickupStatus";
988
988
  getTimeSlots: "getTimeSlots";
989
989
  suggestAddresses: "suggestAddresses";
990
+ checkDeliveryZone: "checkDeliveryZone";
990
991
  }>;
991
992
  type GatewayActionType = z.infer<typeof GatewayActionTypeSchema>;
992
993
  /**
@@ -1008,6 +1009,7 @@ declare const GatewayRequestSchema: z.ZodObject<{
1008
1009
  getSelfPickupStatus: "getSelfPickupStatus";
1009
1010
  getTimeSlots: "getTimeSlots";
1010
1011
  suggestAddresses: "suggestAddresses";
1012
+ checkDeliveryZone: "checkDeliveryZone";
1011
1013
  }>;
1012
1014
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1013
1015
  body: z.ZodOptional<z.ZodUnknown>;
@@ -1478,9 +1480,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1478
1480
  value: z.ZodString;
1479
1481
  }, z.core.$strip>>;
1480
1482
  type: z.ZodEnum<{
1481
- custom: "custom";
1482
1483
  cash: "cash";
1483
1484
  card: "card";
1485
+ custom: "custom";
1484
1486
  }>;
1485
1487
  }, z.core.$strip>>;
1486
1488
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1554,9 +1556,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1554
1556
  value: z.ZodString;
1555
1557
  }, z.core.$strip>>;
1556
1558
  type: z.ZodEnum<{
1557
- custom: "custom";
1558
1559
  cash: "cash";
1559
1560
  card: "card";
1561
+ custom: "custom";
1560
1562
  }>;
1561
1563
  }, z.core.$strip>>;
1562
1564
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1782,6 +1784,8 @@ declare const GatewayGetOrderResponseSchema: z.ZodObject<{
1782
1784
  entrance: z.ZodOptional<z.ZodString>;
1783
1785
  floor: z.ZodOptional<z.ZodString>;
1784
1786
  addressNote: z.ZodOptional<z.ZodString>;
1787
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1788
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1785
1789
  }, z.core.$strip>, z.ZodObject<{
1786
1790
  type: z.ZodLiteral<"warehouseAddress">;
1787
1791
  id: z.ZodString;
@@ -1843,6 +1847,8 @@ declare const GatewayCreateOrderResponseSchema: z.ZodObject<{
1843
1847
  entrance: z.ZodOptional<z.ZodString>;
1844
1848
  floor: z.ZodOptional<z.ZodString>;
1845
1849
  addressNote: z.ZodOptional<z.ZodString>;
1850
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1851
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1846
1852
  }, z.core.$strip>, z.ZodObject<{
1847
1853
  type: z.ZodLiteral<"warehouseAddress">;
1848
1854
  id: z.ZodString;
@@ -1897,6 +1903,8 @@ declare const GatewayUpdateOrderRequestSchema: z.ZodObject<{
1897
1903
  entrance: z.ZodOptional<z.ZodString>;
1898
1904
  floor: z.ZodOptional<z.ZodString>;
1899
1905
  addressNote: z.ZodOptional<z.ZodString>;
1906
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1907
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1900
1908
  }, z.core.$strip>, z.ZodObject<{
1901
1909
  type: z.ZodLiteral<"warehouseAddress">;
1902
1910
  id: z.ZodString;
@@ -1952,6 +1960,8 @@ declare const GatewayUpdateOrderResponseSchema: z.ZodObject<{
1952
1960
  entrance: z.ZodOptional<z.ZodString>;
1953
1961
  floor: z.ZodOptional<z.ZodString>;
1954
1962
  addressNote: z.ZodOptional<z.ZodString>;
1963
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1964
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1955
1965
  }, z.core.$strip>, z.ZodObject<{
1956
1966
  type: z.ZodLiteral<"warehouseAddress">;
1957
1967
  id: z.ZodString;
@@ -2006,6 +2016,8 @@ declare const GatewayCompleteOrderRequestSchema: z.ZodObject<{
2006
2016
  entrance: z.ZodOptional<z.ZodString>;
2007
2017
  floor: z.ZodOptional<z.ZodString>;
2008
2018
  addressNote: z.ZodOptional<z.ZodString>;
2019
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2020
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2009
2021
  }, z.core.$strip>, z.ZodObject<{
2010
2022
  type: z.ZodLiteral<"warehouseAddress">;
2011
2023
  id: z.ZodString;
@@ -2061,6 +2073,8 @@ declare const GatewayCompleteOrderResponseSchema: z.ZodObject<{
2061
2073
  entrance: z.ZodOptional<z.ZodString>;
2062
2074
  floor: z.ZodOptional<z.ZodString>;
2063
2075
  addressNote: z.ZodOptional<z.ZodString>;
2076
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2077
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2064
2078
  }, z.core.$strip>, z.ZodObject<{
2065
2079
  type: z.ZodLiteral<"warehouseAddress">;
2066
2080
  id: z.ZodString;
@@ -2125,6 +2139,8 @@ declare const GatewayAddOrderItemResponseSchema: z.ZodObject<{
2125
2139
  entrance: z.ZodOptional<z.ZodString>;
2126
2140
  floor: z.ZodOptional<z.ZodString>;
2127
2141
  addressNote: z.ZodOptional<z.ZodString>;
2142
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2143
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2128
2144
  }, z.core.$strip>, z.ZodObject<{
2129
2145
  type: z.ZodLiteral<"warehouseAddress">;
2130
2146
  id: z.ZodString;
@@ -2193,6 +2209,8 @@ declare const GatewayIncrementOrderItemQuantityResponseSchema: z.ZodObject<{
2193
2209
  entrance: z.ZodOptional<z.ZodString>;
2194
2210
  floor: z.ZodOptional<z.ZodString>;
2195
2211
  addressNote: z.ZodOptional<z.ZodString>;
2212
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2213
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2196
2214
  }, z.core.$strip>, z.ZodObject<{
2197
2215
  type: z.ZodLiteral<"warehouseAddress">;
2198
2216
  id: z.ZodString;
@@ -2261,6 +2279,8 @@ declare const GatewayDecrementOrderItemQuantityResponseSchema: z.ZodObject<{
2261
2279
  entrance: z.ZodOptional<z.ZodString>;
2262
2280
  floor: z.ZodOptional<z.ZodString>;
2263
2281
  addressNote: z.ZodOptional<z.ZodString>;
2282
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2283
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2264
2284
  }, z.core.$strip>, z.ZodObject<{
2265
2285
  type: z.ZodLiteral<"warehouseAddress">;
2266
2286
  id: z.ZodString;
@@ -2682,6 +2702,32 @@ declare const GatewaySuggestAddressesResponseSchema: z.ZodObject<{
2682
2702
  }, z.core.$strip>>;
2683
2703
  }, z.core.$strip>;
2684
2704
  type GatewaySuggestAddressesResponse = z.infer<typeof GatewaySuggestAddressesResponseSchema>;
2705
+ declare const DeliveryZoneInfoSchema: z.ZodObject<{
2706
+ name: z.ZodString;
2707
+ deliveryPrice: z.ZodNumber;
2708
+ minOrderAmount: z.ZodNullable<z.ZodNumber>;
2709
+ }, z.core.$strip>;
2710
+ type DeliveryZoneInfo = z.infer<typeof DeliveryZoneInfoSchema>;
2711
+ declare const GatewayCheckDeliveryZoneRequestSchema: z.ZodObject<{
2712
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2713
+ type: z.ZodLiteral<"checkDeliveryZone">;
2714
+ body: z.ZodObject<{
2715
+ lat: z.ZodNumber;
2716
+ lon: z.ZodNumber;
2717
+ }, z.core.$strip>;
2718
+ }, z.core.$strip>;
2719
+ type GatewayCheckDeliveryZoneRequest = z.infer<typeof GatewayCheckDeliveryZoneRequestSchema>;
2720
+ declare const GatewayCheckDeliveryZoneResponseSchema: z.ZodObject<{
2721
+ ok: z.ZodBoolean;
2722
+ error: z.ZodOptional<z.ZodString>;
2723
+ type: z.ZodLiteral<"checkDeliveryZone">;
2724
+ result: z.ZodNullable<z.ZodObject<{
2725
+ name: z.ZodString;
2726
+ deliveryPrice: z.ZodNumber;
2727
+ minOrderAmount: z.ZodNullable<z.ZodNumber>;
2728
+ }, z.core.$strip>>;
2729
+ }, z.core.$strip>;
2730
+ type GatewayCheckDeliveryZoneResponse = z.infer<typeof GatewayCheckDeliveryZoneResponseSchema>;
2685
2731
  /**
2686
2732
  * Combined Gateway Response
2687
2733
  */
@@ -3129,9 +3175,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3129
3175
  value: z.ZodString;
3130
3176
  }, z.core.$strip>>;
3131
3177
  type: z.ZodEnum<{
3132
- custom: "custom";
3133
3178
  cash: "cash";
3134
3179
  card: "card";
3180
+ custom: "custom";
3135
3181
  }>;
3136
3182
  }, z.core.$strip>>;
3137
3183
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3205,9 +3251,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3205
3251
  value: z.ZodString;
3206
3252
  }, z.core.$strip>>;
3207
3253
  type: z.ZodEnum<{
3208
- custom: "custom";
3209
3254
  cash: "cash";
3210
3255
  card: "card";
3256
+ custom: "custom";
3211
3257
  }>;
3212
3258
  }, z.core.$strip>>;
3213
3259
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3423,6 +3469,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3423
3469
  entrance: z.ZodOptional<z.ZodString>;
3424
3470
  floor: z.ZodOptional<z.ZodString>;
3425
3471
  addressNote: z.ZodOptional<z.ZodString>;
3472
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3473
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3426
3474
  }, z.core.$strip>, z.ZodObject<{
3427
3475
  type: z.ZodLiteral<"warehouseAddress">;
3428
3476
  id: z.ZodString;
@@ -3476,6 +3524,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3476
3524
  entrance: z.ZodOptional<z.ZodString>;
3477
3525
  floor: z.ZodOptional<z.ZodString>;
3478
3526
  addressNote: z.ZodOptional<z.ZodString>;
3527
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3528
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3479
3529
  }, z.core.$strip>, z.ZodObject<{
3480
3530
  type: z.ZodLiteral<"warehouseAddress">;
3481
3531
  id: z.ZodString;
@@ -3529,6 +3579,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3529
3579
  entrance: z.ZodOptional<z.ZodString>;
3530
3580
  floor: z.ZodOptional<z.ZodString>;
3531
3581
  addressNote: z.ZodOptional<z.ZodString>;
3582
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3583
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3532
3584
  }, z.core.$strip>, z.ZodObject<{
3533
3585
  type: z.ZodLiteral<"warehouseAddress">;
3534
3586
  id: z.ZodString;
@@ -3582,6 +3634,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3582
3634
  entrance: z.ZodOptional<z.ZodString>;
3583
3635
  floor: z.ZodOptional<z.ZodString>;
3584
3636
  addressNote: z.ZodOptional<z.ZodString>;
3637
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3638
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3585
3639
  }, z.core.$strip>, z.ZodObject<{
3586
3640
  type: z.ZodLiteral<"warehouseAddress">;
3587
3641
  id: z.ZodString;
@@ -3635,6 +3689,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3635
3689
  entrance: z.ZodOptional<z.ZodString>;
3636
3690
  floor: z.ZodOptional<z.ZodString>;
3637
3691
  addressNote: z.ZodOptional<z.ZodString>;
3692
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3693
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3638
3694
  }, z.core.$strip>, z.ZodObject<{
3639
3695
  type: z.ZodLiteral<"warehouseAddress">;
3640
3696
  id: z.ZodString;
@@ -3688,6 +3744,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3688
3744
  entrance: z.ZodOptional<z.ZodString>;
3689
3745
  floor: z.ZodOptional<z.ZodString>;
3690
3746
  addressNote: z.ZodOptional<z.ZodString>;
3747
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3748
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3691
3749
  }, z.core.$strip>, z.ZodObject<{
3692
3750
  type: z.ZodLiteral<"warehouseAddress">;
3693
3751
  id: z.ZodString;
@@ -3741,6 +3799,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3741
3799
  entrance: z.ZodOptional<z.ZodString>;
3742
3800
  floor: z.ZodOptional<z.ZodString>;
3743
3801
  addressNote: z.ZodOptional<z.ZodString>;
3802
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3803
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3744
3804
  }, z.core.$strip>, z.ZodObject<{
3745
3805
  type: z.ZodLiteral<"warehouseAddress">;
3746
3806
  id: z.ZodString;
@@ -4107,6 +4167,15 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4107
4167
  lon: z.ZodNullable<z.ZodNumber>;
4108
4168
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4109
4169
  }, z.core.$strip>>;
4170
+ }, z.core.$strip>, z.ZodObject<{
4171
+ ok: z.ZodBoolean;
4172
+ error: z.ZodOptional<z.ZodString>;
4173
+ type: z.ZodLiteral<"checkDeliveryZone">;
4174
+ result: z.ZodNullable<z.ZodObject<{
4175
+ name: z.ZodString;
4176
+ deliveryPrice: z.ZodNumber;
4177
+ minOrderAmount: z.ZodNullable<z.ZodNumber>;
4178
+ }, z.core.$strip>>;
4110
4179
  }, z.core.$strip>], "type">;
4111
4180
  type GatewayResponse = z.infer<typeof GatewayResponseSchema>;
4112
4181
 
@@ -4914,6 +4983,8 @@ declare const OrderDeliveryAddressSchema: z.ZodObject<{
4914
4983
  entrance: z.ZodOptional<z.ZodString>;
4915
4984
  floor: z.ZodOptional<z.ZodString>;
4916
4985
  addressNote: z.ZodOptional<z.ZodString>;
4986
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4987
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4917
4988
  }, z.core.$strip>;
4918
4989
  type OrderDeliveryAddress = z.infer<typeof OrderDeliveryAddressSchema>;
4919
4990
  declare const OrderWarehouseAddressSchema: z.ZodObject<{
@@ -4947,6 +5018,8 @@ declare const OrderSchema: z.ZodObject<{
4947
5018
  entrance: z.ZodOptional<z.ZodString>;
4948
5019
  floor: z.ZodOptional<z.ZodString>;
4949
5020
  addressNote: z.ZodOptional<z.ZodString>;
5021
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5022
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4950
5023
  }, z.core.$strip>, z.ZodObject<{
4951
5024
  type: z.ZodLiteral<"warehouseAddress">;
4952
5025
  id: z.ZodString;
@@ -4983,9 +5056,9 @@ declare const AddressSuggestionSchema: z.ZodObject<{
4983
5056
  type AddressSuggestion = z.infer<typeof AddressSuggestionSchema>;
4984
5057
 
4985
5058
  declare const PaymentMethodTypeSchema: z.ZodEnum<{
4986
- custom: "custom";
4987
5059
  cash: "cash";
4988
5060
  card: "card";
5061
+ custom: "custom";
4989
5062
  }>;
4990
5063
  type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
4991
5064
  declare const PaymentMethodSchema: z.ZodObject<{
@@ -5007,9 +5080,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
5007
5080
  value: z.ZodString;
5008
5081
  }, z.core.$strip>>;
5009
5082
  type: z.ZodEnum<{
5010
- custom: "custom";
5011
5083
  cash: "cash";
5012
5084
  card: "card";
5085
+ custom: "custom";
5013
5086
  }>;
5014
5087
  }, z.core.$strip>;
5015
5088
  type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
@@ -5574,5 +5647,5 @@ declare const WarehouseSchema: z.ZodObject<{
5574
5647
  }, z.core.$strip>;
5575
5648
  type Warehouse = z.infer<typeof WarehouseSchema>;
5576
5649
 
5577
- export { AddressSuggestionSchema, BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DayScheduleSchema, DeliveryByCourierSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCompleteOrderRequestSchema, GatewayCompleteOrderResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewaySuggestAddressesRequestSchema, GatewaySuggestAddressesResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, HeadLinkSchema, HeadScriptSchema, HeadStyleSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LinkSchema, LinksSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NextOpeningSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, SelfPickupSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
5578
- export type { AddressSuggestion, Channel, CompositionIngredient, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, DeliveryByCourier, DeliveryMethod, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCompleteOrderRequest, GatewayCompleteOrderResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewaySuggestAddressesRequest, GatewaySuggestAddressesResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, HeadLink, HeadScript, HeadStyle, Image, ImageFormat, ImageSize, Link, Links, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, SelfPickup, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
5650
+ export { AddressSuggestionSchema, BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DayScheduleSchema, DeliveryByCourierSchema, DeliveryMethodSchema, DeliveryZoneInfoSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCheckDeliveryZoneRequestSchema, GatewayCheckDeliveryZoneResponseSchema, GatewayCompleteOrderRequestSchema, GatewayCompleteOrderResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewaySuggestAddressesRequestSchema, GatewaySuggestAddressesResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, HeadLinkSchema, HeadScriptSchema, HeadStyleSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LinkSchema, LinksSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NextOpeningSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, SelfPickupSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
5651
+ export type { AddressSuggestion, Channel, CompositionIngredient, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, DeliveryByCourier, DeliveryMethod, DeliveryZoneInfo, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCheckDeliveryZoneRequest, GatewayCheckDeliveryZoneResponse, GatewayCompleteOrderRequest, GatewayCompleteOrderResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewaySuggestAddressesRequest, GatewaySuggestAddressesResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, HeadLink, HeadScript, HeadStyle, Image, ImageFormat, ImageSize, Link, Links, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, SelfPickup, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
package/dist/index.d.ts CHANGED
@@ -21,9 +21,9 @@ declare const DeliveryByCourierSchema: z.ZodObject<{
21
21
  value: z.ZodString;
22
22
  }, z.core.$strip>>;
23
23
  type: z.ZodEnum<{
24
- custom: "custom";
25
24
  cash: "cash";
26
25
  card: "card";
26
+ custom: "custom";
27
27
  }>;
28
28
  }, z.core.$strip>>;
29
29
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -98,9 +98,9 @@ declare const SelfPickupSchema: z.ZodObject<{
98
98
  value: z.ZodString;
99
99
  }, z.core.$strip>>;
100
100
  type: z.ZodEnum<{
101
- custom: "custom";
102
101
  cash: "cash";
103
102
  card: "card";
103
+ custom: "custom";
104
104
  }>;
105
105
  }, z.core.$strip>>;
106
106
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -400,9 +400,9 @@ declare const ChannelSchema: z.ZodObject<{
400
400
  value: z.ZodString;
401
401
  }, z.core.$strip>>;
402
402
  type: z.ZodEnum<{
403
- custom: "custom";
404
403
  cash: "cash";
405
404
  card: "card";
405
+ custom: "custom";
406
406
  }>;
407
407
  }, z.core.$strip>>;
408
408
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -476,9 +476,9 @@ declare const ChannelSchema: z.ZodObject<{
476
476
  value: z.ZodString;
477
477
  }, z.core.$strip>>;
478
478
  type: z.ZodEnum<{
479
- custom: "custom";
480
479
  cash: "cash";
481
480
  card: "card";
481
+ custom: "custom";
482
482
  }>;
483
483
  }, z.core.$strip>>;
484
484
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -987,6 +987,7 @@ declare const GatewayActionTypeSchema: z.ZodEnum<{
987
987
  getSelfPickupStatus: "getSelfPickupStatus";
988
988
  getTimeSlots: "getTimeSlots";
989
989
  suggestAddresses: "suggestAddresses";
990
+ checkDeliveryZone: "checkDeliveryZone";
990
991
  }>;
991
992
  type GatewayActionType = z.infer<typeof GatewayActionTypeSchema>;
992
993
  /**
@@ -1008,6 +1009,7 @@ declare const GatewayRequestSchema: z.ZodObject<{
1008
1009
  getSelfPickupStatus: "getSelfPickupStatus";
1009
1010
  getTimeSlots: "getTimeSlots";
1010
1011
  suggestAddresses: "suggestAddresses";
1012
+ checkDeliveryZone: "checkDeliveryZone";
1011
1013
  }>;
1012
1014
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1013
1015
  body: z.ZodOptional<z.ZodUnknown>;
@@ -1478,9 +1480,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1478
1480
  value: z.ZodString;
1479
1481
  }, z.core.$strip>>;
1480
1482
  type: z.ZodEnum<{
1481
- custom: "custom";
1482
1483
  cash: "cash";
1483
1484
  card: "card";
1485
+ custom: "custom";
1484
1486
  }>;
1485
1487
  }, z.core.$strip>>;
1486
1488
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1554,9 +1556,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1554
1556
  value: z.ZodString;
1555
1557
  }, z.core.$strip>>;
1556
1558
  type: z.ZodEnum<{
1557
- custom: "custom";
1558
1559
  cash: "cash";
1559
1560
  card: "card";
1561
+ custom: "custom";
1560
1562
  }>;
1561
1563
  }, z.core.$strip>>;
1562
1564
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1782,6 +1784,8 @@ declare const GatewayGetOrderResponseSchema: z.ZodObject<{
1782
1784
  entrance: z.ZodOptional<z.ZodString>;
1783
1785
  floor: z.ZodOptional<z.ZodString>;
1784
1786
  addressNote: z.ZodOptional<z.ZodString>;
1787
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1788
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1785
1789
  }, z.core.$strip>, z.ZodObject<{
1786
1790
  type: z.ZodLiteral<"warehouseAddress">;
1787
1791
  id: z.ZodString;
@@ -1843,6 +1847,8 @@ declare const GatewayCreateOrderResponseSchema: z.ZodObject<{
1843
1847
  entrance: z.ZodOptional<z.ZodString>;
1844
1848
  floor: z.ZodOptional<z.ZodString>;
1845
1849
  addressNote: z.ZodOptional<z.ZodString>;
1850
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1851
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1846
1852
  }, z.core.$strip>, z.ZodObject<{
1847
1853
  type: z.ZodLiteral<"warehouseAddress">;
1848
1854
  id: z.ZodString;
@@ -1897,6 +1903,8 @@ declare const GatewayUpdateOrderRequestSchema: z.ZodObject<{
1897
1903
  entrance: z.ZodOptional<z.ZodString>;
1898
1904
  floor: z.ZodOptional<z.ZodString>;
1899
1905
  addressNote: z.ZodOptional<z.ZodString>;
1906
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1907
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1900
1908
  }, z.core.$strip>, z.ZodObject<{
1901
1909
  type: z.ZodLiteral<"warehouseAddress">;
1902
1910
  id: z.ZodString;
@@ -1952,6 +1960,8 @@ declare const GatewayUpdateOrderResponseSchema: z.ZodObject<{
1952
1960
  entrance: z.ZodOptional<z.ZodString>;
1953
1961
  floor: z.ZodOptional<z.ZodString>;
1954
1962
  addressNote: z.ZodOptional<z.ZodString>;
1963
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1964
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1955
1965
  }, z.core.$strip>, z.ZodObject<{
1956
1966
  type: z.ZodLiteral<"warehouseAddress">;
1957
1967
  id: z.ZodString;
@@ -2006,6 +2016,8 @@ declare const GatewayCompleteOrderRequestSchema: z.ZodObject<{
2006
2016
  entrance: z.ZodOptional<z.ZodString>;
2007
2017
  floor: z.ZodOptional<z.ZodString>;
2008
2018
  addressNote: z.ZodOptional<z.ZodString>;
2019
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2020
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2009
2021
  }, z.core.$strip>, z.ZodObject<{
2010
2022
  type: z.ZodLiteral<"warehouseAddress">;
2011
2023
  id: z.ZodString;
@@ -2061,6 +2073,8 @@ declare const GatewayCompleteOrderResponseSchema: z.ZodObject<{
2061
2073
  entrance: z.ZodOptional<z.ZodString>;
2062
2074
  floor: z.ZodOptional<z.ZodString>;
2063
2075
  addressNote: z.ZodOptional<z.ZodString>;
2076
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2077
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2064
2078
  }, z.core.$strip>, z.ZodObject<{
2065
2079
  type: z.ZodLiteral<"warehouseAddress">;
2066
2080
  id: z.ZodString;
@@ -2125,6 +2139,8 @@ declare const GatewayAddOrderItemResponseSchema: z.ZodObject<{
2125
2139
  entrance: z.ZodOptional<z.ZodString>;
2126
2140
  floor: z.ZodOptional<z.ZodString>;
2127
2141
  addressNote: z.ZodOptional<z.ZodString>;
2142
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2143
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2128
2144
  }, z.core.$strip>, z.ZodObject<{
2129
2145
  type: z.ZodLiteral<"warehouseAddress">;
2130
2146
  id: z.ZodString;
@@ -2193,6 +2209,8 @@ declare const GatewayIncrementOrderItemQuantityResponseSchema: z.ZodObject<{
2193
2209
  entrance: z.ZodOptional<z.ZodString>;
2194
2210
  floor: z.ZodOptional<z.ZodString>;
2195
2211
  addressNote: z.ZodOptional<z.ZodString>;
2212
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2213
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2196
2214
  }, z.core.$strip>, z.ZodObject<{
2197
2215
  type: z.ZodLiteral<"warehouseAddress">;
2198
2216
  id: z.ZodString;
@@ -2261,6 +2279,8 @@ declare const GatewayDecrementOrderItemQuantityResponseSchema: z.ZodObject<{
2261
2279
  entrance: z.ZodOptional<z.ZodString>;
2262
2280
  floor: z.ZodOptional<z.ZodString>;
2263
2281
  addressNote: z.ZodOptional<z.ZodString>;
2282
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2283
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2264
2284
  }, z.core.$strip>, z.ZodObject<{
2265
2285
  type: z.ZodLiteral<"warehouseAddress">;
2266
2286
  id: z.ZodString;
@@ -2682,6 +2702,32 @@ declare const GatewaySuggestAddressesResponseSchema: z.ZodObject<{
2682
2702
  }, z.core.$strip>>;
2683
2703
  }, z.core.$strip>;
2684
2704
  type GatewaySuggestAddressesResponse = z.infer<typeof GatewaySuggestAddressesResponseSchema>;
2705
+ declare const DeliveryZoneInfoSchema: z.ZodObject<{
2706
+ name: z.ZodString;
2707
+ deliveryPrice: z.ZodNumber;
2708
+ minOrderAmount: z.ZodNullable<z.ZodNumber>;
2709
+ }, z.core.$strip>;
2710
+ type DeliveryZoneInfo = z.infer<typeof DeliveryZoneInfoSchema>;
2711
+ declare const GatewayCheckDeliveryZoneRequestSchema: z.ZodObject<{
2712
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2713
+ type: z.ZodLiteral<"checkDeliveryZone">;
2714
+ body: z.ZodObject<{
2715
+ lat: z.ZodNumber;
2716
+ lon: z.ZodNumber;
2717
+ }, z.core.$strip>;
2718
+ }, z.core.$strip>;
2719
+ type GatewayCheckDeliveryZoneRequest = z.infer<typeof GatewayCheckDeliveryZoneRequestSchema>;
2720
+ declare const GatewayCheckDeliveryZoneResponseSchema: z.ZodObject<{
2721
+ ok: z.ZodBoolean;
2722
+ error: z.ZodOptional<z.ZodString>;
2723
+ type: z.ZodLiteral<"checkDeliveryZone">;
2724
+ result: z.ZodNullable<z.ZodObject<{
2725
+ name: z.ZodString;
2726
+ deliveryPrice: z.ZodNumber;
2727
+ minOrderAmount: z.ZodNullable<z.ZodNumber>;
2728
+ }, z.core.$strip>>;
2729
+ }, z.core.$strip>;
2730
+ type GatewayCheckDeliveryZoneResponse = z.infer<typeof GatewayCheckDeliveryZoneResponseSchema>;
2685
2731
  /**
2686
2732
  * Combined Gateway Response
2687
2733
  */
@@ -3129,9 +3175,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3129
3175
  value: z.ZodString;
3130
3176
  }, z.core.$strip>>;
3131
3177
  type: z.ZodEnum<{
3132
- custom: "custom";
3133
3178
  cash: "cash";
3134
3179
  card: "card";
3180
+ custom: "custom";
3135
3181
  }>;
3136
3182
  }, z.core.$strip>>;
3137
3183
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3205,9 +3251,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3205
3251
  value: z.ZodString;
3206
3252
  }, z.core.$strip>>;
3207
3253
  type: z.ZodEnum<{
3208
- custom: "custom";
3209
3254
  cash: "cash";
3210
3255
  card: "card";
3256
+ custom: "custom";
3211
3257
  }>;
3212
3258
  }, z.core.$strip>>;
3213
3259
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3423,6 +3469,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3423
3469
  entrance: z.ZodOptional<z.ZodString>;
3424
3470
  floor: z.ZodOptional<z.ZodString>;
3425
3471
  addressNote: z.ZodOptional<z.ZodString>;
3472
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3473
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3426
3474
  }, z.core.$strip>, z.ZodObject<{
3427
3475
  type: z.ZodLiteral<"warehouseAddress">;
3428
3476
  id: z.ZodString;
@@ -3476,6 +3524,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3476
3524
  entrance: z.ZodOptional<z.ZodString>;
3477
3525
  floor: z.ZodOptional<z.ZodString>;
3478
3526
  addressNote: z.ZodOptional<z.ZodString>;
3527
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3528
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3479
3529
  }, z.core.$strip>, z.ZodObject<{
3480
3530
  type: z.ZodLiteral<"warehouseAddress">;
3481
3531
  id: z.ZodString;
@@ -3529,6 +3579,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3529
3579
  entrance: z.ZodOptional<z.ZodString>;
3530
3580
  floor: z.ZodOptional<z.ZodString>;
3531
3581
  addressNote: z.ZodOptional<z.ZodString>;
3582
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3583
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3532
3584
  }, z.core.$strip>, z.ZodObject<{
3533
3585
  type: z.ZodLiteral<"warehouseAddress">;
3534
3586
  id: z.ZodString;
@@ -3582,6 +3634,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3582
3634
  entrance: z.ZodOptional<z.ZodString>;
3583
3635
  floor: z.ZodOptional<z.ZodString>;
3584
3636
  addressNote: z.ZodOptional<z.ZodString>;
3637
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3638
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3585
3639
  }, z.core.$strip>, z.ZodObject<{
3586
3640
  type: z.ZodLiteral<"warehouseAddress">;
3587
3641
  id: z.ZodString;
@@ -3635,6 +3689,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3635
3689
  entrance: z.ZodOptional<z.ZodString>;
3636
3690
  floor: z.ZodOptional<z.ZodString>;
3637
3691
  addressNote: z.ZodOptional<z.ZodString>;
3692
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3693
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3638
3694
  }, z.core.$strip>, z.ZodObject<{
3639
3695
  type: z.ZodLiteral<"warehouseAddress">;
3640
3696
  id: z.ZodString;
@@ -3688,6 +3744,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3688
3744
  entrance: z.ZodOptional<z.ZodString>;
3689
3745
  floor: z.ZodOptional<z.ZodString>;
3690
3746
  addressNote: z.ZodOptional<z.ZodString>;
3747
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3748
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3691
3749
  }, z.core.$strip>, z.ZodObject<{
3692
3750
  type: z.ZodLiteral<"warehouseAddress">;
3693
3751
  id: z.ZodString;
@@ -3741,6 +3799,8 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3741
3799
  entrance: z.ZodOptional<z.ZodString>;
3742
3800
  floor: z.ZodOptional<z.ZodString>;
3743
3801
  addressNote: z.ZodOptional<z.ZodString>;
3802
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3803
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3744
3804
  }, z.core.$strip>, z.ZodObject<{
3745
3805
  type: z.ZodLiteral<"warehouseAddress">;
3746
3806
  id: z.ZodString;
@@ -4107,6 +4167,15 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4107
4167
  lon: z.ZodNullable<z.ZodNumber>;
4108
4168
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4109
4169
  }, z.core.$strip>>;
4170
+ }, z.core.$strip>, z.ZodObject<{
4171
+ ok: z.ZodBoolean;
4172
+ error: z.ZodOptional<z.ZodString>;
4173
+ type: z.ZodLiteral<"checkDeliveryZone">;
4174
+ result: z.ZodNullable<z.ZodObject<{
4175
+ name: z.ZodString;
4176
+ deliveryPrice: z.ZodNumber;
4177
+ minOrderAmount: z.ZodNullable<z.ZodNumber>;
4178
+ }, z.core.$strip>>;
4110
4179
  }, z.core.$strip>], "type">;
4111
4180
  type GatewayResponse = z.infer<typeof GatewayResponseSchema>;
4112
4181
 
@@ -4914,6 +4983,8 @@ declare const OrderDeliveryAddressSchema: z.ZodObject<{
4914
4983
  entrance: z.ZodOptional<z.ZodString>;
4915
4984
  floor: z.ZodOptional<z.ZodString>;
4916
4985
  addressNote: z.ZodOptional<z.ZodString>;
4986
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4987
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4917
4988
  }, z.core.$strip>;
4918
4989
  type OrderDeliveryAddress = z.infer<typeof OrderDeliveryAddressSchema>;
4919
4990
  declare const OrderWarehouseAddressSchema: z.ZodObject<{
@@ -4947,6 +5018,8 @@ declare const OrderSchema: z.ZodObject<{
4947
5018
  entrance: z.ZodOptional<z.ZodString>;
4948
5019
  floor: z.ZodOptional<z.ZodString>;
4949
5020
  addressNote: z.ZodOptional<z.ZodString>;
5021
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5022
+ lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4950
5023
  }, z.core.$strip>, z.ZodObject<{
4951
5024
  type: z.ZodLiteral<"warehouseAddress">;
4952
5025
  id: z.ZodString;
@@ -4983,9 +5056,9 @@ declare const AddressSuggestionSchema: z.ZodObject<{
4983
5056
  type AddressSuggestion = z.infer<typeof AddressSuggestionSchema>;
4984
5057
 
4985
5058
  declare const PaymentMethodTypeSchema: z.ZodEnum<{
4986
- custom: "custom";
4987
5059
  cash: "cash";
4988
5060
  card: "card";
5061
+ custom: "custom";
4989
5062
  }>;
4990
5063
  type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
4991
5064
  declare const PaymentMethodSchema: z.ZodObject<{
@@ -5007,9 +5080,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
5007
5080
  value: z.ZodString;
5008
5081
  }, z.core.$strip>>;
5009
5082
  type: z.ZodEnum<{
5010
- custom: "custom";
5011
5083
  cash: "cash";
5012
5084
  card: "card";
5085
+ custom: "custom";
5013
5086
  }>;
5014
5087
  }, z.core.$strip>;
5015
5088
  type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
@@ -5574,5 +5647,5 @@ declare const WarehouseSchema: z.ZodObject<{
5574
5647
  }, z.core.$strip>;
5575
5648
  type Warehouse = z.infer<typeof WarehouseSchema>;
5576
5649
 
5577
- export { AddressSuggestionSchema, BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DayScheduleSchema, DeliveryByCourierSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCompleteOrderRequestSchema, GatewayCompleteOrderResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewaySuggestAddressesRequestSchema, GatewaySuggestAddressesResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, HeadLinkSchema, HeadScriptSchema, HeadStyleSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LinkSchema, LinksSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NextOpeningSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, SelfPickupSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
5578
- export type { AddressSuggestion, Channel, CompositionIngredient, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, DeliveryByCourier, DeliveryMethod, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCompleteOrderRequest, GatewayCompleteOrderResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewaySuggestAddressesRequest, GatewaySuggestAddressesResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, HeadLink, HeadScript, HeadStyle, Image, ImageFormat, ImageSize, Link, Links, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, SelfPickup, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
5650
+ export { AddressSuggestionSchema, BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DayScheduleSchema, DeliveryByCourierSchema, DeliveryMethodSchema, DeliveryZoneInfoSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCheckDeliveryZoneRequestSchema, GatewayCheckDeliveryZoneResponseSchema, GatewayCompleteOrderRequestSchema, GatewayCompleteOrderResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewaySuggestAddressesRequestSchema, GatewaySuggestAddressesResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, HeadLinkSchema, HeadScriptSchema, HeadStyleSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LinkSchema, LinksSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NextOpeningSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, SelfPickupSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
5651
+ export type { AddressSuggestion, Channel, CompositionIngredient, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, DeliveryByCourier, DeliveryMethod, DeliveryZoneInfo, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCheckDeliveryZoneRequest, GatewayCheckDeliveryZoneResponse, GatewayCompleteOrderRequest, GatewayCompleteOrderResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewaySuggestAddressesRequest, GatewaySuggestAddressesResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, HeadLink, HeadScript, HeadStyle, Image, ImageFormat, ImageSize, Link, Links, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, SelfPickup, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
package/dist/index.mjs CHANGED
@@ -527,7 +527,9 @@ const OrderDeliveryAddressSchema = z.object({
527
527
  intercom: z.string().optional(),
528
528
  entrance: z.string().optional(),
529
529
  floor: z.string().optional(),
530
- addressNote: z.string().optional()
530
+ addressNote: z.string().optional(),
531
+ lat: z.number().nullable().optional(),
532
+ lon: z.number().nullable().optional()
531
533
  });
532
534
  const OrderWarehouseAddressSchema = z.object({
533
535
  type: z.literal("warehouseAddress"),
@@ -580,7 +582,8 @@ const GatewayActionTypeSchema = z.enum([
580
582
  "getDeliveryByCourierStatus",
581
583
  "getSelfPickupStatus",
582
584
  "getTimeSlots",
583
- "suggestAddresses"
585
+ "suggestAddresses",
586
+ "checkDeliveryZone"
584
587
  ]);
585
588
  const GatewayRequestSchema = z.object({
586
589
  type: GatewayActionTypeSchema,
@@ -714,6 +717,22 @@ const GatewaySuggestAddressesResponseSchema = BaseResponseSchema.extend({
714
717
  type: z.literal("suggestAddresses"),
715
718
  result: z.array(AddressSuggestionSchema)
716
719
  });
720
+ const DeliveryZoneInfoSchema = z.object({
721
+ name: z.string(),
722
+ deliveryPrice: z.number(),
723
+ minOrderAmount: z.number().nullable()
724
+ });
725
+ const GatewayCheckDeliveryZoneRequestSchema = GatewayRequestSchema.extend({
726
+ type: z.literal("checkDeliveryZone"),
727
+ body: z.object({
728
+ lat: z.number(),
729
+ lon: z.number()
730
+ })
731
+ });
732
+ const GatewayCheckDeliveryZoneResponseSchema = BaseResponseSchema.extend({
733
+ type: z.literal("checkDeliveryZone"),
734
+ result: DeliveryZoneInfoSchema.nullable()
735
+ });
717
736
  const GatewayResponseSchema = z.discriminatedUnion("type", [
718
737
  GatewayGetOptionsResponseSchema,
719
738
  GatewayGetChannelsResponseSchema,
@@ -728,7 +747,8 @@ const GatewayResponseSchema = z.discriminatedUnion("type", [
728
747
  GatewayGetDeliveryByCourierStatusResponseSchema,
729
748
  GatewayGetSelfPickupStatusResponseSchema,
730
749
  GatewayGetTimeSlotsResponseSchema,
731
- GatewaySuggestAddressesResponseSchema
750
+ GatewaySuggestAddressesResponseSchema,
751
+ GatewayCheckDeliveryZoneResponseSchema
732
752
  ]);
733
753
 
734
- export { AddressSuggestionSchema, BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DayScheduleSchema, DeliveryByCourierSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCompleteOrderRequestSchema, GatewayCompleteOrderResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewaySuggestAddressesRequestSchema, GatewaySuggestAddressesResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, HeadLinkSchema, HeadScriptSchema, HeadStyleSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LinkSchema, LinksSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NextOpeningSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, SelfPickupSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
754
+ export { AddressSuggestionSchema, BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DayScheduleSchema, DeliveryByCourierSchema, DeliveryMethodSchema, DeliveryZoneInfoSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCheckDeliveryZoneRequestSchema, GatewayCheckDeliveryZoneResponseSchema, GatewayCompleteOrderRequestSchema, GatewayCompleteOrderResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewaySuggestAddressesRequestSchema, GatewaySuggestAddressesResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, HeadLinkSchema, HeadScriptSchema, HeadStyleSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LinkSchema, LinksSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NextOpeningSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, SelfPickupSchema, 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.3.1",
4
+ "version": "0.3.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },