@compassdigital/sdk.typescript 4.412.0 → 4.414.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.412.0",
3
+ "version": "4.414.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';
@@ -1048,6 +1050,8 @@ import {
1048
1050
  PostMenuV4UnscheduleMenuResponse,
1049
1051
  GetMenuV4MenuQuery,
1050
1052
  GetMenuV4MenuResponse,
1053
+ PostMenuV4MenuAttachmentQuery,
1054
+ PostMenuV4MenuAttachmentResponse,
1051
1055
  GetMenuV4SizeQuery,
1052
1056
  GetMenuV4SizeResponse,
1053
1057
  GetMenuV4CategoryQuery,
@@ -4205,6 +4209,26 @@ export class ServiceClient extends BaseServiceClient {
4205
4209
  );
4206
4210
  }
4207
4211
 
4212
+ /**
4213
+ * GET /mealplan/institutions - Get list of institutions
4214
+ *
4215
+ * @param options - additional request options
4216
+ */
4217
+ get_mealplan_institutions(
4218
+ options?: {
4219
+ query?: GetMealplanInstitutionsQuery;
4220
+ } & RequestOptions,
4221
+ ): ResponsePromise<GetMealplanInstitutionsResponse> {
4222
+ return this.request(
4223
+ 'mealplan',
4224
+ '/mealplan/institutions',
4225
+ 'GET',
4226
+ `/mealplan/institutions`,
4227
+ null,
4228
+ options,
4229
+ );
4230
+ }
4231
+
4208
4232
  /**
4209
4233
  * POST /mealplan/{id}/internal/refund - Refund an amount to the tender balance
4210
4234
  *
@@ -11751,6 +11775,30 @@ export class ServiceClient extends BaseServiceClient {
11751
11775
  );
11752
11776
  }
11753
11777
 
11778
+ /**
11779
+ * POST /menu/v4/menu/{id}/attachment/{name}
11780
+ *
11781
+ * @param id
11782
+ * @param name
11783
+ * @param options - additional request options
11784
+ */
11785
+ post_menu_v4_menu_attachment(
11786
+ id: string,
11787
+ name: 'thumbnail',
11788
+ options?: {
11789
+ query?: PostMenuV4MenuAttachmentQuery;
11790
+ } & RequestOptions,
11791
+ ): ResponsePromise<PostMenuV4MenuAttachmentResponse> {
11792
+ return this.request(
11793
+ 'menu',
11794
+ '/menu/v4/menu/{id}/attachment/{name}',
11795
+ 'POST',
11796
+ `/menu/v4/menu/${id}/attachment/${name}`,
11797
+ null,
11798
+ options,
11799
+ );
11800
+ }
11801
+
11754
11802
  /**
11755
11803
  * GET /menu/v4/{id}/size
11756
11804
  *
@@ -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 {
@@ -10718,6 +10718,27 @@ export interface GetMenuV4MenuRequest
10718
10718
  RequestQuery<GetMenuV4MenuQuery>,
10719
10719
  GetMenuV4MenuPath {}
10720
10720
 
10721
+ // POST /menu/v4/menu/{id}/attachment/{name}
10722
+
10723
+ export interface PostMenuV4MenuAttachmentPath {
10724
+ id: string;
10725
+ name: 'thumbnail';
10726
+ }
10727
+
10728
+ export interface PostMenuV4MenuAttachmentQuery {
10729
+ 'body.data'?: string;
10730
+ 'body.brand_id'?: string;
10731
+ }
10732
+
10733
+ export interface PostMenuV4MenuAttachmentResponse {
10734
+ status?: string;
10735
+ }
10736
+
10737
+ export interface PostMenuV4MenuAttachmentRequest
10738
+ extends BaseRequest,
10739
+ RequestQuery<PostMenuV4MenuAttachmentQuery>,
10740
+ PostMenuV4MenuAttachmentPath {}
10741
+
10721
10742
  // GET /menu/v4/{id}/size
10722
10743
 
10723
10744
  export interface GetMenuV4SizePath {