@compassdigital/sdk.typescript 4.107.0 → 4.108.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.107.0",
3
+ "version": "4.108.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -1063,6 +1063,8 @@ import {
1063
1063
  GetCustomerOrdersResponse,
1064
1064
  PostReviewOrderItemsBody,
1065
1065
  PostReviewOrderItemsResponse,
1066
+ PostHomePageBody,
1067
+ PostHomePageResponse,
1066
1068
  } from './interface/consumer';
1067
1069
 
1068
1070
  import {
@@ -11247,6 +11249,19 @@ export class ServiceClient extends BaseServiceClient {
11247
11249
  );
11248
11250
  }
11249
11251
 
11252
+ /**
11253
+ * POST /consumer/home - Provide the front end all the data required to render the home page
11254
+ *
11255
+ * @param body
11256
+ * @param options - additional request options
11257
+ */
11258
+ post_home_page(
11259
+ body: PostHomePageBody,
11260
+ options?: RequestOptions,
11261
+ ): ResponsePromise<PostHomePageResponse> {
11262
+ return this.request('consumer', '/consumer/home', 'post', `/consumer/home`, body, options);
11263
+ }
11264
+
11250
11265
  /**
11251
11266
  * POST /ai/language/generate - Generate text from a given prompt
11252
11267
  *
@@ -762,6 +762,27 @@ export interface PostReviewOrderItemsResponseDTO {
762
762
  reviews: OrderItemReview[];
763
763
  }
764
764
 
765
+ export interface HomePageRequest {
766
+ // site id
767
+ siteId: string;
768
+ // start date as a long
769
+ start: number;
770
+ // end date as a long
771
+ end: number;
772
+ // current date as a long
773
+ date: number;
774
+ }
775
+
776
+ export interface HomePageResponse {
777
+ // valid diverse greeting messages
778
+ greetingMessage: Record<string, any>[];
779
+ // valid hero images
780
+ heroImages: Record<string, any>[];
781
+ orders: Record<string, any>[][];
782
+ // location object for the site
783
+ location: Record<string, any>;
784
+ }
785
+
765
786
  // GET /consumer/v1/health-check
766
787
 
767
788
  export interface HealthCheckControllerExecuteQuery {
@@ -824,3 +845,13 @@ export type PostReviewOrderItemsResponse = PostReviewOrderItemsResponseDTO;
824
845
  export interface PostReviewOrderItemsRequest extends BaseRequest {
825
846
  body: PostReviewOrderItemsBody;
826
847
  }
848
+
849
+ // POST /consumer/home - Provide the front end all the data required to render the home page
850
+
851
+ export type PostHomePageBody = HomePageRequest;
852
+
853
+ export type PostHomePageResponse = HomePageResponse;
854
+
855
+ export interface PostHomePageRequest extends BaseRequest {
856
+ body: PostHomePageBody;
857
+ }
@@ -129,11 +129,6 @@ export type InternalServerErrorException = Record<string, any>;
129
129
  export interface PutDiscountPublishRequestDTO {
130
130
  // user id of most recent update
131
131
  updatedBy: string;
132
- taxonomy?: Record<string, any>;
133
- name: string;
134
- status?: DiscountStatus;
135
- is?: DiscountIs;
136
- meta?: DiscountMeta;
137
132
  }
138
133
 
139
134
  export interface PutDiscountPublishResponseDTO {
@@ -257,6 +257,7 @@ export interface PatchMealplanTenderBody {
257
257
  // Amount for order paid by user
258
258
  transaction_amount?: number;
259
259
  terminal_id?: string;
260
+ card_data?: string;
260
261
  }
261
262
 
262
263
  export type PatchMealplanTenderResponse = Tender;
@@ -9571,6 +9571,7 @@ export interface PostMenuV4ScheduleMenuRequest extends BaseRequest {
9571
9571
 
9572
9572
  export interface PostMenuV4UnscheduleMenuBody {
9573
9573
  menu_id: string;
9574
+ station_id: string;
9574
9575
  [index: string]: any;
9575
9576
  }
9576
9577