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