@deliverart/sdk-js-menu 2.5.34 → 2.6.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.cjs +30 -69
- package/dist/index.d.cts +262 -57
- package/dist/index.d.ts +262 -57
- package/dist/index.js +39 -105
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
-
import { menuChannelSchema, menuItemAllergenSchema, menuItemDietSchema
|
|
2
|
+
import { menuChannelSchema, menuItemAllergenSchema, menuItemDietSchema } from '@deliverart/sdk-js-global-types';
|
|
3
3
|
export { MenuChannel, MenuItemAllergen, MenuItemDiet, MenuItemPriceOverrideType, MenuItemType, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemDietSchema, menuItemDiets, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemTypeSchema, menuItemTypes } from '@deliverart/sdk-js-global-types';
|
|
4
4
|
import { imageSchema } from '@deliverart/sdk-js-image';
|
|
5
5
|
import { pointOfSaleIriSchema } from '@deliverart/sdk-js-point-of-sale';
|
|
@@ -1042,9 +1042,9 @@ declare const getMenuItemCategoriesResponseSchema: z.ZodObject<{
|
|
|
1042
1042
|
}, z.core.$strip>;
|
|
1043
1043
|
type GetMenuItemCategoriesResponse = z.infer<typeof getMenuItemCategoriesResponseSchema>;
|
|
1044
1044
|
declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuItemCategoriesInputSchema, typeof getMenuItemCategoriesResponseSchema, GetMenuItemCategoriesQueryParams> {
|
|
1045
|
-
readonly method
|
|
1046
|
-
readonly contentType
|
|
1047
|
-
readonly accept
|
|
1045
|
+
readonly method: "GET";
|
|
1046
|
+
readonly contentType: "application/json";
|
|
1047
|
+
readonly accept: "application/json";
|
|
1048
1048
|
readonly inputSchema: z.ZodUndefined;
|
|
1049
1049
|
readonly outputSchema: z.ZodObject<{
|
|
1050
1050
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -1110,11 +1110,44 @@ declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuIte
|
|
|
1110
1110
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1111
1111
|
}, z.core.$strip>;
|
|
1112
1112
|
readonly headersSchema: undefined;
|
|
1113
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1114
|
+
id: z.ZodString;
|
|
1115
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1116
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1117
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1118
|
+
}, z.core.$strip>>;
|
|
1119
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1120
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1121
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1122
|
+
}, z.core.$strip>>;
|
|
1123
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1124
|
+
suspended: z.ZodBoolean;
|
|
1125
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1126
|
+
id: z.ZodString;
|
|
1127
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1128
|
+
contentUrl: z.ZodURL;
|
|
1129
|
+
filePath: z.ZodString;
|
|
1130
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1131
|
+
createdAt: z.ZodString;
|
|
1132
|
+
updatedAt: z.ZodString;
|
|
1133
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1134
|
+
id: z.ZodString;
|
|
1135
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1136
|
+
contentUrl: z.ZodURL;
|
|
1137
|
+
filePath: z.ZodString;
|
|
1138
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1139
|
+
createdAt: z.ZodString;
|
|
1140
|
+
updatedAt: z.ZodString;
|
|
1141
|
+
}, z.core.$strip>>>;
|
|
1142
|
+
}, z.core.$strip>>;
|
|
1143
|
+
createdAt: z.ZodString;
|
|
1144
|
+
updatedAt: z.ZodString;
|
|
1145
|
+
}, z.core.$strip>;
|
|
1146
|
+
readonly paginationDefaultEnabled = true;
|
|
1113
1147
|
constructor(options?: {
|
|
1114
1148
|
query?: GetMenuItemCategoriesQueryParams;
|
|
1115
1149
|
});
|
|
1116
1150
|
getPath(): string;
|
|
1117
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemCategory>;
|
|
1118
1151
|
}
|
|
1119
1152
|
|
|
1120
1153
|
declare const getMenuItemCategoriesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -1185,9 +1218,9 @@ declare const getMenuItemCategoriesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1185
1218
|
}, z.core.$strip>;
|
|
1186
1219
|
type GetMenuItemCategoriesFromPointOfSaleResponse = z.infer<typeof getMenuItemCategoriesFromPointOfSaleResponseSchema>;
|
|
1187
1220
|
declare class GetMenuItemCategoriesFromPointOfSale extends AbstractApiRequest<typeof getMenuItemCategoriesFromPointOfSaleInputSchema, typeof getMenuItemCategoriesFromPointOfSaleResponseSchema, GetMenuItemCategoriesFromPointOfSaleQueryParams> {
|
|
1188
|
-
readonly method
|
|
1189
|
-
readonly contentType
|
|
1190
|
-
readonly accept
|
|
1221
|
+
readonly method: "GET";
|
|
1222
|
+
readonly contentType: "application/json";
|
|
1223
|
+
readonly accept: "application/json";
|
|
1191
1224
|
readonly inputSchema: z.ZodUndefined;
|
|
1192
1225
|
readonly outputSchema: z.ZodObject<{
|
|
1193
1226
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -1253,12 +1286,45 @@ declare class GetMenuItemCategoriesFromPointOfSale extends AbstractApiRequest<ty
|
|
|
1253
1286
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1254
1287
|
}, z.core.$strip>;
|
|
1255
1288
|
readonly headersSchema: undefined;
|
|
1289
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1290
|
+
id: z.ZodString;
|
|
1291
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1292
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1293
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1294
|
+
}, z.core.$strip>>;
|
|
1295
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1296
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1297
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1298
|
+
}, z.core.$strip>>;
|
|
1299
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1300
|
+
suspended: z.ZodBoolean;
|
|
1301
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1302
|
+
id: z.ZodString;
|
|
1303
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1304
|
+
contentUrl: z.ZodURL;
|
|
1305
|
+
filePath: z.ZodString;
|
|
1306
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1307
|
+
createdAt: z.ZodString;
|
|
1308
|
+
updatedAt: z.ZodString;
|
|
1309
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1310
|
+
id: z.ZodString;
|
|
1311
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1312
|
+
contentUrl: z.ZodURL;
|
|
1313
|
+
filePath: z.ZodString;
|
|
1314
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1315
|
+
createdAt: z.ZodString;
|
|
1316
|
+
updatedAt: z.ZodString;
|
|
1317
|
+
}, z.core.$strip>>>;
|
|
1318
|
+
}, z.core.$strip>>;
|
|
1319
|
+
createdAt: z.ZodString;
|
|
1320
|
+
updatedAt: z.ZodString;
|
|
1321
|
+
}, z.core.$strip>;
|
|
1322
|
+
readonly paginationDefaultEnabled = true;
|
|
1256
1323
|
private readonly pointOfSaleId;
|
|
1257
1324
|
constructor(pointOfSaleId: string, options?: {
|
|
1258
1325
|
query?: GetMenuItemCategoriesFromPointOfSaleQueryParams;
|
|
1259
1326
|
});
|
|
1260
1327
|
getPath(): string;
|
|
1261
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemCategory>;
|
|
1262
1328
|
}
|
|
1263
1329
|
|
|
1264
1330
|
declare const getMenuItemCategoryDetailsInputSchema: z.ZodUndefined;
|
|
@@ -1713,9 +1779,9 @@ declare const getMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
|
1713
1779
|
}, z.core.$strip>;
|
|
1714
1780
|
type GetMenuItemModifiersResponse = z.infer<typeof getMenuItemModifiersResponseSchema>;
|
|
1715
1781
|
declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItemModifiersInputSchema, typeof getMenuItemModifiersResponseSchema, GetMenuItemModifiersQueryParams> {
|
|
1716
|
-
readonly method
|
|
1717
|
-
readonly contentType
|
|
1718
|
-
readonly accept
|
|
1782
|
+
readonly method: "GET";
|
|
1783
|
+
readonly contentType: "application/json";
|
|
1784
|
+
readonly accept: "application/json";
|
|
1719
1785
|
readonly inputSchema: z.ZodUndefined;
|
|
1720
1786
|
readonly outputSchema: z.ZodObject<{
|
|
1721
1787
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -1783,11 +1849,36 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
1783
1849
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1784
1850
|
}, z.core.$strip>;
|
|
1785
1851
|
readonly headersSchema: undefined;
|
|
1852
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1853
|
+
id: z.ZodString;
|
|
1854
|
+
targetItemType: z.ZodEnum<{
|
|
1855
|
+
ITEM: "ITEM";
|
|
1856
|
+
BUNDLE: "BUNDLE";
|
|
1857
|
+
}>;
|
|
1858
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1859
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1860
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1861
|
+
}, z.core.$strip>>;
|
|
1862
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1863
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1864
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1865
|
+
}, z.core.$strip>>;
|
|
1866
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1867
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
1868
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1869
|
+
repeatable: z.ZodBoolean;
|
|
1870
|
+
items: 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>>>;
|
|
1871
|
+
choices: 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>>>;
|
|
1872
|
+
priceOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
1873
|
+
variantOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
1874
|
+
createdAt: z.ZodString;
|
|
1875
|
+
updatedAt: z.ZodString;
|
|
1876
|
+
}, z.core.$strip>;
|
|
1877
|
+
readonly paginationDefaultEnabled = true;
|
|
1786
1878
|
constructor(options?: {
|
|
1787
1879
|
query?: GetMenuItemModifiersQueryParams;
|
|
1788
1880
|
});
|
|
1789
1881
|
getPath(): string;
|
|
1790
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemModifier>;
|
|
1791
1882
|
}
|
|
1792
1883
|
|
|
1793
1884
|
declare const getMenuItemModifiersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -1860,9 +1951,9 @@ declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1860
1951
|
}, z.core.$strip>;
|
|
1861
1952
|
type GetMenuItemModifiersFromPointOfSaleResponse = z.infer<typeof getMenuItemModifiersFromPointOfSaleResponseSchema>;
|
|
1862
1953
|
declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typeof getMenuItemModifiersFromPointOfSaleInputSchema, typeof getMenuItemModifiersFromPointOfSaleResponseSchema, GetMenuItemModifiersFromPointOfSaleQueryParams> {
|
|
1863
|
-
readonly method
|
|
1864
|
-
readonly contentType
|
|
1865
|
-
readonly accept
|
|
1954
|
+
readonly method: "GET";
|
|
1955
|
+
readonly contentType: "application/json";
|
|
1956
|
+
readonly accept: "application/json";
|
|
1866
1957
|
readonly inputSchema: z.ZodUndefined;
|
|
1867
1958
|
readonly outputSchema: z.ZodObject<{
|
|
1868
1959
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -1930,12 +2021,37 @@ declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typ
|
|
|
1930
2021
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1931
2022
|
}, z.core.$strip>;
|
|
1932
2023
|
readonly headersSchema: undefined;
|
|
2024
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2025
|
+
id: z.ZodString;
|
|
2026
|
+
targetItemType: z.ZodEnum<{
|
|
2027
|
+
ITEM: "ITEM";
|
|
2028
|
+
BUNDLE: "BUNDLE";
|
|
2029
|
+
}>;
|
|
2030
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2031
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2032
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2033
|
+
}, z.core.$strip>>;
|
|
2034
|
+
description: z.ZodArray<z.ZodObject<{
|
|
2035
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2036
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2037
|
+
}, z.core.$strip>>;
|
|
2038
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
2039
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
2040
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2041
|
+
repeatable: z.ZodBoolean;
|
|
2042
|
+
items: 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>>>;
|
|
2043
|
+
choices: 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>>>;
|
|
2044
|
+
priceOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
2045
|
+
variantOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
2046
|
+
createdAt: z.ZodString;
|
|
2047
|
+
updatedAt: z.ZodString;
|
|
2048
|
+
}, z.core.$strip>;
|
|
2049
|
+
readonly paginationDefaultEnabled = true;
|
|
1933
2050
|
private readonly pointOfSaleId;
|
|
1934
2051
|
constructor(pointOfSaleId: string, options?: {
|
|
1935
2052
|
query?: GetMenuItemModifiersFromPointOfSaleQueryParams;
|
|
1936
2053
|
});
|
|
1937
2054
|
getPath(): string;
|
|
1938
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemModifier>;
|
|
1939
2055
|
}
|
|
1940
2056
|
|
|
1941
2057
|
declare const updateMenuItemModifierInputSchema: z.ZodObject<{
|
|
@@ -2251,9 +2367,9 @@ declare const getMenuItemPriceOverridesResponseSchema: z.ZodObject<{
|
|
|
2251
2367
|
}, z.core.$strip>;
|
|
2252
2368
|
type GetMenuItemPriceOverridesResponse = z.infer<typeof getMenuItemPriceOverridesResponseSchema>;
|
|
2253
2369
|
declare class GetMenuItemPriceOverrides extends AbstractApiRequest<typeof getMenuItemPriceOverridesInputSchema, typeof getMenuItemPriceOverridesResponseSchema, GetMenuItemPriceOverridesQueryParams> {
|
|
2254
|
-
readonly method
|
|
2255
|
-
readonly contentType
|
|
2256
|
-
readonly accept
|
|
2370
|
+
readonly method: "GET";
|
|
2371
|
+
readonly contentType: "application/json";
|
|
2372
|
+
readonly accept: "application/json";
|
|
2257
2373
|
readonly inputSchema: z.ZodUndefined;
|
|
2258
2374
|
readonly outputSchema: z.ZodObject<{
|
|
2259
2375
|
data: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2317,11 +2433,30 @@ declare class GetMenuItemPriceOverrides extends AbstractApiRequest<typeof getMen
|
|
|
2317
2433
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2318
2434
|
}, z.core.$strip>;
|
|
2319
2435
|
readonly headersSchema: undefined;
|
|
2436
|
+
readonly listItemSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2437
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2438
|
+
fromItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2439
|
+
inModifier: 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>>;
|
|
2440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2441
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2442
|
+
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>>;
|
|
2443
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2444
|
+
id: z.ZodString;
|
|
2445
|
+
price: z.ZodString;
|
|
2446
|
+
referenceItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2447
|
+
suspended: z.ZodBoolean;
|
|
2448
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2449
|
+
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>>;
|
|
2450
|
+
price: z.ZodString;
|
|
2451
|
+
}, z.core.$strip>>;
|
|
2452
|
+
createdAt: z.ZodString;
|
|
2453
|
+
updatedAt: z.ZodString;
|
|
2454
|
+
}, z.core.$strip>>;
|
|
2455
|
+
readonly paginationDefaultEnabled = true;
|
|
2320
2456
|
constructor(options?: {
|
|
2321
2457
|
query?: GetMenuItemPriceOverridesQueryParams;
|
|
2322
2458
|
});
|
|
2323
2459
|
getPath(): string;
|
|
2324
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemPriceOverride>;
|
|
2325
2460
|
}
|
|
2326
2461
|
|
|
2327
2462
|
declare const getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
@@ -2380,9 +2515,9 @@ declare const getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierRes
|
|
|
2380
2515
|
}, z.core.$strip>>>;
|
|
2381
2516
|
type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponse = z.infer<typeof getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema>;
|
|
2382
2517
|
declare class GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema, typeof getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema, GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQueryParams> {
|
|
2383
|
-
readonly method
|
|
2384
|
-
readonly contentType
|
|
2385
|
-
readonly accept
|
|
2518
|
+
readonly method: "GET";
|
|
2519
|
+
readonly contentType: "application/json";
|
|
2520
|
+
readonly accept: "application/json";
|
|
2386
2521
|
readonly inputSchema: z.ZodUndefined;
|
|
2387
2522
|
readonly outputSchema: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2388
2523
|
type: z.ZodLiteral<"ITEM">;
|
|
@@ -2436,12 +2571,31 @@ declare class GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier ex
|
|
|
2436
2571
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2437
2572
|
}, z.core.$strip>;
|
|
2438
2573
|
readonly headersSchema: undefined;
|
|
2574
|
+
readonly listItemSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2575
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2576
|
+
fromItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2577
|
+
inModifier: 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>>;
|
|
2578
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2579
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2580
|
+
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>>;
|
|
2581
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2582
|
+
id: z.ZodString;
|
|
2583
|
+
price: z.ZodString;
|
|
2584
|
+
referenceItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2585
|
+
suspended: z.ZodBoolean;
|
|
2586
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2587
|
+
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>>;
|
|
2588
|
+
price: z.ZodString;
|
|
2589
|
+
}, z.core.$strip>>;
|
|
2590
|
+
createdAt: z.ZodString;
|
|
2591
|
+
updatedAt: z.ZodString;
|
|
2592
|
+
}, z.core.$strip>>;
|
|
2593
|
+
readonly paginationDefaultEnabled = false;
|
|
2439
2594
|
private readonly menuItemModifierId;
|
|
2440
2595
|
constructor(menuItemModifierId: string, options?: {
|
|
2441
2596
|
query?: GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQueryParams;
|
|
2442
2597
|
});
|
|
2443
2598
|
getPath(): string;
|
|
2444
|
-
parseResponse(data: unknown): MenuItemPriceOverride[];
|
|
2445
2599
|
}
|
|
2446
2600
|
|
|
2447
2601
|
declare const getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema: z.ZodObject<{
|
|
@@ -2500,9 +2654,9 @@ declare const getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema: z.Z
|
|
|
2500
2654
|
}, z.core.$strip>>>;
|
|
2501
2655
|
type GetMenuItemPriceOverridesAsVariantsFromMenuItemResponse = z.infer<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema>;
|
|
2502
2656
|
declare class GetMenuItemPriceOverridesAsVariantsFromMenuItem extends AbstractApiRequest<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema, typeof getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema, GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams> {
|
|
2503
|
-
readonly method
|
|
2504
|
-
readonly contentType
|
|
2505
|
-
readonly accept
|
|
2657
|
+
readonly method: "GET";
|
|
2658
|
+
readonly contentType: "application/json";
|
|
2659
|
+
readonly accept: "application/json";
|
|
2506
2660
|
readonly inputSchema: z.ZodUndefined;
|
|
2507
2661
|
readonly outputSchema: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2508
2662
|
type: z.ZodLiteral<"ITEM">;
|
|
@@ -2556,12 +2710,31 @@ declare class GetMenuItemPriceOverridesAsVariantsFromMenuItem extends AbstractAp
|
|
|
2556
2710
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2557
2711
|
}, z.core.$strip>;
|
|
2558
2712
|
readonly headersSchema: undefined;
|
|
2713
|
+
readonly listItemSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2714
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2715
|
+
fromItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2716
|
+
inModifier: 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>>;
|
|
2717
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2718
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2719
|
+
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>>;
|
|
2720
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2721
|
+
id: z.ZodString;
|
|
2722
|
+
price: z.ZodString;
|
|
2723
|
+
referenceItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2724
|
+
suspended: z.ZodBoolean;
|
|
2725
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2726
|
+
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>>;
|
|
2727
|
+
price: z.ZodString;
|
|
2728
|
+
}, z.core.$strip>>;
|
|
2729
|
+
createdAt: z.ZodString;
|
|
2730
|
+
updatedAt: z.ZodString;
|
|
2731
|
+
}, z.core.$strip>>;
|
|
2732
|
+
readonly paginationDefaultEnabled = false;
|
|
2559
2733
|
private readonly menuItemId;
|
|
2560
2734
|
constructor(menuItemId: string, options?: {
|
|
2561
2735
|
query?: GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams;
|
|
2562
2736
|
});
|
|
2563
2737
|
getPath(): string;
|
|
2564
|
-
parseResponse(data: unknown): MenuItemPriceOverride[];
|
|
2565
2738
|
}
|
|
2566
2739
|
|
|
2567
2740
|
declare const getMenuItemPriceOverridesFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
@@ -2620,9 +2793,9 @@ declare const getMenuItemPriceOverridesFromMenuItemModifierResponseSchema: z.Zod
|
|
|
2620
2793
|
}, z.core.$strip>>>;
|
|
2621
2794
|
type GetMenuItemPriceOverridesFromMenuItemModifierResponse = z.infer<typeof getMenuItemPriceOverridesFromMenuItemModifierResponseSchema>;
|
|
2622
2795
|
declare class GetMenuItemPriceOverridesFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemPriceOverridesFromMenuItemModifierInputSchema, typeof getMenuItemPriceOverridesFromMenuItemModifierResponseSchema, GetMenuItemPriceOverridesFromMenuItemModifierQueryParams> {
|
|
2623
|
-
readonly method
|
|
2624
|
-
readonly contentType
|
|
2625
|
-
readonly accept
|
|
2796
|
+
readonly method: "GET";
|
|
2797
|
+
readonly contentType: "application/json";
|
|
2798
|
+
readonly accept: "application/json";
|
|
2626
2799
|
readonly inputSchema: z.ZodUndefined;
|
|
2627
2800
|
readonly outputSchema: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2628
2801
|
type: z.ZodLiteral<"ITEM">;
|
|
@@ -2676,12 +2849,31 @@ declare class GetMenuItemPriceOverridesFromMenuItemModifier extends AbstractApiR
|
|
|
2676
2849
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2677
2850
|
}, z.core.$strip>;
|
|
2678
2851
|
readonly headersSchema: undefined;
|
|
2852
|
+
readonly listItemSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2853
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2854
|
+
fromItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2855
|
+
inModifier: 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>>;
|
|
2856
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2857
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2858
|
+
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>>;
|
|
2859
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2860
|
+
id: z.ZodString;
|
|
2861
|
+
price: z.ZodString;
|
|
2862
|
+
referenceItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2863
|
+
suspended: z.ZodBoolean;
|
|
2864
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2865
|
+
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>>;
|
|
2866
|
+
price: z.ZodString;
|
|
2867
|
+
}, z.core.$strip>>;
|
|
2868
|
+
createdAt: z.ZodString;
|
|
2869
|
+
updatedAt: z.ZodString;
|
|
2870
|
+
}, z.core.$strip>>;
|
|
2871
|
+
readonly paginationDefaultEnabled = false;
|
|
2679
2872
|
private readonly menuItemModifierId;
|
|
2680
2873
|
constructor(menuItemModifierId: string, options?: {
|
|
2681
2874
|
query?: GetMenuItemPriceOverridesFromMenuItemModifierQueryParams;
|
|
2682
2875
|
});
|
|
2683
2876
|
getPath(): string;
|
|
2684
|
-
parseResponse(data: unknown): MenuItemPriceOverride[];
|
|
2685
2877
|
}
|
|
2686
2878
|
|
|
2687
2879
|
declare const updateMenuItemPriceOverrideInputSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -3008,9 +3200,9 @@ declare const getMenuItemsResponseSchema: z.ZodObject<{
|
|
|
3008
3200
|
}, z.core.$strip>;
|
|
3009
3201
|
type GetMenuItemsResponse = z.infer<typeof getMenuItemsResponseSchema>;
|
|
3010
3202
|
declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSchema, typeof getMenuItemsResponseSchema, GetMenuItemsQueryParams> {
|
|
3011
|
-
readonly method
|
|
3012
|
-
readonly contentType
|
|
3013
|
-
readonly accept
|
|
3203
|
+
readonly method: "GET";
|
|
3204
|
+
readonly contentType: "application/json";
|
|
3205
|
+
readonly accept: "application/json";
|
|
3014
3206
|
readonly inputSchema: z.ZodUndefined;
|
|
3015
3207
|
readonly outputSchema: z.ZodObject<{
|
|
3016
3208
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
@@ -3085,11 +3277,12 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
3085
3277
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3086
3278
|
}, z.core.$strip>;
|
|
3087
3279
|
readonly headersSchema: undefined;
|
|
3280
|
+
readonly listItemSchema: z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>;
|
|
3281
|
+
readonly paginationDefaultEnabled = true;
|
|
3088
3282
|
constructor(options?: {
|
|
3089
3283
|
query?: GetMenuItemsQueryParams;
|
|
3090
3284
|
});
|
|
3091
3285
|
getPath(): string;
|
|
3092
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItem>;
|
|
3093
3286
|
}
|
|
3094
3287
|
|
|
3095
3288
|
declare const getMenuItemsAsChoicesFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
@@ -3159,9 +3352,9 @@ type GetMenuItemsAsChoicesFromMenuItemModifierInput = z.input<typeof getMenuItem
|
|
|
3159
3352
|
declare const getMenuItemsAsChoicesFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3160
3353
|
type GetMenuItemsAsChoicesFromMenuItemModifierResponse = z.infer<typeof getMenuItemsAsChoicesFromMenuItemModifierResponseSchema>;
|
|
3161
3354
|
declare class GetMenuItemsAsChoicesFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemsAsChoicesFromMenuItemModifierInputSchema, typeof getMenuItemsAsChoicesFromMenuItemModifierResponseSchema, GetMenuItemsAsChoicesFromMenuItemModifierQueryParams> {
|
|
3162
|
-
readonly method
|
|
3163
|
-
readonly contentType
|
|
3164
|
-
readonly accept
|
|
3355
|
+
readonly method: "GET";
|
|
3356
|
+
readonly contentType: "application/json";
|
|
3357
|
+
readonly accept: "application/json";
|
|
3165
3358
|
readonly inputSchema: z.ZodUndefined;
|
|
3166
3359
|
readonly outputSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3167
3360
|
readonly querySchema: z.ZodObject<{
|
|
@@ -3226,12 +3419,13 @@ declare class GetMenuItemsAsChoicesFromMenuItemModifier extends AbstractApiReque
|
|
|
3226
3419
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3227
3420
|
}, z.core.$strip>;
|
|
3228
3421
|
readonly headersSchema: undefined;
|
|
3422
|
+
readonly listItemSchema: z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>;
|
|
3423
|
+
readonly paginationDefaultEnabled = false;
|
|
3229
3424
|
private readonly menuItemModifierId;
|
|
3230
3425
|
constructor(menuItemModifierId: string, options?: {
|
|
3231
3426
|
query?: GetMenuItemsAsChoicesFromMenuItemModifierQueryParams;
|
|
3232
3427
|
});
|
|
3233
3428
|
getPath(): string;
|
|
3234
|
-
parseResponse(data: unknown): MenuItem[];
|
|
3235
3429
|
}
|
|
3236
3430
|
|
|
3237
3431
|
declare const getMenuItemsFromMenuItemCategoryQuerySchema: z.ZodObject<{
|
|
@@ -3311,9 +3505,9 @@ declare const getMenuItemsFromMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
|
3311
3505
|
}, z.core.$strip>;
|
|
3312
3506
|
type GetMenuItemsFromMenuItemCategoryResponse = z.infer<typeof getMenuItemsFromMenuItemCategoryResponseSchema>;
|
|
3313
3507
|
declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof getMenuItemsFromMenuItemCategoryInputSchema, typeof getMenuItemsFromMenuItemCategoryResponseSchema, GetMenuItemsFromMenuItemCategoryQueryParams> {
|
|
3314
|
-
readonly method
|
|
3315
|
-
readonly contentType
|
|
3316
|
-
readonly accept
|
|
3508
|
+
readonly method: "GET";
|
|
3509
|
+
readonly contentType: "application/json";
|
|
3510
|
+
readonly accept: "application/json";
|
|
3317
3511
|
readonly inputSchema: z.ZodUndefined;
|
|
3318
3512
|
readonly outputSchema: z.ZodObject<{
|
|
3319
3513
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
@@ -3388,12 +3582,13 @@ declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof
|
|
|
3388
3582
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3389
3583
|
}, z.core.$strip>;
|
|
3390
3584
|
readonly headersSchema: undefined;
|
|
3585
|
+
readonly listItemSchema: z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>;
|
|
3586
|
+
readonly paginationDefaultEnabled = true;
|
|
3391
3587
|
private readonly menuItemCategoryId;
|
|
3392
3588
|
constructor(menuItemCategoryId: string, options?: {
|
|
3393
3589
|
query?: GetMenuItemsFromMenuItemCategoryQueryParams;
|
|
3394
3590
|
});
|
|
3395
3591
|
getPath(): string;
|
|
3396
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItem>;
|
|
3397
3592
|
}
|
|
3398
3593
|
|
|
3399
3594
|
declare const getMenuItemsFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
@@ -3463,9 +3658,9 @@ type GetMenuItemsFromMenuItemModifierInput = z.input<typeof getMenuItemsFromMenu
|
|
|
3463
3658
|
declare const getMenuItemsFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3464
3659
|
type GetMenuItemsFromMenuItemModifierResponse = z.infer<typeof getMenuItemsFromMenuItemModifierResponseSchema>;
|
|
3465
3660
|
declare class GetMenuItemsFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemsFromMenuItemModifierInputSchema, typeof getMenuItemsFromMenuItemModifierResponseSchema, GetMenuItemsFromMenuItemModifierQueryParams> {
|
|
3466
|
-
readonly method
|
|
3467
|
-
readonly contentType
|
|
3468
|
-
readonly accept
|
|
3661
|
+
readonly method: "GET";
|
|
3662
|
+
readonly contentType: "application/json";
|
|
3663
|
+
readonly accept: "application/json";
|
|
3469
3664
|
readonly inputSchema: z.ZodUndefined;
|
|
3470
3665
|
readonly outputSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3471
3666
|
readonly querySchema: z.ZodObject<{
|
|
@@ -3530,12 +3725,13 @@ declare class GetMenuItemsFromMenuItemModifier extends AbstractApiRequest<typeof
|
|
|
3530
3725
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3531
3726
|
}, z.core.$strip>;
|
|
3532
3727
|
readonly headersSchema: undefined;
|
|
3728
|
+
readonly listItemSchema: z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>;
|
|
3729
|
+
readonly paginationDefaultEnabled = false;
|
|
3533
3730
|
private readonly menuItemModifierId;
|
|
3534
3731
|
constructor(menuItemModifierId: string, options?: {
|
|
3535
3732
|
query?: GetMenuItemsFromMenuItemModifierQueryParams;
|
|
3536
3733
|
});
|
|
3537
3734
|
getPath(): string;
|
|
3538
|
-
parseResponse(data: unknown): MenuItem[];
|
|
3539
3735
|
}
|
|
3540
3736
|
|
|
3541
3737
|
declare const getMenuItemsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -3615,9 +3811,9 @@ declare const getMenuItemsFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
3615
3811
|
}, z.core.$strip>;
|
|
3616
3812
|
type GetMenuItemsFromPointOfSaleResponse = z.infer<typeof getMenuItemsFromPointOfSaleResponseSchema>;
|
|
3617
3813
|
declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getMenuItemsFromPointOfSaleInputSchema, typeof getMenuItemsFromPointOfSaleResponseSchema, GetMenuItemsFromPointOfSaleQueryParams> {
|
|
3618
|
-
readonly method
|
|
3619
|
-
readonly contentType
|
|
3620
|
-
readonly accept
|
|
3814
|
+
readonly method: "GET";
|
|
3815
|
+
readonly contentType: "application/json";
|
|
3816
|
+
readonly accept: "application/json";
|
|
3621
3817
|
readonly inputSchema: z.ZodUndefined;
|
|
3622
3818
|
readonly outputSchema: z.ZodObject<{
|
|
3623
3819
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
@@ -3692,12 +3888,13 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3692
3888
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3693
3889
|
}, z.core.$strip>;
|
|
3694
3890
|
readonly headersSchema: undefined;
|
|
3891
|
+
readonly listItemSchema: z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>;
|
|
3892
|
+
readonly paginationDefaultEnabled = true;
|
|
3695
3893
|
private readonly pointOfSaleId;
|
|
3696
3894
|
constructor(pointOfSaleId: string, options?: {
|
|
3697
3895
|
query?: GetMenuItemsFromPointOfSaleQueryParams;
|
|
3698
3896
|
});
|
|
3699
3897
|
getPath(): string;
|
|
3700
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItem>;
|
|
3701
3898
|
}
|
|
3702
3899
|
|
|
3703
3900
|
declare const getMenuItemTagsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
@@ -3906,9 +4103,9 @@ declare const getMenuVersionsResponseSchema: z.ZodObject<{
|
|
|
3906
4103
|
}, z.core.$strip>;
|
|
3907
4104
|
type GetMenuVersionsResponse = z.infer<typeof getMenuVersionsResponseSchema>;
|
|
3908
4105
|
declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsInputSchema, typeof getMenuVersionsResponseSchema> {
|
|
3909
|
-
readonly method
|
|
3910
|
-
readonly contentType
|
|
3911
|
-
readonly accept
|
|
4106
|
+
readonly method: "GET";
|
|
4107
|
+
readonly contentType: "application/json";
|
|
4108
|
+
readonly accept: "application/json";
|
|
3912
4109
|
readonly inputSchema: z.ZodUndefined;
|
|
3913
4110
|
readonly outputSchema: z.ZodObject<{
|
|
3914
4111
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -3932,12 +4129,20 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
3932
4129
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3933
4130
|
}, z.core.$strip>;
|
|
3934
4131
|
readonly headersSchema: undefined;
|
|
4132
|
+
readonly listItemSchema: z.ZodObject<{
|
|
4133
|
+
id: z.ZodString;
|
|
4134
|
+
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>>;
|
|
4135
|
+
contentUrl: z.ZodURL;
|
|
4136
|
+
filePath: z.ZodString;
|
|
4137
|
+
createdAt: z.ZodString;
|
|
4138
|
+
updatedAt: z.ZodString;
|
|
4139
|
+
}, z.core.$strip>;
|
|
4140
|
+
readonly paginationDefaultEnabled = true;
|
|
3935
4141
|
private readonly pointOfSaleId;
|
|
3936
4142
|
constructor(pointOfSaleId: string, options?: {
|
|
3937
4143
|
query?: GetMenuVersionsQueryParams;
|
|
3938
4144
|
});
|
|
3939
4145
|
getPath(): string;
|
|
3940
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuVersion>;
|
|
3941
4146
|
}
|
|
3942
4147
|
|
|
3943
4148
|
export { CreateMenuItem, CreateMenuItemCategory, type CreateMenuItemCategoryInput, type CreateMenuItemCategoryResponse, type CreateMenuItemInput, CreateMenuItemModifier, type CreateMenuItemModifierInput, type CreateMenuItemModifierResponse, CreateMenuItemPriceOverride, type CreateMenuItemPriceOverrideInput, type CreateMenuItemPriceOverrideResponse, type CreateMenuItemResponse, DeleteMenuItem, DeleteMenuItemCategory, DeleteMenuItemModifier, DeleteMenuItemPriceOverride, GetMenuItemCategories, GetMenuItemCategoriesFromPointOfSale, type GetMenuItemCategoriesFromPointOfSaleInput, type GetMenuItemCategoriesFromPointOfSaleQueryParams, type GetMenuItemCategoriesFromPointOfSaleResponse, type GetMenuItemCategoriesInput, type GetMenuItemCategoriesQueryParams, type GetMenuItemCategoriesResponse, GetMenuItemCategoryDetails, type GetMenuItemCategoryDetailsInput, type GetMenuItemCategoryDetailsResponse, GetMenuItemDetails, type GetMenuItemDetailsInput, type GetMenuItemDetailsResponse, GetMenuItemModifierDetails, type GetMenuItemModifierDetailsInput, type GetMenuItemModifierDetailsResponse, GetMenuItemModifiers, GetMenuItemModifiersFromPointOfSale, type GetMenuItemModifiersFromPointOfSaleInput, type GetMenuItemModifiersFromPointOfSaleQueryParams, type GetMenuItemModifiersFromPointOfSaleResponse, type GetMenuItemModifiersInput, type GetMenuItemModifiersQueryParams, type GetMenuItemModifiersResponse, GetMenuItemPriceOverrideDetails, type GetMenuItemPriceOverrideDetailsInput, type GetMenuItemPriceOverrideDetailsResponse, GetMenuItemPriceOverrides, GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInput, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQueryParams, type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponse, GetMenuItemPriceOverridesAsVariantsFromMenuItem, type GetMenuItemPriceOverridesAsVariantsFromMenuItemInput, type GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams, type GetMenuItemPriceOverridesAsVariantsFromMenuItemResponse, GetMenuItemPriceOverridesFromMenuItemModifier, type GetMenuItemPriceOverridesFromMenuItemModifierInput, type GetMenuItemPriceOverridesFromMenuItemModifierQueryParams, type GetMenuItemPriceOverridesFromMenuItemModifierResponse, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItemTagsFromPointOfSale, type GetMenuItemTagsFromPointOfSaleInput, type GetMenuItemTagsFromPointOfSaleResponse, GetMenuItems, GetMenuItemsAsChoicesFromMenuItemModifier, type GetMenuItemsAsChoicesFromMenuItemModifierInput, type GetMenuItemsAsChoicesFromMenuItemModifierQueryParams, type GetMenuItemsAsChoicesFromMenuItemModifierResponse, GetMenuItemsFromMenuItemCategory, type GetMenuItemsFromMenuItemCategoryInput, type GetMenuItemsFromMenuItemCategoryQueryParams, type GetMenuItemsFromMenuItemCategoryResponse, GetMenuItemsFromMenuItemModifier, type GetMenuItemsFromMenuItemModifierInput, type GetMenuItemsFromMenuItemModifierQueryParams, type GetMenuItemsFromMenuItemModifierResponse, GetMenuItemsFromPointOfSale, type GetMenuItemsFromPointOfSaleInput, type GetMenuItemsFromPointOfSaleQueryParams, type GetMenuItemsFromPointOfSaleResponse, type GetMenuItemsInput, type GetMenuItemsQueryParams, type GetMenuItemsResponse, GetMenuVersionDetails, type GetMenuVersionDetailsInput, type GetMenuVersionDetailsResponse, GetMenuVersions, type GetMenuVersionsInput, type GetMenuVersionsQueryParams, type GetMenuVersionsResponse, type MenuCategoryDto, type MenuDto, type MenuItem, type MenuItemBundle, type MenuItemBundleDetails, type MenuItemCategoriesQueryParams, type MenuItemCategory, type MenuItemCategoryDetails, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemChoice, type MenuItemChoiceDetails, type MenuItemDetails, type MenuItemDto, type MenuItemIri, type MenuItemItem, type MenuItemItemDetails, type MenuItemModifier, type MenuItemModifierDetails, type MenuItemModifierIri, type MenuItemModifierNullableIri, type MenuItemModifiersQueryParams, type MenuItemNullableIri, type MenuItemPriceOverride, type MenuItemPriceOverrideDetails, type MenuItemPriceOverrideIri, type MenuItemPriceOverrideNullableIri, type MenuItemPriceOverrideSalesPriceIri, type MenuItemPriceOverrideSalesPriceNullableIri, type MenuItemPriceOverridesQueryParams, type MenuItemSalesPriceIri, type MenuItemSalesPriceNullableIri, type MenuItemVariant, type MenuItemsQueryParams, type MenuModifierDto, type MenuPriceDto, type MenuPriceOverrideDto, type MenuVersion, UpdateMenuItem, UpdateMenuItemCategory, type UpdateMenuItemCategoryInput, type UpdateMenuItemCategoryResponse, type UpdateMenuItemInput, UpdateMenuItemModifier, type UpdateMenuItemModifierInput, type UpdateMenuItemModifierResponse, UpdateMenuItemPriceOverride, type UpdateMenuItemPriceOverrideInput, type UpdateMenuItemPriceOverrideResponse, type UpdateMenuItemResponse, type WritableMenuItemPriceOverride, createMenuItemCategoryInputSchema, createMenuItemCategoryResponseSchema, createMenuItemInputSchema, createMenuItemModifierInputSchema, createMenuItemModifierResponseSchema, createMenuItemPriceOverrideInputSchema, createMenuItemPriceOverrideResponseSchema, createMenuItemResponseSchema, deleteMenuItemCategoryInputSchema, deleteMenuItemCategoryResponseSchema, deleteMenuItemInputSchema, deleteMenuItemModifierInputSchema, deleteMenuItemModifierResponseSchema, deleteMenuItemPriceOverrideInputSchema, deleteMenuItemPriceOverrideResponseSchema, deleteMenuItemResponseSchema, getMenuItemCategoriesFromPointOfSaleInputSchema, getMenuItemCategoriesFromPointOfSaleQuerySchema, getMenuItemCategoriesFromPointOfSaleResponseSchema, getMenuItemCategoriesInputSchema, getMenuItemCategoriesQuerySchema, getMenuItemCategoriesResponseSchema, getMenuItemCategoryDetailsInputSchema, getMenuItemCategoryDetailsResponseSchema, getMenuItemDetailsInputSchema, getMenuItemDetailsResponseSchema, getMenuItemModifierDetailsInputSchema, getMenuItemModifierDetailsResponseSchema, getMenuItemModifiersFromPointOfSaleInputSchema, getMenuItemModifiersFromPointOfSaleQuerySchema, getMenuItemModifiersFromPointOfSaleResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema, getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema, getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema, getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema, getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema, getMenuItemPriceOverridesFromMenuItemModifierInputSchema, getMenuItemPriceOverridesFromMenuItemModifierQuerySchema, getMenuItemPriceOverridesFromMenuItemModifierResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemTagsFromPointOfSaleInputSchema, getMenuItemTagsFromPointOfSaleResponseSchema, getMenuItemsAsChoicesFromMenuItemModifierInputSchema, getMenuItemsAsChoicesFromMenuItemModifierQuerySchema, getMenuItemsAsChoicesFromMenuItemModifierResponseSchema, getMenuItemsFromMenuItemCategoryInputSchema, getMenuItemsFromMenuItemCategoryQuerySchema, getMenuItemsFromMenuItemCategoryResponseSchema, getMenuItemsFromMenuItemModifierInputSchema, getMenuItemsFromMenuItemModifierQuerySchema, getMenuItemsFromMenuItemModifierResponseSchema, getMenuItemsFromPointOfSaleInputSchema, getMenuItemsFromPointOfSaleQuerySchema, getMenuItemsFromPointOfSaleResponseSchema, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleDetailsSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceDetailsSchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, menuItemItemDetailsSchema, menuItemItemSchema, menuItemModifierDetailsSchema, menuItemModifierIriSchema, menuItemModifierNullableIriSchema, menuItemModifierSchema, menuItemModifiersQuerySchema, menuItemNullableIriSchema, menuItemPriceOverrideDetailsSchema, menuItemPriceOverrideIriSchema, menuItemPriceOverrideNullableIriSchema, menuItemPriceOverrideSalesPriceIriSchema, menuItemPriceOverrideSalesPriceNullableIriSchema, menuItemPriceOverrideSchema, menuItemPriceOverridesQuerySchema, menuItemSalesPriceIriSchema, menuItemSalesPriceNullableIriSchema, menuItemSchema, menuItemsQuerySchema, menuModifierDtoSchema, menuPriceDtoSchema, menuPriceOverrideDtoSchema, menuVersionSchema, salesPriceDTOSchema, updateMenuItemCategoryInputSchema, updateMenuItemCategoryResponseSchema, updateMenuItemInputSchema, updateMenuItemModifierInputSchema, updateMenuItemModifierResponseSchema, updateMenuItemPriceOverrideInputSchema, updateMenuItemPriceOverrideResponseSchema, updateMenuItemResponseSchema, writableMenuItemCategorySchema, writableMenuItemModifierSchema, writableMenuItemPriceOverridePartialSchema, writableMenuItemPriceOverrideSchema, writableMenuItemSchema };
|