@nextorders/food-schema 0.2.7 → 0.3.0
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 +54 -46
- package/dist/index.d.ts +54 -46
- package/dist/index.mjs +20 -20
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -21,9 +21,9 @@ declare const DeliveryByCourierSchema: z.ZodObject<{
|
|
|
21
21
|
value: z.ZodString;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
23
|
type: z.ZodEnum<{
|
|
24
|
-
custom: "custom";
|
|
25
24
|
cash: "cash";
|
|
26
25
|
card: "card";
|
|
26
|
+
custom: "custom";
|
|
27
27
|
}>;
|
|
28
28
|
}, z.core.$strip>>;
|
|
29
29
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -98,9 +98,9 @@ declare const SelfPickupSchema: z.ZodObject<{
|
|
|
98
98
|
value: z.ZodString;
|
|
99
99
|
}, z.core.$strip>>;
|
|
100
100
|
type: z.ZodEnum<{
|
|
101
|
-
custom: "custom";
|
|
102
101
|
cash: "cash";
|
|
103
102
|
card: "card";
|
|
103
|
+
custom: "custom";
|
|
104
104
|
}>;
|
|
105
105
|
}, z.core.$strip>>;
|
|
106
106
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -380,9 +380,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
380
380
|
value: z.ZodString;
|
|
381
381
|
}, z.core.$strip>>;
|
|
382
382
|
type: z.ZodEnum<{
|
|
383
|
-
custom: "custom";
|
|
384
383
|
cash: "cash";
|
|
385
384
|
card: "card";
|
|
385
|
+
custom: "custom";
|
|
386
386
|
}>;
|
|
387
387
|
}, z.core.$strip>>;
|
|
388
388
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -456,9 +456,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
456
456
|
value: z.ZodString;
|
|
457
457
|
}, z.core.$strip>>;
|
|
458
458
|
type: z.ZodEnum<{
|
|
459
|
-
custom: "custom";
|
|
460
459
|
cash: "cash";
|
|
461
460
|
card: "card";
|
|
461
|
+
custom: "custom";
|
|
462
462
|
}>;
|
|
463
463
|
}, z.core.$strip>>;
|
|
464
464
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -981,7 +981,7 @@ type GatewayRequest = z.infer<typeof GatewayRequestSchema>;
|
|
|
981
981
|
*/
|
|
982
982
|
declare const BaseResponseSchema: z.ZodObject<{
|
|
983
983
|
ok: z.ZodBoolean;
|
|
984
|
-
error: z.ZodOptional<z.
|
|
984
|
+
error: z.ZodOptional<z.ZodString>;
|
|
985
985
|
}, z.core.$strip>;
|
|
986
986
|
declare const GatewayGetOptionsRequestSchema: z.ZodObject<{
|
|
987
987
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -991,7 +991,7 @@ declare const GatewayGetOptionsRequestSchema: z.ZodObject<{
|
|
|
991
991
|
type GatewayGetOptionsRequest = z.infer<typeof GatewayGetOptionsRequestSchema>;
|
|
992
992
|
declare const GatewayGetOptionsResponseSchema: z.ZodObject<{
|
|
993
993
|
ok: z.ZodBoolean;
|
|
994
|
-
error: z.ZodOptional<z.
|
|
994
|
+
error: z.ZodOptional<z.ZodString>;
|
|
995
995
|
type: z.ZodLiteral<"getOptions">;
|
|
996
996
|
result: z.ZodObject<{
|
|
997
997
|
selectorTitle: z.ZodArray<z.ZodObject<{
|
|
@@ -1026,7 +1026,7 @@ declare const GatewayGetOptionsResponseSchema: z.ZodObject<{
|
|
|
1026
1026
|
}>;
|
|
1027
1027
|
value: z.ZodString;
|
|
1028
1028
|
}, z.core.$strip>>>;
|
|
1029
|
-
logoUrl: z.
|
|
1029
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
1030
1030
|
availableLocales: z.ZodArray<z.ZodEnum<{
|
|
1031
1031
|
de: "de";
|
|
1032
1032
|
el: "el";
|
|
@@ -1336,7 +1336,7 @@ declare const GatewayGetChannelsRequestSchema: z.ZodObject<{
|
|
|
1336
1336
|
type GatewayGetChannelsRequest = z.infer<typeof GatewayGetChannelsRequestSchema>;
|
|
1337
1337
|
declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
1338
1338
|
ok: z.ZodBoolean;
|
|
1339
|
-
error: z.ZodOptional<z.
|
|
1339
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1340
1340
|
type: z.ZodLiteral<"getChannels">;
|
|
1341
1341
|
result: z.ZodArray<z.ZodObject<{
|
|
1342
1342
|
id: z.ZodString;
|
|
@@ -1440,9 +1440,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1440
1440
|
value: z.ZodString;
|
|
1441
1441
|
}, z.core.$strip>>;
|
|
1442
1442
|
type: z.ZodEnum<{
|
|
1443
|
-
custom: "custom";
|
|
1444
1443
|
cash: "cash";
|
|
1445
1444
|
card: "card";
|
|
1445
|
+
custom: "custom";
|
|
1446
1446
|
}>;
|
|
1447
1447
|
}, z.core.$strip>>;
|
|
1448
1448
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1516,9 +1516,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1516
1516
|
value: z.ZodString;
|
|
1517
1517
|
}, z.core.$strip>>;
|
|
1518
1518
|
type: z.ZodEnum<{
|
|
1519
|
-
custom: "custom";
|
|
1520
1519
|
cash: "cash";
|
|
1521
1520
|
card: "card";
|
|
1521
|
+
custom: "custom";
|
|
1522
1522
|
}>;
|
|
1523
1523
|
}, z.core.$strip>>;
|
|
1524
1524
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1695,13 +1695,13 @@ declare const GatewayGetOrderRequestSchema: z.ZodObject<{
|
|
|
1695
1695
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1696
1696
|
type: z.ZodLiteral<"getOrder">;
|
|
1697
1697
|
body: z.ZodObject<{
|
|
1698
|
-
id: z.
|
|
1698
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1699
1699
|
}, z.core.$strip>;
|
|
1700
1700
|
}, z.core.$strip>;
|
|
1701
1701
|
type GatewayGetOrderRequest = z.infer<typeof GatewayGetOrderRequestSchema>;
|
|
1702
1702
|
declare const GatewayGetOrderResponseSchema: z.ZodObject<{
|
|
1703
1703
|
ok: z.ZodBoolean;
|
|
1704
|
-
error: z.ZodOptional<z.
|
|
1704
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1705
1705
|
type: z.ZodLiteral<"getOrder">;
|
|
1706
1706
|
result: z.ZodNullable<z.ZodObject<{
|
|
1707
1707
|
id: z.ZodString;
|
|
@@ -1762,7 +1762,7 @@ declare const GatewayCreateOrderRequestSchema: z.ZodObject<{
|
|
|
1762
1762
|
type GatewayCreateOrderRequest = z.infer<typeof GatewayCreateOrderRequestSchema>;
|
|
1763
1763
|
declare const GatewayCreateOrderResponseSchema: z.ZodObject<{
|
|
1764
1764
|
ok: z.ZodBoolean;
|
|
1765
|
-
error: z.ZodOptional<z.
|
|
1765
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1766
1766
|
type: z.ZodLiteral<"createOrder">;
|
|
1767
1767
|
result: z.ZodObject<{
|
|
1768
1768
|
id: z.ZodString;
|
|
@@ -1871,7 +1871,7 @@ declare const GatewayUpdateOrderRequestSchema: z.ZodObject<{
|
|
|
1871
1871
|
type GatewayUpdateOrderRequest = z.infer<typeof GatewayUpdateOrderRequestSchema>;
|
|
1872
1872
|
declare const GatewayUpdateOrderResponseSchema: z.ZodObject<{
|
|
1873
1873
|
ok: z.ZodBoolean;
|
|
1874
|
-
error: z.ZodOptional<z.
|
|
1874
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1875
1875
|
type: z.ZodLiteral<"updateOrder">;
|
|
1876
1876
|
result: z.ZodObject<{
|
|
1877
1877
|
id: z.ZodString;
|
|
@@ -1980,7 +1980,7 @@ declare const GatewayCompleteOrderRequestSchema: z.ZodObject<{
|
|
|
1980
1980
|
type GatewayCompleteOrderRequest = z.infer<typeof GatewayCompleteOrderRequestSchema>;
|
|
1981
1981
|
declare const GatewayCompleteOrderResponseSchema: z.ZodObject<{
|
|
1982
1982
|
ok: z.ZodBoolean;
|
|
1983
|
-
error: z.ZodOptional<z.
|
|
1983
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1984
1984
|
type: z.ZodLiteral<"completeOrder">;
|
|
1985
1985
|
result: z.ZodObject<{
|
|
1986
1986
|
id: z.ZodString;
|
|
@@ -2044,7 +2044,7 @@ declare const GatewayAddOrderItemRequestSchema: z.ZodObject<{
|
|
|
2044
2044
|
type GatewayAddOrderItemRequest = z.infer<typeof GatewayAddOrderItemRequestSchema>;
|
|
2045
2045
|
declare const GatewayAddOrderItemResponseSchema: z.ZodObject<{
|
|
2046
2046
|
ok: z.ZodBoolean;
|
|
2047
|
-
error: z.ZodOptional<z.
|
|
2047
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2048
2048
|
type: z.ZodLiteral<"addOrderItem">;
|
|
2049
2049
|
result: z.ZodObject<{
|
|
2050
2050
|
id: z.ZodString;
|
|
@@ -2112,7 +2112,7 @@ declare const GatewayIncrementOrderItemQuantityRequestSchema: z.ZodObject<{
|
|
|
2112
2112
|
type GatewayIncrementOrderItemQuantityRequest = z.infer<typeof GatewayIncrementOrderItemQuantityRequestSchema>;
|
|
2113
2113
|
declare const GatewayIncrementOrderItemQuantityResponseSchema: z.ZodObject<{
|
|
2114
2114
|
ok: z.ZodBoolean;
|
|
2115
|
-
error: z.ZodOptional<z.
|
|
2115
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2116
2116
|
type: z.ZodLiteral<"incrementOrderItemQuantity">;
|
|
2117
2117
|
result: z.ZodObject<{
|
|
2118
2118
|
id: z.ZodString;
|
|
@@ -2180,7 +2180,7 @@ declare const GatewayDecrementOrderItemQuantityRequestSchema: z.ZodObject<{
|
|
|
2180
2180
|
type GatewayDecrementOrderItemQuantityRequest = z.infer<typeof GatewayDecrementOrderItemQuantityRequestSchema>;
|
|
2181
2181
|
declare const GatewayDecrementOrderItemQuantityResponseSchema: z.ZodObject<{
|
|
2182
2182
|
ok: z.ZodBoolean;
|
|
2183
|
-
error: z.ZodOptional<z.
|
|
2183
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2184
2184
|
type: z.ZodLiteral<"decrementOrderItemQuantity">;
|
|
2185
2185
|
result: z.ZodObject<{
|
|
2186
2186
|
id: z.ZodString;
|
|
@@ -2241,7 +2241,7 @@ declare const GatewayGetMenuRequestSchema: z.ZodObject<{
|
|
|
2241
2241
|
type GatewayGetMenuRequest = z.infer<typeof GatewayGetMenuRequestSchema>;
|
|
2242
2242
|
declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
2243
2243
|
ok: z.ZodBoolean;
|
|
2244
|
-
error: z.ZodOptional<z.
|
|
2244
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2245
2245
|
type: z.ZodLiteral<"getMenu">;
|
|
2246
2246
|
result: z.ZodObject<{
|
|
2247
2247
|
id: z.ZodString;
|
|
@@ -2282,7 +2282,7 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
2282
2282
|
}>;
|
|
2283
2283
|
value: z.ZodString;
|
|
2284
2284
|
}, z.core.$strip>>;
|
|
2285
|
-
icon: z.
|
|
2285
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2286
2286
|
products: z.ZodArray<z.ZodObject<{
|
|
2287
2287
|
id: z.ZodString;
|
|
2288
2288
|
slug: z.ZodString;
|
|
@@ -2360,6 +2360,7 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
2360
2360
|
url: z.ZodString;
|
|
2361
2361
|
type: z.ZodEnum<{
|
|
2362
2362
|
"video/mp4": "video/mp4";
|
|
2363
|
+
"video/webm": "video/webm";
|
|
2363
2364
|
}>;
|
|
2364
2365
|
}, z.core.$strip>>;
|
|
2365
2366
|
weightUnit: z.ZodEnum<{
|
|
@@ -2445,7 +2446,7 @@ declare const GatewayGetDeliveryByCourierStatusRequestSchema: z.ZodObject<{
|
|
|
2445
2446
|
type GatewayGetDeliveryByCourierStatusRequest = z.infer<typeof GatewayGetDeliveryByCourierStatusRequestSchema>;
|
|
2446
2447
|
declare const GatewayGetDeliveryByCourierStatusResponseSchema: z.ZodObject<{
|
|
2447
2448
|
ok: z.ZodBoolean;
|
|
2448
|
-
error: z.ZodOptional<z.
|
|
2449
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2449
2450
|
type: z.ZodLiteral<"getDeliveryByCourierStatus">;
|
|
2450
2451
|
result: z.ZodObject<{
|
|
2451
2452
|
isClosed: z.ZodBoolean;
|
|
@@ -2520,7 +2521,7 @@ declare const GatewayGetSelfPickupStatusRequestSchema: z.ZodObject<{
|
|
|
2520
2521
|
type GatewayGetSelfPickupStatusRequest = z.infer<typeof GatewayGetSelfPickupStatusRequestSchema>;
|
|
2521
2522
|
declare const GatewayGetSelfPickupStatusResponseSchema: z.ZodObject<{
|
|
2522
2523
|
ok: z.ZodBoolean;
|
|
2523
|
-
error: z.ZodOptional<z.
|
|
2524
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2524
2525
|
type: z.ZodLiteral<"getSelfPickupStatus">;
|
|
2525
2526
|
result: z.ZodObject<{
|
|
2526
2527
|
isClosed: z.ZodBoolean;
|
|
@@ -2599,7 +2600,7 @@ declare const GatewayGetTimeSlotsRequestSchema: z.ZodObject<{
|
|
|
2599
2600
|
type GatewayGetTimeSlotsRequest = z.infer<typeof GatewayGetTimeSlotsRequestSchema>;
|
|
2600
2601
|
declare const GatewayGetTimeSlotsResponseSchema: z.ZodObject<{
|
|
2601
2602
|
ok: z.ZodBoolean;
|
|
2602
|
-
error: z.ZodOptional<z.
|
|
2603
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2603
2604
|
type: z.ZodLiteral<"getTimeSlots">;
|
|
2604
2605
|
result: z.ZodArray<z.ZodObject<{
|
|
2605
2606
|
start: z.ZodString;
|
|
@@ -2612,7 +2613,7 @@ type GatewayGetTimeSlotsResponse = z.infer<typeof GatewayGetTimeSlotsResponseSch
|
|
|
2612
2613
|
*/
|
|
2613
2614
|
declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2614
2615
|
ok: z.ZodBoolean;
|
|
2615
|
-
error: z.ZodOptional<z.
|
|
2616
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2616
2617
|
type: z.ZodLiteral<"getOptions">;
|
|
2617
2618
|
result: z.ZodObject<{
|
|
2618
2619
|
selectorTitle: z.ZodArray<z.ZodObject<{
|
|
@@ -2647,7 +2648,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2647
2648
|
}>;
|
|
2648
2649
|
value: z.ZodString;
|
|
2649
2650
|
}, z.core.$strip>>>;
|
|
2650
|
-
logoUrl: z.
|
|
2651
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
2651
2652
|
availableLocales: z.ZodArray<z.ZodEnum<{
|
|
2652
2653
|
de: "de";
|
|
2653
2654
|
el: "el";
|
|
@@ -2949,7 +2950,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2949
2950
|
}, z.core.$strip>;
|
|
2950
2951
|
}, z.core.$strip>, z.ZodObject<{
|
|
2951
2952
|
ok: z.ZodBoolean;
|
|
2952
|
-
error: z.ZodOptional<z.
|
|
2953
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2953
2954
|
type: z.ZodLiteral<"getChannels">;
|
|
2954
2955
|
result: z.ZodArray<z.ZodObject<{
|
|
2955
2956
|
id: z.ZodString;
|
|
@@ -3053,9 +3054,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3053
3054
|
value: z.ZodString;
|
|
3054
3055
|
}, z.core.$strip>>;
|
|
3055
3056
|
type: z.ZodEnum<{
|
|
3056
|
-
custom: "custom";
|
|
3057
3057
|
cash: "cash";
|
|
3058
3058
|
card: "card";
|
|
3059
|
+
custom: "custom";
|
|
3059
3060
|
}>;
|
|
3060
3061
|
}, z.core.$strip>>;
|
|
3061
3062
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3129,9 +3130,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3129
3130
|
value: z.ZodString;
|
|
3130
3131
|
}, z.core.$strip>>;
|
|
3131
3132
|
type: z.ZodEnum<{
|
|
3132
|
-
custom: "custom";
|
|
3133
3133
|
cash: "cash";
|
|
3134
3134
|
card: "card";
|
|
3135
|
+
custom: "custom";
|
|
3135
3136
|
}>;
|
|
3136
3137
|
}, z.core.$strip>>;
|
|
3137
3138
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3304,7 +3305,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3304
3305
|
}, z.core.$strip>>;
|
|
3305
3306
|
}, z.core.$strip>, z.ZodObject<{
|
|
3306
3307
|
ok: z.ZodBoolean;
|
|
3307
|
-
error: z.ZodOptional<z.
|
|
3308
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3308
3309
|
type: z.ZodLiteral<"getOrder">;
|
|
3309
3310
|
result: z.ZodNullable<z.ZodObject<{
|
|
3310
3311
|
id: z.ZodString;
|
|
@@ -3357,7 +3358,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3357
3358
|
}, z.core.$strip>>;
|
|
3358
3359
|
}, z.core.$strip>, z.ZodObject<{
|
|
3359
3360
|
ok: z.ZodBoolean;
|
|
3360
|
-
error: z.ZodOptional<z.
|
|
3361
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3361
3362
|
type: z.ZodLiteral<"createOrder">;
|
|
3362
3363
|
result: z.ZodObject<{
|
|
3363
3364
|
id: z.ZodString;
|
|
@@ -3410,7 +3411,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3410
3411
|
}, z.core.$strip>;
|
|
3411
3412
|
}, z.core.$strip>, z.ZodObject<{
|
|
3412
3413
|
ok: z.ZodBoolean;
|
|
3413
|
-
error: z.ZodOptional<z.
|
|
3414
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3414
3415
|
type: z.ZodLiteral<"updateOrder">;
|
|
3415
3416
|
result: z.ZodObject<{
|
|
3416
3417
|
id: z.ZodString;
|
|
@@ -3463,7 +3464,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3463
3464
|
}, z.core.$strip>;
|
|
3464
3465
|
}, z.core.$strip>, z.ZodObject<{
|
|
3465
3466
|
ok: z.ZodBoolean;
|
|
3466
|
-
error: z.ZodOptional<z.
|
|
3467
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3467
3468
|
type: z.ZodLiteral<"completeOrder">;
|
|
3468
3469
|
result: z.ZodObject<{
|
|
3469
3470
|
id: z.ZodString;
|
|
@@ -3516,7 +3517,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3516
3517
|
}, z.core.$strip>;
|
|
3517
3518
|
}, z.core.$strip>, z.ZodObject<{
|
|
3518
3519
|
ok: z.ZodBoolean;
|
|
3519
|
-
error: z.ZodOptional<z.
|
|
3520
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3520
3521
|
type: z.ZodLiteral<"addOrderItem">;
|
|
3521
3522
|
result: z.ZodObject<{
|
|
3522
3523
|
id: z.ZodString;
|
|
@@ -3569,7 +3570,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3569
3570
|
}, z.core.$strip>;
|
|
3570
3571
|
}, z.core.$strip>, z.ZodObject<{
|
|
3571
3572
|
ok: z.ZodBoolean;
|
|
3572
|
-
error: z.ZodOptional<z.
|
|
3573
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3573
3574
|
type: z.ZodLiteral<"incrementOrderItemQuantity">;
|
|
3574
3575
|
result: z.ZodObject<{
|
|
3575
3576
|
id: z.ZodString;
|
|
@@ -3622,7 +3623,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3622
3623
|
}, z.core.$strip>;
|
|
3623
3624
|
}, z.core.$strip>, z.ZodObject<{
|
|
3624
3625
|
ok: z.ZodBoolean;
|
|
3625
|
-
error: z.ZodOptional<z.
|
|
3626
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3626
3627
|
type: z.ZodLiteral<"decrementOrderItemQuantity">;
|
|
3627
3628
|
result: z.ZodObject<{
|
|
3628
3629
|
id: z.ZodString;
|
|
@@ -3675,7 +3676,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3675
3676
|
}, z.core.$strip>;
|
|
3676
3677
|
}, z.core.$strip>, z.ZodObject<{
|
|
3677
3678
|
ok: z.ZodBoolean;
|
|
3678
|
-
error: z.ZodOptional<z.
|
|
3679
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3679
3680
|
type: z.ZodLiteral<"getMenu">;
|
|
3680
3681
|
result: z.ZodObject<{
|
|
3681
3682
|
id: z.ZodString;
|
|
@@ -3716,7 +3717,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3716
3717
|
}>;
|
|
3717
3718
|
value: z.ZodString;
|
|
3718
3719
|
}, z.core.$strip>>;
|
|
3719
|
-
icon: z.
|
|
3720
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
3720
3721
|
products: z.ZodArray<z.ZodObject<{
|
|
3721
3722
|
id: z.ZodString;
|
|
3722
3723
|
slug: z.ZodString;
|
|
@@ -3794,6 +3795,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3794
3795
|
url: z.ZodString;
|
|
3795
3796
|
type: z.ZodEnum<{
|
|
3796
3797
|
"video/mp4": "video/mp4";
|
|
3798
|
+
"video/webm": "video/webm";
|
|
3797
3799
|
}>;
|
|
3798
3800
|
}, z.core.$strip>>;
|
|
3799
3801
|
weightUnit: z.ZodEnum<{
|
|
@@ -3869,7 +3871,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3869
3871
|
}, z.core.$strip>;
|
|
3870
3872
|
}, z.core.$strip>, z.ZodObject<{
|
|
3871
3873
|
ok: z.ZodBoolean;
|
|
3872
|
-
error: z.ZodOptional<z.
|
|
3874
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3873
3875
|
type: z.ZodLiteral<"getDeliveryByCourierStatus">;
|
|
3874
3876
|
result: z.ZodObject<{
|
|
3875
3877
|
isClosed: z.ZodBoolean;
|
|
@@ -3934,7 +3936,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3934
3936
|
}, z.core.$strip>;
|
|
3935
3937
|
}, z.core.$strip>, z.ZodObject<{
|
|
3936
3938
|
ok: z.ZodBoolean;
|
|
3937
|
-
error: z.ZodOptional<z.
|
|
3939
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3938
3940
|
type: z.ZodLiteral<"getSelfPickupStatus">;
|
|
3939
3941
|
result: z.ZodObject<{
|
|
3940
3942
|
isClosed: z.ZodBoolean;
|
|
@@ -3999,7 +4001,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3999
4001
|
}, z.core.$strip>;
|
|
4000
4002
|
}, z.core.$strip>, z.ZodObject<{
|
|
4001
4003
|
ok: z.ZodBoolean;
|
|
4002
|
-
error: z.ZodOptional<z.
|
|
4004
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4003
4005
|
type: z.ZodLiteral<"getTimeSlots">;
|
|
4004
4006
|
result: z.ZodArray<z.ZodObject<{
|
|
4005
4007
|
start: z.ZodString;
|
|
@@ -4069,7 +4071,7 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
4069
4071
|
}>;
|
|
4070
4072
|
value: z.ZodString;
|
|
4071
4073
|
}, z.core.$strip>>;
|
|
4072
|
-
icon: z.
|
|
4074
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
4073
4075
|
products: z.ZodArray<z.ZodObject<{
|
|
4074
4076
|
id: z.ZodString;
|
|
4075
4077
|
slug: z.ZodString;
|
|
@@ -4147,6 +4149,7 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
4147
4149
|
url: z.ZodString;
|
|
4148
4150
|
type: z.ZodEnum<{
|
|
4149
4151
|
"video/mp4": "video/mp4";
|
|
4152
|
+
"video/webm": "video/webm";
|
|
4150
4153
|
}>;
|
|
4151
4154
|
}, z.core.$strip>>;
|
|
4152
4155
|
weightUnit: z.ZodEnum<{
|
|
@@ -4259,7 +4262,7 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
4259
4262
|
}>;
|
|
4260
4263
|
value: z.ZodString;
|
|
4261
4264
|
}, z.core.$strip>>;
|
|
4262
|
-
icon: z.
|
|
4265
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
4263
4266
|
products: z.ZodArray<z.ZodObject<{
|
|
4264
4267
|
id: z.ZodString;
|
|
4265
4268
|
slug: z.ZodString;
|
|
@@ -4337,6 +4340,7 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
4337
4340
|
url: z.ZodString;
|
|
4338
4341
|
type: z.ZodEnum<{
|
|
4339
4342
|
"video/mp4": "video/mp4";
|
|
4343
|
+
"video/webm": "video/webm";
|
|
4340
4344
|
}>;
|
|
4341
4345
|
}, z.core.$strip>>;
|
|
4342
4346
|
weightUnit: z.ZodEnum<{
|
|
@@ -4460,7 +4464,7 @@ declare const OptionsSchema: z.ZodObject<{
|
|
|
4460
4464
|
}>;
|
|
4461
4465
|
value: z.ZodString;
|
|
4462
4466
|
}, z.core.$strip>>>;
|
|
4463
|
-
logoUrl: z.
|
|
4467
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
4464
4468
|
availableLocales: z.ZodArray<z.ZodEnum<{
|
|
4465
4469
|
de: "de";
|
|
4466
4470
|
el: "el";
|
|
@@ -4868,9 +4872,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
4868
4872
|
type Order = z.infer<typeof OrderSchema>;
|
|
4869
4873
|
|
|
4870
4874
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
4871
|
-
custom: "custom";
|
|
4872
4875
|
cash: "cash";
|
|
4873
4876
|
card: "card";
|
|
4877
|
+
custom: "custom";
|
|
4874
4878
|
}>;
|
|
4875
4879
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
4876
4880
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -4892,9 +4896,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
4892
4896
|
value: z.ZodString;
|
|
4893
4897
|
}, z.core.$strip>>;
|
|
4894
4898
|
type: z.ZodEnum<{
|
|
4895
|
-
custom: "custom";
|
|
4896
4899
|
cash: "cash";
|
|
4897
4900
|
card: "card";
|
|
4901
|
+
custom: "custom";
|
|
4898
4902
|
}>;
|
|
4899
4903
|
}, z.core.$strip>;
|
|
4900
4904
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4966,6 +4970,7 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4966
4970
|
url: z.ZodString;
|
|
4967
4971
|
type: z.ZodEnum<{
|
|
4968
4972
|
"video/mp4": "video/mp4";
|
|
4973
|
+
"video/webm": "video/webm";
|
|
4969
4974
|
}>;
|
|
4970
4975
|
}, z.core.$strip>>;
|
|
4971
4976
|
weightUnit: z.ZodEnum<{
|
|
@@ -5122,6 +5127,7 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
5122
5127
|
url: z.ZodString;
|
|
5123
5128
|
type: z.ZodEnum<{
|
|
5124
5129
|
"video/mp4": "video/mp4";
|
|
5130
|
+
"video/webm": "video/webm";
|
|
5125
5131
|
}>;
|
|
5126
5132
|
}, z.core.$strip>>;
|
|
5127
5133
|
weightUnit: z.ZodEnum<{
|
|
@@ -5386,6 +5392,7 @@ type OpeningStatus = z.infer<typeof OpeningStatusSchema>;
|
|
|
5386
5392
|
|
|
5387
5393
|
declare const VideoTypeSchema: z.ZodEnum<{
|
|
5388
5394
|
"video/mp4": "video/mp4";
|
|
5395
|
+
"video/webm": "video/webm";
|
|
5389
5396
|
}>;
|
|
5390
5397
|
type VideoType = z.infer<typeof VideoTypeSchema>;
|
|
5391
5398
|
declare const VideoSchema: z.ZodObject<{
|
|
@@ -5393,6 +5400,7 @@ declare const VideoSchema: z.ZodObject<{
|
|
|
5393
5400
|
url: z.ZodString;
|
|
5394
5401
|
type: z.ZodEnum<{
|
|
5395
5402
|
"video/mp4": "video/mp4";
|
|
5403
|
+
"video/webm": "video/webm";
|
|
5396
5404
|
}>;
|
|
5397
5405
|
}, z.core.$strip>;
|
|
5398
5406
|
type Video = z.infer<typeof VideoSchema>;
|
|
@@ -5455,5 +5463,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
5455
5463
|
}, z.core.$strip>;
|
|
5456
5464
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
5457
5465
|
|
|
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 };
|
|
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 };
|
|
5459
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -21,9 +21,9 @@ declare const DeliveryByCourierSchema: z.ZodObject<{
|
|
|
21
21
|
value: z.ZodString;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
23
|
type: z.ZodEnum<{
|
|
24
|
-
custom: "custom";
|
|
25
24
|
cash: "cash";
|
|
26
25
|
card: "card";
|
|
26
|
+
custom: "custom";
|
|
27
27
|
}>;
|
|
28
28
|
}, z.core.$strip>>;
|
|
29
29
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -98,9 +98,9 @@ declare const SelfPickupSchema: z.ZodObject<{
|
|
|
98
98
|
value: z.ZodString;
|
|
99
99
|
}, z.core.$strip>>;
|
|
100
100
|
type: z.ZodEnum<{
|
|
101
|
-
custom: "custom";
|
|
102
101
|
cash: "cash";
|
|
103
102
|
card: "card";
|
|
103
|
+
custom: "custom";
|
|
104
104
|
}>;
|
|
105
105
|
}, z.core.$strip>>;
|
|
106
106
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -380,9 +380,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
380
380
|
value: z.ZodString;
|
|
381
381
|
}, z.core.$strip>>;
|
|
382
382
|
type: z.ZodEnum<{
|
|
383
|
-
custom: "custom";
|
|
384
383
|
cash: "cash";
|
|
385
384
|
card: "card";
|
|
385
|
+
custom: "custom";
|
|
386
386
|
}>;
|
|
387
387
|
}, z.core.$strip>>;
|
|
388
388
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -456,9 +456,9 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
456
456
|
value: z.ZodString;
|
|
457
457
|
}, z.core.$strip>>;
|
|
458
458
|
type: z.ZodEnum<{
|
|
459
|
-
custom: "custom";
|
|
460
459
|
cash: "cash";
|
|
461
460
|
card: "card";
|
|
461
|
+
custom: "custom";
|
|
462
462
|
}>;
|
|
463
463
|
}, z.core.$strip>>;
|
|
464
464
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -981,7 +981,7 @@ type GatewayRequest = z.infer<typeof GatewayRequestSchema>;
|
|
|
981
981
|
*/
|
|
982
982
|
declare const BaseResponseSchema: z.ZodObject<{
|
|
983
983
|
ok: z.ZodBoolean;
|
|
984
|
-
error: z.ZodOptional<z.
|
|
984
|
+
error: z.ZodOptional<z.ZodString>;
|
|
985
985
|
}, z.core.$strip>;
|
|
986
986
|
declare const GatewayGetOptionsRequestSchema: z.ZodObject<{
|
|
987
987
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -991,7 +991,7 @@ declare const GatewayGetOptionsRequestSchema: z.ZodObject<{
|
|
|
991
991
|
type GatewayGetOptionsRequest = z.infer<typeof GatewayGetOptionsRequestSchema>;
|
|
992
992
|
declare const GatewayGetOptionsResponseSchema: z.ZodObject<{
|
|
993
993
|
ok: z.ZodBoolean;
|
|
994
|
-
error: z.ZodOptional<z.
|
|
994
|
+
error: z.ZodOptional<z.ZodString>;
|
|
995
995
|
type: z.ZodLiteral<"getOptions">;
|
|
996
996
|
result: z.ZodObject<{
|
|
997
997
|
selectorTitle: z.ZodArray<z.ZodObject<{
|
|
@@ -1026,7 +1026,7 @@ declare const GatewayGetOptionsResponseSchema: z.ZodObject<{
|
|
|
1026
1026
|
}>;
|
|
1027
1027
|
value: z.ZodString;
|
|
1028
1028
|
}, z.core.$strip>>>;
|
|
1029
|
-
logoUrl: z.
|
|
1029
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
1030
1030
|
availableLocales: z.ZodArray<z.ZodEnum<{
|
|
1031
1031
|
de: "de";
|
|
1032
1032
|
el: "el";
|
|
@@ -1336,7 +1336,7 @@ declare const GatewayGetChannelsRequestSchema: z.ZodObject<{
|
|
|
1336
1336
|
type GatewayGetChannelsRequest = z.infer<typeof GatewayGetChannelsRequestSchema>;
|
|
1337
1337
|
declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
1338
1338
|
ok: z.ZodBoolean;
|
|
1339
|
-
error: z.ZodOptional<z.
|
|
1339
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1340
1340
|
type: z.ZodLiteral<"getChannels">;
|
|
1341
1341
|
result: z.ZodArray<z.ZodObject<{
|
|
1342
1342
|
id: z.ZodString;
|
|
@@ -1440,9 +1440,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1440
1440
|
value: z.ZodString;
|
|
1441
1441
|
}, z.core.$strip>>;
|
|
1442
1442
|
type: z.ZodEnum<{
|
|
1443
|
-
custom: "custom";
|
|
1444
1443
|
cash: "cash";
|
|
1445
1444
|
card: "card";
|
|
1445
|
+
custom: "custom";
|
|
1446
1446
|
}>;
|
|
1447
1447
|
}, z.core.$strip>>;
|
|
1448
1448
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1516,9 +1516,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
|
|
|
1516
1516
|
value: z.ZodString;
|
|
1517
1517
|
}, z.core.$strip>>;
|
|
1518
1518
|
type: z.ZodEnum<{
|
|
1519
|
-
custom: "custom";
|
|
1520
1519
|
cash: "cash";
|
|
1521
1520
|
card: "card";
|
|
1521
|
+
custom: "custom";
|
|
1522
1522
|
}>;
|
|
1523
1523
|
}, z.core.$strip>>;
|
|
1524
1524
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1695,13 +1695,13 @@ declare const GatewayGetOrderRequestSchema: z.ZodObject<{
|
|
|
1695
1695
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1696
1696
|
type: z.ZodLiteral<"getOrder">;
|
|
1697
1697
|
body: z.ZodObject<{
|
|
1698
|
-
id: z.
|
|
1698
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1699
1699
|
}, z.core.$strip>;
|
|
1700
1700
|
}, z.core.$strip>;
|
|
1701
1701
|
type GatewayGetOrderRequest = z.infer<typeof GatewayGetOrderRequestSchema>;
|
|
1702
1702
|
declare const GatewayGetOrderResponseSchema: z.ZodObject<{
|
|
1703
1703
|
ok: z.ZodBoolean;
|
|
1704
|
-
error: z.ZodOptional<z.
|
|
1704
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1705
1705
|
type: z.ZodLiteral<"getOrder">;
|
|
1706
1706
|
result: z.ZodNullable<z.ZodObject<{
|
|
1707
1707
|
id: z.ZodString;
|
|
@@ -1762,7 +1762,7 @@ declare const GatewayCreateOrderRequestSchema: z.ZodObject<{
|
|
|
1762
1762
|
type GatewayCreateOrderRequest = z.infer<typeof GatewayCreateOrderRequestSchema>;
|
|
1763
1763
|
declare const GatewayCreateOrderResponseSchema: z.ZodObject<{
|
|
1764
1764
|
ok: z.ZodBoolean;
|
|
1765
|
-
error: z.ZodOptional<z.
|
|
1765
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1766
1766
|
type: z.ZodLiteral<"createOrder">;
|
|
1767
1767
|
result: z.ZodObject<{
|
|
1768
1768
|
id: z.ZodString;
|
|
@@ -1871,7 +1871,7 @@ declare const GatewayUpdateOrderRequestSchema: z.ZodObject<{
|
|
|
1871
1871
|
type GatewayUpdateOrderRequest = z.infer<typeof GatewayUpdateOrderRequestSchema>;
|
|
1872
1872
|
declare const GatewayUpdateOrderResponseSchema: z.ZodObject<{
|
|
1873
1873
|
ok: z.ZodBoolean;
|
|
1874
|
-
error: z.ZodOptional<z.
|
|
1874
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1875
1875
|
type: z.ZodLiteral<"updateOrder">;
|
|
1876
1876
|
result: z.ZodObject<{
|
|
1877
1877
|
id: z.ZodString;
|
|
@@ -1980,7 +1980,7 @@ declare const GatewayCompleteOrderRequestSchema: z.ZodObject<{
|
|
|
1980
1980
|
type GatewayCompleteOrderRequest = z.infer<typeof GatewayCompleteOrderRequestSchema>;
|
|
1981
1981
|
declare const GatewayCompleteOrderResponseSchema: z.ZodObject<{
|
|
1982
1982
|
ok: z.ZodBoolean;
|
|
1983
|
-
error: z.ZodOptional<z.
|
|
1983
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1984
1984
|
type: z.ZodLiteral<"completeOrder">;
|
|
1985
1985
|
result: z.ZodObject<{
|
|
1986
1986
|
id: z.ZodString;
|
|
@@ -2044,7 +2044,7 @@ declare const GatewayAddOrderItemRequestSchema: z.ZodObject<{
|
|
|
2044
2044
|
type GatewayAddOrderItemRequest = z.infer<typeof GatewayAddOrderItemRequestSchema>;
|
|
2045
2045
|
declare const GatewayAddOrderItemResponseSchema: z.ZodObject<{
|
|
2046
2046
|
ok: z.ZodBoolean;
|
|
2047
|
-
error: z.ZodOptional<z.
|
|
2047
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2048
2048
|
type: z.ZodLiteral<"addOrderItem">;
|
|
2049
2049
|
result: z.ZodObject<{
|
|
2050
2050
|
id: z.ZodString;
|
|
@@ -2112,7 +2112,7 @@ declare const GatewayIncrementOrderItemQuantityRequestSchema: z.ZodObject<{
|
|
|
2112
2112
|
type GatewayIncrementOrderItemQuantityRequest = z.infer<typeof GatewayIncrementOrderItemQuantityRequestSchema>;
|
|
2113
2113
|
declare const GatewayIncrementOrderItemQuantityResponseSchema: z.ZodObject<{
|
|
2114
2114
|
ok: z.ZodBoolean;
|
|
2115
|
-
error: z.ZodOptional<z.
|
|
2115
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2116
2116
|
type: z.ZodLiteral<"incrementOrderItemQuantity">;
|
|
2117
2117
|
result: z.ZodObject<{
|
|
2118
2118
|
id: z.ZodString;
|
|
@@ -2180,7 +2180,7 @@ declare const GatewayDecrementOrderItemQuantityRequestSchema: z.ZodObject<{
|
|
|
2180
2180
|
type GatewayDecrementOrderItemQuantityRequest = z.infer<typeof GatewayDecrementOrderItemQuantityRequestSchema>;
|
|
2181
2181
|
declare const GatewayDecrementOrderItemQuantityResponseSchema: z.ZodObject<{
|
|
2182
2182
|
ok: z.ZodBoolean;
|
|
2183
|
-
error: z.ZodOptional<z.
|
|
2183
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2184
2184
|
type: z.ZodLiteral<"decrementOrderItemQuantity">;
|
|
2185
2185
|
result: z.ZodObject<{
|
|
2186
2186
|
id: z.ZodString;
|
|
@@ -2241,7 +2241,7 @@ declare const GatewayGetMenuRequestSchema: z.ZodObject<{
|
|
|
2241
2241
|
type GatewayGetMenuRequest = z.infer<typeof GatewayGetMenuRequestSchema>;
|
|
2242
2242
|
declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
2243
2243
|
ok: z.ZodBoolean;
|
|
2244
|
-
error: z.ZodOptional<z.
|
|
2244
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2245
2245
|
type: z.ZodLiteral<"getMenu">;
|
|
2246
2246
|
result: z.ZodObject<{
|
|
2247
2247
|
id: z.ZodString;
|
|
@@ -2282,7 +2282,7 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
2282
2282
|
}>;
|
|
2283
2283
|
value: z.ZodString;
|
|
2284
2284
|
}, z.core.$strip>>;
|
|
2285
|
-
icon: z.
|
|
2285
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2286
2286
|
products: z.ZodArray<z.ZodObject<{
|
|
2287
2287
|
id: z.ZodString;
|
|
2288
2288
|
slug: z.ZodString;
|
|
@@ -2360,6 +2360,7 @@ declare const GatewayGetMenuResponseSchema: z.ZodObject<{
|
|
|
2360
2360
|
url: z.ZodString;
|
|
2361
2361
|
type: z.ZodEnum<{
|
|
2362
2362
|
"video/mp4": "video/mp4";
|
|
2363
|
+
"video/webm": "video/webm";
|
|
2363
2364
|
}>;
|
|
2364
2365
|
}, z.core.$strip>>;
|
|
2365
2366
|
weightUnit: z.ZodEnum<{
|
|
@@ -2445,7 +2446,7 @@ declare const GatewayGetDeliveryByCourierStatusRequestSchema: z.ZodObject<{
|
|
|
2445
2446
|
type GatewayGetDeliveryByCourierStatusRequest = z.infer<typeof GatewayGetDeliveryByCourierStatusRequestSchema>;
|
|
2446
2447
|
declare const GatewayGetDeliveryByCourierStatusResponseSchema: z.ZodObject<{
|
|
2447
2448
|
ok: z.ZodBoolean;
|
|
2448
|
-
error: z.ZodOptional<z.
|
|
2449
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2449
2450
|
type: z.ZodLiteral<"getDeliveryByCourierStatus">;
|
|
2450
2451
|
result: z.ZodObject<{
|
|
2451
2452
|
isClosed: z.ZodBoolean;
|
|
@@ -2520,7 +2521,7 @@ declare const GatewayGetSelfPickupStatusRequestSchema: z.ZodObject<{
|
|
|
2520
2521
|
type GatewayGetSelfPickupStatusRequest = z.infer<typeof GatewayGetSelfPickupStatusRequestSchema>;
|
|
2521
2522
|
declare const GatewayGetSelfPickupStatusResponseSchema: z.ZodObject<{
|
|
2522
2523
|
ok: z.ZodBoolean;
|
|
2523
|
-
error: z.ZodOptional<z.
|
|
2524
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2524
2525
|
type: z.ZodLiteral<"getSelfPickupStatus">;
|
|
2525
2526
|
result: z.ZodObject<{
|
|
2526
2527
|
isClosed: z.ZodBoolean;
|
|
@@ -2599,7 +2600,7 @@ declare const GatewayGetTimeSlotsRequestSchema: z.ZodObject<{
|
|
|
2599
2600
|
type GatewayGetTimeSlotsRequest = z.infer<typeof GatewayGetTimeSlotsRequestSchema>;
|
|
2600
2601
|
declare const GatewayGetTimeSlotsResponseSchema: z.ZodObject<{
|
|
2601
2602
|
ok: z.ZodBoolean;
|
|
2602
|
-
error: z.ZodOptional<z.
|
|
2603
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2603
2604
|
type: z.ZodLiteral<"getTimeSlots">;
|
|
2604
2605
|
result: z.ZodArray<z.ZodObject<{
|
|
2605
2606
|
start: z.ZodString;
|
|
@@ -2612,7 +2613,7 @@ type GatewayGetTimeSlotsResponse = z.infer<typeof GatewayGetTimeSlotsResponseSch
|
|
|
2612
2613
|
*/
|
|
2613
2614
|
declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2614
2615
|
ok: z.ZodBoolean;
|
|
2615
|
-
error: z.ZodOptional<z.
|
|
2616
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2616
2617
|
type: z.ZodLiteral<"getOptions">;
|
|
2617
2618
|
result: z.ZodObject<{
|
|
2618
2619
|
selectorTitle: z.ZodArray<z.ZodObject<{
|
|
@@ -2647,7 +2648,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2647
2648
|
}>;
|
|
2648
2649
|
value: z.ZodString;
|
|
2649
2650
|
}, z.core.$strip>>>;
|
|
2650
|
-
logoUrl: z.
|
|
2651
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
2651
2652
|
availableLocales: z.ZodArray<z.ZodEnum<{
|
|
2652
2653
|
de: "de";
|
|
2653
2654
|
el: "el";
|
|
@@ -2949,7 +2950,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2949
2950
|
}, z.core.$strip>;
|
|
2950
2951
|
}, z.core.$strip>, z.ZodObject<{
|
|
2951
2952
|
ok: z.ZodBoolean;
|
|
2952
|
-
error: z.ZodOptional<z.
|
|
2953
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2953
2954
|
type: z.ZodLiteral<"getChannels">;
|
|
2954
2955
|
result: z.ZodArray<z.ZodObject<{
|
|
2955
2956
|
id: z.ZodString;
|
|
@@ -3053,9 +3054,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3053
3054
|
value: z.ZodString;
|
|
3054
3055
|
}, z.core.$strip>>;
|
|
3055
3056
|
type: z.ZodEnum<{
|
|
3056
|
-
custom: "custom";
|
|
3057
3057
|
cash: "cash";
|
|
3058
3058
|
card: "card";
|
|
3059
|
+
custom: "custom";
|
|
3059
3060
|
}>;
|
|
3060
3061
|
}, z.core.$strip>>;
|
|
3061
3062
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3129,9 +3130,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3129
3130
|
value: z.ZodString;
|
|
3130
3131
|
}, z.core.$strip>>;
|
|
3131
3132
|
type: z.ZodEnum<{
|
|
3132
|
-
custom: "custom";
|
|
3133
3133
|
cash: "cash";
|
|
3134
3134
|
card: "card";
|
|
3135
|
+
custom: "custom";
|
|
3135
3136
|
}>;
|
|
3136
3137
|
}, z.core.$strip>>;
|
|
3137
3138
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3304,7 +3305,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3304
3305
|
}, z.core.$strip>>;
|
|
3305
3306
|
}, z.core.$strip>, z.ZodObject<{
|
|
3306
3307
|
ok: z.ZodBoolean;
|
|
3307
|
-
error: z.ZodOptional<z.
|
|
3308
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3308
3309
|
type: z.ZodLiteral<"getOrder">;
|
|
3309
3310
|
result: z.ZodNullable<z.ZodObject<{
|
|
3310
3311
|
id: z.ZodString;
|
|
@@ -3357,7 +3358,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3357
3358
|
}, z.core.$strip>>;
|
|
3358
3359
|
}, z.core.$strip>, z.ZodObject<{
|
|
3359
3360
|
ok: z.ZodBoolean;
|
|
3360
|
-
error: z.ZodOptional<z.
|
|
3361
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3361
3362
|
type: z.ZodLiteral<"createOrder">;
|
|
3362
3363
|
result: z.ZodObject<{
|
|
3363
3364
|
id: z.ZodString;
|
|
@@ -3410,7 +3411,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3410
3411
|
}, z.core.$strip>;
|
|
3411
3412
|
}, z.core.$strip>, z.ZodObject<{
|
|
3412
3413
|
ok: z.ZodBoolean;
|
|
3413
|
-
error: z.ZodOptional<z.
|
|
3414
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3414
3415
|
type: z.ZodLiteral<"updateOrder">;
|
|
3415
3416
|
result: z.ZodObject<{
|
|
3416
3417
|
id: z.ZodString;
|
|
@@ -3463,7 +3464,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3463
3464
|
}, z.core.$strip>;
|
|
3464
3465
|
}, z.core.$strip>, z.ZodObject<{
|
|
3465
3466
|
ok: z.ZodBoolean;
|
|
3466
|
-
error: z.ZodOptional<z.
|
|
3467
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3467
3468
|
type: z.ZodLiteral<"completeOrder">;
|
|
3468
3469
|
result: z.ZodObject<{
|
|
3469
3470
|
id: z.ZodString;
|
|
@@ -3516,7 +3517,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3516
3517
|
}, z.core.$strip>;
|
|
3517
3518
|
}, z.core.$strip>, z.ZodObject<{
|
|
3518
3519
|
ok: z.ZodBoolean;
|
|
3519
|
-
error: z.ZodOptional<z.
|
|
3520
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3520
3521
|
type: z.ZodLiteral<"addOrderItem">;
|
|
3521
3522
|
result: z.ZodObject<{
|
|
3522
3523
|
id: z.ZodString;
|
|
@@ -3569,7 +3570,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3569
3570
|
}, z.core.$strip>;
|
|
3570
3571
|
}, z.core.$strip>, z.ZodObject<{
|
|
3571
3572
|
ok: z.ZodBoolean;
|
|
3572
|
-
error: z.ZodOptional<z.
|
|
3573
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3573
3574
|
type: z.ZodLiteral<"incrementOrderItemQuantity">;
|
|
3574
3575
|
result: z.ZodObject<{
|
|
3575
3576
|
id: z.ZodString;
|
|
@@ -3622,7 +3623,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3622
3623
|
}, z.core.$strip>;
|
|
3623
3624
|
}, z.core.$strip>, z.ZodObject<{
|
|
3624
3625
|
ok: z.ZodBoolean;
|
|
3625
|
-
error: z.ZodOptional<z.
|
|
3626
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3626
3627
|
type: z.ZodLiteral<"decrementOrderItemQuantity">;
|
|
3627
3628
|
result: z.ZodObject<{
|
|
3628
3629
|
id: z.ZodString;
|
|
@@ -3675,7 +3676,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3675
3676
|
}, z.core.$strip>;
|
|
3676
3677
|
}, z.core.$strip>, z.ZodObject<{
|
|
3677
3678
|
ok: z.ZodBoolean;
|
|
3678
|
-
error: z.ZodOptional<z.
|
|
3679
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3679
3680
|
type: z.ZodLiteral<"getMenu">;
|
|
3680
3681
|
result: z.ZodObject<{
|
|
3681
3682
|
id: z.ZodString;
|
|
@@ -3716,7 +3717,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3716
3717
|
}>;
|
|
3717
3718
|
value: z.ZodString;
|
|
3718
3719
|
}, z.core.$strip>>;
|
|
3719
|
-
icon: z.
|
|
3720
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
3720
3721
|
products: z.ZodArray<z.ZodObject<{
|
|
3721
3722
|
id: z.ZodString;
|
|
3722
3723
|
slug: z.ZodString;
|
|
@@ -3794,6 +3795,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3794
3795
|
url: z.ZodString;
|
|
3795
3796
|
type: z.ZodEnum<{
|
|
3796
3797
|
"video/mp4": "video/mp4";
|
|
3798
|
+
"video/webm": "video/webm";
|
|
3797
3799
|
}>;
|
|
3798
3800
|
}, z.core.$strip>>;
|
|
3799
3801
|
weightUnit: z.ZodEnum<{
|
|
@@ -3869,7 +3871,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3869
3871
|
}, z.core.$strip>;
|
|
3870
3872
|
}, z.core.$strip>, z.ZodObject<{
|
|
3871
3873
|
ok: z.ZodBoolean;
|
|
3872
|
-
error: z.ZodOptional<z.
|
|
3874
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3873
3875
|
type: z.ZodLiteral<"getDeliveryByCourierStatus">;
|
|
3874
3876
|
result: z.ZodObject<{
|
|
3875
3877
|
isClosed: z.ZodBoolean;
|
|
@@ -3934,7 +3936,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3934
3936
|
}, z.core.$strip>;
|
|
3935
3937
|
}, z.core.$strip>, z.ZodObject<{
|
|
3936
3938
|
ok: z.ZodBoolean;
|
|
3937
|
-
error: z.ZodOptional<z.
|
|
3939
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3938
3940
|
type: z.ZodLiteral<"getSelfPickupStatus">;
|
|
3939
3941
|
result: z.ZodObject<{
|
|
3940
3942
|
isClosed: z.ZodBoolean;
|
|
@@ -3999,7 +4001,7 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3999
4001
|
}, z.core.$strip>;
|
|
4000
4002
|
}, z.core.$strip>, z.ZodObject<{
|
|
4001
4003
|
ok: z.ZodBoolean;
|
|
4002
|
-
error: z.ZodOptional<z.
|
|
4004
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4003
4005
|
type: z.ZodLiteral<"getTimeSlots">;
|
|
4004
4006
|
result: z.ZodArray<z.ZodObject<{
|
|
4005
4007
|
start: z.ZodString;
|
|
@@ -4069,7 +4071,7 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
4069
4071
|
}>;
|
|
4070
4072
|
value: z.ZodString;
|
|
4071
4073
|
}, z.core.$strip>>;
|
|
4072
|
-
icon: z.
|
|
4074
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
4073
4075
|
products: z.ZodArray<z.ZodObject<{
|
|
4074
4076
|
id: z.ZodString;
|
|
4075
4077
|
slug: z.ZodString;
|
|
@@ -4147,6 +4149,7 @@ declare const MenuCategorySchema: z.ZodObject<{
|
|
|
4147
4149
|
url: z.ZodString;
|
|
4148
4150
|
type: z.ZodEnum<{
|
|
4149
4151
|
"video/mp4": "video/mp4";
|
|
4152
|
+
"video/webm": "video/webm";
|
|
4150
4153
|
}>;
|
|
4151
4154
|
}, z.core.$strip>>;
|
|
4152
4155
|
weightUnit: z.ZodEnum<{
|
|
@@ -4259,7 +4262,7 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
4259
4262
|
}>;
|
|
4260
4263
|
value: z.ZodString;
|
|
4261
4264
|
}, z.core.$strip>>;
|
|
4262
|
-
icon: z.
|
|
4265
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
4263
4266
|
products: z.ZodArray<z.ZodObject<{
|
|
4264
4267
|
id: z.ZodString;
|
|
4265
4268
|
slug: z.ZodString;
|
|
@@ -4337,6 +4340,7 @@ declare const MenuSchema: z.ZodObject<{
|
|
|
4337
4340
|
url: z.ZodString;
|
|
4338
4341
|
type: z.ZodEnum<{
|
|
4339
4342
|
"video/mp4": "video/mp4";
|
|
4343
|
+
"video/webm": "video/webm";
|
|
4340
4344
|
}>;
|
|
4341
4345
|
}, z.core.$strip>>;
|
|
4342
4346
|
weightUnit: z.ZodEnum<{
|
|
@@ -4460,7 +4464,7 @@ declare const OptionsSchema: z.ZodObject<{
|
|
|
4460
4464
|
}>;
|
|
4461
4465
|
value: z.ZodString;
|
|
4462
4466
|
}, z.core.$strip>>>;
|
|
4463
|
-
logoUrl: z.
|
|
4467
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
4464
4468
|
availableLocales: z.ZodArray<z.ZodEnum<{
|
|
4465
4469
|
de: "de";
|
|
4466
4470
|
el: "el";
|
|
@@ -4868,9 +4872,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
4868
4872
|
type Order = z.infer<typeof OrderSchema>;
|
|
4869
4873
|
|
|
4870
4874
|
declare const PaymentMethodTypeSchema: z.ZodEnum<{
|
|
4871
|
-
custom: "custom";
|
|
4872
4875
|
cash: "cash";
|
|
4873
4876
|
card: "card";
|
|
4877
|
+
custom: "custom";
|
|
4874
4878
|
}>;
|
|
4875
4879
|
type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
|
|
4876
4880
|
declare const PaymentMethodSchema: z.ZodObject<{
|
|
@@ -4892,9 +4896,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
4892
4896
|
value: z.ZodString;
|
|
4893
4897
|
}, z.core.$strip>>;
|
|
4894
4898
|
type: z.ZodEnum<{
|
|
4895
|
-
custom: "custom";
|
|
4896
4899
|
cash: "cash";
|
|
4897
4900
|
card: "card";
|
|
4901
|
+
custom: "custom";
|
|
4898
4902
|
}>;
|
|
4899
4903
|
}, z.core.$strip>;
|
|
4900
4904
|
type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
|
|
@@ -4966,6 +4970,7 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
4966
4970
|
url: z.ZodString;
|
|
4967
4971
|
type: z.ZodEnum<{
|
|
4968
4972
|
"video/mp4": "video/mp4";
|
|
4973
|
+
"video/webm": "video/webm";
|
|
4969
4974
|
}>;
|
|
4970
4975
|
}, z.core.$strip>>;
|
|
4971
4976
|
weightUnit: z.ZodEnum<{
|
|
@@ -5122,6 +5127,7 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
5122
5127
|
url: z.ZodString;
|
|
5123
5128
|
type: z.ZodEnum<{
|
|
5124
5129
|
"video/mp4": "video/mp4";
|
|
5130
|
+
"video/webm": "video/webm";
|
|
5125
5131
|
}>;
|
|
5126
5132
|
}, z.core.$strip>>;
|
|
5127
5133
|
weightUnit: z.ZodEnum<{
|
|
@@ -5386,6 +5392,7 @@ type OpeningStatus = z.infer<typeof OpeningStatusSchema>;
|
|
|
5386
5392
|
|
|
5387
5393
|
declare const VideoTypeSchema: z.ZodEnum<{
|
|
5388
5394
|
"video/mp4": "video/mp4";
|
|
5395
|
+
"video/webm": "video/webm";
|
|
5389
5396
|
}>;
|
|
5390
5397
|
type VideoType = z.infer<typeof VideoTypeSchema>;
|
|
5391
5398
|
declare const VideoSchema: z.ZodObject<{
|
|
@@ -5393,6 +5400,7 @@ declare const VideoSchema: z.ZodObject<{
|
|
|
5393
5400
|
url: z.ZodString;
|
|
5394
5401
|
type: z.ZodEnum<{
|
|
5395
5402
|
"video/mp4": "video/mp4";
|
|
5403
|
+
"video/webm": "video/webm";
|
|
5396
5404
|
}>;
|
|
5397
5405
|
}, z.core.$strip>;
|
|
5398
5406
|
type Video = z.infer<typeof VideoSchema>;
|
|
@@ -5455,5 +5463,5 @@ declare const WarehouseSchema: z.ZodObject<{
|
|
|
5455
5463
|
}, z.core.$strip>;
|
|
5456
5464
|
type Warehouse = z.infer<typeof WarehouseSchema>;
|
|
5457
5465
|
|
|
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 };
|
|
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 };
|
|
5459
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -326,7 +326,7 @@ const ScheduleSchema = z.array(DayScheduleSchema).refine((schedules) => {
|
|
|
326
326
|
const NextOpeningSchema = z.object({
|
|
327
327
|
day: WeekDaySchema,
|
|
328
328
|
time: TimeSchema,
|
|
329
|
-
relativeDays: z.number().int()
|
|
329
|
+
relativeDays: z.number().int().nonnegative()
|
|
330
330
|
});
|
|
331
331
|
const OpeningStatusSchema = z.object({
|
|
332
332
|
isClosed: z.boolean(),
|
|
@@ -335,7 +335,7 @@ const OpeningStatusSchema = z.object({
|
|
|
335
335
|
currentDay: WeekDaySchema,
|
|
336
336
|
todayHours: TimePeriodSchema.array().nullable(),
|
|
337
337
|
todayEndAt: TimeSchema.nullable(),
|
|
338
|
-
todayEndInMinutes: z.number().nullable(),
|
|
338
|
+
todayEndInMinutes: z.number().nonnegative().nullable(),
|
|
339
339
|
nextOpening: NextOpeningSchema.nullable()
|
|
340
340
|
});
|
|
341
341
|
|
|
@@ -352,7 +352,7 @@ const DeliveryByCourierSchema = z.object({
|
|
|
352
352
|
isAvailable: z.boolean(),
|
|
353
353
|
paymentMethods: PaymentMethodSchema.array(),
|
|
354
354
|
conditions: LocaleValueSchema.array().optional(),
|
|
355
|
-
minAmountForDelivery: z.number().optional(),
|
|
355
|
+
minAmountForDelivery: z.number().nonnegative().optional(),
|
|
356
356
|
schedule: ScheduleSchema.optional()
|
|
357
357
|
});
|
|
358
358
|
const SelfPickupSchema = z.object({
|
|
@@ -396,7 +396,7 @@ const ImageSchema = z.object({
|
|
|
396
396
|
format: ImageFormatSchema
|
|
397
397
|
});
|
|
398
398
|
|
|
399
|
-
const VideoTypeSchema = z.enum(["video/mp4"]);
|
|
399
|
+
const VideoTypeSchema = z.enum(["video/mp4", "video/webm"]);
|
|
400
400
|
const VideoSchema = z.object({
|
|
401
401
|
id: z.string(),
|
|
402
402
|
url: z.string(),
|
|
@@ -404,10 +404,10 @@ const VideoSchema = z.object({
|
|
|
404
404
|
});
|
|
405
405
|
|
|
406
406
|
const NutritionFactsSchema = z.object({
|
|
407
|
-
calories: z.number(),
|
|
408
|
-
carbohydrate: z.number(),
|
|
409
|
-
protein: z.number(),
|
|
410
|
-
fat: z.number()
|
|
407
|
+
calories: z.number().nonnegative(),
|
|
408
|
+
carbohydrate: z.number().nonnegative(),
|
|
409
|
+
protein: z.number().nonnegative(),
|
|
410
|
+
fat: z.number().nonnegative()
|
|
411
411
|
});
|
|
412
412
|
const ProductBadgeSchema = z.object({
|
|
413
413
|
id: z.string(),
|
|
@@ -419,9 +419,9 @@ const ProductVariantSchema = z.object({
|
|
|
419
419
|
images: ImageSchema.array(),
|
|
420
420
|
video: VideoSchema.optional(),
|
|
421
421
|
weightUnit: WeightUnitSchema,
|
|
422
|
-
weightValue: z.number(),
|
|
423
|
-
price: z.number(),
|
|
424
|
-
originalPrice: z.number().optional(),
|
|
422
|
+
weightValue: z.number().nonnegative(),
|
|
423
|
+
price: z.number().nonnegative(),
|
|
424
|
+
originalPrice: z.number().nonnegative().optional(),
|
|
425
425
|
sku: z.string().nullable(),
|
|
426
426
|
nutritionFacts: NutritionFactsSchema.nullable()
|
|
427
427
|
});
|
|
@@ -459,7 +459,7 @@ const MenuCategorySchema = z.object({
|
|
|
459
459
|
id: z.string(),
|
|
460
460
|
slug: z.string(),
|
|
461
461
|
title: LocaleValueSchema.array(),
|
|
462
|
-
icon: z.string().optional()
|
|
462
|
+
icon: z.string().optional(),
|
|
463
463
|
products: ProductSchema.array()
|
|
464
464
|
});
|
|
465
465
|
const MenuSchema = z.object({
|
|
@@ -485,7 +485,7 @@ const HeadStyleSchema = z.string();
|
|
|
485
485
|
const OptionsSchema = z.object({
|
|
486
486
|
selectorTitle: LocaleValueSchema.array(),
|
|
487
487
|
selectorDescription: LocaleValueSchema.array().optional(),
|
|
488
|
-
logoUrl: z.string().optional()
|
|
488
|
+
logoUrl: z.string().optional(),
|
|
489
489
|
availableLocales: LocaleSchema.array(),
|
|
490
490
|
defaultLocale: LocaleSchema,
|
|
491
491
|
countryCode: CountryCodeSchema,
|
|
@@ -509,8 +509,8 @@ const OrderItemSchema = z.object({
|
|
|
509
509
|
categorySlug: z.string(),
|
|
510
510
|
variantId: z.string(),
|
|
511
511
|
quantity: z.number().positive(),
|
|
512
|
-
unitPrice: z.number(),
|
|
513
|
-
totalPrice: z.number()
|
|
512
|
+
unitPrice: z.number().nonnegative(),
|
|
513
|
+
totalPrice: z.number().nonnegative()
|
|
514
514
|
// quantity × unitPrice
|
|
515
515
|
});
|
|
516
516
|
const OrderItemChangeSchema = z.object({
|
|
@@ -548,8 +548,8 @@ const OrderSchema = z.object({
|
|
|
548
548
|
/** Payment */
|
|
549
549
|
paymentMethodId: PaymentMethodSchema.shape.id,
|
|
550
550
|
/** Amount of cash that client has to pay if choose cash */
|
|
551
|
-
changeFrom: z.number().optional(),
|
|
552
|
-
totalPrice: z.number(),
|
|
551
|
+
changeFrom: z.number().nonnegative().optional(),
|
|
552
|
+
totalPrice: z.number().nonnegative(),
|
|
553
553
|
/** Client */
|
|
554
554
|
name: z.string(),
|
|
555
555
|
phone: z.string(),
|
|
@@ -581,7 +581,7 @@ const GatewayRequestSchema = z.object({
|
|
|
581
581
|
});
|
|
582
582
|
const BaseResponseSchema = z.object({
|
|
583
583
|
ok: z.boolean(),
|
|
584
|
-
error: z.string().
|
|
584
|
+
error: z.string().optional()
|
|
585
585
|
});
|
|
586
586
|
const GatewayGetOptionsRequestSchema = GatewayRequestSchema.extend({
|
|
587
587
|
type: z.literal("getOptions")
|
|
@@ -600,7 +600,7 @@ const GatewayGetChannelsResponseSchema = BaseResponseSchema.extend({
|
|
|
600
600
|
const GatewayGetOrderRequestSchema = GatewayRequestSchema.extend({
|
|
601
601
|
type: z.literal("getOrder"),
|
|
602
602
|
body: z.object({
|
|
603
|
-
id: z.string().optional()
|
|
603
|
+
id: z.string().optional()
|
|
604
604
|
})
|
|
605
605
|
});
|
|
606
606
|
const GatewayGetOrderResponseSchema = BaseResponseSchema.extend({
|
|
@@ -711,4 +711,4 @@ const GatewayResponseSchema = z.discriminatedUnion("type", [
|
|
|
711
711
|
GatewayGetTimeSlotsResponseSchema
|
|
712
712
|
]);
|
|
713
713
|
|
|
714
|
-
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 };
|
|
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 };
|