@compassdigital/sdk.typescript 4.552.0 → 4.553.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 +8 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +18 -8
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -0
- package/src/interface/menu.ts +24 -9
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -542,6 +542,8 @@ import {
|
|
|
542
542
|
GetMenuV3LocalMenuGroupsCountQuery,
|
|
543
543
|
GetMenuV3LocalMenuGroupsCountResponse,
|
|
544
544
|
PostMenuV3LocalMenuGroupRecoverResponse,
|
|
545
|
+
PostMenuV3LocalMenuGroupFetchBySitesBody,
|
|
546
|
+
PostMenuV3LocalMenuGroupFetchBySitesResponse,
|
|
545
547
|
GetMenuV3DraftLocalMenuGroupBrandsQuery,
|
|
546
548
|
GetMenuV3DraftLocalMenuGroupBrandsResponse,
|
|
547
549
|
GetMenuV3DraftLocalMenuGroupItemsQuery,
|
|
@@ -6485,6 +6487,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6485
6487
|
);
|
|
6486
6488
|
}
|
|
6487
6489
|
|
|
6490
|
+
/**
|
|
6491
|
+
* POST /menu/v3/local-menu-group/fetch-by-sites
|
|
6492
|
+
*
|
|
6493
|
+
* @param body
|
|
6494
|
+
* @param options - additional request options
|
|
6495
|
+
*/
|
|
6496
|
+
post_menu_v3_local_menu_group_fetch_by_sites(
|
|
6497
|
+
body: PostMenuV3LocalMenuGroupFetchBySitesBody,
|
|
6498
|
+
options?: RequestOptions,
|
|
6499
|
+
): ResponsePromise<PostMenuV3LocalMenuGroupFetchBySitesResponse> {
|
|
6500
|
+
return this.request(
|
|
6501
|
+
'menu',
|
|
6502
|
+
'/menu/v3/local-menu-group/fetch-by-sites',
|
|
6503
|
+
'POST',
|
|
6504
|
+
`/menu/v3/local-menu-group/fetch-by-sites`,
|
|
6505
|
+
body,
|
|
6506
|
+
options,
|
|
6507
|
+
);
|
|
6508
|
+
}
|
|
6509
|
+
|
|
6488
6510
|
/**
|
|
6489
6511
|
* GET /menu/v3/draft/local-menu-group/{id}/brands
|
|
6490
6512
|
*
|
package/src/interface/menu.ts
CHANGED
|
@@ -730,6 +730,15 @@ export interface LocalMenuGroupDTO {
|
|
|
730
730
|
[index: string]: any;
|
|
731
731
|
}
|
|
732
732
|
|
|
733
|
+
export interface SiteGroupWithMenuGroupNameResponseDTO {
|
|
734
|
+
site_id: string;
|
|
735
|
+
local_menu_group_id: string;
|
|
736
|
+
local_menu_group_name: string;
|
|
737
|
+
created_at?: string;
|
|
738
|
+
updated_at?: string;
|
|
739
|
+
[index: string]: any;
|
|
740
|
+
}
|
|
741
|
+
|
|
733
742
|
export interface BrandChangeDTO {
|
|
734
743
|
id?: string;
|
|
735
744
|
created_at?: string;
|
|
@@ -1279,15 +1288,6 @@ export interface AuditDTO {
|
|
|
1279
1288
|
[index: string]: any;
|
|
1280
1289
|
}
|
|
1281
1290
|
|
|
1282
|
-
export interface SiteGroupWithMenuGroupNameResponseDTO {
|
|
1283
|
-
site_id: string;
|
|
1284
|
-
local_menu_group_id: string;
|
|
1285
|
-
local_menu_group_name: string;
|
|
1286
|
-
created_at?: string;
|
|
1287
|
-
updated_at?: string;
|
|
1288
|
-
[index: string]: any;
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
1291
|
export interface SiteGroupDTO {
|
|
1292
1292
|
site_id: string;
|
|
1293
1293
|
local_menu_group_id: string;
|
|
@@ -2995,6 +2995,21 @@ export interface PostMenuV3LocalMenuGroupRecoverRequest
|
|
|
2995
2995
|
extends BaseRequest,
|
|
2996
2996
|
PostMenuV3LocalMenuGroupRecoverPath {}
|
|
2997
2997
|
|
|
2998
|
+
// POST /menu/v3/local-menu-group/fetch-by-sites
|
|
2999
|
+
|
|
3000
|
+
export interface PostMenuV3LocalMenuGroupFetchBySitesBody {
|
|
3001
|
+
site_ids: string[];
|
|
3002
|
+
[index: string]: any;
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
export interface PostMenuV3LocalMenuGroupFetchBySitesResponse {
|
|
3006
|
+
results?: SiteGroupWithMenuGroupNameResponseDTO[];
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
export interface PostMenuV3LocalMenuGroupFetchBySitesRequest extends BaseRequest {
|
|
3010
|
+
body: PostMenuV3LocalMenuGroupFetchBySitesBody;
|
|
3011
|
+
}
|
|
3012
|
+
|
|
2998
3013
|
// GET /menu/v3/draft/local-menu-group/{id}/brands
|
|
2999
3014
|
|
|
3000
3015
|
export interface GetMenuV3DraftLocalMenuGroupBrandsPath {
|