@compassdigital/sdk.typescript 4.280.0 → 4.282.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.280.0",
3
+ "version": "4.282.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -655,6 +655,7 @@ import {
655
655
  GetMenuV3DraftBrandVerifyPublishQuery,
656
656
  GetMenuV3DraftBrandVerifyPublishResponse,
657
657
  PostMenuV3DraftBrandArchiveResponse,
658
+ PostMenuV3DraftBrandUnarchiveResponse,
658
659
  PostMenuV3BrandQuery,
659
660
  PostMenuV3BrandBody,
660
661
  PostMenuV3BrandResponse,
@@ -7252,6 +7253,26 @@ export class ServiceClient extends BaseServiceClient {
7252
7253
  );
7253
7254
  }
7254
7255
 
7256
+ /**
7257
+ * POST /menu/v3/draft/brand/{id}/unarchive
7258
+ *
7259
+ * @param id
7260
+ * @param options - additional request options
7261
+ */
7262
+ post_menu_v3_draft_brand_unarchive(
7263
+ id: string,
7264
+ options?: RequestOptions,
7265
+ ): ResponsePromise<PostMenuV3DraftBrandUnarchiveResponse> {
7266
+ return this.request(
7267
+ 'menu',
7268
+ '/menu/v3/draft/brand/{id}/unarchive',
7269
+ 'POST',
7270
+ `/menu/v3/draft/brand/${id}/unarchive`,
7271
+ null,
7272
+ options,
7273
+ );
7274
+ }
7275
+
7255
7276
  /**
7256
7277
  * POST /menu/v3/brand
7257
7278
  *
@@ -449,9 +449,18 @@ export interface GetDiscountsResponseDTO {
449
449
  meta: MetaResultsDTO;
450
450
  }
451
451
 
452
- export interface Recommendation {
453
- // Unique identifier for the site complex
454
- complex_key: number;
452
+ export interface Transcript {
453
+ // Header text for the recommendation
454
+ header: string;
455
+ // Description text for the recommendation
456
+ description: string;
457
+ // CTA text for the recommendation
458
+ action: string;
459
+ // Link to relevant CentricOS page
460
+ actionUrl: string;
461
+ }
462
+
463
+ export interface GetRecommendationsResponseDto {
455
464
  // UUID for the recommendation instance
456
465
  recommendation_id: string;
457
466
  // Start date of the recommendation timeframe
@@ -460,10 +469,10 @@ export interface Recommendation {
460
469
  end_date: string;
461
470
  // Type of recommendation
462
471
  rec_type: string;
463
- // HTML summary of the recommendation for display
464
- transcript_html: string;
465
- // HTML version for expanded view with more details
466
- expand_html: string;
472
+ // Original raw HTML content of the recommendation
473
+ centric_html: string;
474
+ // Object containing the header, description, action, and actionUrl of the recommendation
475
+ parsed_transcript: Transcript;
467
476
  // Link to relevant CentricOS page for action
468
477
  url: string;
469
478
  // Human-readable timeframe of the recommendation
@@ -472,11 +481,6 @@ export interface Recommendation {
472
481
  visual: string;
473
482
  }
474
483
 
475
- export interface GetRecommendationsResponseDto {
476
- // Array of recommendations for the site
477
- recommendations: Recommendation[];
478
- }
479
-
480
484
  // POST /centricos/ai/item/description - Generate item description
481
485
 
482
486
  export type PostCentricosAiItemDescriptionBody = AIItemDescriptionRequest;
@@ -779,4 +783,4 @@ export interface GetRecommendationsBySiteQuery {
779
783
  _query?: string;
780
784
  }
781
785
 
782
- export type GetRecommendationsBySiteResponse = GetRecommendationsResponseDto;
786
+ export type GetRecommendationsBySiteResponse = GetRecommendationsResponseDto[];
@@ -4043,6 +4043,21 @@ export interface PostMenuV3DraftBrandArchiveRequest
4043
4043
  extends BaseRequest,
4044
4044
  PostMenuV3DraftBrandArchivePath {}
4045
4045
 
4046
+ // POST /menu/v3/draft/brand/{id}/unarchive
4047
+
4048
+ export interface PostMenuV3DraftBrandUnarchivePath {
4049
+ id: string;
4050
+ }
4051
+
4052
+ export interface PostMenuV3DraftBrandUnarchiveResponse {
4053
+ brand: Record<string, any>;
4054
+ [index: string]: any;
4055
+ }
4056
+
4057
+ export interface PostMenuV3DraftBrandUnarchiveRequest
4058
+ extends BaseRequest,
4059
+ PostMenuV3DraftBrandUnarchivePath {}
4060
+
4046
4061
  // POST /menu/v3/brand
4047
4062
 
4048
4063
  export interface PostMenuV3BrandQuery {