@compassdigital/sdk.typescript 4.786.0 → 4.788.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.786.0",
3
+ "version": "4.788.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -1410,6 +1410,8 @@ import {
1410
1410
  UpsertDescriptionRecommendationResponse,
1411
1411
  PostCentricosBusinessUnitValidateVertexResponse,
1412
1412
  DeleteCentricosBusinessUnitResponse,
1413
+ PutCentricosBusinessUnitDropOffBody,
1414
+ PutCentricosBusinessUnitDropOffResponse,
1413
1415
  GetCentricosMenuGlobalMenuGroupsQuery,
1414
1416
  GetCentricosMenuGlobalMenuGroupsResponse,
1415
1417
  PostCentricosMenuBrandItemsSearchBody,
@@ -16488,6 +16490,28 @@ export class ServiceClient extends BaseServiceClient {
16488
16490
  );
16489
16491
  }
16490
16492
 
16493
+ /**
16494
+ * PUT /centricos/business-unit/{bu_id}/drop-off - Update shared drop-off settings for a business unit
16495
+ *
16496
+ * @param bu_id - TODO: cannot use CompassLongID as path parameter
16497
+ * @param body
16498
+ * @param options - additional request options
16499
+ */
16500
+ put_centricos_business_unit_drop_off(
16501
+ bu_id: string,
16502
+ body: PutCentricosBusinessUnitDropOffBody,
16503
+ options?: RequestOptions,
16504
+ ): ResponsePromise<PutCentricosBusinessUnitDropOffResponse> {
16505
+ return this.request(
16506
+ 'centricos',
16507
+ '/centricos/business-unit/{bu_id}/drop-off',
16508
+ 'PUT',
16509
+ `/centricos/business-unit/${bu_id}/drop-off`,
16510
+ body,
16511
+ options,
16512
+ );
16513
+ }
16514
+
16491
16515
  /**
16492
16516
  * GET /centricos/menu/global-menu-groups - Get a paginated list of global menu groups with filtering, sorting, and relationships
16493
16517
  *
@@ -1142,6 +1142,36 @@ export interface DeleteBusinessUnitResponse {
1142
1142
  success: boolean;
1143
1143
  }
1144
1144
 
1145
+ export interface BusinessUnitCustomTimeslotDto {
1146
+ // Window start, HH:mm on a 24 hour clock
1147
+ start_time: string;
1148
+ // Window end, HH:mm on a 24 hour clock
1149
+ end_time: string;
1150
+ // Delivery destination names served during this window
1151
+ destinations: string[];
1152
+ }
1153
+
1154
+ export interface PutBusinessUnitDropOffRequest {
1155
+ // How drop-off timeslots are generated for the business unit
1156
+ mode?: 'automatic' | 'custom';
1157
+ // Delivery destination names served all day. Replaces the stored list.
1158
+ destinations?: string[];
1159
+ // Caller-defined delivery windows. Replaces the stored list.
1160
+ custom_timeslots?: BusinessUnitCustomTimeslotDto[];
1161
+ // Whether guests see a single timeslot instead of a list
1162
+ show_single_timeslot?: boolean;
1163
+ // Whether guests can leave drop-off instructions
1164
+ show_instructions?: boolean;
1165
+ // Whether the runner app is enabled for the business unit
1166
+ runner_app_enabled?: boolean;
1167
+ // Delivery fee in dollars. Send null to remove it; omit to leave it as is.
1168
+ fee?: number | null;
1169
+ }
1170
+
1171
+ export interface PutBusinessUnitDropOffResponse {
1172
+ success: boolean;
1173
+ }
1174
+
1145
1175
  export interface GlobalMenuGroupPublishedBrand {
1146
1176
  id: string;
1147
1177
  name: string;
@@ -1842,6 +1872,17 @@ export interface DeleteCentricosBusinessUnitPath {
1842
1872
 
1843
1873
  export type DeleteCentricosBusinessUnitResponse = DeleteBusinessUnitResponse;
1844
1874
 
1875
+ // PUT /centricos/business-unit/{bu_id}/drop-off - Update shared drop-off settings for a business unit
1876
+
1877
+ export interface PutCentricosBusinessUnitDropOffPath {
1878
+ // TODO: cannot use CompassLongID as path parameter
1879
+ bu_id: string;
1880
+ }
1881
+
1882
+ export type PutCentricosBusinessUnitDropOffBody = PutBusinessUnitDropOffRequest;
1883
+
1884
+ export type PutCentricosBusinessUnitDropOffResponse = PutBusinessUnitDropOffResponse;
1885
+
1845
1886
  // GET /centricos/menu/global-menu-groups - Get a paginated list of global menu groups with filtering, sorting, and relationships
1846
1887
 
1847
1888
  export interface GetCentricosMenuGlobalMenuGroupsQuery {
@@ -1207,6 +1207,8 @@ export interface StockDTO {
1207
1207
  updated_at?: string;
1208
1208
  deleted_at?: string;
1209
1209
  business_unit_id?: string;
1210
+ stock_updated_at?: string;
1211
+ stock_updated_by?: string;
1210
1212
  version?: number;
1211
1213
  menu?: DraftMenuDTO;
1212
1214
  brand?: DraftBrandDTO;
@@ -11172,6 +11174,8 @@ export interface PatchMenuV4StockResponse {
11172
11174
  updated_at?: string;
11173
11175
  deleted_at?: string;
11174
11176
  business_unit_id?: string;
11177
+ stock_updated_at?: string;
11178
+ stock_updated_by?: string;
11175
11179
  version?: number;
11176
11180
  menu?: DraftMenuDTO;
11177
11181
  brand?: DraftBrandDTO;