@compassdigital/sdk.typescript 4.632.0 → 4.633.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 +24 -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 +33 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -646,6 +646,8 @@ import {
|
|
|
646
646
|
PostMenuV3DraftBrandArchiveResponse,
|
|
647
647
|
PostMenuV3DraftBrandUnarchiveResponse,
|
|
648
648
|
PostMenuV3DraftBrandSyncMenuworksResponse,
|
|
649
|
+
PostMenuV3DraftBrandImportMenuworksCycleBody,
|
|
650
|
+
PostMenuV3DraftBrandImportMenuworksCycleResponse,
|
|
649
651
|
PostMenuV3BrandQuery,
|
|
650
652
|
PostMenuV3BrandBody,
|
|
651
653
|
PostMenuV3BrandResponse,
|
|
@@ -7837,6 +7839,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
7837
7839
|
);
|
|
7838
7840
|
}
|
|
7839
7841
|
|
|
7842
|
+
/**
|
|
7843
|
+
* POST /menu/v3/draft/brand/{brand_id}/import-menuworks-cycle
|
|
7844
|
+
*
|
|
7845
|
+
* @param brand_id
|
|
7846
|
+
* @param body
|
|
7847
|
+
* @param options - additional request options
|
|
7848
|
+
*/
|
|
7849
|
+
post_menu_v3_draft_brand_import_menuworks_cycle(
|
|
7850
|
+
brand_id: string,
|
|
7851
|
+
body: PostMenuV3DraftBrandImportMenuworksCycleBody,
|
|
7852
|
+
options?: RequestOptions,
|
|
7853
|
+
): ResponsePromise<PostMenuV3DraftBrandImportMenuworksCycleResponse> {
|
|
7854
|
+
return this.request(
|
|
7855
|
+
'menu',
|
|
7856
|
+
'/menu/v3/draft/brand/{brand_id}/import-menuworks-cycle',
|
|
7857
|
+
'POST',
|
|
7858
|
+
`/menu/v3/draft/brand/${brand_id}/import-menuworks-cycle`,
|
|
7859
|
+
body,
|
|
7860
|
+
options,
|
|
7861
|
+
);
|
|
7862
|
+
}
|
|
7863
|
+
|
|
7840
7864
|
/**
|
|
7841
7865
|
* POST /menu/v3/brand
|
|
7842
7866
|
*
|
package/src/interface/menu.ts
CHANGED
|
@@ -1420,6 +1420,12 @@ export interface WarningItemDTO {
|
|
|
1420
1420
|
posid?: string;
|
|
1421
1421
|
}
|
|
1422
1422
|
|
|
1423
|
+
export interface ImportMenuWorksSelectionDTO {
|
|
1424
|
+
meal_period_id?: number;
|
|
1425
|
+
station_ids?: number[];
|
|
1426
|
+
[index: string]: any;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1423
1429
|
export interface PublishedMenuDTO {
|
|
1424
1430
|
id?: string;
|
|
1425
1431
|
created_at?: string;
|
|
@@ -4450,6 +4456,33 @@ export interface PostMenuV3DraftBrandSyncMenuworksRequest
|
|
|
4450
4456
|
extends BaseRequest,
|
|
4451
4457
|
PostMenuV3DraftBrandSyncMenuworksPath {}
|
|
4452
4458
|
|
|
4459
|
+
// POST /menu/v3/draft/brand/{brand_id}/import-menuworks-cycle
|
|
4460
|
+
|
|
4461
|
+
export interface PostMenuV3DraftBrandImportMenuworksCyclePath {
|
|
4462
|
+
brand_id: string;
|
|
4463
|
+
}
|
|
4464
|
+
|
|
4465
|
+
export interface PostMenuV3DraftBrandImportMenuworksCycleBody {
|
|
4466
|
+
menuworks_unit_id: string;
|
|
4467
|
+
menu_collection_id: number;
|
|
4468
|
+
menu_collection_start_date?: string;
|
|
4469
|
+
import_selections?: ImportMenuWorksSelectionDTO[];
|
|
4470
|
+
[index: string]: any;
|
|
4471
|
+
}
|
|
4472
|
+
|
|
4473
|
+
export interface PostMenuV3DraftBrandImportMenuworksCycleResponse {
|
|
4474
|
+
process_id: string;
|
|
4475
|
+
status: string;
|
|
4476
|
+
message?: string;
|
|
4477
|
+
[index: string]: any;
|
|
4478
|
+
}
|
|
4479
|
+
|
|
4480
|
+
export interface PostMenuV3DraftBrandImportMenuworksCycleRequest
|
|
4481
|
+
extends BaseRequest,
|
|
4482
|
+
PostMenuV3DraftBrandImportMenuworksCyclePath {
|
|
4483
|
+
body: PostMenuV3DraftBrandImportMenuworksCycleBody;
|
|
4484
|
+
}
|
|
4485
|
+
|
|
4453
4486
|
// POST /menu/v3/brand
|
|
4454
4487
|
|
|
4455
4488
|
export interface PostMenuV3BrandQuery {
|