@compassdigital/sdk.typescript 4.898.0 → 4.900.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.
@@ -256,6 +256,47 @@ export interface PostOrderReceiptRequest {
256
256
  receiptEmail: string;
257
257
  }
258
258
 
259
+ export interface CentricPOSDeviceStation {
260
+ // Station (brand) ID
261
+ id: string;
262
+ // Station name
263
+ name?: string;
264
+ // Whether the station is hidden on this device
265
+ hidden: boolean;
266
+ // Whether the station can take orders: it has payment credentials or is a no-payment station
267
+ orderable: boolean;
268
+ }
269
+
270
+ export interface CentricPOSDevice {
271
+ // Serial number of the device
272
+ serialNumber: string;
273
+ // Site the device is registered at
274
+ siteId: string;
275
+ // Whether the device holds a login
276
+ registered: boolean;
277
+ // Whether the device's location is at its site and it shows at least one orderable station
278
+ complete: boolean;
279
+ // Location saved for the device
280
+ locationId?: string;
281
+ // Name of the device's location
282
+ locationName?: string;
283
+ // Merchant name set on the device's location
284
+ merchantName?: string;
285
+ // Centric POS stations at the device's location, with whether each is hidden
286
+ stations: CentricPOSDeviceStation[];
287
+ }
288
+
289
+ export interface CentricPOSSiteDevicesResponse {
290
+ devices: CentricPOSDevice[];
291
+ }
292
+
293
+ export interface CentricPOSDeviceSettingsPutBody {
294
+ // Location at the device's site
295
+ locationId: string;
296
+ // Stations at the location to hide on the device
297
+ hiddenStationIds: string[];
298
+ }
299
+
259
300
  export interface DigitalSignageOrder {
260
301
  // Display ID for the order
261
302
  displayId: string;
@@ -337,6 +378,44 @@ export type PostCentricPosOrderReceiptBody = PostOrderReceiptRequest;
337
378
 
338
379
  export type PostCentricPosOrderReceiptResponse = {};
339
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
+
390
+ // GET /centric-pos/v1/admin/device/{serialNumber} - Get a POS device with its settings
391
+
392
+ export interface GetCentricPosAdminDevicePath {
393
+ // Serial number of the device
394
+ serialNumber: string;
395
+ }
396
+
397
+ export type GetCentricPosAdminDeviceResponse = CentricPOSDevice;
398
+
399
+ // PUT /centric-pos/v1/admin/device/{serialNumber}/settings - Save a POS device's location and hidden stations
400
+
401
+ export interface PutCentricPosAdminDeviceSettingsPath {
402
+ // Serial number of the device
403
+ serialNumber: string;
404
+ }
405
+
406
+ export type PutCentricPosAdminDeviceSettingsBody = CentricPOSDeviceSettingsPutBody;
407
+
408
+ export type PutCentricPosAdminDeviceSettingsResponse = CentricPOSDevice;
409
+
410
+ // DELETE /centric-pos/v1/admin/device/{serialNumber}/settings - Clear a POS device's settings without unregistering it
411
+
412
+ export interface DeleteCentricPosAdminDeviceSettingsPath {
413
+ // Serial number of the device
414
+ serialNumber: string;
415
+ }
416
+
417
+ export type DeleteCentricPosAdminDeviceSettingsResponse = {};
418
+
340
419
  // GET /centric-pos/innovation/v1/digital-signage/orders/{stationId} - Get in-progress and ready orders for a station
341
420
 
342
421
  export interface GetCentricPosDigitalSignageOrdersPath {
@@ -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