@deliverart/sdk-js-menu 2.5.34 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +39 -78
- package/dist/index.d.cts +573 -94
- package/dist/index.d.ts +573 -94
- package/dist/index.js +48 -114
- 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';
|
|
@@ -997,7 +997,7 @@ declare const getMenuItemCategoriesQuerySchema: z.ZodObject<{
|
|
|
997
997
|
type GetMenuItemCategoriesQueryParams = z.infer<typeof getMenuItemCategoriesQuerySchema>;
|
|
998
998
|
declare const getMenuItemCategoriesInputSchema: z.ZodUndefined;
|
|
999
999
|
type GetMenuItemCategoriesInput = z.input<typeof getMenuItemCategoriesInputSchema>;
|
|
1000
|
-
declare const getMenuItemCategoriesResponseSchema: z.ZodObject<{
|
|
1000
|
+
declare const getMenuItemCategoriesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1001
1001
|
data: z.ZodArray<z.ZodObject<{
|
|
1002
1002
|
id: z.ZodString;
|
|
1003
1003
|
name: z.ZodArray<z.ZodObject<{
|
|
@@ -1039,14 +1039,46 @@ declare const getMenuItemCategoriesResponseSchema: z.ZodObject<{
|
|
|
1039
1039
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1040
1040
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1041
1041
|
}, z.core.$strip>;
|
|
1042
|
-
}, z.core.$strip
|
|
1042
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1043
|
+
id: z.ZodString;
|
|
1044
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1045
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1046
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1047
|
+
}, z.core.$strip>>;
|
|
1048
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1049
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1050
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1051
|
+
}, z.core.$strip>>;
|
|
1052
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1053
|
+
suspended: z.ZodBoolean;
|
|
1054
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1055
|
+
id: z.ZodString;
|
|
1056
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1057
|
+
contentUrl: z.ZodURL;
|
|
1058
|
+
filePath: z.ZodString;
|
|
1059
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1060
|
+
createdAt: z.ZodString;
|
|
1061
|
+
updatedAt: z.ZodString;
|
|
1062
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1063
|
+
id: z.ZodString;
|
|
1064
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1065
|
+
contentUrl: z.ZodURL;
|
|
1066
|
+
filePath: z.ZodString;
|
|
1067
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1068
|
+
createdAt: z.ZodString;
|
|
1069
|
+
updatedAt: z.ZodString;
|
|
1070
|
+
}, z.core.$strip>>>;
|
|
1071
|
+
}, z.core.$strip>>;
|
|
1072
|
+
createdAt: z.ZodString;
|
|
1073
|
+
updatedAt: z.ZodString;
|
|
1074
|
+
}, z.core.$strip>>]>;
|
|
1043
1075
|
type GetMenuItemCategoriesResponse = z.infer<typeof getMenuItemCategoriesResponseSchema>;
|
|
1044
1076
|
declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuItemCategoriesInputSchema, typeof getMenuItemCategoriesResponseSchema, GetMenuItemCategoriesQueryParams> {
|
|
1045
|
-
readonly method
|
|
1046
|
-
readonly contentType
|
|
1047
|
-
readonly accept
|
|
1077
|
+
readonly method: "GET";
|
|
1078
|
+
readonly contentType: "application/json";
|
|
1079
|
+
readonly accept: "application/json";
|
|
1048
1080
|
readonly inputSchema: z.ZodUndefined;
|
|
1049
|
-
readonly outputSchema: z.ZodObject<{
|
|
1081
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1050
1082
|
data: z.ZodArray<z.ZodObject<{
|
|
1051
1083
|
id: z.ZodString;
|
|
1052
1084
|
name: z.ZodArray<z.ZodObject<{
|
|
@@ -1088,7 +1120,39 @@ declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuIte
|
|
|
1088
1120
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1089
1121
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1090
1122
|
}, z.core.$strip>;
|
|
1091
|
-
}, z.core.$strip
|
|
1123
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1124
|
+
id: z.ZodString;
|
|
1125
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1126
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1127
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1128
|
+
}, z.core.$strip>>;
|
|
1129
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1130
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1131
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1132
|
+
}, z.core.$strip>>;
|
|
1133
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1134
|
+
suspended: z.ZodBoolean;
|
|
1135
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1136
|
+
id: z.ZodString;
|
|
1137
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1138
|
+
contentUrl: z.ZodURL;
|
|
1139
|
+
filePath: z.ZodString;
|
|
1140
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1141
|
+
createdAt: z.ZodString;
|
|
1142
|
+
updatedAt: z.ZodString;
|
|
1143
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1144
|
+
id: z.ZodString;
|
|
1145
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1146
|
+
contentUrl: z.ZodURL;
|
|
1147
|
+
filePath: z.ZodString;
|
|
1148
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1149
|
+
createdAt: z.ZodString;
|
|
1150
|
+
updatedAt: z.ZodString;
|
|
1151
|
+
}, z.core.$strip>>>;
|
|
1152
|
+
}, z.core.$strip>>;
|
|
1153
|
+
createdAt: z.ZodString;
|
|
1154
|
+
updatedAt: z.ZodString;
|
|
1155
|
+
}, z.core.$strip>>]>;
|
|
1092
1156
|
readonly querySchema: z.ZodObject<{
|
|
1093
1157
|
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1094
1158
|
'order[nameSort]': z.ZodOptional<z.ZodEnum<{
|
|
@@ -1110,11 +1174,44 @@ declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuIte
|
|
|
1110
1174
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1111
1175
|
}, z.core.$strip>;
|
|
1112
1176
|
readonly headersSchema: undefined;
|
|
1177
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1178
|
+
id: z.ZodString;
|
|
1179
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1180
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1181
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1182
|
+
}, z.core.$strip>>;
|
|
1183
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1184
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1185
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1186
|
+
}, z.core.$strip>>;
|
|
1187
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1188
|
+
suspended: z.ZodBoolean;
|
|
1189
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1190
|
+
id: z.ZodString;
|
|
1191
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1192
|
+
contentUrl: z.ZodURL;
|
|
1193
|
+
filePath: z.ZodString;
|
|
1194
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1195
|
+
createdAt: z.ZodString;
|
|
1196
|
+
updatedAt: z.ZodString;
|
|
1197
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1198
|
+
id: z.ZodString;
|
|
1199
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1200
|
+
contentUrl: z.ZodURL;
|
|
1201
|
+
filePath: z.ZodString;
|
|
1202
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1203
|
+
createdAt: z.ZodString;
|
|
1204
|
+
updatedAt: z.ZodString;
|
|
1205
|
+
}, z.core.$strip>>>;
|
|
1206
|
+
}, z.core.$strip>>;
|
|
1207
|
+
createdAt: z.ZodString;
|
|
1208
|
+
updatedAt: z.ZodString;
|
|
1209
|
+
}, z.core.$strip>;
|
|
1210
|
+
readonly paginationDefaultEnabled = true;
|
|
1113
1211
|
constructor(options?: {
|
|
1114
1212
|
query?: GetMenuItemCategoriesQueryParams;
|
|
1115
1213
|
});
|
|
1116
1214
|
getPath(): string;
|
|
1117
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemCategory>;
|
|
1118
1215
|
}
|
|
1119
1216
|
|
|
1120
1217
|
declare const getMenuItemCategoriesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -1140,7 +1237,7 @@ declare const getMenuItemCategoriesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
1140
1237
|
type GetMenuItemCategoriesFromPointOfSaleQueryParams = z.infer<typeof getMenuItemCategoriesFromPointOfSaleQuerySchema>;
|
|
1141
1238
|
declare const getMenuItemCategoriesFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1142
1239
|
type GetMenuItemCategoriesFromPointOfSaleInput = z.input<typeof getMenuItemCategoriesFromPointOfSaleInputSchema>;
|
|
1143
|
-
declare const getMenuItemCategoriesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1240
|
+
declare const getMenuItemCategoriesFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1144
1241
|
data: z.ZodArray<z.ZodObject<{
|
|
1145
1242
|
id: z.ZodString;
|
|
1146
1243
|
name: z.ZodArray<z.ZodObject<{
|
|
@@ -1182,14 +1279,46 @@ declare const getMenuItemCategoriesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1182
1279
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1183
1280
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1184
1281
|
}, z.core.$strip>;
|
|
1185
|
-
}, z.core.$strip
|
|
1282
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1283
|
+
id: z.ZodString;
|
|
1284
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1285
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1286
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1287
|
+
}, z.core.$strip>>;
|
|
1288
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1289
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1290
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1291
|
+
}, z.core.$strip>>;
|
|
1292
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1293
|
+
suspended: z.ZodBoolean;
|
|
1294
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1295
|
+
id: z.ZodString;
|
|
1296
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1297
|
+
contentUrl: z.ZodURL;
|
|
1298
|
+
filePath: z.ZodString;
|
|
1299
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1300
|
+
createdAt: z.ZodString;
|
|
1301
|
+
updatedAt: z.ZodString;
|
|
1302
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1303
|
+
id: z.ZodString;
|
|
1304
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1305
|
+
contentUrl: z.ZodURL;
|
|
1306
|
+
filePath: z.ZodString;
|
|
1307
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1308
|
+
createdAt: z.ZodString;
|
|
1309
|
+
updatedAt: z.ZodString;
|
|
1310
|
+
}, z.core.$strip>>>;
|
|
1311
|
+
}, z.core.$strip>>;
|
|
1312
|
+
createdAt: z.ZodString;
|
|
1313
|
+
updatedAt: z.ZodString;
|
|
1314
|
+
}, z.core.$strip>>]>;
|
|
1186
1315
|
type GetMenuItemCategoriesFromPointOfSaleResponse = z.infer<typeof getMenuItemCategoriesFromPointOfSaleResponseSchema>;
|
|
1187
1316
|
declare class GetMenuItemCategoriesFromPointOfSale extends AbstractApiRequest<typeof getMenuItemCategoriesFromPointOfSaleInputSchema, typeof getMenuItemCategoriesFromPointOfSaleResponseSchema, GetMenuItemCategoriesFromPointOfSaleQueryParams> {
|
|
1188
|
-
readonly method
|
|
1189
|
-
readonly contentType
|
|
1190
|
-
readonly accept
|
|
1317
|
+
readonly method: "GET";
|
|
1318
|
+
readonly contentType: "application/json";
|
|
1319
|
+
readonly accept: "application/json";
|
|
1191
1320
|
readonly inputSchema: z.ZodUndefined;
|
|
1192
|
-
readonly outputSchema: z.ZodObject<{
|
|
1321
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1193
1322
|
data: z.ZodArray<z.ZodObject<{
|
|
1194
1323
|
id: z.ZodString;
|
|
1195
1324
|
name: z.ZodArray<z.ZodObject<{
|
|
@@ -1231,7 +1360,39 @@ declare class GetMenuItemCategoriesFromPointOfSale extends AbstractApiRequest<ty
|
|
|
1231
1360
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1232
1361
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1233
1362
|
}, z.core.$strip>;
|
|
1234
|
-
}, z.core.$strip
|
|
1363
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1364
|
+
id: z.ZodString;
|
|
1365
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1366
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1367
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1368
|
+
}, z.core.$strip>>;
|
|
1369
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1370
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1371
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1372
|
+
}, z.core.$strip>>;
|
|
1373
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1374
|
+
suspended: z.ZodBoolean;
|
|
1375
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1376
|
+
id: z.ZodString;
|
|
1377
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1378
|
+
contentUrl: z.ZodURL;
|
|
1379
|
+
filePath: z.ZodString;
|
|
1380
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1381
|
+
createdAt: z.ZodString;
|
|
1382
|
+
updatedAt: z.ZodString;
|
|
1383
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1384
|
+
id: z.ZodString;
|
|
1385
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1386
|
+
contentUrl: z.ZodURL;
|
|
1387
|
+
filePath: z.ZodString;
|
|
1388
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1389
|
+
createdAt: z.ZodString;
|
|
1390
|
+
updatedAt: z.ZodString;
|
|
1391
|
+
}, z.core.$strip>>>;
|
|
1392
|
+
}, z.core.$strip>>;
|
|
1393
|
+
createdAt: z.ZodString;
|
|
1394
|
+
updatedAt: z.ZodString;
|
|
1395
|
+
}, z.core.$strip>>]>;
|
|
1235
1396
|
readonly querySchema: z.ZodObject<{
|
|
1236
1397
|
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1237
1398
|
'order[nameSort]': z.ZodOptional<z.ZodEnum<{
|
|
@@ -1253,12 +1414,45 @@ declare class GetMenuItemCategoriesFromPointOfSale extends AbstractApiRequest<ty
|
|
|
1253
1414
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1254
1415
|
}, z.core.$strip>;
|
|
1255
1416
|
readonly headersSchema: undefined;
|
|
1417
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1418
|
+
id: z.ZodString;
|
|
1419
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1420
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1421
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1422
|
+
}, z.core.$strip>>;
|
|
1423
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1424
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1425
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1426
|
+
}, z.core.$strip>>;
|
|
1427
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1428
|
+
suspended: z.ZodBoolean;
|
|
1429
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1430
|
+
id: z.ZodString;
|
|
1431
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1432
|
+
contentUrl: z.ZodURL;
|
|
1433
|
+
filePath: z.ZodString;
|
|
1434
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1435
|
+
createdAt: z.ZodString;
|
|
1436
|
+
updatedAt: z.ZodString;
|
|
1437
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1438
|
+
id: z.ZodString;
|
|
1439
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1440
|
+
contentUrl: z.ZodURL;
|
|
1441
|
+
filePath: z.ZodString;
|
|
1442
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1443
|
+
createdAt: z.ZodString;
|
|
1444
|
+
updatedAt: z.ZodString;
|
|
1445
|
+
}, z.core.$strip>>>;
|
|
1446
|
+
}, z.core.$strip>>;
|
|
1447
|
+
createdAt: z.ZodString;
|
|
1448
|
+
updatedAt: z.ZodString;
|
|
1449
|
+
}, z.core.$strip>;
|
|
1450
|
+
readonly paginationDefaultEnabled = true;
|
|
1256
1451
|
private readonly pointOfSaleId;
|
|
1257
1452
|
constructor(pointOfSaleId: string, options?: {
|
|
1258
1453
|
query?: GetMenuItemCategoriesFromPointOfSaleQueryParams;
|
|
1259
1454
|
});
|
|
1260
1455
|
getPath(): string;
|
|
1261
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemCategory>;
|
|
1262
1456
|
}
|
|
1263
1457
|
|
|
1264
1458
|
declare const getMenuItemCategoryDetailsInputSchema: z.ZodUndefined;
|
|
@@ -1676,7 +1870,7 @@ declare const getMenuItemModifiersQuerySchema: z.ZodObject<{
|
|
|
1676
1870
|
type GetMenuItemModifiersQueryParams = z.infer<typeof getMenuItemModifiersQuerySchema>;
|
|
1677
1871
|
declare const getMenuItemModifiersInputSchema: z.ZodUndefined;
|
|
1678
1872
|
type GetMenuItemModifiersInput = z.input<typeof getMenuItemModifiersInputSchema>;
|
|
1679
|
-
declare const getMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
1873
|
+
declare const getMenuItemModifiersResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1680
1874
|
data: z.ZodArray<z.ZodObject<{
|
|
1681
1875
|
id: z.ZodString;
|
|
1682
1876
|
targetItemType: z.ZodEnum<{
|
|
@@ -1710,14 +1904,38 @@ declare const getMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
|
1710
1904
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1711
1905
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1712
1906
|
}, z.core.$strip>;
|
|
1713
|
-
}, z.core.$strip
|
|
1907
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1908
|
+
id: z.ZodString;
|
|
1909
|
+
targetItemType: z.ZodEnum<{
|
|
1910
|
+
ITEM: "ITEM";
|
|
1911
|
+
BUNDLE: "BUNDLE";
|
|
1912
|
+
}>;
|
|
1913
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1914
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1915
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1916
|
+
}, z.core.$strip>>;
|
|
1917
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1918
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1919
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1920
|
+
}, z.core.$strip>>;
|
|
1921
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1922
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
1923
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1924
|
+
repeatable: z.ZodBoolean;
|
|
1925
|
+
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>>>;
|
|
1926
|
+
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>>>;
|
|
1927
|
+
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>>>;
|
|
1928
|
+
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>>>;
|
|
1929
|
+
createdAt: z.ZodString;
|
|
1930
|
+
updatedAt: z.ZodString;
|
|
1931
|
+
}, z.core.$strip>>]>;
|
|
1714
1932
|
type GetMenuItemModifiersResponse = z.infer<typeof getMenuItemModifiersResponseSchema>;
|
|
1715
1933
|
declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItemModifiersInputSchema, typeof getMenuItemModifiersResponseSchema, GetMenuItemModifiersQueryParams> {
|
|
1716
|
-
readonly method
|
|
1717
|
-
readonly contentType
|
|
1718
|
-
readonly accept
|
|
1934
|
+
readonly method: "GET";
|
|
1935
|
+
readonly contentType: "application/json";
|
|
1936
|
+
readonly accept: "application/json";
|
|
1719
1937
|
readonly inputSchema: z.ZodUndefined;
|
|
1720
|
-
readonly outputSchema: z.ZodObject<{
|
|
1938
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1721
1939
|
data: z.ZodArray<z.ZodObject<{
|
|
1722
1940
|
id: z.ZodString;
|
|
1723
1941
|
targetItemType: z.ZodEnum<{
|
|
@@ -1751,7 +1969,31 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
1751
1969
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1752
1970
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1753
1971
|
}, z.core.$strip>;
|
|
1754
|
-
}, z.core.$strip
|
|
1972
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1973
|
+
id: z.ZodString;
|
|
1974
|
+
targetItemType: z.ZodEnum<{
|
|
1975
|
+
ITEM: "ITEM";
|
|
1976
|
+
BUNDLE: "BUNDLE";
|
|
1977
|
+
}>;
|
|
1978
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1979
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1980
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1981
|
+
}, z.core.$strip>>;
|
|
1982
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1983
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1984
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1985
|
+
}, z.core.$strip>>;
|
|
1986
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1987
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
1988
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1989
|
+
repeatable: z.ZodBoolean;
|
|
1990
|
+
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>>>;
|
|
1991
|
+
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>>>;
|
|
1992
|
+
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>>>;
|
|
1993
|
+
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>>>;
|
|
1994
|
+
createdAt: z.ZodString;
|
|
1995
|
+
updatedAt: z.ZodString;
|
|
1996
|
+
}, z.core.$strip>>]>;
|
|
1755
1997
|
readonly querySchema: z.ZodObject<{
|
|
1756
1998
|
repeatable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1757
1999
|
'minSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1782,12 +2024,37 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
1782
2024
|
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1783
2025
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1784
2026
|
}, z.core.$strip>;
|
|
1785
|
-
readonly headersSchema: undefined;
|
|
2027
|
+
readonly headersSchema: undefined;
|
|
2028
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2029
|
+
id: z.ZodString;
|
|
2030
|
+
targetItemType: z.ZodEnum<{
|
|
2031
|
+
ITEM: "ITEM";
|
|
2032
|
+
BUNDLE: "BUNDLE";
|
|
2033
|
+
}>;
|
|
2034
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2035
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2036
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2037
|
+
}, z.core.$strip>>;
|
|
2038
|
+
description: z.ZodArray<z.ZodObject<{
|
|
2039
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2040
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2041
|
+
}, z.core.$strip>>;
|
|
2042
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
2043
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
2044
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2045
|
+
repeatable: z.ZodBoolean;
|
|
2046
|
+
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>>>;
|
|
2047
|
+
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>>>;
|
|
2048
|
+
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>>>;
|
|
2049
|
+
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>>>;
|
|
2050
|
+
createdAt: z.ZodString;
|
|
2051
|
+
updatedAt: z.ZodString;
|
|
2052
|
+
}, z.core.$strip>;
|
|
2053
|
+
readonly paginationDefaultEnabled = true;
|
|
1786
2054
|
constructor(options?: {
|
|
1787
2055
|
query?: GetMenuItemModifiersQueryParams;
|
|
1788
2056
|
});
|
|
1789
2057
|
getPath(): string;
|
|
1790
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemModifier>;
|
|
1791
2058
|
}
|
|
1792
2059
|
|
|
1793
2060
|
declare const getMenuItemModifiersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -1823,7 +2090,7 @@ declare const getMenuItemModifiersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
1823
2090
|
type GetMenuItemModifiersFromPointOfSaleQueryParams = z.infer<typeof getMenuItemModifiersFromPointOfSaleQuerySchema>;
|
|
1824
2091
|
declare const getMenuItemModifiersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1825
2092
|
type GetMenuItemModifiersFromPointOfSaleInput = z.input<typeof getMenuItemModifiersFromPointOfSaleInputSchema>;
|
|
1826
|
-
declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
2093
|
+
declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1827
2094
|
data: z.ZodArray<z.ZodObject<{
|
|
1828
2095
|
id: z.ZodString;
|
|
1829
2096
|
targetItemType: z.ZodEnum<{
|
|
@@ -1857,14 +2124,38 @@ declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1857
2124
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1858
2125
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1859
2126
|
}, z.core.$strip>;
|
|
1860
|
-
}, z.core.$strip
|
|
2127
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2128
|
+
id: z.ZodString;
|
|
2129
|
+
targetItemType: z.ZodEnum<{
|
|
2130
|
+
ITEM: "ITEM";
|
|
2131
|
+
BUNDLE: "BUNDLE";
|
|
2132
|
+
}>;
|
|
2133
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2134
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2135
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2136
|
+
}, z.core.$strip>>;
|
|
2137
|
+
description: z.ZodArray<z.ZodObject<{
|
|
2138
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2139
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2140
|
+
}, z.core.$strip>>;
|
|
2141
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
2142
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
2143
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2144
|
+
repeatable: z.ZodBoolean;
|
|
2145
|
+
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>>>;
|
|
2146
|
+
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>>>;
|
|
2147
|
+
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>>>;
|
|
2148
|
+
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>>>;
|
|
2149
|
+
createdAt: z.ZodString;
|
|
2150
|
+
updatedAt: z.ZodString;
|
|
2151
|
+
}, z.core.$strip>>]>;
|
|
1861
2152
|
type GetMenuItemModifiersFromPointOfSaleResponse = z.infer<typeof getMenuItemModifiersFromPointOfSaleResponseSchema>;
|
|
1862
2153
|
declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typeof getMenuItemModifiersFromPointOfSaleInputSchema, typeof getMenuItemModifiersFromPointOfSaleResponseSchema, GetMenuItemModifiersFromPointOfSaleQueryParams> {
|
|
1863
|
-
readonly method
|
|
1864
|
-
readonly contentType
|
|
1865
|
-
readonly accept
|
|
2154
|
+
readonly method: "GET";
|
|
2155
|
+
readonly contentType: "application/json";
|
|
2156
|
+
readonly accept: "application/json";
|
|
1866
2157
|
readonly inputSchema: z.ZodUndefined;
|
|
1867
|
-
readonly outputSchema: z.ZodObject<{
|
|
2158
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1868
2159
|
data: z.ZodArray<z.ZodObject<{
|
|
1869
2160
|
id: z.ZodString;
|
|
1870
2161
|
targetItemType: z.ZodEnum<{
|
|
@@ -1898,7 +2189,31 @@ declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typ
|
|
|
1898
2189
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1899
2190
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1900
2191
|
}, z.core.$strip>;
|
|
1901
|
-
}, z.core.$strip
|
|
2192
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2193
|
+
id: z.ZodString;
|
|
2194
|
+
targetItemType: z.ZodEnum<{
|
|
2195
|
+
ITEM: "ITEM";
|
|
2196
|
+
BUNDLE: "BUNDLE";
|
|
2197
|
+
}>;
|
|
2198
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2199
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2200
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2201
|
+
}, z.core.$strip>>;
|
|
2202
|
+
description: z.ZodArray<z.ZodObject<{
|
|
2203
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2204
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2205
|
+
}, z.core.$strip>>;
|
|
2206
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
2207
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
2208
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2209
|
+
repeatable: z.ZodBoolean;
|
|
2210
|
+
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>>>;
|
|
2211
|
+
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>>>;
|
|
2212
|
+
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>>>;
|
|
2213
|
+
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>>>;
|
|
2214
|
+
createdAt: z.ZodString;
|
|
2215
|
+
updatedAt: z.ZodString;
|
|
2216
|
+
}, z.core.$strip>>]>;
|
|
1902
2217
|
readonly querySchema: z.ZodObject<{
|
|
1903
2218
|
repeatable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1904
2219
|
'minSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1930,12 +2245,37 @@ declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typ
|
|
|
1930
2245
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1931
2246
|
}, z.core.$strip>;
|
|
1932
2247
|
readonly headersSchema: undefined;
|
|
2248
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2249
|
+
id: z.ZodString;
|
|
2250
|
+
targetItemType: z.ZodEnum<{
|
|
2251
|
+
ITEM: "ITEM";
|
|
2252
|
+
BUNDLE: "BUNDLE";
|
|
2253
|
+
}>;
|
|
2254
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2255
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2256
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2257
|
+
}, z.core.$strip>>;
|
|
2258
|
+
description: z.ZodArray<z.ZodObject<{
|
|
2259
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2260
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2261
|
+
}, z.core.$strip>>;
|
|
2262
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
2263
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
2264
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2265
|
+
repeatable: z.ZodBoolean;
|
|
2266
|
+
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>>>;
|
|
2267
|
+
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>>>;
|
|
2268
|
+
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>>>;
|
|
2269
|
+
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>>>;
|
|
2270
|
+
createdAt: z.ZodString;
|
|
2271
|
+
updatedAt: z.ZodString;
|
|
2272
|
+
}, z.core.$strip>;
|
|
2273
|
+
readonly paginationDefaultEnabled = true;
|
|
1933
2274
|
private readonly pointOfSaleId;
|
|
1934
2275
|
constructor(pointOfSaleId: string, options?: {
|
|
1935
2276
|
query?: GetMenuItemModifiersFromPointOfSaleQueryParams;
|
|
1936
2277
|
});
|
|
1937
2278
|
getPath(): string;
|
|
1938
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemModifier>;
|
|
1939
2279
|
}
|
|
1940
2280
|
|
|
1941
2281
|
declare const updateMenuItemModifierInputSchema: z.ZodObject<{
|
|
@@ -2220,7 +2560,7 @@ declare const getMenuItemPriceOverridesQuerySchema: z.ZodObject<{
|
|
|
2220
2560
|
type GetMenuItemPriceOverridesQueryParams = z.infer<typeof getMenuItemPriceOverridesQuerySchema>;
|
|
2221
2561
|
declare const getMenuItemPriceOverridesInputSchema: z.ZodUndefined;
|
|
2222
2562
|
type GetMenuItemPriceOverridesInput = z.input<typeof getMenuItemPriceOverridesInputSchema>;
|
|
2223
|
-
declare const getMenuItemPriceOverridesResponseSchema: z.ZodObject<{
|
|
2563
|
+
declare const getMenuItemPriceOverridesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2224
2564
|
data: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2225
2565
|
type: z.ZodLiteral<"ITEM">;
|
|
2226
2566
|
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>>;
|
|
@@ -2248,14 +2588,32 @@ declare const getMenuItemPriceOverridesResponseSchema: z.ZodObject<{
|
|
|
2248
2588
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2249
2589
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2250
2590
|
}, z.core.$strip>;
|
|
2251
|
-
}, z.core.$strip
|
|
2591
|
+
}, z.core.$strip>, z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2592
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2593
|
+
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>>;
|
|
2594
|
+
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>>;
|
|
2595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2596
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2597
|
+
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>>;
|
|
2598
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2599
|
+
id: z.ZodString;
|
|
2600
|
+
price: z.ZodString;
|
|
2601
|
+
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>>;
|
|
2602
|
+
suspended: z.ZodBoolean;
|
|
2603
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2604
|
+
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>>;
|
|
2605
|
+
price: z.ZodString;
|
|
2606
|
+
}, z.core.$strip>>;
|
|
2607
|
+
createdAt: z.ZodString;
|
|
2608
|
+
updatedAt: z.ZodString;
|
|
2609
|
+
}, z.core.$strip>>>]>;
|
|
2252
2610
|
type GetMenuItemPriceOverridesResponse = z.infer<typeof getMenuItemPriceOverridesResponseSchema>;
|
|
2253
2611
|
declare class GetMenuItemPriceOverrides extends AbstractApiRequest<typeof getMenuItemPriceOverridesInputSchema, typeof getMenuItemPriceOverridesResponseSchema, GetMenuItemPriceOverridesQueryParams> {
|
|
2254
|
-
readonly method
|
|
2255
|
-
readonly contentType
|
|
2256
|
-
readonly accept
|
|
2612
|
+
readonly method: "GET";
|
|
2613
|
+
readonly contentType: "application/json";
|
|
2614
|
+
readonly accept: "application/json";
|
|
2257
2615
|
readonly inputSchema: z.ZodUndefined;
|
|
2258
|
-
readonly outputSchema: z.ZodObject<{
|
|
2616
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2259
2617
|
data: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2260
2618
|
type: z.ZodLiteral<"ITEM">;
|
|
2261
2619
|
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>>;
|
|
@@ -2283,7 +2641,25 @@ declare class GetMenuItemPriceOverrides extends AbstractApiRequest<typeof getMen
|
|
|
2283
2641
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2284
2642
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2285
2643
|
}, z.core.$strip>;
|
|
2286
|
-
}, z.core.$strip
|
|
2644
|
+
}, z.core.$strip>, z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2645
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2646
|
+
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>>;
|
|
2647
|
+
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>>;
|
|
2648
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2649
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2650
|
+
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>>;
|
|
2651
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2652
|
+
id: z.ZodString;
|
|
2653
|
+
price: z.ZodString;
|
|
2654
|
+
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>>;
|
|
2655
|
+
suspended: z.ZodBoolean;
|
|
2656
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2657
|
+
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>>;
|
|
2658
|
+
price: z.ZodString;
|
|
2659
|
+
}, z.core.$strip>>;
|
|
2660
|
+
createdAt: z.ZodString;
|
|
2661
|
+
updatedAt: z.ZodString;
|
|
2662
|
+
}, z.core.$strip>>>]>;
|
|
2287
2663
|
readonly querySchema: z.ZodObject<{
|
|
2288
2664
|
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2289
2665
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -2317,11 +2693,30 @@ declare class GetMenuItemPriceOverrides extends AbstractApiRequest<typeof getMen
|
|
|
2317
2693
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2318
2694
|
}, z.core.$strip>;
|
|
2319
2695
|
readonly headersSchema: undefined;
|
|
2696
|
+
readonly listItemSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2697
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2698
|
+
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>>;
|
|
2699
|
+
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>>;
|
|
2700
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2701
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2702
|
+
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>>;
|
|
2703
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2704
|
+
id: z.ZodString;
|
|
2705
|
+
price: z.ZodString;
|
|
2706
|
+
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>>;
|
|
2707
|
+
suspended: z.ZodBoolean;
|
|
2708
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2709
|
+
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>>;
|
|
2710
|
+
price: z.ZodString;
|
|
2711
|
+
}, z.core.$strip>>;
|
|
2712
|
+
createdAt: z.ZodString;
|
|
2713
|
+
updatedAt: z.ZodString;
|
|
2714
|
+
}, z.core.$strip>>;
|
|
2715
|
+
readonly paginationDefaultEnabled = true;
|
|
2320
2716
|
constructor(options?: {
|
|
2321
2717
|
query?: GetMenuItemPriceOverridesQueryParams;
|
|
2322
2718
|
});
|
|
2323
2719
|
getPath(): string;
|
|
2324
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemPriceOverride>;
|
|
2325
2720
|
}
|
|
2326
2721
|
|
|
2327
2722
|
declare const getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
@@ -2380,9 +2775,9 @@ declare const getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierRes
|
|
|
2380
2775
|
}, z.core.$strip>>>;
|
|
2381
2776
|
type GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponse = z.infer<typeof getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema>;
|
|
2382
2777
|
declare class GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierInputSchema, typeof getMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierResponseSchema, GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQueryParams> {
|
|
2383
|
-
readonly method
|
|
2384
|
-
readonly contentType
|
|
2385
|
-
readonly accept
|
|
2778
|
+
readonly method: "GET";
|
|
2779
|
+
readonly contentType: "application/json";
|
|
2780
|
+
readonly accept: "application/json";
|
|
2386
2781
|
readonly inputSchema: z.ZodUndefined;
|
|
2387
2782
|
readonly outputSchema: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2388
2783
|
type: z.ZodLiteral<"ITEM">;
|
|
@@ -2436,12 +2831,31 @@ declare class GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifier ex
|
|
|
2436
2831
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2437
2832
|
}, z.core.$strip>;
|
|
2438
2833
|
readonly headersSchema: undefined;
|
|
2834
|
+
readonly listItemSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2835
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2836
|
+
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>>;
|
|
2837
|
+
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>>;
|
|
2838
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2839
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2840
|
+
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>>;
|
|
2841
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2842
|
+
id: z.ZodString;
|
|
2843
|
+
price: z.ZodString;
|
|
2844
|
+
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>>;
|
|
2845
|
+
suspended: z.ZodBoolean;
|
|
2846
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2847
|
+
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>>;
|
|
2848
|
+
price: z.ZodString;
|
|
2849
|
+
}, z.core.$strip>>;
|
|
2850
|
+
createdAt: z.ZodString;
|
|
2851
|
+
updatedAt: z.ZodString;
|
|
2852
|
+
}, z.core.$strip>>;
|
|
2853
|
+
readonly paginationDefaultEnabled = false;
|
|
2439
2854
|
private readonly menuItemModifierId;
|
|
2440
2855
|
constructor(menuItemModifierId: string, options?: {
|
|
2441
2856
|
query?: GetMenuItemPriceOverridesAsVariantOverridesFromMenuItemModifierQueryParams;
|
|
2442
2857
|
});
|
|
2443
2858
|
getPath(): string;
|
|
2444
|
-
parseResponse(data: unknown): MenuItemPriceOverride[];
|
|
2445
2859
|
}
|
|
2446
2860
|
|
|
2447
2861
|
declare const getMenuItemPriceOverridesAsVariantsFromMenuItemQuerySchema: z.ZodObject<{
|
|
@@ -2500,9 +2914,9 @@ declare const getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema: z.Z
|
|
|
2500
2914
|
}, z.core.$strip>>>;
|
|
2501
2915
|
type GetMenuItemPriceOverridesAsVariantsFromMenuItemResponse = z.infer<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema>;
|
|
2502
2916
|
declare class GetMenuItemPriceOverridesAsVariantsFromMenuItem extends AbstractApiRequest<typeof getMenuItemPriceOverridesAsVariantsFromMenuItemInputSchema, typeof getMenuItemPriceOverridesAsVariantsFromMenuItemResponseSchema, GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams> {
|
|
2503
|
-
readonly method
|
|
2504
|
-
readonly contentType
|
|
2505
|
-
readonly accept
|
|
2917
|
+
readonly method: "GET";
|
|
2918
|
+
readonly contentType: "application/json";
|
|
2919
|
+
readonly accept: "application/json";
|
|
2506
2920
|
readonly inputSchema: z.ZodUndefined;
|
|
2507
2921
|
readonly outputSchema: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2508
2922
|
type: z.ZodLiteral<"ITEM">;
|
|
@@ -2556,12 +2970,31 @@ declare class GetMenuItemPriceOverridesAsVariantsFromMenuItem extends AbstractAp
|
|
|
2556
2970
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2557
2971
|
}, z.core.$strip>;
|
|
2558
2972
|
readonly headersSchema: undefined;
|
|
2973
|
+
readonly listItemSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2974
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2975
|
+
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>>;
|
|
2976
|
+
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>>;
|
|
2977
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2978
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2979
|
+
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>>;
|
|
2980
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2981
|
+
id: z.ZodString;
|
|
2982
|
+
price: z.ZodString;
|
|
2983
|
+
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>>;
|
|
2984
|
+
suspended: z.ZodBoolean;
|
|
2985
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2986
|
+
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>>;
|
|
2987
|
+
price: z.ZodString;
|
|
2988
|
+
}, z.core.$strip>>;
|
|
2989
|
+
createdAt: z.ZodString;
|
|
2990
|
+
updatedAt: z.ZodString;
|
|
2991
|
+
}, z.core.$strip>>;
|
|
2992
|
+
readonly paginationDefaultEnabled = false;
|
|
2559
2993
|
private readonly menuItemId;
|
|
2560
2994
|
constructor(menuItemId: string, options?: {
|
|
2561
2995
|
query?: GetMenuItemPriceOverridesAsVariantsFromMenuItemQueryParams;
|
|
2562
2996
|
});
|
|
2563
2997
|
getPath(): string;
|
|
2564
|
-
parseResponse(data: unknown): MenuItemPriceOverride[];
|
|
2565
2998
|
}
|
|
2566
2999
|
|
|
2567
3000
|
declare const getMenuItemPriceOverridesFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
@@ -2620,9 +3053,9 @@ declare const getMenuItemPriceOverridesFromMenuItemModifierResponseSchema: z.Zod
|
|
|
2620
3053
|
}, z.core.$strip>>>;
|
|
2621
3054
|
type GetMenuItemPriceOverridesFromMenuItemModifierResponse = z.infer<typeof getMenuItemPriceOverridesFromMenuItemModifierResponseSchema>;
|
|
2622
3055
|
declare class GetMenuItemPriceOverridesFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemPriceOverridesFromMenuItemModifierInputSchema, typeof getMenuItemPriceOverridesFromMenuItemModifierResponseSchema, GetMenuItemPriceOverridesFromMenuItemModifierQueryParams> {
|
|
2623
|
-
readonly method
|
|
2624
|
-
readonly contentType
|
|
2625
|
-
readonly accept
|
|
3056
|
+
readonly method: "GET";
|
|
3057
|
+
readonly contentType: "application/json";
|
|
3058
|
+
readonly accept: "application/json";
|
|
2626
3059
|
readonly inputSchema: z.ZodUndefined;
|
|
2627
3060
|
readonly outputSchema: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2628
3061
|
type: z.ZodLiteral<"ITEM">;
|
|
@@ -2676,12 +3109,31 @@ declare class GetMenuItemPriceOverridesFromMenuItemModifier extends AbstractApiR
|
|
|
2676
3109
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2677
3110
|
}, z.core.$strip>;
|
|
2678
3111
|
readonly headersSchema: undefined;
|
|
3112
|
+
readonly listItemSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3113
|
+
type: z.ZodLiteral<"ITEM">;
|
|
3114
|
+
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>>;
|
|
3115
|
+
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>>;
|
|
3116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3117
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
3118
|
+
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>>;
|
|
3119
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
3120
|
+
id: z.ZodString;
|
|
3121
|
+
price: z.ZodString;
|
|
3122
|
+
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>>;
|
|
3123
|
+
suspended: z.ZodBoolean;
|
|
3124
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
3125
|
+
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>>;
|
|
3126
|
+
price: z.ZodString;
|
|
3127
|
+
}, z.core.$strip>>;
|
|
3128
|
+
createdAt: z.ZodString;
|
|
3129
|
+
updatedAt: z.ZodString;
|
|
3130
|
+
}, z.core.$strip>>;
|
|
3131
|
+
readonly paginationDefaultEnabled = false;
|
|
2679
3132
|
private readonly menuItemModifierId;
|
|
2680
3133
|
constructor(menuItemModifierId: string, options?: {
|
|
2681
3134
|
query?: GetMenuItemPriceOverridesFromMenuItemModifierQueryParams;
|
|
2682
3135
|
});
|
|
2683
3136
|
getPath(): string;
|
|
2684
|
-
parseResponse(data: unknown): MenuItemPriceOverride[];
|
|
2685
3137
|
}
|
|
2686
3138
|
|
|
2687
3139
|
declare const updateMenuItemPriceOverrideInputSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2995,7 +3447,7 @@ declare const getMenuItemsQuerySchema: z.ZodObject<{
|
|
|
2995
3447
|
type GetMenuItemsQueryParams = z.infer<typeof getMenuItemsQuerySchema>;
|
|
2996
3448
|
declare const getMenuItemsInputSchema: z.ZodUndefined;
|
|
2997
3449
|
type GetMenuItemsInput = z.input<typeof getMenuItemsInputSchema>;
|
|
2998
|
-
declare const getMenuItemsResponseSchema: z.ZodObject<{
|
|
3450
|
+
declare const getMenuItemsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2999
3451
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3000
3452
|
pagination: z.ZodObject<{
|
|
3001
3453
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3005,14 +3457,14 @@ declare const getMenuItemsResponseSchema: z.ZodObject<{
|
|
|
3005
3457
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3006
3458
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3007
3459
|
}, z.core.$strip>;
|
|
3008
|
-
}, z.core.$strip>;
|
|
3460
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3009
3461
|
type GetMenuItemsResponse = z.infer<typeof getMenuItemsResponseSchema>;
|
|
3010
3462
|
declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSchema, typeof getMenuItemsResponseSchema, GetMenuItemsQueryParams> {
|
|
3011
|
-
readonly method
|
|
3012
|
-
readonly contentType
|
|
3013
|
-
readonly accept
|
|
3463
|
+
readonly method: "GET";
|
|
3464
|
+
readonly contentType: "application/json";
|
|
3465
|
+
readonly accept: "application/json";
|
|
3014
3466
|
readonly inputSchema: z.ZodUndefined;
|
|
3015
|
-
readonly outputSchema: z.ZodObject<{
|
|
3467
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3016
3468
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3017
3469
|
pagination: z.ZodObject<{
|
|
3018
3470
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3022,7 +3474,7 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
3022
3474
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3023
3475
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3024
3476
|
}, z.core.$strip>;
|
|
3025
|
-
}, z.core.$strip>;
|
|
3477
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3026
3478
|
readonly querySchema: z.ZodObject<{
|
|
3027
3479
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, 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>>, z.ZodArray<z.ZodUUID>, 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>>>]>>;
|
|
3028
3480
|
countable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -3085,11 +3537,12 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
3085
3537
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3086
3538
|
}, z.core.$strip>;
|
|
3087
3539
|
readonly headersSchema: undefined;
|
|
3540
|
+
readonly listItemSchema: z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>;
|
|
3541
|
+
readonly paginationDefaultEnabled = true;
|
|
3088
3542
|
constructor(options?: {
|
|
3089
3543
|
query?: GetMenuItemsQueryParams;
|
|
3090
3544
|
});
|
|
3091
3545
|
getPath(): string;
|
|
3092
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItem>;
|
|
3093
3546
|
}
|
|
3094
3547
|
|
|
3095
3548
|
declare const getMenuItemsAsChoicesFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
@@ -3159,9 +3612,9 @@ type GetMenuItemsAsChoicesFromMenuItemModifierInput = z.input<typeof getMenuItem
|
|
|
3159
3612
|
declare const getMenuItemsAsChoicesFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3160
3613
|
type GetMenuItemsAsChoicesFromMenuItemModifierResponse = z.infer<typeof getMenuItemsAsChoicesFromMenuItemModifierResponseSchema>;
|
|
3161
3614
|
declare class GetMenuItemsAsChoicesFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemsAsChoicesFromMenuItemModifierInputSchema, typeof getMenuItemsAsChoicesFromMenuItemModifierResponseSchema, GetMenuItemsAsChoicesFromMenuItemModifierQueryParams> {
|
|
3162
|
-
readonly method
|
|
3163
|
-
readonly contentType
|
|
3164
|
-
readonly accept
|
|
3615
|
+
readonly method: "GET";
|
|
3616
|
+
readonly contentType: "application/json";
|
|
3617
|
+
readonly accept: "application/json";
|
|
3165
3618
|
readonly inputSchema: z.ZodUndefined;
|
|
3166
3619
|
readonly outputSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3167
3620
|
readonly querySchema: z.ZodObject<{
|
|
@@ -3226,12 +3679,13 @@ declare class GetMenuItemsAsChoicesFromMenuItemModifier extends AbstractApiReque
|
|
|
3226
3679
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3227
3680
|
}, z.core.$strip>;
|
|
3228
3681
|
readonly headersSchema: undefined;
|
|
3682
|
+
readonly listItemSchema: z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>;
|
|
3683
|
+
readonly paginationDefaultEnabled = false;
|
|
3229
3684
|
private readonly menuItemModifierId;
|
|
3230
3685
|
constructor(menuItemModifierId: string, options?: {
|
|
3231
3686
|
query?: GetMenuItemsAsChoicesFromMenuItemModifierQueryParams;
|
|
3232
3687
|
});
|
|
3233
3688
|
getPath(): string;
|
|
3234
|
-
parseResponse(data: unknown): MenuItem[];
|
|
3235
3689
|
}
|
|
3236
3690
|
|
|
3237
3691
|
declare const getMenuItemsFromMenuItemCategoryQuerySchema: z.ZodObject<{
|
|
@@ -3298,7 +3752,7 @@ declare const getMenuItemsFromMenuItemCategoryQuerySchema: z.ZodObject<{
|
|
|
3298
3752
|
type GetMenuItemsFromMenuItemCategoryQueryParams = z.infer<typeof getMenuItemsFromMenuItemCategoryQuerySchema>;
|
|
3299
3753
|
declare const getMenuItemsFromMenuItemCategoryInputSchema: z.ZodUndefined;
|
|
3300
3754
|
type GetMenuItemsFromMenuItemCategoryInput = z.input<typeof getMenuItemsFromMenuItemCategoryInputSchema>;
|
|
3301
|
-
declare const getMenuItemsFromMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
3755
|
+
declare const getMenuItemsFromMenuItemCategoryResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3302
3756
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3303
3757
|
pagination: z.ZodObject<{
|
|
3304
3758
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3308,14 +3762,14 @@ declare const getMenuItemsFromMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
|
3308
3762
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3309
3763
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3310
3764
|
}, z.core.$strip>;
|
|
3311
|
-
}, z.core.$strip>;
|
|
3765
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3312
3766
|
type GetMenuItemsFromMenuItemCategoryResponse = z.infer<typeof getMenuItemsFromMenuItemCategoryResponseSchema>;
|
|
3313
3767
|
declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof getMenuItemsFromMenuItemCategoryInputSchema, typeof getMenuItemsFromMenuItemCategoryResponseSchema, GetMenuItemsFromMenuItemCategoryQueryParams> {
|
|
3314
|
-
readonly method
|
|
3315
|
-
readonly contentType
|
|
3316
|
-
readonly accept
|
|
3768
|
+
readonly method: "GET";
|
|
3769
|
+
readonly contentType: "application/json";
|
|
3770
|
+
readonly accept: "application/json";
|
|
3317
3771
|
readonly inputSchema: z.ZodUndefined;
|
|
3318
|
-
readonly outputSchema: z.ZodObject<{
|
|
3772
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3319
3773
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3320
3774
|
pagination: z.ZodObject<{
|
|
3321
3775
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3325,7 +3779,7 @@ declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof
|
|
|
3325
3779
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3326
3780
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3327
3781
|
}, z.core.$strip>;
|
|
3328
|
-
}, z.core.$strip>;
|
|
3782
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3329
3783
|
readonly querySchema: z.ZodObject<{
|
|
3330
3784
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, 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>>, z.ZodArray<z.ZodUUID>, 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>>>]>>;
|
|
3331
3785
|
countable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -3388,12 +3842,13 @@ declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof
|
|
|
3388
3842
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3389
3843
|
}, z.core.$strip>;
|
|
3390
3844
|
readonly headersSchema: undefined;
|
|
3845
|
+
readonly listItemSchema: z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>;
|
|
3846
|
+
readonly paginationDefaultEnabled = true;
|
|
3391
3847
|
private readonly menuItemCategoryId;
|
|
3392
3848
|
constructor(menuItemCategoryId: string, options?: {
|
|
3393
3849
|
query?: GetMenuItemsFromMenuItemCategoryQueryParams;
|
|
3394
3850
|
});
|
|
3395
3851
|
getPath(): string;
|
|
3396
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItem>;
|
|
3397
3852
|
}
|
|
3398
3853
|
|
|
3399
3854
|
declare const getMenuItemsFromMenuItemModifierQuerySchema: z.ZodObject<{
|
|
@@ -3463,9 +3918,9 @@ type GetMenuItemsFromMenuItemModifierInput = z.input<typeof getMenuItemsFromMenu
|
|
|
3463
3918
|
declare const getMenuItemsFromMenuItemModifierResponseSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3464
3919
|
type GetMenuItemsFromMenuItemModifierResponse = z.infer<typeof getMenuItemsFromMenuItemModifierResponseSchema>;
|
|
3465
3920
|
declare class GetMenuItemsFromMenuItemModifier extends AbstractApiRequest<typeof getMenuItemsFromMenuItemModifierInputSchema, typeof getMenuItemsFromMenuItemModifierResponseSchema, GetMenuItemsFromMenuItemModifierQueryParams> {
|
|
3466
|
-
readonly method
|
|
3467
|
-
readonly contentType
|
|
3468
|
-
readonly accept
|
|
3921
|
+
readonly method: "GET";
|
|
3922
|
+
readonly contentType: "application/json";
|
|
3923
|
+
readonly accept: "application/json";
|
|
3469
3924
|
readonly inputSchema: z.ZodUndefined;
|
|
3470
3925
|
readonly outputSchema: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3471
3926
|
readonly querySchema: z.ZodObject<{
|
|
@@ -3530,12 +3985,13 @@ declare class GetMenuItemsFromMenuItemModifier extends AbstractApiRequest<typeof
|
|
|
3530
3985
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3531
3986
|
}, z.core.$strip>;
|
|
3532
3987
|
readonly headersSchema: undefined;
|
|
3988
|
+
readonly listItemSchema: z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>;
|
|
3989
|
+
readonly paginationDefaultEnabled = false;
|
|
3533
3990
|
private readonly menuItemModifierId;
|
|
3534
3991
|
constructor(menuItemModifierId: string, options?: {
|
|
3535
3992
|
query?: GetMenuItemsFromMenuItemModifierQueryParams;
|
|
3536
3993
|
});
|
|
3537
3994
|
getPath(): string;
|
|
3538
|
-
parseResponse(data: unknown): MenuItem[];
|
|
3539
3995
|
}
|
|
3540
3996
|
|
|
3541
3997
|
declare const getMenuItemsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -3602,7 +4058,7 @@ declare const getMenuItemsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
3602
4058
|
type GetMenuItemsFromPointOfSaleQueryParams = z.infer<typeof getMenuItemsFromPointOfSaleQuerySchema>;
|
|
3603
4059
|
declare const getMenuItemsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
3604
4060
|
type GetMenuItemsFromPointOfSaleInput = z.input<typeof getMenuItemsFromPointOfSaleInputSchema>;
|
|
3605
|
-
declare const getMenuItemsFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
4061
|
+
declare const getMenuItemsFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3606
4062
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3607
4063
|
pagination: z.ZodObject<{
|
|
3608
4064
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3612,14 +4068,14 @@ declare const getMenuItemsFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
3612
4068
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3613
4069
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3614
4070
|
}, z.core.$strip>;
|
|
3615
|
-
}, z.core.$strip>;
|
|
4071
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3616
4072
|
type GetMenuItemsFromPointOfSaleResponse = z.infer<typeof getMenuItemsFromPointOfSaleResponseSchema>;
|
|
3617
4073
|
declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getMenuItemsFromPointOfSaleInputSchema, typeof getMenuItemsFromPointOfSaleResponseSchema, GetMenuItemsFromPointOfSaleQueryParams> {
|
|
3618
|
-
readonly method
|
|
3619
|
-
readonly contentType
|
|
3620
|
-
readonly accept
|
|
4074
|
+
readonly method: "GET";
|
|
4075
|
+
readonly contentType: "application/json";
|
|
4076
|
+
readonly accept: "application/json";
|
|
3621
4077
|
readonly inputSchema: z.ZodUndefined;
|
|
3622
|
-
readonly outputSchema: z.ZodObject<{
|
|
4078
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3623
4079
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3624
4080
|
pagination: z.ZodObject<{
|
|
3625
4081
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3629,7 +4085,7 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3629
4085
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3630
4086
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3631
4087
|
}, z.core.$strip>;
|
|
3632
|
-
}, z.core.$strip>;
|
|
4088
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3633
4089
|
readonly querySchema: z.ZodObject<{
|
|
3634
4090
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, 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>>, z.ZodArray<z.ZodUUID>, 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>>>]>>;
|
|
3635
4091
|
countable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -3692,12 +4148,13 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3692
4148
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3693
4149
|
}, z.core.$strip>;
|
|
3694
4150
|
readonly headersSchema: undefined;
|
|
4151
|
+
readonly listItemSchema: z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>;
|
|
4152
|
+
readonly paginationDefaultEnabled = true;
|
|
3695
4153
|
private readonly pointOfSaleId;
|
|
3696
4154
|
constructor(pointOfSaleId: string, options?: {
|
|
3697
4155
|
query?: GetMenuItemsFromPointOfSaleQueryParams;
|
|
3698
4156
|
});
|
|
3699
4157
|
getPath(): string;
|
|
3700
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItem>;
|
|
3701
4158
|
}
|
|
3702
4159
|
|
|
3703
4160
|
declare const getMenuItemTagsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
@@ -3886,7 +4343,7 @@ declare const getMenuVersionsQuerySchema: z.ZodObject<{
|
|
|
3886
4343
|
type GetMenuVersionsQueryParams = z.infer<typeof getMenuVersionsQuerySchema>;
|
|
3887
4344
|
declare const getMenuVersionsInputSchema: z.ZodUndefined;
|
|
3888
4345
|
type GetMenuVersionsInput = z.input<typeof getMenuVersionsInputSchema>;
|
|
3889
|
-
declare const getMenuVersionsResponseSchema: z.ZodObject<{
|
|
4346
|
+
declare const getMenuVersionsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3890
4347
|
data: z.ZodArray<z.ZodObject<{
|
|
3891
4348
|
id: z.ZodString;
|
|
3892
4349
|
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>>;
|
|
@@ -3903,14 +4360,21 @@ declare const getMenuVersionsResponseSchema: z.ZodObject<{
|
|
|
3903
4360
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3904
4361
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3905
4362
|
}, z.core.$strip>;
|
|
3906
|
-
}, z.core.$strip
|
|
4363
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
4364
|
+
id: z.ZodString;
|
|
4365
|
+
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>>;
|
|
4366
|
+
contentUrl: z.ZodURL;
|
|
4367
|
+
filePath: z.ZodString;
|
|
4368
|
+
createdAt: z.ZodString;
|
|
4369
|
+
updatedAt: z.ZodString;
|
|
4370
|
+
}, z.core.$strip>>]>;
|
|
3907
4371
|
type GetMenuVersionsResponse = z.infer<typeof getMenuVersionsResponseSchema>;
|
|
3908
4372
|
declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsInputSchema, typeof getMenuVersionsResponseSchema> {
|
|
3909
|
-
readonly method
|
|
3910
|
-
readonly contentType
|
|
3911
|
-
readonly accept
|
|
4373
|
+
readonly method: "GET";
|
|
4374
|
+
readonly contentType: "application/json";
|
|
4375
|
+
readonly accept: "application/json";
|
|
3912
4376
|
readonly inputSchema: z.ZodUndefined;
|
|
3913
|
-
readonly outputSchema: z.ZodObject<{
|
|
4377
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3914
4378
|
data: z.ZodArray<z.ZodObject<{
|
|
3915
4379
|
id: z.ZodString;
|
|
3916
4380
|
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>>;
|
|
@@ -3927,17 +4391,32 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
3927
4391
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3928
4392
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3929
4393
|
}, z.core.$strip>;
|
|
3930
|
-
}, z.core.$strip
|
|
4394
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
4395
|
+
id: z.ZodString;
|
|
4396
|
+
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>>;
|
|
4397
|
+
contentUrl: z.ZodURL;
|
|
4398
|
+
filePath: z.ZodString;
|
|
4399
|
+
createdAt: z.ZodString;
|
|
4400
|
+
updatedAt: z.ZodString;
|
|
4401
|
+
}, z.core.$strip>>]>;
|
|
3931
4402
|
readonly querySchema: z.ZodObject<{
|
|
3932
4403
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3933
4404
|
}, z.core.$strip>;
|
|
3934
4405
|
readonly headersSchema: undefined;
|
|
4406
|
+
readonly listItemSchema: z.ZodObject<{
|
|
4407
|
+
id: z.ZodString;
|
|
4408
|
+
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>>;
|
|
4409
|
+
contentUrl: z.ZodURL;
|
|
4410
|
+
filePath: z.ZodString;
|
|
4411
|
+
createdAt: z.ZodString;
|
|
4412
|
+
updatedAt: z.ZodString;
|
|
4413
|
+
}, z.core.$strip>;
|
|
4414
|
+
readonly paginationDefaultEnabled = true;
|
|
3935
4415
|
private readonly pointOfSaleId;
|
|
3936
4416
|
constructor(pointOfSaleId: string, options?: {
|
|
3937
4417
|
query?: GetMenuVersionsQueryParams;
|
|
3938
4418
|
});
|
|
3939
4419
|
getPath(): string;
|
|
3940
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuVersion>;
|
|
3941
4420
|
}
|
|
3942
4421
|
|
|
3943
4422
|
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 };
|