@compassdigital/sdk.typescript 4.722.0 → 4.724.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/lib/index.d.ts +8 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/delivery.d.ts +35 -4
- package/lib/interface/delivery.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +8 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +21 -0
- package/src/interface/delivery.ts +70 -7
- package/src/interface/menu.ts +8 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1597,6 +1597,7 @@ import {
|
|
|
1597
1597
|
|
|
1598
1598
|
import {
|
|
1599
1599
|
GetDeliveryHealthResponse,
|
|
1600
|
+
GetDeliveryOrderResponse,
|
|
1600
1601
|
PostDeliveryOrderReadyResponse,
|
|
1601
1602
|
PostDeliveryOrderOpenLidResponse,
|
|
1602
1603
|
PostDeliveryOrderCloseLidResponse,
|
|
@@ -18189,6 +18190,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
18189
18190
|
);
|
|
18190
18191
|
}
|
|
18191
18192
|
|
|
18193
|
+
/**
|
|
18194
|
+
* GET /delivery/order/{id} - Get guest-facing delivery status and ETAs for an order
|
|
18195
|
+
*
|
|
18196
|
+
* @param id
|
|
18197
|
+
* @param options - additional request options
|
|
18198
|
+
*/
|
|
18199
|
+
get_delivery_order(
|
|
18200
|
+
id: string,
|
|
18201
|
+
options?: RequestOptions,
|
|
18202
|
+
): ResponsePromise<GetDeliveryOrderResponse> {
|
|
18203
|
+
return this.request(
|
|
18204
|
+
'delivery',
|
|
18205
|
+
'/delivery/order/{id}',
|
|
18206
|
+
'GET',
|
|
18207
|
+
`/delivery/order/${id}`,
|
|
18208
|
+
null,
|
|
18209
|
+
options,
|
|
18210
|
+
);
|
|
18211
|
+
}
|
|
18212
|
+
|
|
18192
18213
|
/**
|
|
18193
18214
|
* POST /delivery/order/{id}/ready - Mark an AVRIDE order ready for robot pickup
|
|
18194
18215
|
*
|
|
@@ -20,13 +20,57 @@ export interface HealthResponseDto {
|
|
|
20
20
|
metadata: HealthMetadataDto;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export interface
|
|
24
|
-
//
|
|
25
|
-
|
|
26
|
-
//
|
|
27
|
-
|
|
28
|
-
//
|
|
29
|
-
|
|
23
|
+
export interface GetDeliveryOrderLocationDto {
|
|
24
|
+
// Street address
|
|
25
|
+
address?: string;
|
|
26
|
+
// Latitude
|
|
27
|
+
lat: number;
|
|
28
|
+
// Longitude
|
|
29
|
+
lon: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface GetDeliveryOrderRobotPositionDto {
|
|
33
|
+
// Latitude
|
|
34
|
+
lat: number;
|
|
35
|
+
// Longitude
|
|
36
|
+
lon: number;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface GetDeliveryOrderRobotDto {
|
|
40
|
+
// Robot name
|
|
41
|
+
name: string;
|
|
42
|
+
position: GetDeliveryOrderRobotPositionDto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface GetDeliveryOrderResponseDto {
|
|
46
|
+
// CDL order id
|
|
47
|
+
orderId: string;
|
|
48
|
+
// Human-readable order number
|
|
49
|
+
orderNumber: string;
|
|
50
|
+
// Guest-facing delivery status
|
|
51
|
+
status:
|
|
52
|
+
| 'pending'
|
|
53
|
+
| 'assigned'
|
|
54
|
+
| 'out_for_delivery'
|
|
55
|
+
| 'arrived'
|
|
56
|
+
| 'delivered'
|
|
57
|
+
| 'returning'
|
|
58
|
+
| 'no_show'
|
|
59
|
+
| 'cancelled';
|
|
60
|
+
// ETA timestamp for the current status, when applicable
|
|
61
|
+
etaAt?: Record<string, any> | null;
|
|
62
|
+
// Station pick-up location
|
|
63
|
+
pickUp?: GetDeliveryOrderLocationDto;
|
|
64
|
+
// Guest's drop-off location
|
|
65
|
+
dropOff?: GetDeliveryOrderLocationDto;
|
|
66
|
+
// When the robot reached drop-off
|
|
67
|
+
dropOffArrivedAt?: Record<string, any> | null;
|
|
68
|
+
// dropOffArrivedAt plus delivery discard wait time
|
|
69
|
+
leaveTimeAt?: Record<string, any> | null;
|
|
70
|
+
// Assigned robot; null once the delivery is terminal
|
|
71
|
+
robot?: GetDeliveryOrderRobotDto;
|
|
72
|
+
// Last time this record changed
|
|
73
|
+
updatedAt: string;
|
|
30
74
|
}
|
|
31
75
|
|
|
32
76
|
export interface ErrorDisplayMessage {
|
|
@@ -55,6 +99,15 @@ export interface Error {
|
|
|
55
99
|
data: ErrorData;
|
|
56
100
|
}
|
|
57
101
|
|
|
102
|
+
export interface OrderReadyResponseDto {
|
|
103
|
+
// AVRIDE order id (same as the CDL order id)
|
|
104
|
+
id: string;
|
|
105
|
+
// AVRIDE order status after the ready call
|
|
106
|
+
status: string;
|
|
107
|
+
// Whether AVRIDE confirmed the order as ready
|
|
108
|
+
ready?: boolean;
|
|
109
|
+
}
|
|
110
|
+
|
|
58
111
|
export interface LocationDto {
|
|
59
112
|
// Street address
|
|
60
113
|
address?: string;
|
|
@@ -236,6 +289,16 @@ export type GetDeliveryHealthResponse = HealthResponseDto;
|
|
|
236
289
|
|
|
237
290
|
export interface GetDeliveryHealthRequest extends BaseRequest {}
|
|
238
291
|
|
|
292
|
+
// GET /delivery/order/{id} - Get guest-facing delivery status and ETAs for an order
|
|
293
|
+
|
|
294
|
+
export interface GetDeliveryOrderPath {
|
|
295
|
+
id: string;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export type GetDeliveryOrderResponse = GetDeliveryOrderResponseDto;
|
|
299
|
+
|
|
300
|
+
export interface GetDeliveryOrderRequest extends BaseRequest, GetDeliveryOrderPath {}
|
|
301
|
+
|
|
239
302
|
// POST /delivery/order/{id}/ready - Mark an AVRIDE order ready for robot pickup
|
|
240
303
|
|
|
241
304
|
export interface PostDeliveryOrderReadyPath {
|
package/src/interface/menu.ts
CHANGED
|
@@ -735,6 +735,7 @@ export interface LocalMenuGroupDTO {
|
|
|
735
735
|
show_v4?: boolean;
|
|
736
736
|
menuworks_unit_ids?: string[];
|
|
737
737
|
append_ingredients_nutrition_to_description?: boolean;
|
|
738
|
+
strip_hidden_from_v2_payload?: boolean;
|
|
738
739
|
visibility?: Record<string, any>;
|
|
739
740
|
id: string;
|
|
740
741
|
created_at?: string;
|
|
@@ -2855,6 +2856,7 @@ export interface PostMenuV3LocalMenuGroupBody {
|
|
|
2855
2856
|
show_v4?: boolean;
|
|
2856
2857
|
menuworks_unit_ids?: string[];
|
|
2857
2858
|
append_ingredients_nutrition_to_description?: boolean;
|
|
2859
|
+
strip_hidden_from_v2_payload?: boolean;
|
|
2858
2860
|
visibility?: Record<string, any>;
|
|
2859
2861
|
vendor_metadata?: VendorMetadataDTO[];
|
|
2860
2862
|
permissions?: Record<string, any>;
|
|
@@ -2871,6 +2873,7 @@ export interface PostMenuV3LocalMenuGroupResponse {
|
|
|
2871
2873
|
show_v4?: boolean;
|
|
2872
2874
|
menuworks_unit_ids?: string[];
|
|
2873
2875
|
append_ingredients_nutrition_to_description?: boolean;
|
|
2876
|
+
strip_hidden_from_v2_payload?: boolean;
|
|
2874
2877
|
visibility?: Record<string, any>;
|
|
2875
2878
|
id: string;
|
|
2876
2879
|
created_at?: string;
|
|
@@ -2913,6 +2916,7 @@ export interface GetMenuV3LocalMenuGroupResponse {
|
|
|
2913
2916
|
show_v4?: boolean;
|
|
2914
2917
|
menuworks_unit_ids?: string[];
|
|
2915
2918
|
append_ingredients_nutrition_to_description?: boolean;
|
|
2919
|
+
strip_hidden_from_v2_payload?: boolean;
|
|
2916
2920
|
visibility?: Record<string, any>;
|
|
2917
2921
|
id: string;
|
|
2918
2922
|
created_at?: string;
|
|
@@ -2945,6 +2949,7 @@ export interface PatchMenuV3LocalMenuGroupBody {
|
|
|
2945
2949
|
show_v4?: boolean;
|
|
2946
2950
|
menuworks_unit_ids?: string[];
|
|
2947
2951
|
append_ingredients_nutrition_to_description?: boolean;
|
|
2952
|
+
strip_hidden_from_v2_payload?: boolean;
|
|
2948
2953
|
visibility?: Record<string, any>;
|
|
2949
2954
|
id?: string;
|
|
2950
2955
|
version?: number;
|
|
@@ -2963,6 +2968,7 @@ export interface PatchMenuV3LocalMenuGroupResponse {
|
|
|
2963
2968
|
show_v4?: boolean;
|
|
2964
2969
|
menuworks_unit_ids?: string[];
|
|
2965
2970
|
append_ingredients_nutrition_to_description?: boolean;
|
|
2971
|
+
strip_hidden_from_v2_payload?: boolean;
|
|
2966
2972
|
visibility?: Record<string, any>;
|
|
2967
2973
|
id: string;
|
|
2968
2974
|
created_at?: string;
|
|
@@ -3001,6 +3007,7 @@ export interface DeleteMenuV3LocalMenuGroupResponse {
|
|
|
3001
3007
|
show_v4?: boolean;
|
|
3002
3008
|
menuworks_unit_ids?: string[];
|
|
3003
3009
|
append_ingredients_nutrition_to_description?: boolean;
|
|
3010
|
+
strip_hidden_from_v2_payload?: boolean;
|
|
3004
3011
|
visibility?: Record<string, any>;
|
|
3005
3012
|
id: string;
|
|
3006
3013
|
created_at?: string;
|
|
@@ -3058,6 +3065,7 @@ export type PostMenuV3LocalMenuGroupsBody = {
|
|
|
3058
3065
|
show_v4?: boolean;
|
|
3059
3066
|
menuworks_unit_ids?: string[];
|
|
3060
3067
|
append_ingredients_nutrition_to_description?: boolean;
|
|
3068
|
+
strip_hidden_from_v2_payload?: boolean;
|
|
3061
3069
|
visibility?: Record<string, any>;
|
|
3062
3070
|
vendor_metadata?: VendorMetadataDTO[];
|
|
3063
3071
|
permissions?: Record<string, any>;
|