@compassdigital/sdk.typescript 4.784.0 → 4.786.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 +1 -15
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -18
- package/lib/index.js.map +1 -1
- package/lib/interface/location.d.ts +12 -8
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/location.js.map +1 -1
- package/lib/interface/menu.d.ts +0 -20
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -44
- package/src/interface/location.ts +14 -8
- package/src/interface/menu.ts +0 -30
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1065,10 +1065,6 @@ import {
|
|
|
1065
1065
|
PatchMenuV4StockBusinessUnitResponse,
|
|
1066
1066
|
PatchMenuV4StockBody,
|
|
1067
1067
|
PatchMenuV4StockResponse,
|
|
1068
|
-
PostMenuV4StockMenuBusinessUnitBody,
|
|
1069
|
-
PostMenuV4StockMenuBusinessUnitResponse,
|
|
1070
|
-
DeleteMenuV4StockMenuBusinessUnitBody,
|
|
1071
|
-
DeleteMenuV4StockMenuBusinessUnitResponse,
|
|
1072
1068
|
GetMenuV4StockBusinessUnitQuery,
|
|
1073
1069
|
GetMenuV4StockBusinessUnitResponse,
|
|
1074
1070
|
GetMenuV4StockBusinessUnitUnpublishedChangesQuery,
|
|
@@ -12616,46 +12612,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
12616
12612
|
);
|
|
12617
12613
|
}
|
|
12618
12614
|
|
|
12619
|
-
/**
|
|
12620
|
-
* POST /menu/v4/stock/menu-business-unit
|
|
12621
|
-
*
|
|
12622
|
-
* @param body
|
|
12623
|
-
* @param options - additional request options
|
|
12624
|
-
*/
|
|
12625
|
-
post_menu_v4_stock_menu_business_unit(
|
|
12626
|
-
body: PostMenuV4StockMenuBusinessUnitBody,
|
|
12627
|
-
options?: RequestOptions,
|
|
12628
|
-
): ResponsePromise<PostMenuV4StockMenuBusinessUnitResponse> {
|
|
12629
|
-
return this.request(
|
|
12630
|
-
'menu',
|
|
12631
|
-
'/menu/v4/stock/menu-business-unit',
|
|
12632
|
-
'POST',
|
|
12633
|
-
`/menu/v4/stock/menu-business-unit`,
|
|
12634
|
-
body,
|
|
12635
|
-
options,
|
|
12636
|
-
);
|
|
12637
|
-
}
|
|
12638
|
-
|
|
12639
|
-
/**
|
|
12640
|
-
* DELETE /menu/v4/stock/menu-business-unit
|
|
12641
|
-
*
|
|
12642
|
-
* @param body
|
|
12643
|
-
* @param options - additional request options
|
|
12644
|
-
*/
|
|
12645
|
-
delete_menu_v4_stock_menu_business_unit(
|
|
12646
|
-
body: DeleteMenuV4StockMenuBusinessUnitBody,
|
|
12647
|
-
options?: RequestOptions,
|
|
12648
|
-
): ResponsePromise<DeleteMenuV4StockMenuBusinessUnitResponse> {
|
|
12649
|
-
return this.request(
|
|
12650
|
-
'menu',
|
|
12651
|
-
'/menu/v4/stock/menu-business-unit',
|
|
12652
|
-
'DELETE',
|
|
12653
|
-
`/menu/v4/stock/menu-business-unit`,
|
|
12654
|
-
body,
|
|
12655
|
-
options,
|
|
12656
|
-
);
|
|
12657
|
-
}
|
|
12658
|
-
|
|
12659
12615
|
/**
|
|
12660
12616
|
* GET /menu/v4/stock/business-unit/{business_unit_id}
|
|
12661
12617
|
*
|
|
@@ -40,6 +40,18 @@ export interface DeliveryHours {
|
|
|
40
40
|
hours?: string;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
export interface UserDefinedDeliveryTimeslotSettings {
|
|
44
|
+
start_time: string;
|
|
45
|
+
end_time: string;
|
|
46
|
+
delivery_destinations?: string[];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface SharedDropOffTimeslotsSettings {
|
|
50
|
+
delivery_is_user_defined?: boolean;
|
|
51
|
+
delivery_destinations?: string[];
|
|
52
|
+
delivery_user_defined?: UserDefinedDeliveryTimeslotSettings[];
|
|
53
|
+
}
|
|
54
|
+
|
|
43
55
|
export interface Timeslot {
|
|
44
56
|
// timeslot id (optional)
|
|
45
57
|
id?: number;
|
|
@@ -177,7 +189,7 @@ export interface Brand {
|
|
|
177
189
|
vendor?: string;
|
|
178
190
|
}[]
|
|
179
191
|
>;
|
|
180
|
-
timeslots?: {
|
|
192
|
+
timeslots?: SharedDropOffTimeslotsSettings & {
|
|
181
193
|
time?: string;
|
|
182
194
|
averagePrepTime?: string;
|
|
183
195
|
duration_minutes?: number;
|
|
@@ -187,14 +199,7 @@ export interface Brand {
|
|
|
187
199
|
delivery_customers_per_slot?: number;
|
|
188
200
|
delivery_menu_items_per_slot?: number;
|
|
189
201
|
delivery_prep_time?: string;
|
|
190
|
-
delivery_is_user_defined?: boolean;
|
|
191
|
-
delivery_destinations?: string[];
|
|
192
202
|
loading_area?: string;
|
|
193
|
-
delivery_user_defined?: {
|
|
194
|
-
start_time: string;
|
|
195
|
-
end_time: string;
|
|
196
|
-
delivery_destinations?: string[];
|
|
197
|
-
}[];
|
|
198
203
|
};
|
|
199
204
|
is?: {
|
|
200
205
|
pickup_supported?: boolean;
|
|
@@ -317,6 +322,7 @@ export interface Location {
|
|
|
317
322
|
// The CDL id representing the sector of this location
|
|
318
323
|
sector?: string;
|
|
319
324
|
date?: DateInfo;
|
|
325
|
+
timeslots?: SharedDropOffTimeslotsSettings;
|
|
320
326
|
market_place?: {
|
|
321
327
|
label?: {
|
|
322
328
|
en?: string;
|
package/src/interface/menu.ts
CHANGED
|
@@ -11183,36 +11183,6 @@ export interface PatchMenuV4StockRequest extends BaseRequest, PatchMenuV4StockPa
|
|
|
11183
11183
|
body: PatchMenuV4StockBody;
|
|
11184
11184
|
}
|
|
11185
11185
|
|
|
11186
|
-
// POST /menu/v4/stock/menu-business-unit
|
|
11187
|
-
|
|
11188
|
-
export interface PostMenuV4StockMenuBusinessUnitBody {
|
|
11189
|
-
menu_id?: string;
|
|
11190
|
-
business_unit_id?: string;
|
|
11191
|
-
}
|
|
11192
|
-
|
|
11193
|
-
export interface PostMenuV4StockMenuBusinessUnitResponse {
|
|
11194
|
-
status?: string;
|
|
11195
|
-
}
|
|
11196
|
-
|
|
11197
|
-
export interface PostMenuV4StockMenuBusinessUnitRequest extends BaseRequest {
|
|
11198
|
-
body: PostMenuV4StockMenuBusinessUnitBody;
|
|
11199
|
-
}
|
|
11200
|
-
|
|
11201
|
-
// DELETE /menu/v4/stock/menu-business-unit
|
|
11202
|
-
|
|
11203
|
-
export interface DeleteMenuV4StockMenuBusinessUnitBody {
|
|
11204
|
-
menu_id?: string;
|
|
11205
|
-
business_unit_id?: string;
|
|
11206
|
-
}
|
|
11207
|
-
|
|
11208
|
-
export interface DeleteMenuV4StockMenuBusinessUnitResponse {
|
|
11209
|
-
status?: string;
|
|
11210
|
-
}
|
|
11211
|
-
|
|
11212
|
-
export interface DeleteMenuV4StockMenuBusinessUnitRequest extends BaseRequest {
|
|
11213
|
-
body: DeleteMenuV4StockMenuBusinessUnitBody;
|
|
11214
|
-
}
|
|
11215
|
-
|
|
11216
11186
|
// GET /menu/v4/stock/business-unit/{business_unit_id}
|
|
11217
11187
|
|
|
11218
11188
|
export interface GetMenuV4StockBusinessUnitPath {
|