@compassdigital/sdk.typescript 4.632.0 → 4.634.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.632.0",
3
+ "version": "4.634.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,
@@ -1364,6 +1366,8 @@ import {
1364
1366
  GetRecommendationsBySiteResponse,
1365
1367
  GetDescriptionRecommendationsQuery,
1366
1368
  GetDescriptionRecommendationsResponse,
1369
+ UpsertDescriptionRecommendationBody,
1370
+ UpsertDescriptionRecommendationResponse,
1367
1371
  PostCentricosBusinessUnitValidateVertexResponse,
1368
1372
  DeleteCentricosBusinessUnitResponse,
1369
1373
  GetCentricosMenuGlobalMenuGroupsQuery,
@@ -7837,6 +7841,28 @@ export class ServiceClient extends BaseServiceClient {
7837
7841
  );
7838
7842
  }
7839
7843
 
7844
+ /**
7845
+ * POST /menu/v3/draft/brand/{brand_id}/import-menuworks-cycle
7846
+ *
7847
+ * @param brand_id
7848
+ * @param body
7849
+ * @param options - additional request options
7850
+ */
7851
+ post_menu_v3_draft_brand_import_menuworks_cycle(
7852
+ brand_id: string,
7853
+ body: PostMenuV3DraftBrandImportMenuworksCycleBody,
7854
+ options?: RequestOptions,
7855
+ ): ResponsePromise<PostMenuV3DraftBrandImportMenuworksCycleResponse> {
7856
+ return this.request(
7857
+ 'menu',
7858
+ '/menu/v3/draft/brand/{brand_id}/import-menuworks-cycle',
7859
+ 'POST',
7860
+ `/menu/v3/draft/brand/${brand_id}/import-menuworks-cycle`,
7861
+ body,
7862
+ options,
7863
+ );
7864
+ }
7865
+
7840
7866
  /**
7841
7867
  * POST /menu/v3/brand
7842
7868
  *
@@ -15772,6 +15798,26 @@ export class ServiceClient extends BaseServiceClient {
15772
15798
  );
15773
15799
  }
15774
15800
 
15801
+ /**
15802
+ * POST /centricos/recommendations/descriptions/upsert - Upsert an item description-recommendation status in Centric Insights
15803
+ *
15804
+ * @param body
15805
+ * @param options - additional request options
15806
+ */
15807
+ upsert_description_recommendation(
15808
+ body: UpsertDescriptionRecommendationBody,
15809
+ options?: RequestOptions,
15810
+ ): ResponsePromise<UpsertDescriptionRecommendationResponse> {
15811
+ return this.request(
15812
+ 'centricos',
15813
+ '/centricos/recommendations/descriptions/upsert',
15814
+ 'POST',
15815
+ `/centricos/recommendations/descriptions/upsert`,
15816
+ body,
15817
+ options,
15818
+ );
15819
+ }
15820
+
15775
15821
  /**
15776
15822
  * POST /centricos/business-unit/{bu_id}/validate-vertex - Validate vertex for business unit
15777
15823
  *
@@ -846,6 +846,18 @@ export interface GetDescriptionRecommendationsResponseDto {
846
846
  generated_description: string;
847
847
  }
848
848
 
849
+ export interface UpsertDescriptionRecommendationBodyDto {
850
+ // Item ID whose recommendation status is being set.
851
+ item_id: string;
852
+ // When true, the item is excluded from future /list/descriptions responses.
853
+ status: boolean;
854
+ }
855
+
856
+ export interface UpsertDescriptionRecommendationResponseDto {
857
+ // Result message from the upstream upsert.
858
+ message: string;
859
+ }
860
+
849
861
  export interface ValidateVertexResponse {
850
862
  // Whether the vertex validation was successful
851
863
  valid: boolean;
@@ -1147,6 +1159,8 @@ export interface RystEmbedConfigResponse {
1147
1159
  accessToken: string;
1148
1160
  workspaceId: string;
1149
1161
  templateId: string;
1162
+ // Omniplatform realm ID for the Ryst iframe context
1163
+ realmId: string;
1150
1164
  promoId?: string;
1151
1165
  }
1152
1166
 
@@ -1503,6 +1517,12 @@ export interface GetDescriptionRecommendationsQuery {
1503
1517
 
1504
1518
  export type GetDescriptionRecommendationsResponse = GetDescriptionRecommendationsResponseDto[];
1505
1519
 
1520
+ // POST /centricos/recommendations/descriptions/upsert - Upsert an item description-recommendation status in Centric Insights
1521
+
1522
+ export type UpsertDescriptionRecommendationBody = UpsertDescriptionRecommendationBodyDto;
1523
+
1524
+ export type UpsertDescriptionRecommendationResponse = UpsertDescriptionRecommendationResponseDto;
1525
+
1506
1526
  // POST /centricos/business-unit/{bu_id}/validate-vertex - Validate vertex for business unit
1507
1527
 
1508
1528
  export interface PostCentricosBusinessUnitValidateVertexPath {
@@ -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 {