@compassdigital/sdk.typescript 4.93.0 → 4.94.1

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.
@@ -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
- // pos
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,12 @@ export interface Brand {
199
196
  software_integrations?: {
200
197
  system365?: string;
201
198
  jwo?: string;
199
+ time2eat?: {
200
+ enabled?: boolean;
201
+ };
202
+ nextep?: {
203
+ mobile_app?: boolean;
204
+ };
202
205
  };
203
206
  [index: string]: any;
204
207
  };
@@ -222,7 +225,6 @@ export interface Brand {
222
225
  export type Brands = Brand[];
223
226
 
224
227
  export interface Location {
225
- // location
226
228
  id?: string;
227
229
  operation_id?: number;
228
230
  name?: string;
@@ -238,11 +240,11 @@ export interface Location {
238
240
  brands?: Brand[];
239
241
  meta?: Record<string, any>;
240
242
  phone?: string;
241
- // group
243
+ // The CDL is representing the group of this location
242
244
  location_group?: string;
243
- // multigroup
245
+ // The CDL id representing the multigroup of this location
244
246
  location_multigroup?: string;
245
- // sector
247
+ // The CDL id representing the sector of this location
246
248
  sector?: string;
247
249
  date?: {
248
250
  deleted?: string;
@@ -260,6 +262,7 @@ export interface Location {
260
262
  };
261
263
  logo?: string;
262
264
  is?: {
265
+ enabled?: boolean;
263
266
  pickup_supported?: boolean;
264
267
  delivery_supported?: boolean;
265
268
  };
@@ -285,7 +288,6 @@ export interface Location {
285
288
  }
286
289
 
287
290
  export interface Group {
288
- // group
289
291
  id?: string;
290
292
  name?: string;
291
293
  label?: {
@@ -325,7 +327,6 @@ export interface Error {
325
327
  }
326
328
 
327
329
  export interface Sector {
328
- // sector
329
330
  id?: string;
330
331
  name?: string;
331
332
  label?: {
@@ -337,14 +338,13 @@ export interface Sector {
337
338
  }
338
339
 
339
340
  export interface Company {
340
- // company
341
341
  id?: string;
342
342
  name?: string;
343
343
  label?: {
344
344
  en?: string;
345
345
  fr?: string;
346
346
  };
347
- // sector
347
+ // The CDL id representing the sector of this company
348
348
  sector?: string;
349
349
  locations?: Location[];
350
350
  is?: {
@@ -379,7 +379,6 @@ export interface PostDeliveryDestination {
379
379
  }
380
380
 
381
381
  export interface DeliveryDestination {
382
- // delivery_destination
383
382
  id: string;
384
383
  // Name of the delivery destination
385
384
  name: string;
@@ -423,9 +422,9 @@ export interface MarketPlace {
423
422
  }
424
423
 
425
424
  export interface Station {
426
- // CDL id
425
+ // The CDL id representing the brand of the station object
427
426
  brand?: string;
428
- // CDL id
427
+ // The CDL id representing the menu of the station object
429
428
  menu?: string;
430
429
  [index: string]: any;
431
430
  }
@@ -457,26 +456,22 @@ export interface MenuAssociations {
457
456
  }
458
457
 
459
458
  export interface MenuAssociation {
460
- // CDL id
461
459
  id?: string;
462
- // CDL id
460
+ // The CDL id representing the brand of the menu association
463
461
  brand?: string;
464
- // CDL id
462
+ // The CDL id representing the menu of the menu association
465
463
  menu?: string;
466
- // CDL id
464
+ // The CDL id representing the group of the menu association
467
465
  group?: string;
468
466
  created?: string;
469
467
  [index: string]: any;
470
468
  }
471
469
 
472
470
  export interface WaitTimeResponse {
473
- // group
474
471
  id?: string;
475
472
  locations?: {
476
- // location
477
473
  id?: string;
478
474
  brands?: {
479
- // location
480
475
  id?: string;
481
476
  estimated_wait_time?: {
482
477
  delivery?: WaitTime;
@@ -525,6 +520,7 @@ export interface GetLocationPath {
525
520
  export interface GetLocationQuery {
526
521
  // When fetching location, brands will come with private and public configs
527
522
  include_brands_config?: boolean;
523
+ show_disabled_marketplace?: boolean;
528
524
  // active cafes
529
525
  active_cafes?: string[];
530
526
  // show additional hidden properties/entities
@@ -741,6 +737,7 @@ export interface GetLocationGroupPath {
741
737
 
742
738
  export interface GetLocationGroupQuery {
743
739
  latitude?: number;
740
+ show_disabled_marketplace?: boolean;
744
741
  longitude?: number;
745
742
  // When fetching a group, brands will come with private and public configs
746
743
  include_brands_config?: boolean;
@@ -1280,7 +1277,7 @@ export interface PatchLocationSectorRequest
1280
1277
  export interface PostLocationCompanyBody {
1281
1278
  // Sector name
1282
1279
  name: string;
1283
- // sector
1280
+ // The CDL id representing the sector this company belongs to
1284
1281
  sector: string;
1285
1282
  label?: Record<string, any>;
1286
1283
  is?: {