@nextorders/food-schema 0.2.5 → 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 +318 -9
- package/dist/index.d.ts +318 -9
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
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<{
|
|
@@ -2069,8 +2347,10 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
2069
2347
|
md: "md";
|
|
2070
2348
|
lg: "lg";
|
|
2071
2349
|
xl: "xl";
|
|
2350
|
+
original: "original";
|
|
2072
2351
|
}>;
|
|
2073
2352
|
format: z.ZodEnum<{
|
|
2353
|
+
original: "original";
|
|
2074
2354
|
jpeg: "jpeg";
|
|
2075
2355
|
webp: "webp";
|
|
2076
2356
|
}>;
|
|
@@ -2773,9 +3053,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2773
3053
|
value: z.ZodString;
|
|
2774
3054
|
}, z.core.$strip>>;
|
|
2775
3055
|
type: z.ZodEnum<{
|
|
3056
|
+
custom: "custom";
|
|
2776
3057
|
cash: "cash";
|
|
2777
3058
|
card: "card";
|
|
2778
|
-
custom: "custom";
|
|
2779
3059
|
}>;
|
|
2780
3060
|
}, z.core.$strip>>;
|
|
2781
3061
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2849,9 +3129,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2849
3129
|
value: z.ZodString;
|
|
2850
3130
|
}, z.core.$strip>>;
|
|
2851
3131
|
type: z.ZodEnum<{
|
|
3132
|
+
custom: "custom";
|
|
2852
3133
|
cash: "cash";
|
|
2853
3134
|
card: "card";
|
|
2854
|
-
custom: "custom";
|
|
2855
3135
|
}>;
|
|
2856
3136
|
}, z.core.$strip>>;
|
|
2857
3137
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3501,8 +3781,10 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3501
3781
|
md: "md";
|
|
3502
3782
|
lg: "lg";
|
|
3503
3783
|
xl: "xl";
|
|
3784
|
+
original: "original";
|
|
3504
3785
|
}>;
|
|
3505
3786
|
format: z.ZodEnum<{
|
|
3787
|
+
original: "original";
|
|
3506
3788
|
jpeg: "jpeg";
|
|
3507
3789
|
webp: "webp";
|
|
3508
3790
|
}>;
|
|
@@ -3727,6 +4009,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3727
4009
|
type GatewayResponse = z.infer<typeof GatewayResponseSchema>;
|
|
3728
4010
|
|
|
3729
4011
|
declare const ImageFormatSchema: z.ZodEnum<{
|
|
4012
|
+
original: "original";
|
|
3730
4013
|
jpeg: "jpeg";
|
|
3731
4014
|
webp: "webp";
|
|
3732
4015
|
}>;
|
|
@@ -3745,6 +4028,7 @@ declare const ImageSizeSchema: z.ZodEnum<{
|
|
|
3745
4028
|
md: "md";
|
|
3746
4029
|
lg: "lg";
|
|
3747
4030
|
xl: "xl";
|
|
4031
|
+
original: "original";
|
|
3748
4032
|
}>;
|
|
3749
4033
|
type ImageSize = z.infer<typeof ImageSizeSchema>;
|
|
3750
4034
|
declare const ImageSchema: z.ZodObject<{
|
|
@@ -3756,8 +4040,10 @@ declare const ImageSchema: z.ZodObject<{
|
|
|
3756
4040
|
md: "md";
|
|
3757
4041
|
lg: "lg";
|
|
3758
4042
|
xl: "xl";
|
|
4043
|
+
original: "original";
|
|
3759
4044
|
}>;
|
|
3760
4045
|
format: z.ZodEnum<{
|
|
4046
|
+
original: "original";
|
|
3761
4047
|
jpeg: "jpeg";
|
|
3762
4048
|
webp: "webp";
|
|
3763
4049
|
}>;
|
|
@@ -3848,8 +4134,10 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3848
4134
|
md: "md";
|
|
3849
4135
|
lg: "lg";
|
|
3850
4136
|
xl: "xl";
|
|
4137
|
+
original: "original";
|
|
3851
4138
|
}>;
|
|
3852
4139
|
format: z.ZodEnum<{
|
|
4140
|
+
original: "original";
|
|
3853
4141
|
jpeg: "jpeg";
|
|
3854
4142
|
webp: "webp";
|
|
3855
4143
|
}>;
|
|
@@ -4036,8 +4324,10 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
4036
4324
|
md: "md";
|
|
4037
4325
|
lg: "lg";
|
|
4038
4326
|
xl: "xl";
|
|
4327
|
+
original: "original";
|
|
4039
4328
|
}>;
|
|
4040
4329
|
format: z.ZodEnum<{
|
|
4330
|
+
original: "original";
|
|
4041
4331
|
jpeg: "jpeg";
|
|
4042
4332
|
webp: "webp";
|
|
4043
4333
|
}>;
|
|
@@ -4122,6 +4412,21 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
4122
4412
|
}, z.core.$strip>;
|
|
4123
4413
|
type Menu = z.infer<typeof MenuSchema>;
|
|
4124
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>;
|
|
4125
4430
|
declare const OptionsSchema: z.ZodObject<{
|
|
4126
4431
|
selectorTitle: z.ZodArray<z.ZodObject<{
|
|
4127
4432
|
locale: z.ZodEnum<{
|
|
@@ -4563,9 +4868,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
4563
4868
|
type Order = z.infer<typeof OrderSchema>;
|
|
4564
4869
|
|
|
4565
4870
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
4871
|
+
custom: "custom";
|
|
4566
4872
|
cash: "cash";
|
|
4567
4873
|
card: "card";
|
|
4568
|
-
custom: "custom";
|
|
4569
4874
|
}>;
|
|
4570
4875
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
4571
4876
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -4587,9 +4892,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
4587
4892
|
value: z.ZodString;
|
|
4588
4893
|
}, z.core.$strip>>;
|
|
4589
4894
|
type: z.ZodEnum<{
|
|
4895
|
+
custom: "custom";
|
|
4590
4896
|
cash: "cash";
|
|
4591
4897
|
card: "card";
|
|
4592
|
-
custom: "custom";
|
|
4593
4898
|
}>;
|
|
4594
4899
|
}, z.core.$strip>;
|
|
4595
4900
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4648,8 +4953,10 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4648
4953
|
md: "md";
|
|
4649
4954
|
lg: "lg";
|
|
4650
4955
|
xl: "xl";
|
|
4956
|
+
original: "original";
|
|
4651
4957
|
}>;
|
|
4652
4958
|
format: z.ZodEnum<{
|
|
4959
|
+
original: "original";
|
|
4653
4960
|
jpeg: "jpeg";
|
|
4654
4961
|
webp: "webp";
|
|
4655
4962
|
}>;
|
|
@@ -4802,8 +5109,10 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4802
5109
|
md: "md";
|
|
4803
5110
|
lg: "lg";
|
|
4804
5111
|
xl: "xl";
|
|
5112
|
+
original: "original";
|
|
4805
5113
|
}>;
|
|
4806
5114
|
format: z.ZodEnum<{
|
|
5115
|
+
original: "original";
|
|
4807
5116
|
jpeg: "jpeg";
|
|
4808
5117
|
webp: "webp";
|
|
4809
5118
|
}>;
|
|
@@ -5147,4 +5456,4 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
5147
5456
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
5148
5457
|
|
|
5149
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 };
|
|
5150
|
-
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<{
|
|
@@ -2069,8 +2347,10 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
2069
2347
|
md: "md";
|
|
2070
2348
|
lg: "lg";
|
|
2071
2349
|
xl: "xl";
|
|
2350
|
+
original: "original";
|
|
2072
2351
|
}>;
|
|
2073
2352
|
format: z.ZodEnum<{
|
|
2353
|
+
original: "original";
|
|
2074
2354
|
jpeg: "jpeg";
|
|
2075
2355
|
webp: "webp";
|
|
2076
2356
|
}>;
|
|
@@ -2773,9 +3053,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2773
3053
|
value: z.ZodString;
|
|
2774
3054
|
}, z.core.$strip>>;
|
|
2775
3055
|
type: z.ZodEnum<{
|
|
3056
|
+
custom: "custom";
|
|
2776
3057
|
cash: "cash";
|
|
2777
3058
|
card: "card";
|
|
2778
|
-
custom: "custom";
|
|
2779
3059
|
}>;
|
|
2780
3060
|
}, z.core.$strip>>;
|
|
2781
3061
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2849,9 +3129,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2849
3129
|
value: z.ZodString;
|
|
2850
3130
|
}, z.core.$strip>>;
|
|
2851
3131
|
type: z.ZodEnum<{
|
|
3132
|
+
custom: "custom";
|
|
2852
3133
|
cash: "cash";
|
|
2853
3134
|
card: "card";
|
|
2854
|
-
custom: "custom";
|
|
2855
3135
|
}>;
|
|
2856
3136
|
}, z.core.$strip>>;
|
|
2857
3137
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3501,8 +3781,10 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3501
3781
|
md: "md";
|
|
3502
3782
|
lg: "lg";
|
|
3503
3783
|
xl: "xl";
|
|
3784
|
+
original: "original";
|
|
3504
3785
|
}>;
|
|
3505
3786
|
format: z.ZodEnum<{
|
|
3787
|
+
original: "original";
|
|
3506
3788
|
jpeg: "jpeg";
|
|
3507
3789
|
webp: "webp";
|
|
3508
3790
|
}>;
|
|
@@ -3727,6 +4009,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3727
4009
|
type GatewayResponse = z.infer<typeof GatewayResponseSchema>;
|
|
3728
4010
|
|
|
3729
4011
|
declare const ImageFormatSchema: z.ZodEnum<{
|
|
4012
|
+
original: "original";
|
|
3730
4013
|
jpeg: "jpeg";
|
|
3731
4014
|
webp: "webp";
|
|
3732
4015
|
}>;
|
|
@@ -3745,6 +4028,7 @@ declare const ImageSizeSchema: z.ZodEnum<{
|
|
|
3745
4028
|
md: "md";
|
|
3746
4029
|
lg: "lg";
|
|
3747
4030
|
xl: "xl";
|
|
4031
|
+
original: "original";
|
|
3748
4032
|
}>;
|
|
3749
4033
|
type ImageSize = z.infer<typeof ImageSizeSchema>;
|
|
3750
4034
|
declare const ImageSchema: z.ZodObject<{
|
|
@@ -3756,8 +4040,10 @@ declare const ImageSchema: z.ZodObject<{
|
|
|
3756
4040
|
md: "md";
|
|
3757
4041
|
lg: "lg";
|
|
3758
4042
|
xl: "xl";
|
|
4043
|
+
original: "original";
|
|
3759
4044
|
}>;
|
|
3760
4045
|
format: z.ZodEnum<{
|
|
4046
|
+
original: "original";
|
|
3761
4047
|
jpeg: "jpeg";
|
|
3762
4048
|
webp: "webp";
|
|
3763
4049
|
}>;
|
|
@@ -3848,8 +4134,10 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
3848
4134
|
md: "md";
|
|
3849
4135
|
lg: "lg";
|
|
3850
4136
|
xl: "xl";
|
|
4137
|
+
original: "original";
|
|
3851
4138
|
}>;
|
|
3852
4139
|
format: z.ZodEnum<{
|
|
4140
|
+
original: "original";
|
|
3853
4141
|
jpeg: "jpeg";
|
|
3854
4142
|
webp: "webp";
|
|
3855
4143
|
}>;
|
|
@@ -4036,8 +4324,10 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
4036
4324
|
md: "md";
|
|
4037
4325
|
lg: "lg";
|
|
4038
4326
|
xl: "xl";
|
|
4327
|
+
original: "original";
|
|
4039
4328
|
}>;
|
|
4040
4329
|
format: z.ZodEnum<{
|
|
4330
|
+
original: "original";
|
|
4041
4331
|
jpeg: "jpeg";
|
|
4042
4332
|
webp: "webp";
|
|
4043
4333
|
}>;
|
|
@@ -4122,6 +4412,21 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
4122
4412
|
}, z.core.$strip>;
|
|
4123
4413
|
type Menu = z.infer<typeof MenuSchema>;
|
|
4124
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>;
|
|
4125
4430
|
declare const OptionsSchema: z.ZodObject<{
|
|
4126
4431
|
selectorTitle: z.ZodArray<z.ZodObject<{
|
|
4127
4432
|
locale: z.ZodEnum<{
|
|
@@ -4563,9 +4868,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
4563
4868
|
type Order = z.infer<typeof OrderSchema>;
|
|
4564
4869
|
|
|
4565
4870
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
4871
|
+
custom: "custom";
|
|
4566
4872
|
cash: "cash";
|
|
4567
4873
|
card: "card";
|
|
4568
|
-
custom: "custom";
|
|
4569
4874
|
}>;
|
|
4570
4875
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
4571
4876
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -4587,9 +4892,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
4587
4892
|
value: z.ZodString;
|
|
4588
4893
|
}, z.core.$strip>>;
|
|
4589
4894
|
type: z.ZodEnum<{
|
|
4895
|
+
custom: "custom";
|
|
4590
4896
|
cash: "cash";
|
|
4591
4897
|
card: "card";
|
|
4592
|
-
custom: "custom";
|
|
4593
4898
|
}>;
|
|
4594
4899
|
}, z.core.$strip>;
|
|
4595
4900
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4648,8 +4953,10 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4648
4953
|
md: "md";
|
|
4649
4954
|
lg: "lg";
|
|
4650
4955
|
xl: "xl";
|
|
4956
|
+
original: "original";
|
|
4651
4957
|
}>;
|
|
4652
4958
|
format: z.ZodEnum<{
|
|
4959
|
+
original: "original";
|
|
4653
4960
|
jpeg: "jpeg";
|
|
4654
4961
|
webp: "webp";
|
|
4655
4962
|
}>;
|
|
@@ -4802,8 +5109,10 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
4802
5109
|
md: "md";
|
|
4803
5110
|
lg: "lg";
|
|
4804
5111
|
xl: "xl";
|
|
5112
|
+
original: "original";
|
|
4805
5113
|
}>;
|
|
4806
5114
|
format: z.ZodEnum<{
|
|
5115
|
+
original: "original";
|
|
4807
5116
|
jpeg: "jpeg";
|
|
4808
5117
|
webp: "webp";
|
|
4809
5118
|
}>;
|
|
@@ -5147,4 +5456,4 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
5147
5456
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
5148
5457
|
|
|
5149
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 };
|
|
5150
|
-
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
|
@@ -387,8 +387,8 @@ const ChannelSchema = z.object({
|
|
|
387
387
|
links: LinksSchema.optional()
|
|
388
388
|
});
|
|
389
389
|
|
|
390
|
-
const ImageFormatSchema = z.enum(["jpeg", "webp"]);
|
|
391
|
-
const ImageSizeSchema = z.enum(["xs", "sm", "md", "lg", "xl"]);
|
|
390
|
+
const ImageFormatSchema = z.enum(["jpeg", "webp", "original"]);
|
|
391
|
+
const ImageSizeSchema = z.enum(["xs", "sm", "md", "lg", "xl", "original"]);
|
|
392
392
|
const ImageSchema = z.object({
|
|
393
393
|
id: z.string(),
|
|
394
394
|
url: z.string(),
|
|
@@ -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:
|
|
495
|
+
headStyles: HeadStyleSchema.array().optional()
|
|
495
496
|
});
|
|
496
497
|
|
|
497
498
|
const DeliveryMethodSchema = z.enum([
|