@compassdigital/sdk.typescript 4.631.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.631.0",
3
+ "version": "4.633.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
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,
@@ -1065,6 +1067,7 @@ import {
1065
1067
  PostMenuV4StationsMenusFetchResponse,
1066
1068
  PostMenuV4StationItemsSearchBody,
1067
1069
  PostMenuV4StationItemsSearchResponse,
1070
+ GetMenuV4MenuGraphResponse,
1068
1071
  GetMenuV3PingResponse,
1069
1072
  GetMenuV3HealthResponse,
1070
1073
  } from './interface/menu';
@@ -7836,6 +7839,28 @@ export class ServiceClient extends BaseServiceClient {
7836
7839
  );
7837
7840
  }
7838
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
+
7839
7864
  /**
7840
7865
  * POST /menu/v3/brand
7841
7866
  *
@@ -12443,6 +12468,26 @@ export class ServiceClient extends BaseServiceClient {
12443
12468
  );
12444
12469
  }
12445
12470
 
12471
+ /**
12472
+ * GET /menu/v4/menu-graph/{menu_id}
12473
+ *
12474
+ * @param menu_id
12475
+ * @param options - additional request options
12476
+ */
12477
+ get_menu_v4_menu_graph(
12478
+ menu_id: string,
12479
+ options?: RequestOptions,
12480
+ ): ResponsePromise<GetMenuV4MenuGraphResponse> {
12481
+ return this.request(
12482
+ 'menu',
12483
+ '/menu/v4/menu-graph/{menu_id}',
12484
+ 'GET',
12485
+ `/menu/v4/menu-graph/${menu_id}`,
12486
+ null,
12487
+ options,
12488
+ );
12489
+ }
12490
+
12446
12491
  /**
12447
12492
  * GET /menu/v3/ping
12448
12493
  *
@@ -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 {
@@ -11389,6 +11422,27 @@ export interface PostMenuV4StationItemsSearchRequest extends BaseRequest {
11389
11422
  body: PostMenuV4StationItemsSearchBody;
11390
11423
  }
11391
11424
 
11425
+ // GET /menu/v4/menu-graph/{menu_id}
11426
+
11427
+ export interface GetMenuV4MenuGraphPath {
11428
+ menu_id: string;
11429
+ }
11430
+
11431
+ export interface GetMenuV4MenuGraphResponse {
11432
+ menu_id: string;
11433
+ brand_id: string;
11434
+ revision: string;
11435
+ updated_at: string;
11436
+ menu?: Record<string, any>;
11437
+ categories?: Record<string, any>[];
11438
+ items?: Record<string, any>[];
11439
+ modifier_groups?: Record<string, any>[];
11440
+ modifiers?: Record<string, any>[];
11441
+ [index: string]: any;
11442
+ }
11443
+
11444
+ export interface GetMenuV4MenuGraphRequest extends BaseRequest, GetMenuV4MenuGraphPath {}
11445
+
11392
11446
  // GET /menu/v3/ping
11393
11447
 
11394
11448
  export interface GetMenuV3PingResponse {