@deliverart/sdk-js-menu 2.5.29 → 2.5.31
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.cjs +27 -25
- package/dist/index.d.cts +195 -140
- package/dist/index.d.ts +195 -140
- package/dist/index.js +28 -25
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -37,7 +37,7 @@ declare const localeItemSchema: z.ZodObject<{
|
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
declare const salesPriceDTOSchema: z.ZodObject<{
|
|
39
39
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
40
|
-
price: z.
|
|
40
|
+
price: z.ZodString;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
declare const menuVersionSchema: z.ZodObject<{
|
|
43
43
|
id: z.ZodString;
|
|
@@ -152,25 +152,25 @@ declare const writableMenuItemSchema: z.ZodObject<{
|
|
|
152
152
|
CHOICE: "CHOICE";
|
|
153
153
|
BUNDLE: "BUNDLE";
|
|
154
154
|
}>;
|
|
155
|
-
price: z.
|
|
155
|
+
price: z.ZodString;
|
|
156
156
|
category: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown>>;
|
|
157
|
-
channels: z.
|
|
157
|
+
channels: z.ZodArray<z.ZodEnum<{
|
|
158
158
|
application: "application";
|
|
159
159
|
ecommerce: "ecommerce";
|
|
160
160
|
deliveroo: "deliveroo";
|
|
161
161
|
justeat: "justeat";
|
|
162
162
|
glovo: "glovo";
|
|
163
|
-
}
|
|
164
|
-
tags: z.
|
|
163
|
+
}>>;
|
|
164
|
+
tags: z.ZodArray<z.ZodString>;
|
|
165
165
|
name: z.ZodArray<z.ZodObject<{
|
|
166
166
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
167
167
|
text: z.ZodNonOptional<z.ZodString>;
|
|
168
168
|
}, z.core.$strip>>;
|
|
169
|
-
description: z.
|
|
169
|
+
description: z.ZodArray<z.ZodObject<{
|
|
170
170
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
171
171
|
text: z.ZodNonOptional<z.ZodString>;
|
|
172
|
-
}, z.core.$strip
|
|
173
|
-
allergens: z.
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
allergens: z.ZodArray<z.ZodEnum<{
|
|
174
174
|
"peanuts-and-derivatives": "peanuts-and-derivatives";
|
|
175
175
|
crustaceans: "crustaceans";
|
|
176
176
|
nuts: "nuts";
|
|
@@ -186,24 +186,24 @@ declare const writableMenuItemSchema: z.ZodObject<{
|
|
|
186
186
|
soy: "soy";
|
|
187
187
|
"eggs-and-derivatives": "eggs-and-derivatives";
|
|
188
188
|
mushrooms: "mushrooms";
|
|
189
|
-
}
|
|
190
|
-
diets: z.
|
|
189
|
+
}>>;
|
|
190
|
+
diets: z.ZodArray<z.ZodEnum<{
|
|
191
191
|
vegan: "vegan";
|
|
192
192
|
vegetarian: "vegetarian";
|
|
193
193
|
"gluten-free": "gluten-free";
|
|
194
194
|
"dairy-free": "dairy-free";
|
|
195
|
-
}
|
|
195
|
+
}>>;
|
|
196
196
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
197
|
-
containsAlcohol: z.
|
|
198
|
-
countable: z.
|
|
199
|
-
suspended: z.
|
|
200
|
-
compositions: z.
|
|
201
|
-
salesPrices: z.
|
|
197
|
+
containsAlcohol: z.ZodBoolean;
|
|
198
|
+
countable: z.ZodBoolean;
|
|
199
|
+
suspended: z.ZodBoolean;
|
|
200
|
+
compositions: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
201
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
202
202
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
203
|
-
price: z.
|
|
204
|
-
}, z.core.$strip
|
|
203
|
+
price: z.ZodString;
|
|
204
|
+
}, z.core.$strip>>;
|
|
205
205
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
206
|
-
images: z.
|
|
206
|
+
images: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>;
|
|
207
207
|
}, z.core.$strip>;
|
|
208
208
|
declare const menuItemCategorySchema: z.ZodObject<{
|
|
209
209
|
id: z.ZodString;
|
|
@@ -287,7 +287,7 @@ declare const writableMenuItemCategorySchema: z.ZodObject<{
|
|
|
287
287
|
suspended: z.ZodBoolean;
|
|
288
288
|
sorting: z.ZodCoercedNumber<unknown>;
|
|
289
289
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
290
|
-
images: z.
|
|
290
|
+
images: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>;
|
|
291
291
|
}, z.core.$strip>;
|
|
292
292
|
declare const menuItemModifierSchema: z.ZodObject<{
|
|
293
293
|
id: z.ZodString;
|
|
@@ -377,7 +377,7 @@ declare const menuItemPriceOverrideSchema: z.ZodIntersection<z.ZodDiscriminatedU
|
|
|
377
377
|
suspended: z.ZodBoolean;
|
|
378
378
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
379
379
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
380
|
-
price: z.
|
|
380
|
+
price: z.ZodString;
|
|
381
381
|
}, z.core.$strip>>;
|
|
382
382
|
createdAt: z.ZodString;
|
|
383
383
|
updatedAt: z.ZodString;
|
|
@@ -397,7 +397,7 @@ declare const menuItemPriceOverrideDetailsSchema: z.ZodIntersection<z.ZodDiscrim
|
|
|
397
397
|
suspended: z.ZodBoolean;
|
|
398
398
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
399
399
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
400
|
-
price: z.
|
|
400
|
+
price: z.ZodString;
|
|
401
401
|
}, z.core.$strip>>;
|
|
402
402
|
createdAt: z.ZodString;
|
|
403
403
|
updatedAt: z.ZodString;
|
|
@@ -411,13 +411,13 @@ declare const writableMenuItemPriceOverrideSchema: z.ZodIntersection<z.ZodDiscri
|
|
|
411
411
|
type: z.ZodLiteral<"MODIFIER">;
|
|
412
412
|
fromModifier: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown>>;
|
|
413
413
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
414
|
-
price: z.
|
|
414
|
+
price: z.ZodString;
|
|
415
415
|
referenceItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>;
|
|
416
|
-
suspended: z.
|
|
417
|
-
salesPrices: z.
|
|
416
|
+
suspended: z.ZodBoolean;
|
|
417
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
418
418
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
419
|
-
price: z.
|
|
420
|
-
}, z.core.$strip
|
|
419
|
+
price: z.ZodString;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
421
|
}, z.core.$strip>>;
|
|
422
422
|
declare const writableMenuItemPriceOverridePartialSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
423
423
|
type: z.ZodLiteral<"ITEM">;
|
|
@@ -427,13 +427,13 @@ declare const writableMenuItemPriceOverridePartialSchema: z.ZodIntersection<z.Zo
|
|
|
427
427
|
type: z.ZodLiteral<"MODIFIER">;
|
|
428
428
|
fromModifier: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown>>;
|
|
429
429
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
430
|
-
price: z.ZodOptional<z.
|
|
430
|
+
price: z.ZodOptional<z.ZodString>;
|
|
431
431
|
referenceItem: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
432
|
-
suspended: z.ZodOptional<z.
|
|
433
|
-
salesPrices: z.ZodOptional<z.
|
|
432
|
+
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
433
|
+
salesPrices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
434
434
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
435
|
-
price: z.
|
|
436
|
-
}, z.core.$strip
|
|
435
|
+
price: z.ZodString;
|
|
436
|
+
}, z.core.$strip>>>;
|
|
437
437
|
}, z.core.$strip>>;
|
|
438
438
|
type WritableMenuItemPriceOverride = z.infer<typeof writableMenuItemPriceOverrideSchema>;
|
|
439
439
|
declare const menuItemsQuerySchema: z.ZodObject<{
|
|
@@ -464,6 +464,11 @@ declare const menuItemsQuerySchema: z.ZodObject<{
|
|
|
464
464
|
CHOICE: "CHOICE";
|
|
465
465
|
BUNDLE: "BUNDLE";
|
|
466
466
|
}>>]>>;
|
|
467
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
468
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
469
|
+
all: "all";
|
|
470
|
+
any: "any";
|
|
471
|
+
}>>;
|
|
467
472
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
468
473
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
469
474
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -855,7 +860,7 @@ declare const createMenuItemCategoryInputSchema: z.ZodObject<{
|
|
|
855
860
|
suspended: z.ZodNonOptional<z.ZodBoolean>;
|
|
856
861
|
sorting: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
857
862
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
858
|
-
images: z.ZodNonOptional<z.
|
|
863
|
+
images: z.ZodNonOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
859
864
|
}, z.core.$strip>;
|
|
860
865
|
type CreateMenuItemCategoryInput = z.input<typeof createMenuItemCategoryInputSchema>;
|
|
861
866
|
declare const createMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
@@ -910,7 +915,7 @@ declare class CreateMenuItemCategory extends AbstractApiRequest<typeof createMen
|
|
|
910
915
|
suspended: z.ZodNonOptional<z.ZodBoolean>;
|
|
911
916
|
sorting: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
912
917
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
913
|
-
images: z.ZodNonOptional<z.
|
|
918
|
+
images: z.ZodNonOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
914
919
|
}, z.core.$strip>;
|
|
915
920
|
readonly outputSchema: z.ZodObject<{
|
|
916
921
|
id: z.ZodString;
|
|
@@ -1350,7 +1355,7 @@ declare const updateMenuItemCategoryInputSchema: z.ZodObject<{
|
|
|
1350
1355
|
text: z.ZodNonOptional<z.ZodString>;
|
|
1351
1356
|
}, z.core.$strip>>>;
|
|
1352
1357
|
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
1353
|
-
images: z.ZodOptional<z.
|
|
1358
|
+
images: z.ZodOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
1354
1359
|
sorting: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1355
1360
|
}, z.core.$strip>;
|
|
1356
1361
|
type UpdateMenuItemCategoryInput = z.input<typeof updateMenuItemCategoryInputSchema>;
|
|
@@ -1404,7 +1409,7 @@ declare class UpdateMenuItemCategory extends AbstractApiRequest<typeof updateMen
|
|
|
1404
1409
|
text: z.ZodNonOptional<z.ZodString>;
|
|
1405
1410
|
}, z.core.$strip>>>;
|
|
1406
1411
|
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
1407
|
-
images: z.ZodOptional<z.
|
|
1412
|
+
images: z.ZodOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
1408
1413
|
sorting: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1409
1414
|
}, z.core.$strip>;
|
|
1410
1415
|
readonly outputSchema: z.ZodObject<{
|
|
@@ -2037,13 +2042,13 @@ declare const createMenuItemPriceOverrideInputSchema: z.ZodIntersection<z.ZodDis
|
|
|
2037
2042
|
type: z.ZodLiteral<"MODIFIER">;
|
|
2038
2043
|
fromModifier: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown>>;
|
|
2039
2044
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
2040
|
-
price: z.
|
|
2045
|
+
price: z.ZodString;
|
|
2041
2046
|
referenceItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>;
|
|
2042
|
-
suspended: z.
|
|
2043
|
-
salesPrices: z.
|
|
2047
|
+
suspended: z.ZodBoolean;
|
|
2048
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2044
2049
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2045
|
-
price: z.
|
|
2046
|
-
}, z.core.$strip
|
|
2050
|
+
price: z.ZodString;
|
|
2051
|
+
}, z.core.$strip>>;
|
|
2047
2052
|
}, z.core.$strip>>;
|
|
2048
2053
|
type CreateMenuItemPriceOverrideInput = z.input<typeof createMenuItemPriceOverrideInputSchema>;
|
|
2049
2054
|
declare const createMenuItemPriceOverrideResponseSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2060,7 +2065,7 @@ declare const createMenuItemPriceOverrideResponseSchema: z.ZodIntersection<z.Zod
|
|
|
2060
2065
|
suspended: z.ZodBoolean;
|
|
2061
2066
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2062
2067
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2063
|
-
price: z.
|
|
2068
|
+
price: z.ZodString;
|
|
2064
2069
|
}, z.core.$strip>>;
|
|
2065
2070
|
createdAt: z.ZodString;
|
|
2066
2071
|
updatedAt: z.ZodString;
|
|
@@ -2078,13 +2083,13 @@ declare class CreateMenuItemPriceOverride extends AbstractApiRequest<typeof crea
|
|
|
2078
2083
|
type: z.ZodLiteral<"MODIFIER">;
|
|
2079
2084
|
fromModifier: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown>>;
|
|
2080
2085
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
2081
|
-
price: z.
|
|
2086
|
+
price: z.ZodString;
|
|
2082
2087
|
referenceItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>;
|
|
2083
|
-
suspended: z.
|
|
2084
|
-
salesPrices: z.
|
|
2088
|
+
suspended: z.ZodBoolean;
|
|
2089
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2085
2090
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2086
|
-
price: z.
|
|
2087
|
-
}, z.core.$strip
|
|
2091
|
+
price: z.ZodString;
|
|
2092
|
+
}, z.core.$strip>>;
|
|
2088
2093
|
}, z.core.$strip>>;
|
|
2089
2094
|
readonly outputSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2090
2095
|
type: z.ZodLiteral<"ITEM">;
|
|
@@ -2100,7 +2105,7 @@ declare class CreateMenuItemPriceOverride extends AbstractApiRequest<typeof crea
|
|
|
2100
2105
|
suspended: z.ZodBoolean;
|
|
2101
2106
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2102
2107
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2103
|
-
price: z.
|
|
2108
|
+
price: z.ZodString;
|
|
2104
2109
|
}, z.core.$strip>>;
|
|
2105
2110
|
createdAt: z.ZodString;
|
|
2106
2111
|
updatedAt: z.ZodString;
|
|
@@ -2142,7 +2147,7 @@ declare const getMenuItemPriceOverrideDetailsResponseSchema: z.ZodIntersection<z
|
|
|
2142
2147
|
suspended: z.ZodBoolean;
|
|
2143
2148
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2144
2149
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2145
|
-
price: z.
|
|
2150
|
+
price: z.ZodString;
|
|
2146
2151
|
}, z.core.$strip>>;
|
|
2147
2152
|
createdAt: z.ZodString;
|
|
2148
2153
|
updatedAt: z.ZodString;
|
|
@@ -2167,7 +2172,7 @@ declare class GetMenuItemPriceOverrideDetails extends AbstractApiRequest<typeof
|
|
|
2167
2172
|
suspended: z.ZodBoolean;
|
|
2168
2173
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2169
2174
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2170
|
-
price: z.
|
|
2175
|
+
price: z.ZodString;
|
|
2171
2176
|
}, z.core.$strip>>;
|
|
2172
2177
|
createdAt: z.ZodString;
|
|
2173
2178
|
updatedAt: z.ZodString;
|
|
@@ -2229,7 +2234,7 @@ declare const getMenuItemPriceOverridesResponseSchema: z.ZodObject<{
|
|
|
2229
2234
|
suspended: z.ZodBoolean;
|
|
2230
2235
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2231
2236
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2232
|
-
price: z.
|
|
2237
|
+
price: z.ZodString;
|
|
2233
2238
|
}, z.core.$strip>>;
|
|
2234
2239
|
createdAt: z.ZodString;
|
|
2235
2240
|
updatedAt: z.ZodString;
|
|
@@ -2264,7 +2269,7 @@ declare class GetMenuItemPriceOverrides extends AbstractApiRequest<typeof getMen
|
|
|
2264
2269
|
suspended: z.ZodBoolean;
|
|
2265
2270
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2266
2271
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2267
|
-
price: z.
|
|
2272
|
+
price: z.ZodString;
|
|
2268
2273
|
}, z.core.$strip>>;
|
|
2269
2274
|
createdAt: z.ZodString;
|
|
2270
2275
|
updatedAt: z.ZodString;
|
|
@@ -2367,7 +2372,7 @@ declare const getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierRes
|
|
|
2367
2372
|
suspended: z.ZodBoolean;
|
|
2368
2373
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2369
2374
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2370
|
-
price: z.
|
|
2375
|
+
price: z.ZodString;
|
|
2371
2376
|
}, z.core.$strip>>;
|
|
2372
2377
|
createdAt: z.ZodString;
|
|
2373
2378
|
updatedAt: z.ZodString;
|
|
@@ -2392,7 +2397,7 @@ declare class GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier ex
|
|
|
2392
2397
|
suspended: z.ZodBoolean;
|
|
2393
2398
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2394
2399
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2395
|
-
price: z.
|
|
2400
|
+
price: z.ZodString;
|
|
2396
2401
|
}, z.core.$strip>>;
|
|
2397
2402
|
createdAt: z.ZodString;
|
|
2398
2403
|
updatedAt: z.ZodString;
|
|
@@ -2487,7 +2492,7 @@ declare const getMenuItemPriceOverridesFromMenuItemModifierResponseSchema: z.Zod
|
|
|
2487
2492
|
suspended: z.ZodBoolean;
|
|
2488
2493
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2489
2494
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2490
|
-
price: z.
|
|
2495
|
+
price: z.ZodString;
|
|
2491
2496
|
}, z.core.$strip>>;
|
|
2492
2497
|
createdAt: z.ZodString;
|
|
2493
2498
|
updatedAt: z.ZodString;
|
|
@@ -2512,7 +2517,7 @@ declare class GetMenuItemPriceOverridesFromMenuItemModifier extends AbstractApiR
|
|
|
2512
2517
|
suspended: z.ZodBoolean;
|
|
2513
2518
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2514
2519
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2515
|
-
price: z.
|
|
2520
|
+
price: z.ZodString;
|
|
2516
2521
|
}, z.core.$strip>>;
|
|
2517
2522
|
createdAt: z.ZodString;
|
|
2518
2523
|
updatedAt: z.ZodString;
|
|
@@ -2566,13 +2571,13 @@ declare const updateMenuItemPriceOverrideInputSchema: z.ZodIntersection<z.ZodDis
|
|
|
2566
2571
|
type: z.ZodLiteral<"MODIFIER">;
|
|
2567
2572
|
fromModifier: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown>>;
|
|
2568
2573
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
2569
|
-
price: z.ZodOptional<z.
|
|
2574
|
+
price: z.ZodOptional<z.ZodString>;
|
|
2570
2575
|
referenceItem: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
2571
|
-
suspended: z.ZodOptional<z.
|
|
2572
|
-
salesPrices: z.ZodOptional<z.
|
|
2576
|
+
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
2577
|
+
salesPrices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2573
2578
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2574
|
-
price: z.
|
|
2575
|
-
}, z.core.$strip
|
|
2579
|
+
price: z.ZodString;
|
|
2580
|
+
}, z.core.$strip>>>;
|
|
2576
2581
|
}, z.core.$strip>>;
|
|
2577
2582
|
type UpdateMenuItemPriceOverrideInput = z.input<typeof updateMenuItemPriceOverrideInputSchema>;
|
|
2578
2583
|
declare const updateMenuItemPriceOverrideResponseSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2589,7 +2594,7 @@ declare const updateMenuItemPriceOverrideResponseSchema: z.ZodIntersection<z.Zod
|
|
|
2589
2594
|
suspended: z.ZodBoolean;
|
|
2590
2595
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2591
2596
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2592
|
-
price: z.
|
|
2597
|
+
price: z.ZodString;
|
|
2593
2598
|
}, z.core.$strip>>;
|
|
2594
2599
|
createdAt: z.ZodString;
|
|
2595
2600
|
updatedAt: z.ZodString;
|
|
@@ -2607,13 +2612,13 @@ declare class UpdateMenuItemPriceOverride extends AbstractApiRequest<typeof upda
|
|
|
2607
2612
|
type: z.ZodLiteral<"MODIFIER">;
|
|
2608
2613
|
fromModifier: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown>>;
|
|
2609
2614
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
2610
|
-
price: z.ZodOptional<z.
|
|
2615
|
+
price: z.ZodOptional<z.ZodString>;
|
|
2611
2616
|
referenceItem: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
2612
|
-
suspended: z.ZodOptional<z.
|
|
2613
|
-
salesPrices: z.ZodOptional<z.
|
|
2617
|
+
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
2618
|
+
salesPrices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2614
2619
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2615
|
-
price: z.
|
|
2616
|
-
}, z.core.$strip
|
|
2620
|
+
price: z.ZodString;
|
|
2621
|
+
}, z.core.$strip>>>;
|
|
2617
2622
|
}, z.core.$strip>>;
|
|
2618
2623
|
readonly outputSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2619
2624
|
type: z.ZodLiteral<"ITEM">;
|
|
@@ -2629,7 +2634,7 @@ declare class UpdateMenuItemPriceOverride extends AbstractApiRequest<typeof upda
|
|
|
2629
2634
|
suspended: z.ZodBoolean;
|
|
2630
2635
|
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2631
2636
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2632
|
-
price: z.
|
|
2637
|
+
price: z.ZodString;
|
|
2633
2638
|
}, z.core.$strip>>;
|
|
2634
2639
|
createdAt: z.ZodString;
|
|
2635
2640
|
updatedAt: z.ZodString;
|
|
@@ -2647,25 +2652,25 @@ declare const createMenuItemInputSchema: z.ZodObject<{
|
|
|
2647
2652
|
CHOICE: "CHOICE";
|
|
2648
2653
|
BUNDLE: "BUNDLE";
|
|
2649
2654
|
}>>;
|
|
2650
|
-
price: z.ZodNonOptional<z.
|
|
2655
|
+
price: z.ZodNonOptional<z.ZodString>;
|
|
2651
2656
|
category: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown>>>;
|
|
2652
|
-
channels: z.ZodNonOptional<z.
|
|
2657
|
+
channels: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
2653
2658
|
application: "application";
|
|
2654
2659
|
ecommerce: "ecommerce";
|
|
2655
2660
|
deliveroo: "deliveroo";
|
|
2656
2661
|
justeat: "justeat";
|
|
2657
2662
|
glovo: "glovo";
|
|
2658
|
-
}
|
|
2659
|
-
tags: z.ZodNonOptional<z.
|
|
2663
|
+
}>>>;
|
|
2664
|
+
tags: z.ZodNonOptional<z.ZodArray<z.ZodString>>;
|
|
2660
2665
|
name: z.ZodNonOptional<z.ZodArray<z.ZodObject<{
|
|
2661
2666
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
2662
2667
|
text: z.ZodNonOptional<z.ZodString>;
|
|
2663
2668
|
}, z.core.$strip>>>;
|
|
2664
|
-
description: z.ZodNonOptional<z.
|
|
2669
|
+
description: z.ZodNonOptional<z.ZodArray<z.ZodObject<{
|
|
2665
2670
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
2666
2671
|
text: z.ZodNonOptional<z.ZodString>;
|
|
2667
|
-
}, z.core.$strip
|
|
2668
|
-
allergens: z.ZodNonOptional<z.
|
|
2672
|
+
}, z.core.$strip>>>;
|
|
2673
|
+
allergens: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
2669
2674
|
"peanuts-and-derivatives": "peanuts-and-derivatives";
|
|
2670
2675
|
crustaceans: "crustaceans";
|
|
2671
2676
|
nuts: "nuts";
|
|
@@ -2681,24 +2686,24 @@ declare const createMenuItemInputSchema: z.ZodObject<{
|
|
|
2681
2686
|
soy: "soy";
|
|
2682
2687
|
"eggs-and-derivatives": "eggs-and-derivatives";
|
|
2683
2688
|
mushrooms: "mushrooms";
|
|
2684
|
-
}
|
|
2685
|
-
diets: z.ZodNonOptional<z.
|
|
2689
|
+
}>>>;
|
|
2690
|
+
diets: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
2686
2691
|
vegan: "vegan";
|
|
2687
2692
|
vegetarian: "vegetarian";
|
|
2688
2693
|
"gluten-free": "gluten-free";
|
|
2689
2694
|
"dairy-free": "dairy-free";
|
|
2690
|
-
}
|
|
2695
|
+
}>>>;
|
|
2691
2696
|
taxRate: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
2692
|
-
containsAlcohol: z.ZodNonOptional<z.
|
|
2693
|
-
countable: z.ZodNonOptional<z.
|
|
2694
|
-
suspended: z.ZodNonOptional<z.
|
|
2695
|
-
compositions: z.ZodNonOptional<z.
|
|
2696
|
-
salesPrices: z.ZodNonOptional<z.
|
|
2697
|
+
containsAlcohol: z.ZodNonOptional<z.ZodBoolean>;
|
|
2698
|
+
countable: z.ZodNonOptional<z.ZodBoolean>;
|
|
2699
|
+
suspended: z.ZodNonOptional<z.ZodBoolean>;
|
|
2700
|
+
compositions: z.ZodNonOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
2701
|
+
salesPrices: z.ZodNonOptional<z.ZodArray<z.ZodObject<{
|
|
2697
2702
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2698
|
-
price: z.
|
|
2699
|
-
}, z.core.$strip
|
|
2703
|
+
price: z.ZodString;
|
|
2704
|
+
}, z.core.$strip>>>;
|
|
2700
2705
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
2701
|
-
images: z.ZodNonOptional<z.
|
|
2706
|
+
images: z.ZodNonOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
2702
2707
|
}, z.core.$strip>;
|
|
2703
2708
|
type CreateMenuItemInput = z.input<typeof createMenuItemInputSchema>;
|
|
2704
2709
|
declare const createMenuItemResponseSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
@@ -2713,25 +2718,25 @@ declare class CreateMenuItem extends AbstractApiRequest<typeof createMenuItemInp
|
|
|
2713
2718
|
CHOICE: "CHOICE";
|
|
2714
2719
|
BUNDLE: "BUNDLE";
|
|
2715
2720
|
}>>;
|
|
2716
|
-
price: z.ZodNonOptional<z.
|
|
2721
|
+
price: z.ZodNonOptional<z.ZodString>;
|
|
2717
2722
|
category: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown>>>;
|
|
2718
|
-
channels: z.ZodNonOptional<z.
|
|
2723
|
+
channels: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
2719
2724
|
application: "application";
|
|
2720
2725
|
ecommerce: "ecommerce";
|
|
2721
2726
|
deliveroo: "deliveroo";
|
|
2722
2727
|
justeat: "justeat";
|
|
2723
2728
|
glovo: "glovo";
|
|
2724
|
-
}
|
|
2725
|
-
tags: z.ZodNonOptional<z.
|
|
2729
|
+
}>>>;
|
|
2730
|
+
tags: z.ZodNonOptional<z.ZodArray<z.ZodString>>;
|
|
2726
2731
|
name: z.ZodNonOptional<z.ZodArray<z.ZodObject<{
|
|
2727
2732
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
2728
2733
|
text: z.ZodNonOptional<z.ZodString>;
|
|
2729
2734
|
}, z.core.$strip>>>;
|
|
2730
|
-
description: z.ZodNonOptional<z.
|
|
2735
|
+
description: z.ZodNonOptional<z.ZodArray<z.ZodObject<{
|
|
2731
2736
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
2732
2737
|
text: z.ZodNonOptional<z.ZodString>;
|
|
2733
|
-
}, z.core.$strip
|
|
2734
|
-
allergens: z.ZodNonOptional<z.
|
|
2738
|
+
}, z.core.$strip>>>;
|
|
2739
|
+
allergens: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
2735
2740
|
"peanuts-and-derivatives": "peanuts-and-derivatives";
|
|
2736
2741
|
crustaceans: "crustaceans";
|
|
2737
2742
|
nuts: "nuts";
|
|
@@ -2747,24 +2752,24 @@ declare class CreateMenuItem extends AbstractApiRequest<typeof createMenuItemInp
|
|
|
2747
2752
|
soy: "soy";
|
|
2748
2753
|
"eggs-and-derivatives": "eggs-and-derivatives";
|
|
2749
2754
|
mushrooms: "mushrooms";
|
|
2750
|
-
}
|
|
2751
|
-
diets: z.ZodNonOptional<z.
|
|
2755
|
+
}>>>;
|
|
2756
|
+
diets: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
2752
2757
|
vegan: "vegan";
|
|
2753
2758
|
vegetarian: "vegetarian";
|
|
2754
2759
|
"gluten-free": "gluten-free";
|
|
2755
2760
|
"dairy-free": "dairy-free";
|
|
2756
|
-
}
|
|
2761
|
+
}>>>;
|
|
2757
2762
|
taxRate: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
2758
|
-
containsAlcohol: z.ZodNonOptional<z.
|
|
2759
|
-
countable: z.ZodNonOptional<z.
|
|
2760
|
-
suspended: z.ZodNonOptional<z.
|
|
2761
|
-
compositions: z.ZodNonOptional<z.
|
|
2762
|
-
salesPrices: z.ZodNonOptional<z.
|
|
2763
|
+
containsAlcohol: z.ZodNonOptional<z.ZodBoolean>;
|
|
2764
|
+
countable: z.ZodNonOptional<z.ZodBoolean>;
|
|
2765
|
+
suspended: z.ZodNonOptional<z.ZodBoolean>;
|
|
2766
|
+
compositions: z.ZodNonOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
2767
|
+
salesPrices: z.ZodNonOptional<z.ZodArray<z.ZodObject<{
|
|
2763
2768
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2764
|
-
price: z.
|
|
2765
|
-
}, z.core.$strip
|
|
2769
|
+
price: z.ZodString;
|
|
2770
|
+
}, z.core.$strip>>>;
|
|
2766
2771
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
2767
|
-
images: z.ZodNonOptional<z.
|
|
2772
|
+
images: z.ZodNonOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
2768
2773
|
}, z.core.$strip>;
|
|
2769
2774
|
readonly outputSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
2770
2775
|
readonly querySchema: undefined;
|
|
@@ -2833,6 +2838,11 @@ declare const getMenuItemsQuerySchema: z.ZodObject<{
|
|
|
2833
2838
|
CHOICE: "CHOICE";
|
|
2834
2839
|
BUNDLE: "BUNDLE";
|
|
2835
2840
|
}>>]>>;
|
|
2841
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2842
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
2843
|
+
all: "all";
|
|
2844
|
+
any: "any";
|
|
2845
|
+
}>>;
|
|
2836
2846
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2837
2847
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2838
2848
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -2919,6 +2929,11 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
2919
2929
|
CHOICE: "CHOICE";
|
|
2920
2930
|
BUNDLE: "BUNDLE";
|
|
2921
2931
|
}>>]>>;
|
|
2932
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2933
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
2934
|
+
all: "all";
|
|
2935
|
+
any: "any";
|
|
2936
|
+
}>>;
|
|
2922
2937
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2923
2938
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2924
2939
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -2982,6 +2997,11 @@ declare const getMenuItemsAsChoicesFromMenuItemModifierQuerySchema: z.ZodObject<
|
|
|
2982
2997
|
CHOICE: "CHOICE";
|
|
2983
2998
|
BUNDLE: "BUNDLE";
|
|
2984
2999
|
}>>]>>;
|
|
3000
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3001
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3002
|
+
all: "all";
|
|
3003
|
+
any: "any";
|
|
3004
|
+
}>>;
|
|
2985
3005
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2986
3006
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2987
3007
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3048,6 +3068,11 @@ declare class GetMenuItemsAsChoicesFromMenuItemModifier extends AbstractApiReque
|
|
|
3048
3068
|
CHOICE: "CHOICE";
|
|
3049
3069
|
BUNDLE: "BUNDLE";
|
|
3050
3070
|
}>>]>>;
|
|
3071
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3072
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3073
|
+
all: "all";
|
|
3074
|
+
any: "any";
|
|
3075
|
+
}>>;
|
|
3051
3076
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3052
3077
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3053
3078
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3112,6 +3137,11 @@ declare const getMenuItemsFromMenuItemCategoryQuerySchema: z.ZodObject<{
|
|
|
3112
3137
|
CHOICE: "CHOICE";
|
|
3113
3138
|
BUNDLE: "BUNDLE";
|
|
3114
3139
|
}>>]>>;
|
|
3140
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3141
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3142
|
+
all: "all";
|
|
3143
|
+
any: "any";
|
|
3144
|
+
}>>;
|
|
3115
3145
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3116
3146
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3117
3147
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3198,6 +3228,11 @@ declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof
|
|
|
3198
3228
|
CHOICE: "CHOICE";
|
|
3199
3229
|
BUNDLE: "BUNDLE";
|
|
3200
3230
|
}>>]>>;
|
|
3231
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3232
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3233
|
+
all: "all";
|
|
3234
|
+
any: "any";
|
|
3235
|
+
}>>;
|
|
3201
3236
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3202
3237
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3203
3238
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3262,6 +3297,11 @@ declare const getMenuItemsFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
|
3262
3297
|
CHOICE: "CHOICE";
|
|
3263
3298
|
BUNDLE: "BUNDLE";
|
|
3264
3299
|
}>>]>>;
|
|
3300
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3301
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3302
|
+
all: "all";
|
|
3303
|
+
any: "any";
|
|
3304
|
+
}>>;
|
|
3265
3305
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3266
3306
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3267
3307
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3328,6 +3368,11 @@ declare class GetMenuItemsFromMenuItemModifier extends AbstractApiRequest<typeof
|
|
|
3328
3368
|
CHOICE: "CHOICE";
|
|
3329
3369
|
BUNDLE: "BUNDLE";
|
|
3330
3370
|
}>>]>>;
|
|
3371
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3372
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3373
|
+
all: "all";
|
|
3374
|
+
any: "any";
|
|
3375
|
+
}>>;
|
|
3331
3376
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3332
3377
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3333
3378
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3392,6 +3437,11 @@ declare const getMenuItemsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
3392
3437
|
CHOICE: "CHOICE";
|
|
3393
3438
|
BUNDLE: "BUNDLE";
|
|
3394
3439
|
}>>]>>;
|
|
3440
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3441
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3442
|
+
all: "all";
|
|
3443
|
+
any: "any";
|
|
3444
|
+
}>>;
|
|
3395
3445
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3396
3446
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3397
3447
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3478,6 +3528,11 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3478
3528
|
CHOICE: "CHOICE";
|
|
3479
3529
|
BUNDLE: "BUNDLE";
|
|
3480
3530
|
}>>]>>;
|
|
3531
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3532
|
+
'tags.match': z.ZodOptional<z.ZodEnum<{
|
|
3533
|
+
all: "all";
|
|
3534
|
+
any: "any";
|
|
3535
|
+
}>>;
|
|
3481
3536
|
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3482
3537
|
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3483
3538
|
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3537,25 +3592,25 @@ declare const updateMenuItemInputSchema: z.ZodObject<{
|
|
|
3537
3592
|
CHOICE: "CHOICE";
|
|
3538
3593
|
BUNDLE: "BUNDLE";
|
|
3539
3594
|
}>>;
|
|
3540
|
-
price: z.ZodOptional<z.
|
|
3595
|
+
price: z.ZodOptional<z.ZodString>;
|
|
3541
3596
|
category: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown>>>;
|
|
3542
|
-
channels: z.ZodOptional<z.
|
|
3597
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3543
3598
|
application: "application";
|
|
3544
3599
|
ecommerce: "ecommerce";
|
|
3545
3600
|
deliveroo: "deliveroo";
|
|
3546
3601
|
justeat: "justeat";
|
|
3547
3602
|
glovo: "glovo";
|
|
3548
|
-
}
|
|
3549
|
-
tags: z.ZodOptional<z.
|
|
3603
|
+
}>>>;
|
|
3604
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3550
3605
|
name: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3551
3606
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
3552
3607
|
text: z.ZodNonOptional<z.ZodString>;
|
|
3553
3608
|
}, z.core.$strip>>>;
|
|
3554
|
-
description: z.ZodOptional<z.
|
|
3609
|
+
description: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3555
3610
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
3556
3611
|
text: z.ZodNonOptional<z.ZodString>;
|
|
3557
|
-
}, z.core.$strip
|
|
3558
|
-
allergens: z.ZodOptional<z.
|
|
3612
|
+
}, z.core.$strip>>>;
|
|
3613
|
+
allergens: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3559
3614
|
"peanuts-and-derivatives": "peanuts-and-derivatives";
|
|
3560
3615
|
crustaceans: "crustaceans";
|
|
3561
3616
|
nuts: "nuts";
|
|
@@ -3571,23 +3626,23 @@ declare const updateMenuItemInputSchema: z.ZodObject<{
|
|
|
3571
3626
|
soy: "soy";
|
|
3572
3627
|
"eggs-and-derivatives": "eggs-and-derivatives";
|
|
3573
3628
|
mushrooms: "mushrooms";
|
|
3574
|
-
}
|
|
3575
|
-
diets: z.ZodOptional<z.
|
|
3629
|
+
}>>>;
|
|
3630
|
+
diets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3576
3631
|
vegan: "vegan";
|
|
3577
3632
|
vegetarian: "vegetarian";
|
|
3578
3633
|
"gluten-free": "gluten-free";
|
|
3579
3634
|
"dairy-free": "dairy-free";
|
|
3580
|
-
}
|
|
3635
|
+
}>>>;
|
|
3581
3636
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3582
|
-
containsAlcohol: z.ZodOptional<z.
|
|
3583
|
-
countable: z.ZodOptional<z.
|
|
3584
|
-
suspended: z.ZodOptional<z.
|
|
3585
|
-
compositions: z.ZodOptional<z.
|
|
3586
|
-
salesPrices: z.ZodOptional<z.
|
|
3637
|
+
containsAlcohol: z.ZodOptional<z.ZodBoolean>;
|
|
3638
|
+
countable: z.ZodOptional<z.ZodBoolean>;
|
|
3639
|
+
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
3640
|
+
compositions: z.ZodOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
3641
|
+
salesPrices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3587
3642
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
3588
|
-
price: z.
|
|
3589
|
-
}, z.core.$strip
|
|
3590
|
-
images: z.ZodOptional<z.
|
|
3643
|
+
price: z.ZodString;
|
|
3644
|
+
}, z.core.$strip>>>;
|
|
3645
|
+
images: z.ZodOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
3591
3646
|
}, z.core.$strip>;
|
|
3592
3647
|
type UpdateMenuItemInput = z.input<typeof updateMenuItemInputSchema>;
|
|
3593
3648
|
declare const updateMenuItemResponseSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
@@ -3602,25 +3657,25 @@ declare class UpdateMenuItem extends AbstractApiRequest<typeof updateMenuItemInp
|
|
|
3602
3657
|
CHOICE: "CHOICE";
|
|
3603
3658
|
BUNDLE: "BUNDLE";
|
|
3604
3659
|
}>>;
|
|
3605
|
-
price: z.ZodOptional<z.
|
|
3660
|
+
price: z.ZodOptional<z.ZodString>;
|
|
3606
3661
|
category: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_categories/:id"> | null, unknown>>>;
|
|
3607
|
-
channels: z.ZodOptional<z.
|
|
3662
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3608
3663
|
application: "application";
|
|
3609
3664
|
ecommerce: "ecommerce";
|
|
3610
3665
|
deliveroo: "deliveroo";
|
|
3611
3666
|
justeat: "justeat";
|
|
3612
3667
|
glovo: "glovo";
|
|
3613
|
-
}
|
|
3614
|
-
tags: z.ZodOptional<z.
|
|
3668
|
+
}>>>;
|
|
3669
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3615
3670
|
name: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3616
3671
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
3617
3672
|
text: z.ZodNonOptional<z.ZodString>;
|
|
3618
3673
|
}, z.core.$strip>>>;
|
|
3619
|
-
description: z.ZodOptional<z.
|
|
3674
|
+
description: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3620
3675
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
3621
3676
|
text: z.ZodNonOptional<z.ZodString>;
|
|
3622
|
-
}, z.core.$strip
|
|
3623
|
-
allergens: z.ZodOptional<z.
|
|
3677
|
+
}, z.core.$strip>>>;
|
|
3678
|
+
allergens: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3624
3679
|
"peanuts-and-derivatives": "peanuts-and-derivatives";
|
|
3625
3680
|
crustaceans: "crustaceans";
|
|
3626
3681
|
nuts: "nuts";
|
|
@@ -3636,23 +3691,23 @@ declare class UpdateMenuItem extends AbstractApiRequest<typeof updateMenuItemInp
|
|
|
3636
3691
|
soy: "soy";
|
|
3637
3692
|
"eggs-and-derivatives": "eggs-and-derivatives";
|
|
3638
3693
|
mushrooms: "mushrooms";
|
|
3639
|
-
}
|
|
3640
|
-
diets: z.ZodOptional<z.
|
|
3694
|
+
}>>>;
|
|
3695
|
+
diets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3641
3696
|
vegan: "vegan";
|
|
3642
3697
|
vegetarian: "vegetarian";
|
|
3643
3698
|
"gluten-free": "gluten-free";
|
|
3644
3699
|
"dairy-free": "dairy-free";
|
|
3645
|
-
}
|
|
3700
|
+
}>>>;
|
|
3646
3701
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3647
|
-
containsAlcohol: z.ZodOptional<z.
|
|
3648
|
-
countable: z.ZodOptional<z.
|
|
3649
|
-
suspended: z.ZodOptional<z.
|
|
3650
|
-
compositions: z.ZodOptional<z.
|
|
3651
|
-
salesPrices: z.ZodOptional<z.
|
|
3702
|
+
containsAlcohol: z.ZodOptional<z.ZodBoolean>;
|
|
3703
|
+
countable: z.ZodOptional<z.ZodBoolean>;
|
|
3704
|
+
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
3705
|
+
compositions: z.ZodOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>>;
|
|
3706
|
+
salesPrices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3652
3707
|
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
3653
|
-
price: z.
|
|
3654
|
-
}, z.core.$strip
|
|
3655
|
-
images: z.ZodOptional<z.
|
|
3708
|
+
price: z.ZodString;
|
|
3709
|
+
}, z.core.$strip>>>;
|
|
3710
|
+
images: z.ZodOptional<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
3656
3711
|
}, z.core.$strip>;
|
|
3657
3712
|
readonly outputSchema: z.ZodType<MenuItemDetails, unknown, z.core.$ZodTypeInternals<MenuItemDetails, unknown>>;
|
|
3658
3713
|
readonly querySchema: undefined;
|