@compassdigital/sdk.typescript 4.754.0 → 4.756.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.
@@ -8,9 +8,17 @@ export interface UpdateOrderStatusCommand {
8
8
  };
9
9
  payload: {
10
10
  orderId: string;
11
- status: 'accepted' | 'in_progress' | 'ready' | 'out_for_delivery' | 'delivered' | 'collected' | 'no_show' | 'see_kitchen' | 'dropoff_leave_warning';
11
+ status: 'accepted' | 'in_progress' | 'ready' | 'out_for_delivery' | 'delivered' | 'collected' | 'no_show' | 'cancelled' | 'see_kitchen' | 'dropoff_leave_warning';
12
12
  reason?: string;
13
13
  updateSource: string;
14
+ delivery?: {
15
+ status: string;
16
+ partnerStatus: string;
17
+ robotName?: string | null;
18
+ etaAt?: string | null;
19
+ leaveTimeAt?: string | null;
20
+ [index: string]: any;
21
+ };
14
22
  };
15
23
  source: string;
16
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateOrderStatusCommand.d.ts","sourceRoot":"","sources":["../../../src/messages/commands/UpdateOrderStatusCommand.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EACH,UAAU,GACV,aAAa,GACb,OAAO,GACP,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,SAAS,GACT,aAAa,GACb,uBAAuB,CAAC;QAE3B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"UpdateOrderStatusCommand.d.ts","sourceRoot":"","sources":["../../../src/messages/commands/UpdateOrderStatusCommand.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EACH,UAAU,GACV,aAAa,GACb,OAAO,GACP,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,SAAS,GACT,WAAW,GACX,aAAa,GACb,uBAAuB,CAAC;QAE3B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QAErB,QAAQ,CAAC,EAAE;YAEV,MAAM,EAAE,MAAM,CAAC;YAEf,aAAa,EAAE,MAAM,CAAC;YAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE1B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAC5B,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;SACrB,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.754.0",
3
+ "version": "4.756.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -962,6 +962,8 @@ import {
962
962
  PatchMenuV4BrandMenusReorderBody,
963
963
  PatchMenuV4BrandMenusReorderResponse,
964
964
  GetMenuV4BrandGenerateBarcodeResponse,
965
+ PostMenuV4BrandGenerateBarcodesBody,
966
+ PostMenuV4BrandGenerateBarcodesResponse,
965
967
  GetMenuV4BrandItemsQuery,
966
968
  GetMenuV4BrandItemsResponse,
967
969
  GetMenuV4BrandModifierGroupsQuery,
@@ -11387,6 +11389,28 @@ export class ServiceClient extends BaseServiceClient {
11387
11389
  );
11388
11390
  }
11389
11391
 
11392
+ /**
11393
+ * POST /menu/v4/brand/{id}/generate-barcodes
11394
+ *
11395
+ * @param id
11396
+ * @param body
11397
+ * @param options - additional request options
11398
+ */
11399
+ post_menu_v4_brand_generate_barcodes(
11400
+ id: string,
11401
+ body: PostMenuV4BrandGenerateBarcodesBody,
11402
+ options?: RequestOptions,
11403
+ ): ResponsePromise<PostMenuV4BrandGenerateBarcodesResponse> {
11404
+ return this.request(
11405
+ 'menu',
11406
+ '/menu/v4/brand/{id}/generate-barcodes',
11407
+ 'POST',
11408
+ `/menu/v4/brand/${id}/generate-barcodes`,
11409
+ body,
11410
+ options,
11411
+ );
11412
+ }
11413
+
11390
11414
  /**
11391
11415
  * GET /menu/v4/brand/{id}/items
11392
11416
  *
@@ -8731,6 +8731,27 @@ export interface GetMenuV4BrandGenerateBarcodeRequest
8731
8731
  extends BaseRequest,
8732
8732
  GetMenuV4BrandGenerateBarcodePath {}
8733
8733
 
8734
+ // POST /menu/v4/brand/{id}/generate-barcodes
8735
+
8736
+ export interface PostMenuV4BrandGenerateBarcodesPath {
8737
+ id: string;
8738
+ }
8739
+
8740
+ export interface PostMenuV4BrandGenerateBarcodesBody {
8741
+ item_ids: string[];
8742
+ [index: string]: any;
8743
+ }
8744
+
8745
+ export interface PostMenuV4BrandGenerateBarcodesResponse {
8746
+ generated?: number;
8747
+ }
8748
+
8749
+ export interface PostMenuV4BrandGenerateBarcodesRequest
8750
+ extends BaseRequest,
8751
+ PostMenuV4BrandGenerateBarcodesPath {
8752
+ body: PostMenuV4BrandGenerateBarcodesBody;
8753
+ }
8754
+
8734
8755
  // GET /menu/v4/brand/{id}/items
8735
8756
 
8736
8757
  export interface GetMenuV4BrandItemsPath {
@@ -18,11 +18,26 @@ export interface UpdateOrderStatusCommand {
18
18
  | 'delivered'
19
19
  | 'collected'
20
20
  | 'no_show'
21
+ | 'cancelled'
21
22
  | 'see_kitchen'
22
23
  | 'dropoff_leave_warning';
23
24
  // Reason if the status is see_kitchen
24
25
  reason?: string;
25
26
  updateSource: string;
27
+ // Latest delivery record snapshot at the time of the status change. Deep-merged into order.meta.delivery, so a field that no longer applies must be sent as an explicit null rather than omitted.
28
+ delivery?: {
29
+ // Guest-facing delivery status
30
+ status: string;
31
+ // Raw delivery partner status, e.g. AVride
32
+ partnerStatus: string;
33
+ // Name of the assigned robot, null once the delivery reaches a terminal status
34
+ robotName?: string | null;
35
+ // ISO 8601 estimated arrival, null unless the delivery is out for delivery or returning
36
+ etaAt?: string | null;
37
+ // ISO 8601 time the robot leaves the drop-off point (drop-off arrival plus the discard window), null before it arrives
38
+ leaveTimeAt?: string | null;
39
+ [index: string]: any;
40
+ };
26
41
  };
27
42
  source: string;
28
43
  }