@compassdigital/sdk.typescript 4.269.0 → 4.271.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.
@@ -9,7 +9,6 @@ export interface ReviewCreatedEvent {
9
9
  payload: {
10
10
  review: {
11
11
  id: string;
12
- userId: string;
13
12
  createdAt: string;
14
13
  updatedAt: string;
15
14
  score?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"ReviewCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/ReviewCreatedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,MAAM,EAAE;YAEP,EAAE,EAAE,MAAM,CAAC;YAEX,MAAM,EAAE,MAAM,CAAC;YAEf,SAAS,EAAE,MAAM,CAAC;YAElB,SAAS,EAAE,MAAM,CAAC;YAElB,KAAK,CAAC,EAAE,MAAM,CAAC;YAEf,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;YAElB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SAClC,CAAC;KACF,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"ReviewCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/ReviewCreatedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,MAAM,EAAE;YAEP,EAAE,EAAE,MAAM,CAAC;YAEX,SAAS,EAAE,MAAM,CAAC;YAElB,SAAS,EAAE,MAAM,CAAC;YAElB,KAAK,CAAC,EAAE,MAAM,CAAC;YAEf,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;YAElB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SAClC,CAAC;KACF,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.269.0",
3
+ "version": "4.271.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -505,6 +505,8 @@ import {
505
505
  PatchMenuQuery,
506
506
  PatchMenuBody,
507
507
  PatchMenuResponse,
508
+ GetFullMenuQuery,
509
+ GetFullMenuResponse,
508
510
  ImportMenuBody,
509
511
  ImportMenuResponse,
510
512
  GetMenuItemsQuery,
@@ -5645,6 +5647,21 @@ export class ServiceClient extends BaseServiceClient {
5645
5647
  return this.request('menu', '/menu/{id}', 'PATCH', `/menu/${id}`, body, options);
5646
5648
  }
5647
5649
 
5650
+ /**
5651
+ * GET /menu/full/{id} - Get a full Menu URL
5652
+ *
5653
+ * @param id - menu
5654
+ * @param options - additional request options
5655
+ */
5656
+ get_full_menu(
5657
+ id: string,
5658
+ options?: {
5659
+ query?: GetFullMenuQuery;
5660
+ } & RequestOptions,
5661
+ ): ResponsePromise<GetFullMenuResponse> {
5662
+ return this.request('menu', '/menu/full/{id}', 'GET', `/menu/full/${id}`, null, options);
5663
+ }
5664
+
5648
5665
  /**
5649
5666
  * POST /menu/import - Import an existing Menu
5650
5667
  *
@@ -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 {
@@ -12,8 +12,6 @@ export interface ReviewCreatedEvent {
12
12
  review: {
13
13
  // review id
14
14
  id: string;
15
- // user who created the review
16
- userId: string;
17
15
  // when the review was created
18
16
  createdAt: string;
19
17
  // when the review was last updated