@compassdigital/sdk.typescript 4.93.0 → 4.94.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 +182 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +211 -1
- package/lib/index.js.map +1 -1
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/location.d.ts +9 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +1090 -7
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +3 -1
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +138 -20
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/user.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +500 -1
- package/src/interface/calendar.ts +0 -2
- package/src/interface/location.ts +26 -29
- package/src/interface/menu.ts +1271 -7
- package/src/interface/order.ts +5 -4
- package/src/interface/partner.ts +194 -34
- package/src/interface/user.ts +5 -11
package/src/index.ts
CHANGED
|
@@ -652,6 +652,8 @@ import {
|
|
|
652
652
|
PostMenuV3DraftMenuPublishResponse,
|
|
653
653
|
GetMenuV3DraftMenusVerifyPublishQuery,
|
|
654
654
|
GetMenuV3DraftMenusVerifyPublishResponse,
|
|
655
|
+
PostMenuV3DraftMenuDuplicateBody,
|
|
656
|
+
PostMenuV3DraftMenuDuplicateResponse,
|
|
655
657
|
GetMenuV3MenuQuery,
|
|
656
658
|
GetMenuV3MenuResponse,
|
|
657
659
|
GetMenuV3MenusQuery,
|
|
@@ -679,6 +681,8 @@ import {
|
|
|
679
681
|
PostMenuV3DraftCategoryRecoverResponse,
|
|
680
682
|
PostMenuV3DraftCategoryAttachmentQuery,
|
|
681
683
|
PostMenuV3DraftCategoryAttachmentResponse,
|
|
684
|
+
PostMenuV3DraftCategoryDuplicateBody,
|
|
685
|
+
PostMenuV3DraftCategoryDuplicateResponse,
|
|
682
686
|
GetMenuV3CategoryQuery,
|
|
683
687
|
GetMenuV3CategoryResponse,
|
|
684
688
|
GetMenuV3CategorysCountQuery,
|
|
@@ -873,6 +877,44 @@ import {
|
|
|
873
877
|
PostMenuV4BrandResponse,
|
|
874
878
|
GetMenuV4BrandQuery,
|
|
875
879
|
GetMenuV4BrandResponse,
|
|
880
|
+
PostMenuV4BrandMenuBody,
|
|
881
|
+
PostMenuV4BrandMenuResponse,
|
|
882
|
+
GetMenuV4BrandItemsQuery,
|
|
883
|
+
GetMenuV4BrandItemsResponse,
|
|
884
|
+
GetMenuV4BrandModifierGroupsQuery,
|
|
885
|
+
GetMenuV4BrandModifierGroupsResponse,
|
|
886
|
+
GetMenuV4BrandModifiersQuery,
|
|
887
|
+
GetMenuV4BrandModifiersResponse,
|
|
888
|
+
GetMenuV4BrandCategoryItemsQuery,
|
|
889
|
+
GetMenuV4BrandCategoryItemsResponse,
|
|
890
|
+
PostMenuV4BrandCategoryBody,
|
|
891
|
+
PostMenuV4BrandCategoryResponse,
|
|
892
|
+
PatchMenuV4BrandCategoryBody,
|
|
893
|
+
PatchMenuV4BrandCategoryResponse,
|
|
894
|
+
PostMenuV4BrandCategoryAttachItemsBody,
|
|
895
|
+
PostMenuV4BrandCategoryAttachItemsResponse,
|
|
896
|
+
PostMenuV4BrandPublishResponse,
|
|
897
|
+
PostMenuV4BrandV3ToV4Response,
|
|
898
|
+
PostMenuV4ItemBody,
|
|
899
|
+
PostMenuV4ItemResponse,
|
|
900
|
+
GetMenuV4ItemQuery,
|
|
901
|
+
GetMenuV4ItemResponse,
|
|
902
|
+
PatchMenuV4ItemBody,
|
|
903
|
+
PatchMenuV4ItemResponse,
|
|
904
|
+
PostMenuV4ModifierBody,
|
|
905
|
+
PostMenuV4ModifierResponse,
|
|
906
|
+
GetMenuV4ModifierQuery,
|
|
907
|
+
GetMenuV4ModifierResponse,
|
|
908
|
+
PatchMenuV4ModifierBody,
|
|
909
|
+
PatchMenuV4ModifierResponse,
|
|
910
|
+
PostMenuV4ModifierGroupBody,
|
|
911
|
+
PostMenuV4ModifierGroupResponse,
|
|
912
|
+
GetMenuV4ModifierGroupQuery,
|
|
913
|
+
GetMenuV4ModifierGroupResponse,
|
|
914
|
+
PatchMenuV4ModifierGroupBody,
|
|
915
|
+
PatchMenuV4ModifierGroupResponse,
|
|
916
|
+
PostMenuV4ModifierGroupAttachModifiersBody,
|
|
917
|
+
PostMenuV4ModifierGroupAttachModifiersResponse,
|
|
876
918
|
} from './interface/menu';
|
|
877
919
|
|
|
878
920
|
import {
|
|
@@ -1420,7 +1462,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1420
1462
|
* PATCH /order/{id}/cancel - Cancel and issue a refund on an existing order
|
|
1421
1463
|
*
|
|
1422
1464
|
* @param id - The order ID
|
|
1423
|
-
* @param body -
|
|
1465
|
+
* @param body - Reason for cancellation
|
|
1424
1466
|
* @param options - additional request options
|
|
1425
1467
|
*/
|
|
1426
1468
|
patch_order_cancel(
|
|
@@ -6875,6 +6917,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6875
6917
|
);
|
|
6876
6918
|
}
|
|
6877
6919
|
|
|
6920
|
+
/**
|
|
6921
|
+
* POST /menu/v3/draft/menu/{id}/duplicate
|
|
6922
|
+
*
|
|
6923
|
+
* @param id
|
|
6924
|
+
* @param body - Optional properties to be updated on the duplicated menu.
|
|
6925
|
+
* @param options - additional request options
|
|
6926
|
+
*/
|
|
6927
|
+
post_menu_v3_draft_menu_duplicate(
|
|
6928
|
+
id: string,
|
|
6929
|
+
body: PostMenuV3DraftMenuDuplicateBody,
|
|
6930
|
+
options?: RequestOptions,
|
|
6931
|
+
): ResponsePromise<PostMenuV3DraftMenuDuplicateResponse> {
|
|
6932
|
+
return this.request(
|
|
6933
|
+
'menu',
|
|
6934
|
+
'/menu/v3/draft/menu/{id}/duplicate',
|
|
6935
|
+
'post',
|
|
6936
|
+
`/menu/v3/draft/menu/${id}/duplicate`,
|
|
6937
|
+
body,
|
|
6938
|
+
options,
|
|
6939
|
+
);
|
|
6940
|
+
}
|
|
6941
|
+
|
|
6878
6942
|
/**
|
|
6879
6943
|
* GET /menu/v3/menu/{id}
|
|
6880
6944
|
*
|
|
@@ -7159,6 +7223,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
7159
7223
|
);
|
|
7160
7224
|
}
|
|
7161
7225
|
|
|
7226
|
+
/**
|
|
7227
|
+
* POST /menu/v3/draft/category/{id}/duplicate
|
|
7228
|
+
*
|
|
7229
|
+
* @param id
|
|
7230
|
+
* @param body - Optional properties to be updated on the duplicated category.
|
|
7231
|
+
* @param options - additional request options
|
|
7232
|
+
*/
|
|
7233
|
+
post_menu_v3_draft_category_duplicate(
|
|
7234
|
+
id: string,
|
|
7235
|
+
body: PostMenuV3DraftCategoryDuplicateBody,
|
|
7236
|
+
options?: RequestOptions,
|
|
7237
|
+
): ResponsePromise<PostMenuV3DraftCategoryDuplicateResponse> {
|
|
7238
|
+
return this.request(
|
|
7239
|
+
'menu',
|
|
7240
|
+
'/menu/v3/draft/category/{id}/duplicate',
|
|
7241
|
+
'post',
|
|
7242
|
+
`/menu/v3/draft/category/${id}/duplicate`,
|
|
7243
|
+
body,
|
|
7244
|
+
options,
|
|
7245
|
+
);
|
|
7246
|
+
}
|
|
7247
|
+
|
|
7162
7248
|
/**
|
|
7163
7249
|
* GET /menu/v3/category/{id}
|
|
7164
7250
|
*
|
|
@@ -9228,6 +9314,419 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
9228
9314
|
);
|
|
9229
9315
|
}
|
|
9230
9316
|
|
|
9317
|
+
/**
|
|
9318
|
+
* POST /menu/v4/brand/{id}/menu
|
|
9319
|
+
*
|
|
9320
|
+
* @param id
|
|
9321
|
+
* @param body
|
|
9322
|
+
* @param options - additional request options
|
|
9323
|
+
*/
|
|
9324
|
+
post_menu_v4_brand_menu(
|
|
9325
|
+
id: string,
|
|
9326
|
+
body: PostMenuV4BrandMenuBody,
|
|
9327
|
+
options?: RequestOptions,
|
|
9328
|
+
): ResponsePromise<PostMenuV4BrandMenuResponse> {
|
|
9329
|
+
return this.request(
|
|
9330
|
+
'menu',
|
|
9331
|
+
'/menu/v4/brand/{id}/menu',
|
|
9332
|
+
'post',
|
|
9333
|
+
`/menu/v4/brand/${id}/menu`,
|
|
9334
|
+
body,
|
|
9335
|
+
options,
|
|
9336
|
+
);
|
|
9337
|
+
}
|
|
9338
|
+
|
|
9339
|
+
/**
|
|
9340
|
+
* GET /menu/v4/brand/{id}/items
|
|
9341
|
+
*
|
|
9342
|
+
* @param id
|
|
9343
|
+
* @param options - additional request options
|
|
9344
|
+
*/
|
|
9345
|
+
get_menu_v4_brand_items(
|
|
9346
|
+
id: string,
|
|
9347
|
+
options?: {
|
|
9348
|
+
query?: GetMenuV4BrandItemsQuery;
|
|
9349
|
+
} & RequestOptions,
|
|
9350
|
+
): ResponsePromise<GetMenuV4BrandItemsResponse> {
|
|
9351
|
+
return this.request(
|
|
9352
|
+
'menu',
|
|
9353
|
+
'/menu/v4/brand/{id}/items',
|
|
9354
|
+
'get',
|
|
9355
|
+
`/menu/v4/brand/${id}/items`,
|
|
9356
|
+
null,
|
|
9357
|
+
options,
|
|
9358
|
+
);
|
|
9359
|
+
}
|
|
9360
|
+
|
|
9361
|
+
/**
|
|
9362
|
+
* GET /menu/v4/brand/{id}/modifier-groups
|
|
9363
|
+
*
|
|
9364
|
+
* @param id
|
|
9365
|
+
* @param options - additional request options
|
|
9366
|
+
*/
|
|
9367
|
+
get_menu_v4_brand_modifier_groups(
|
|
9368
|
+
id: string,
|
|
9369
|
+
options?: {
|
|
9370
|
+
query?: GetMenuV4BrandModifierGroupsQuery;
|
|
9371
|
+
} & RequestOptions,
|
|
9372
|
+
): ResponsePromise<GetMenuV4BrandModifierGroupsResponse> {
|
|
9373
|
+
return this.request(
|
|
9374
|
+
'menu',
|
|
9375
|
+
'/menu/v4/brand/{id}/modifier-groups',
|
|
9376
|
+
'get',
|
|
9377
|
+
`/menu/v4/brand/${id}/modifier-groups`,
|
|
9378
|
+
null,
|
|
9379
|
+
options,
|
|
9380
|
+
);
|
|
9381
|
+
}
|
|
9382
|
+
|
|
9383
|
+
/**
|
|
9384
|
+
* GET /menu/v4/brand/{id}/modifiers
|
|
9385
|
+
*
|
|
9386
|
+
* @param id
|
|
9387
|
+
* @param options - additional request options
|
|
9388
|
+
*/
|
|
9389
|
+
get_menu_v4_brand_modifiers(
|
|
9390
|
+
id: string,
|
|
9391
|
+
options?: {
|
|
9392
|
+
query?: GetMenuV4BrandModifiersQuery;
|
|
9393
|
+
} & RequestOptions,
|
|
9394
|
+
): ResponsePromise<GetMenuV4BrandModifiersResponse> {
|
|
9395
|
+
return this.request(
|
|
9396
|
+
'menu',
|
|
9397
|
+
'/menu/v4/brand/{id}/modifiers',
|
|
9398
|
+
'get',
|
|
9399
|
+
`/menu/v4/brand/${id}/modifiers`,
|
|
9400
|
+
null,
|
|
9401
|
+
options,
|
|
9402
|
+
);
|
|
9403
|
+
}
|
|
9404
|
+
|
|
9405
|
+
/**
|
|
9406
|
+
* GET /menu/v4/brand/{id}/category/{category_id}/items
|
|
9407
|
+
*
|
|
9408
|
+
* @param id
|
|
9409
|
+
* @param category_id
|
|
9410
|
+
* @param options - additional request options
|
|
9411
|
+
*/
|
|
9412
|
+
get_menu_v4_brand_category_items(
|
|
9413
|
+
id: string,
|
|
9414
|
+
category_id: string,
|
|
9415
|
+
options?: {
|
|
9416
|
+
query?: GetMenuV4BrandCategoryItemsQuery;
|
|
9417
|
+
} & RequestOptions,
|
|
9418
|
+
): ResponsePromise<GetMenuV4BrandCategoryItemsResponse> {
|
|
9419
|
+
return this.request(
|
|
9420
|
+
'menu',
|
|
9421
|
+
'/menu/v4/brand/{id}/category/{category_id}/items',
|
|
9422
|
+
'get',
|
|
9423
|
+
`/menu/v4/brand/${id}/category/${category_id}/items`,
|
|
9424
|
+
null,
|
|
9425
|
+
options,
|
|
9426
|
+
);
|
|
9427
|
+
}
|
|
9428
|
+
|
|
9429
|
+
/**
|
|
9430
|
+
* POST /menu/v4/brand/{id}/category
|
|
9431
|
+
*
|
|
9432
|
+
* @param id
|
|
9433
|
+
* @param body
|
|
9434
|
+
* @param options - additional request options
|
|
9435
|
+
*/
|
|
9436
|
+
post_menu_v4_brand_category(
|
|
9437
|
+
id: string,
|
|
9438
|
+
body: PostMenuV4BrandCategoryBody,
|
|
9439
|
+
options?: RequestOptions,
|
|
9440
|
+
): ResponsePromise<PostMenuV4BrandCategoryResponse> {
|
|
9441
|
+
return this.request(
|
|
9442
|
+
'menu',
|
|
9443
|
+
'/menu/v4/brand/{id}/category',
|
|
9444
|
+
'post',
|
|
9445
|
+
`/menu/v4/brand/${id}/category`,
|
|
9446
|
+
body,
|
|
9447
|
+
options,
|
|
9448
|
+
);
|
|
9449
|
+
}
|
|
9450
|
+
|
|
9451
|
+
/**
|
|
9452
|
+
* PATCH /menu/v4/brand/{brand_id}/category/{category_id}
|
|
9453
|
+
*
|
|
9454
|
+
* @param brand_id
|
|
9455
|
+
* @param category_id
|
|
9456
|
+
* @param body
|
|
9457
|
+
* @param options - additional request options
|
|
9458
|
+
*/
|
|
9459
|
+
patch_menu_v4_brand_category(
|
|
9460
|
+
brand_id: string,
|
|
9461
|
+
category_id: string,
|
|
9462
|
+
body: PatchMenuV4BrandCategoryBody,
|
|
9463
|
+
options?: RequestOptions,
|
|
9464
|
+
): ResponsePromise<PatchMenuV4BrandCategoryResponse> {
|
|
9465
|
+
return this.request(
|
|
9466
|
+
'menu',
|
|
9467
|
+
'/menu/v4/brand/{brand_id}/category/{category_id}',
|
|
9468
|
+
'patch',
|
|
9469
|
+
`/menu/v4/brand/${brand_id}/category/${category_id}`,
|
|
9470
|
+
body,
|
|
9471
|
+
options,
|
|
9472
|
+
);
|
|
9473
|
+
}
|
|
9474
|
+
|
|
9475
|
+
/**
|
|
9476
|
+
* POST /menu/v4/brand/{id}/category/attach-items
|
|
9477
|
+
*
|
|
9478
|
+
* @param id
|
|
9479
|
+
* @param body
|
|
9480
|
+
* @param options - additional request options
|
|
9481
|
+
*/
|
|
9482
|
+
post_menu_v4_brand_category_attach_items(
|
|
9483
|
+
id: string,
|
|
9484
|
+
body: PostMenuV4BrandCategoryAttachItemsBody,
|
|
9485
|
+
options?: RequestOptions,
|
|
9486
|
+
): ResponsePromise<PostMenuV4BrandCategoryAttachItemsResponse> {
|
|
9487
|
+
return this.request(
|
|
9488
|
+
'menu',
|
|
9489
|
+
'/menu/v4/brand/{id}/category/attach-items',
|
|
9490
|
+
'post',
|
|
9491
|
+
`/menu/v4/brand/${id}/category/attach-items`,
|
|
9492
|
+
body,
|
|
9493
|
+
options,
|
|
9494
|
+
);
|
|
9495
|
+
}
|
|
9496
|
+
|
|
9497
|
+
/**
|
|
9498
|
+
* POST menu/v4/brand/{id}/publish
|
|
9499
|
+
*
|
|
9500
|
+
* @param id
|
|
9501
|
+
* @param options - additional request options
|
|
9502
|
+
*/
|
|
9503
|
+
post_menu_v4_brand_publish(
|
|
9504
|
+
id: string,
|
|
9505
|
+
options?: RequestOptions,
|
|
9506
|
+
): ResponsePromise<PostMenuV4BrandPublishResponse> {
|
|
9507
|
+
return this.request(
|
|
9508
|
+
'menu',
|
|
9509
|
+
'menu/v4/brand/{id}/publish',
|
|
9510
|
+
'post',
|
|
9511
|
+
`menu/v4/brand/${id}/publish`,
|
|
9512
|
+
null,
|
|
9513
|
+
options,
|
|
9514
|
+
);
|
|
9515
|
+
}
|
|
9516
|
+
|
|
9517
|
+
/**
|
|
9518
|
+
* POST menu/v4/brand/{id}/v3-to-v4
|
|
9519
|
+
*
|
|
9520
|
+
* @param id
|
|
9521
|
+
* @param options - additional request options
|
|
9522
|
+
*/
|
|
9523
|
+
post_menu_v4_brand_v3_to_v4(
|
|
9524
|
+
id: string,
|
|
9525
|
+
options?: RequestOptions,
|
|
9526
|
+
): ResponsePromise<PostMenuV4BrandV3ToV4Response> {
|
|
9527
|
+
return this.request(
|
|
9528
|
+
'menu',
|
|
9529
|
+
'menu/v4/brand/{id}/v3-to-v4',
|
|
9530
|
+
'post',
|
|
9531
|
+
`menu/v4/brand/${id}/v3-to-v4`,
|
|
9532
|
+
null,
|
|
9533
|
+
options,
|
|
9534
|
+
);
|
|
9535
|
+
}
|
|
9536
|
+
|
|
9537
|
+
/**
|
|
9538
|
+
* POST /menu/v4/item
|
|
9539
|
+
*
|
|
9540
|
+
* @param body
|
|
9541
|
+
* @param options - additional request options
|
|
9542
|
+
*/
|
|
9543
|
+
post_menu_v4_item(
|
|
9544
|
+
body: PostMenuV4ItemBody,
|
|
9545
|
+
options?: RequestOptions,
|
|
9546
|
+
): ResponsePromise<PostMenuV4ItemResponse> {
|
|
9547
|
+
return this.request('menu', '/menu/v4/item', 'post', `/menu/v4/item`, body, options);
|
|
9548
|
+
}
|
|
9549
|
+
|
|
9550
|
+
/**
|
|
9551
|
+
* GET /menu/v4/item/{id}
|
|
9552
|
+
*
|
|
9553
|
+
* @param id
|
|
9554
|
+
* @param options - additional request options
|
|
9555
|
+
*/
|
|
9556
|
+
get_menu_v4_item(
|
|
9557
|
+
id: string,
|
|
9558
|
+
options?: {
|
|
9559
|
+
query?: GetMenuV4ItemQuery;
|
|
9560
|
+
} & RequestOptions,
|
|
9561
|
+
): ResponsePromise<GetMenuV4ItemResponse> {
|
|
9562
|
+
return this.request('menu', '/menu/v4/item/{id}', 'get', `/menu/v4/item/${id}`, null, options);
|
|
9563
|
+
}
|
|
9564
|
+
|
|
9565
|
+
/**
|
|
9566
|
+
* PATCH /menu/v4/item/{id}
|
|
9567
|
+
*
|
|
9568
|
+
* @param id
|
|
9569
|
+
* @param body
|
|
9570
|
+
* @param options - additional request options
|
|
9571
|
+
*/
|
|
9572
|
+
patch_menu_v4_item(
|
|
9573
|
+
id: string,
|
|
9574
|
+
body: PatchMenuV4ItemBody,
|
|
9575
|
+
options?: RequestOptions,
|
|
9576
|
+
): ResponsePromise<PatchMenuV4ItemResponse> {
|
|
9577
|
+
return this.request(
|
|
9578
|
+
'menu',
|
|
9579
|
+
'/menu/v4/item/{id}',
|
|
9580
|
+
'patch',
|
|
9581
|
+
`/menu/v4/item/${id}`,
|
|
9582
|
+
body,
|
|
9583
|
+
options,
|
|
9584
|
+
);
|
|
9585
|
+
}
|
|
9586
|
+
|
|
9587
|
+
/**
|
|
9588
|
+
* POST /menu/v4/modifier
|
|
9589
|
+
*
|
|
9590
|
+
* @param body
|
|
9591
|
+
* @param options - additional request options
|
|
9592
|
+
*/
|
|
9593
|
+
post_menu_v4_modifier(
|
|
9594
|
+
body: PostMenuV4ModifierBody,
|
|
9595
|
+
options?: RequestOptions,
|
|
9596
|
+
): ResponsePromise<PostMenuV4ModifierResponse> {
|
|
9597
|
+
return this.request('menu', '/menu/v4/modifier', 'post', `/menu/v4/modifier`, body, options);
|
|
9598
|
+
}
|
|
9599
|
+
|
|
9600
|
+
/**
|
|
9601
|
+
* GET /menu/v4/modifier/{id}
|
|
9602
|
+
*
|
|
9603
|
+
* @param id
|
|
9604
|
+
* @param options - additional request options
|
|
9605
|
+
*/
|
|
9606
|
+
get_menu_v4_modifier(
|
|
9607
|
+
id: string,
|
|
9608
|
+
options?: {
|
|
9609
|
+
query?: GetMenuV4ModifierQuery;
|
|
9610
|
+
} & RequestOptions,
|
|
9611
|
+
): ResponsePromise<GetMenuV4ModifierResponse> {
|
|
9612
|
+
return this.request(
|
|
9613
|
+
'menu',
|
|
9614
|
+
'/menu/v4/modifier/{id}',
|
|
9615
|
+
'get',
|
|
9616
|
+
`/menu/v4/modifier/${id}`,
|
|
9617
|
+
null,
|
|
9618
|
+
options,
|
|
9619
|
+
);
|
|
9620
|
+
}
|
|
9621
|
+
|
|
9622
|
+
/**
|
|
9623
|
+
* PATCH /menu/v4/modifier/{id}
|
|
9624
|
+
*
|
|
9625
|
+
* @param id
|
|
9626
|
+
* @param body
|
|
9627
|
+
* @param options - additional request options
|
|
9628
|
+
*/
|
|
9629
|
+
patch_menu_v4_modifier(
|
|
9630
|
+
id: string,
|
|
9631
|
+
body: PatchMenuV4ModifierBody,
|
|
9632
|
+
options?: RequestOptions,
|
|
9633
|
+
): ResponsePromise<PatchMenuV4ModifierResponse> {
|
|
9634
|
+
return this.request(
|
|
9635
|
+
'menu',
|
|
9636
|
+
'/menu/v4/modifier/{id}',
|
|
9637
|
+
'patch',
|
|
9638
|
+
`/menu/v4/modifier/${id}`,
|
|
9639
|
+
body,
|
|
9640
|
+
options,
|
|
9641
|
+
);
|
|
9642
|
+
}
|
|
9643
|
+
|
|
9644
|
+
/**
|
|
9645
|
+
* POST /menu/v4/modifier-group
|
|
9646
|
+
*
|
|
9647
|
+
* @param body
|
|
9648
|
+
* @param options - additional request options
|
|
9649
|
+
*/
|
|
9650
|
+
post_menu_v4_modifier_group(
|
|
9651
|
+
body: PostMenuV4ModifierGroupBody,
|
|
9652
|
+
options?: RequestOptions,
|
|
9653
|
+
): ResponsePromise<PostMenuV4ModifierGroupResponse> {
|
|
9654
|
+
return this.request(
|
|
9655
|
+
'menu',
|
|
9656
|
+
'/menu/v4/modifier-group',
|
|
9657
|
+
'post',
|
|
9658
|
+
`/menu/v4/modifier-group`,
|
|
9659
|
+
body,
|
|
9660
|
+
options,
|
|
9661
|
+
);
|
|
9662
|
+
}
|
|
9663
|
+
|
|
9664
|
+
/**
|
|
9665
|
+
* GET /menu/v4/modifier-group/{id}
|
|
9666
|
+
*
|
|
9667
|
+
* @param id
|
|
9668
|
+
* @param options - additional request options
|
|
9669
|
+
*/
|
|
9670
|
+
get_menu_v4_modifier_group(
|
|
9671
|
+
id: string,
|
|
9672
|
+
options?: {
|
|
9673
|
+
query?: GetMenuV4ModifierGroupQuery;
|
|
9674
|
+
} & RequestOptions,
|
|
9675
|
+
): ResponsePromise<GetMenuV4ModifierGroupResponse> {
|
|
9676
|
+
return this.request(
|
|
9677
|
+
'menu',
|
|
9678
|
+
'/menu/v4/modifier-group/{id}',
|
|
9679
|
+
'get',
|
|
9680
|
+
`/menu/v4/modifier-group/${id}`,
|
|
9681
|
+
null,
|
|
9682
|
+
options,
|
|
9683
|
+
);
|
|
9684
|
+
}
|
|
9685
|
+
|
|
9686
|
+
/**
|
|
9687
|
+
* PATCH /menu/v4/modifier-group/{id}
|
|
9688
|
+
*
|
|
9689
|
+
* @param id
|
|
9690
|
+
* @param body
|
|
9691
|
+
* @param options - additional request options
|
|
9692
|
+
*/
|
|
9693
|
+
patch_menu_v4_modifier_group(
|
|
9694
|
+
id: string,
|
|
9695
|
+
body: PatchMenuV4ModifierGroupBody,
|
|
9696
|
+
options?: RequestOptions,
|
|
9697
|
+
): ResponsePromise<PatchMenuV4ModifierGroupResponse> {
|
|
9698
|
+
return this.request(
|
|
9699
|
+
'menu',
|
|
9700
|
+
'/menu/v4/modifier-group/{id}',
|
|
9701
|
+
'patch',
|
|
9702
|
+
`/menu/v4/modifier-group/${id}`,
|
|
9703
|
+
body,
|
|
9704
|
+
options,
|
|
9705
|
+
);
|
|
9706
|
+
}
|
|
9707
|
+
|
|
9708
|
+
/**
|
|
9709
|
+
* POST /menu/v4/modifier-group/{id}/attach-modifiers
|
|
9710
|
+
*
|
|
9711
|
+
* @param id
|
|
9712
|
+
* @param body
|
|
9713
|
+
* @param options - additional request options
|
|
9714
|
+
*/
|
|
9715
|
+
post_menu_v4_modifier_group_attach_modifiers(
|
|
9716
|
+
id: string,
|
|
9717
|
+
body: PostMenuV4ModifierGroupAttachModifiersBody,
|
|
9718
|
+
options?: RequestOptions,
|
|
9719
|
+
): ResponsePromise<PostMenuV4ModifierGroupAttachModifiersResponse> {
|
|
9720
|
+
return this.request(
|
|
9721
|
+
'menu',
|
|
9722
|
+
'/menu/v4/modifier-group/{id}/attach-modifiers',
|
|
9723
|
+
'post',
|
|
9724
|
+
`/menu/v4/modifier-group/${id}/attach-modifiers`,
|
|
9725
|
+
body,
|
|
9726
|
+
options,
|
|
9727
|
+
);
|
|
9728
|
+
}
|
|
9729
|
+
|
|
9231
9730
|
/**
|
|
9232
9731
|
* GET /notification - Get all notifications
|
|
9233
9732
|
*
|
|
@@ -69,7 +69,6 @@ export interface OperationHours {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export interface Hours {
|
|
72
|
-
// hours
|
|
73
72
|
id?: string;
|
|
74
73
|
date?: {
|
|
75
74
|
deleted?: string;
|
|
@@ -84,7 +83,6 @@ export interface Hours {
|
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
export interface MenuHours {
|
|
87
|
-
// menu
|
|
88
86
|
id?: string;
|
|
89
87
|
label?: {
|
|
90
88
|
en?: string;
|