@compassdigital/sdk.typescript 4.22.1 → 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/base.d.ts +10 -0
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +16 -1
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +26 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +29 -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 +323 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +24 -0
- package/lib/interface/payment.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/base.ts +27 -4
- package/src/index.ts +814 -753
- package/src/interface/mealplan.ts +0 -2
- package/src/interface/menu.ts +369 -0
- package/src/interface/payment.ts +30 -0
- package/src/interface/task.ts +1 -1
package/lib/interface/menu.d.ts
CHANGED
|
@@ -116,6 +116,7 @@ export interface Item {
|
|
|
116
116
|
};
|
|
117
117
|
sort_number?: number;
|
|
118
118
|
menu_sort_number?: number;
|
|
119
|
+
barcodes?: string[];
|
|
119
120
|
[index: string]: any;
|
|
120
121
|
};
|
|
121
122
|
category?: {
|
|
@@ -512,6 +513,8 @@ export interface DraftItemDTO {
|
|
|
512
513
|
brand_id?: string;
|
|
513
514
|
line_route?: FilterFieldDTO;
|
|
514
515
|
posid_segment?: FilterFieldDTO;
|
|
516
|
+
menu_works?: Record<string, any>;
|
|
517
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
515
518
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
516
519
|
brand?: Record<string, any>;
|
|
517
520
|
categories?: Record<string, any>[];
|
|
@@ -554,6 +557,8 @@ export interface DraftModifierGroupDTO {
|
|
|
554
557
|
is_active?: boolean;
|
|
555
558
|
limit?: number;
|
|
556
559
|
brand_id?: string;
|
|
560
|
+
order_type?: "selection" | "option" | "quantity";
|
|
561
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
557
562
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
558
563
|
brand?: Record<string, any>;
|
|
559
564
|
changes?: ModifierGroupChangeDTO[];
|
|
@@ -597,6 +602,8 @@ export interface DraftModifierDTO {
|
|
|
597
602
|
posid_segment?: FilterFieldDTO;
|
|
598
603
|
brand_id?: string;
|
|
599
604
|
sizing?: FilterFieldDTO[];
|
|
605
|
+
menu_works?: MenuWorksDTO;
|
|
606
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
600
607
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
601
608
|
brand?: Record<string, any>;
|
|
602
609
|
changes?: ModifierChangeDTO[];
|
|
@@ -637,6 +644,17 @@ export interface FileAttachmentsDTO {
|
|
|
637
644
|
id?: Record<string, any>;
|
|
638
645
|
[index: string]: any;
|
|
639
646
|
}
|
|
647
|
+
export interface MenuWorksDTO {
|
|
648
|
+
MRN?: FilterFieldDTO;
|
|
649
|
+
unit_id?: FilterFieldDTO;
|
|
650
|
+
portion_quantity?: number;
|
|
651
|
+
portion_unit_name?: FilterFieldDTO;
|
|
652
|
+
grams?: number;
|
|
653
|
+
cost?: number;
|
|
654
|
+
calories?: number;
|
|
655
|
+
id?: Record<string, any>;
|
|
656
|
+
[index: string]: any;
|
|
657
|
+
}
|
|
640
658
|
export interface ModifierGroupToModifierRelationshipChangeDTO {
|
|
641
659
|
id?: string;
|
|
642
660
|
insert?: FilterFieldDTO;
|
|
@@ -744,6 +762,7 @@ export interface DraftModifierDraftModifierDTO {
|
|
|
744
762
|
posid_segment?: FilterFieldDTO;
|
|
745
763
|
brand_id?: FilterFieldDTO;
|
|
746
764
|
sizing?: FilterFieldDTO[];
|
|
765
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
747
766
|
id?: FilterFieldDTO;
|
|
748
767
|
version?: FilterFieldDTO;
|
|
749
768
|
created_at?: FilterFieldDTO;
|
|
@@ -758,6 +777,7 @@ export interface DraftModifierDraftModifierDTO {
|
|
|
758
777
|
reporting?: ReportingMetadataDTO;
|
|
759
778
|
weight?: WeightDTO;
|
|
760
779
|
attachments?: FileAttachmentsDTO;
|
|
780
|
+
menu_works?: MenuWorksDTO;
|
|
761
781
|
permissions?: FilterFieldDTO;
|
|
762
782
|
[index: string]: any;
|
|
763
783
|
}
|
|
@@ -771,6 +791,8 @@ export interface DraftModifierGroupDraftModifierGroupDTO {
|
|
|
771
791
|
is_active?: FilterFieldDTO;
|
|
772
792
|
limit?: FilterFieldDTO;
|
|
773
793
|
brand_id?: FilterFieldDTO;
|
|
794
|
+
order_type?: FilterFieldDTO;
|
|
795
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
774
796
|
id?: FilterFieldDTO;
|
|
775
797
|
version?: FilterFieldDTO;
|
|
776
798
|
created_at?: FilterFieldDTO;
|
|
@@ -802,6 +824,7 @@ export interface DraftItemDraftItemDTO {
|
|
|
802
824
|
brand_id?: FilterFieldDTO;
|
|
803
825
|
line_route?: FilterFieldDTO;
|
|
804
826
|
posid_segment?: FilterFieldDTO;
|
|
827
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
805
828
|
id?: FilterFieldDTO;
|
|
806
829
|
version?: FilterFieldDTO;
|
|
807
830
|
created_at?: FilterFieldDTO;
|
|
@@ -817,6 +840,7 @@ export interface DraftItemDraftItemDTO {
|
|
|
817
840
|
reporting?: ReportingMetadataDTO;
|
|
818
841
|
attachments?: FileAttachmentsDTO;
|
|
819
842
|
weight?: WeightDTO;
|
|
843
|
+
menu_works?: MenuWorksDTO;
|
|
820
844
|
permissions?: FilterFieldDTO;
|
|
821
845
|
[index: string]: any;
|
|
822
846
|
}
|
|
@@ -930,6 +954,7 @@ export interface PublishedItemDTO {
|
|
|
930
954
|
brand_id?: string;
|
|
931
955
|
line_route?: string;
|
|
932
956
|
posid_segment?: string;
|
|
957
|
+
is_out_of_stock?: boolean;
|
|
933
958
|
permissions?: Record<string, any>;
|
|
934
959
|
[index: string]: any;
|
|
935
960
|
}
|
|
@@ -953,6 +978,8 @@ export interface PublishedModifierGroupDTO {
|
|
|
953
978
|
is_active?: boolean;
|
|
954
979
|
limit?: number;
|
|
955
980
|
brand_id?: string;
|
|
981
|
+
order_type?: "selection" | "option" | "quantity";
|
|
982
|
+
is_out_of_stock?: boolean;
|
|
956
983
|
permissions?: Record<string, any>;
|
|
957
984
|
[index: string]: any;
|
|
958
985
|
}
|
|
@@ -980,6 +1007,7 @@ export interface PublishedModifierDTO {
|
|
|
980
1007
|
posid_segment?: string;
|
|
981
1008
|
brand_id?: string;
|
|
982
1009
|
sizing?: Record<string, any>[];
|
|
1010
|
+
is_out_of_stock?: boolean;
|
|
983
1011
|
permissions?: Record<string, any>;
|
|
984
1012
|
[index: string]: any;
|
|
985
1013
|
}
|
|
@@ -1056,6 +1084,227 @@ export interface PublishedMenuPublishedMenuDTO {
|
|
|
1056
1084
|
permissions?: FilterFieldDTO;
|
|
1057
1085
|
[index: string]: any;
|
|
1058
1086
|
}
|
|
1087
|
+
export interface GroupStockUpdate {
|
|
1088
|
+
id: string;
|
|
1089
|
+
items?: ItemStockUpdate[];
|
|
1090
|
+
[index: string]: any;
|
|
1091
|
+
}
|
|
1092
|
+
export interface ItemStockUpdate {
|
|
1093
|
+
id: string;
|
|
1094
|
+
is?: IsStockUpdate;
|
|
1095
|
+
options?: ModifierGroupStockUpdate[];
|
|
1096
|
+
[index: string]: any;
|
|
1097
|
+
}
|
|
1098
|
+
export interface IsStockUpdate {
|
|
1099
|
+
out_of_stock?: boolean;
|
|
1100
|
+
}
|
|
1101
|
+
export interface ModifierGroupStockUpdate {
|
|
1102
|
+
id: string;
|
|
1103
|
+
is?: Record<string, any>;
|
|
1104
|
+
items?: ModifierStockUpdate[];
|
|
1105
|
+
[index: string]: any;
|
|
1106
|
+
}
|
|
1107
|
+
export interface ModifierStockUpdate {
|
|
1108
|
+
id: string;
|
|
1109
|
+
is?: Record<string, any>;
|
|
1110
|
+
[index: string]: any;
|
|
1111
|
+
}
|
|
1112
|
+
export interface V2MenuDateDTO {
|
|
1113
|
+
created?: string;
|
|
1114
|
+
modified?: string;
|
|
1115
|
+
published?: string;
|
|
1116
|
+
}
|
|
1117
|
+
export interface V2MenuLabelDTO {
|
|
1118
|
+
en?: string;
|
|
1119
|
+
}
|
|
1120
|
+
export interface V2CategoryDTO {
|
|
1121
|
+
id?: string;
|
|
1122
|
+
label?: V2CategoryLabelDTO;
|
|
1123
|
+
items?: V2ItemDTO[];
|
|
1124
|
+
is_disabled?: boolean;
|
|
1125
|
+
name?: string;
|
|
1126
|
+
is?: V2CategoryIsDTO;
|
|
1127
|
+
meta?: V2CategoryMetaDTO;
|
|
1128
|
+
}
|
|
1129
|
+
export interface V2CategoryLabelDTO {
|
|
1130
|
+
fr?: string;
|
|
1131
|
+
en?: string;
|
|
1132
|
+
}
|
|
1133
|
+
export interface V2ItemDTO {
|
|
1134
|
+
id?: string;
|
|
1135
|
+
label?: Record<string, any>;
|
|
1136
|
+
description?: Record<string, any>;
|
|
1137
|
+
price?: V2PriceDTO;
|
|
1138
|
+
meal_value?: number;
|
|
1139
|
+
sale_price?: Record<string, any>;
|
|
1140
|
+
unit?: number;
|
|
1141
|
+
ingredients?: Record<string, any>;
|
|
1142
|
+
amount_off_exclusions?: string[];
|
|
1143
|
+
nutrition?: V2ItemNutritionDTO;
|
|
1144
|
+
certified?: V2ItemCertifiedDTO;
|
|
1145
|
+
meta?: V2ItemMetaDTO;
|
|
1146
|
+
options?: V2ModifierGroupDTO[];
|
|
1147
|
+
required?: boolean;
|
|
1148
|
+
special?: boolean;
|
|
1149
|
+
category?: Record<string, any>;
|
|
1150
|
+
location?: string;
|
|
1151
|
+
sku?: number;
|
|
1152
|
+
item_number?: number;
|
|
1153
|
+
image?: V2ItemImageDTO;
|
|
1154
|
+
weight?: Record<string, any>;
|
|
1155
|
+
is_deleted?: boolean;
|
|
1156
|
+
is?: V2ItemIsDTO;
|
|
1157
|
+
}
|
|
1158
|
+
export interface V2PriceDTO {
|
|
1159
|
+
amount?: number;
|
|
1160
|
+
currency?: string;
|
|
1161
|
+
}
|
|
1162
|
+
export interface V2ItemNutritionDTO {
|
|
1163
|
+
kcal?: number;
|
|
1164
|
+
calories?: number;
|
|
1165
|
+
serving_size?: number;
|
|
1166
|
+
total_fat?: number;
|
|
1167
|
+
saturated_fat?: number;
|
|
1168
|
+
trans_fat?: number;
|
|
1169
|
+
cholesterol?: number;
|
|
1170
|
+
sodium?: number;
|
|
1171
|
+
total_carbohydrate?: number;
|
|
1172
|
+
dietary_fiber?: number;
|
|
1173
|
+
sugars?: number;
|
|
1174
|
+
protein?: number;
|
|
1175
|
+
well_being?: number;
|
|
1176
|
+
}
|
|
1177
|
+
export interface V2ItemCertifiedDTO {
|
|
1178
|
+
vegan?: boolean;
|
|
1179
|
+
vegetarian?: boolean;
|
|
1180
|
+
seafood_watch?: boolean;
|
|
1181
|
+
wellbeing?: boolean;
|
|
1182
|
+
farm_to_fork?: boolean;
|
|
1183
|
+
in_balance?: boolean;
|
|
1184
|
+
organic?: boolean;
|
|
1185
|
+
no_gluten_ingredients?: boolean;
|
|
1186
|
+
halal?: boolean;
|
|
1187
|
+
kosher?: boolean;
|
|
1188
|
+
humane?: boolean;
|
|
1189
|
+
locally_crafted?: boolean;
|
|
1190
|
+
nuts?: boolean;
|
|
1191
|
+
oracle_garden_grown?: boolean;
|
|
1192
|
+
oracle_oyes?: boolean;
|
|
1193
|
+
peanut_free?: boolean;
|
|
1194
|
+
tree_nut_free?: boolean;
|
|
1195
|
+
wheat_free?: boolean;
|
|
1196
|
+
egg_free?: boolean;
|
|
1197
|
+
soy_free?: boolean;
|
|
1198
|
+
fair_trade?: boolean;
|
|
1199
|
+
rainforest_alliance?: boolean;
|
|
1200
|
+
salt_free?: boolean;
|
|
1201
|
+
}
|
|
1202
|
+
export interface V2ItemMetaDTO {
|
|
1203
|
+
superplate?: V2ItemMetaSuperplateDTO;
|
|
1204
|
+
featured?: V2ItemMetaFeaturedDTO;
|
|
1205
|
+
taxes?: Record<string, any>;
|
|
1206
|
+
sort_number?: number;
|
|
1207
|
+
menu_sort_number?: V2AmountDTO;
|
|
1208
|
+
}
|
|
1209
|
+
export interface V2ItemMetaSuperplateDTO {
|
|
1210
|
+
type_id?: number;
|
|
1211
|
+
type?: string;
|
|
1212
|
+
}
|
|
1213
|
+
export interface V2ItemMetaFeaturedDTO {
|
|
1214
|
+
sort_number?: number;
|
|
1215
|
+
dates?: V2DatesDTO;
|
|
1216
|
+
}
|
|
1217
|
+
export interface V2DatesDTO {
|
|
1218
|
+
start?: string;
|
|
1219
|
+
end?: string;
|
|
1220
|
+
}
|
|
1221
|
+
export interface V2AmountDTO {
|
|
1222
|
+
unit?: number;
|
|
1223
|
+
amount?: string;
|
|
1224
|
+
}
|
|
1225
|
+
export interface V2ModifierGroupDTO {
|
|
1226
|
+
id?: string;
|
|
1227
|
+
label?: Record<string, any>;
|
|
1228
|
+
unique_name?: string;
|
|
1229
|
+
items?: V2ModifierDTO[];
|
|
1230
|
+
min?: number;
|
|
1231
|
+
max?: number;
|
|
1232
|
+
is?: Record<string, any>;
|
|
1233
|
+
meta?: {
|
|
1234
|
+
[index: string]: any;
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
export interface V2ModifierDTO {
|
|
1238
|
+
id?: string;
|
|
1239
|
+
label?: Record<string, any>;
|
|
1240
|
+
price?: Record<string, any>;
|
|
1241
|
+
weight?: Record<string, any>;
|
|
1242
|
+
sku?: string;
|
|
1243
|
+
nutrition?: V2ModifierNutritionDTO;
|
|
1244
|
+
certified?: V2CertifiedDTO;
|
|
1245
|
+
modifier_sets?: V2ModifierSetsDTO;
|
|
1246
|
+
meta?: V2ModifierMetaDTO;
|
|
1247
|
+
is?: V2ModifierIsDTO;
|
|
1248
|
+
amount_off_exclusions?: string[];
|
|
1249
|
+
}
|
|
1250
|
+
export interface V2ModifierNutritionDTO {
|
|
1251
|
+
kcal?: number;
|
|
1252
|
+
calories?: Record<string, any>;
|
|
1253
|
+
}
|
|
1254
|
+
export interface V2CertifiedDTO {
|
|
1255
|
+
vegan?: boolean;
|
|
1256
|
+
}
|
|
1257
|
+
export interface V2ModifierSetsDTO {
|
|
1258
|
+
category?: string;
|
|
1259
|
+
list?: string[];
|
|
1260
|
+
}
|
|
1261
|
+
export interface V2ModifierMetaDTO {
|
|
1262
|
+
sort_number?: number;
|
|
1263
|
+
menu_sort_number?: Record<string, any>;
|
|
1264
|
+
}
|
|
1265
|
+
export interface V2ModifierIsDTO {
|
|
1266
|
+
disabled?: boolean;
|
|
1267
|
+
hidden?: boolean;
|
|
1268
|
+
out_of_stock?: boolean;
|
|
1269
|
+
}
|
|
1270
|
+
export interface V2ItemImageDTO {
|
|
1271
|
+
src?: string;
|
|
1272
|
+
}
|
|
1273
|
+
export interface V2ItemIsDTO {
|
|
1274
|
+
meq_eligible?: boolean;
|
|
1275
|
+
deleted?: boolean;
|
|
1276
|
+
featured?: boolean;
|
|
1277
|
+
disabled?: boolean;
|
|
1278
|
+
hidden?: boolean;
|
|
1279
|
+
out_of_stock?: boolean;
|
|
1280
|
+
}
|
|
1281
|
+
export interface V2CategoryIsDTO {
|
|
1282
|
+
disabled?: boolean;
|
|
1283
|
+
hidden?: boolean;
|
|
1284
|
+
linked?: boolean;
|
|
1285
|
+
}
|
|
1286
|
+
export interface V2CategoryMetaDTO {
|
|
1287
|
+
original_label?: Record<string, any>;
|
|
1288
|
+
sort_number?: number;
|
|
1289
|
+
menu_sort_number?: Record<string, any>;
|
|
1290
|
+
}
|
|
1291
|
+
export interface V2MenuIsDTO {
|
|
1292
|
+
disabled?: boolean;
|
|
1293
|
+
hidden?: boolean;
|
|
1294
|
+
linked?: boolean;
|
|
1295
|
+
promo_exemptions_enabled?: boolean;
|
|
1296
|
+
plu_enabled?: boolean;
|
|
1297
|
+
item_images_enabled?: boolean;
|
|
1298
|
+
item_showcase_enabled?: boolean;
|
|
1299
|
+
item_desc_edit_enabled?: boolean;
|
|
1300
|
+
calories_edit_enabled?: boolean;
|
|
1301
|
+
item_label_edit_enabled?: boolean;
|
|
1302
|
+
}
|
|
1303
|
+
export interface V2MetaDTO {
|
|
1304
|
+
locked_by_user?: string;
|
|
1305
|
+
last_modified_user?: string;
|
|
1306
|
+
version?: number;
|
|
1307
|
+
}
|
|
1059
1308
|
export interface PublishedCategoryPublishedCategoryDTO {
|
|
1060
1309
|
parent_id?: FilterFieldDTO;
|
|
1061
1310
|
name?: FilterFieldDTO;
|
|
@@ -1147,6 +1396,8 @@ export interface DraftItemEntityDTO {
|
|
|
1147
1396
|
brand_id: string;
|
|
1148
1397
|
line_route?: string;
|
|
1149
1398
|
posid_segment?: string;
|
|
1399
|
+
menu_works?: MenuWorksDTO;
|
|
1400
|
+
is_out_of_stock?: boolean;
|
|
1150
1401
|
applied_diff_snapshot?: Record<string, any>;
|
|
1151
1402
|
version?: number;
|
|
1152
1403
|
brand?: DraftBrandDTO;
|
|
@@ -1173,6 +1424,7 @@ export interface PublishedItemPublishedItemDTO {
|
|
|
1173
1424
|
brand_id?: FilterFieldDTO;
|
|
1174
1425
|
line_route?: FilterFieldDTO;
|
|
1175
1426
|
posid_segment?: FilterFieldDTO;
|
|
1427
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
1176
1428
|
id?: FilterFieldDTO;
|
|
1177
1429
|
version?: FilterFieldDTO;
|
|
1178
1430
|
created_at?: FilterFieldDTO;
|
|
@@ -1186,6 +1438,7 @@ export interface PublishedItemPublishedItemDTO {
|
|
|
1186
1438
|
reporting?: ReportingMetadataDTO;
|
|
1187
1439
|
attachments?: FileAttachmentsDTO;
|
|
1188
1440
|
weight?: WeightDTO;
|
|
1441
|
+
menu_works?: MenuWorksDTO;
|
|
1189
1442
|
permissions?: FilterFieldDTO;
|
|
1190
1443
|
[index: string]: any;
|
|
1191
1444
|
}
|
|
@@ -1239,6 +1492,8 @@ export interface PublishedModifierGroupPublishedModifierGroupDTO {
|
|
|
1239
1492
|
is_active?: FilterFieldDTO;
|
|
1240
1493
|
limit?: FilterFieldDTO;
|
|
1241
1494
|
brand_id?: FilterFieldDTO;
|
|
1495
|
+
order_type?: FilterFieldDTO;
|
|
1496
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
1242
1497
|
id?: FilterFieldDTO;
|
|
1243
1498
|
version?: FilterFieldDTO;
|
|
1244
1499
|
created_at?: FilterFieldDTO;
|
|
@@ -1314,6 +1569,8 @@ export interface DraftModifierEntityDTO {
|
|
|
1314
1569
|
posid_segment?: string;
|
|
1315
1570
|
brand_id: string;
|
|
1316
1571
|
sizing?: Record<string, any>[];
|
|
1572
|
+
menu_works?: MenuWorksDTO;
|
|
1573
|
+
is_out_of_stock?: boolean;
|
|
1317
1574
|
applied_diff_snapshot?: Record<string, any>;
|
|
1318
1575
|
version?: number;
|
|
1319
1576
|
brand?: DraftBrandDTO;
|
|
@@ -1337,6 +1594,7 @@ export interface PublishedModifierPublishedModifierDTO {
|
|
|
1337
1594
|
posid_segment?: FilterFieldDTO;
|
|
1338
1595
|
brand_id?: FilterFieldDTO;
|
|
1339
1596
|
sizing?: FilterFieldDTO[];
|
|
1597
|
+
is_out_of_stock?: FilterFieldDTO;
|
|
1340
1598
|
id?: FilterFieldDTO;
|
|
1341
1599
|
version?: FilterFieldDTO;
|
|
1342
1600
|
created_at?: FilterFieldDTO;
|
|
@@ -1349,6 +1607,7 @@ export interface PublishedModifierPublishedModifierDTO {
|
|
|
1349
1607
|
reporting?: ReportingMetadataDTO;
|
|
1350
1608
|
weight?: WeightDTO;
|
|
1351
1609
|
attachments?: FileAttachmentsDTO;
|
|
1610
|
+
menu_works?: MenuWorksDTO;
|
|
1352
1611
|
permissions?: FilterFieldDTO;
|
|
1353
1612
|
[index: string]: any;
|
|
1354
1613
|
}
|
|
@@ -2860,6 +3119,29 @@ export interface GetMenuV3MenuCategoriesResponse {
|
|
|
2860
3119
|
}
|
|
2861
3120
|
export interface GetMenuV3MenuCategoriesRequest extends BaseRequest, RequestQuery<GetMenuV3MenuCategoriesQuery>, GetMenuV3MenuCategoriesPath {
|
|
2862
3121
|
}
|
|
3122
|
+
export interface PatchMenuV3StockPath {
|
|
3123
|
+
id: string;
|
|
3124
|
+
}
|
|
3125
|
+
export interface PatchMenuV3StockBody {
|
|
3126
|
+
id: string;
|
|
3127
|
+
groups?: GroupStockUpdate[];
|
|
3128
|
+
[index: string]: any;
|
|
3129
|
+
}
|
|
3130
|
+
export interface PatchMenuV3StockResponse {
|
|
3131
|
+
id?: string;
|
|
3132
|
+
date?: V2MenuDateDTO;
|
|
3133
|
+
label?: V2MenuLabelDTO;
|
|
3134
|
+
groups?: V2CategoryDTO[];
|
|
3135
|
+
parent_id?: string;
|
|
3136
|
+
location_brand?: string;
|
|
3137
|
+
company?: string;
|
|
3138
|
+
sector?: string;
|
|
3139
|
+
is?: V2MenuIsDTO;
|
|
3140
|
+
meta?: V2MetaDTO;
|
|
3141
|
+
}
|
|
3142
|
+
export interface PatchMenuV3StockRequest extends BaseRequest, PatchMenuV3StockPath {
|
|
3143
|
+
body: PatchMenuV3StockBody;
|
|
3144
|
+
}
|
|
2863
3145
|
export interface PostMenuV3DraftCategoryBody {
|
|
2864
3146
|
parent?: DraftCategoryDTO;
|
|
2865
3147
|
children?: DraftCategoryDTO[];
|
|
@@ -3200,6 +3482,8 @@ export interface PostMenuV3DraftItemBody {
|
|
|
3200
3482
|
brand_id: string;
|
|
3201
3483
|
line_route?: string;
|
|
3202
3484
|
posid_segment?: string;
|
|
3485
|
+
menu_works?: MenuWorksDTO;
|
|
3486
|
+
is_out_of_stock?: boolean;
|
|
3203
3487
|
id?: Record<string, any>;
|
|
3204
3488
|
applied_diff_snapshot?: Record<string, any>;
|
|
3205
3489
|
brand?: DraftBrandDTO;
|
|
@@ -3249,6 +3533,8 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
3249
3533
|
brand_id?: string;
|
|
3250
3534
|
line_route?: string;
|
|
3251
3535
|
posid_segment?: string;
|
|
3536
|
+
menu_works?: MenuWorksDTO;
|
|
3537
|
+
is_out_of_stock?: boolean;
|
|
3252
3538
|
applied_diff_snapshot?: Record<string, any>;
|
|
3253
3539
|
version?: number;
|
|
3254
3540
|
brand?: DraftBrandDTO;
|
|
@@ -3309,6 +3595,8 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
3309
3595
|
brand_id: string;
|
|
3310
3596
|
line_route?: string;
|
|
3311
3597
|
posid_segment?: string;
|
|
3598
|
+
menu_works?: MenuWorksDTO;
|
|
3599
|
+
is_out_of_stock?: boolean;
|
|
3312
3600
|
id?: Record<string, any>;
|
|
3313
3601
|
applied_diff_snapshot?: Record<string, any>;
|
|
3314
3602
|
brand?: DraftBrandDTO;
|
|
@@ -3373,6 +3661,8 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
3373
3661
|
brand_id?: string;
|
|
3374
3662
|
line_route?: string;
|
|
3375
3663
|
posid_segment?: string;
|
|
3664
|
+
menu_works?: MenuWorksDTO;
|
|
3665
|
+
is_out_of_stock?: boolean;
|
|
3376
3666
|
applied_diff_snapshot?: Record<string, any>;
|
|
3377
3667
|
brand?: DraftBrandDTO;
|
|
3378
3668
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -3665,6 +3955,8 @@ export interface PostMenuV3DraftModifierGroupBody {
|
|
|
3665
3955
|
is_active?: boolean;
|
|
3666
3956
|
limit?: number;
|
|
3667
3957
|
brand_id: string;
|
|
3958
|
+
order_type?: "selection" | "option" | "quantity";
|
|
3959
|
+
is_out_of_stock?: boolean;
|
|
3668
3960
|
id?: Record<string, any>;
|
|
3669
3961
|
applied_diff_snapshot?: Record<string, any>;
|
|
3670
3962
|
brand?: DraftBrandDTO;
|
|
@@ -3705,6 +3997,8 @@ export interface PatchMenuV3DraftModifierGroupBody {
|
|
|
3705
3997
|
is_active?: boolean;
|
|
3706
3998
|
limit?: number;
|
|
3707
3999
|
brand_id?: string;
|
|
4000
|
+
order_type?: "selection" | "option" | "quantity";
|
|
4001
|
+
is_out_of_stock?: boolean;
|
|
3708
4002
|
applied_diff_snapshot?: Record<string, any>;
|
|
3709
4003
|
version?: number;
|
|
3710
4004
|
brand?: DraftBrandDTO;
|
|
@@ -3756,6 +4050,8 @@ export type PostMenuV3DraftModifierGroupsBody = {
|
|
|
3756
4050
|
is_active?: boolean;
|
|
3757
4051
|
limit?: number;
|
|
3758
4052
|
brand_id: string;
|
|
4053
|
+
order_type?: "selection" | "option" | "quantity";
|
|
4054
|
+
is_out_of_stock?: boolean;
|
|
3759
4055
|
id?: Record<string, any>;
|
|
3760
4056
|
applied_diff_snapshot?: Record<string, any>;
|
|
3761
4057
|
brand?: DraftBrandDTO;
|
|
@@ -3804,6 +4100,8 @@ export interface PostMenuV3DraftModifierGroupDuplicateResponse {
|
|
|
3804
4100
|
is_active?: boolean;
|
|
3805
4101
|
limit?: number;
|
|
3806
4102
|
brand_id: string;
|
|
4103
|
+
order_type?: "selection" | "option" | "quantity";
|
|
4104
|
+
is_out_of_stock?: boolean;
|
|
3807
4105
|
applied_diff_snapshot?: Record<string, any>;
|
|
3808
4106
|
version?: number;
|
|
3809
4107
|
brand?: DraftBrandDTO;
|
|
@@ -4046,6 +4344,8 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
4046
4344
|
posid_segment?: string;
|
|
4047
4345
|
brand_id: string;
|
|
4048
4346
|
sizing?: Record<string, any>[];
|
|
4347
|
+
menu_works?: MenuWorksDTO;
|
|
4348
|
+
is_out_of_stock?: boolean;
|
|
4049
4349
|
id?: Record<string, any>;
|
|
4050
4350
|
applied_diff_snapshot?: Record<string, any>;
|
|
4051
4351
|
brand?: DraftBrandDTO;
|
|
@@ -4092,6 +4392,8 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
4092
4392
|
posid_segment?: string;
|
|
4093
4393
|
brand_id?: string;
|
|
4094
4394
|
sizing?: Record<string, any>[];
|
|
4395
|
+
menu_works?: MenuWorksDTO;
|
|
4396
|
+
is_out_of_stock?: boolean;
|
|
4095
4397
|
applied_diff_snapshot?: Record<string, any>;
|
|
4096
4398
|
version?: number;
|
|
4097
4399
|
brand?: DraftBrandDTO;
|
|
@@ -4149,6 +4451,8 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
4149
4451
|
posid_segment?: string;
|
|
4150
4452
|
brand_id: string;
|
|
4151
4453
|
sizing?: Record<string, any>[];
|
|
4454
|
+
menu_works?: MenuWorksDTO;
|
|
4455
|
+
is_out_of_stock?: boolean;
|
|
4152
4456
|
id?: Record<string, any>;
|
|
4153
4457
|
applied_diff_snapshot?: Record<string, any>;
|
|
4154
4458
|
brand?: DraftBrandDTO;
|
|
@@ -4198,6 +4502,8 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
4198
4502
|
posid_segment?: string;
|
|
4199
4503
|
brand_id?: string;
|
|
4200
4504
|
sizing?: Record<string, any>[];
|
|
4505
|
+
menu_works?: MenuWorksDTO;
|
|
4506
|
+
is_out_of_stock?: boolean;
|
|
4201
4507
|
applied_diff_snapshot?: Record<string, any>;
|
|
4202
4508
|
brand?: DraftBrandDTO;
|
|
4203
4509
|
changes?: ModifierChangeDTO[];
|
|
@@ -4343,4 +4649,21 @@ export interface GetMenuV3GlobalDiffsCountResponse {
|
|
|
4343
4649
|
}
|
|
4344
4650
|
export interface GetMenuV3GlobalDiffsCountRequest extends BaseRequest, RequestQuery<GetMenuV3GlobalDiffsCountQuery> {
|
|
4345
4651
|
}
|
|
4652
|
+
export interface GetMenuV3MenuworksQuery {
|
|
4653
|
+
unit_id?: string;
|
|
4654
|
+
MRN?: string;
|
|
4655
|
+
_query?: string;
|
|
4656
|
+
}
|
|
4657
|
+
export interface GetMenuV3MenuworksResponse {
|
|
4658
|
+
MRN?: string;
|
|
4659
|
+
unit_id?: string;
|
|
4660
|
+
portion_quantity?: number;
|
|
4661
|
+
portion_unit_name?: string;
|
|
4662
|
+
grams?: number;
|
|
4663
|
+
cost?: number;
|
|
4664
|
+
calories?: number;
|
|
4665
|
+
[index: string]: any;
|
|
4666
|
+
}
|
|
4667
|
+
export interface GetMenuV3MenuworksRequest extends BaseRequest, RequestQuery<GetMenuV3MenuworksQuery> {
|
|
4668
|
+
}
|
|
4346
4669
|
//# sourceMappingURL=menu.d.ts.map
|