@compassdigital/sdk.typescript 4.899.0 → 4.901.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/centric-pos.d.ts +7 -0
- package/lib/interface/centric-pos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +45 -3
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/consumer.js +11 -0
- package/lib/interface/consumer.js.map +1 -1
- package/lib/interface/delivery.d.ts +2 -1
- package/lib/interface/delivery.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +21 -0
- package/src/interface/centric-pos.ts +13 -0
- package/src/interface/consumer.ts +72 -3
- package/src/interface/delivery.ts +16 -1
|
@@ -2,4 +2,15 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.LiveDeliveryStatus = void 0;
|
|
6
|
+
exports.LiveDeliveryStatus = {
|
|
7
|
+
PENDING: 'pending',
|
|
8
|
+
ASSIGNED: 'assigned',
|
|
9
|
+
OUT_FOR_DELIVERY: 'out_for_delivery',
|
|
10
|
+
DELIVERED: 'delivered',
|
|
11
|
+
COLLECTED: 'collected',
|
|
12
|
+
RETURNING: 'returning',
|
|
13
|
+
NO_SHOW: 'no_show',
|
|
14
|
+
CANCELLED: 'cancelled',
|
|
15
|
+
};
|
|
5
16
|
//# sourceMappingURL=consumer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumer.js","sourceRoot":"","sources":["../../src/interface/consumer.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,sDAAsD"}
|
|
1
|
+
{"version":3,"file":"consumer.js","sourceRoot":"","sources":["../../src/interface/consumer.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,sDAAsD;;;AAkMzC,QAAA,kBAAkB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACb,CAAC"}
|
|
@@ -25,7 +25,8 @@ export interface GetDeliveryOrderRobotDto {
|
|
|
25
25
|
export interface GetDeliveryOrderResponseDto {
|
|
26
26
|
orderId: string;
|
|
27
27
|
orderNumber: string;
|
|
28
|
-
status: 'pending' | 'assigned' | 'out_for_delivery' | '
|
|
28
|
+
status: 'pending' | 'assigned' | 'out_for_delivery' | 'delivered' | 'collected' | 'returning' | 'no_show' | 'cancelled';
|
|
29
|
+
partnerStatus: 'new' | 'accepted' | 'pickUp' | 'pickUpTransaction' | 'transporting' | 'dropOff' | 'dropOffTransaction' | 'completed' | 'returnTransporting' | 'returnDropOff' | 'returnTransaction' | 'returnCompleted' | 'canceled';
|
|
29
30
|
etaAt?: string | null;
|
|
30
31
|
pickUp?: GetDeliveryOrderLocationDto;
|
|
31
32
|
dropOff?: GetDeliveryOrderLocationDto;
|
|
@@ -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,MA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AC;AAE/D,MAAM,MAAM,+BAA+B,GAAG,sBAAsB,CAAC;AAErE,MAAM,WAAW,8BAA+B,SAAQ,WAAW,EAAE,2BAA2B;IAC/F,IAAI,EAAE,2BAA2B,CAAC;CAClC;AAID,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAE9D,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC;AAEnE,MAAM,WAAW,8BAA+B,SAAQ,WAAW;IAClE,IAAI,EAAE,2BAA2B,CAAC;CAClC;AAID,MAAM,WAAW,2BAA2B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAEjD,MAAM,WAAW,8BAA+B,SAAQ,WAAW,EAAE,2BAA2B;CAAG;AAInG,MAAM,WAAW,qBAAqB;IACrC,MAAM,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,yBAAyB,GAAG,4BAA4B,CAAC;AAErE,MAAM,WAAW,wBAAyB,SAAQ,WAAW,EAAE,qBAAqB;CAAG"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1721,6 +1721,7 @@ import {
|
|
|
1721
1721
|
PatchCentricPosOrderReceiptEmailResponse,
|
|
1722
1722
|
PostCentricPosOrderReceiptBody,
|
|
1723
1723
|
PostCentricPosOrderReceiptResponse,
|
|
1724
|
+
GetCentricPosAdminSiteDevicesResponse,
|
|
1724
1725
|
GetCentricPosAdminDeviceResponse,
|
|
1725
1726
|
PutCentricPosAdminDeviceSettingsBody,
|
|
1726
1727
|
PutCentricPosAdminDeviceSettingsResponse,
|
|
@@ -19868,6 +19869,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
19868
19869
|
);
|
|
19869
19870
|
}
|
|
19870
19871
|
|
|
19872
|
+
/**
|
|
19873
|
+
* GET /centric-pos/v1/admin/site/{siteId}/devices - List a site's POS devices with their settings
|
|
19874
|
+
*
|
|
19875
|
+
* @param siteId - Site (location group) identifier
|
|
19876
|
+
* @param options - additional request options
|
|
19877
|
+
*/
|
|
19878
|
+
get_centric_pos_admin_site_devices(
|
|
19879
|
+
siteId: string,
|
|
19880
|
+
options?: RequestOptions,
|
|
19881
|
+
): ResponsePromise<GetCentricPosAdminSiteDevicesResponse> {
|
|
19882
|
+
return this.request(
|
|
19883
|
+
'centric-pos',
|
|
19884
|
+
'/centric-pos/v1/admin/site/{siteId}/devices',
|
|
19885
|
+
'GET',
|
|
19886
|
+
`/centric-pos/v1/admin/site/${siteId}/devices`,
|
|
19887
|
+
null,
|
|
19888
|
+
options,
|
|
19889
|
+
);
|
|
19890
|
+
}
|
|
19891
|
+
|
|
19871
19892
|
/**
|
|
19872
19893
|
* GET /centric-pos/v1/admin/device/{serialNumber} - Get a POS device with its settings
|
|
19873
19894
|
*
|
|
@@ -286,6 +286,10 @@ export interface CentricPOSDevice {
|
|
|
286
286
|
stations: CentricPOSDeviceStation[];
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
+
export interface CentricPOSSiteDevicesResponse {
|
|
290
|
+
devices: CentricPOSDevice[];
|
|
291
|
+
}
|
|
292
|
+
|
|
289
293
|
export interface CentricPOSDeviceSettingsPutBody {
|
|
290
294
|
// Location at the device's site
|
|
291
295
|
locationId: string;
|
|
@@ -374,6 +378,15 @@ export type PostCentricPosOrderReceiptBody = PostOrderReceiptRequest;
|
|
|
374
378
|
|
|
375
379
|
export type PostCentricPosOrderReceiptResponse = {};
|
|
376
380
|
|
|
381
|
+
// GET /centric-pos/v1/admin/site/{siteId}/devices - List a site's POS devices with their settings
|
|
382
|
+
|
|
383
|
+
export interface GetCentricPosAdminSiteDevicesPath {
|
|
384
|
+
// Site (location group) identifier
|
|
385
|
+
siteId: string;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export type GetCentricPosAdminSiteDevicesResponse = CentricPOSSiteDevicesResponse;
|
|
389
|
+
|
|
377
390
|
// GET /centric-pos/v1/admin/device/{serialNumber} - Get a POS device with its settings
|
|
378
391
|
|
|
379
392
|
export interface GetCentricPosAdminDevicePath {
|
|
@@ -115,6 +115,16 @@ export interface OrderMetaShoppingcart {
|
|
|
115
115
|
export interface OrderDelivery {
|
|
116
116
|
// provider
|
|
117
117
|
provider?: string;
|
|
118
|
+
// Guest-facing delivery status as of the last snapshot
|
|
119
|
+
status?: string;
|
|
120
|
+
// Raw delivery partner status, e.g. AVride
|
|
121
|
+
partnerStatus?: string;
|
|
122
|
+
// Name of the assigned robot, null once the delivery is terminal
|
|
123
|
+
robotName?: string | null;
|
|
124
|
+
// Estimated arrival, null unless out for delivery or returning
|
|
125
|
+
etaAt?: string | null;
|
|
126
|
+
// Time the robot leaves drop-off, null before it arrives
|
|
127
|
+
leaveTimeAt?: string | null;
|
|
118
128
|
tracker_url?: string;
|
|
119
129
|
loading_code?: string;
|
|
120
130
|
}
|
|
@@ -183,6 +193,50 @@ export interface OrderMeta {
|
|
|
183
193
|
apex_codes?: ApexCodes;
|
|
184
194
|
}
|
|
185
195
|
|
|
196
|
+
export const LiveDeliveryStatus = {
|
|
197
|
+
PENDING: 'pending',
|
|
198
|
+
ASSIGNED: 'assigned',
|
|
199
|
+
OUT_FOR_DELIVERY: 'out_for_delivery',
|
|
200
|
+
DELIVERED: 'delivered',
|
|
201
|
+
COLLECTED: 'collected',
|
|
202
|
+
RETURNING: 'returning',
|
|
203
|
+
NO_SHOW: 'no_show',
|
|
204
|
+
CANCELLED: 'cancelled',
|
|
205
|
+
} as const;
|
|
206
|
+
export type LiveDeliveryStatus = (typeof LiveDeliveryStatus)[keyof typeof LiveDeliveryStatus];
|
|
207
|
+
|
|
208
|
+
export interface ConsumerDeliveryRobotPositionDTO {
|
|
209
|
+
// Latitude
|
|
210
|
+
lat: number;
|
|
211
|
+
// Longitude
|
|
212
|
+
lon: number;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface ConsumerDeliveryRobotDTO {
|
|
216
|
+
// Robot name
|
|
217
|
+
name: string;
|
|
218
|
+
position: ConsumerDeliveryRobotPositionDTO;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface LiveDeliveryDTO {
|
|
222
|
+
// Delivery provider
|
|
223
|
+
provider?: string;
|
|
224
|
+
// Guest-facing delivery status
|
|
225
|
+
status: LiveDeliveryStatus;
|
|
226
|
+
// Raw partner status (e.g. AVride dropOffTransaction = lid open). Taken from the order's cached delivery snapshot, so it can lag behind status until the delivery service returns it live
|
|
227
|
+
partner_status?: string | null;
|
|
228
|
+
// ETA timestamp for the current status, when applicable
|
|
229
|
+
eta_at?: string | null;
|
|
230
|
+
// When the robot reached drop-off
|
|
231
|
+
drop_off_arrived_at?: string | null;
|
|
232
|
+
// drop_off_arrived_at plus the delivery discard wait time
|
|
233
|
+
leave_time_at?: string | null;
|
|
234
|
+
// Assigned robot; null once the delivery is terminal
|
|
235
|
+
robot?: ConsumerDeliveryRobotDTO;
|
|
236
|
+
// Last time the delivery record changed
|
|
237
|
+
updated_at: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
186
240
|
export interface CustomerOrderBrandDTO {
|
|
187
241
|
id: string;
|
|
188
242
|
name?: string;
|
|
@@ -815,6 +869,8 @@ export interface CustomerOrderShoppingcartDTO {
|
|
|
815
869
|
|
|
816
870
|
export interface CustomerOrder {
|
|
817
871
|
meta?: OrderMeta;
|
|
872
|
+
// Live delivery info from the delivery service. Only set for active AvRide orders when the lookup succeeds; meta.delivery keeps the cached snapshot
|
|
873
|
+
live_delivery?: LiveDeliveryDTO;
|
|
818
874
|
id?: string;
|
|
819
875
|
reorder_eligibility?:
|
|
820
876
|
| 'eligible'
|
|
@@ -855,6 +911,8 @@ export interface GetCustomerOrdersResponseDTO {
|
|
|
855
911
|
export interface CustomerOrderV2 {
|
|
856
912
|
// Order metadata
|
|
857
913
|
meta?: OrderMeta;
|
|
914
|
+
// Live delivery info from the delivery service. Only set for active AvRide orders when the lookup succeeds; meta.delivery keeps the cached snapshot
|
|
915
|
+
live_delivery?: LiveDeliveryDTO;
|
|
858
916
|
id?: string;
|
|
859
917
|
reorder_eligibility?: string;
|
|
860
918
|
location_brand?: string;
|
|
@@ -4858,6 +4916,15 @@ export interface GetConsumerLocationResponse {
|
|
|
4858
4916
|
timezone?: string;
|
|
4859
4917
|
}
|
|
4860
4918
|
|
|
4919
|
+
export interface ConsumerDeliveryLocationDTO {
|
|
4920
|
+
// Street address
|
|
4921
|
+
address?: string;
|
|
4922
|
+
// Latitude
|
|
4923
|
+
lat: number;
|
|
4924
|
+
// Longitude
|
|
4925
|
+
lon: number;
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4861
4928
|
export interface GetDeliveryOrderResponseDto {
|
|
4862
4929
|
// CDL order id
|
|
4863
4930
|
orderId: string;
|
|
@@ -4865,18 +4932,20 @@ export interface GetDeliveryOrderResponseDto {
|
|
|
4865
4932
|
orderNumber: string;
|
|
4866
4933
|
// Guest-facing delivery status
|
|
4867
4934
|
status: string;
|
|
4935
|
+
// Raw AVride order status; the robot lid is open on pickUpTransaction and dropOffTransaction
|
|
4936
|
+
partnerStatus: string;
|
|
4868
4937
|
// ETA timestamp for the current status, when applicable
|
|
4869
4938
|
etaAt?: string | null;
|
|
4870
4939
|
// Station pick-up location
|
|
4871
|
-
pickUp?:
|
|
4940
|
+
pickUp?: ConsumerDeliveryLocationDTO;
|
|
4872
4941
|
// Guest's drop-off location
|
|
4873
|
-
dropOff?:
|
|
4942
|
+
dropOff?: ConsumerDeliveryLocationDTO;
|
|
4874
4943
|
// When the robot reached drop-off
|
|
4875
4944
|
dropOffArrivedAt?: string | null;
|
|
4876
4945
|
// dropOffArrivedAt plus delivery discard wait time
|
|
4877
4946
|
leaveTimeAt?: string | null;
|
|
4878
4947
|
// Assigned robot; null once the delivery is terminal
|
|
4879
|
-
robot?:
|
|
4948
|
+
robot?: ConsumerDeliveryRobotDTO;
|
|
4880
4949
|
// Last time this record changed
|
|
4881
4950
|
updatedAt: string;
|
|
4882
4951
|
}
|
|
@@ -52,11 +52,26 @@ export interface GetDeliveryOrderResponseDto {
|
|
|
52
52
|
| 'pending'
|
|
53
53
|
| 'assigned'
|
|
54
54
|
| 'out_for_delivery'
|
|
55
|
-
| 'arrived'
|
|
56
55
|
| 'delivered'
|
|
56
|
+
| 'collected'
|
|
57
57
|
| 'returning'
|
|
58
58
|
| 'no_show'
|
|
59
59
|
| 'cancelled';
|
|
60
|
+
// Raw AVride order status; the robot lid is open on pickUpTransaction and dropOffTransaction
|
|
61
|
+
partnerStatus:
|
|
62
|
+
| 'new'
|
|
63
|
+
| 'accepted'
|
|
64
|
+
| 'pickUp'
|
|
65
|
+
| 'pickUpTransaction'
|
|
66
|
+
| 'transporting'
|
|
67
|
+
| 'dropOff'
|
|
68
|
+
| 'dropOffTransaction'
|
|
69
|
+
| 'completed'
|
|
70
|
+
| 'returnTransporting'
|
|
71
|
+
| 'returnDropOff'
|
|
72
|
+
| 'returnTransaction'
|
|
73
|
+
| 'returnCompleted'
|
|
74
|
+
| 'canceled';
|
|
60
75
|
// ETA timestamp for the current status, when applicable
|
|
61
76
|
etaAt?: string | null;
|
|
62
77
|
// Station pick-up location
|