@nextorders/food-schema 0.2.6 → 0.2.7

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
@@ -1,5 +1,283 @@
1
1
  import z from 'zod';
2
2
 
3
+ declare const DeliveryByCourierSchema: z.ZodObject<{
4
+ isAvailable: z.ZodBoolean;
5
+ paymentMethods: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodString;
7
+ title: z.ZodArray<z.ZodObject<{
8
+ locale: z.ZodEnum<{
9
+ de: "de";
10
+ el: "el";
11
+ en: "en";
12
+ es: "es";
13
+ fr: "fr";
14
+ hi: "hi";
15
+ it: "it";
16
+ ka: "ka";
17
+ ru: "ru";
18
+ zh_cn: "zh_cn";
19
+ pt: "pt";
20
+ }>;
21
+ value: z.ZodString;
22
+ }, z.core.$strip>>;
23
+ type: z.ZodEnum<{
24
+ custom: "custom";
25
+ cash: "cash";
26
+ card: "card";
27
+ }>;
28
+ }, z.core.$strip>>;
29
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
30
+ locale: z.ZodEnum<{
31
+ de: "de";
32
+ el: "el";
33
+ en: "en";
34
+ es: "es";
35
+ fr: "fr";
36
+ hi: "hi";
37
+ it: "it";
38
+ ka: "ka";
39
+ ru: "ru";
40
+ zh_cn: "zh_cn";
41
+ pt: "pt";
42
+ }>;
43
+ value: z.ZodString;
44
+ }, z.core.$strip>>>;
45
+ minAmountForDelivery: z.ZodOptional<z.ZodNumber>;
46
+ schedule: z.ZodOptional<z.ZodArray<z.ZodObject<{
47
+ day: z.ZodEnum<{
48
+ sun: "sun";
49
+ mon: "mon";
50
+ tue: "tue";
51
+ wed: "wed";
52
+ thu: "thu";
53
+ fri: "fri";
54
+ sat: "sat";
55
+ }>;
56
+ isClosed: z.ZodBoolean;
57
+ hours: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
+ start: z.ZodString;
59
+ end: z.ZodString;
60
+ }, z.core.$strip>>>;
61
+ comment: z.ZodOptional<z.ZodArray<z.ZodObject<{
62
+ locale: z.ZodEnum<{
63
+ de: "de";
64
+ el: "el";
65
+ en: "en";
66
+ es: "es";
67
+ fr: "fr";
68
+ hi: "hi";
69
+ it: "it";
70
+ ka: "ka";
71
+ ru: "ru";
72
+ zh_cn: "zh_cn";
73
+ pt: "pt";
74
+ }>;
75
+ value: z.ZodString;
76
+ }, z.core.$strip>>>;
77
+ }, z.core.$strip>>>;
78
+ }, z.core.$strip>;
79
+ type DeliveryByCourier = z.infer<typeof DeliveryByCourierSchema>;
80
+ declare const SelfPickupSchema: z.ZodObject<{
81
+ isAvailable: z.ZodBoolean;
82
+ paymentMethods: z.ZodArray<z.ZodObject<{
83
+ id: z.ZodString;
84
+ title: z.ZodArray<z.ZodObject<{
85
+ locale: z.ZodEnum<{
86
+ de: "de";
87
+ el: "el";
88
+ en: "en";
89
+ es: "es";
90
+ fr: "fr";
91
+ hi: "hi";
92
+ it: "it";
93
+ ka: "ka";
94
+ ru: "ru";
95
+ zh_cn: "zh_cn";
96
+ pt: "pt";
97
+ }>;
98
+ value: z.ZodString;
99
+ }, z.core.$strip>>;
100
+ type: z.ZodEnum<{
101
+ custom: "custom";
102
+ cash: "cash";
103
+ card: "card";
104
+ }>;
105
+ }, z.core.$strip>>;
106
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
107
+ locale: z.ZodEnum<{
108
+ de: "de";
109
+ el: "el";
110
+ en: "en";
111
+ es: "es";
112
+ fr: "fr";
113
+ hi: "hi";
114
+ it: "it";
115
+ ka: "ka";
116
+ ru: "ru";
117
+ zh_cn: "zh_cn";
118
+ pt: "pt";
119
+ }>;
120
+ value: z.ZodString;
121
+ }, z.core.$strip>>>;
122
+ schedule: z.ZodOptional<z.ZodArray<z.ZodObject<{
123
+ day: z.ZodEnum<{
124
+ sun: "sun";
125
+ mon: "mon";
126
+ tue: "tue";
127
+ wed: "wed";
128
+ thu: "thu";
129
+ fri: "fri";
130
+ sat: "sat";
131
+ }>;
132
+ isClosed: z.ZodBoolean;
133
+ hours: z.ZodOptional<z.ZodArray<z.ZodObject<{
134
+ start: z.ZodString;
135
+ end: z.ZodString;
136
+ }, z.core.$strip>>>;
137
+ comment: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
+ locale: z.ZodEnum<{
139
+ de: "de";
140
+ el: "el";
141
+ en: "en";
142
+ es: "es";
143
+ fr: "fr";
144
+ hi: "hi";
145
+ it: "it";
146
+ ka: "ka";
147
+ ru: "ru";
148
+ zh_cn: "zh_cn";
149
+ pt: "pt";
150
+ }>;
151
+ value: z.ZodString;
152
+ }, z.core.$strip>>>;
153
+ }, z.core.$strip>>>;
154
+ warehouses: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ id: z.ZodString;
156
+ title: z.ZodArray<z.ZodObject<{
157
+ locale: z.ZodEnum<{
158
+ de: "de";
159
+ el: "el";
160
+ en: "en";
161
+ es: "es";
162
+ fr: "fr";
163
+ hi: "hi";
164
+ it: "it";
165
+ ka: "ka";
166
+ ru: "ru";
167
+ zh_cn: "zh_cn";
168
+ pt: "pt";
169
+ }>;
170
+ value: z.ZodString;
171
+ }, z.core.$strip>>;
172
+ address: z.ZodObject<{
173
+ street: z.ZodArray<z.ZodObject<{
174
+ locale: z.ZodEnum<{
175
+ de: "de";
176
+ el: "el";
177
+ en: "en";
178
+ es: "es";
179
+ fr: "fr";
180
+ hi: "hi";
181
+ it: "it";
182
+ ka: "ka";
183
+ ru: "ru";
184
+ zh_cn: "zh_cn";
185
+ pt: "pt";
186
+ }>;
187
+ value: z.ZodString;
188
+ }, z.core.$strip>>;
189
+ }, z.core.$strip>;
190
+ }, z.core.$strip>>>;
191
+ }, z.core.$strip>;
192
+ type SelfPickup = z.infer<typeof SelfPickupSchema>;
193
+ declare const LinkSchema: z.ZodObject<{
194
+ to: z.ZodString;
195
+ label: z.ZodOptional<z.ZodArray<z.ZodObject<{
196
+ locale: z.ZodEnum<{
197
+ de: "de";
198
+ el: "el";
199
+ en: "en";
200
+ es: "es";
201
+ fr: "fr";
202
+ hi: "hi";
203
+ it: "it";
204
+ ka: "ka";
205
+ ru: "ru";
206
+ zh_cn: "zh_cn";
207
+ pt: "pt";
208
+ }>;
209
+ value: z.ZodString;
210
+ }, z.core.$strip>>>;
211
+ icon: z.ZodOptional<z.ZodString>;
212
+ target: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strip>;
214
+ type Link = z.infer<typeof LinkSchema>;
215
+ declare const LinksSchema: z.ZodObject<{
216
+ aside: z.ZodArray<z.ZodObject<{
217
+ to: z.ZodString;
218
+ label: z.ZodOptional<z.ZodArray<z.ZodObject<{
219
+ locale: z.ZodEnum<{
220
+ de: "de";
221
+ el: "el";
222
+ en: "en";
223
+ es: "es";
224
+ fr: "fr";
225
+ hi: "hi";
226
+ it: "it";
227
+ ka: "ka";
228
+ ru: "ru";
229
+ zh_cn: "zh_cn";
230
+ pt: "pt";
231
+ }>;
232
+ value: z.ZodString;
233
+ }, z.core.$strip>>>;
234
+ icon: z.ZodOptional<z.ZodString>;
235
+ target: z.ZodOptional<z.ZodString>;
236
+ }, z.core.$strip>>;
237
+ footer: z.ZodArray<z.ZodObject<{
238
+ to: z.ZodString;
239
+ label: z.ZodOptional<z.ZodArray<z.ZodObject<{
240
+ locale: z.ZodEnum<{
241
+ de: "de";
242
+ el: "el";
243
+ en: "en";
244
+ es: "es";
245
+ fr: "fr";
246
+ hi: "hi";
247
+ it: "it";
248
+ ka: "ka";
249
+ ru: "ru";
250
+ zh_cn: "zh_cn";
251
+ pt: "pt";
252
+ }>;
253
+ value: z.ZodString;
254
+ }, z.core.$strip>>>;
255
+ icon: z.ZodOptional<z.ZodString>;
256
+ target: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>>;
258
+ social: z.ZodArray<z.ZodObject<{
259
+ to: z.ZodString;
260
+ label: z.ZodOptional<z.ZodArray<z.ZodObject<{
261
+ locale: z.ZodEnum<{
262
+ de: "de";
263
+ el: "el";
264
+ en: "en";
265
+ es: "es";
266
+ fr: "fr";
267
+ hi: "hi";
268
+ it: "it";
269
+ ka: "ka";
270
+ ru: "ru";
271
+ zh_cn: "zh_cn";
272
+ pt: "pt";
273
+ }>;
274
+ value: z.ZodString;
275
+ }, z.core.$strip>>>;
276
+ icon: z.ZodOptional<z.ZodString>;
277
+ target: z.ZodOptional<z.ZodString>;
278
+ }, z.core.$strip>>;
279
+ }, z.core.$strip>;
280
+ type Links = z.infer<typeof LinksSchema>;
3
281
  declare const ChannelSchema: z.ZodObject<{
4
282
  id: z.ZodString;
5
283
  selectorTitle: z.ZodArray<z.ZodObject<{
@@ -102,9 +380,9 @@ declare const ChannelSchema: z.ZodObject<{
102
380
  value: z.ZodString;
103
381
  }, z.core.$strip>>;
104
382
  type: z.ZodEnum<{
383
+ custom: "custom";
105
384
  cash: "cash";
106
385
  card: "card";
107
- custom: "custom";
108
386
  }>;
109
387
  }, z.core.$strip>>;
110
388
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -178,9 +456,9 @@ declare const ChannelSchema: z.ZodObject<{
178
456
  value: z.ZodString;
179
457
  }, z.core.$strip>>;
180
458
  type: z.ZodEnum<{
459
+ custom: "custom";
181
460
  cash: "cash";
182
461
  card: "card";
183
- custom: "custom";
184
462
  }>;
185
463
  }, z.core.$strip>>;
186
464
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1162,9 +1440,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1162
1440
  value: z.ZodString;
1163
1441
  }, z.core.$strip>>;
1164
1442
  type: z.ZodEnum<{
1443
+ custom: "custom";
1165
1444
  cash: "cash";
1166
1445
  card: "card";
1167
- custom: "custom";
1168
1446
  }>;
1169
1447
  }, z.core.$strip>>;
1170
1448
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1238,9 +1516,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1238
1516
  value: z.ZodString;
1239
1517
  }, z.core.$strip>>;
1240
1518
  type: z.ZodEnum<{
1519
+ custom: "custom";
1241
1520
  cash: "cash";
1242
1521
  card: "card";
1243
- custom: "custom";
1244
1522
  }>;
1245
1523
  }, z.core.$strip>>;
1246
1524
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2775,9 +3053,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2775
3053
  value: z.ZodString;
2776
3054
  }, z.core.$strip>>;
2777
3055
  type: z.ZodEnum<{
3056
+ custom: "custom";
2778
3057
  cash: "cash";
2779
3058
  card: "card";
2780
- custom: "custom";
2781
3059
  }>;
2782
3060
  }, z.core.$strip>>;
2783
3061
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2851,9 +3129,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2851
3129
  value: z.ZodString;
2852
3130
  }, z.core.$strip>>;
2853
3131
  type: z.ZodEnum<{
3132
+ custom: "custom";
2854
3133
  cash: "cash";
2855
3134
  card: "card";
2856
- custom: "custom";
2857
3135
  }>;
2858
3136
  }, z.core.$strip>>;
2859
3137
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4134,6 +4412,21 @@ declare const MenuSchema: z.ZodObject<{
4134
4412
  }, z.core.$strip>;
4135
4413
  type Menu = z.infer<typeof MenuSchema>;
4136
4414
 
4415
+ declare const HeadLinkSchema: z.ZodObject<{
4416
+ rel: z.ZodOptional<z.ZodString>;
4417
+ type: z.ZodOptional<z.ZodString>;
4418
+ sizes: z.ZodOptional<z.ZodString>;
4419
+ href: z.ZodOptional<z.ZodString>;
4420
+ }, z.core.$strip>;
4421
+ type HeadLink = z.infer<typeof HeadLinkSchema>;
4422
+ declare const HeadScriptSchema: z.ZodObject<{
4423
+ src: z.ZodOptional<z.ZodString>;
4424
+ type: z.ZodOptional<z.ZodString>;
4425
+ textContent: z.ZodOptional<z.ZodString>;
4426
+ }, z.core.$strip>;
4427
+ type HeadScript = z.infer<typeof HeadScriptSchema>;
4428
+ declare const HeadStyleSchema: z.ZodString;
4429
+ type HeadStyle = z.infer<typeof HeadStyleSchema>;
4137
4430
  declare const OptionsSchema: z.ZodObject<{
4138
4431
  selectorTitle: z.ZodArray<z.ZodObject<{
4139
4432
  locale: z.ZodEnum<{
@@ -4575,9 +4868,9 @@ declare const OrderSchema: z.ZodObject<{
4575
4868
  type Order = z.infer<typeof OrderSchema>;
4576
4869
 
4577
4870
  declare const PaymentMethodTypeSchema: z.ZodEnum<{
4871
+ custom: "custom";
4578
4872
  cash: "cash";
4579
4873
  card: "card";
4580
- custom: "custom";
4581
4874
  }>;
4582
4875
  type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
4583
4876
  declare const PaymentMethodSchema: z.ZodObject<{
@@ -4599,9 +4892,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
4599
4892
  value: z.ZodString;
4600
4893
  }, z.core.$strip>>;
4601
4894
  type: z.ZodEnum<{
4895
+ custom: "custom";
4602
4896
  cash: "cash";
4603
4897
  card: "card";
4604
- custom: "custom";
4605
4898
  }>;
4606
4899
  }, z.core.$strip>;
4607
4900
  type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
@@ -5163,4 +5456,4 @@ declare const WarehouseSchema: z.ZodObject<{
5163
5456
  type Warehouse = z.infer<typeof WarehouseSchema>;
5164
5457
 
5165
5458
  export { BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, 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, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
5166
- export type { Channel, CompositionIngredient, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, 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, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, Image, ImageFormat, ImageSize, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
5459
+ export type { 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, 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
@@ -1,5 +1,283 @@
1
1
  import z from 'zod';
2
2
 
3
+ declare const DeliveryByCourierSchema: z.ZodObject<{
4
+ isAvailable: z.ZodBoolean;
5
+ paymentMethods: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodString;
7
+ title: z.ZodArray<z.ZodObject<{
8
+ locale: z.ZodEnum<{
9
+ de: "de";
10
+ el: "el";
11
+ en: "en";
12
+ es: "es";
13
+ fr: "fr";
14
+ hi: "hi";
15
+ it: "it";
16
+ ka: "ka";
17
+ ru: "ru";
18
+ zh_cn: "zh_cn";
19
+ pt: "pt";
20
+ }>;
21
+ value: z.ZodString;
22
+ }, z.core.$strip>>;
23
+ type: z.ZodEnum<{
24
+ custom: "custom";
25
+ cash: "cash";
26
+ card: "card";
27
+ }>;
28
+ }, z.core.$strip>>;
29
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
30
+ locale: z.ZodEnum<{
31
+ de: "de";
32
+ el: "el";
33
+ en: "en";
34
+ es: "es";
35
+ fr: "fr";
36
+ hi: "hi";
37
+ it: "it";
38
+ ka: "ka";
39
+ ru: "ru";
40
+ zh_cn: "zh_cn";
41
+ pt: "pt";
42
+ }>;
43
+ value: z.ZodString;
44
+ }, z.core.$strip>>>;
45
+ minAmountForDelivery: z.ZodOptional<z.ZodNumber>;
46
+ schedule: z.ZodOptional<z.ZodArray<z.ZodObject<{
47
+ day: z.ZodEnum<{
48
+ sun: "sun";
49
+ mon: "mon";
50
+ tue: "tue";
51
+ wed: "wed";
52
+ thu: "thu";
53
+ fri: "fri";
54
+ sat: "sat";
55
+ }>;
56
+ isClosed: z.ZodBoolean;
57
+ hours: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
+ start: z.ZodString;
59
+ end: z.ZodString;
60
+ }, z.core.$strip>>>;
61
+ comment: z.ZodOptional<z.ZodArray<z.ZodObject<{
62
+ locale: z.ZodEnum<{
63
+ de: "de";
64
+ el: "el";
65
+ en: "en";
66
+ es: "es";
67
+ fr: "fr";
68
+ hi: "hi";
69
+ it: "it";
70
+ ka: "ka";
71
+ ru: "ru";
72
+ zh_cn: "zh_cn";
73
+ pt: "pt";
74
+ }>;
75
+ value: z.ZodString;
76
+ }, z.core.$strip>>>;
77
+ }, z.core.$strip>>>;
78
+ }, z.core.$strip>;
79
+ type DeliveryByCourier = z.infer<typeof DeliveryByCourierSchema>;
80
+ declare const SelfPickupSchema: z.ZodObject<{
81
+ isAvailable: z.ZodBoolean;
82
+ paymentMethods: z.ZodArray<z.ZodObject<{
83
+ id: z.ZodString;
84
+ title: z.ZodArray<z.ZodObject<{
85
+ locale: z.ZodEnum<{
86
+ de: "de";
87
+ el: "el";
88
+ en: "en";
89
+ es: "es";
90
+ fr: "fr";
91
+ hi: "hi";
92
+ it: "it";
93
+ ka: "ka";
94
+ ru: "ru";
95
+ zh_cn: "zh_cn";
96
+ pt: "pt";
97
+ }>;
98
+ value: z.ZodString;
99
+ }, z.core.$strip>>;
100
+ type: z.ZodEnum<{
101
+ custom: "custom";
102
+ cash: "cash";
103
+ card: "card";
104
+ }>;
105
+ }, z.core.$strip>>;
106
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
107
+ locale: z.ZodEnum<{
108
+ de: "de";
109
+ el: "el";
110
+ en: "en";
111
+ es: "es";
112
+ fr: "fr";
113
+ hi: "hi";
114
+ it: "it";
115
+ ka: "ka";
116
+ ru: "ru";
117
+ zh_cn: "zh_cn";
118
+ pt: "pt";
119
+ }>;
120
+ value: z.ZodString;
121
+ }, z.core.$strip>>>;
122
+ schedule: z.ZodOptional<z.ZodArray<z.ZodObject<{
123
+ day: z.ZodEnum<{
124
+ sun: "sun";
125
+ mon: "mon";
126
+ tue: "tue";
127
+ wed: "wed";
128
+ thu: "thu";
129
+ fri: "fri";
130
+ sat: "sat";
131
+ }>;
132
+ isClosed: z.ZodBoolean;
133
+ hours: z.ZodOptional<z.ZodArray<z.ZodObject<{
134
+ start: z.ZodString;
135
+ end: z.ZodString;
136
+ }, z.core.$strip>>>;
137
+ comment: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
+ locale: z.ZodEnum<{
139
+ de: "de";
140
+ el: "el";
141
+ en: "en";
142
+ es: "es";
143
+ fr: "fr";
144
+ hi: "hi";
145
+ it: "it";
146
+ ka: "ka";
147
+ ru: "ru";
148
+ zh_cn: "zh_cn";
149
+ pt: "pt";
150
+ }>;
151
+ value: z.ZodString;
152
+ }, z.core.$strip>>>;
153
+ }, z.core.$strip>>>;
154
+ warehouses: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ id: z.ZodString;
156
+ title: z.ZodArray<z.ZodObject<{
157
+ locale: z.ZodEnum<{
158
+ de: "de";
159
+ el: "el";
160
+ en: "en";
161
+ es: "es";
162
+ fr: "fr";
163
+ hi: "hi";
164
+ it: "it";
165
+ ka: "ka";
166
+ ru: "ru";
167
+ zh_cn: "zh_cn";
168
+ pt: "pt";
169
+ }>;
170
+ value: z.ZodString;
171
+ }, z.core.$strip>>;
172
+ address: z.ZodObject<{
173
+ street: z.ZodArray<z.ZodObject<{
174
+ locale: z.ZodEnum<{
175
+ de: "de";
176
+ el: "el";
177
+ en: "en";
178
+ es: "es";
179
+ fr: "fr";
180
+ hi: "hi";
181
+ it: "it";
182
+ ka: "ka";
183
+ ru: "ru";
184
+ zh_cn: "zh_cn";
185
+ pt: "pt";
186
+ }>;
187
+ value: z.ZodString;
188
+ }, z.core.$strip>>;
189
+ }, z.core.$strip>;
190
+ }, z.core.$strip>>>;
191
+ }, z.core.$strip>;
192
+ type SelfPickup = z.infer<typeof SelfPickupSchema>;
193
+ declare const LinkSchema: z.ZodObject<{
194
+ to: z.ZodString;
195
+ label: z.ZodOptional<z.ZodArray<z.ZodObject<{
196
+ locale: z.ZodEnum<{
197
+ de: "de";
198
+ el: "el";
199
+ en: "en";
200
+ es: "es";
201
+ fr: "fr";
202
+ hi: "hi";
203
+ it: "it";
204
+ ka: "ka";
205
+ ru: "ru";
206
+ zh_cn: "zh_cn";
207
+ pt: "pt";
208
+ }>;
209
+ value: z.ZodString;
210
+ }, z.core.$strip>>>;
211
+ icon: z.ZodOptional<z.ZodString>;
212
+ target: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strip>;
214
+ type Link = z.infer<typeof LinkSchema>;
215
+ declare const LinksSchema: z.ZodObject<{
216
+ aside: z.ZodArray<z.ZodObject<{
217
+ to: z.ZodString;
218
+ label: z.ZodOptional<z.ZodArray<z.ZodObject<{
219
+ locale: z.ZodEnum<{
220
+ de: "de";
221
+ el: "el";
222
+ en: "en";
223
+ es: "es";
224
+ fr: "fr";
225
+ hi: "hi";
226
+ it: "it";
227
+ ka: "ka";
228
+ ru: "ru";
229
+ zh_cn: "zh_cn";
230
+ pt: "pt";
231
+ }>;
232
+ value: z.ZodString;
233
+ }, z.core.$strip>>>;
234
+ icon: z.ZodOptional<z.ZodString>;
235
+ target: z.ZodOptional<z.ZodString>;
236
+ }, z.core.$strip>>;
237
+ footer: z.ZodArray<z.ZodObject<{
238
+ to: z.ZodString;
239
+ label: z.ZodOptional<z.ZodArray<z.ZodObject<{
240
+ locale: z.ZodEnum<{
241
+ de: "de";
242
+ el: "el";
243
+ en: "en";
244
+ es: "es";
245
+ fr: "fr";
246
+ hi: "hi";
247
+ it: "it";
248
+ ka: "ka";
249
+ ru: "ru";
250
+ zh_cn: "zh_cn";
251
+ pt: "pt";
252
+ }>;
253
+ value: z.ZodString;
254
+ }, z.core.$strip>>>;
255
+ icon: z.ZodOptional<z.ZodString>;
256
+ target: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>>;
258
+ social: z.ZodArray<z.ZodObject<{
259
+ to: z.ZodString;
260
+ label: z.ZodOptional<z.ZodArray<z.ZodObject<{
261
+ locale: z.ZodEnum<{
262
+ de: "de";
263
+ el: "el";
264
+ en: "en";
265
+ es: "es";
266
+ fr: "fr";
267
+ hi: "hi";
268
+ it: "it";
269
+ ka: "ka";
270
+ ru: "ru";
271
+ zh_cn: "zh_cn";
272
+ pt: "pt";
273
+ }>;
274
+ value: z.ZodString;
275
+ }, z.core.$strip>>>;
276
+ icon: z.ZodOptional<z.ZodString>;
277
+ target: z.ZodOptional<z.ZodString>;
278
+ }, z.core.$strip>>;
279
+ }, z.core.$strip>;
280
+ type Links = z.infer<typeof LinksSchema>;
3
281
  declare const ChannelSchema: z.ZodObject<{
4
282
  id: z.ZodString;
5
283
  selectorTitle: z.ZodArray<z.ZodObject<{
@@ -102,9 +380,9 @@ declare const ChannelSchema: z.ZodObject<{
102
380
  value: z.ZodString;
103
381
  }, z.core.$strip>>;
104
382
  type: z.ZodEnum<{
383
+ custom: "custom";
105
384
  cash: "cash";
106
385
  card: "card";
107
- custom: "custom";
108
386
  }>;
109
387
  }, z.core.$strip>>;
110
388
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -178,9 +456,9 @@ declare const ChannelSchema: z.ZodObject<{
178
456
  value: z.ZodString;
179
457
  }, z.core.$strip>>;
180
458
  type: z.ZodEnum<{
459
+ custom: "custom";
181
460
  cash: "cash";
182
461
  card: "card";
183
- custom: "custom";
184
462
  }>;
185
463
  }, z.core.$strip>>;
186
464
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1162,9 +1440,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1162
1440
  value: z.ZodString;
1163
1441
  }, z.core.$strip>>;
1164
1442
  type: z.ZodEnum<{
1443
+ custom: "custom";
1165
1444
  cash: "cash";
1166
1445
  card: "card";
1167
- custom: "custom";
1168
1446
  }>;
1169
1447
  }, z.core.$strip>>;
1170
1448
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1238,9 +1516,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1238
1516
  value: z.ZodString;
1239
1517
  }, z.core.$strip>>;
1240
1518
  type: z.ZodEnum<{
1519
+ custom: "custom";
1241
1520
  cash: "cash";
1242
1521
  card: "card";
1243
- custom: "custom";
1244
1522
  }>;
1245
1523
  }, z.core.$strip>>;
1246
1524
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2775,9 +3053,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2775
3053
  value: z.ZodString;
2776
3054
  }, z.core.$strip>>;
2777
3055
  type: z.ZodEnum<{
3056
+ custom: "custom";
2778
3057
  cash: "cash";
2779
3058
  card: "card";
2780
- custom: "custom";
2781
3059
  }>;
2782
3060
  }, z.core.$strip>>;
2783
3061
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2851,9 +3129,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2851
3129
  value: z.ZodString;
2852
3130
  }, z.core.$strip>>;
2853
3131
  type: z.ZodEnum<{
3132
+ custom: "custom";
2854
3133
  cash: "cash";
2855
3134
  card: "card";
2856
- custom: "custom";
2857
3135
  }>;
2858
3136
  }, z.core.$strip>>;
2859
3137
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4134,6 +4412,21 @@ declare const MenuSchema: z.ZodObject<{
4134
4412
  }, z.core.$strip>;
4135
4413
  type Menu = z.infer<typeof MenuSchema>;
4136
4414
 
4415
+ declare const HeadLinkSchema: z.ZodObject<{
4416
+ rel: z.ZodOptional<z.ZodString>;
4417
+ type: z.ZodOptional<z.ZodString>;
4418
+ sizes: z.ZodOptional<z.ZodString>;
4419
+ href: z.ZodOptional<z.ZodString>;
4420
+ }, z.core.$strip>;
4421
+ type HeadLink = z.infer<typeof HeadLinkSchema>;
4422
+ declare const HeadScriptSchema: z.ZodObject<{
4423
+ src: z.ZodOptional<z.ZodString>;
4424
+ type: z.ZodOptional<z.ZodString>;
4425
+ textContent: z.ZodOptional<z.ZodString>;
4426
+ }, z.core.$strip>;
4427
+ type HeadScript = z.infer<typeof HeadScriptSchema>;
4428
+ declare const HeadStyleSchema: z.ZodString;
4429
+ type HeadStyle = z.infer<typeof HeadStyleSchema>;
4137
4430
  declare const OptionsSchema: z.ZodObject<{
4138
4431
  selectorTitle: z.ZodArray<z.ZodObject<{
4139
4432
  locale: z.ZodEnum<{
@@ -4575,9 +4868,9 @@ declare const OrderSchema: z.ZodObject<{
4575
4868
  type Order = z.infer<typeof OrderSchema>;
4576
4869
 
4577
4870
  declare const PaymentMethodTypeSchema: z.ZodEnum<{
4871
+ custom: "custom";
4578
4872
  cash: "cash";
4579
4873
  card: "card";
4580
- custom: "custom";
4581
4874
  }>;
4582
4875
  type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
4583
4876
  declare const PaymentMethodSchema: z.ZodObject<{
@@ -4599,9 +4892,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
4599
4892
  value: z.ZodString;
4600
4893
  }, z.core.$strip>>;
4601
4894
  type: z.ZodEnum<{
4895
+ custom: "custom";
4602
4896
  cash: "cash";
4603
4897
  card: "card";
4604
- custom: "custom";
4605
4898
  }>;
4606
4899
  }, z.core.$strip>;
4607
4900
  type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
@@ -5163,4 +5456,4 @@ declare const WarehouseSchema: z.ZodObject<{
5163
5456
  type Warehouse = z.infer<typeof WarehouseSchema>;
5164
5457
 
5165
5458
  export { BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, 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, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
5166
- export type { Channel, CompositionIngredient, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, 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, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, Image, ImageFormat, ImageSize, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
5459
+ export type { 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, 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
@@ -481,6 +481,7 @@ const HeadScriptSchema = z.object({
481
481
  type: z.string().optional(),
482
482
  textContent: z.string().optional()
483
483
  });
484
+ const HeadStyleSchema = z.string();
484
485
  const OptionsSchema = z.object({
485
486
  selectorTitle: LocaleValueSchema.array(),
486
487
  selectorDescription: LocaleValueSchema.array().optional(),
@@ -491,7 +492,7 @@ const OptionsSchema = z.object({
491
492
  currencyCode: CurrencyCodeSchema,
492
493
  headLinks: HeadLinkSchema.array().optional(),
493
494
  headScripts: HeadScriptSchema.array().optional(),
494
- headStyles: z.string().array().optional()
495
+ headStyles: HeadStyleSchema.array().optional()
495
496
  });
496
497
 
497
498
  const DeliveryMethodSchema = z.enum([
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nextorders/food-schema",
3
3
  "type": "module",
4
- "version": "0.2.6",
4
+ "version": "0.2.7",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },