@compassdigital/sdk.typescript 4.222.0 → 4.223.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 +5 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -4
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +10 -2
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +8 -2
- package/src/interface/menu.ts +16 -4
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -559,8 +559,10 @@ import {
|
|
|
559
559
|
GetMenuV3LocalMenuGroupAllowedGlobalBrandsQuery,
|
|
560
560
|
GetMenuV3LocalMenuGroupAllowedGlobalBrandsResponse,
|
|
561
561
|
PostMenuV3LocalMenuGroupImportBrandsQuery,
|
|
562
|
+
PostMenuV3LocalMenuGroupImportBrandsBody,
|
|
562
563
|
PostMenuV3LocalMenuGroupImportBrandsResponse,
|
|
563
564
|
PostMenuV4LocalMenuGroupImportBrandsQuery,
|
|
565
|
+
PostMenuV4LocalMenuGroupImportBrandsBody,
|
|
564
566
|
PostMenuV4LocalMenuGroupImportBrandsResponse,
|
|
565
567
|
GetMenuV3LocalMenuGroupSiteQuery,
|
|
566
568
|
GetMenuV3LocalMenuGroupSiteResponse,
|
|
@@ -6190,10 +6192,12 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6190
6192
|
* POST /menu/v3/local-menu-group/{id}/import-brands
|
|
6191
6193
|
*
|
|
6192
6194
|
* @param id
|
|
6195
|
+
* @param body
|
|
6193
6196
|
* @param options - additional request options
|
|
6194
6197
|
*/
|
|
6195
6198
|
post_menu_v3_local_menu_group_import_brands(
|
|
6196
6199
|
id: string,
|
|
6200
|
+
body: PostMenuV3LocalMenuGroupImportBrandsBody,
|
|
6197
6201
|
options?: {
|
|
6198
6202
|
query?: PostMenuV3LocalMenuGroupImportBrandsQuery;
|
|
6199
6203
|
} & RequestOptions,
|
|
@@ -6203,7 +6207,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6203
6207
|
'/menu/v3/local-menu-group/{id}/import-brands',
|
|
6204
6208
|
'POST',
|
|
6205
6209
|
`/menu/v3/local-menu-group/${id}/import-brands`,
|
|
6206
|
-
|
|
6210
|
+
body,
|
|
6207
6211
|
options,
|
|
6208
6212
|
);
|
|
6209
6213
|
}
|
|
@@ -6212,10 +6216,12 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6212
6216
|
* POST /menu/v4/local-menu-group/{id}/import-brands
|
|
6213
6217
|
*
|
|
6214
6218
|
* @param id
|
|
6219
|
+
* @param body
|
|
6215
6220
|
* @param options - additional request options
|
|
6216
6221
|
*/
|
|
6217
6222
|
post_menu_v4_local_menu_group_import_brands(
|
|
6218
6223
|
id: string,
|
|
6224
|
+
body: PostMenuV4LocalMenuGroupImportBrandsBody,
|
|
6219
6225
|
options?: {
|
|
6220
6226
|
query?: PostMenuV4LocalMenuGroupImportBrandsQuery;
|
|
6221
6227
|
} & RequestOptions,
|
|
@@ -6225,7 +6231,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6225
6231
|
'/menu/v4/local-menu-group/{id}/import-brands',
|
|
6226
6232
|
'POST',
|
|
6227
6233
|
`/menu/v4/local-menu-group/${id}/import-brands`,
|
|
6228
|
-
|
|
6234
|
+
body,
|
|
6229
6235
|
options,
|
|
6230
6236
|
);
|
|
6231
6237
|
}
|
package/src/interface/menu.ts
CHANGED
|
@@ -2663,7 +2663,6 @@ export interface PostMenuV3LocalMenuGroupImportBrandsQuery {
|
|
|
2663
2663
|
relationships?: string[];
|
|
2664
2664
|
// The fields that filtering is allowed on
|
|
2665
2665
|
filter?: string;
|
|
2666
|
-
'body.brand_ids'?: string[];
|
|
2667
2666
|
// Number of records to load per page
|
|
2668
2667
|
limit?: number;
|
|
2669
2668
|
page?: number;
|
|
@@ -2674,6 +2673,11 @@ export interface PostMenuV3LocalMenuGroupImportBrandsQuery {
|
|
|
2674
2673
|
soft_deleted?: 'include' | 'exclude' | 'only';
|
|
2675
2674
|
}
|
|
2676
2675
|
|
|
2676
|
+
export interface PostMenuV3LocalMenuGroupImportBrandsBody {
|
|
2677
|
+
brand_ids: string[];
|
|
2678
|
+
[index: string]: any;
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2677
2681
|
export interface PostMenuV3LocalMenuGroupImportBrandsResponse {
|
|
2678
2682
|
results: DraftBrandDTO[];
|
|
2679
2683
|
meta?: ListResponseMetadataDTO;
|
|
@@ -2683,7 +2687,9 @@ export interface PostMenuV3LocalMenuGroupImportBrandsResponse {
|
|
|
2683
2687
|
export interface PostMenuV3LocalMenuGroupImportBrandsRequest
|
|
2684
2688
|
extends BaseRequest,
|
|
2685
2689
|
RequestQuery<PostMenuV3LocalMenuGroupImportBrandsQuery>,
|
|
2686
|
-
PostMenuV3LocalMenuGroupImportBrandsPath {
|
|
2690
|
+
PostMenuV3LocalMenuGroupImportBrandsPath {
|
|
2691
|
+
body: PostMenuV3LocalMenuGroupImportBrandsBody;
|
|
2692
|
+
}
|
|
2687
2693
|
|
|
2688
2694
|
// POST /menu/v4/local-menu-group/{id}/import-brands
|
|
2689
2695
|
|
|
@@ -2698,7 +2704,6 @@ export interface PostMenuV4LocalMenuGroupImportBrandsQuery {
|
|
|
2698
2704
|
relationships?: string[];
|
|
2699
2705
|
// The fields that filtering is allowed on
|
|
2700
2706
|
filter?: string;
|
|
2701
|
-
'body.brand_ids'?: string[];
|
|
2702
2707
|
// Number of records to load per page
|
|
2703
2708
|
limit?: number;
|
|
2704
2709
|
page?: number;
|
|
@@ -2709,6 +2714,11 @@ export interface PostMenuV4LocalMenuGroupImportBrandsQuery {
|
|
|
2709
2714
|
soft_deleted?: 'include' | 'exclude' | 'only';
|
|
2710
2715
|
}
|
|
2711
2716
|
|
|
2717
|
+
export interface PostMenuV4LocalMenuGroupImportBrandsBody {
|
|
2718
|
+
brand_ids: string[];
|
|
2719
|
+
[index: string]: any;
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2712
2722
|
export interface PostMenuV4LocalMenuGroupImportBrandsResponse {
|
|
2713
2723
|
results: DraftBrandDTO[];
|
|
2714
2724
|
meta?: ListResponseMetadataDTO;
|
|
@@ -2718,7 +2728,9 @@ export interface PostMenuV4LocalMenuGroupImportBrandsResponse {
|
|
|
2718
2728
|
export interface PostMenuV4LocalMenuGroupImportBrandsRequest
|
|
2719
2729
|
extends BaseRequest,
|
|
2720
2730
|
RequestQuery<PostMenuV4LocalMenuGroupImportBrandsQuery>,
|
|
2721
|
-
PostMenuV4LocalMenuGroupImportBrandsPath {
|
|
2731
|
+
PostMenuV4LocalMenuGroupImportBrandsPath {
|
|
2732
|
+
body: PostMenuV4LocalMenuGroupImportBrandsBody;
|
|
2733
|
+
}
|
|
2722
2734
|
|
|
2723
2735
|
// GET /menu/v3/local-menu-group/{id}/site
|
|
2724
2736
|
|