@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
@@ -1,41 +1,318 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- export interface LocationAddress {
3
+ export interface Address {
4
+ // Suite number of the address, if applicable
5
+ suite?: string;
6
+ // First line of the address, should include street number
4
7
  address?: string;
8
+ // City of the address
5
9
  city?: string;
10
+ // State of the address, also province in Canada
6
11
  state?: string;
7
- zip?: string;
12
+ // Country of the address
8
13
  country?: string;
14
+ // Zip code or postal code of the address
15
+ zip?: string;
9
16
  coordinates?: {
10
- latitude: number;
11
- longitude: number;
17
+ // latitude of the the address
18
+ latitude?: number;
19
+ // longitude of the the address
20
+ longitude?: number;
21
+ };
22
+ }
23
+
24
+ export interface Label {
25
+ en?: string;
26
+ fr?: string;
27
+ }
28
+
29
+ export interface DateInfo {
30
+ deleted?: string;
31
+ created?: string;
32
+ modified?: string;
33
+ }
34
+
35
+ export interface Brand {
36
+ // brand
37
+ id?: string;
38
+ // ISO timestamp when the brand was soft deleted
39
+ deleted_at?: string;
40
+ // The CDL id representing the sector this brand belongs to
41
+ sector?: string;
42
+ name?: string;
43
+ label?: Label;
44
+ sequence?: number;
45
+ timezone?: string;
46
+ description?: string;
47
+ // @deprecated
48
+ latitude?: number;
49
+ // @deprecated
50
+ longitude?: number;
51
+ address?: Address;
52
+ menus?: MenuHours[];
53
+ date?: DateInfo;
54
+ hours?: Hours[];
55
+ deliveryHours?: DeliveryHours[];
56
+ style?: {
57
+ logo?: string;
58
+ main_logo?: string;
59
+ alt_logo?: string;
60
+ };
61
+ // The CDL id representing the PoS for this brand
62
+ pos?: string;
63
+ terminals?: Record<string, any>[];
64
+ device_mapping?: Record<string, DeviceMapping[]>;
65
+ timeslots?: {
66
+ time?: string;
67
+ averagePrepTime?: string;
68
+ duration_minutes?: number;
69
+ customers_per_slot?: number;
70
+ menu_items_per_slot?: number;
71
+ delivery_time?: string;
72
+ delivery_customers_per_slot?: number;
73
+ delivery_menu_items_per_slot?: number;
74
+ delivery_prep_time?: string;
75
+ delivery_is_user_defined?: boolean;
76
+ delivery_user_defined?: {
77
+ start_time: string;
78
+ end_time: string;
79
+ delivery_destinations?: string[];
80
+ }[];
81
+ };
82
+ is?: {
83
+ pickup_supported?: boolean;
84
+ delivery_supported?: boolean;
85
+ frictionless_supported?: boolean;
86
+ plu_enabled?: boolean;
87
+ promo_exemptions_enabled?: boolean;
88
+ local_images_enabled?: boolean;
89
+ hidden?: boolean;
90
+ show_in_kiosk?: boolean;
91
+ show_in_pos?: boolean;
92
+ item_desc_edit_enabled?: boolean;
93
+ scan_and_go_supported?: boolean;
94
+ calories_edit_enabled?: boolean;
95
+ special_instructions_enabled?: boolean;
96
+ dining_hall?: boolean;
97
+ [index: string]: any;
98
+ };
99
+ // The CDL id representing the brand
100
+ brand?: string;
101
+ // The CDL id representing the location of this brand
102
+ location?: string;
103
+ // location group
104
+ group?: string;
105
+ // The CDL id representing the payment provider of this brand
106
+ payment_provider?: string;
107
+ // @deprecated
108
+ location_description?: string;
109
+ // The CDL id representing the company of this brand
110
+ company?: string;
111
+ config?: {
112
+ private?: Record<string, any>;
113
+ public?: Record<string, any>;
114
+ };
115
+ tax_rate?: number;
116
+ meta?: BrandMeta;
117
+ descriptions?: {
118
+ location?: Label;
119
+ };
120
+ estimated_wait_time?: {
121
+ delivery?: WaitTime;
122
+ pickup?: WaitTime;
123
+ };
124
+ state?: {
125
+ pickup?: BrandOrMenuState;
126
+ delivery?: BrandOrMenuState;
127
+ };
128
+ }
129
+
130
+ export interface MenuHours {
131
+ id?: string;
132
+ label?: Label;
133
+ hours?: Hours[];
134
+ is_pickup?: boolean;
135
+ is_delivery?: boolean;
136
+ is_frictionless?: boolean;
137
+ state?: BrandOrMenuState;
138
+ is_disabled?: boolean;
139
+ }
140
+
141
+ export interface Hours {
142
+ id?: string;
143
+ date?: {
144
+ deleted?: string;
145
+ start?: string;
146
+ end?: string;
147
+ };
148
+ day?: {
149
+ start?: number;
150
+ end?: number;
151
+ };
152
+ hours?: string;
153
+ }
154
+
155
+ export interface DeliveryHours {
156
+ id?: string;
157
+ day?: {
158
+ start?: number;
159
+ end?: number;
160
+ };
161
+ hours?: string;
162
+ }
163
+
164
+ export interface WaitTime {
165
+ // maxium wait time to the next time slot in minutes
166
+ max: number;
167
+ // minimum wait time to the next time slot in minutes
168
+ min: number;
169
+ // the epoch timestamp of the next available ready time for a station
170
+ ready_time: number;
171
+ }
172
+
173
+ export type BrandOrMenuState = 'open' | 'closed' | 'preorder';
174
+
175
+ export interface MarketPlace {
176
+ stations?: Station[];
177
+ label?: Label;
178
+ location_description?: Label;
179
+ logo?: string;
180
+ is?: {
181
+ enabled?: boolean;
182
+ pickup_supported?: boolean;
183
+ delivery_supported?: boolean;
12
184
  };
185
+ delivery_details?: {
186
+ show_single_timeslot?: boolean;
187
+ show_instructions?: boolean;
188
+ runner_app_enabled?: boolean;
189
+ };
190
+ delivery_destinations?: string[];
191
+ pickup_instruction?: Label;
192
+ hours?: Hours[];
193
+ deliveryHours?: DeliveryHours[];
194
+ service_fee?: {
195
+ type?: string;
196
+ value?: number;
197
+ };
198
+ [index: string]: any;
13
199
  }
14
200
 
15
- export interface LocationIs {
16
- scanAndGoSupported?: boolean;
17
- frictionlessSupported?: boolean;
18
- pickupSupported?: boolean;
19
- deliverySupported?: boolean;
20
- specialInstructionsEnabled?: boolean;
21
- cafe360?: boolean;
22
- hidden?: boolean;
23
- webOrderEnabled?: boolean;
24
- itemLabelEditEnabled?: boolean;
25
- localImagesEnabled?: boolean;
26
- pluEnabled?: boolean;
201
+ export interface Timeslot {
202
+ // timeslot id (optional)
203
+ id?: number;
204
+ // The CDL id representing the brand this timeslot belongs to
205
+ brand_id?: string;
206
+ start_time?: string;
207
+ duration?: string;
208
+ is_available?: boolean;
209
+ number_orders?: number;
210
+ delivery_destinations?: string[];
211
+ }
212
+
213
+ export interface DeviceMapping {
214
+ device_type: string;
215
+ site_device_id: string;
216
+ business_units?: string[];
217
+ }
218
+
219
+ export interface Station {
220
+ // The CDL id representing the brand of the station object
221
+ brand?: string;
222
+ // The CDL id representing the menu of the station object
223
+ menu?: string;
224
+ [index: string]: any;
225
+ }
226
+
227
+ export interface BrandMeta {
228
+ scout?: {
229
+ user_id?: string;
230
+ name?: {
231
+ first?: string;
232
+ last?: string;
233
+ };
234
+ };
235
+ partner?: {
236
+ user_id?: string;
237
+ name?: {
238
+ first?: string;
239
+ last?: string;
240
+ };
241
+ };
242
+ contact?: {
243
+ name?: string;
244
+ role?: string;
245
+ email?: string;
246
+ phone?: string;
247
+ };
248
+ market_id?: string;
249
+ partner_type?: string;
250
+ business_number?: number;
251
+ website?: string;
252
+ cuisine_types?: string[];
253
+ status?: PartnerStatus;
254
+ active?: boolean;
255
+ max_showcase_items?: number;
256
+ jde_category?: string;
257
+ software_integrations?: {
258
+ system365?: string;
259
+ jwo?: string;
260
+ time2eat?: {
261
+ enabled?: boolean;
262
+ use_timeslots?: boolean;
263
+ ignore_station_hours?: boolean;
264
+ };
265
+ nextep?: {
266
+ mobile_app?: boolean;
267
+ web?: boolean;
268
+ };
269
+ mashgin?: {
270
+ enabled?: boolean;
271
+ };
272
+ centric_hub?: {
273
+ enabled?: boolean;
274
+ };
275
+ agilysys?: {
276
+ order_streaming_enabled?: boolean;
277
+ };
278
+ };
279
+ type_of_kds?: {
280
+ cdl?: boolean;
281
+ nextep?: boolean;
282
+ volante?: boolean;
283
+ agilysys?: boolean;
284
+ [index: string]: any;
285
+ };
286
+ [index: string]: any;
27
287
  }
28
288
 
29
- export interface LocationTimeslots {
30
- averagePrepTime?: string;
31
- customersPerSlot?: number;
32
- time?: string;
33
- deliveryPrepTime?: string;
34
- deliveryIsUserDefined?: boolean;
35
- deliveryTime?: string;
36
- deliveryDestinations?: string[];
37
- deliveryUserDefined?: string[];
38
- deliveryCustomersPerSlot?: number;
289
+ export type PartnerStatus = 'await_partner' | 'await_scout' | 'completed';
290
+
291
+ export interface Location {
292
+ id?: string;
293
+ // ISO timestamp when the location was soft deleted
294
+ deleted_at?: string;
295
+ operation_id?: number;
296
+ name?: string;
297
+ label?: Label;
298
+ sequence?: number;
299
+ search?: string[];
300
+ app?: string;
301
+ address?: Address;
302
+ latitude?: number;
303
+ longitude?: number;
304
+ brands?: Brand[];
305
+ meta?: Record<string, any>;
306
+ phone?: string;
307
+ // The CDL is representing the group of this location
308
+ location_group?: string;
309
+ // The CDL id representing the multigroup of this location
310
+ location_multigroup?: string;
311
+ // The CDL id representing the sector of this location
312
+ sector?: string;
313
+ date?: DateInfo;
314
+ market_place?: MarketPlace;
315
+ [index: string]: any;
39
316
  }
40
317
 
41
318
  export interface LocationUpdatedEvent {
@@ -47,75 +324,7 @@ export interface LocationUpdatedEvent {
47
324
  traceId?: string;
48
325
  };
49
326
  payload: {
50
- location: {
51
- // location id
52
- id: string;
53
- // user id of location creator
54
- createdBy: string;
55
- // user id of most recent update
56
- updatedBy?: string;
57
- createdAt: string;
58
- updatedAt: string;
59
- // Name of the location
60
- name: string;
61
- // Type of entity (e.g., brand, location, group, etc.)
62
- type: string;
63
- // Multi-group association
64
- multiGroup?: string;
65
- // Group association
66
- group?: string;
67
- // Location identifier
68
- location?: string;
69
- // Sector identifier
70
- sector?: string;
71
- // Company identifier
72
- company?: string;
73
- // External identifier for cross-system references
74
- externalId?: string;
75
- address?: LocationAddress;
76
- // Labeling metadata
77
- label?: Record<string, any>;
78
- // Styling metadata
79
- style?: Record<string, any>;
80
- // Additional metadata
81
- meta?: Record<string, any>;
82
- // Device mapping information
83
- deviceMapping?: Record<string, any>;
84
- is?: LocationIs;
85
- timeslots?: LocationTimeslots;
86
- menus?: Record<string, any>[];
87
- hours?: Record<string, any>[];
88
- deliveryHours?: Record<string, any>[];
89
- // Description data for the entity
90
- descriptions?: Record<string, any>;
91
- // Payment provider associated with the entity
92
- paymentProvider?: string;
93
- // Latitude coordinate
94
- latitude?: number;
95
- // Longitude coordinate
96
- longitude?: number;
97
- // Timezone for the entity
98
- timezone?: string;
99
- // Geohash of the entity's location
100
- geohash?: string;
101
- // Associated operation ID
102
- operationId?: number;
103
- // Description of the location
104
- locationDescription?: string;
105
- // Point-of-sale system identifier
106
- pos?: string;
107
- terminals?: Record<string, any>[];
108
- // Marketplace information
109
- marketPlace?: Record<string, any>;
110
- // Indicates if the location has a food locker
111
- foodlocker?: boolean;
112
- // Indicates if the entity is archived
113
- archived?: boolean;
114
- // Sorting order for listings
115
- sortSequence?: number;
116
- // Additional information
117
- information?: string;
118
- };
327
+ location: Location;
119
328
  };
120
329
  source: string;
121
330
  }
@@ -16,12 +16,28 @@ export { LocationBrandCreatedEvent } from './LocationBrandCreatedEvent';
16
16
 
17
17
  export { LocationBrandUpdatedEvent } from './LocationBrandUpdatedEvent';
18
18
 
19
+ export { LocationCompanyCreatedEvent } from './LocationCompanyCreatedEvent';
20
+
21
+ export { LocationCompanyUpdatedEvent } from './LocationCompanyUpdatedEvent';
22
+
19
23
  export { LocationCreatedEvent } from './LocationCreatedEvent';
20
24
 
25
+ export { LocationDeliveryDestinationCreatedEvent } from './LocationDeliveryDestinationCreatedEvent';
26
+
27
+ export { LocationDeliveryDestinationUpdatedEvent } from './LocationDeliveryDestinationUpdatedEvent';
28
+
21
29
  export { LocationGroupCreatedEvent } from './LocationGroupCreatedEvent';
22
30
 
23
31
  export { LocationGroupUpdatedEvent } from './LocationGroupUpdatedEvent';
24
32
 
33
+ export { LocationMultigroupCreatedEvent } from './LocationMultigroupCreatedEvent';
34
+
35
+ export { LocationMultigroupUpdatedEvent } from './LocationMultigroupUpdatedEvent';
36
+
37
+ export { LocationSectorCreatedEvent } from './LocationSectorCreatedEvent';
38
+
39
+ export { LocationSectorUpdatedEvent } from './LocationSectorUpdatedEvent';
40
+
25
41
  export { LocationUpdatedEvent } from './LocationUpdatedEvent';
26
42
 
27
43
  export { OrderCompletedEvent } from './OrderCompletedEvent';