@compassdigital/sdk.typescript 4.936.0 → 4.937.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 +48 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +59 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +105 -0
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/centricos.js.map +1 -1
- package/lib/interface/consumer.d.ts +19 -1
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/consumer.js +18 -1
- package/lib/interface/consumer.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +162 -0
- package/src/interface/centricos.ts +219 -0
- package/src/interface/consumer.ts +23 -3
package/src/index.ts
CHANGED
|
@@ -1424,6 +1424,15 @@ import {
|
|
|
1424
1424
|
GetCentricosSiteMenuHoursDetailsResponse,
|
|
1425
1425
|
GetCentricosSiteClientSettingsResponse,
|
|
1426
1426
|
GetCentricosSiteFoodWasteResponse,
|
|
1427
|
+
GetCentricosSiteIntegrationsResponse,
|
|
1428
|
+
PutCentricosSiteThriveIntegrationBody,
|
|
1429
|
+
PutCentricosSiteThriveIntegrationResponse,
|
|
1430
|
+
PutCentricosSiteBoostIntegrationBody,
|
|
1431
|
+
PutCentricosSiteBoostIntegrationResponse,
|
|
1432
|
+
PutCentricosSiteAgilysysIntegrationBody,
|
|
1433
|
+
PutCentricosSiteAgilysysIntegrationResponse,
|
|
1434
|
+
PutCentricosSiteIntegrationResponse,
|
|
1435
|
+
DeleteCentricosSiteIntegrationResponse,
|
|
1427
1436
|
GetReviewOrderItemsResponse,
|
|
1428
1437
|
GetYesterdaysSnapshotResponse,
|
|
1429
1438
|
GetCentricosStationResponse,
|
|
@@ -16714,6 +16723,159 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
16714
16723
|
);
|
|
16715
16724
|
}
|
|
16716
16725
|
|
|
16726
|
+
/**
|
|
16727
|
+
* GET /centricos/sites/{siteId}/integrations - Get the integrations Edge supports and whether each is connected to the site
|
|
16728
|
+
*
|
|
16729
|
+
* @param siteId - ID of the site
|
|
16730
|
+
* @param options - additional request options
|
|
16731
|
+
*/
|
|
16732
|
+
get_centricos_site_integrations(
|
|
16733
|
+
siteId: string,
|
|
16734
|
+
options?: RequestOptions,
|
|
16735
|
+
): ResponsePromise<GetCentricosSiteIntegrationsResponse> {
|
|
16736
|
+
return this.request(
|
|
16737
|
+
'centricos',
|
|
16738
|
+
'/centricos/sites/{siteId}/integrations',
|
|
16739
|
+
'GET',
|
|
16740
|
+
`/centricos/sites/${siteId}/integrations`,
|
|
16741
|
+
null,
|
|
16742
|
+
options,
|
|
16743
|
+
);
|
|
16744
|
+
}
|
|
16745
|
+
|
|
16746
|
+
/**
|
|
16747
|
+
* PUT /centricos/sites/{siteId}/integration/thrive - Connect Thrive to the site and save its settings
|
|
16748
|
+
*
|
|
16749
|
+
* @param siteId - ID of the site
|
|
16750
|
+
* @param body
|
|
16751
|
+
* @param options - additional request options
|
|
16752
|
+
*/
|
|
16753
|
+
put_centricos_site_thrive_integration(
|
|
16754
|
+
siteId: string,
|
|
16755
|
+
body: PutCentricosSiteThriveIntegrationBody,
|
|
16756
|
+
options?: RequestOptions,
|
|
16757
|
+
): ResponsePromise<PutCentricosSiteThriveIntegrationResponse> {
|
|
16758
|
+
return this.request(
|
|
16759
|
+
'centricos',
|
|
16760
|
+
'/centricos/sites/{siteId}/integration/thrive',
|
|
16761
|
+
'PUT',
|
|
16762
|
+
`/centricos/sites/${siteId}/integration/thrive`,
|
|
16763
|
+
body,
|
|
16764
|
+
options,
|
|
16765
|
+
);
|
|
16766
|
+
}
|
|
16767
|
+
|
|
16768
|
+
/**
|
|
16769
|
+
* PUT /centricos/sites/{siteId}/integration/boost - Connect Boost to the site and save its settings
|
|
16770
|
+
*
|
|
16771
|
+
* @param siteId - ID of the site
|
|
16772
|
+
* @param body
|
|
16773
|
+
* @param options - additional request options
|
|
16774
|
+
*/
|
|
16775
|
+
put_centricos_site_boost_integration(
|
|
16776
|
+
siteId: string,
|
|
16777
|
+
body: PutCentricosSiteBoostIntegrationBody,
|
|
16778
|
+
options?: RequestOptions,
|
|
16779
|
+
): ResponsePromise<PutCentricosSiteBoostIntegrationResponse> {
|
|
16780
|
+
return this.request(
|
|
16781
|
+
'centricos',
|
|
16782
|
+
'/centricos/sites/{siteId}/integration/boost',
|
|
16783
|
+
'PUT',
|
|
16784
|
+
`/centricos/sites/${siteId}/integration/boost`,
|
|
16785
|
+
body,
|
|
16786
|
+
options,
|
|
16787
|
+
);
|
|
16788
|
+
}
|
|
16789
|
+
|
|
16790
|
+
/**
|
|
16791
|
+
* PUT /centricos/sites/{siteId}/integration/agilysys - Connect Agilysys to the site and save its settings
|
|
16792
|
+
*
|
|
16793
|
+
* @param siteId - ID of the site
|
|
16794
|
+
* @param body
|
|
16795
|
+
* @param options - additional request options
|
|
16796
|
+
*/
|
|
16797
|
+
put_centricos_site_agilysys_integration(
|
|
16798
|
+
siteId: string,
|
|
16799
|
+
body: PutCentricosSiteAgilysysIntegrationBody,
|
|
16800
|
+
options?: RequestOptions,
|
|
16801
|
+
): ResponsePromise<PutCentricosSiteAgilysysIntegrationResponse> {
|
|
16802
|
+
return this.request(
|
|
16803
|
+
'centricos',
|
|
16804
|
+
'/centricos/sites/{siteId}/integration/agilysys',
|
|
16805
|
+
'PUT',
|
|
16806
|
+
`/centricos/sites/${siteId}/integration/agilysys`,
|
|
16807
|
+
body,
|
|
16808
|
+
options,
|
|
16809
|
+
);
|
|
16810
|
+
}
|
|
16811
|
+
|
|
16812
|
+
/**
|
|
16813
|
+
* PUT /centricos/sites/{siteId}/integration/{integration_type} - Connect an integration that has no site settings to the site
|
|
16814
|
+
*
|
|
16815
|
+
* @param siteId - ID of the site
|
|
16816
|
+
* @param integration_type - Integration to connect. Thrive, Boost and Agilysys have their own routes, because they take site settings.
|
|
16817
|
+
* @param options - additional request options
|
|
16818
|
+
*/
|
|
16819
|
+
put_centricos_site_integration(
|
|
16820
|
+
siteId: string,
|
|
16821
|
+
integration_type:
|
|
16822
|
+
| 'nextep'
|
|
16823
|
+
| 'volante'
|
|
16824
|
+
| 'mashgin'
|
|
16825
|
+
| 'centric_hub'
|
|
16826
|
+
| 'agilysys_dod'
|
|
16827
|
+
| 'grubhub'
|
|
16828
|
+
| 'ryst'
|
|
16829
|
+
| 'illumia'
|
|
16830
|
+
| 'amazon'
|
|
16831
|
+
| 'time2eat',
|
|
16832
|
+
options?: RequestOptions,
|
|
16833
|
+
): ResponsePromise<PutCentricosSiteIntegrationResponse> {
|
|
16834
|
+
return this.request(
|
|
16835
|
+
'centricos',
|
|
16836
|
+
'/centricos/sites/{siteId}/integration/{integration_type}',
|
|
16837
|
+
'PUT',
|
|
16838
|
+
`/centricos/sites/${siteId}/integration/${integration_type}`,
|
|
16839
|
+
null,
|
|
16840
|
+
options,
|
|
16841
|
+
);
|
|
16842
|
+
}
|
|
16843
|
+
|
|
16844
|
+
/**
|
|
16845
|
+
* DELETE /centricos/sites/{siteId}/integration/{integration_type} - Disconnect an integration from the site
|
|
16846
|
+
*
|
|
16847
|
+
* @param siteId - ID of the site
|
|
16848
|
+
* @param integration_type - Integration to disconnect
|
|
16849
|
+
* @param options - additional request options
|
|
16850
|
+
*/
|
|
16851
|
+
delete_centricos_site_integration(
|
|
16852
|
+
siteId: string,
|
|
16853
|
+
integration_type:
|
|
16854
|
+
| 'thrive'
|
|
16855
|
+
| 'boost'
|
|
16856
|
+
| 'nextep'
|
|
16857
|
+
| 'volante'
|
|
16858
|
+
| 'agilysys'
|
|
16859
|
+
| 'mashgin'
|
|
16860
|
+
| 'centric_hub'
|
|
16861
|
+
| 'agilysys_dod'
|
|
16862
|
+
| 'grubhub'
|
|
16863
|
+
| 'ryst'
|
|
16864
|
+
| 'illumia'
|
|
16865
|
+
| 'amazon'
|
|
16866
|
+
| 'time2eat',
|
|
16867
|
+
options?: RequestOptions,
|
|
16868
|
+
): ResponsePromise<DeleteCentricosSiteIntegrationResponse> {
|
|
16869
|
+
return this.request(
|
|
16870
|
+
'centricos',
|
|
16871
|
+
'/centricos/sites/{siteId}/integration/{integration_type}',
|
|
16872
|
+
'DELETE',
|
|
16873
|
+
`/centricos/sites/${siteId}/integration/${integration_type}`,
|
|
16874
|
+
null,
|
|
16875
|
+
options,
|
|
16876
|
+
);
|
|
16877
|
+
}
|
|
16878
|
+
|
|
16717
16879
|
/**
|
|
16718
16880
|
* GET /centricos/review/{orderId}/order-items - Get reviews for items in a given order in an array format
|
|
16719
16881
|
*
|
|
@@ -338,6 +338,138 @@ export interface GetSiteFoodWasteResponse {
|
|
|
338
338
|
top_locations: FoodWasteLocation[];
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
+
export interface SiteIntegrationStation {
|
|
342
|
+
// Station (brand) id.
|
|
343
|
+
id: string;
|
|
344
|
+
// Station name.
|
|
345
|
+
name: string;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export interface SiteIntegration {
|
|
349
|
+
// Whether the integration is connected to the site.
|
|
350
|
+
is_connected: boolean;
|
|
351
|
+
// Whether the integration can be connected to the site. False when it is already connected, or when it is Thrive or Boost and the other one is connected.
|
|
352
|
+
can_connect: boolean;
|
|
353
|
+
// Stations of the site that use the integration. The integration can't be disconnected until this is empty.
|
|
354
|
+
stations: SiteIntegrationStation[];
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export interface SiteIntegrations {
|
|
358
|
+
thrive: SiteIntegration;
|
|
359
|
+
boost: SiteIntegration;
|
|
360
|
+
nextep: SiteIntegration;
|
|
361
|
+
volante: SiteIntegration;
|
|
362
|
+
agilysys: SiteIntegration;
|
|
363
|
+
mashgin: SiteIntegration;
|
|
364
|
+
centric_hub: SiteIntegration;
|
|
365
|
+
agilysys_dod: SiteIntegration;
|
|
366
|
+
grubhub: SiteIntegration;
|
|
367
|
+
ryst: SiteIntegration;
|
|
368
|
+
illumia: SiteIntegration;
|
|
369
|
+
amazon: SiteIntegration;
|
|
370
|
+
time2eat: SiteIntegration;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export interface GetSiteIntegrationsResponse {
|
|
374
|
+
integrations: SiteIntegrations;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export interface SiteIntegrationAppSettingsSection {
|
|
378
|
+
// Whether marketplaces are listed first on the app home page. Stored in the group meta as `software_integrations.{thrive|boost}.sort_marketplace_first_on_homepage`.
|
|
379
|
+
show_marketplaces_first?: boolean;
|
|
380
|
+
// Whether the ordering chat bot is on. Stored in the site public config as `chat_enabled`.
|
|
381
|
+
ordering_chat_bot?: boolean;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export interface SiteIntegrationAppClientCustomizationSection {
|
|
385
|
+
// Whether the site is private to its client. Stored in the group meta as `software_integrations.{thrive|boost}.public_override`.
|
|
386
|
+
private_site?: boolean;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export interface SiteIntegrationAppApexSection {
|
|
390
|
+
// Apex client number. Empty means the site doesn't use Apex. Stored in the site private config as `apex.apex_client_numb`, with `apex.apex_integrated`.
|
|
391
|
+
client_number?: string;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export interface PutSiteAppIntegrationRequest {
|
|
395
|
+
// App settings
|
|
396
|
+
settings?: SiteIntegrationAppSettingsSection;
|
|
397
|
+
// Client customization. Only for a site with a client.
|
|
398
|
+
client_customization?: SiteIntegrationAppClientCustomizationSection;
|
|
399
|
+
// Apex setup
|
|
400
|
+
apex?: SiteIntegrationAppApexSection;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export interface PutSiteIntegrationResponse {
|
|
404
|
+
success: boolean;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export interface SiteIntegrationConflictErrorData {
|
|
408
|
+
// http status code
|
|
409
|
+
statusCode: number;
|
|
410
|
+
// http status text
|
|
411
|
+
statusText: string;
|
|
412
|
+
timestamp: string;
|
|
413
|
+
// user friendly error message
|
|
414
|
+
displayMessage: ErrorDisplayMessage;
|
|
415
|
+
// The app integration already connected to the site.
|
|
416
|
+
connected_integration:
|
|
417
|
+
| 'thrive'
|
|
418
|
+
| 'boost'
|
|
419
|
+
| 'nextep'
|
|
420
|
+
| 'volante'
|
|
421
|
+
| 'agilysys'
|
|
422
|
+
| 'mashgin'
|
|
423
|
+
| 'centric_hub'
|
|
424
|
+
| 'agilysys_dod'
|
|
425
|
+
| 'grubhub'
|
|
426
|
+
| 'ryst'
|
|
427
|
+
| 'illumia'
|
|
428
|
+
| 'amazon'
|
|
429
|
+
| 'time2eat';
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export interface SiteIntegrationConflictError {
|
|
433
|
+
// business error code
|
|
434
|
+
code: number;
|
|
435
|
+
// business error description
|
|
436
|
+
message: string;
|
|
437
|
+
// additional error data
|
|
438
|
+
data: SiteIntegrationConflictErrorData;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export interface PutSiteAgilysysIntegrationRequest {
|
|
442
|
+
// Agilysys configuration name. Stored in the site private config as `integrations.agilysys.config_name`.
|
|
443
|
+
config_name?: string;
|
|
444
|
+
// Agilysys configuration key. Stored in the site private config as `integrations.agilysys.config_key`.
|
|
445
|
+
config_key?: string;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export interface DeleteSiteIntegrationResponse {
|
|
449
|
+
success: boolean;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export interface SiteIntegrationInUseErrorData {
|
|
453
|
+
// http status code
|
|
454
|
+
statusCode: number;
|
|
455
|
+
// http status text
|
|
456
|
+
statusText: string;
|
|
457
|
+
timestamp: string;
|
|
458
|
+
// user friendly error message
|
|
459
|
+
displayMessage: ErrorDisplayMessage;
|
|
460
|
+
// Stations of the site that still use the integration.
|
|
461
|
+
stations: SiteIntegrationStation[];
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export interface SiteIntegrationInUseError {
|
|
465
|
+
// business error code
|
|
466
|
+
code: number;
|
|
467
|
+
// business error description
|
|
468
|
+
message: string;
|
|
469
|
+
// additional error data
|
|
470
|
+
data: SiteIntegrationInUseErrorData;
|
|
471
|
+
}
|
|
472
|
+
|
|
341
473
|
export interface ReviewOrderItem {
|
|
342
474
|
// Order id
|
|
343
475
|
id: string;
|
|
@@ -1850,6 +1982,93 @@ export interface GetCentricosSiteFoodWastePath {
|
|
|
1850
1982
|
|
|
1851
1983
|
export type GetCentricosSiteFoodWasteResponse = GetSiteFoodWasteResponse;
|
|
1852
1984
|
|
|
1985
|
+
// GET /centricos/sites/{siteId}/integrations - Get the integrations Edge supports and whether each is connected to the site
|
|
1986
|
+
|
|
1987
|
+
export interface GetCentricosSiteIntegrationsPath {
|
|
1988
|
+
// ID of the site
|
|
1989
|
+
siteId: string;
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
export type GetCentricosSiteIntegrationsResponse = GetSiteIntegrationsResponse;
|
|
1993
|
+
|
|
1994
|
+
// PUT /centricos/sites/{siteId}/integration/thrive - Connect Thrive to the site and save its settings
|
|
1995
|
+
|
|
1996
|
+
export interface PutCentricosSiteThriveIntegrationPath {
|
|
1997
|
+
// ID of the site
|
|
1998
|
+
siteId: string;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
export type PutCentricosSiteThriveIntegrationBody = PutSiteAppIntegrationRequest;
|
|
2002
|
+
|
|
2003
|
+
export type PutCentricosSiteThriveIntegrationResponse = PutSiteIntegrationResponse;
|
|
2004
|
+
|
|
2005
|
+
// PUT /centricos/sites/{siteId}/integration/boost - Connect Boost to the site and save its settings
|
|
2006
|
+
|
|
2007
|
+
export interface PutCentricosSiteBoostIntegrationPath {
|
|
2008
|
+
// ID of the site
|
|
2009
|
+
siteId: string;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
export type PutCentricosSiteBoostIntegrationBody = PutSiteAppIntegrationRequest;
|
|
2013
|
+
|
|
2014
|
+
export type PutCentricosSiteBoostIntegrationResponse = PutSiteIntegrationResponse;
|
|
2015
|
+
|
|
2016
|
+
// PUT /centricos/sites/{siteId}/integration/agilysys - Connect Agilysys to the site and save its settings
|
|
2017
|
+
|
|
2018
|
+
export interface PutCentricosSiteAgilysysIntegrationPath {
|
|
2019
|
+
// ID of the site
|
|
2020
|
+
siteId: string;
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
export type PutCentricosSiteAgilysysIntegrationBody = PutSiteAgilysysIntegrationRequest;
|
|
2024
|
+
|
|
2025
|
+
export type PutCentricosSiteAgilysysIntegrationResponse = PutSiteIntegrationResponse;
|
|
2026
|
+
|
|
2027
|
+
// PUT /centricos/sites/{siteId}/integration/{integration_type} - Connect an integration that has no site settings to the site
|
|
2028
|
+
|
|
2029
|
+
export interface PutCentricosSiteIntegrationPath {
|
|
2030
|
+
// ID of the site
|
|
2031
|
+
siteId: string;
|
|
2032
|
+
// Integration to connect. Thrive, Boost and Agilysys have their own routes, because they take site settings.
|
|
2033
|
+
integration_type:
|
|
2034
|
+
| 'nextep'
|
|
2035
|
+
| 'volante'
|
|
2036
|
+
| 'mashgin'
|
|
2037
|
+
| 'centric_hub'
|
|
2038
|
+
| 'agilysys_dod'
|
|
2039
|
+
| 'grubhub'
|
|
2040
|
+
| 'ryst'
|
|
2041
|
+
| 'illumia'
|
|
2042
|
+
| 'amazon'
|
|
2043
|
+
| 'time2eat';
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
export type PutCentricosSiteIntegrationResponse = PutSiteIntegrationResponse;
|
|
2047
|
+
|
|
2048
|
+
// DELETE /centricos/sites/{siteId}/integration/{integration_type} - Disconnect an integration from the site
|
|
2049
|
+
|
|
2050
|
+
export interface DeleteCentricosSiteIntegrationPath {
|
|
2051
|
+
// ID of the site
|
|
2052
|
+
siteId: string;
|
|
2053
|
+
// Integration to disconnect
|
|
2054
|
+
integration_type:
|
|
2055
|
+
| 'thrive'
|
|
2056
|
+
| 'boost'
|
|
2057
|
+
| 'nextep'
|
|
2058
|
+
| 'volante'
|
|
2059
|
+
| 'agilysys'
|
|
2060
|
+
| 'mashgin'
|
|
2061
|
+
| 'centric_hub'
|
|
2062
|
+
| 'agilysys_dod'
|
|
2063
|
+
| 'grubhub'
|
|
2064
|
+
| 'ryst'
|
|
2065
|
+
| 'illumia'
|
|
2066
|
+
| 'amazon'
|
|
2067
|
+
| 'time2eat';
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
export type DeleteCentricosSiteIntegrationResponse = DeleteSiteIntegrationResponse;
|
|
2071
|
+
|
|
1853
2072
|
// GET /centricos/review/{orderId}/order-items - Get reviews for items in a given order in an array format
|
|
1854
2073
|
|
|
1855
2074
|
export interface GetReviewOrderItemsPath {
|
|
@@ -202,9 +202,29 @@ export const LiveDeliveryStatus = {
|
|
|
202
202
|
RETURNING: 'returning',
|
|
203
203
|
NO_SHOW: 'no_show',
|
|
204
204
|
CANCELLED: 'cancelled',
|
|
205
|
+
UNKNOWN: 'unknown',
|
|
205
206
|
} as const;
|
|
206
207
|
export type LiveDeliveryStatus = (typeof LiveDeliveryStatus)[keyof typeof LiveDeliveryStatus];
|
|
207
208
|
|
|
209
|
+
export const LiveDeliveryPartnerStatus = {
|
|
210
|
+
NEW: 'new',
|
|
211
|
+
ACCEPTED: 'accepted',
|
|
212
|
+
PICKUP: 'pickUp',
|
|
213
|
+
PICKUPTRANSACTION: 'pickUpTransaction',
|
|
214
|
+
TRANSPORTING: 'transporting',
|
|
215
|
+
DROPOFF: 'dropOff',
|
|
216
|
+
DROPOFFTRANSACTION: 'dropOffTransaction',
|
|
217
|
+
COMPLETED: 'completed',
|
|
218
|
+
RETURNTRANSPORTING: 'returnTransporting',
|
|
219
|
+
RETURNDROPOFF: 'returnDropOff',
|
|
220
|
+
RETURNTRANSACTION: 'returnTransaction',
|
|
221
|
+
RETURNCOMPLETED: 'returnCompleted',
|
|
222
|
+
CANCELED: 'canceled',
|
|
223
|
+
UNKNOWN: 'unknown',
|
|
224
|
+
} as const;
|
|
225
|
+
export type LiveDeliveryPartnerStatus =
|
|
226
|
+
(typeof LiveDeliveryPartnerStatus)[keyof typeof LiveDeliveryPartnerStatus];
|
|
227
|
+
|
|
208
228
|
export interface ConsumerDeliveryRobotPositionDTO {
|
|
209
229
|
// Latitude
|
|
210
230
|
lat: number;
|
|
@@ -221,10 +241,10 @@ export interface ConsumerDeliveryRobotDTO {
|
|
|
221
241
|
export interface LiveDeliveryDTO {
|
|
222
242
|
// Delivery provider
|
|
223
243
|
provider?: string;
|
|
224
|
-
// Guest-facing delivery status
|
|
244
|
+
// Guest-facing delivery status; unknown when the delivery service returns a value not listed here
|
|
225
245
|
status: LiveDeliveryStatus;
|
|
226
|
-
// Raw partner status from the delivery service (e.g. AVride dropOffTransaction = lid open)
|
|
227
|
-
partner_status?:
|
|
246
|
+
// Raw partner status from the delivery service (e.g. AVride dropOffTransaction = lid open); unknown when the value is not listed here
|
|
247
|
+
partner_status?: LiveDeliveryPartnerStatus;
|
|
228
248
|
// ETA timestamp for the current status, when applicable
|
|
229
249
|
eta_at?: string | null;
|
|
230
250
|
// When the robot reached drop-off
|