@compassdigital/sdk.typescript 4.270.0 → 4.272.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.270.0",
3
+ "version": "4.272.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -479,6 +479,8 @@ import {
479
479
  GetCalendarSwaggerQuery,
480
480
  GetCalendarSwaggerResponse,
481
481
  PostCalendarSyncResponse,
482
+ GetPingQuery,
483
+ GetPingResponse,
482
484
  } from './interface/calendar';
483
485
 
484
486
  import {
@@ -505,6 +507,8 @@ import {
505
507
  PatchMenuQuery,
506
508
  PatchMenuBody,
507
509
  PatchMenuResponse,
510
+ GetFullMenuQuery,
511
+ GetFullMenuResponse,
508
512
  ImportMenuBody,
509
513
  ImportMenuResponse,
510
514
  GetMenuItemsQuery,
@@ -5523,6 +5527,19 @@ export class ServiceClient extends BaseServiceClient {
5523
5527
  );
5524
5528
  }
5525
5529
 
5530
+ /**
5531
+ * GET /ping - Service ping endpoint for basic connectivity check
5532
+ *
5533
+ * @param options - additional request options
5534
+ */
5535
+ get_ping(
5536
+ options?: {
5537
+ query?: GetPingQuery;
5538
+ } & RequestOptions,
5539
+ ): ResponsePromise<GetPingResponse> {
5540
+ return this.request('calendar', '/ping', 'GET', `/ping`, null, options);
5541
+ }
5542
+
5526
5543
  /**
5527
5544
  * POST /file - Upload a file to CDL S3
5528
5545
  *
@@ -5645,6 +5662,21 @@ export class ServiceClient extends BaseServiceClient {
5645
5662
  return this.request('menu', '/menu/{id}', 'PATCH', `/menu/${id}`, body, options);
5646
5663
  }
5647
5664
 
5665
+ /**
5666
+ * GET /menu/full/{id} - Get a full Menu URL
5667
+ *
5668
+ * @param id - menu
5669
+ * @param options - additional request options
5670
+ */
5671
+ get_full_menu(
5672
+ id: string,
5673
+ options?: {
5674
+ query?: GetFullMenuQuery;
5675
+ } & RequestOptions,
5676
+ ): ResponsePromise<GetFullMenuResponse> {
5677
+ return this.request('menu', '/menu/full/{id}', 'GET', `/menu/full/${id}`, null, options);
5678
+ }
5679
+
5648
5680
  /**
5649
5681
  * POST /menu/import - Import an existing Menu
5650
5682
  *
@@ -96,6 +96,13 @@ export interface MenuHours {
96
96
 
97
97
  export type BrandOrMenuState = 'open' | 'closed' | 'preorder';
98
98
 
99
+ export interface PingResponse {
100
+ status?: string;
101
+ message?: string;
102
+ timestamp?: string;
103
+ service?: string;
104
+ }
105
+
99
106
  // GET /calendar/{id}
100
107
 
101
108
  export interface GetCalendarPath {
@@ -188,3 +195,14 @@ export interface PostCalendarSyncPath {
188
195
  export type PostCalendarSyncResponse = Success;
189
196
 
190
197
  export interface PostCalendarSyncRequest extends BaseRequest, PostCalendarSyncPath {}
198
+
199
+ // GET /ping - Service ping endpoint for basic connectivity check
200
+
201
+ export interface GetPingQuery {
202
+ // Graphql query string
203
+ _query?: string;
204
+ }
205
+
206
+ export type GetPingResponse = PingResponse;
207
+
208
+ export interface GetPingRequest extends BaseRequest, RequestQuery<GetPingQuery> {}
@@ -2041,6 +2041,28 @@ export interface PatchMenuRequest extends BaseRequest, RequestQuery<PatchMenuQue
2041
2041
  body: PatchMenuBody;
2042
2042
  }
2043
2043
 
2044
+ // GET /menu/full/{id} - Get a full Menu URL
2045
+
2046
+ export interface GetFullMenuPath {
2047
+ // menu
2048
+ id: string;
2049
+ }
2050
+
2051
+ export interface GetFullMenuQuery {
2052
+ // Graphql query string
2053
+ _query?: string;
2054
+ nocache?: boolean;
2055
+ }
2056
+
2057
+ export interface GetFullMenuResponse {
2058
+ url: string;
2059
+ }
2060
+
2061
+ export interface GetFullMenuRequest
2062
+ extends BaseRequest,
2063
+ RequestQuery<GetFullMenuQuery>,
2064
+ GetFullMenuPath {}
2065
+
2044
2066
  // POST /menu/import - Import an existing Menu
2045
2067
 
2046
2068
  export interface ImportMenuBody {