@compassdigital/sdk.typescript 4.689.0 → 4.690.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,6 +9,11 @@ export interface HealthResponseDto {
9
9
  version: string;
10
10
  metadata: HealthMetadataDto;
11
11
  }
12
+ export interface OrderReadyResponseDto {
13
+ id: string;
14
+ status: string;
15
+ ready?: boolean;
16
+ }
12
17
  export interface ErrorDisplayMessage {
13
18
  title: string;
14
19
  description: string;
@@ -27,4 +32,10 @@ export interface Error {
27
32
  export type GetDeliveryHealthResponse = HealthResponseDto;
28
33
  export interface GetDeliveryHealthRequest extends BaseRequest {
29
34
  }
35
+ export interface PostDeliveryOrderReadyPath {
36
+ id: string;
37
+ }
38
+ export type PostDeliveryOrderReadyResponse = OrderReadyResponseDto;
39
+ export interface PostDeliveryOrderReadyRequest extends BaseRequest, PostDeliveryOrderReadyPath {
40
+ }
30
41
  //# sourceMappingURL=delivery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delivery.d.ts","sourceRoot":"","sources":["../../src/interface/delivery.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,WAAW,iBAAiB;IAEjC,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAEjC,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAEnC,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IAEzB,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAElB,cAAc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W,0BAA0B;IAC1C,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,MAAM,8BAA8B,GAAG,qBAAqB,CAAC;AAEnE,MAAM,WAAW,6BAA8B,SAAQ,WAAW,EAAE,0BAA0B;CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.689.0",
3
+ "version": "4.690.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -1585,7 +1585,7 @@ import {
1585
1585
  GetForecastingHealthResponse,
1586
1586
  } from './interface/forecasting';
1587
1587
 
1588
- import { GetDeliveryHealthResponse } from './interface/delivery';
1588
+ import { GetDeliveryHealthResponse, PostDeliveryOrderReadyResponse } from './interface/delivery';
1589
1589
 
1590
1590
  import { BaseServiceClient, RequestOptions, ServiceClientOptions, ResponsePromise } from './base';
1591
1591
  export * from './base';
@@ -18015,4 +18015,24 @@ export class ServiceClient extends BaseServiceClient {
18015
18015
  options,
18016
18016
  );
18017
18017
  }
18018
+
18019
+ /**
18020
+ * POST /delivery/order/{id}/ready - Mark an AVRIDE order ready for robot pickup
18021
+ *
18022
+ * @param id
18023
+ * @param options - additional request options
18024
+ */
18025
+ post_delivery_order_ready(
18026
+ id: string,
18027
+ options?: RequestOptions,
18028
+ ): ResponsePromise<PostDeliveryOrderReadyResponse> {
18029
+ return this.request(
18030
+ 'delivery',
18031
+ '/delivery/order/{id}/ready',
18032
+ 'POST',
18033
+ `/delivery/order/${id}/ready`,
18034
+ null,
18035
+ options,
18036
+ );
18037
+ }
18018
18038
  }
@@ -20,6 +20,15 @@ export interface HealthResponseDto {
20
20
  metadata: HealthMetadataDto;
21
21
  }
22
22
 
23
+ export interface OrderReadyResponseDto {
24
+ // AVRIDE order id (same as the CDL order id)
25
+ id: string;
26
+ // AVRIDE order status after the ready call
27
+ status: string;
28
+ // Whether AVRIDE confirmed the order as ready
29
+ ready?: boolean;
30
+ }
31
+
23
32
  export interface ErrorDisplayMessage {
24
33
  // user message title
25
34
  title: string;
@@ -51,3 +60,13 @@ export interface Error {
51
60
  export type GetDeliveryHealthResponse = HealthResponseDto;
52
61
 
53
62
  export interface GetDeliveryHealthRequest extends BaseRequest {}
63
+
64
+ // POST /delivery/order/{id}/ready - Mark an AVRIDE order ready for robot pickup
65
+
66
+ export interface PostDeliveryOrderReadyPath {
67
+ id: string;
68
+ }
69
+
70
+ export type PostDeliveryOrderReadyResponse = OrderReadyResponseDto;
71
+
72
+ export interface PostDeliveryOrderReadyRequest extends BaseRequest, PostDeliveryOrderReadyPath {}