@compassdigital/sdk.typescript 4.750.0 → 4.752.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.
@@ -17,6 +17,8 @@ export interface FrictionlessOrderFailureEvent {
17
17
  brandID: string;
18
18
  failReason: string;
19
19
  unpaidAmount: number;
20
+ tripStartTime?: string;
21
+ tripEndTime?: string;
20
22
  };
21
23
  source: string;
22
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FrictionlessOrderFailureEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/FrictionlessOrderFailureEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,6BAA6B;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,+BAA+B,CAAC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QAER,SAAS,EAAE,MAAM,CAAC;QAElB,cAAc,EAAE,MAAM,CAAC;QAEvB,MAAM,EAAE,MAAM,CAAC;QAEf,SAAS,EAAE,MAAM,CAAC;QAElB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;QAExC,gBAAgB,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,WAAW,CAAC;QAE3E,MAAM,EAAE,MAAM,CAAC;QAEf,OAAO,EAAE,MAAM,CAAC;QAEhB,UAAU,EAAE,MAAM,CAAC;QAEnB,YAAY,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"FrictionlessOrderFailureEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/FrictionlessOrderFailureEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,6BAA6B;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,+BAA+B,CAAC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QAER,SAAS,EAAE,MAAM,CAAC;QAElB,cAAc,EAAE,MAAM,CAAC;QAEvB,MAAM,EAAE,MAAM,CAAC;QAEf,SAAS,EAAE,MAAM,CAAC;QAElB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;QAExC,gBAAgB,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,WAAW,CAAC;QAE3E,MAAM,EAAE,MAAM,CAAC;QAEf,OAAO,EAAE,MAAM,CAAC;QAEhB,UAAU,EAAE,MAAM,CAAC;QAEnB,YAAY,EAAE,MAAM,CAAC;QAErB,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,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.750.0",
3
+ "version": "4.752.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -961,6 +961,7 @@ import {
961
961
  DeleteMenuV4BrandMenuResponse,
962
962
  PatchMenuV4BrandMenusReorderBody,
963
963
  PatchMenuV4BrandMenusReorderResponse,
964
+ GetMenuV4BrandGenerateBarcodeResponse,
964
965
  GetMenuV4BrandItemsQuery,
965
966
  GetMenuV4BrandItemsResponse,
966
967
  GetMenuV4BrandModifierGroupsQuery,
@@ -11366,6 +11367,26 @@ export class ServiceClient extends BaseServiceClient {
11366
11367
  );
11367
11368
  }
11368
11369
 
11370
+ /**
11371
+ * GET /menu/v4/brand/{id}/generate-barcode
11372
+ *
11373
+ * @param id
11374
+ * @param options - additional request options
11375
+ */
11376
+ get_menu_v4_brand_generate_barcode(
11377
+ id: string,
11378
+ options?: RequestOptions,
11379
+ ): ResponsePromise<GetMenuV4BrandGenerateBarcodeResponse> {
11380
+ return this.request(
11381
+ 'menu',
11382
+ '/menu/v4/brand/{id}/generate-barcode',
11383
+ 'GET',
11384
+ `/menu/v4/brand/${id}/generate-barcode`,
11385
+ null,
11386
+ options,
11387
+ );
11388
+ }
11389
+
11369
11390
  /**
11370
11391
  * GET /menu/v4/brand/{id}/items
11371
11392
  *
@@ -8717,6 +8717,20 @@ export interface PatchMenuV4BrandMenusReorderRequest
8717
8717
  body: PatchMenuV4BrandMenusReorderBody;
8718
8718
  }
8719
8719
 
8720
+ // GET /menu/v4/brand/{id}/generate-barcode
8721
+
8722
+ export interface GetMenuV4BrandGenerateBarcodePath {
8723
+ id: string;
8724
+ }
8725
+
8726
+ export interface GetMenuV4BrandGenerateBarcodeResponse {
8727
+ barcode?: string;
8728
+ }
8729
+
8730
+ export interface GetMenuV4BrandGenerateBarcodeRequest
8731
+ extends BaseRequest,
8732
+ GetMenuV4BrandGenerateBarcodePath {}
8733
+
8720
8734
  // GET /menu/v4/brand/{id}/items
8721
8735
 
8722
8736
  export interface GetMenuV4BrandItemsPath {
@@ -29,6 +29,10 @@ export interface FrictionlessOrderFailureEvent {
29
29
  failReason: string;
30
30
  // Unpaid balance amount for insufficient balance failures
31
31
  unpaidAmount: number;
32
+ // When the shopper entered the store, as reported by the frictionless provider. Absent on check-ins recorded before shopping trip times were captured
33
+ tripStartTime?: string;
34
+ // When the shopper left the store, as reported by the frictionless provider. Absent on check-ins recorded before shopping trip times were captured
35
+ tripEndTime?: string;
32
36
  };
33
37
  source: string;
34
38
  }