@compassdigital/sdk.typescript 4.45.0 → 4.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +2 -2
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +31 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +32 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/auth.d.ts +16 -8
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/location.d.ts +3 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +118 -1
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +3 -0
- package/lib/interface/partner.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/base.ts +2 -3
- package/src/index.ts +80 -9
- package/src/interface/auth.ts +23 -10
- package/src/interface/location.ts +3 -0
- package/src/interface/menu.ts +136 -2
- package/src/interface/partner.ts +3 -0
- package/test/client.test.ts +1 -1
package/src/interface/menu.ts
CHANGED
|
@@ -35,12 +35,15 @@ export interface Menu {
|
|
|
35
35
|
calories_edit_enabled?: boolean;
|
|
36
36
|
item_label_edit_enabled?: boolean;
|
|
37
37
|
frictionless?: boolean;
|
|
38
|
+
category_images_enabled?: boolean;
|
|
38
39
|
};
|
|
39
40
|
meta?: {
|
|
40
41
|
// User ID
|
|
41
42
|
locked_by_user?: string;
|
|
42
43
|
// User ID
|
|
43
44
|
last_modified_user?: string;
|
|
45
|
+
centricos?: boolean;
|
|
46
|
+
version?: number;
|
|
44
47
|
[index: string]: any;
|
|
45
48
|
};
|
|
46
49
|
}
|
|
@@ -56,6 +59,7 @@ export interface Item {
|
|
|
56
59
|
label?: {
|
|
57
60
|
en?: string;
|
|
58
61
|
};
|
|
62
|
+
name?: string;
|
|
59
63
|
description?: {
|
|
60
64
|
en?: string;
|
|
61
65
|
};
|
|
@@ -151,11 +155,22 @@ export interface Item {
|
|
|
151
155
|
item_number?: number;
|
|
152
156
|
image?: {
|
|
153
157
|
src?: string;
|
|
158
|
+
sizes?: {
|
|
159
|
+
original?: string;
|
|
160
|
+
thumbnail_80_80?: string;
|
|
161
|
+
};
|
|
154
162
|
};
|
|
155
163
|
weight?: {
|
|
156
164
|
unit?: string;
|
|
157
165
|
amount?: number;
|
|
158
166
|
};
|
|
167
|
+
line_route?: string;
|
|
168
|
+
reporting?: {
|
|
169
|
+
category?: {
|
|
170
|
+
primary?: string;
|
|
171
|
+
secondary?: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
159
174
|
//@deprecated
|
|
160
175
|
is_deleted?: boolean;
|
|
161
176
|
is?: {
|
|
@@ -171,6 +186,7 @@ export interface Item {
|
|
|
171
186
|
export interface Group {
|
|
172
187
|
// group
|
|
173
188
|
id?: string;
|
|
189
|
+
name?: string;
|
|
174
190
|
label?: {
|
|
175
191
|
en?: string;
|
|
176
192
|
fr?: string;
|
|
@@ -178,11 +194,10 @@ export interface Group {
|
|
|
178
194
|
items?: Item[];
|
|
179
195
|
//@deprecated
|
|
180
196
|
is_disabled?: boolean;
|
|
181
|
-
//@deprecated
|
|
182
|
-
name?: string;
|
|
183
197
|
is?: {
|
|
184
198
|
disabled?: boolean;
|
|
185
199
|
hidden?: boolean;
|
|
200
|
+
item_images_enabled?: boolean;
|
|
186
201
|
};
|
|
187
202
|
meta?: {
|
|
188
203
|
// chit sort order
|
|
@@ -191,6 +206,13 @@ export interface Group {
|
|
|
191
206
|
menu_sort_number?: number;
|
|
192
207
|
[index: string]: any;
|
|
193
208
|
};
|
|
209
|
+
image?: {
|
|
210
|
+
src?: string;
|
|
211
|
+
sizes?: {
|
|
212
|
+
original?: string;
|
|
213
|
+
thumbnail_80_80?: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
194
216
|
}
|
|
195
217
|
|
|
196
218
|
export interface Option {
|
|
@@ -199,14 +221,31 @@ export interface Option {
|
|
|
199
221
|
label?: {
|
|
200
222
|
en?: string;
|
|
201
223
|
};
|
|
224
|
+
name?: string;
|
|
225
|
+
description?: {
|
|
226
|
+
en?: string;
|
|
227
|
+
};
|
|
202
228
|
price?: {
|
|
203
229
|
amount?: number;
|
|
204
230
|
currency?: string;
|
|
205
231
|
};
|
|
232
|
+
reporting?: {
|
|
233
|
+
category?: {
|
|
234
|
+
primary?: string;
|
|
235
|
+
secondary?: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
206
238
|
weight?: {
|
|
207
239
|
unit?: string;
|
|
208
240
|
amount?: number;
|
|
209
241
|
};
|
|
242
|
+
image?: {
|
|
243
|
+
src?: string;
|
|
244
|
+
sizes?: {
|
|
245
|
+
original?: string;
|
|
246
|
+
thumbnail_80_80?: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
210
249
|
sku?: number;
|
|
211
250
|
nutrition?: {
|
|
212
251
|
//@deprecated
|
|
@@ -225,6 +264,12 @@ export interface Option {
|
|
|
225
264
|
sort_number?: number;
|
|
226
265
|
// menu sort order
|
|
227
266
|
menu_sort_number?: number;
|
|
267
|
+
plu?: string;
|
|
268
|
+
sizing?: {
|
|
269
|
+
name?: string;
|
|
270
|
+
posid?: string;
|
|
271
|
+
price?: number;
|
|
272
|
+
}[];
|
|
228
273
|
tax?: {
|
|
229
274
|
tax_tag_code?: string;
|
|
230
275
|
};
|
|
@@ -245,6 +290,7 @@ export interface OptionsGroup {
|
|
|
245
290
|
en?: string;
|
|
246
291
|
};
|
|
247
292
|
unique_name?: string;
|
|
293
|
+
name?: string;
|
|
248
294
|
items?: Option[];
|
|
249
295
|
min?: number;
|
|
250
296
|
max?: number;
|
|
@@ -252,6 +298,7 @@ export interface OptionsGroup {
|
|
|
252
298
|
disabled?: boolean;
|
|
253
299
|
hidden?: boolean;
|
|
254
300
|
out_of_stock?: boolean;
|
|
301
|
+
incremental?: boolean;
|
|
255
302
|
};
|
|
256
303
|
meta?: {
|
|
257
304
|
// chit sort order
|
|
@@ -260,6 +307,7 @@ export interface OptionsGroup {
|
|
|
260
307
|
menu_sort_number?: number;
|
|
261
308
|
[index: string]: any;
|
|
262
309
|
};
|
|
310
|
+
limit?: number;
|
|
263
311
|
[index: string]: any;
|
|
264
312
|
}
|
|
265
313
|
|
|
@@ -343,6 +391,7 @@ export interface DraftBrandDTO {
|
|
|
343
391
|
global_menu_group_id?: string;
|
|
344
392
|
posid_segment?: string;
|
|
345
393
|
is_simplified_view?: boolean;
|
|
394
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
346
395
|
permissions?: Record<string, any>;
|
|
347
396
|
[index: string]: any;
|
|
348
397
|
}
|
|
@@ -555,6 +604,8 @@ export interface DraftItemDTO {
|
|
|
555
604
|
id?: string;
|
|
556
605
|
parent_id?: string;
|
|
557
606
|
name?: string;
|
|
607
|
+
name_on_receipt?: string;
|
|
608
|
+
name_on_kds?: string;
|
|
558
609
|
label?: string;
|
|
559
610
|
description?: string;
|
|
560
611
|
reporting?: Record<string, any>;
|
|
@@ -571,6 +622,7 @@ export interface DraftItemDTO {
|
|
|
571
622
|
menu_works?: Record<string, any>;
|
|
572
623
|
is_out_of_stock?: boolean;
|
|
573
624
|
tax_tag_code?: string;
|
|
625
|
+
tags?: string[];
|
|
574
626
|
applied_diff_snapshot?: Record<string, any>;
|
|
575
627
|
brand?: DraftBrandDTO;
|
|
576
628
|
categories?: Record<string, any>[];
|
|
@@ -653,6 +705,8 @@ export interface DraftModifierDTO {
|
|
|
653
705
|
id?: string;
|
|
654
706
|
parent_id?: string;
|
|
655
707
|
name?: string;
|
|
708
|
+
name_on_receipt?: string;
|
|
709
|
+
name_on_kds?: string;
|
|
656
710
|
label?: string;
|
|
657
711
|
description?: string;
|
|
658
712
|
price?: number;
|
|
@@ -671,6 +725,7 @@ export interface DraftModifierDTO {
|
|
|
671
725
|
pre_surcharge?: number;
|
|
672
726
|
post_surcharge?: number;
|
|
673
727
|
tax_tag_code?: string;
|
|
728
|
+
tags?: string[];
|
|
674
729
|
applied_diff_snapshot?: Record<string, any>;
|
|
675
730
|
brand?: DraftBrandDTO;
|
|
676
731
|
changes?: ModifierChangeDTO[];
|
|
@@ -921,6 +976,8 @@ export interface PublishedItemDTO {
|
|
|
921
976
|
id?: string;
|
|
922
977
|
parent_id?: string;
|
|
923
978
|
name?: string;
|
|
979
|
+
name_on_receipt?: string;
|
|
980
|
+
name_on_kds?: string;
|
|
924
981
|
label?: string;
|
|
925
982
|
description?: string;
|
|
926
983
|
price?: number;
|
|
@@ -935,6 +992,7 @@ export interface PublishedItemDTO {
|
|
|
935
992
|
posid_segment?: string;
|
|
936
993
|
is_out_of_stock?: boolean;
|
|
937
994
|
tax_tag_code?: string;
|
|
995
|
+
tags?: string[];
|
|
938
996
|
permissions?: Record<string, any>;
|
|
939
997
|
[index: string]: any;
|
|
940
998
|
}
|
|
@@ -983,6 +1041,8 @@ export interface PublishedModifierDTO {
|
|
|
983
1041
|
id?: string;
|
|
984
1042
|
parent_id?: string;
|
|
985
1043
|
name?: string;
|
|
1044
|
+
name_on_receipt?: string;
|
|
1045
|
+
name_on_kds?: string;
|
|
986
1046
|
label?: string;
|
|
987
1047
|
description?: string;
|
|
988
1048
|
price?: number;
|
|
@@ -999,6 +1059,7 @@ export interface PublishedModifierDTO {
|
|
|
999
1059
|
pre_surcharge?: number;
|
|
1000
1060
|
post_surcharge?: number;
|
|
1001
1061
|
tax_tag_code?: string;
|
|
1062
|
+
tags?: string[];
|
|
1002
1063
|
permissions?: Record<string, any>;
|
|
1003
1064
|
[index: string]: any;
|
|
1004
1065
|
}
|
|
@@ -1271,6 +1332,8 @@ export interface DraftItemEntityDTO {
|
|
|
1271
1332
|
deleted_at?: string;
|
|
1272
1333
|
parent_id?: string;
|
|
1273
1334
|
name: string;
|
|
1335
|
+
name_on_receipt?: string;
|
|
1336
|
+
name_on_kds?: string;
|
|
1274
1337
|
label?: string;
|
|
1275
1338
|
description?: string;
|
|
1276
1339
|
reporting: ReportingMetadataDTO;
|
|
@@ -1287,6 +1350,7 @@ export interface DraftItemEntityDTO {
|
|
|
1287
1350
|
menu_works?: MenuWorksDTO;
|
|
1288
1351
|
is_out_of_stock?: boolean;
|
|
1289
1352
|
tax_tag_code?: string;
|
|
1353
|
+
tags?: string[];
|
|
1290
1354
|
applied_diff_snapshot?: Record<string, any>;
|
|
1291
1355
|
version?: number;
|
|
1292
1356
|
brand?: DraftBrandDTO;
|
|
@@ -1309,6 +1373,8 @@ export interface DraftModifierEntityDTO {
|
|
|
1309
1373
|
deleted_at?: string;
|
|
1310
1374
|
parent_id?: string;
|
|
1311
1375
|
name: string;
|
|
1376
|
+
name_on_receipt?: string;
|
|
1377
|
+
name_on_kds?: string;
|
|
1312
1378
|
label?: string;
|
|
1313
1379
|
description?: string;
|
|
1314
1380
|
price: number;
|
|
@@ -1327,6 +1393,7 @@ export interface DraftModifierEntityDTO {
|
|
|
1327
1393
|
pre_surcharge?: number;
|
|
1328
1394
|
post_surcharge?: number;
|
|
1329
1395
|
tax_tag_code?: string;
|
|
1396
|
+
tags?: string[];
|
|
1330
1397
|
applied_diff_snapshot?: Record<string, any>;
|
|
1331
1398
|
version?: number;
|
|
1332
1399
|
brand?: DraftBrandDTO;
|
|
@@ -2562,6 +2629,7 @@ export interface PostMenuV3DraftBrandBody {
|
|
|
2562
2629
|
global_menu_group_id?: string;
|
|
2563
2630
|
posid_segment?: string;
|
|
2564
2631
|
is_simplified_view?: boolean;
|
|
2632
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
2565
2633
|
changes?: BrandChangeDTO[];
|
|
2566
2634
|
local_menu_group?: LocalMenuGroupDTO;
|
|
2567
2635
|
global_menu_group?: GlobalMenuGroupDTO;
|
|
@@ -2627,6 +2695,7 @@ export interface PatchMenuV3DraftBrandBody {
|
|
|
2627
2695
|
global_menu_group_id?: string;
|
|
2628
2696
|
posid_segment?: string;
|
|
2629
2697
|
is_simplified_view?: boolean;
|
|
2698
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
2630
2699
|
version?: number;
|
|
2631
2700
|
changes?: BrandChangeDTO[];
|
|
2632
2701
|
local_menu_group?: LocalMenuGroupDTO;
|
|
@@ -2714,6 +2783,7 @@ export type PostMenuV3DraftBrandsBody = {
|
|
|
2714
2783
|
global_menu_group_id?: string;
|
|
2715
2784
|
posid_segment?: string;
|
|
2716
2785
|
is_simplified_view?: boolean;
|
|
2786
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
2717
2787
|
changes?: BrandChangeDTO[];
|
|
2718
2788
|
local_menu_group?: LocalMenuGroupDTO;
|
|
2719
2789
|
global_menu_group?: GlobalMenuGroupDTO;
|
|
@@ -2937,6 +3007,46 @@ export interface GetMenuV3DraftBrandModifiersReportingCategoriesRequest
|
|
|
2937
3007
|
RequestQuery<GetMenuV3DraftBrandModifiersReportingCategoriesQuery>,
|
|
2938
3008
|
GetMenuV3DraftBrandModifiersReportingCategoriesPath {}
|
|
2939
3009
|
|
|
3010
|
+
// GET /menu/v3/draft/brand/{id}/items/tags
|
|
3011
|
+
|
|
3012
|
+
export interface GetMenuV3DraftBrandItemsTagsPath {
|
|
3013
|
+
id: string;
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
export interface GetMenuV3DraftBrandItemsTagsQuery {
|
|
3017
|
+
// Graphql query string
|
|
3018
|
+
_query?: string;
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
export interface GetMenuV3DraftBrandItemsTagsResponse {
|
|
3022
|
+
tags?: string[];
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
export interface GetMenuV3DraftBrandItemsTagsRequest
|
|
3026
|
+
extends BaseRequest,
|
|
3027
|
+
RequestQuery<GetMenuV3DraftBrandItemsTagsQuery>,
|
|
3028
|
+
GetMenuV3DraftBrandItemsTagsPath {}
|
|
3029
|
+
|
|
3030
|
+
// GET /menu/v3/draft/brand/{id}/modifiers/tags
|
|
3031
|
+
|
|
3032
|
+
export interface GetMenuV3DraftBrandModifiersTagsPath {
|
|
3033
|
+
id: string;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
export interface GetMenuV3DraftBrandModifiersTagsQuery {
|
|
3037
|
+
// Graphql query string
|
|
3038
|
+
_query?: string;
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
export interface GetMenuV3DraftBrandModifiersTagsResponse {
|
|
3042
|
+
tags?: string[];
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
export interface GetMenuV3DraftBrandModifiersTagsRequest
|
|
3046
|
+
extends BaseRequest,
|
|
3047
|
+
RequestQuery<GetMenuV3DraftBrandModifiersTagsQuery>,
|
|
3048
|
+
GetMenuV3DraftBrandModifiersTagsPath {}
|
|
3049
|
+
|
|
2940
3050
|
// POST /menu/v3/draft/brand/{id}/publish
|
|
2941
3051
|
|
|
2942
3052
|
export interface PostMenuV3DraftBrandPublishPath {
|
|
@@ -4238,6 +4348,8 @@ export interface PostMenuV3DraftItemBody {
|
|
|
4238
4348
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
4239
4349
|
parent_id?: string;
|
|
4240
4350
|
name: string;
|
|
4351
|
+
name_on_receipt?: string;
|
|
4352
|
+
name_on_kds?: string;
|
|
4241
4353
|
label?: string;
|
|
4242
4354
|
description?: string;
|
|
4243
4355
|
reporting: ReportingMetadataDTO;
|
|
@@ -4254,6 +4366,7 @@ export interface PostMenuV3DraftItemBody {
|
|
|
4254
4366
|
menu_works?: MenuWorksDTO;
|
|
4255
4367
|
is_out_of_stock?: boolean;
|
|
4256
4368
|
tax_tag_code?: string;
|
|
4369
|
+
tags?: string[];
|
|
4257
4370
|
applied_diff_snapshot?: Record<string, any>;
|
|
4258
4371
|
brand?: DraftBrandDTO;
|
|
4259
4372
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -4306,6 +4419,8 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
4306
4419
|
id?: string;
|
|
4307
4420
|
parent_id?: string;
|
|
4308
4421
|
name?: string;
|
|
4422
|
+
name_on_receipt?: string;
|
|
4423
|
+
name_on_kds?: string;
|
|
4309
4424
|
label?: string;
|
|
4310
4425
|
description?: string;
|
|
4311
4426
|
reporting?: ReportingMetadataDTO;
|
|
@@ -4322,6 +4437,7 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
4322
4437
|
menu_works?: MenuWorksDTO;
|
|
4323
4438
|
is_out_of_stock?: boolean;
|
|
4324
4439
|
tax_tag_code?: string;
|
|
4440
|
+
tags?: string[];
|
|
4325
4441
|
applied_diff_snapshot?: Record<string, any>;
|
|
4326
4442
|
version?: number;
|
|
4327
4443
|
brand?: DraftBrandDTO;
|
|
@@ -4396,6 +4512,8 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
4396
4512
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
4397
4513
|
parent_id?: string;
|
|
4398
4514
|
name: string;
|
|
4515
|
+
name_on_receipt?: string;
|
|
4516
|
+
name_on_kds?: string;
|
|
4399
4517
|
label?: string;
|
|
4400
4518
|
description?: string;
|
|
4401
4519
|
reporting: ReportingMetadataDTO;
|
|
@@ -4412,6 +4530,7 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
4412
4530
|
menu_works?: MenuWorksDTO;
|
|
4413
4531
|
is_out_of_stock?: boolean;
|
|
4414
4532
|
tax_tag_code?: string;
|
|
4533
|
+
tags?: string[];
|
|
4415
4534
|
applied_diff_snapshot?: Record<string, any>;
|
|
4416
4535
|
brand?: DraftBrandDTO;
|
|
4417
4536
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -4482,6 +4601,8 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
4482
4601
|
id?: string;
|
|
4483
4602
|
parent_id?: string;
|
|
4484
4603
|
name?: string;
|
|
4604
|
+
name_on_receipt?: string;
|
|
4605
|
+
name_on_kds?: string;
|
|
4485
4606
|
label?: string;
|
|
4486
4607
|
description?: string;
|
|
4487
4608
|
reporting?: ReportingMetadataDTO;
|
|
@@ -4498,6 +4619,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
4498
4619
|
menu_works?: MenuWorksDTO;
|
|
4499
4620
|
is_out_of_stock?: boolean;
|
|
4500
4621
|
tax_tag_code?: string;
|
|
4622
|
+
tags?: string[];
|
|
4501
4623
|
applied_diff_snapshot?: Record<string, any>;
|
|
4502
4624
|
brand?: DraftBrandDTO;
|
|
4503
4625
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -5495,6 +5617,8 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
5495
5617
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
5496
5618
|
parent_id?: string;
|
|
5497
5619
|
name: string;
|
|
5620
|
+
name_on_receipt?: string;
|
|
5621
|
+
name_on_kds?: string;
|
|
5498
5622
|
label?: string;
|
|
5499
5623
|
description?: string;
|
|
5500
5624
|
price: number;
|
|
@@ -5513,6 +5637,7 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
5513
5637
|
pre_surcharge?: number;
|
|
5514
5638
|
post_surcharge?: number;
|
|
5515
5639
|
tax_tag_code?: string;
|
|
5640
|
+
tags?: string[];
|
|
5516
5641
|
applied_diff_snapshot?: Record<string, any>;
|
|
5517
5642
|
brand?: DraftBrandDTO;
|
|
5518
5643
|
changes?: ModifierChangeDTO[];
|
|
@@ -5564,6 +5689,8 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
5564
5689
|
id?: string;
|
|
5565
5690
|
parent_id?: string;
|
|
5566
5691
|
name?: string;
|
|
5692
|
+
name_on_receipt?: string;
|
|
5693
|
+
name_on_kds?: string;
|
|
5567
5694
|
label?: string;
|
|
5568
5695
|
description?: string;
|
|
5569
5696
|
price?: number;
|
|
@@ -5582,6 +5709,7 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
5582
5709
|
pre_surcharge?: number;
|
|
5583
5710
|
post_surcharge?: number;
|
|
5584
5711
|
tax_tag_code?: string;
|
|
5712
|
+
tags?: string[];
|
|
5585
5713
|
applied_diff_snapshot?: Record<string, any>;
|
|
5586
5714
|
version?: number;
|
|
5587
5715
|
brand?: DraftBrandDTO;
|
|
@@ -5655,6 +5783,8 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
5655
5783
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
5656
5784
|
parent_id?: string;
|
|
5657
5785
|
name: string;
|
|
5786
|
+
name_on_receipt?: string;
|
|
5787
|
+
name_on_kds?: string;
|
|
5658
5788
|
label?: string;
|
|
5659
5789
|
description?: string;
|
|
5660
5790
|
price: number;
|
|
@@ -5673,6 +5803,7 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
5673
5803
|
pre_surcharge?: number;
|
|
5674
5804
|
post_surcharge?: number;
|
|
5675
5805
|
tax_tag_code?: string;
|
|
5806
|
+
tags?: string[];
|
|
5676
5807
|
applied_diff_snapshot?: Record<string, any>;
|
|
5677
5808
|
brand?: DraftBrandDTO;
|
|
5678
5809
|
changes?: ModifierChangeDTO[];
|
|
@@ -5721,6 +5852,8 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
5721
5852
|
id?: string;
|
|
5722
5853
|
parent_id?: string;
|
|
5723
5854
|
name?: string;
|
|
5855
|
+
name_on_receipt?: string;
|
|
5856
|
+
name_on_kds?: string;
|
|
5724
5857
|
label?: string;
|
|
5725
5858
|
description?: string;
|
|
5726
5859
|
price?: number;
|
|
@@ -5739,6 +5872,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
5739
5872
|
pre_surcharge?: number;
|
|
5740
5873
|
post_surcharge?: number;
|
|
5741
5874
|
tax_tag_code?: string;
|
|
5875
|
+
tags?: string[];
|
|
5742
5876
|
applied_diff_snapshot?: Record<string, any>;
|
|
5743
5877
|
brand?: DraftBrandDTO;
|
|
5744
5878
|
changes?: ModifierChangeDTO[];
|
package/src/interface/partner.ts
CHANGED
package/test/client.test.ts
CHANGED
|
@@ -28,7 +28,7 @@ describe('ServiceClient', () => {
|
|
|
28
28
|
expect(req).toEqual({
|
|
29
29
|
name: 'get_task',
|
|
30
30
|
service: 'task',
|
|
31
|
-
url: 'https://api.compassdigital.org/
|
|
31
|
+
url: 'https://dev.api.compassdigital.org/task/some_id',
|
|
32
32
|
method: 'get',
|
|
33
33
|
headers: {
|
|
34
34
|
'User-Agent': 'CDL/ServiceClient',
|