@compassdigital/sdk.typescript 4.92.0 → 4.94.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 +182 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +211 -1
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +25 -10
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/location.d.ts +7 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +1090 -7
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +3 -1
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +1 -0
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/user.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +500 -1
- package/src/interface/announcement.ts +40 -11
- package/src/interface/calendar.ts +0 -2
- package/src/interface/location.ts +24 -29
- package/src/interface/menu.ts +1271 -7
- package/src/interface/order.ts +5 -4
- package/src/interface/partner.ts +1 -0
- package/src/interface/user.ts +5 -11
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import { RequestQuery, BaseRequest } from './util';
|
|
5
5
|
|
|
6
6
|
export interface MenuHours {
|
|
7
|
-
// menu
|
|
8
7
|
id?: string;
|
|
9
8
|
label?: {
|
|
10
9
|
en?: string;
|
|
@@ -18,7 +17,6 @@ export interface MenuHours {
|
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
export interface Hours {
|
|
21
|
-
// hours
|
|
22
20
|
id?: string;
|
|
23
21
|
date?: {
|
|
24
22
|
deleted?: string;
|
|
@@ -33,7 +31,6 @@ export interface Hours {
|
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
export interface DeliveryHours {
|
|
36
|
-
// hours
|
|
37
34
|
id?: string;
|
|
38
35
|
day?: {
|
|
39
36
|
start?: number;
|
|
@@ -45,7 +42,7 @@ export interface DeliveryHours {
|
|
|
45
42
|
export interface Timeslot {
|
|
46
43
|
// timeslot id (optional)
|
|
47
44
|
id?: number;
|
|
48
|
-
// brand
|
|
45
|
+
// The CDL id representing the brand this timeslot belongs to
|
|
49
46
|
brand_id?: string;
|
|
50
47
|
start_time?: string;
|
|
51
48
|
duration?: string;
|
|
@@ -77,7 +74,7 @@ export interface Address {
|
|
|
77
74
|
export interface Brand {
|
|
78
75
|
// brand
|
|
79
76
|
id?: string;
|
|
80
|
-
// sector
|
|
77
|
+
// The CDL id representing the sector this brand belongs to
|
|
81
78
|
sector?: string;
|
|
82
79
|
name?: string;
|
|
83
80
|
label?: {
|
|
@@ -103,7 +100,7 @@ export interface Brand {
|
|
|
103
100
|
main_logo?: string | null;
|
|
104
101
|
alt_logo?: string | null;
|
|
105
102
|
};
|
|
106
|
-
//
|
|
103
|
+
// The CDL id representing the PoS for this brand
|
|
107
104
|
pos?: string;
|
|
108
105
|
terminals?: Record<string, any>[];
|
|
109
106
|
device_mapping?: Record<
|
|
@@ -149,17 +146,17 @@ export interface Brand {
|
|
|
149
146
|
dining_hall?: boolean;
|
|
150
147
|
[index: string]: any;
|
|
151
148
|
};
|
|
152
|
-
// brand
|
|
149
|
+
// The CDL id representing the brand
|
|
153
150
|
brand?: string;
|
|
154
|
-
// location
|
|
151
|
+
// The CDL id representing the location of this brand
|
|
155
152
|
location?: string;
|
|
156
153
|
// location group
|
|
157
154
|
group?: string;
|
|
158
|
-
// payment
|
|
155
|
+
// The CDL id representing the payment provider of this brand
|
|
159
156
|
payment_provider?: string;
|
|
160
157
|
//@deprecated
|
|
161
158
|
location_description?: string;
|
|
162
|
-
// company
|
|
159
|
+
// The CDL id representing the company of this brand
|
|
163
160
|
company?: string;
|
|
164
161
|
config?: {
|
|
165
162
|
private?: Record<string, any>;
|
|
@@ -199,6 +196,10 @@ export interface Brand {
|
|
|
199
196
|
software_integrations?: {
|
|
200
197
|
system365?: string;
|
|
201
198
|
jwo?: string;
|
|
199
|
+
nextep?: {
|
|
200
|
+
mobile_app?: boolean;
|
|
201
|
+
};
|
|
202
|
+
time2eat?: string;
|
|
202
203
|
};
|
|
203
204
|
[index: string]: any;
|
|
204
205
|
};
|
|
@@ -222,7 +223,6 @@ export interface Brand {
|
|
|
222
223
|
export type Brands = Brand[];
|
|
223
224
|
|
|
224
225
|
export interface Location {
|
|
225
|
-
// location
|
|
226
226
|
id?: string;
|
|
227
227
|
operation_id?: number;
|
|
228
228
|
name?: string;
|
|
@@ -238,11 +238,11 @@ export interface Location {
|
|
|
238
238
|
brands?: Brand[];
|
|
239
239
|
meta?: Record<string, any>;
|
|
240
240
|
phone?: string;
|
|
241
|
-
// group
|
|
241
|
+
// The CDL is representing the group of this location
|
|
242
242
|
location_group?: string;
|
|
243
|
-
// multigroup
|
|
243
|
+
// The CDL id representing the multigroup of this location
|
|
244
244
|
location_multigroup?: string;
|
|
245
|
-
// sector
|
|
245
|
+
// The CDL id representing the sector of this location
|
|
246
246
|
sector?: string;
|
|
247
247
|
date?: {
|
|
248
248
|
deleted?: string;
|
|
@@ -260,6 +260,7 @@ export interface Location {
|
|
|
260
260
|
};
|
|
261
261
|
logo?: string;
|
|
262
262
|
is?: {
|
|
263
|
+
enabled?: boolean;
|
|
263
264
|
pickup_supported?: boolean;
|
|
264
265
|
delivery_supported?: boolean;
|
|
265
266
|
};
|
|
@@ -285,7 +286,6 @@ export interface Location {
|
|
|
285
286
|
}
|
|
286
287
|
|
|
287
288
|
export interface Group {
|
|
288
|
-
// group
|
|
289
289
|
id?: string;
|
|
290
290
|
name?: string;
|
|
291
291
|
label?: {
|
|
@@ -325,7 +325,6 @@ export interface Error {
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
export interface Sector {
|
|
328
|
-
// sector
|
|
329
328
|
id?: string;
|
|
330
329
|
name?: string;
|
|
331
330
|
label?: {
|
|
@@ -337,14 +336,13 @@ export interface Sector {
|
|
|
337
336
|
}
|
|
338
337
|
|
|
339
338
|
export interface Company {
|
|
340
|
-
// company
|
|
341
339
|
id?: string;
|
|
342
340
|
name?: string;
|
|
343
341
|
label?: {
|
|
344
342
|
en?: string;
|
|
345
343
|
fr?: string;
|
|
346
344
|
};
|
|
347
|
-
// sector
|
|
345
|
+
// The CDL id representing the sector of this company
|
|
348
346
|
sector?: string;
|
|
349
347
|
locations?: Location[];
|
|
350
348
|
is?: {
|
|
@@ -379,7 +377,6 @@ export interface PostDeliveryDestination {
|
|
|
379
377
|
}
|
|
380
378
|
|
|
381
379
|
export interface DeliveryDestination {
|
|
382
|
-
// delivery_destination
|
|
383
380
|
id: string;
|
|
384
381
|
// Name of the delivery destination
|
|
385
382
|
name: string;
|
|
@@ -423,9 +420,9 @@ export interface MarketPlace {
|
|
|
423
420
|
}
|
|
424
421
|
|
|
425
422
|
export interface Station {
|
|
426
|
-
// CDL id
|
|
423
|
+
// The CDL id representing the brand of the station object
|
|
427
424
|
brand?: string;
|
|
428
|
-
// CDL id
|
|
425
|
+
// The CDL id representing the menu of the station object
|
|
429
426
|
menu?: string;
|
|
430
427
|
[index: string]: any;
|
|
431
428
|
}
|
|
@@ -457,26 +454,22 @@ export interface MenuAssociations {
|
|
|
457
454
|
}
|
|
458
455
|
|
|
459
456
|
export interface MenuAssociation {
|
|
460
|
-
// CDL id
|
|
461
457
|
id?: string;
|
|
462
|
-
// CDL id
|
|
458
|
+
// The CDL id representing the brand of the menu association
|
|
463
459
|
brand?: string;
|
|
464
|
-
// CDL id
|
|
460
|
+
// The CDL id representing the menu of the menu association
|
|
465
461
|
menu?: string;
|
|
466
|
-
// CDL id
|
|
462
|
+
// The CDL id representing the group of the menu association
|
|
467
463
|
group?: string;
|
|
468
464
|
created?: string;
|
|
469
465
|
[index: string]: any;
|
|
470
466
|
}
|
|
471
467
|
|
|
472
468
|
export interface WaitTimeResponse {
|
|
473
|
-
// group
|
|
474
469
|
id?: string;
|
|
475
470
|
locations?: {
|
|
476
|
-
// location
|
|
477
471
|
id?: string;
|
|
478
472
|
brands?: {
|
|
479
|
-
// location
|
|
480
473
|
id?: string;
|
|
481
474
|
estimated_wait_time?: {
|
|
482
475
|
delivery?: WaitTime;
|
|
@@ -525,6 +518,7 @@ export interface GetLocationPath {
|
|
|
525
518
|
export interface GetLocationQuery {
|
|
526
519
|
// When fetching location, brands will come with private and public configs
|
|
527
520
|
include_brands_config?: boolean;
|
|
521
|
+
show_disabled_marketplace?: boolean;
|
|
528
522
|
// active cafes
|
|
529
523
|
active_cafes?: string[];
|
|
530
524
|
// show additional hidden properties/entities
|
|
@@ -741,6 +735,7 @@ export interface GetLocationGroupPath {
|
|
|
741
735
|
|
|
742
736
|
export interface GetLocationGroupQuery {
|
|
743
737
|
latitude?: number;
|
|
738
|
+
show_disabled_marketplace?: boolean;
|
|
744
739
|
longitude?: number;
|
|
745
740
|
// When fetching a group, brands will come with private and public configs
|
|
746
741
|
include_brands_config?: boolean;
|
|
@@ -1280,7 +1275,7 @@ export interface PatchLocationSectorRequest
|
|
|
1280
1275
|
export interface PostLocationCompanyBody {
|
|
1281
1276
|
// Sector name
|
|
1282
1277
|
name: string;
|
|
1283
|
-
// sector
|
|
1278
|
+
// The CDL id representing the sector this company belongs to
|
|
1284
1279
|
sector: string;
|
|
1285
1280
|
label?: Record<string, any>;
|
|
1286
1281
|
is?: {
|