@compassdigital/sdk.typescript 4.326.0 → 4.327.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.
Files changed (62) hide show
  1. package/lib/messages/events/LocationBrandCreatedEvent.d.ts +211 -209
  2. package/lib/messages/events/LocationBrandCreatedEvent.d.ts.map +1 -1
  3. package/lib/messages/events/LocationBrandUpdatedEvent.d.ts +211 -209
  4. package/lib/messages/events/LocationBrandUpdatedEvent.d.ts.map +1 -1
  5. package/lib/messages/events/LocationCompanyCreatedEvent.d.ts +304 -0
  6. package/lib/messages/events/LocationCompanyCreatedEvent.d.ts.map +1 -0
  7. package/lib/messages/events/LocationCompanyCreatedEvent.js +4 -0
  8. package/lib/messages/events/LocationCompanyCreatedEvent.js.map +1 -0
  9. package/lib/messages/events/LocationCompanyUpdatedEvent.d.ts +304 -0
  10. package/lib/messages/events/LocationCompanyUpdatedEvent.d.ts.map +1 -0
  11. package/lib/messages/events/LocationCompanyUpdatedEvent.js +4 -0
  12. package/lib/messages/events/LocationCompanyUpdatedEvent.js.map +1 -0
  13. package/lib/messages/events/LocationCreatedEvent.d.ts +260 -66
  14. package/lib/messages/events/LocationCreatedEvent.d.ts.map +1 -1
  15. package/lib/messages/events/LocationDeliveryDestinationCreatedEvent.d.ts +34 -0
  16. package/lib/messages/events/LocationDeliveryDestinationCreatedEvent.d.ts.map +1 -0
  17. package/lib/messages/events/LocationDeliveryDestinationCreatedEvent.js +4 -0
  18. package/lib/messages/events/LocationDeliveryDestinationCreatedEvent.js.map +1 -0
  19. package/lib/messages/events/LocationDeliveryDestinationUpdatedEvent.d.ts +34 -0
  20. package/lib/messages/events/LocationDeliveryDestinationUpdatedEvent.d.ts.map +1 -0
  21. package/lib/messages/events/LocationDeliveryDestinationUpdatedEvent.js +4 -0
  22. package/lib/messages/events/LocationDeliveryDestinationUpdatedEvent.js.map +1 -0
  23. package/lib/messages/events/LocationGroupCreatedEvent.d.ts +222 -61
  24. package/lib/messages/events/LocationGroupCreatedEvent.d.ts.map +1 -1
  25. package/lib/messages/events/LocationGroupUpdatedEvent.d.ts +222 -37
  26. package/lib/messages/events/LocationGroupUpdatedEvent.d.ts.map +1 -1
  27. package/lib/messages/events/LocationMultigroupCreatedEvent.d.ts +354 -0
  28. package/lib/messages/events/LocationMultigroupCreatedEvent.d.ts.map +1 -0
  29. package/lib/messages/events/LocationMultigroupCreatedEvent.js +4 -0
  30. package/lib/messages/events/LocationMultigroupCreatedEvent.js.map +1 -0
  31. package/lib/messages/events/LocationMultigroupUpdatedEvent.d.ts +354 -0
  32. package/lib/messages/events/LocationMultigroupUpdatedEvent.d.ts.map +1 -0
  33. package/lib/messages/events/LocationMultigroupUpdatedEvent.js +4 -0
  34. package/lib/messages/events/LocationMultigroupUpdatedEvent.js.map +1 -0
  35. package/lib/messages/events/LocationSectorCreatedEvent.d.ts +312 -0
  36. package/lib/messages/events/LocationSectorCreatedEvent.d.ts.map +1 -0
  37. package/lib/messages/events/LocationSectorCreatedEvent.js +4 -0
  38. package/lib/messages/events/LocationSectorCreatedEvent.js.map +1 -0
  39. package/lib/messages/events/LocationSectorUpdatedEvent.d.ts +312 -0
  40. package/lib/messages/events/LocationSectorUpdatedEvent.d.ts.map +1 -0
  41. package/lib/messages/events/LocationSectorUpdatedEvent.js +4 -0
  42. package/lib/messages/events/LocationSectorUpdatedEvent.js.map +1 -0
  43. package/lib/messages/events/LocationUpdatedEvent.d.ts +260 -66
  44. package/lib/messages/events/LocationUpdatedEvent.d.ts.map +1 -1
  45. package/lib/messages/events/index.d.ts +8 -0
  46. package/lib/messages/events/index.d.ts.map +1 -1
  47. package/package.json +1 -1
  48. package/src/messages/events/LocationBrandCreatedEvent.ts +246 -240
  49. package/src/messages/events/LocationBrandUpdatedEvent.ts +246 -240
  50. package/src/messages/events/LocationCompanyCreatedEvent.ts +391 -0
  51. package/src/messages/events/LocationCompanyUpdatedEvent.ts +391 -0
  52. package/src/messages/events/LocationCreatedEvent.ts +304 -95
  53. package/src/messages/events/LocationDeliveryDestinationCreatedEvent.ts +50 -0
  54. package/src/messages/events/LocationDeliveryDestinationUpdatedEvent.ts +50 -0
  55. package/src/messages/events/LocationGroupCreatedEvent.ts +266 -74
  56. package/src/messages/events/LocationGroupUpdatedEvent.ts +266 -53
  57. package/src/messages/events/LocationMultigroupCreatedEvent.ts +461 -0
  58. package/src/messages/events/LocationMultigroupUpdatedEvent.ts +461 -0
  59. package/src/messages/events/LocationSectorCreatedEvent.ts +405 -0
  60. package/src/messages/events/LocationSectorUpdatedEvent.ts +405 -0
  61. package/src/messages/events/LocationUpdatedEvent.ts +304 -95
  62. package/src/messages/events/index.ts +16 -0
@@ -0,0 +1,461 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface MultiGroup {
4
+ // multigroup
5
+ id?: string;
6
+ // Multigroup name
7
+ name?: string;
8
+ // Array of groups associated with this multigroup
9
+ groups?: Group[];
10
+ meta?: Pagination;
11
+ [index: string]: any;
12
+ }
13
+
14
+ export interface Group {
15
+ // Unique group identifier
16
+ id?: string;
17
+ // ISO timestamp when the group was soft deleted
18
+ deleted_at?: string;
19
+ // Group name
20
+ name?: string;
21
+ label?: Label;
22
+ // Distance in meters from the group
23
+ distance?: number;
24
+ // Array of locations associated with this group
25
+ locations?: Location[];
26
+ address?: Address;
27
+ // Additional metadata
28
+ meta?: Record<string, any>;
29
+ style?: Style;
30
+ // Group timezone
31
+ timezone?: string;
32
+ // Device mapping configuration
33
+ device_mapping?: Record<string, DeviceMapping[]>;
34
+ date?: DateInfo;
35
+ [index: string]: any;
36
+ }
37
+
38
+ export interface Location {
39
+ // Unique location identifier
40
+ id?: string;
41
+ // ISO timestamp when the location was soft deleted
42
+ deleted_at?: string;
43
+ // Operation identifier
44
+ operation_id?: number;
45
+ // Location name
46
+ name?: string;
47
+ label?: Label;
48
+ // Location sequence number
49
+ sequence?: number;
50
+ // Search terms for this location
51
+ search?: string[];
52
+ // Application identifier
53
+ app?: string;
54
+ address?: Address;
55
+ // Location latitude
56
+ latitude?: number;
57
+ // Location longitude
58
+ longitude?: number;
59
+ // Array of brands associated with this location
60
+ brands?: Brand[];
61
+ // Additional metadata
62
+ meta?: Record<string, any>;
63
+ // Location phone number
64
+ phone?: string;
65
+ // The CDL is representing the group of this location
66
+ location_group?: string;
67
+ // The CDL id representing the multigroup of this location
68
+ location_multigroup?: string;
69
+ // The CDL id representing the sector of this location
70
+ sector?: string;
71
+ date?: DateInfo;
72
+ market_place?: MarketPlace;
73
+ [index: string]: any;
74
+ }
75
+
76
+ export interface Pagination {
77
+ // Last key for pagination
78
+ last_key?: string;
79
+ // Total count of items
80
+ count?: number;
81
+ [index: string]: any;
82
+ }
83
+
84
+ export interface Label {
85
+ // English label
86
+ en?: string;
87
+ // French label
88
+ fr?: string;
89
+ [index: string]: any;
90
+ }
91
+
92
+ export interface Address {
93
+ // Suite or unit number
94
+ suite?: string;
95
+ // Street address
96
+ address?: string;
97
+ // City name
98
+ city?: string;
99
+ // State or province
100
+ state?: string;
101
+ // Country code
102
+ country?: string;
103
+ // Postal or ZIP code
104
+ zip?: string;
105
+ coordinates?: {
106
+ // Latitude coordinate
107
+ latitude?: number;
108
+ // Longitude coordinate
109
+ longitude?: number;
110
+ [index: string]: any;
111
+ };
112
+ [index: string]: any;
113
+ }
114
+
115
+ export interface Style {
116
+ // Group logo URL
117
+ logo?: string;
118
+ // Main group logo URL
119
+ main_logo?: string;
120
+ // Alternative group logo URL
121
+ alt_logo?: string;
122
+ // Application theme identifier
123
+ appThemeId?: string;
124
+ [index: string]: any;
125
+ }
126
+
127
+ export interface DateInfo {
128
+ // Creation timestamp
129
+ created?: string;
130
+ // Last modification timestamp
131
+ modified?: string;
132
+ // Deletion timestamp
133
+ deleted?: string;
134
+ [index: string]: any;
135
+ }
136
+
137
+ export interface Brand {
138
+ // brand
139
+ id?: string;
140
+ // ISO timestamp when the brand was soft deleted
141
+ deleted_at?: string;
142
+ // The CDL id representing the sector this brand belongs to
143
+ sector?: string;
144
+ // Brand name
145
+ name?: string;
146
+ label?: Label;
147
+ // Brand sequence number
148
+ sequence?: number;
149
+ // Brand timezone
150
+ timezone?: string;
151
+ // Brand description
152
+ description?: string;
153
+ // @deprecated
154
+ latitude?: number;
155
+ // @deprecated
156
+ longitude?: number;
157
+ address?: Address;
158
+ // Menu hours configuration
159
+ menus?: MenuHours[];
160
+ date?: DateInfo;
161
+ // Operating hours
162
+ hours?: Hours[];
163
+ // Delivery hours configuration
164
+ deliveryHours?: DeliveryHours[];
165
+ style?: Style;
166
+ // The CDL id representing the PoS for this brand
167
+ pos?: string;
168
+ // Terminal configurations
169
+ terminals?: Record<string, any>[];
170
+ // Device mapping configuration
171
+ device_mapping?: Record<string, BrandDeviceMapping[]>;
172
+ timeslots?: {
173
+ time?: string;
174
+ averagePrepTime?: string;
175
+ duration_minutes?: number;
176
+ customers_per_slot?: number;
177
+ menu_items_per_slot?: number;
178
+ delivery_time?: string;
179
+ delivery_customers_per_slot?: number;
180
+ delivery_menu_items_per_slot?: number;
181
+ delivery_prep_time?: string;
182
+ delivery_is_user_defined?: boolean;
183
+ delivery_user_defined?: {
184
+ start_time: string;
185
+ end_time: string;
186
+ delivery_destinations?: string[];
187
+ [index: string]: any;
188
+ }[];
189
+ [index: string]: any;
190
+ };
191
+ is?: {
192
+ pickup_supported?: boolean;
193
+ delivery_supported?: boolean;
194
+ frictionless_supported?: boolean;
195
+ plu_enabled?: boolean;
196
+ promo_exemptions_enabled?: boolean;
197
+ local_images_enabled?: boolean;
198
+ hidden?: boolean;
199
+ show_in_kiosk?: boolean;
200
+ show_in_pos?: boolean;
201
+ item_desc_edit_enabled?: boolean;
202
+ scan_and_go_supported?: boolean;
203
+ calories_edit_enabled?: boolean;
204
+ special_instructions_enabled?: boolean;
205
+ dining_hall?: boolean;
206
+ [index: string]: any;
207
+ };
208
+ // The CDL id representing the brand
209
+ brand?: string;
210
+ // The CDL id representing the location of this brand
211
+ location?: string;
212
+ // location group
213
+ group?: string;
214
+ // The CDL id representing the payment provider of this brand
215
+ payment_provider?: string;
216
+ // @deprecated
217
+ location_description?: string;
218
+ // The CDL id representing the company of this brand
219
+ company?: string;
220
+ config?: {
221
+ private?: Record<string, any>;
222
+ public?: Record<string, any>;
223
+ [index: string]: any;
224
+ };
225
+ // Tax rate
226
+ tax_rate?: number;
227
+ meta?: {
228
+ scout?: {
229
+ user_id?: string;
230
+ name?: {
231
+ first?: string;
232
+ last?: string;
233
+ [index: string]: any;
234
+ };
235
+ [index: string]: any;
236
+ };
237
+ partner?: {
238
+ user_id?: string;
239
+ name?: {
240
+ first?: string;
241
+ last?: string;
242
+ [index: string]: any;
243
+ };
244
+ [index: string]: any;
245
+ };
246
+ contact?: {
247
+ name?: string;
248
+ role?: string;
249
+ email?: string;
250
+ phone?: string;
251
+ [index: string]: any;
252
+ };
253
+ market_id?: string;
254
+ partner_type?: string;
255
+ business_number?: number;
256
+ website?: string;
257
+ cuisine_types?: string[];
258
+ status?: PartnerStatus;
259
+ active?: boolean;
260
+ max_showcase_items?: number;
261
+ jde_category?: string;
262
+ software_integrations?: {
263
+ system365?: string;
264
+ jwo?: string;
265
+ time2eat?: {
266
+ enabled?: boolean;
267
+ use_timeslots?: boolean;
268
+ ignore_station_hours?: boolean;
269
+ [index: string]: any;
270
+ };
271
+ nextep?: {
272
+ mobile_app?: boolean;
273
+ web?: boolean;
274
+ [index: string]: any;
275
+ };
276
+ mashgin?: {
277
+ enabled?: boolean;
278
+ [index: string]: any;
279
+ };
280
+ centric_hub?: {
281
+ enabled?: boolean;
282
+ [index: string]: any;
283
+ };
284
+ agilysys?: {
285
+ order_streaming_enabled?: boolean;
286
+ [index: string]: any;
287
+ };
288
+ [index: string]: any;
289
+ };
290
+ type_of_kds?: {
291
+ cdl?: boolean;
292
+ nextep?: boolean;
293
+ volante?: boolean;
294
+ agilysys?: boolean;
295
+ [index: string]: any;
296
+ };
297
+ [index: string]: any;
298
+ };
299
+ descriptions?: {
300
+ location?: Label;
301
+ [index: string]: any;
302
+ };
303
+ estimated_wait_time?: {
304
+ delivery?: WaitTime;
305
+ pickup?: WaitTime;
306
+ [index: string]: any;
307
+ };
308
+ state?: {
309
+ pickup?: BrandOrMenuState;
310
+ delivery?: BrandOrMenuState;
311
+ [index: string]: any;
312
+ };
313
+ [index: string]: any;
314
+ }
315
+
316
+ export interface MenuHours {
317
+ id?: string;
318
+ label?: {
319
+ en?: string;
320
+ [index: string]: any;
321
+ };
322
+ hours?: Hours[];
323
+ is_pickup?: boolean;
324
+ is_delivery?: boolean;
325
+ is_frictionless?: boolean;
326
+ state?: BrandOrMenuState;
327
+ is_disabled?: boolean;
328
+ [index: string]: any;
329
+ }
330
+
331
+ export interface Hours {
332
+ id?: string;
333
+ date?: {
334
+ deleted?: string;
335
+ start?: string;
336
+ end?: string;
337
+ [index: string]: any;
338
+ };
339
+ day?: {
340
+ start?: number;
341
+ end?: number;
342
+ [index: string]: any;
343
+ };
344
+ hours?: string;
345
+ [index: string]: any;
346
+ }
347
+
348
+ export interface DeliveryHours {
349
+ id?: string;
350
+ day?: {
351
+ start?: number;
352
+ end?: number;
353
+ [index: string]: any;
354
+ };
355
+ hours?: string;
356
+ [index: string]: any;
357
+ }
358
+
359
+ export interface Timeslot {
360
+ // timeslot id (optional)
361
+ id?: number;
362
+ // The CDL id representing the brand this timeslot belongs to
363
+ brand_id?: string;
364
+ start_time?: string;
365
+ duration?: string;
366
+ is_available?: boolean;
367
+ number_orders?: number;
368
+ delivery_destinations?: string[];
369
+ [index: string]: any;
370
+ }
371
+
372
+ export interface DeviceMapping {
373
+ device_type?: string;
374
+ site_device_id?: string;
375
+ name?: string;
376
+ business_units?: string[];
377
+ [index: string]: any;
378
+ }
379
+
380
+ export interface BrandDeviceMapping {
381
+ device_type: string;
382
+ site_device_id: string;
383
+ business_units?: string[];
384
+ }
385
+
386
+ export interface Station {
387
+ // The CDL id representing the brand of the station object
388
+ brand?: string;
389
+ // The CDL id representing the menu of the station object
390
+ menu?: string;
391
+ [index: string]: any;
392
+ }
393
+
394
+ export interface WaitTime {
395
+ // maxium wait time to the next time slot in minutes
396
+ max: number;
397
+ // minimum wait time to the next time slot in minutes
398
+ min: number;
399
+ // the epoch timestamp of the next available ready time for a station
400
+ ready_time: number;
401
+ [index: string]: any;
402
+ }
403
+
404
+ export type BrandOrMenuState = 'open' | 'closed' | 'preorder';
405
+
406
+ export type PartnerStatus = 'await_partner' | 'await_scout' | 'completed';
407
+
408
+ export interface MarketPlace {
409
+ stations?: Station[];
410
+ label?: Label;
411
+ location_description?: Label;
412
+ // Marketplace logo URL
413
+ logo?: string;
414
+ is?: {
415
+ // Whether marketplace is enabled
416
+ enabled?: boolean;
417
+ // Whether pickup is supported
418
+ pickup_supported?: boolean;
419
+ // Whether delivery is supported
420
+ delivery_supported?: boolean;
421
+ [index: string]: any;
422
+ };
423
+ delivery_details?: {
424
+ // Whether to show single timeslot
425
+ show_single_timeslot?: boolean;
426
+ // Whether to show delivery instructions
427
+ show_instructions?: boolean;
428
+ // Whether runner app is enabled
429
+ runner_app_enabled?: boolean;
430
+ [index: string]: any;
431
+ };
432
+ // Available delivery destinations
433
+ delivery_destinations?: string[];
434
+ pickup_instruction?: Label;
435
+ // Marketplace hours
436
+ hours?: Hours[];
437
+ // Marketplace delivery hours
438
+ deliveryHours?: DeliveryHours[];
439
+ service_fee?: {
440
+ // Service fee type
441
+ type?: string;
442
+ // Service fee value
443
+ value?: number;
444
+ [index: string]: any;
445
+ };
446
+ [index: string]: any;
447
+ }
448
+
449
+ export interface LocationMultigroupCreatedEvent {
450
+ id: string;
451
+ type: 'LocationMultigroupCreatedEvent';
452
+ version: '0.0.1';
453
+ timestamp: string;
454
+ traceContext: {
455
+ traceId?: string;
456
+ };
457
+ payload: {
458
+ multiGroup: MultiGroup;
459
+ };
460
+ source: string;
461
+ }