@compassdigital/sdk.typescript 4.197.0 → 4.199.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.197.0",
3
+ "version": "4.199.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -603,6 +603,8 @@ import {
603
603
  PostMenuV3DraftBrandRecoverResponse,
604
604
  GetMenuV3DraftBrandAuditsQuery,
605
605
  GetMenuV3DraftBrandAuditsResponse,
606
+ GetMenuV3DraftBrandAuditsUsersQuery,
607
+ GetMenuV3DraftBrandAuditsUsersResponse,
606
608
  GetMenuV3DraftBrandMenusQuery,
607
609
  GetMenuV3DraftBrandMenusResponse,
608
610
  GetMenuV3DraftBrandModifiersQuery,
@@ -1204,6 +1206,8 @@ import {
1204
1206
  PutConsumerUserMealplanResponse,
1205
1207
  PostMealplanConsumerBody,
1206
1208
  PostMealplanConsumerResponse,
1209
+ PutConsumerMealplanBody,
1210
+ PutConsumerMealplanResponse,
1207
1211
  GetConsumerConfigAppconfigQuery,
1208
1212
  GetConsumerConfigAppconfigResponse,
1209
1213
  PatchCheckinConsumerOrderResponse,
@@ -6668,6 +6672,28 @@ export class ServiceClient extends BaseServiceClient {
6668
6672
  );
6669
6673
  }
6670
6674
 
6675
+ /**
6676
+ * GET /menu/v3/draft/brand/{id}/audits/users
6677
+ *
6678
+ * @param id
6679
+ * @param options - additional request options
6680
+ */
6681
+ get_menu_v3_draft_brand_audits_users(
6682
+ id: string,
6683
+ options?: {
6684
+ query?: GetMenuV3DraftBrandAuditsUsersQuery;
6685
+ } & RequestOptions,
6686
+ ): ResponsePromise<GetMenuV3DraftBrandAuditsUsersResponse> {
6687
+ return this.request(
6688
+ 'menu',
6689
+ '/menu/v3/draft/brand/{id}/audits/users',
6690
+ 'GET',
6691
+ `/menu/v3/draft/brand/${id}/audits/users`,
6692
+ null,
6693
+ options,
6694
+ );
6695
+ }
6696
+
6671
6697
  /**
6672
6698
  * GET /menu/v3/draft/brand/{id}/menus
6673
6699
  *
@@ -12921,6 +12947,28 @@ export class ServiceClient extends BaseServiceClient {
12921
12947
  );
12922
12948
  }
12923
12949
 
12950
+ /**
12951
+ * PUT /consumer/mealplan/{mealplanId} - update/add mealplan
12952
+ *
12953
+ * @param mealplanId - Mealplan ID
12954
+ * @param body - token received from mealplan provider
12955
+ * @param options - additional request options
12956
+ */
12957
+ put_consumer_mealplan(
12958
+ mealplanId: string,
12959
+ body: PutConsumerMealplanBody,
12960
+ options?: RequestOptions,
12961
+ ): ResponsePromise<PutConsumerMealplanResponse> {
12962
+ return this.request(
12963
+ 'consumer',
12964
+ '/consumer/mealplan/{mealplanId}',
12965
+ 'PUT',
12966
+ `/consumer/mealplan/${mealplanId}`,
12967
+ body,
12968
+ options,
12969
+ );
12970
+ }
12971
+
12924
12972
  /**
12925
12973
  * GET /consumer/config/appconfig/{xCdlPlatform}/{app} - get appconfig - an object with data for clients including minimum versions apps (boost, thrive) should be running and a link to the respective app store
12926
12974
  *
@@ -2566,6 +2566,16 @@ export interface GetConsumerConfigPublicResponse {
2566
2566
  is_checkin_enabled?: boolean;
2567
2567
  }
2568
2568
 
2569
+ export interface ConsumerPutMealplanBody {
2570
+ // user token
2571
+ token: string;
2572
+ }
2573
+
2574
+ export interface ConsumerPutMealplanResponse {
2575
+ // list of mealplan tenders
2576
+ tenders?: ConsumerTender[];
2577
+ }
2578
+
2569
2579
  // GET /consumer/v1/health-check
2570
2580
 
2571
2581
  export interface HealthCheckControllerExecuteQuery {
@@ -2954,6 +2964,17 @@ export type PostMealplanConsumerBody = ConsumerPostMealplanBody;
2954
2964
 
2955
2965
  export type PostMealplanConsumerResponse = ConsumerPostMealplanResponse;
2956
2966
 
2967
+ // PUT /consumer/mealplan/{mealplanId} - update/add mealplan
2968
+
2969
+ export interface PutConsumerMealplanPath {
2970
+ // Mealplan ID
2971
+ mealplanId: string;
2972
+ }
2973
+
2974
+ export type PutConsumerMealplanBody = ConsumerPutMealplanBody;
2975
+
2976
+ export type PutConsumerMealplanResponse = ConsumerPutMealplanResponse;
2977
+
2957
2978
  // GET /consumer/config/appconfig/{xCdlPlatform}/{app} - get appconfig - an object with data for clients including minimum versions apps (boost, thrive) should be running and a link to the respective app store
2958
2979
 
2959
2980
  export interface GetConsumerConfigAppconfigPath {
@@ -3373,6 +3373,28 @@ export interface GetMenuV3DraftBrandAuditsRequest
3373
3373
  RequestQuery<GetMenuV3DraftBrandAuditsQuery>,
3374
3374
  GetMenuV3DraftBrandAuditsPath {}
3375
3375
 
3376
+ // GET /menu/v3/draft/brand/{id}/audits/users
3377
+
3378
+ export interface GetMenuV3DraftBrandAuditsUsersPath {
3379
+ id: string;
3380
+ }
3381
+
3382
+ export interface GetMenuV3DraftBrandAuditsUsersQuery {
3383
+ date_from?: string;
3384
+ date_to?: string;
3385
+ // Graphql query string
3386
+ _query?: string;
3387
+ }
3388
+
3389
+ export interface GetMenuV3DraftBrandAuditsUsersResponse {
3390
+ users?: string[];
3391
+ }
3392
+
3393
+ export interface GetMenuV3DraftBrandAuditsUsersRequest
3394
+ extends BaseRequest,
3395
+ RequestQuery<GetMenuV3DraftBrandAuditsUsersQuery>,
3396
+ GetMenuV3DraftBrandAuditsUsersPath {}
3397
+
3376
3398
  // GET /menu/v3/draft/brand/{id}/menus
3377
3399
 
3378
3400
  export interface GetMenuV3DraftBrandMenusPath {