@compassdigital/sdk.typescript 4.413.0 → 4.415.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.413.0",
3
+ "version": "4.415.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -367,6 +367,8 @@ import {
367
367
  PutConfigPublicBody,
368
368
  PutConfigPublicResponse,
369
369
  DeleteConfigPublicResponse,
370
+ GetConfigPingQuery,
371
+ GetConfigPingResponse,
370
372
  } from './interface/config';
371
373
 
372
374
  import {
@@ -1050,6 +1052,8 @@ import {
1050
1052
  PostMenuV4UnscheduleMenuResponse,
1051
1053
  GetMenuV4MenuQuery,
1052
1054
  GetMenuV4MenuResponse,
1055
+ PostMenuV4MenuAttachmentQuery,
1056
+ PostMenuV4MenuAttachmentResponse,
1053
1057
  GetMenuV4SizeQuery,
1054
1058
  GetMenuV4SizeResponse,
1055
1059
  GetMenuV4CategoryQuery,
@@ -4770,6 +4774,19 @@ export class ServiceClient extends BaseServiceClient {
4770
4774
  );
4771
4775
  }
4772
4776
 
4777
+ /**
4778
+ * GET /ping - Config Service liveness check
4779
+ *
4780
+ * @param options - additional request options
4781
+ */
4782
+ get_config_ping(
4783
+ options?: {
4784
+ query?: GetConfigPingQuery;
4785
+ } & RequestOptions,
4786
+ ): ResponsePromise<GetConfigPingResponse> {
4787
+ return this.request('config', '/ping', 'GET', `/ping`, null, options);
4788
+ }
4789
+
4773
4790
  /**
4774
4791
  * POST /announcement - Create Announcement
4775
4792
  *
@@ -11773,6 +11790,30 @@ export class ServiceClient extends BaseServiceClient {
11773
11790
  );
11774
11791
  }
11775
11792
 
11793
+ /**
11794
+ * POST /menu/v4/menu/{id}/attachment/{name}
11795
+ *
11796
+ * @param id
11797
+ * @param name
11798
+ * @param options - additional request options
11799
+ */
11800
+ post_menu_v4_menu_attachment(
11801
+ id: string,
11802
+ name: 'thumbnail',
11803
+ options?: {
11804
+ query?: PostMenuV4MenuAttachmentQuery;
11805
+ } & RequestOptions,
11806
+ ): ResponsePromise<PostMenuV4MenuAttachmentResponse> {
11807
+ return this.request(
11808
+ 'menu',
11809
+ '/menu/v4/menu/{id}/attachment/{name}',
11810
+ 'POST',
11811
+ `/menu/v4/menu/${id}/attachment/${name}`,
11812
+ null,
11813
+ options,
11814
+ );
11815
+ }
11816
+
11776
11817
  /**
11777
11818
  * GET /menu/v4/{id}/size
11778
11819
  *
@@ -183,6 +183,13 @@ export interface Tender {
183
183
  tax_exempt?: boolean;
184
184
  }
185
185
 
186
+ export interface PingResponse {
187
+ status?: string;
188
+ message?: string;
189
+ timestamp?: string;
190
+ service?: string;
191
+ }
192
+
186
193
  // GET /config/appconfig - get appconfig - an object with data for clients including minimum versions apps (boost, thrive, J&J) should be running and a link to the respective app store
187
194
 
188
195
  export interface GetConfigAppconfigQuery {
@@ -315,3 +322,14 @@ export interface DeleteConfigPublicPath {
315
322
  export type DeleteConfigPublicResponse = Success;
316
323
 
317
324
  export interface DeleteConfigPublicRequest extends BaseRequest, DeleteConfigPublicPath {}
325
+
326
+ // GET /ping - Config Service liveness check
327
+
328
+ export interface GetConfigPingQuery {
329
+ // Graphql query string
330
+ _query?: string;
331
+ }
332
+
333
+ export type GetConfigPingResponse = PingResponse;
334
+
335
+ export interface GetConfigPingRequest extends BaseRequest, RequestQuery<GetConfigPingQuery> {}
@@ -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 {