@compassdigital/sdk.typescript 4.785.0 → 4.787.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/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 +4 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/interface/location.ts +14 -8
- package/src/interface/menu.ts +4 -0
package/package.json
CHANGED
|
@@ -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
|
@@ -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;
|