@compassdigital/sdk.typescript 4.346.0 → 4.348.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.346.0",
3
+ "version": "4.348.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -1043,6 +1043,8 @@ import {
1043
1043
  PostMenuV4UnscheduleMenuResponse,
1044
1044
  GetMenuV4MenuQuery,
1045
1045
  GetMenuV4MenuResponse,
1046
+ GetMenuV4SizeQuery,
1047
+ GetMenuV4SizeResponse,
1046
1048
  GetMenuV4CategoryQuery,
1047
1049
  GetMenuV4CategoryResponse,
1048
1050
  PostMenuV4CategoryAttachmentQuery,
@@ -1195,6 +1197,7 @@ import {
1195
1197
  PostFrictionlessQrcodeResponse,
1196
1198
  PostConsumerForgotPasswordBody,
1197
1199
  PostConsumerForgotPasswordResponse,
1200
+ PostConsumerAddSecretBody,
1198
1201
  PostConsumerAddSecretResponse,
1199
1202
  GetConsumerLocationGroupQuery,
1200
1203
  GetConsumerLocationGroupResponse$0,
@@ -11645,6 +11648,28 @@ export class ServiceClient extends BaseServiceClient {
11645
11648
  );
11646
11649
  }
11647
11650
 
11651
+ /**
11652
+ * GET /menu/v4/{id}/size
11653
+ *
11654
+ * @param id
11655
+ * @param options - additional request options
11656
+ */
11657
+ get_menu_v4_size(
11658
+ id: string,
11659
+ options?: {
11660
+ query?: GetMenuV4SizeQuery;
11661
+ } & RequestOptions,
11662
+ ): ResponsePromise<GetMenuV4SizeResponse> {
11663
+ return this.request(
11664
+ 'menu',
11665
+ '/menu/v4/{id}/size',
11666
+ 'GET',
11667
+ `/menu/v4/${id}/size`,
11668
+ null,
11669
+ options,
11670
+ );
11671
+ }
11672
+
11648
11673
  /**
11649
11674
  * GET /menu/v4/category/{id}
11650
11675
  *
@@ -13056,19 +13081,25 @@ export class ServiceClient extends BaseServiceClient {
13056
13081
  }
13057
13082
 
13058
13083
  /**
13059
- * POST /consumer/secret - Add user secret
13084
+ * POST /consumer/user/{id}/secret/{key} - Add user secret
13060
13085
  *
13086
+ * @param id - User ID
13087
+ * @param key - Secret Key
13088
+ * @param body - Post User Add Secret Body
13061
13089
  * @param options - additional request options
13062
13090
  */
13063
13091
  post_consumer_add_secret(
13092
+ id: string,
13093
+ key: string,
13094
+ body: PostConsumerAddSecretBody,
13064
13095
  options?: RequestOptions,
13065
13096
  ): ResponsePromise<PostConsumerAddSecretResponse> {
13066
13097
  return this.request(
13067
13098
  'consumer',
13068
- '/consumer/secret',
13099
+ '/consumer/user/{id}/secret/{key}',
13069
13100
  'POST',
13070
- `/consumer/secret`,
13071
- null,
13101
+ `/consumer/user/${id}/secret/${key}`,
13102
+ body,
13072
13103
  options,
13073
13104
  );
13074
13105
  }
@@ -1456,7 +1456,11 @@ export interface ForgotPasswordResponse {
1456
1456
  success?: boolean;
1457
1457
  }
1458
1458
 
1459
- export interface AddUserSecretResponse {
1459
+ export interface PostConsumerUserAddSecretBody {
1460
+ key?: string;
1461
+ }
1462
+
1463
+ export interface PostUserAddSecret {
1460
1464
  key?: string;
1461
1465
  }
1462
1466
 
@@ -3098,9 +3102,18 @@ export type PostConsumerForgotPasswordBody = ForgotPasswordRequest;
3098
3102
 
3099
3103
  export type PostConsumerForgotPasswordResponse = ForgotPasswordResponse;
3100
3104
 
3101
- // POST /consumer/secret - Add user secret
3105
+ // POST /consumer/user/{id}/secret/{key} - Add user secret
3106
+
3107
+ export interface PostConsumerAddSecretPath {
3108
+ // User ID
3109
+ id: string;
3110
+ // Secret Key
3111
+ key: string;
3112
+ }
3113
+
3114
+ export type PostConsumerAddSecretBody = PostConsumerUserAddSecretBody;
3102
3115
 
3103
- export type PostConsumerAddSecretResponse = AddUserSecretResponse;
3116
+ export type PostConsumerAddSecretResponse = PostUserAddSecret;
3104
3117
 
3105
3118
  // GET /consumer/location-group/{id} - Get location group
3106
3119
 
@@ -2023,6 +2023,13 @@ export interface PartialModifierDTO {
2023
2023
  [index: string]: any;
2024
2024
  }
2025
2025
 
2026
+ export interface MenuSizeDTO {
2027
+ format: string;
2028
+ raw: number;
2029
+ compressed: number;
2030
+ [index: string]: any;
2031
+ }
2032
+
2026
2033
  export interface HealthDependencyDTO {
2027
2034
  name: string;
2028
2035
  status: string;
@@ -10661,6 +10668,30 @@ export interface GetMenuV4MenuRequest
10661
10668
  RequestQuery<GetMenuV4MenuQuery>,
10662
10669
  GetMenuV4MenuPath {}
10663
10670
 
10671
+ // GET /menu/v4/{id}/size
10672
+
10673
+ export interface GetMenuV4SizePath {
10674
+ id: string;
10675
+ }
10676
+
10677
+ export interface GetMenuV4SizeQuery {
10678
+ with_parent?: boolean;
10679
+ // Graphql query string
10680
+ _query?: string;
10681
+ }
10682
+
10683
+ export interface GetMenuV4SizeResponse {
10684
+ id: string;
10685
+ name: string;
10686
+ size: MenuSizeDTO;
10687
+ [index: string]: any;
10688
+ }
10689
+
10690
+ export interface GetMenuV4SizeRequest
10691
+ extends BaseRequest,
10692
+ RequestQuery<GetMenuV4SizeQuery>,
10693
+ GetMenuV4SizePath {}
10694
+
10664
10695
  // GET /menu/v4/category/{id}
10665
10696
 
10666
10697
  export interface GetMenuV4CategoryPath {