@compassdigital/sdk.typescript 4.455.0 → 4.456.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/index.d.ts +9 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +21 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/menu.ts +30 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -927,6 +927,8 @@ import {
|
|
|
927
927
|
DeleteMenuV4BrandCategoryResponse,
|
|
928
928
|
PostMenuV4BrandCategoryAttachItemsBody,
|
|
929
929
|
PostMenuV4BrandCategoryAttachItemsResponse,
|
|
930
|
+
PostMenuV4BrandSwapCategoryItemsBody,
|
|
931
|
+
PostMenuV4BrandSwapCategoryItemsResponse,
|
|
930
932
|
PostMenuV4BrandPublishResponse,
|
|
931
933
|
PostMenuV4BrandV3ToV4Query,
|
|
932
934
|
PostMenuV4BrandV3ToV4Response,
|
|
@@ -10731,6 +10733,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10731
10733
|
);
|
|
10732
10734
|
}
|
|
10733
10735
|
|
|
10736
|
+
/**
|
|
10737
|
+
* POST /menu/v4/brand/{id}/swap-category-items
|
|
10738
|
+
*
|
|
10739
|
+
* @param id
|
|
10740
|
+
* @param body
|
|
10741
|
+
* @param options - additional request options
|
|
10742
|
+
*/
|
|
10743
|
+
post_menu_v4_brand_swap_category_items(
|
|
10744
|
+
id: string,
|
|
10745
|
+
body: PostMenuV4BrandSwapCategoryItemsBody,
|
|
10746
|
+
options?: RequestOptions,
|
|
10747
|
+
): ResponsePromise<PostMenuV4BrandSwapCategoryItemsResponse> {
|
|
10748
|
+
return this.request(
|
|
10749
|
+
'menu',
|
|
10750
|
+
'/menu/v4/brand/{id}/swap-category-items',
|
|
10751
|
+
'POST',
|
|
10752
|
+
`/menu/v4/brand/${id}/swap-category-items`,
|
|
10753
|
+
body,
|
|
10754
|
+
options,
|
|
10755
|
+
);
|
|
10756
|
+
}
|
|
10757
|
+
|
|
10734
10758
|
/**
|
|
10735
10759
|
* POST /menu/v4/brand/{id}/publish
|
|
10736
10760
|
*
|
package/src/interface/menu.ts
CHANGED
|
@@ -2013,6 +2013,11 @@ export interface CategoryItemRelationshipDTO {
|
|
|
2013
2013
|
[index: string]: any;
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
|
+
export interface SwappedCategoryDTO {
|
|
2017
|
+
category_id?: string;
|
|
2018
|
+
sequence?: number;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2016
2021
|
export interface PartialItemDTO {
|
|
2017
2022
|
base_item_id?: string;
|
|
2018
2023
|
is_published?: boolean;
|
|
@@ -8496,6 +8501,31 @@ export interface PostMenuV4BrandCategoryAttachItemsRequest
|
|
|
8496
8501
|
body: PostMenuV4BrandCategoryAttachItemsBody;
|
|
8497
8502
|
}
|
|
8498
8503
|
|
|
8504
|
+
// POST /menu/v4/brand/{id}/swap-category-items
|
|
8505
|
+
|
|
8506
|
+
export interface PostMenuV4BrandSwapCategoryItemsPath {
|
|
8507
|
+
id: string;
|
|
8508
|
+
}
|
|
8509
|
+
|
|
8510
|
+
export interface PostMenuV4BrandSwapCategoryItemsBody {
|
|
8511
|
+
menu_id: string;
|
|
8512
|
+
category_ids: string[];
|
|
8513
|
+
swap_out_item_id: string;
|
|
8514
|
+
swap_in_item_id: string;
|
|
8515
|
+
[index: string]: any;
|
|
8516
|
+
}
|
|
8517
|
+
|
|
8518
|
+
export interface PostMenuV4BrandSwapCategoryItemsResponse {
|
|
8519
|
+
status?: string;
|
|
8520
|
+
swapped_categories?: SwappedCategoryDTO[];
|
|
8521
|
+
}
|
|
8522
|
+
|
|
8523
|
+
export interface PostMenuV4BrandSwapCategoryItemsRequest
|
|
8524
|
+
extends BaseRequest,
|
|
8525
|
+
PostMenuV4BrandSwapCategoryItemsPath {
|
|
8526
|
+
body: PostMenuV4BrandSwapCategoryItemsBody;
|
|
8527
|
+
}
|
|
8528
|
+
|
|
8499
8529
|
// POST /menu/v4/brand/{id}/publish
|
|
8500
8530
|
|
|
8501
8531
|
export interface PostMenuV4BrandPublishPath {
|