@compassdigital/sdk.typescript 4.23.0 → 4.23.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/lib/index.d.ts +18 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +20 -2
- package/lib/index.js.map +1 -1
- package/lib/interface/mealplan.d.ts +0 -2
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +300 -11
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +41 -2
- package/src/interface/mealplan.ts +0 -2
- package/src/interface/menu.ts +345 -11
- package/src/interface/task.ts +1 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -647,6 +647,8 @@ import {
|
|
|
647
647
|
GetMenuV3MenusCountResponse,
|
|
648
648
|
GetMenuV3MenuCategoriesQuery,
|
|
649
649
|
GetMenuV3MenuCategoriesResponse,
|
|
650
|
+
PatchMenuV3StockBody,
|
|
651
|
+
PatchMenuV3StockResponse,
|
|
650
652
|
PostMenuV3DraftCategoryBody,
|
|
651
653
|
PostMenuV3DraftCategoryResponse,
|
|
652
654
|
GetMenuV3DraftCategoryQuery,
|
|
@@ -803,6 +805,8 @@ import {
|
|
|
803
805
|
GetMenuV3GlobalDiffsResponse,
|
|
804
806
|
GetMenuV3GlobalDiffsCountQuery,
|
|
805
807
|
GetMenuV3GlobalDiffsCountResponse,
|
|
808
|
+
GetMenuV3MenuworksQuery,
|
|
809
|
+
GetMenuV3MenuworksResponse,
|
|
806
810
|
} from "./interface/menu";
|
|
807
811
|
|
|
808
812
|
import {
|
|
@@ -2972,13 +2976,13 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2972
2976
|
}
|
|
2973
2977
|
|
|
2974
2978
|
/**
|
|
2975
|
-
* POST /task
|
|
2979
|
+
* POST /task - Create new Task
|
|
2976
2980
|
*
|
|
2977
2981
|
* @param body - Task Information
|
|
2978
2982
|
* @param options - additional request options
|
|
2979
2983
|
*/
|
|
2980
2984
|
post_task(body: PostTaskBody, options?: RequestOptions): ResponsePromise<PostTaskResponse> {
|
|
2981
|
-
return this.request("task", "post_task", "post", `/task
|
|
2985
|
+
return this.request("task", "post_task", "post", `/task`, body, options);
|
|
2982
2986
|
}
|
|
2983
2987
|
|
|
2984
2988
|
/**
|
|
@@ -6775,6 +6779,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6775
6779
|
);
|
|
6776
6780
|
}
|
|
6777
6781
|
|
|
6782
|
+
/**
|
|
6783
|
+
* PATCH /menu/v3/{id}/stock
|
|
6784
|
+
*
|
|
6785
|
+
* @param id
|
|
6786
|
+
* @param body
|
|
6787
|
+
* @param options - additional request options
|
|
6788
|
+
*/
|
|
6789
|
+
patch_menu_v3_stock(
|
|
6790
|
+
id: string,
|
|
6791
|
+
body: PatchMenuV3StockBody,
|
|
6792
|
+
options?: RequestOptions,
|
|
6793
|
+
): ResponsePromise<PatchMenuV3StockResponse> {
|
|
6794
|
+
return this.request(
|
|
6795
|
+
"menu",
|
|
6796
|
+
"patch_menu_v3_stock",
|
|
6797
|
+
"patch",
|
|
6798
|
+
`/menu/v3/${id}/stock`,
|
|
6799
|
+
body,
|
|
6800
|
+
options,
|
|
6801
|
+
);
|
|
6802
|
+
}
|
|
6803
|
+
|
|
6778
6804
|
/**
|
|
6779
6805
|
* POST /menu/v3/draft/category
|
|
6780
6806
|
*
|
|
@@ -8459,6 +8485,19 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
8459
8485
|
);
|
|
8460
8486
|
}
|
|
8461
8487
|
|
|
8488
|
+
/**
|
|
8489
|
+
* GET menu/v3/menuworks
|
|
8490
|
+
*
|
|
8491
|
+
* @param options - additional request options
|
|
8492
|
+
*/
|
|
8493
|
+
get_menu_v3_menuworks(
|
|
8494
|
+
options?: {
|
|
8495
|
+
query?: GetMenuV3MenuworksQuery;
|
|
8496
|
+
} & RequestOptions,
|
|
8497
|
+
): ResponsePromise<GetMenuV3MenuworksResponse> {
|
|
8498
|
+
return this.request("menu", "get_menu_v3_menuworks", "get", `menu/v3/menuworks`, null, options);
|
|
8499
|
+
}
|
|
8500
|
+
|
|
8462
8501
|
/**
|
|
8463
8502
|
* GET /notification - Get all notifications
|
|
8464
8503
|
*
|
|
@@ -220,7 +220,6 @@ export interface DeleteMealplanTenderBody {
|
|
|
220
220
|
type?: string;
|
|
221
221
|
conversion_amount?: number;
|
|
222
222
|
terminal_id?: string;
|
|
223
|
-
is_split_tender?: boolean;
|
|
224
223
|
}
|
|
225
224
|
|
|
226
225
|
export interface DeleteMealplanTenderResponse {
|
|
@@ -255,7 +254,6 @@ export interface PatchMealplanTenderBody {
|
|
|
255
254
|
// Amount for order paid by user
|
|
256
255
|
transaction_amount?: number;
|
|
257
256
|
terminal_id?: string;
|
|
258
|
-
is_split_tender?: boolean;
|
|
259
257
|
}
|
|
260
258
|
|
|
261
259
|
export type PatchMealplanTenderResponse = Tender;
|
package/src/interface/menu.ts
CHANGED
|
@@ -134,6 +134,8 @@ export interface Item {
|
|
|
134
134
|
sort_number?: number;
|
|
135
135
|
// menu sort order
|
|
136
136
|
menu_sort_number?: number;
|
|
137
|
+
// barcodes of the item
|
|
138
|
+
barcodes?: string[];
|
|
137
139
|
[index: string]: any;
|
|
138
140
|
};
|
|
139
141
|
category?: {
|
|
@@ -589,6 +591,7 @@ export interface DraftItemDTO {
|
|
|
589
591
|
line_route?: FilterFieldDTO;
|
|
590
592
|
posid_segment?: FilterFieldDTO;
|
|
591
593
|
menu_works?: Record<string, any>;
|
|
594
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
592
595
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
593
596
|
brand?: Record<string, any>;
|
|
594
597
|
categories?: Record<string, any>[];
|
|
@@ -633,7 +636,8 @@ export interface DraftModifierGroupDTO {
|
|
|
633
636
|
is_active?: boolean;
|
|
634
637
|
limit?: number;
|
|
635
638
|
brand_id?: string;
|
|
636
|
-
|
|
639
|
+
order_type?: "selection" | "option" | "quantity";
|
|
640
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
637
641
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
638
642
|
brand?: Record<string, any>;
|
|
639
643
|
changes?: ModifierGroupChangeDTO[];
|
|
@@ -680,6 +684,7 @@ export interface DraftModifierDTO {
|
|
|
680
684
|
brand_id?: string;
|
|
681
685
|
sizing?: FilterFieldDTO[];
|
|
682
686
|
menu_works?: MenuWorksDTO;
|
|
687
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
683
688
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
684
689
|
brand?: Record<string, any>;
|
|
685
690
|
changes?: ModifierChangeDTO[];
|
|
@@ -729,10 +734,11 @@ export interface FileAttachmentsDTO {
|
|
|
729
734
|
export interface MenuWorksDTO {
|
|
730
735
|
MRN?: FilterFieldDTO;
|
|
731
736
|
unit_id?: FilterFieldDTO;
|
|
732
|
-
|
|
737
|
+
portion_quantity?: number;
|
|
738
|
+
portion_unit_name?: FilterFieldDTO;
|
|
739
|
+
grams?: number;
|
|
733
740
|
cost?: number;
|
|
734
|
-
|
|
735
|
-
smart_tags?: FilterFieldDTO[];
|
|
741
|
+
calories?: number;
|
|
736
742
|
id?: Record<string, any>;
|
|
737
743
|
[index: string]: any;
|
|
738
744
|
}
|
|
@@ -853,6 +859,7 @@ export interface DraftModifierDraftModifierDTO {
|
|
|
853
859
|
posid_segment?: FilterFieldDTO;
|
|
854
860
|
brand_id?: FilterFieldDTO;
|
|
855
861
|
sizing?: FilterFieldDTO[];
|
|
862
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
856
863
|
id?: FilterFieldDTO;
|
|
857
864
|
version?: FilterFieldDTO;
|
|
858
865
|
created_at?: FilterFieldDTO;
|
|
@@ -882,7 +889,8 @@ export interface DraftModifierGroupDraftModifierGroupDTO {
|
|
|
882
889
|
is_active?: FilterFieldDTO;
|
|
883
890
|
limit?: FilterFieldDTO;
|
|
884
891
|
brand_id?: FilterFieldDTO;
|
|
885
|
-
|
|
892
|
+
order_type?: FilterFieldDTO;
|
|
893
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
886
894
|
id?: FilterFieldDTO;
|
|
887
895
|
version?: FilterFieldDTO;
|
|
888
896
|
created_at?: FilterFieldDTO;
|
|
@@ -915,6 +923,7 @@ export interface DraftItemDraftItemDTO {
|
|
|
915
923
|
brand_id?: FilterFieldDTO;
|
|
916
924
|
line_route?: FilterFieldDTO;
|
|
917
925
|
posid_segment?: FilterFieldDTO;
|
|
926
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
918
927
|
id?: FilterFieldDTO;
|
|
919
928
|
version?: FilterFieldDTO;
|
|
920
929
|
created_at?: FilterFieldDTO;
|
|
@@ -1053,6 +1062,7 @@ export interface PublishedItemDTO {
|
|
|
1053
1062
|
brand_id?: string;
|
|
1054
1063
|
line_route?: string;
|
|
1055
1064
|
posid_segment?: string;
|
|
1065
|
+
is_out_of_stock?: boolean;
|
|
1056
1066
|
permissions?: Record<string, any>;
|
|
1057
1067
|
[index: string]: any;
|
|
1058
1068
|
}
|
|
@@ -1078,7 +1088,8 @@ export interface PublishedModifierGroupDTO {
|
|
|
1078
1088
|
is_active?: boolean;
|
|
1079
1089
|
limit?: number;
|
|
1080
1090
|
brand_id?: string;
|
|
1081
|
-
|
|
1091
|
+
order_type?: "selection" | "option" | "quantity";
|
|
1092
|
+
is_out_of_stock?: boolean;
|
|
1082
1093
|
permissions?: Record<string, any>;
|
|
1083
1094
|
[index: string]: any;
|
|
1084
1095
|
}
|
|
@@ -1108,6 +1119,7 @@ export interface PublishedModifierDTO {
|
|
|
1108
1119
|
posid_segment?: string;
|
|
1109
1120
|
brand_id?: string;
|
|
1110
1121
|
sizing?: Record<string, any>[];
|
|
1122
|
+
is_out_of_stock?: boolean;
|
|
1111
1123
|
permissions?: Record<string, any>;
|
|
1112
1124
|
[index: string]: any;
|
|
1113
1125
|
}
|
|
@@ -1188,6 +1200,258 @@ export interface PublishedMenuPublishedMenuDTO {
|
|
|
1188
1200
|
[index: string]: any;
|
|
1189
1201
|
}
|
|
1190
1202
|
|
|
1203
|
+
export interface GroupStockUpdate {
|
|
1204
|
+
id: string;
|
|
1205
|
+
items?: ItemStockUpdate[];
|
|
1206
|
+
[index: string]: any;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
export interface ItemStockUpdate {
|
|
1210
|
+
id: string;
|
|
1211
|
+
is?: IsStockUpdate;
|
|
1212
|
+
options?: ModifierGroupStockUpdate[];
|
|
1213
|
+
[index: string]: any;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
export interface IsStockUpdate {
|
|
1217
|
+
out_of_stock?: boolean;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
export interface ModifierGroupStockUpdate {
|
|
1221
|
+
id: string;
|
|
1222
|
+
is?: Record<string, any>;
|
|
1223
|
+
items?: ModifierStockUpdate[];
|
|
1224
|
+
[index: string]: any;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
export interface ModifierStockUpdate {
|
|
1228
|
+
id: string;
|
|
1229
|
+
is?: Record<string, any>;
|
|
1230
|
+
[index: string]: any;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
export interface V2MenuDateDTO {
|
|
1234
|
+
created?: string;
|
|
1235
|
+
modified?: string;
|
|
1236
|
+
published?: string;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
export interface V2MenuLabelDTO {
|
|
1240
|
+
en?: string;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
export interface V2CategoryDTO {
|
|
1244
|
+
id?: string;
|
|
1245
|
+
label?: V2CategoryLabelDTO;
|
|
1246
|
+
items?: V2ItemDTO[];
|
|
1247
|
+
is_disabled?: boolean;
|
|
1248
|
+
name?: string;
|
|
1249
|
+
is?: V2CategoryIsDTO;
|
|
1250
|
+
meta?: V2CategoryMetaDTO;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
export interface V2CategoryLabelDTO {
|
|
1254
|
+
fr?: string;
|
|
1255
|
+
en?: string;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
export interface V2ItemDTO {
|
|
1259
|
+
id?: string;
|
|
1260
|
+
label?: Record<string, any>;
|
|
1261
|
+
description?: Record<string, any>;
|
|
1262
|
+
price?: V2PriceDTO;
|
|
1263
|
+
meal_value?: number;
|
|
1264
|
+
sale_price?: Record<string, any>;
|
|
1265
|
+
unit?: number;
|
|
1266
|
+
ingredients?: Record<string, any>;
|
|
1267
|
+
amount_off_exclusions?: string[];
|
|
1268
|
+
nutrition?: V2ItemNutritionDTO;
|
|
1269
|
+
certified?: V2ItemCertifiedDTO;
|
|
1270
|
+
meta?: V2ItemMetaDTO;
|
|
1271
|
+
options?: V2ModifierGroupDTO[];
|
|
1272
|
+
required?: boolean;
|
|
1273
|
+
special?: boolean;
|
|
1274
|
+
category?: Record<string, any>;
|
|
1275
|
+
location?: string;
|
|
1276
|
+
sku?: number;
|
|
1277
|
+
item_number?: number;
|
|
1278
|
+
image?: V2ItemImageDTO;
|
|
1279
|
+
weight?: Record<string, any>;
|
|
1280
|
+
is_deleted?: boolean;
|
|
1281
|
+
is?: V2ItemIsDTO;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
export interface V2PriceDTO {
|
|
1285
|
+
amount?: number;
|
|
1286
|
+
currency?: string;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
export interface V2ItemNutritionDTO {
|
|
1290
|
+
kcal?: number;
|
|
1291
|
+
calories?: number;
|
|
1292
|
+
serving_size?: number;
|
|
1293
|
+
total_fat?: number;
|
|
1294
|
+
saturated_fat?: number;
|
|
1295
|
+
trans_fat?: number;
|
|
1296
|
+
cholesterol?: number;
|
|
1297
|
+
sodium?: number;
|
|
1298
|
+
total_carbohydrate?: number;
|
|
1299
|
+
dietary_fiber?: number;
|
|
1300
|
+
sugars?: number;
|
|
1301
|
+
protein?: number;
|
|
1302
|
+
well_being?: number;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
export interface V2ItemCertifiedDTO {
|
|
1306
|
+
vegan?: boolean;
|
|
1307
|
+
vegetarian?: boolean;
|
|
1308
|
+
seafood_watch?: boolean;
|
|
1309
|
+
wellbeing?: boolean;
|
|
1310
|
+
farm_to_fork?: boolean;
|
|
1311
|
+
in_balance?: boolean;
|
|
1312
|
+
organic?: boolean;
|
|
1313
|
+
no_gluten_ingredients?: boolean;
|
|
1314
|
+
halal?: boolean;
|
|
1315
|
+
kosher?: boolean;
|
|
1316
|
+
humane?: boolean;
|
|
1317
|
+
locally_crafted?: boolean;
|
|
1318
|
+
nuts?: boolean;
|
|
1319
|
+
oracle_garden_grown?: boolean;
|
|
1320
|
+
oracle_oyes?: boolean;
|
|
1321
|
+
peanut_free?: boolean;
|
|
1322
|
+
tree_nut_free?: boolean;
|
|
1323
|
+
wheat_free?: boolean;
|
|
1324
|
+
egg_free?: boolean;
|
|
1325
|
+
soy_free?: boolean;
|
|
1326
|
+
fair_trade?: boolean;
|
|
1327
|
+
rainforest_alliance?: boolean;
|
|
1328
|
+
salt_free?: boolean;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
export interface V2ItemMetaDTO {
|
|
1332
|
+
superplate?: V2ItemMetaSuperplateDTO;
|
|
1333
|
+
featured?: V2ItemMetaFeaturedDTO;
|
|
1334
|
+
taxes?: Record<string, any>;
|
|
1335
|
+
sort_number?: number;
|
|
1336
|
+
menu_sort_number?: V2AmountDTO;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
export interface V2ItemMetaSuperplateDTO {
|
|
1340
|
+
type_id?: number;
|
|
1341
|
+
type?: string;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
export interface V2ItemMetaFeaturedDTO {
|
|
1345
|
+
sort_number?: number;
|
|
1346
|
+
dates?: V2DatesDTO;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
export interface V2DatesDTO {
|
|
1350
|
+
start?: string;
|
|
1351
|
+
end?: string;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
export interface V2AmountDTO {
|
|
1355
|
+
unit?: number;
|
|
1356
|
+
amount?: string;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
export interface V2ModifierGroupDTO {
|
|
1360
|
+
id?: string;
|
|
1361
|
+
label?: Record<string, any>;
|
|
1362
|
+
unique_name?: string;
|
|
1363
|
+
items?: V2ModifierDTO[];
|
|
1364
|
+
min?: number;
|
|
1365
|
+
max?: number;
|
|
1366
|
+
is?: Record<string, any>;
|
|
1367
|
+
meta?: {
|
|
1368
|
+
[index: string]: any;
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
export interface V2ModifierDTO {
|
|
1373
|
+
id?: string;
|
|
1374
|
+
label?: Record<string, any>;
|
|
1375
|
+
price?: Record<string, any>;
|
|
1376
|
+
weight?: Record<string, any>;
|
|
1377
|
+
sku?: string;
|
|
1378
|
+
nutrition?: V2ModifierNutritionDTO;
|
|
1379
|
+
certified?: V2CertifiedDTO;
|
|
1380
|
+
modifier_sets?: V2ModifierSetsDTO;
|
|
1381
|
+
meta?: V2ModifierMetaDTO;
|
|
1382
|
+
is?: V2ModifierIsDTO;
|
|
1383
|
+
amount_off_exclusions?: string[];
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
export interface V2ModifierNutritionDTO {
|
|
1387
|
+
kcal?: number;
|
|
1388
|
+
calories?: Record<string, any>;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
export interface V2CertifiedDTO {
|
|
1392
|
+
vegan?: boolean;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
export interface V2ModifierSetsDTO {
|
|
1396
|
+
category?: string;
|
|
1397
|
+
list?: string[];
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
export interface V2ModifierMetaDTO {
|
|
1401
|
+
sort_number?: number;
|
|
1402
|
+
menu_sort_number?: Record<string, any>;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
export interface V2ModifierIsDTO {
|
|
1406
|
+
disabled?: boolean;
|
|
1407
|
+
hidden?: boolean;
|
|
1408
|
+
out_of_stock?: boolean;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
export interface V2ItemImageDTO {
|
|
1412
|
+
src?: string;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
export interface V2ItemIsDTO {
|
|
1416
|
+
meq_eligible?: boolean;
|
|
1417
|
+
deleted?: boolean;
|
|
1418
|
+
featured?: boolean;
|
|
1419
|
+
disabled?: boolean;
|
|
1420
|
+
hidden?: boolean;
|
|
1421
|
+
out_of_stock?: boolean;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
export interface V2CategoryIsDTO {
|
|
1425
|
+
disabled?: boolean;
|
|
1426
|
+
hidden?: boolean;
|
|
1427
|
+
linked?: boolean;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
export interface V2CategoryMetaDTO {
|
|
1431
|
+
original_label?: Record<string, any>;
|
|
1432
|
+
sort_number?: number;
|
|
1433
|
+
menu_sort_number?: Record<string, any>;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
export interface V2MenuIsDTO {
|
|
1437
|
+
disabled?: boolean;
|
|
1438
|
+
hidden?: boolean;
|
|
1439
|
+
linked?: boolean;
|
|
1440
|
+
promo_exemptions_enabled?: boolean;
|
|
1441
|
+
plu_enabled?: boolean;
|
|
1442
|
+
item_images_enabled?: boolean;
|
|
1443
|
+
item_showcase_enabled?: boolean;
|
|
1444
|
+
item_desc_edit_enabled?: boolean;
|
|
1445
|
+
calories_edit_enabled?: boolean;
|
|
1446
|
+
item_label_edit_enabled?: boolean;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
export interface V2MetaDTO {
|
|
1450
|
+
locked_by_user?: string;
|
|
1451
|
+
last_modified_user?: string;
|
|
1452
|
+
version?: number;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1191
1455
|
export interface PublishedCategoryPublishedCategoryDTO {
|
|
1192
1456
|
parent_id?: FilterFieldDTO;
|
|
1193
1457
|
name?: FilterFieldDTO;
|
|
@@ -1284,6 +1548,7 @@ export interface DraftItemEntityDTO {
|
|
|
1284
1548
|
line_route?: string;
|
|
1285
1549
|
posid_segment?: string;
|
|
1286
1550
|
menu_works?: MenuWorksDTO;
|
|
1551
|
+
is_out_of_stock?: boolean;
|
|
1287
1552
|
applied_diff_snapshot?: Record<string, any>;
|
|
1288
1553
|
version?: number;
|
|
1289
1554
|
brand?: DraftBrandDTO;
|
|
@@ -1311,6 +1576,7 @@ export interface PublishedItemPublishedItemDTO {
|
|
|
1311
1576
|
brand_id?: FilterFieldDTO;
|
|
1312
1577
|
line_route?: FilterFieldDTO;
|
|
1313
1578
|
posid_segment?: FilterFieldDTO;
|
|
1579
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
1314
1580
|
id?: FilterFieldDTO;
|
|
1315
1581
|
version?: FilterFieldDTO;
|
|
1316
1582
|
created_at?: FilterFieldDTO;
|
|
@@ -1381,7 +1647,8 @@ export interface PublishedModifierGroupPublishedModifierGroupDTO {
|
|
|
1381
1647
|
is_active?: FilterFieldDTO;
|
|
1382
1648
|
limit?: FilterFieldDTO;
|
|
1383
1649
|
brand_id?: FilterFieldDTO;
|
|
1384
|
-
|
|
1650
|
+
order_type?: FilterFieldDTO;
|
|
1651
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
1385
1652
|
id?: FilterFieldDTO;
|
|
1386
1653
|
version?: FilterFieldDTO;
|
|
1387
1654
|
created_at?: FilterFieldDTO;
|
|
@@ -1461,6 +1728,7 @@ export interface DraftModifierEntityDTO {
|
|
|
1461
1728
|
brand_id: string;
|
|
1462
1729
|
sizing?: Record<string, any>[];
|
|
1463
1730
|
menu_works?: MenuWorksDTO;
|
|
1731
|
+
is_out_of_stock?: boolean;
|
|
1464
1732
|
applied_diff_snapshot?: Record<string, any>;
|
|
1465
1733
|
version?: number;
|
|
1466
1734
|
brand?: DraftBrandDTO;
|
|
@@ -1485,6 +1753,7 @@ export interface PublishedModifierPublishedModifierDTO {
|
|
|
1485
1753
|
posid_segment?: FilterFieldDTO;
|
|
1486
1754
|
brand_id?: FilterFieldDTO;
|
|
1487
1755
|
sizing?: FilterFieldDTO[];
|
|
1756
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
1488
1757
|
id?: FilterFieldDTO;
|
|
1489
1758
|
version?: FilterFieldDTO;
|
|
1490
1759
|
created_at?: FilterFieldDTO;
|
|
@@ -3882,6 +4151,35 @@ export interface GetMenuV3MenuCategoriesRequest
|
|
|
3882
4151
|
RequestQuery<GetMenuV3MenuCategoriesQuery>,
|
|
3883
4152
|
GetMenuV3MenuCategoriesPath {}
|
|
3884
4153
|
|
|
4154
|
+
// PATCH /menu/v3/{id}/stock
|
|
4155
|
+
|
|
4156
|
+
export interface PatchMenuV3StockPath {
|
|
4157
|
+
id: string;
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
export interface PatchMenuV3StockBody {
|
|
4161
|
+
id: string;
|
|
4162
|
+
groups?: GroupStockUpdate[];
|
|
4163
|
+
[index: string]: any;
|
|
4164
|
+
}
|
|
4165
|
+
|
|
4166
|
+
export interface PatchMenuV3StockResponse {
|
|
4167
|
+
id?: string;
|
|
4168
|
+
date?: V2MenuDateDTO;
|
|
4169
|
+
label?: V2MenuLabelDTO;
|
|
4170
|
+
groups?: V2CategoryDTO[];
|
|
4171
|
+
parent_id?: string;
|
|
4172
|
+
location_brand?: string;
|
|
4173
|
+
company?: string;
|
|
4174
|
+
sector?: string;
|
|
4175
|
+
is?: V2MenuIsDTO;
|
|
4176
|
+
meta?: V2MetaDTO;
|
|
4177
|
+
}
|
|
4178
|
+
|
|
4179
|
+
export interface PatchMenuV3StockRequest extends BaseRequest, PatchMenuV3StockPath {
|
|
4180
|
+
body: PatchMenuV3StockBody;
|
|
4181
|
+
}
|
|
4182
|
+
|
|
3885
4183
|
// POST /menu/v3/draft/category
|
|
3886
4184
|
|
|
3887
4185
|
export interface PostMenuV3DraftCategoryBody {
|
|
@@ -4381,6 +4679,7 @@ export interface PostMenuV3DraftItemBody {
|
|
|
4381
4679
|
line_route?: string;
|
|
4382
4680
|
posid_segment?: string;
|
|
4383
4681
|
menu_works?: MenuWorksDTO;
|
|
4682
|
+
is_out_of_stock?: boolean;
|
|
4384
4683
|
id?: Record<string, any>;
|
|
4385
4684
|
applied_diff_snapshot?: Record<string, any>;
|
|
4386
4685
|
brand?: DraftBrandDTO;
|
|
@@ -4448,6 +4747,7 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
4448
4747
|
line_route?: string;
|
|
4449
4748
|
posid_segment?: string;
|
|
4450
4749
|
menu_works?: MenuWorksDTO;
|
|
4750
|
+
is_out_of_stock?: boolean;
|
|
4451
4751
|
applied_diff_snapshot?: Record<string, any>;
|
|
4452
4752
|
version?: number;
|
|
4453
4753
|
brand?: DraftBrandDTO;
|
|
@@ -4531,6 +4831,7 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
4531
4831
|
line_route?: string;
|
|
4532
4832
|
posid_segment?: string;
|
|
4533
4833
|
menu_works?: MenuWorksDTO;
|
|
4834
|
+
is_out_of_stock?: boolean;
|
|
4534
4835
|
id?: Record<string, any>;
|
|
4535
4836
|
applied_diff_snapshot?: Record<string, any>;
|
|
4536
4837
|
brand?: DraftBrandDTO;
|
|
@@ -4618,6 +4919,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
4618
4919
|
line_route?: string;
|
|
4619
4920
|
posid_segment?: string;
|
|
4620
4921
|
menu_works?: MenuWorksDTO;
|
|
4922
|
+
is_out_of_stock?: boolean;
|
|
4621
4923
|
applied_diff_snapshot?: Record<string, any>;
|
|
4622
4924
|
brand?: DraftBrandDTO;
|
|
4623
4925
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -5061,7 +5363,8 @@ export interface PostMenuV3DraftModifierGroupBody {
|
|
|
5061
5363
|
is_active?: boolean;
|
|
5062
5364
|
limit?: number;
|
|
5063
5365
|
brand_id: string;
|
|
5064
|
-
|
|
5366
|
+
order_type?: "selection" | "option" | "quantity";
|
|
5367
|
+
is_out_of_stock?: boolean;
|
|
5065
5368
|
id?: Record<string, any>;
|
|
5066
5369
|
applied_diff_snapshot?: Record<string, any>;
|
|
5067
5370
|
brand?: DraftBrandDTO;
|
|
@@ -5119,7 +5422,8 @@ export interface PatchMenuV3DraftModifierGroupBody {
|
|
|
5119
5422
|
is_active?: boolean;
|
|
5120
5423
|
limit?: number;
|
|
5121
5424
|
brand_id?: string;
|
|
5122
|
-
|
|
5425
|
+
order_type?: "selection" | "option" | "quantity";
|
|
5426
|
+
is_out_of_stock?: boolean;
|
|
5123
5427
|
applied_diff_snapshot?: Record<string, any>;
|
|
5124
5428
|
version?: number;
|
|
5125
5429
|
brand?: DraftBrandDTO;
|
|
@@ -5197,7 +5501,8 @@ export type PostMenuV3DraftModifierGroupsBody = {
|
|
|
5197
5501
|
is_active?: boolean;
|
|
5198
5502
|
limit?: number;
|
|
5199
5503
|
brand_id: string;
|
|
5200
|
-
|
|
5504
|
+
order_type?: "selection" | "option" | "quantity";
|
|
5505
|
+
is_out_of_stock?: boolean;
|
|
5201
5506
|
id?: Record<string, any>;
|
|
5202
5507
|
applied_diff_snapshot?: Record<string, any>;
|
|
5203
5508
|
brand?: DraftBrandDTO;
|
|
@@ -5260,7 +5565,8 @@ export interface PostMenuV3DraftModifierGroupDuplicateResponse {
|
|
|
5260
5565
|
is_active?: boolean;
|
|
5261
5566
|
limit?: number;
|
|
5262
5567
|
brand_id: string;
|
|
5263
|
-
|
|
5568
|
+
order_type?: "selection" | "option" | "quantity";
|
|
5569
|
+
is_out_of_stock?: boolean;
|
|
5264
5570
|
applied_diff_snapshot?: Record<string, any>;
|
|
5265
5571
|
version?: number;
|
|
5266
5572
|
brand?: DraftBrandDTO;
|
|
@@ -5634,6 +5940,7 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
5634
5940
|
brand_id: string;
|
|
5635
5941
|
sizing?: Record<string, any>[];
|
|
5636
5942
|
menu_works?: MenuWorksDTO;
|
|
5943
|
+
is_out_of_stock?: boolean;
|
|
5637
5944
|
id?: Record<string, any>;
|
|
5638
5945
|
applied_diff_snapshot?: Record<string, any>;
|
|
5639
5946
|
brand?: DraftBrandDTO;
|
|
@@ -5698,6 +6005,7 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
5698
6005
|
brand_id?: string;
|
|
5699
6006
|
sizing?: Record<string, any>[];
|
|
5700
6007
|
menu_works?: MenuWorksDTO;
|
|
6008
|
+
is_out_of_stock?: boolean;
|
|
5701
6009
|
applied_diff_snapshot?: Record<string, any>;
|
|
5702
6010
|
version?: number;
|
|
5703
6011
|
brand?: DraftBrandDTO;
|
|
@@ -5780,6 +6088,7 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
5780
6088
|
brand_id: string;
|
|
5781
6089
|
sizing?: Record<string, any>[];
|
|
5782
6090
|
menu_works?: MenuWorksDTO;
|
|
6091
|
+
is_out_of_stock?: boolean;
|
|
5783
6092
|
id?: Record<string, any>;
|
|
5784
6093
|
applied_diff_snapshot?: Record<string, any>;
|
|
5785
6094
|
brand?: DraftBrandDTO;
|
|
@@ -5843,6 +6152,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
5843
6152
|
brand_id?: string;
|
|
5844
6153
|
sizing?: Record<string, any>[];
|
|
5845
6154
|
menu_works?: MenuWorksDTO;
|
|
6155
|
+
is_out_of_stock?: boolean;
|
|
5846
6156
|
applied_diff_snapshot?: Record<string, any>;
|
|
5847
6157
|
brand?: DraftBrandDTO;
|
|
5848
6158
|
changes?: ModifierChangeDTO[];
|
|
@@ -6068,3 +6378,27 @@ export interface GetMenuV3GlobalDiffsCountResponse {
|
|
|
6068
6378
|
export interface GetMenuV3GlobalDiffsCountRequest
|
|
6069
6379
|
extends BaseRequest,
|
|
6070
6380
|
RequestQuery<GetMenuV3GlobalDiffsCountQuery> {}
|
|
6381
|
+
|
|
6382
|
+
// GET menu/v3/menuworks
|
|
6383
|
+
|
|
6384
|
+
export interface GetMenuV3MenuworksQuery {
|
|
6385
|
+
unit_id?: string;
|
|
6386
|
+
MRN?: string;
|
|
6387
|
+
// Graphql query string
|
|
6388
|
+
_query?: string;
|
|
6389
|
+
}
|
|
6390
|
+
|
|
6391
|
+
export interface GetMenuV3MenuworksResponse {
|
|
6392
|
+
MRN?: string;
|
|
6393
|
+
unit_id?: string;
|
|
6394
|
+
portion_quantity?: number;
|
|
6395
|
+
portion_unit_name?: string;
|
|
6396
|
+
grams?: number;
|
|
6397
|
+
cost?: number;
|
|
6398
|
+
calories?: number;
|
|
6399
|
+
[index: string]: any;
|
|
6400
|
+
}
|
|
6401
|
+
|
|
6402
|
+
export interface GetMenuV3MenuworksRequest
|
|
6403
|
+
extends BaseRequest,
|
|
6404
|
+
RequestQuery<GetMenuV3MenuworksQuery> {}
|