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