@compassdigital/sdk.typescript 4.414.0 → 4.416.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.414.0",
3
+ "version": "4.416.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 {
@@ -4772,6 +4774,19 @@ export class ServiceClient extends BaseServiceClient {
4772
4774
  );
4773
4775
  }
4774
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
+
4775
4790
  /**
4776
4791
  * POST /announcement - Create Announcement
4777
4792
  *
@@ -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> {}
@@ -1019,6 +1019,7 @@ export interface MenuWorksDTO {
1019
1019
  ingredients?: string[];
1020
1020
  smart_tags?: string[];
1021
1021
  allergen_tags?: string[];
1022
+ allergens?: string[];
1022
1023
  [index: string]: any;
1023
1024
  }
1024
1025
 
@@ -1845,6 +1846,12 @@ export interface DraftModifierEntityDTO {
1845
1846
  [index: string]: any;
1846
1847
  }
1847
1848
 
1849
+ export interface AllergenDTO {
1850
+ name: string;
1851
+ contains: 'Yes' | 'AtRisk';
1852
+ [index: string]: any;
1853
+ }
1854
+
1848
1855
  export interface UniversalItemWithoutIdDTO {
1849
1856
  barcode: string;
1850
1857
  name: string;
@@ -7732,6 +7739,7 @@ export interface GetMenuV3MenuworksResponse {
7732
7739
  short_name?: string;
7733
7740
  description?: string;
7734
7741
  portion_size: string;
7742
+ allergens?: AllergenDTO[];
7735
7743
  MRN?: string;
7736
7744
  portion_quantity?: number;
7737
7745
  portion_unit_name?: string;