@compassdigital/sdk.typescript 4.641.0 → 4.643.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.641.0",
3
+ "version": "4.643.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,9 +646,6 @@ import {
646
646
  GetMenuV3DraftBrandVerifyPublishResponse,
647
647
  PostMenuV3DraftBrandArchiveResponse,
648
648
  PostMenuV3DraftBrandUnarchiveResponse,
649
- PostMenuV3DraftBrandSyncMenuworksResponse,
650
- PostMenuV3DraftBrandImportMenuworksCycleBody,
651
- PostMenuV3DraftBrandImportMenuworksCycleResponse,
652
649
  PostMenuV3BrandQuery,
653
650
  PostMenuV3BrandBody,
654
651
  PostMenuV3BrandResponse,
@@ -7830,48 +7827,6 @@ export class ServiceClient extends BaseServiceClient {
7830
7827
  );
7831
7828
  }
7832
7829
 
7833
- /**
7834
- * POST /menu/v3/draft/brand/{brand_id}/sync-menuworks
7835
- *
7836
- * @param brand_id
7837
- * @param options - additional request options
7838
- */
7839
- post_menu_v3_draft_brand_sync_menuworks(
7840
- brand_id: string,
7841
- options?: RequestOptions,
7842
- ): ResponsePromise<PostMenuV3DraftBrandSyncMenuworksResponse> {
7843
- return this.request(
7844
- 'menu',
7845
- '/menu/v3/draft/brand/{brand_id}/sync-menuworks',
7846
- 'POST',
7847
- `/menu/v3/draft/brand/${brand_id}/sync-menuworks`,
7848
- null,
7849
- options,
7850
- );
7851
- }
7852
-
7853
- /**
7854
- * POST /menu/v3/draft/brand/{brand_id}/import-menuworks-cycle
7855
- *
7856
- * @param brand_id
7857
- * @param body
7858
- * @param options - additional request options
7859
- */
7860
- post_menu_v3_draft_brand_import_menuworks_cycle(
7861
- brand_id: string,
7862
- body: PostMenuV3DraftBrandImportMenuworksCycleBody,
7863
- options?: RequestOptions,
7864
- ): ResponsePromise<PostMenuV3DraftBrandImportMenuworksCycleResponse> {
7865
- return this.request(
7866
- 'menu',
7867
- '/menu/v3/draft/brand/{brand_id}/import-menuworks-cycle',
7868
- 'POST',
7869
- `/menu/v3/draft/brand/${brand_id}/import-menuworks-cycle`,
7870
- body,
7871
- options,
7872
- );
7873
- }
7874
-
7875
7830
  /**
7876
7831
  * POST /menu/v3/brand
7877
7832
  *
@@ -2110,11 +2110,20 @@ export interface GetMenuItemOptionsGroupConsumer {
2110
2110
  meta?: GetMenuItemGroupMetaConsumer;
2111
2111
  }
2112
2112
 
2113
+ export interface MenuRecipeAllergenConsumerDto {
2114
+ // Allergen name
2115
+ name?: string;
2116
+ // Allergen contains status: 'Yes' or 'AtRisk'
2117
+ contains?: 'Yes' | 'AtRisk';
2118
+ }
2119
+
2113
2120
  export interface GetMenuItemRecipeConsumer {
2114
2121
  // Smart tags
2115
2122
  smart_tags?: string[];
2116
2123
  // Allergen tags
2117
2124
  allergen_tags?: string[];
2125
+ // MenuWorks allergens with contains field
2126
+ allergens?: MenuRecipeAllergenConsumerDto[];
2118
2127
  }
2119
2128
 
2120
2129
  export interface GetMenuItemMetaConsumer {
@@ -2491,6 +2500,8 @@ export interface GetMenuItemRecipeConsumerV2 {
2491
2500
  cost?: number;
2492
2501
  // MenuWorks ingredients
2493
2502
  ingredients?: string[];
2503
+ // MenuWorks allergens with contains field
2504
+ allergens?: MenuRecipeAllergenConsumerDto[];
2494
2505
  }
2495
2506
 
2496
2507
  export interface GetMenuItemMetaConsumerV2 {
@@ -1420,12 +1420,6 @@ 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
-
1429
1423
  export interface PublishedMenuDTO {
1430
1424
  id?: string;
1431
1425
  created_at?: string;
@@ -2145,6 +2139,12 @@ export interface CatalogBackupVersionDTO {
2145
2139
  last_modified?: string;
2146
2140
  }
2147
2141
 
2142
+ export interface ImportMenuWorksSelectionDTO {
2143
+ meal_period_id?: number;
2144
+ station_ids?: number[];
2145
+ [index: string]: any;
2146
+ }
2147
+
2148
2148
  export interface FetchMetaDTO {
2149
2149
  result_count: number;
2150
2150
  [index: string]: any;
@@ -4440,49 +4440,6 @@ export interface PostMenuV3DraftBrandUnarchiveRequest
4440
4440
  extends BaseRequest,
4441
4441
  PostMenuV3DraftBrandUnarchivePath {}
4442
4442
 
4443
- // POST /menu/v3/draft/brand/{brand_id}/sync-menuworks
4444
-
4445
- export interface PostMenuV3DraftBrandSyncMenuworksPath {
4446
- brand_id: string;
4447
- }
4448
-
4449
- export interface PostMenuV3DraftBrandSyncMenuworksResponse {
4450
- process_id: string;
4451
- status: string;
4452
- [index: string]: any;
4453
- }
4454
-
4455
- export interface PostMenuV3DraftBrandSyncMenuworksRequest
4456
- extends BaseRequest,
4457
- PostMenuV3DraftBrandSyncMenuworksPath {}
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
-
4486
4443
  // POST /menu/v3/brand
4487
4444
 
4488
4445
  export interface PostMenuV3BrandQuery {