@compassdigital/sdk.typescript 4.411.0 → 4.413.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.411.0",
3
+ "version": "4.413.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -297,6 +297,8 @@ import {
297
297
  PostMealplanInternalTendersResponse,
298
298
  PostMealplanInternalDebitBody,
299
299
  PostMealplanInternalDebitResponse,
300
+ GetMealplanInstitutionsQuery,
301
+ GetMealplanInstitutionsResponse,
300
302
  PostMealplanInternalRefundBody,
301
303
  PostMealplanInternalRefundResponse,
302
304
  } from './interface/mealplan';
@@ -713,6 +715,8 @@ import {
713
715
  GetMenuV3DraftMenusVerifyPublishResponse,
714
716
  PostMenuV3DraftMenuDuplicateBody,
715
717
  PostMenuV3DraftMenuDuplicateResponse,
718
+ PostMenuV3DraftMenuAttachmentQuery,
719
+ PostMenuV3DraftMenuAttachmentResponse,
716
720
  GetMenuV3MenuQuery,
717
721
  GetMenuV3MenuResponse,
718
722
  GetMenuV3MenusQuery,
@@ -4203,6 +4207,26 @@ export class ServiceClient extends BaseServiceClient {
4203
4207
  );
4204
4208
  }
4205
4209
 
4210
+ /**
4211
+ * GET /mealplan/institutions - Get list of institutions
4212
+ *
4213
+ * @param options - additional request options
4214
+ */
4215
+ get_mealplan_institutions(
4216
+ options?: {
4217
+ query?: GetMealplanInstitutionsQuery;
4218
+ } & RequestOptions,
4219
+ ): ResponsePromise<GetMealplanInstitutionsResponse> {
4220
+ return this.request(
4221
+ 'mealplan',
4222
+ '/mealplan/institutions',
4223
+ 'GET',
4224
+ `/mealplan/institutions`,
4225
+ null,
4226
+ options,
4227
+ );
4228
+ }
4229
+
4206
4230
  /**
4207
4231
  * POST /mealplan/{id}/internal/refund - Refund an amount to the tender balance
4208
4232
  *
@@ -8075,6 +8099,30 @@ export class ServiceClient extends BaseServiceClient {
8075
8099
  );
8076
8100
  }
8077
8101
 
8102
+ /**
8103
+ * POST /menu/v3/draft/menu/{id}/attachment/{name}
8104
+ *
8105
+ * @param id
8106
+ * @param name
8107
+ * @param options - additional request options
8108
+ */
8109
+ post_menu_v3_draft_menu_attachment(
8110
+ id: string,
8111
+ name: 'thumbnail',
8112
+ options?: {
8113
+ query?: PostMenuV3DraftMenuAttachmentQuery;
8114
+ } & RequestOptions,
8115
+ ): ResponsePromise<PostMenuV3DraftMenuAttachmentResponse> {
8116
+ return this.request(
8117
+ 'menu',
8118
+ '/menu/v3/draft/menu/{id}/attachment/{name}',
8119
+ 'POST',
8120
+ `/menu/v3/draft/menu/${id}/attachment/${name}`,
8121
+ null,
8122
+ options,
8123
+ );
8124
+ }
8125
+
8078
8126
  /**
8079
8127
  * GET /menu/v3/menu/{id}
8080
8128
  *
@@ -38,11 +38,18 @@ export interface Error {
38
38
  data: ErrorData;
39
39
  }
40
40
 
41
+ export interface OptionsDTO {
42
+ aspect_ratio: string;
43
+ background_color: string;
44
+ presentation: string;
45
+ }
46
+
41
47
  export interface AIItemImageRequest {
42
48
  name?: string;
43
49
  modifiers?: string[];
44
50
  description: string;
45
51
  number_of_images: number;
52
+ options?: OptionsDTO;
46
53
  }
47
54
 
48
55
  export interface ImageData {
@@ -69,6 +69,19 @@ export interface AuthPayload {
69
69
  };
70
70
  }
71
71
 
72
+ export interface EAccountInstitutionListResponse {
73
+ InstitutionList?: {
74
+ Institutions?: Institution[];
75
+ };
76
+ }
77
+
78
+ export interface Institution {
79
+ Description?: string;
80
+ InstitutionId?: string;
81
+ Name?: string;
82
+ ShortName?: string;
83
+ }
84
+
72
85
  // POST /mealplan/{id} - Authenticate against the meal plan provider
73
86
 
74
87
  export interface PostMealplanPath {
@@ -376,6 +389,21 @@ export interface PostMealplanInternalDebitRequest
376
389
  body: PostMealplanInternalDebitBody;
377
390
  }
378
391
 
392
+ // GET /mealplan/institutions - Get list of institutions
393
+
394
+ export interface GetMealplanInstitutionsQuery {
395
+ // Graphql query string
396
+ _query?: string;
397
+ }
398
+
399
+ export interface GetMealplanInstitutionsResponse {
400
+ institutions?: EAccountInstitutionListResponse;
401
+ }
402
+
403
+ export interface GetMealplanInstitutionsRequest
404
+ extends BaseRequest,
405
+ RequestQuery<GetMealplanInstitutionsQuery> {}
406
+
379
407
  // POST /mealplan/{id}/internal/refund - Refund an amount to the tender balance
380
408
 
381
409
  export interface PostMealplanInternalRefundPath {
@@ -4901,6 +4901,26 @@ export interface PostMenuV3DraftMenuDuplicateRequest
4901
4901
  body: PostMenuV3DraftMenuDuplicateBody;
4902
4902
  }
4903
4903
 
4904
+ // POST /menu/v3/draft/menu/{id}/attachment/{name}
4905
+
4906
+ export interface PostMenuV3DraftMenuAttachmentPath {
4907
+ id: string;
4908
+ name: 'thumbnail';
4909
+ }
4910
+
4911
+ export interface PostMenuV3DraftMenuAttachmentQuery {
4912
+ 'body.data'?: string;
4913
+ }
4914
+
4915
+ export interface PostMenuV3DraftMenuAttachmentResponse {
4916
+ status?: string;
4917
+ }
4918
+
4919
+ export interface PostMenuV3DraftMenuAttachmentRequest
4920
+ extends BaseRequest,
4921
+ RequestQuery<PostMenuV3DraftMenuAttachmentQuery>,
4922
+ PostMenuV3DraftMenuAttachmentPath {}
4923
+
4904
4924
  // GET /menu/v3/menu/{id}
4905
4925
 
4906
4926
  export interface GetMenuV3MenuPath {