@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/lib/index.d.ts +8 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +17 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +0 -5
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +1 -0
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +1 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +15 -0
- package/src/interface/consumer.ts +31 -0
- package/src/interface/discount.ts +0 -5
- package/src/interface/mealplan.ts +1 -0
- package/src/interface/menu.ts +1 -0
package/package.json
CHANGED
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 {
|
package/src/interface/menu.ts
CHANGED