@compassdigital/sdk.typescript 4.936.0 → 4.938.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.
@@ -5,6 +5,13 @@ export interface CreateProductionSheetDto {
5
5
  responseId?: string;
6
6
  autoGenerated?: boolean;
7
7
  }
8
+ export interface SheetPlanDto {
9
+ planned_amount: number;
10
+ suggested_amount: number | null;
11
+ source: ('typed' | 'accepted') | null;
12
+ updated_by: string;
13
+ updated_at: string;
14
+ }
8
15
  export interface ProductionSheetItemDto {
9
16
  item_name: string;
10
17
  pos_id: string;
@@ -20,6 +27,7 @@ export interface ProductionSheetItemDto {
20
27
  description?: string;
21
28
  accuracy?: ('good' | 'low' | 'pending' | 'error') | null;
22
29
  accuracy_flags?: string[] | null;
30
+ plan?: SheetPlanDto;
23
31
  }
24
32
  export interface ProductionSheetModifierDto {
25
33
  modifier_name: string;
@@ -62,10 +70,29 @@ export interface ProductionSheetFacetsDto {
62
70
  brands: ProductionSheetBrandFacetDto[];
63
71
  menus: ProductionSheetMenuFacetDto[];
64
72
  }
73
+ export interface PlanDto {
74
+ brand_id?: string;
75
+ menu_id?: string;
76
+ menu_item_id?: string;
77
+ pos_id: string;
78
+ item_name: string;
79
+ site_id: string;
80
+ date: string;
81
+ planned_amount: number;
82
+ suggested_amount: number | null;
83
+ source: ('typed' | 'accepted') | null;
84
+ updated_by: string;
85
+ updated_at: string;
86
+ }
87
+ export interface ProductionSheetPlansDto {
88
+ orphaned: PlanDto[];
89
+ unavailable: boolean;
90
+ }
65
91
  export interface ProductionSheetPaginatedResponseDto {
66
92
  meta: ProductionSheetPaginatedMetaDto;
67
93
  results: ProductionSheetPaginatedResultsDto;
68
94
  facets: ProductionSheetFacetsDto;
95
+ plans: ProductionSheetPlansDto;
69
96
  }
70
97
  export interface ProductionSheetItemForecastDiffDto {
71
98
  item_name: string;
@@ -89,6 +116,57 @@ export interface ItemDiffOnSaveRequestDto {
89
116
  export interface ItemForecastDiffResponse {
90
117
  data: string;
91
118
  }
119
+ export interface PlanInputDto {
120
+ brand_id?: string;
121
+ menu_id?: string;
122
+ menu_item_id?: string;
123
+ pos_id: string;
124
+ item_name: string;
125
+ planned_amount: number;
126
+ suggested_amount?: number | null;
127
+ source: 'typed' | 'accepted';
128
+ expected_updated_at?: string | null;
129
+ }
130
+ export interface PutPlansRequestDto {
131
+ siteId: string;
132
+ date: string;
133
+ items: PlanInputDto[];
134
+ }
135
+ export interface PutPlansResponseDto {
136
+ plans: PlanDto[];
137
+ }
138
+ export interface PlanConflictDto {
139
+ brand_id?: string;
140
+ menu_id?: string;
141
+ menu_item_id?: string;
142
+ pos_id: string;
143
+ item_name: string;
144
+ current: PlanDto;
145
+ }
146
+ export interface PlansConflictDataDto {
147
+ saved: PlanDto[];
148
+ conflicts: PlanConflictDto[];
149
+ }
150
+ export interface PlansConflictResponseDto {
151
+ message: string;
152
+ data: PlansConflictDataDto;
153
+ }
154
+ export interface PlanItemKeyDto {
155
+ brand_id?: string;
156
+ menu_id?: string;
157
+ menu_item_id?: string;
158
+ pos_id: string;
159
+ item_name: string;
160
+ }
161
+ export interface PlansFailedDataDto {
162
+ saved: PlanDto[];
163
+ conflicts: PlanConflictDto[];
164
+ failed: PlanItemKeyDto[];
165
+ }
166
+ export interface PlansFailedResponseDto {
167
+ message: string;
168
+ data: PlansFailedDataDto;
169
+ }
92
170
  export interface ChatItemDto {
93
171
  name: string;
94
172
  posid: string;
@@ -140,7 +218,7 @@ export interface GetForecastingProductionSheetQuery {
140
218
  includeBarcodeItems?: boolean;
141
219
  responseId?: string;
142
220
  nocache?: boolean;
143
- sortBy?: 'item_name' | 'last_week_amount' | 'forecasted_amount' | 'actual_amount' | 'on_hand' | 'total_to_produce';
221
+ sortBy?: 'item_name' | 'last_week_amount' | 'forecasted_amount' | 'actual_amount' | 'on_hand' | 'total_to_produce' | 'planned_amount';
144
222
  sortOrder?: 'asc' | 'desc';
145
223
  }
146
224
  export type GetForecastingProductionSheetResponse = ProductionSheetPaginatedResponseDto;
@@ -156,6 +234,8 @@ export interface GetForecastingForecastMetadataQuery {
156
234
  }
157
235
  export type GetForecastingForecastMetadataResponse = {};
158
236
  export type GetForecastingPingResponse = {};
237
+ export type PutForecastingPlansBody = PutPlansRequestDto;
238
+ export type PutForecastingPlansResponse = PutPlansResponseDto;
159
239
  export type PostForecastingChatBody = ChatMessageDto;
160
240
  export type PostForecastingChatResponse = {};
161
241
  export type PostForecastingChatFeedbackBody = ChatFeedbackDto;
@@ -1 +1 @@
1
- {"version":3,"file":"forecasting.d.ts","sourceRoot":"","sources":["../../src/interface/forecasting.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,wBAAwB;IAExC,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC;IAEzD,cAAc,CAAC,EAAE,MAAM,E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GAAG,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.936.0",
3
+ "version": "4.938.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
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,
@@ -1683,6 +1692,8 @@ import {
1683
1692
  GetForecastingForecastMetadataQuery,
1684
1693
  GetForecastingForecastMetadataResponse,
1685
1694
  GetForecastingPingResponse,
1695
+ PutForecastingPlansBody,
1696
+ PutForecastingPlansResponse,
1686
1697
  PostForecastingChatBody,
1687
1698
  PostForecastingChatResponse,
1688
1699
  PostForecastingChatFeedbackBody,
@@ -16714,6 +16725,159 @@ export class ServiceClient extends BaseServiceClient {
16714
16725
  );
16715
16726
  }
16716
16727
 
16728
+ /**
16729
+ * GET /centricos/sites/{siteId}/integrations - Get the integrations Edge supports and whether each is connected to the site
16730
+ *
16731
+ * @param siteId - ID of the site
16732
+ * @param options - additional request options
16733
+ */
16734
+ get_centricos_site_integrations(
16735
+ siteId: string,
16736
+ options?: RequestOptions,
16737
+ ): ResponsePromise<GetCentricosSiteIntegrationsResponse> {
16738
+ return this.request(
16739
+ 'centricos',
16740
+ '/centricos/sites/{siteId}/integrations',
16741
+ 'GET',
16742
+ `/centricos/sites/${siteId}/integrations`,
16743
+ null,
16744
+ options,
16745
+ );
16746
+ }
16747
+
16748
+ /**
16749
+ * PUT /centricos/sites/{siteId}/integration/thrive - Connect Thrive to the site and save its settings
16750
+ *
16751
+ * @param siteId - ID of the site
16752
+ * @param body
16753
+ * @param options - additional request options
16754
+ */
16755
+ put_centricos_site_thrive_integration(
16756
+ siteId: string,
16757
+ body: PutCentricosSiteThriveIntegrationBody,
16758
+ options?: RequestOptions,
16759
+ ): ResponsePromise<PutCentricosSiteThriveIntegrationResponse> {
16760
+ return this.request(
16761
+ 'centricos',
16762
+ '/centricos/sites/{siteId}/integration/thrive',
16763
+ 'PUT',
16764
+ `/centricos/sites/${siteId}/integration/thrive`,
16765
+ body,
16766
+ options,
16767
+ );
16768
+ }
16769
+
16770
+ /**
16771
+ * PUT /centricos/sites/{siteId}/integration/boost - Connect Boost to the site and save its settings
16772
+ *
16773
+ * @param siteId - ID of the site
16774
+ * @param body
16775
+ * @param options - additional request options
16776
+ */
16777
+ put_centricos_site_boost_integration(
16778
+ siteId: string,
16779
+ body: PutCentricosSiteBoostIntegrationBody,
16780
+ options?: RequestOptions,
16781
+ ): ResponsePromise<PutCentricosSiteBoostIntegrationResponse> {
16782
+ return this.request(
16783
+ 'centricos',
16784
+ '/centricos/sites/{siteId}/integration/boost',
16785
+ 'PUT',
16786
+ `/centricos/sites/${siteId}/integration/boost`,
16787
+ body,
16788
+ options,
16789
+ );
16790
+ }
16791
+
16792
+ /**
16793
+ * PUT /centricos/sites/{siteId}/integration/agilysys - Connect Agilysys to the site and save its settings
16794
+ *
16795
+ * @param siteId - ID of the site
16796
+ * @param body
16797
+ * @param options - additional request options
16798
+ */
16799
+ put_centricos_site_agilysys_integration(
16800
+ siteId: string,
16801
+ body: PutCentricosSiteAgilysysIntegrationBody,
16802
+ options?: RequestOptions,
16803
+ ): ResponsePromise<PutCentricosSiteAgilysysIntegrationResponse> {
16804
+ return this.request(
16805
+ 'centricos',
16806
+ '/centricos/sites/{siteId}/integration/agilysys',
16807
+ 'PUT',
16808
+ `/centricos/sites/${siteId}/integration/agilysys`,
16809
+ body,
16810
+ options,
16811
+ );
16812
+ }
16813
+
16814
+ /**
16815
+ * PUT /centricos/sites/{siteId}/integration/{integration_type} - Connect an integration that has no site settings to the site
16816
+ *
16817
+ * @param siteId - ID of the site
16818
+ * @param integration_type - Integration to connect. Thrive, Boost and Agilysys have their own routes, because they take site settings.
16819
+ * @param options - additional request options
16820
+ */
16821
+ put_centricos_site_integration(
16822
+ siteId: string,
16823
+ integration_type:
16824
+ | 'nextep'
16825
+ | 'volante'
16826
+ | 'mashgin'
16827
+ | 'centric_hub'
16828
+ | 'agilysys_dod'
16829
+ | 'grubhub'
16830
+ | 'ryst'
16831
+ | 'illumia'
16832
+ | 'amazon'
16833
+ | 'time2eat',
16834
+ options?: RequestOptions,
16835
+ ): ResponsePromise<PutCentricosSiteIntegrationResponse> {
16836
+ return this.request(
16837
+ 'centricos',
16838
+ '/centricos/sites/{siteId}/integration/{integration_type}',
16839
+ 'PUT',
16840
+ `/centricos/sites/${siteId}/integration/${integration_type}`,
16841
+ null,
16842
+ options,
16843
+ );
16844
+ }
16845
+
16846
+ /**
16847
+ * DELETE /centricos/sites/{siteId}/integration/{integration_type} - Disconnect an integration from the site
16848
+ *
16849
+ * @param siteId - ID of the site
16850
+ * @param integration_type - Integration to disconnect
16851
+ * @param options - additional request options
16852
+ */
16853
+ delete_centricos_site_integration(
16854
+ siteId: string,
16855
+ integration_type:
16856
+ | 'thrive'
16857
+ | 'boost'
16858
+ | 'nextep'
16859
+ | 'volante'
16860
+ | 'agilysys'
16861
+ | 'mashgin'
16862
+ | 'centric_hub'
16863
+ | 'agilysys_dod'
16864
+ | 'grubhub'
16865
+ | 'ryst'
16866
+ | 'illumia'
16867
+ | 'amazon'
16868
+ | 'time2eat',
16869
+ options?: RequestOptions,
16870
+ ): ResponsePromise<DeleteCentricosSiteIntegrationResponse> {
16871
+ return this.request(
16872
+ 'centricos',
16873
+ '/centricos/sites/{siteId}/integration/{integration_type}',
16874
+ 'DELETE',
16875
+ `/centricos/sites/${siteId}/integration/${integration_type}`,
16876
+ null,
16877
+ options,
16878
+ );
16879
+ }
16880
+
16717
16881
  /**
16718
16882
  * GET /centricos/review/{orderId}/order-items - Get reviews for items in a given order in an array format
16719
16883
  *
@@ -19465,6 +19629,26 @@ export class ServiceClient extends BaseServiceClient {
19465
19629
  );
19466
19630
  }
19467
19631
 
19632
+ /**
19633
+ * PUT /forecasting/plans - Save planned amounts for production sheet rows
19634
+ *
19635
+ * @param body
19636
+ * @param options - additional request options
19637
+ */
19638
+ put_forecasting_plans(
19639
+ body: PutForecastingPlansBody,
19640
+ options?: RequestOptions,
19641
+ ): ResponsePromise<PutForecastingPlansResponse> {
19642
+ return this.request(
19643
+ 'forecasting',
19644
+ '/forecasting/plans',
19645
+ 'PUT',
19646
+ `/forecasting/plans`,
19647
+ body,
19648
+ options,
19649
+ );
19650
+ }
19651
+
19468
19652
  /**
19469
19653
  * POST /forecasting/chat - Relay a user chat message to Luna
19470
19654
  *
@@ -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?: string | null;
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