@nextorders/food-schema 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +152 -41
- package/dist/index.d.ts +152 -41
- package/dist/index.mjs +26 -6
- package/package.json +2 -3
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";
|
|
24
25
|
cash: "cash";
|
|
25
26
|
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";
|
|
101
102
|
cash: "cash";
|
|
102
103
|
card: "card";
|
|
103
|
-
custom: "custom";
|
|
104
104
|
}>;
|
|
105
105
|
}, z.core.$strip>>;
|
|
106
106
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -209,7 +209,12 @@ declare const LinkSchema: z.ZodObject<{
|
|
|
209
209
|
value: z.ZodString;
|
|
210
210
|
}, z.core.$strip>>>;
|
|
211
211
|
icon: z.ZodOptional<z.ZodString>;
|
|
212
|
-
target: z.ZodOptional<z.
|
|
212
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
_blank: "_blank";
|
|
214
|
+
_self: "_self";
|
|
215
|
+
_parent: "_parent";
|
|
216
|
+
_top: "_top";
|
|
217
|
+
}>>;
|
|
213
218
|
}, z.core.$strip>;
|
|
214
219
|
type Link = z.infer<typeof LinkSchema>;
|
|
215
220
|
declare const LinksSchema: z.ZodObject<{
|
|
@@ -232,7 +237,12 @@ declare const LinksSchema: z.ZodObject<{
|
|
|
232
237
|
value: z.ZodString;
|
|
233
238
|
}, z.core.$strip>>>;
|
|
234
239
|
icon: z.ZodOptional<z.ZodString>;
|
|
235
|
-
target: z.ZodOptional<z.
|
|
240
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
_blank: "_blank";
|
|
242
|
+
_self: "_self";
|
|
243
|
+
_parent: "_parent";
|
|
244
|
+
_top: "_top";
|
|
245
|
+
}>>;
|
|
236
246
|
}, z.core.$strip>>;
|
|
237
247
|
footer: z.ZodArray<z.ZodObject<{
|
|
238
248
|
to: z.ZodString;
|
|
@@ -253,7 +263,12 @@ declare const LinksSchema: z.ZodObject<{
|
|
|
253
263
|
value: z.ZodString;
|
|
254
264
|
}, z.core.$strip>>>;
|
|
255
265
|
icon: z.ZodOptional<z.ZodString>;
|
|
256
|
-
target: z.ZodOptional<z.
|
|
266
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
267
|
+
_blank: "_blank";
|
|
268
|
+
_self: "_self";
|
|
269
|
+
_parent: "_parent";
|
|
270
|
+
_top: "_top";
|
|
271
|
+
}>>;
|
|
257
272
|
}, z.core.$strip>>;
|
|
258
273
|
social: z.ZodArray<z.ZodObject<{
|
|
259
274
|
to: z.ZodString;
|
|
@@ -274,7 +289,12 @@ declare const LinksSchema: z.ZodObject<{
|
|
|
274
289
|
value: z.ZodString;
|
|
275
290
|
}, z.core.$strip>>>;
|
|
276
291
|
icon: z.ZodOptional<z.ZodString>;
|
|
277
|
-
target: z.ZodOptional<z.
|
|
292
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
_blank: "_blank";
|
|
294
|
+
_self: "_self";
|
|
295
|
+
_parent: "_parent";
|
|
296
|
+
_top: "_top";
|
|
297
|
+
}>>;
|
|
278
298
|
}, z.core.$strip>>;
|
|
279
299
|
}, z.core.$strip>;
|
|
280
300
|
type Links = z.infer<typeof LinksSchema>;
|
|
@@ -380,9 +400,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
380
400
|
value: z.ZodString;
|
|
381
401
|
}, z.core.$strip>>;
|
|
382
402
|
type: z.ZodEnum<{
|
|
403
|
+
custom: "custom";
|
|
383
404
|
cash: "cash";
|
|
384
405
|
card: "card";
|
|
385
|
-
custom: "custom";
|
|
386
406
|
}>;
|
|
387
407
|
}, z.core.$strip>>;
|
|
388
408
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -456,9 +476,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
456
476
|
value: z.ZodString;
|
|
457
477
|
}, z.core.$strip>>;
|
|
458
478
|
type: z.ZodEnum<{
|
|
479
|
+
custom: "custom";
|
|
459
480
|
cash: "cash";
|
|
460
481
|
card: "card";
|
|
461
|
-
custom: "custom";
|
|
462
482
|
}>;
|
|
463
483
|
}, z.core.$strip>>;
|
|
464
484
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -583,7 +603,12 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
583
603
|
value: z.ZodString;
|
|
584
604
|
}, z.core.$strip>>>;
|
|
585
605
|
icon: z.ZodOptional<z.ZodString>;
|
|
586
|
-
target: z.ZodOptional<z.
|
|
606
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
607
|
+
_blank: "_blank";
|
|
608
|
+
_self: "_self";
|
|
609
|
+
_parent: "_parent";
|
|
610
|
+
_top: "_top";
|
|
611
|
+
}>>;
|
|
587
612
|
}, z.core.$strip>>;
|
|
588
613
|
footer: z.ZodArray<z.ZodObject<{
|
|
589
614
|
to: z.ZodString;
|
|
@@ -604,7 +629,12 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
604
629
|
value: z.ZodString;
|
|
605
630
|
}, z.core.$strip>>>;
|
|
606
631
|
icon: z.ZodOptional<z.ZodString>;
|
|
607
|
-
target: z.ZodOptional<z.
|
|
632
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
633
|
+
_blank: "_blank";
|
|
634
|
+
_self: "_self";
|
|
635
|
+
_parent: "_parent";
|
|
636
|
+
_top: "_top";
|
|
637
|
+
}>>;
|
|
608
638
|
}, z.core.$strip>>;
|
|
609
639
|
social: z.ZodArray<z.ZodObject<{
|
|
610
640
|
to: z.ZodString;
|
|
@@ -625,7 +655,12 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
625
655
|
value: z.ZodString;
|
|
626
656
|
}, z.core.$strip>>>;
|
|
627
657
|
icon: z.ZodOptional<z.ZodString>;
|
|
628
|
-
target: z.ZodOptional<z.
|
|
658
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
659
|
+
_blank: "_blank";
|
|
660
|
+
_self: "_self";
|
|
661
|
+
_parent: "_parent";
|
|
662
|
+
_top: "_top";
|
|
663
|
+
}>>;
|
|
629
664
|
}, z.core.$strip>>;
|
|
630
665
|
}, z.core.$strip>>;
|
|
631
666
|
}, z.core.$strip>;
|
|
@@ -951,6 +986,7 @@ declare const GatewayActionTypeSchema: z.ZodEnum<{
|
|
|
951
986
|
getDeliveryByCourierStatus: "getDeliveryByCourierStatus";
|
|
952
987
|
getSelfPickupStatus: "getSelfPickupStatus";
|
|
953
988
|
getTimeSlots: "getTimeSlots";
|
|
989
|
+
suggestAddresses: "suggestAddresses";
|
|
954
990
|
}>;
|
|
955
991
|
type GatewayActionType = z.infer<typeof GatewayActionTypeSchema>;
|
|
956
992
|
/**
|
|
@@ -971,6 +1007,7 @@ declare const GatewayRequestSchema: z.ZodObject<{
|
|
|
971
1007
|
getDeliveryByCourierStatus: "getDeliveryByCourierStatus";
|
|
972
1008
|
getSelfPickupStatus: "getSelfPickupStatus";
|
|
973
1009
|
getTimeSlots: "getTimeSlots";
|
|
1010
|
+
suggestAddresses: "suggestAddresses";
|
|
974
1011
|
}>;
|
|
975
1012
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
976
1013
|
body: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1325,6 +1362,7 @@ declare const GatewayGetOptionsResponseSchema: z.ZodObject<{
|
|
|
1325
1362
|
textContent: z.ZodOptional<z.ZodString>;
|
|
1326
1363
|
}, z.core.$strip>>>;
|
|
1327
1364
|
headStyles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1365
|
+
addressSuggestEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1328
1366
|
}, z.core.$strip>;
|
|
1329
1367
|
}, z.core.$strip>;
|
|
1330
1368
|
type GatewayGetOptionsResponse = z.infer<typeof GatewayGetOptionsResponseSchema>;
|
|
@@ -1440,9 +1478,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1440
1478
|
value: z.ZodString;
|
|
1441
1479
|
}, z.core.$strip>>;
|
|
1442
1480
|
type: z.ZodEnum<{
|
|
1481
|
+
custom: "custom";
|
|
1443
1482
|
cash: "cash";
|
|
1444
1483
|
card: "card";
|
|
1445
|
-
custom: "custom";
|
|
1446
1484
|
}>;
|
|
1447
1485
|
}, z.core.$strip>>;
|
|
1448
1486
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1516,9 +1554,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1516
1554
|
value: z.ZodString;
|
|
1517
1555
|
}, z.core.$strip>>;
|
|
1518
1556
|
type: z.ZodEnum<{
|
|
1557
|
+
custom: "custom";
|
|
1519
1558
|
cash: "cash";
|
|
1520
1559
|
card: "card";
|
|
1521
|
-
custom: "custom";
|
|
1522
1560
|
}>;
|
|
1523
1561
|
}, z.core.$strip>>;
|
|
1524
1562
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1643,7 +1681,12 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1643
1681
|
value: z.ZodString;
|
|
1644
1682
|
}, z.core.$strip>>>;
|
|
1645
1683
|
icon: z.ZodOptional<z.ZodString>;
|
|
1646
|
-
target: z.ZodOptional<z.
|
|
1684
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
1685
|
+
_blank: "_blank";
|
|
1686
|
+
_self: "_self";
|
|
1687
|
+
_parent: "_parent";
|
|
1688
|
+
_top: "_top";
|
|
1689
|
+
}>>;
|
|
1647
1690
|
}, z.core.$strip>>;
|
|
1648
1691
|
footer: z.ZodArray<z.ZodObject<{
|
|
1649
1692
|
to: z.ZodString;
|
|
@@ -1664,7 +1707,12 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1664
1707
|
value: z.ZodString;
|
|
1665
1708
|
}, z.core.$strip>>>;
|
|
1666
1709
|
icon: z.ZodOptional<z.ZodString>;
|
|
1667
|
-
target: z.ZodOptional<z.
|
|
1710
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
1711
|
+
_blank: "_blank";
|
|
1712
|
+
_self: "_self";
|
|
1713
|
+
_parent: "_parent";
|
|
1714
|
+
_top: "_top";
|
|
1715
|
+
}>>;
|
|
1668
1716
|
}, z.core.$strip>>;
|
|
1669
1717
|
social: z.ZodArray<z.ZodObject<{
|
|
1670
1718
|
to: z.ZodString;
|
|
@@ -1685,7 +1733,12 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1685
1733
|
value: z.ZodString;
|
|
1686
1734
|
}, z.core.$strip>>>;
|
|
1687
1735
|
icon: z.ZodOptional<z.ZodString>;
|
|
1688
|
-
target: z.ZodOptional<z.
|
|
1736
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
1737
|
+
_blank: "_blank";
|
|
1738
|
+
_self: "_self";
|
|
1739
|
+
_parent: "_parent";
|
|
1740
|
+
_top: "_top";
|
|
1741
|
+
}>>;
|
|
1689
1742
|
}, z.core.$strip>>;
|
|
1690
1743
|
}, z.core.$strip>>;
|
|
1691
1744
|
}, z.core.$strip>>;
|
|
@@ -2342,17 +2395,17 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
2342
2395
|
id: z.ZodString;
|
|
2343
2396
|
url: z.ZodString;
|
|
2344
2397
|
size: z.ZodEnum<{
|
|
2398
|
+
original: "original";
|
|
2345
2399
|
xs: "xs";
|
|
2346
2400
|
sm: "sm";
|
|
2347
2401
|
md: "md";
|
|
2348
2402
|
lg: "lg";
|
|
2349
2403
|
xl: "xl";
|
|
2350
|
-
original: "original";
|
|
2351
2404
|
}>;
|
|
2352
2405
|
format: z.ZodEnum<{
|
|
2353
|
-
original: "original";
|
|
2354
2406
|
jpeg: "jpeg";
|
|
2355
2407
|
webp: "webp";
|
|
2408
|
+
original: "original";
|
|
2356
2409
|
}>;
|
|
2357
2410
|
}, z.core.$strip>>;
|
|
2358
2411
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -2608,6 +2661,27 @@ declare const GatewayGetTimeSlotsResponseSchema: z.ZodObject<{
|
|
|
2608
2661
|
}, z.core.$strip>>;
|
|
2609
2662
|
}, z.core.$strip>;
|
|
2610
2663
|
type GatewayGetTimeSlotsResponse = z.infer<typeof GatewayGetTimeSlotsResponseSchema>;
|
|
2664
|
+
declare const GatewaySuggestAddressesRequestSchema: z.ZodObject<{
|
|
2665
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2666
|
+
type: z.ZodLiteral<"suggestAddresses">;
|
|
2667
|
+
body: z.ZodObject<{
|
|
2668
|
+
query: z.ZodString;
|
|
2669
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2670
|
+
}, z.core.$strip>;
|
|
2671
|
+
}, z.core.$strip>;
|
|
2672
|
+
type GatewaySuggestAddressesRequest = z.infer<typeof GatewaySuggestAddressesRequestSchema>;
|
|
2673
|
+
declare const GatewaySuggestAddressesResponseSchema: z.ZodObject<{
|
|
2674
|
+
ok: z.ZodBoolean;
|
|
2675
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2676
|
+
type: z.ZodLiteral<"suggestAddresses">;
|
|
2677
|
+
result: z.ZodArray<z.ZodObject<{
|
|
2678
|
+
value: z.ZodString;
|
|
2679
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
2680
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
2681
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2682
|
+
}, z.core.$strip>>;
|
|
2683
|
+
}, z.core.$strip>;
|
|
2684
|
+
type GatewaySuggestAddressesResponse = z.infer<typeof GatewaySuggestAddressesResponseSchema>;
|
|
2611
2685
|
/**
|
|
2612
2686
|
* Combined Gateway Response
|
|
2613
2687
|
*/
|
|
@@ -2947,6 +3021,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2947
3021
|
textContent: z.ZodOptional<z.ZodString>;
|
|
2948
3022
|
}, z.core.$strip>>>;
|
|
2949
3023
|
headStyles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3024
|
+
addressSuggestEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
2950
3025
|
}, z.core.$strip>;
|
|
2951
3026
|
}, z.core.$strip>, z.ZodObject<{
|
|
2952
3027
|
ok: z.ZodBoolean;
|
|
@@ -3054,9 +3129,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3054
3129
|
value: z.ZodString;
|
|
3055
3130
|
}, z.core.$strip>>;
|
|
3056
3131
|
type: z.ZodEnum<{
|
|
3132
|
+
custom: "custom";
|
|
3057
3133
|
cash: "cash";
|
|
3058
3134
|
card: "card";
|
|
3059
|
-
custom: "custom";
|
|
3060
3135
|
}>;
|
|
3061
3136
|
}, z.core.$strip>>;
|
|
3062
3137
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3130,9 +3205,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3130
3205
|
value: z.ZodString;
|
|
3131
3206
|
}, z.core.$strip>>;
|
|
3132
3207
|
type: z.ZodEnum<{
|
|
3208
|
+
custom: "custom";
|
|
3133
3209
|
cash: "cash";
|
|
3134
3210
|
card: "card";
|
|
3135
|
-
custom: "custom";
|
|
3136
3211
|
}>;
|
|
3137
3212
|
}, z.core.$strip>>;
|
|
3138
3213
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3257,7 +3332,12 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3257
3332
|
value: z.ZodString;
|
|
3258
3333
|
}, z.core.$strip>>>;
|
|
3259
3334
|
icon: z.ZodOptional<z.ZodString>;
|
|
3260
|
-
target: z.ZodOptional<z.
|
|
3335
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
3336
|
+
_blank: "_blank";
|
|
3337
|
+
_self: "_self";
|
|
3338
|
+
_parent: "_parent";
|
|
3339
|
+
_top: "_top";
|
|
3340
|
+
}>>;
|
|
3261
3341
|
}, z.core.$strip>>;
|
|
3262
3342
|
footer: z.ZodArray<z.ZodObject<{
|
|
3263
3343
|
to: z.ZodString;
|
|
@@ -3278,7 +3358,12 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3278
3358
|
value: z.ZodString;
|
|
3279
3359
|
}, z.core.$strip>>>;
|
|
3280
3360
|
icon: z.ZodOptional<z.ZodString>;
|
|
3281
|
-
target: z.ZodOptional<z.
|
|
3361
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
3362
|
+
_blank: "_blank";
|
|
3363
|
+
_self: "_self";
|
|
3364
|
+
_parent: "_parent";
|
|
3365
|
+
_top: "_top";
|
|
3366
|
+
}>>;
|
|
3282
3367
|
}, z.core.$strip>>;
|
|
3283
3368
|
social: z.ZodArray<z.ZodObject<{
|
|
3284
3369
|
to: z.ZodString;
|
|
@@ -3299,7 +3384,12 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3299
3384
|
value: z.ZodString;
|
|
3300
3385
|
}, z.core.$strip>>>;
|
|
3301
3386
|
icon: z.ZodOptional<z.ZodString>;
|
|
3302
|
-
target: z.ZodOptional<z.
|
|
3387
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
3388
|
+
_blank: "_blank";
|
|
3389
|
+
_self: "_self";
|
|
3390
|
+
_parent: "_parent";
|
|
3391
|
+
_top: "_top";
|
|
3392
|
+
}>>;
|
|
3303
3393
|
}, z.core.$strip>>;
|
|
3304
3394
|
}, z.core.$strip>>;
|
|
3305
3395
|
}, z.core.$strip>>;
|
|
@@ -3777,17 +3867,17 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3777
3867
|
id: z.ZodString;
|
|
3778
3868
|
url: z.ZodString;
|
|
3779
3869
|
size: z.ZodEnum<{
|
|
3870
|
+
original: "original";
|
|
3780
3871
|
xs: "xs";
|
|
3781
3872
|
sm: "sm";
|
|
3782
3873
|
md: "md";
|
|
3783
3874
|
lg: "lg";
|
|
3784
3875
|
xl: "xl";
|
|
3785
|
-
original: "original";
|
|
3786
3876
|
}>;
|
|
3787
3877
|
format: z.ZodEnum<{
|
|
3788
|
-
original: "original";
|
|
3789
3878
|
jpeg: "jpeg";
|
|
3790
3879
|
webp: "webp";
|
|
3880
|
+
original: "original";
|
|
3791
3881
|
}>;
|
|
3792
3882
|
}, z.core.$strip>>;
|
|
3793
3883
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -4007,13 +4097,23 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4007
4097
|
start: z.ZodString;
|
|
4008
4098
|
end: z.ZodString;
|
|
4009
4099
|
}, z.core.$strip>>;
|
|
4100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4101
|
+
ok: z.ZodBoolean;
|
|
4102
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4103
|
+
type: z.ZodLiteral<"suggestAddresses">;
|
|
4104
|
+
result: z.ZodArray<z.ZodObject<{
|
|
4105
|
+
value: z.ZodString;
|
|
4106
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
4107
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
4108
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4109
|
+
}, z.core.$strip>>;
|
|
4010
4110
|
}, z.core.$strip>], "type">;
|
|
4011
4111
|
type GatewayResponse = z.infer<typeof GatewayResponseSchema>;
|
|
4012
4112
|
|
|
4013
4113
|
declare const ImageFormatSchema: z.ZodEnum<{
|
|
4014
|
-
original: "original";
|
|
4015
4114
|
jpeg: "jpeg";
|
|
4016
4115
|
webp: "webp";
|
|
4116
|
+
original: "original";
|
|
4017
4117
|
}>;
|
|
4018
4118
|
type ImageFormat = z.infer<typeof ImageFormatSchema>;
|
|
4019
4119
|
/**
|
|
@@ -4025,29 +4125,29 @@ type ImageFormat = z.infer<typeof ImageFormatSchema>;
|
|
|
4025
4125
|
* - xl - 1920px
|
|
4026
4126
|
*/
|
|
4027
4127
|
declare const ImageSizeSchema: z.ZodEnum<{
|
|
4128
|
+
original: "original";
|
|
4028
4129
|
xs: "xs";
|
|
4029
4130
|
sm: "sm";
|
|
4030
4131
|
md: "md";
|
|
4031
4132
|
lg: "lg";
|
|
4032
4133
|
xl: "xl";
|
|
4033
|
-
original: "original";
|
|
4034
4134
|
}>;
|
|
4035
4135
|
type ImageSize = z.infer<typeof ImageSizeSchema>;
|
|
4036
4136
|
declare const ImageSchema: z.ZodObject<{
|
|
4037
4137
|
id: z.ZodString;
|
|
4038
4138
|
url: z.ZodString;
|
|
4039
4139
|
size: z.ZodEnum<{
|
|
4140
|
+
original: "original";
|
|
4040
4141
|
xs: "xs";
|
|
4041
4142
|
sm: "sm";
|
|
4042
4143
|
md: "md";
|
|
4043
4144
|
lg: "lg";
|
|
4044
4145
|
xl: "xl";
|
|
4045
|
-
original: "original";
|
|
4046
4146
|
}>;
|
|
4047
4147
|
format: z.ZodEnum<{
|
|
4048
|
-
original: "original";
|
|
4049
4148
|
jpeg: "jpeg";
|
|
4050
4149
|
webp: "webp";
|
|
4150
|
+
original: "original";
|
|
4051
4151
|
}>;
|
|
4052
4152
|
}, z.core.$strip>;
|
|
4053
4153
|
type Image = z.infer<typeof ImageSchema>;
|
|
@@ -4131,17 +4231,17 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
4131
4231
|
id: z.ZodString;
|
|
4132
4232
|
url: z.ZodString;
|
|
4133
4233
|
size: z.ZodEnum<{
|
|
4234
|
+
original: "original";
|
|
4134
4235
|
xs: "xs";
|
|
4135
4236
|
sm: "sm";
|
|
4136
4237
|
md: "md";
|
|
4137
4238
|
lg: "lg";
|
|
4138
4239
|
xl: "xl";
|
|
4139
|
-
original: "original";
|
|
4140
4240
|
}>;
|
|
4141
4241
|
format: z.ZodEnum<{
|
|
4142
|
-
original: "original";
|
|
4143
4242
|
jpeg: "jpeg";
|
|
4144
4243
|
webp: "webp";
|
|
4244
|
+
original: "original";
|
|
4145
4245
|
}>;
|
|
4146
4246
|
}, z.core.$strip>>;
|
|
4147
4247
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -4322,17 +4422,17 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
4322
4422
|
id: z.ZodString;
|
|
4323
4423
|
url: z.ZodString;
|
|
4324
4424
|
size: z.ZodEnum<{
|
|
4425
|
+
original: "original";
|
|
4325
4426
|
xs: "xs";
|
|
4326
4427
|
sm: "sm";
|
|
4327
4428
|
md: "md";
|
|
4328
4429
|
lg: "lg";
|
|
4329
4430
|
xl: "xl";
|
|
4330
|
-
original: "original";
|
|
4331
4431
|
}>;
|
|
4332
4432
|
format: z.ZodEnum<{
|
|
4333
|
-
original: "original";
|
|
4334
4433
|
jpeg: "jpeg";
|
|
4335
4434
|
webp: "webp";
|
|
4435
|
+
original: "original";
|
|
4336
4436
|
}>;
|
|
4337
4437
|
}, z.core.$strip>>;
|
|
4338
4438
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -4763,6 +4863,7 @@ declare const OptionsSchema: z.ZodObject<{
|
|
|
4763
4863
|
textContent: z.ZodOptional<z.ZodString>;
|
|
4764
4864
|
}, z.core.$strip>>>;
|
|
4765
4865
|
headStyles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4866
|
+
addressSuggestEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
4766
4867
|
}, z.core.$strip>;
|
|
4767
4868
|
type Options = z.infer<typeof OptionsSchema>;
|
|
4768
4869
|
|
|
@@ -4870,11 +4971,21 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
4870
4971
|
}, z.core.$strip>>;
|
|
4871
4972
|
}, z.core.$strip>;
|
|
4872
4973
|
type Order = z.infer<typeof OrderSchema>;
|
|
4974
|
+
/**
|
|
4975
|
+
* Address Suggestion
|
|
4976
|
+
*/
|
|
4977
|
+
declare const AddressSuggestionSchema: z.ZodObject<{
|
|
4978
|
+
value: z.ZodString;
|
|
4979
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
4980
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
4981
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4982
|
+
}, z.core.$strip>;
|
|
4983
|
+
type AddressSuggestion = z.infer<typeof AddressSuggestionSchema>;
|
|
4873
4984
|
|
|
4874
4985
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
4986
|
+
custom: "custom";
|
|
4875
4987
|
cash: "cash";
|
|
4876
4988
|
card: "card";
|
|
4877
|
-
custom: "custom";
|
|
4878
4989
|
}>;
|
|
4879
4990
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
4880
4991
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -4896,9 +5007,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
4896
5007
|
value: z.ZodString;
|
|
4897
5008
|
}, z.core.$strip>>;
|
|
4898
5009
|
type: z.ZodEnum<{
|
|
5010
|
+
custom: "custom";
|
|
4899
5011
|
cash: "cash";
|
|
4900
5012
|
card: "card";
|
|
4901
|
-
custom: "custom";
|
|
4902
5013
|
}>;
|
|
4903
5014
|
}, z.core.$strip>;
|
|
4904
5015
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4952,17 +5063,17 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4952
5063
|
id: z.ZodString;
|
|
4953
5064
|
url: z.ZodString;
|
|
4954
5065
|
size: z.ZodEnum<{
|
|
5066
|
+
original: "original";
|
|
4955
5067
|
xs: "xs";
|
|
4956
5068
|
sm: "sm";
|
|
4957
5069
|
md: "md";
|
|
4958
5070
|
lg: "lg";
|
|
4959
5071
|
xl: "xl";
|
|
4960
|
-
original: "original";
|
|
4961
5072
|
}>;
|
|
4962
5073
|
format: z.ZodEnum<{
|
|
4963
|
-
original: "original";
|
|
4964
5074
|
jpeg: "jpeg";
|
|
4965
5075
|
webp: "webp";
|
|
5076
|
+
original: "original";
|
|
4966
5077
|
}>;
|
|
4967
5078
|
}, z.core.$strip>>;
|
|
4968
5079
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -5109,17 +5220,17 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
5109
5220
|
id: z.ZodString;
|
|
5110
5221
|
url: z.ZodString;
|
|
5111
5222
|
size: z.ZodEnum<{
|
|
5223
|
+
original: "original";
|
|
5112
5224
|
xs: "xs";
|
|
5113
5225
|
sm: "sm";
|
|
5114
5226
|
md: "md";
|
|
5115
5227
|
lg: "lg";
|
|
5116
5228
|
xl: "xl";
|
|
5117
|
-
original: "original";
|
|
5118
5229
|
}>;
|
|
5119
5230
|
format: z.ZodEnum<{
|
|
5120
|
-
original: "original";
|
|
5121
5231
|
jpeg: "jpeg";
|
|
5122
5232
|
webp: "webp";
|
|
5233
|
+
original: "original";
|
|
5123
5234
|
}>;
|
|
5124
5235
|
}, z.core.$strip>>;
|
|
5125
5236
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -5463,5 +5574,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
5463
5574
|
}, z.core.$strip>;
|
|
5464
5575
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
5465
5576
|
|
|
5466
|
-
export { 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, 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 };
|
|
5467
|
-
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 };
|
|
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 };
|
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";
|
|
24
25
|
cash: "cash";
|
|
25
26
|
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";
|
|
101
102
|
cash: "cash";
|
|
102
103
|
card: "card";
|
|
103
|
-
custom: "custom";
|
|
104
104
|
}>;
|
|
105
105
|
}, z.core.$strip>>;
|
|
106
106
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -209,7 +209,12 @@ declare const LinkSchema: z.ZodObject<{
|
|
|
209
209
|
value: z.ZodString;
|
|
210
210
|
}, z.core.$strip>>>;
|
|
211
211
|
icon: z.ZodOptional<z.ZodString>;
|
|
212
|
-
target: z.ZodOptional<z.
|
|
212
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
_blank: "_blank";
|
|
214
|
+
_self: "_self";
|
|
215
|
+
_parent: "_parent";
|
|
216
|
+
_top: "_top";
|
|
217
|
+
}>>;
|
|
213
218
|
}, z.core.$strip>;
|
|
214
219
|
type Link = z.infer<typeof LinkSchema>;
|
|
215
220
|
declare const LinksSchema: z.ZodObject<{
|
|
@@ -232,7 +237,12 @@ declare const LinksSchema: z.ZodObject<{
|
|
|
232
237
|
value: z.ZodString;
|
|
233
238
|
}, z.core.$strip>>>;
|
|
234
239
|
icon: z.ZodOptional<z.ZodString>;
|
|
235
|
-
target: z.ZodOptional<z.
|
|
240
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
_blank: "_blank";
|
|
242
|
+
_self: "_self";
|
|
243
|
+
_parent: "_parent";
|
|
244
|
+
_top: "_top";
|
|
245
|
+
}>>;
|
|
236
246
|
}, z.core.$strip>>;
|
|
237
247
|
footer: z.ZodArray<z.ZodObject<{
|
|
238
248
|
to: z.ZodString;
|
|
@@ -253,7 +263,12 @@ declare const LinksSchema: z.ZodObject<{
|
|
|
253
263
|
value: z.ZodString;
|
|
254
264
|
}, z.core.$strip>>>;
|
|
255
265
|
icon: z.ZodOptional<z.ZodString>;
|
|
256
|
-
target: z.ZodOptional<z.
|
|
266
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
267
|
+
_blank: "_blank";
|
|
268
|
+
_self: "_self";
|
|
269
|
+
_parent: "_parent";
|
|
270
|
+
_top: "_top";
|
|
271
|
+
}>>;
|
|
257
272
|
}, z.core.$strip>>;
|
|
258
273
|
social: z.ZodArray<z.ZodObject<{
|
|
259
274
|
to: z.ZodString;
|
|
@@ -274,7 +289,12 @@ declare const LinksSchema: z.ZodObject<{
|
|
|
274
289
|
value: z.ZodString;
|
|
275
290
|
}, z.core.$strip>>>;
|
|
276
291
|
icon: z.ZodOptional<z.ZodString>;
|
|
277
|
-
target: z.ZodOptional<z.
|
|
292
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
_blank: "_blank";
|
|
294
|
+
_self: "_self";
|
|
295
|
+
_parent: "_parent";
|
|
296
|
+
_top: "_top";
|
|
297
|
+
}>>;
|
|
278
298
|
}, z.core.$strip>>;
|
|
279
299
|
}, z.core.$strip>;
|
|
280
300
|
type Links = z.infer<typeof LinksSchema>;
|
|
@@ -380,9 +400,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
380
400
|
value: z.ZodString;
|
|
381
401
|
}, z.core.$strip>>;
|
|
382
402
|
type: z.ZodEnum<{
|
|
403
|
+
custom: "custom";
|
|
383
404
|
cash: "cash";
|
|
384
405
|
card: "card";
|
|
385
|
-
custom: "custom";
|
|
386
406
|
}>;
|
|
387
407
|
}, z.core.$strip>>;
|
|
388
408
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -456,9 +476,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
456
476
|
value: z.ZodString;
|
|
457
477
|
}, z.core.$strip>>;
|
|
458
478
|
type: z.ZodEnum<{
|
|
479
|
+
custom: "custom";
|
|
459
480
|
cash: "cash";
|
|
460
481
|
card: "card";
|
|
461
|
-
custom: "custom";
|
|
462
482
|
}>;
|
|
463
483
|
}, z.core.$strip>>;
|
|
464
484
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -583,7 +603,12 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
583
603
|
value: z.ZodString;
|
|
584
604
|
}, z.core.$strip>>>;
|
|
585
605
|
icon: z.ZodOptional<z.ZodString>;
|
|
586
|
-
target: z.ZodOptional<z.
|
|
606
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
607
|
+
_blank: "_blank";
|
|
608
|
+
_self: "_self";
|
|
609
|
+
_parent: "_parent";
|
|
610
|
+
_top: "_top";
|
|
611
|
+
}>>;
|
|
587
612
|
}, z.core.$strip>>;
|
|
588
613
|
footer: z.ZodArray<z.ZodObject<{
|
|
589
614
|
to: z.ZodString;
|
|
@@ -604,7 +629,12 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
604
629
|
value: z.ZodString;
|
|
605
630
|
}, z.core.$strip>>>;
|
|
606
631
|
icon: z.ZodOptional<z.ZodString>;
|
|
607
|
-
target: z.ZodOptional<z.
|
|
632
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
633
|
+
_blank: "_blank";
|
|
634
|
+
_self: "_self";
|
|
635
|
+
_parent: "_parent";
|
|
636
|
+
_top: "_top";
|
|
637
|
+
}>>;
|
|
608
638
|
}, z.core.$strip>>;
|
|
609
639
|
social: z.ZodArray<z.ZodObject<{
|
|
610
640
|
to: z.ZodString;
|
|
@@ -625,7 +655,12 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
625
655
|
value: z.ZodString;
|
|
626
656
|
}, z.core.$strip>>>;
|
|
627
657
|
icon: z.ZodOptional<z.ZodString>;
|
|
628
|
-
target: z.ZodOptional<z.
|
|
658
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
659
|
+
_blank: "_blank";
|
|
660
|
+
_self: "_self";
|
|
661
|
+
_parent: "_parent";
|
|
662
|
+
_top: "_top";
|
|
663
|
+
}>>;
|
|
629
664
|
}, z.core.$strip>>;
|
|
630
665
|
}, z.core.$strip>>;
|
|
631
666
|
}, z.core.$strip>;
|
|
@@ -951,6 +986,7 @@ declare const GatewayActionTypeSchema: z.ZodEnum<{
|
|
|
951
986
|
getDeliveryByCourierStatus: "getDeliveryByCourierStatus";
|
|
952
987
|
getSelfPickupStatus: "getSelfPickupStatus";
|
|
953
988
|
getTimeSlots: "getTimeSlots";
|
|
989
|
+
suggestAddresses: "suggestAddresses";
|
|
954
990
|
}>;
|
|
955
991
|
type GatewayActionType = z.infer<typeof GatewayActionTypeSchema>;
|
|
956
992
|
/**
|
|
@@ -971,6 +1007,7 @@ declare const GatewayRequestSchema: z.ZodObject<{
|
|
|
971
1007
|
getDeliveryByCourierStatus: "getDeliveryByCourierStatus";
|
|
972
1008
|
getSelfPickupStatus: "getSelfPickupStatus";
|
|
973
1009
|
getTimeSlots: "getTimeSlots";
|
|
1010
|
+
suggestAddresses: "suggestAddresses";
|
|
974
1011
|
}>;
|
|
975
1012
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
976
1013
|
body: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1325,6 +1362,7 @@ declare const GatewayGetOptionsResponseSchema: z.ZodObject<{
|
|
|
1325
1362
|
textContent: z.ZodOptional<z.ZodString>;
|
|
1326
1363
|
}, z.core.$strip>>>;
|
|
1327
1364
|
headStyles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1365
|
+
addressSuggestEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1328
1366
|
}, z.core.$strip>;
|
|
1329
1367
|
}, z.core.$strip>;
|
|
1330
1368
|
type GatewayGetOptionsResponse = z.infer<typeof GatewayGetOptionsResponseSchema>;
|
|
@@ -1440,9 +1478,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1440
1478
|
value: z.ZodString;
|
|
1441
1479
|
}, z.core.$strip>>;
|
|
1442
1480
|
type: z.ZodEnum<{
|
|
1481
|
+
custom: "custom";
|
|
1443
1482
|
cash: "cash";
|
|
1444
1483
|
card: "card";
|
|
1445
|
-
custom: "custom";
|
|
1446
1484
|
}>;
|
|
1447
1485
|
}, z.core.$strip>>;
|
|
1448
1486
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1516,9 +1554,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1516
1554
|
value: z.ZodString;
|
|
1517
1555
|
}, z.core.$strip>>;
|
|
1518
1556
|
type: z.ZodEnum<{
|
|
1557
|
+
custom: "custom";
|
|
1519
1558
|
cash: "cash";
|
|
1520
1559
|
card: "card";
|
|
1521
|
-
custom: "custom";
|
|
1522
1560
|
}>;
|
|
1523
1561
|
}, z.core.$strip>>;
|
|
1524
1562
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1643,7 +1681,12 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1643
1681
|
value: z.ZodString;
|
|
1644
1682
|
}, z.core.$strip>>>;
|
|
1645
1683
|
icon: z.ZodOptional<z.ZodString>;
|
|
1646
|
-
target: z.ZodOptional<z.
|
|
1684
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
1685
|
+
_blank: "_blank";
|
|
1686
|
+
_self: "_self";
|
|
1687
|
+
_parent: "_parent";
|
|
1688
|
+
_top: "_top";
|
|
1689
|
+
}>>;
|
|
1647
1690
|
}, z.core.$strip>>;
|
|
1648
1691
|
footer: z.ZodArray<z.ZodObject<{
|
|
1649
1692
|
to: z.ZodString;
|
|
@@ -1664,7 +1707,12 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1664
1707
|
value: z.ZodString;
|
|
1665
1708
|
}, z.core.$strip>>>;
|
|
1666
1709
|
icon: z.ZodOptional<z.ZodString>;
|
|
1667
|
-
target: z.ZodOptional<z.
|
|
1710
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
1711
|
+
_blank: "_blank";
|
|
1712
|
+
_self: "_self";
|
|
1713
|
+
_parent: "_parent";
|
|
1714
|
+
_top: "_top";
|
|
1715
|
+
}>>;
|
|
1668
1716
|
}, z.core.$strip>>;
|
|
1669
1717
|
social: z.ZodArray<z.ZodObject<{
|
|
1670
1718
|
to: z.ZodString;
|
|
@@ -1685,7 +1733,12 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1685
1733
|
value: z.ZodString;
|
|
1686
1734
|
}, z.core.$strip>>>;
|
|
1687
1735
|
icon: z.ZodOptional<z.ZodString>;
|
|
1688
|
-
target: z.ZodOptional<z.
|
|
1736
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
1737
|
+
_blank: "_blank";
|
|
1738
|
+
_self: "_self";
|
|
1739
|
+
_parent: "_parent";
|
|
1740
|
+
_top: "_top";
|
|
1741
|
+
}>>;
|
|
1689
1742
|
}, z.core.$strip>>;
|
|
1690
1743
|
}, z.core.$strip>>;
|
|
1691
1744
|
}, z.core.$strip>>;
|
|
@@ -2342,17 +2395,17 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
2342
2395
|
id: z.ZodString;
|
|
2343
2396
|
url: z.ZodString;
|
|
2344
2397
|
size: z.ZodEnum<{
|
|
2398
|
+
original: "original";
|
|
2345
2399
|
xs: "xs";
|
|
2346
2400
|
sm: "sm";
|
|
2347
2401
|
md: "md";
|
|
2348
2402
|
lg: "lg";
|
|
2349
2403
|
xl: "xl";
|
|
2350
|
-
original: "original";
|
|
2351
2404
|
}>;
|
|
2352
2405
|
format: z.ZodEnum<{
|
|
2353
|
-
original: "original";
|
|
2354
2406
|
jpeg: "jpeg";
|
|
2355
2407
|
webp: "webp";
|
|
2408
|
+
original: "original";
|
|
2356
2409
|
}>;
|
|
2357
2410
|
}, z.core.$strip>>;
|
|
2358
2411
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -2608,6 +2661,27 @@ declare const GatewayGetTimeSlotsResponseSchema: z.ZodObject<{
|
|
|
2608
2661
|
}, z.core.$strip>>;
|
|
2609
2662
|
}, z.core.$strip>;
|
|
2610
2663
|
type GatewayGetTimeSlotsResponse = z.infer<typeof GatewayGetTimeSlotsResponseSchema>;
|
|
2664
|
+
declare const GatewaySuggestAddressesRequestSchema: z.ZodObject<{
|
|
2665
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2666
|
+
type: z.ZodLiteral<"suggestAddresses">;
|
|
2667
|
+
body: z.ZodObject<{
|
|
2668
|
+
query: z.ZodString;
|
|
2669
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2670
|
+
}, z.core.$strip>;
|
|
2671
|
+
}, z.core.$strip>;
|
|
2672
|
+
type GatewaySuggestAddressesRequest = z.infer<typeof GatewaySuggestAddressesRequestSchema>;
|
|
2673
|
+
declare const GatewaySuggestAddressesResponseSchema: z.ZodObject<{
|
|
2674
|
+
ok: z.ZodBoolean;
|
|
2675
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2676
|
+
type: z.ZodLiteral<"suggestAddresses">;
|
|
2677
|
+
result: z.ZodArray<z.ZodObject<{
|
|
2678
|
+
value: z.ZodString;
|
|
2679
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
2680
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
2681
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2682
|
+
}, z.core.$strip>>;
|
|
2683
|
+
}, z.core.$strip>;
|
|
2684
|
+
type GatewaySuggestAddressesResponse = z.infer<typeof GatewaySuggestAddressesResponseSchema>;
|
|
2611
2685
|
/**
|
|
2612
2686
|
* Combined Gateway Response
|
|
2613
2687
|
*/
|
|
@@ -2947,6 +3021,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2947
3021
|
textContent: z.ZodOptional<z.ZodString>;
|
|
2948
3022
|
}, z.core.$strip>>>;
|
|
2949
3023
|
headStyles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3024
|
+
addressSuggestEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
2950
3025
|
}, z.core.$strip>;
|
|
2951
3026
|
}, z.core.$strip>, z.ZodObject<{
|
|
2952
3027
|
ok: z.ZodBoolean;
|
|
@@ -3054,9 +3129,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3054
3129
|
value: z.ZodString;
|
|
3055
3130
|
}, z.core.$strip>>;
|
|
3056
3131
|
type: z.ZodEnum<{
|
|
3132
|
+
custom: "custom";
|
|
3057
3133
|
cash: "cash";
|
|
3058
3134
|
card: "card";
|
|
3059
|
-
custom: "custom";
|
|
3060
3135
|
}>;
|
|
3061
3136
|
}, z.core.$strip>>;
|
|
3062
3137
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3130,9 +3205,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3130
3205
|
value: z.ZodString;
|
|
3131
3206
|
}, z.core.$strip>>;
|
|
3132
3207
|
type: z.ZodEnum<{
|
|
3208
|
+
custom: "custom";
|
|
3133
3209
|
cash: "cash";
|
|
3134
3210
|
card: "card";
|
|
3135
|
-
custom: "custom";
|
|
3136
3211
|
}>;
|
|
3137
3212
|
}, z.core.$strip>>;
|
|
3138
3213
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3257,7 +3332,12 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3257
3332
|
value: z.ZodString;
|
|
3258
3333
|
}, z.core.$strip>>>;
|
|
3259
3334
|
icon: z.ZodOptional<z.ZodString>;
|
|
3260
|
-
target: z.ZodOptional<z.
|
|
3335
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
3336
|
+
_blank: "_blank";
|
|
3337
|
+
_self: "_self";
|
|
3338
|
+
_parent: "_parent";
|
|
3339
|
+
_top: "_top";
|
|
3340
|
+
}>>;
|
|
3261
3341
|
}, z.core.$strip>>;
|
|
3262
3342
|
footer: z.ZodArray<z.ZodObject<{
|
|
3263
3343
|
to: z.ZodString;
|
|
@@ -3278,7 +3358,12 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3278
3358
|
value: z.ZodString;
|
|
3279
3359
|
}, z.core.$strip>>>;
|
|
3280
3360
|
icon: z.ZodOptional<z.ZodString>;
|
|
3281
|
-
target: z.ZodOptional<z.
|
|
3361
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
3362
|
+
_blank: "_blank";
|
|
3363
|
+
_self: "_self";
|
|
3364
|
+
_parent: "_parent";
|
|
3365
|
+
_top: "_top";
|
|
3366
|
+
}>>;
|
|
3282
3367
|
}, z.core.$strip>>;
|
|
3283
3368
|
social: z.ZodArray<z.ZodObject<{
|
|
3284
3369
|
to: z.ZodString;
|
|
@@ -3299,7 +3384,12 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3299
3384
|
value: z.ZodString;
|
|
3300
3385
|
}, z.core.$strip>>>;
|
|
3301
3386
|
icon: z.ZodOptional<z.ZodString>;
|
|
3302
|
-
target: z.ZodOptional<z.
|
|
3387
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
3388
|
+
_blank: "_blank";
|
|
3389
|
+
_self: "_self";
|
|
3390
|
+
_parent: "_parent";
|
|
3391
|
+
_top: "_top";
|
|
3392
|
+
}>>;
|
|
3303
3393
|
}, z.core.$strip>>;
|
|
3304
3394
|
}, z.core.$strip>>;
|
|
3305
3395
|
}, z.core.$strip>>;
|
|
@@ -3777,17 +3867,17 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3777
3867
|
id: z.ZodString;
|
|
3778
3868
|
url: z.ZodString;
|
|
3779
3869
|
size: z.ZodEnum<{
|
|
3870
|
+
original: "original";
|
|
3780
3871
|
xs: "xs";
|
|
3781
3872
|
sm: "sm";
|
|
3782
3873
|
md: "md";
|
|
3783
3874
|
lg: "lg";
|
|
3784
3875
|
xl: "xl";
|
|
3785
|
-
original: "original";
|
|
3786
3876
|
}>;
|
|
3787
3877
|
format: z.ZodEnum<{
|
|
3788
|
-
original: "original";
|
|
3789
3878
|
jpeg: "jpeg";
|
|
3790
3879
|
webp: "webp";
|
|
3880
|
+
original: "original";
|
|
3791
3881
|
}>;
|
|
3792
3882
|
}, z.core.$strip>>;
|
|
3793
3883
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -4007,13 +4097,23 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4007
4097
|
start: z.ZodString;
|
|
4008
4098
|
end: z.ZodString;
|
|
4009
4099
|
}, z.core.$strip>>;
|
|
4100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4101
|
+
ok: z.ZodBoolean;
|
|
4102
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4103
|
+
type: z.ZodLiteral<"suggestAddresses">;
|
|
4104
|
+
result: z.ZodArray<z.ZodObject<{
|
|
4105
|
+
value: z.ZodString;
|
|
4106
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
4107
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
4108
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4109
|
+
}, z.core.$strip>>;
|
|
4010
4110
|
}, z.core.$strip>], "type">;
|
|
4011
4111
|
type GatewayResponse = z.infer<typeof GatewayResponseSchema>;
|
|
4012
4112
|
|
|
4013
4113
|
declare const ImageFormatSchema: z.ZodEnum<{
|
|
4014
|
-
original: "original";
|
|
4015
4114
|
jpeg: "jpeg";
|
|
4016
4115
|
webp: "webp";
|
|
4116
|
+
original: "original";
|
|
4017
4117
|
}>;
|
|
4018
4118
|
type ImageFormat = z.infer<typeof ImageFormatSchema>;
|
|
4019
4119
|
/**
|
|
@@ -4025,29 +4125,29 @@ type ImageFormat = z.infer<typeof ImageFormatSchema>;
|
|
|
4025
4125
|
* - xl - 1920px
|
|
4026
4126
|
*/
|
|
4027
4127
|
declare const ImageSizeSchema: z.ZodEnum<{
|
|
4128
|
+
original: "original";
|
|
4028
4129
|
xs: "xs";
|
|
4029
4130
|
sm: "sm";
|
|
4030
4131
|
md: "md";
|
|
4031
4132
|
lg: "lg";
|
|
4032
4133
|
xl: "xl";
|
|
4033
|
-
original: "original";
|
|
4034
4134
|
}>;
|
|
4035
4135
|
type ImageSize = z.infer<typeof ImageSizeSchema>;
|
|
4036
4136
|
declare const ImageSchema: z.ZodObject<{
|
|
4037
4137
|
id: z.ZodString;
|
|
4038
4138
|
url: z.ZodString;
|
|
4039
4139
|
size: z.ZodEnum<{
|
|
4140
|
+
original: "original";
|
|
4040
4141
|
xs: "xs";
|
|
4041
4142
|
sm: "sm";
|
|
4042
4143
|
md: "md";
|
|
4043
4144
|
lg: "lg";
|
|
4044
4145
|
xl: "xl";
|
|
4045
|
-
original: "original";
|
|
4046
4146
|
}>;
|
|
4047
4147
|
format: z.ZodEnum<{
|
|
4048
|
-
original: "original";
|
|
4049
4148
|
jpeg: "jpeg";
|
|
4050
4149
|
webp: "webp";
|
|
4150
|
+
original: "original";
|
|
4051
4151
|
}>;
|
|
4052
4152
|
}, z.core.$strip>;
|
|
4053
4153
|
type Image = z.infer<typeof ImageSchema>;
|
|
@@ -4131,17 +4231,17 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
4131
4231
|
id: z.ZodString;
|
|
4132
4232
|
url: z.ZodString;
|
|
4133
4233
|
size: z.ZodEnum<{
|
|
4234
|
+
original: "original";
|
|
4134
4235
|
xs: "xs";
|
|
4135
4236
|
sm: "sm";
|
|
4136
4237
|
md: "md";
|
|
4137
4238
|
lg: "lg";
|
|
4138
4239
|
xl: "xl";
|
|
4139
|
-
original: "original";
|
|
4140
4240
|
}>;
|
|
4141
4241
|
format: z.ZodEnum<{
|
|
4142
|
-
original: "original";
|
|
4143
4242
|
jpeg: "jpeg";
|
|
4144
4243
|
webp: "webp";
|
|
4244
|
+
original: "original";
|
|
4145
4245
|
}>;
|
|
4146
4246
|
}, z.core.$strip>>;
|
|
4147
4247
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -4322,17 +4422,17 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
4322
4422
|
id: z.ZodString;
|
|
4323
4423
|
url: z.ZodString;
|
|
4324
4424
|
size: z.ZodEnum<{
|
|
4425
|
+
original: "original";
|
|
4325
4426
|
xs: "xs";
|
|
4326
4427
|
sm: "sm";
|
|
4327
4428
|
md: "md";
|
|
4328
4429
|
lg: "lg";
|
|
4329
4430
|
xl: "xl";
|
|
4330
|
-
original: "original";
|
|
4331
4431
|
}>;
|
|
4332
4432
|
format: z.ZodEnum<{
|
|
4333
|
-
original: "original";
|
|
4334
4433
|
jpeg: "jpeg";
|
|
4335
4434
|
webp: "webp";
|
|
4435
|
+
original: "original";
|
|
4336
4436
|
}>;
|
|
4337
4437
|
}, z.core.$strip>>;
|
|
4338
4438
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -4763,6 +4863,7 @@ declare const OptionsSchema: z.ZodObject<{
|
|
|
4763
4863
|
textContent: z.ZodOptional<z.ZodString>;
|
|
4764
4864
|
}, z.core.$strip>>>;
|
|
4765
4865
|
headStyles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4866
|
+
addressSuggestEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
4766
4867
|
}, z.core.$strip>;
|
|
4767
4868
|
type Options = z.infer<typeof OptionsSchema>;
|
|
4768
4869
|
|
|
@@ -4870,11 +4971,21 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
4870
4971
|
}, z.core.$strip>>;
|
|
4871
4972
|
}, z.core.$strip>;
|
|
4872
4973
|
type Order = z.infer<typeof OrderSchema>;
|
|
4974
|
+
/**
|
|
4975
|
+
* Address Suggestion
|
|
4976
|
+
*/
|
|
4977
|
+
declare const AddressSuggestionSchema: z.ZodObject<{
|
|
4978
|
+
value: z.ZodString;
|
|
4979
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
4980
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
4981
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4982
|
+
}, z.core.$strip>;
|
|
4983
|
+
type AddressSuggestion = z.infer<typeof AddressSuggestionSchema>;
|
|
4873
4984
|
|
|
4874
4985
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
4986
|
+
custom: "custom";
|
|
4875
4987
|
cash: "cash";
|
|
4876
4988
|
card: "card";
|
|
4877
|
-
custom: "custom";
|
|
4878
4989
|
}>;
|
|
4879
4990
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
4880
4991
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -4896,9 +5007,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
4896
5007
|
value: z.ZodString;
|
|
4897
5008
|
}, z.core.$strip>>;
|
|
4898
5009
|
type: z.ZodEnum<{
|
|
5010
|
+
custom: "custom";
|
|
4899
5011
|
cash: "cash";
|
|
4900
5012
|
card: "card";
|
|
4901
|
-
custom: "custom";
|
|
4902
5013
|
}>;
|
|
4903
5014
|
}, z.core.$strip>;
|
|
4904
5015
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4952,17 +5063,17 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4952
5063
|
id: z.ZodString;
|
|
4953
5064
|
url: z.ZodString;
|
|
4954
5065
|
size: z.ZodEnum<{
|
|
5066
|
+
original: "original";
|
|
4955
5067
|
xs: "xs";
|
|
4956
5068
|
sm: "sm";
|
|
4957
5069
|
md: "md";
|
|
4958
5070
|
lg: "lg";
|
|
4959
5071
|
xl: "xl";
|
|
4960
|
-
original: "original";
|
|
4961
5072
|
}>;
|
|
4962
5073
|
format: z.ZodEnum<{
|
|
4963
|
-
original: "original";
|
|
4964
5074
|
jpeg: "jpeg";
|
|
4965
5075
|
webp: "webp";
|
|
5076
|
+
original: "original";
|
|
4966
5077
|
}>;
|
|
4967
5078
|
}, z.core.$strip>>;
|
|
4968
5079
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -5109,17 +5220,17 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
5109
5220
|
id: z.ZodString;
|
|
5110
5221
|
url: z.ZodString;
|
|
5111
5222
|
size: z.ZodEnum<{
|
|
5223
|
+
original: "original";
|
|
5112
5224
|
xs: "xs";
|
|
5113
5225
|
sm: "sm";
|
|
5114
5226
|
md: "md";
|
|
5115
5227
|
lg: "lg";
|
|
5116
5228
|
xl: "xl";
|
|
5117
|
-
original: "original";
|
|
5118
5229
|
}>;
|
|
5119
5230
|
format: z.ZodEnum<{
|
|
5120
|
-
original: "original";
|
|
5121
5231
|
jpeg: "jpeg";
|
|
5122
5232
|
webp: "webp";
|
|
5233
|
+
original: "original";
|
|
5123
5234
|
}>;
|
|
5124
5235
|
}, z.core.$strip>>;
|
|
5125
5236
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -5463,5 +5574,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
5463
5574
|
}, z.core.$strip>;
|
|
5464
5575
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
5465
5576
|
|
|
5466
|
-
export { 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, 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 };
|
|
5467
|
-
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 };
|
|
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -363,10 +363,10 @@ const SelfPickupSchema = z.object({
|
|
|
363
363
|
warehouses: WarehouseSchema.array().optional()
|
|
364
364
|
});
|
|
365
365
|
const LinkSchema = z.object({
|
|
366
|
-
to: z.string(),
|
|
366
|
+
to: z.string().min(1),
|
|
367
367
|
label: LocaleValueSchema.array().optional(),
|
|
368
368
|
icon: z.string().optional(),
|
|
369
|
-
target: z.
|
|
369
|
+
target: z.enum(["_blank", "_self", "_parent", "_top"]).optional()
|
|
370
370
|
});
|
|
371
371
|
const LinksSchema = z.object({
|
|
372
372
|
aside: LinkSchema.array(),
|
|
@@ -492,7 +492,8 @@ const OptionsSchema = z.object({
|
|
|
492
492
|
currencyCode: CurrencyCodeSchema,
|
|
493
493
|
headLinks: HeadLinkSchema.array().optional(),
|
|
494
494
|
headScripts: HeadScriptSchema.array().optional(),
|
|
495
|
-
headStyles: HeadStyleSchema.array().optional()
|
|
495
|
+
headStyles: HeadStyleSchema.array().optional(),
|
|
496
|
+
addressSuggestEnabled: z.boolean().optional()
|
|
496
497
|
});
|
|
497
498
|
|
|
498
499
|
const DeliveryMethodSchema = z.enum([
|
|
@@ -558,6 +559,12 @@ const OrderSchema = z.object({
|
|
|
558
559
|
/** Items included in the order */
|
|
559
560
|
items: OrderItemSchema.array()
|
|
560
561
|
});
|
|
562
|
+
const AddressSuggestionSchema = z.object({
|
|
563
|
+
value: z.string(),
|
|
564
|
+
lat: z.number().nullable(),
|
|
565
|
+
lon: z.number().nullable(),
|
|
566
|
+
data: z.record(z.string(), z.unknown()).optional()
|
|
567
|
+
});
|
|
561
568
|
|
|
562
569
|
const GatewayActionTypeSchema = z.enum([
|
|
563
570
|
"getOptions",
|
|
@@ -572,7 +579,8 @@ const GatewayActionTypeSchema = z.enum([
|
|
|
572
579
|
"getMenu",
|
|
573
580
|
"getDeliveryByCourierStatus",
|
|
574
581
|
"getSelfPickupStatus",
|
|
575
|
-
"getTimeSlots"
|
|
582
|
+
"getTimeSlots",
|
|
583
|
+
"suggestAddresses"
|
|
576
584
|
]);
|
|
577
585
|
const GatewayRequestSchema = z.object({
|
|
578
586
|
type: GatewayActionTypeSchema,
|
|
@@ -695,6 +703,17 @@ const GatewayGetTimeSlotsResponseSchema = BaseResponseSchema.extend({
|
|
|
695
703
|
type: z.literal("getTimeSlots"),
|
|
696
704
|
result: TimePeriodSchema.array()
|
|
697
705
|
});
|
|
706
|
+
const GatewaySuggestAddressesRequestSchema = GatewayRequestSchema.extend({
|
|
707
|
+
type: z.literal("suggestAddresses"),
|
|
708
|
+
body: z.object({
|
|
709
|
+
query: z.string().min(1).max(200),
|
|
710
|
+
limit: z.number().int().min(1).max(50).optional()
|
|
711
|
+
})
|
|
712
|
+
});
|
|
713
|
+
const GatewaySuggestAddressesResponseSchema = BaseResponseSchema.extend({
|
|
714
|
+
type: z.literal("suggestAddresses"),
|
|
715
|
+
result: z.array(AddressSuggestionSchema)
|
|
716
|
+
});
|
|
698
717
|
const GatewayResponseSchema = z.discriminatedUnion("type", [
|
|
699
718
|
GatewayGetOptionsResponseSchema,
|
|
700
719
|
GatewayGetChannelsResponseSchema,
|
|
@@ -708,7 +727,8 @@ const GatewayResponseSchema = z.discriminatedUnion("type", [
|
|
|
708
727
|
GatewayGetMenuResponseSchema,
|
|
709
728
|
GatewayGetDeliveryByCourierStatusResponseSchema,
|
|
710
729
|
GatewayGetSelfPickupStatusResponseSchema,
|
|
711
|
-
GatewayGetTimeSlotsResponseSchema
|
|
730
|
+
GatewayGetTimeSlotsResponseSchema,
|
|
731
|
+
GatewaySuggestAddressesResponseSchema
|
|
712
732
|
]);
|
|
713
733
|
|
|
714
|
-
export { 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, 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 };
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextorders/food-schema",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"build": "unbuild",
|
|
37
37
|
"clean": "rm -rf dist",
|
|
38
38
|
"clean:modules": "rm -rf node_modules",
|
|
39
|
-
"typecheck": "tsc --noEmit --erasableSyntaxOnly"
|
|
40
|
-
"postinstall": "pnpm build"
|
|
39
|
+
"typecheck": "tsc --noEmit --erasableSyntaxOnly"
|
|
41
40
|
}
|
|
42
41
|
}
|