@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,255 +1,261 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- export interface LocationBrandUpdatedEvent {
4
- id: string;
5
- type: 'LocationBrandUpdatedEvent';
6
- version: '0.0.1';
7
- timestamp: string;
8
- traceContext: {
9
- traceId?: string;
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
7
+ address?: string;
8
+ // City of the address
9
+ city?: string;
10
+ // State of the address, also province in Canada
11
+ state?: string;
12
+ // Country of the address
13
+ country?: string;
14
+ // Zip code or postal code of the address
15
+ zip?: string;
16
+ coordinates?: {
17
+ // latitude of the the address
18
+ latitude?: number;
19
+ // longitude of the the address
20
+ longitude?: number;
10
21
  };
11
- payload: {
12
- brand?: {
13
- // brand id
14
- id?: string;
15
- // ISO timestamp when the brand was soft deleted
16
- deletedAt?: string;
17
- // The CDL id representing the sector this brand belongs to
18
- sector?: string;
19
- // brand name
20
- name?: string;
21
- label?: {
22
- en?: string;
23
- fr?: string;
24
- };
25
- sequence?: number;
26
- timezone?: string;
27
- description?: string;
28
- // @deprecated
29
- latitude?: number;
30
- // @deprecated
31
- longitude?: number;
32
- address?: {
33
- // Suite number of the address, if applicable
34
- suite?: string;
35
- // First line of the address, should include street number
36
- address?: string;
37
- // City of the address
38
- city?: string;
39
- // State of the address, also province in Canada
40
- state?: string;
41
- // Country of the address
42
- country?: string;
43
- // Zip code or postal code of the address
44
- zip?: string;
45
- coordinates?: {
46
- // latitude of the the address
47
- latitude?: number;
48
- // longitude of the the address
49
- longitude?: number;
50
- };
51
- };
52
- menus?: {
53
- id?: string;
54
- label?: {
55
- en?: string;
56
- };
57
- hours?: {
58
- id?: string;
59
- date?: {
60
- deleted?: string;
61
- start?: string;
62
- end?: string;
63
- };
64
- day?: {
65
- start?: number;
66
- end?: number;
67
- };
68
- hours?: string;
69
- }[];
70
- isPickup?: boolean;
71
- isDelivery?: boolean;
72
- isFrictionless?: boolean;
73
- state?: 'open' | 'closed' | 'preorder';
74
- isDisabled?: boolean;
75
- }[];
76
- date?: {
77
- deleted?: string;
78
- created?: string;
79
- modified?: string;
80
- };
81
- hours?: {
82
- id?: string;
83
- date?: {
84
- deleted?: string;
85
- start?: string;
86
- end?: string;
87
- };
88
- day?: {
89
- start?: number;
90
- end?: number;
91
- };
92
- hours?: string;
93
- }[];
94
- deliveryHours?: {
95
- id?: string;
96
- day?: {
97
- start?: number;
98
- end?: number;
99
- };
100
- hours?: string;
101
- }[];
102
- style?: {
103
- logo?: string;
104
- mainLogo?: string;
105
- altLogo?: string;
106
- };
107
- // The CDL id representing the PoS for this brand
108
- pos?: string;
109
- terminals?: Record<string, any>[];
110
- deviceMapping?: Record<
111
- string,
112
- {
113
- deviceType?: string;
114
- siteDeviceId?: string;
115
- businessUnits?: string[];
116
- }[]
117
- >;
118
- timeslots?: {
119
- time?: string;
120
- averagePrepTime?: string;
121
- durationMinutes?: number;
122
- customersPerSlot?: number;
123
- menuItemsPerSlot?: number;
124
- deliveryTime?: string;
125
- deliveryCustomersPerSlot?: number;
126
- deliveryMenuItemsPerSlot?: number;
127
- deliveryPrepTime?: string;
128
- deliveryIsUserDefined?: boolean;
129
- deliveryUserDefined?: {
130
- startTime?: string;
131
- endTime?: string;
132
- deliveryDestinations?: string[];
133
- }[];
22
+ }
23
+
24
+ export interface Hours {
25
+ id?: string;
26
+ date?: {
27
+ deleted?: string;
28
+ start?: string;
29
+ end?: string;
30
+ };
31
+ day?: {
32
+ start?: number;
33
+ end?: number;
34
+ };
35
+ hours?: string;
36
+ }
37
+
38
+ export interface DeliveryHours {
39
+ id?: string;
40
+ day?: {
41
+ start?: number;
42
+ end?: number;
43
+ };
44
+ hours?: string;
45
+ }
46
+
47
+ export interface MenuHours {
48
+ id?: string;
49
+ label?: {
50
+ en?: string;
51
+ };
52
+ hours?: Hours[];
53
+ is_pickup?: boolean;
54
+ is_delivery?: boolean;
55
+ is_frictionless?: boolean;
56
+ state?: 'open' | 'closed' | 'preorder';
57
+ is_disabled?: boolean;
58
+ }
59
+
60
+ export interface DateInfo {
61
+ deleted?: string;
62
+ created?: string;
63
+ modified?: string;
64
+ }
65
+
66
+ export interface WaitTime {
67
+ // maxium wait time to the next time slot in minutes
68
+ max: number;
69
+ // minimum wait time to the next time slot in minutes
70
+ min: number;
71
+ // the epoch timestamp of the next available ready time for a station
72
+ ready_time: number;
73
+ }
74
+
75
+ export type BrandOrMenuState = 'open' | 'closed' | 'preorder';
76
+
77
+ export type PartnerStatus = 'await_partner' | 'await_scout' | 'completed';
78
+
79
+ export interface DeviceMapping {
80
+ device_type: string;
81
+ site_device_id: string;
82
+ business_units?: string[];
83
+ }
84
+
85
+ export interface Brand {
86
+ // brand id
87
+ id?: string;
88
+ // ISO timestamp when the brand was soft deleted
89
+ deleted_at?: string;
90
+ // The CDL id representing the sector this brand belongs to
91
+ sector?: string;
92
+ // brand name
93
+ name?: string;
94
+ label?: {
95
+ en?: string;
96
+ fr?: string;
97
+ };
98
+ sequence?: number;
99
+ timezone?: string;
100
+ description?: string;
101
+ // @deprecated
102
+ latitude?: number;
103
+ // @deprecated
104
+ longitude?: number;
105
+ address?: Address;
106
+ menus?: MenuHours[];
107
+ date?: DateInfo;
108
+ hours?: Hours[];
109
+ deliveryHours?: DeliveryHours[];
110
+ style?: {
111
+ logo?: string;
112
+ main_logo?: string;
113
+ alt_logo?: string;
114
+ };
115
+ // The CDL id representing the PoS for this brand
116
+ pos?: string;
117
+ terminals?: Record<string, any>[];
118
+ device_mapping?: Record<string, DeviceMapping[]>;
119
+ timeslots?: {
120
+ time?: string;
121
+ averagePrepTime?: string;
122
+ duration_minutes?: number;
123
+ customers_per_slot?: number;
124
+ menu_items_per_slot?: number;
125
+ delivery_time?: string;
126
+ delivery_customers_per_slot?: number;
127
+ delivery_menu_items_per_slot?: number;
128
+ delivery_prep_time?: string;
129
+ delivery_is_user_defined?: boolean;
130
+ delivery_user_defined?: {
131
+ start_time: string;
132
+ end_time: string;
133
+ delivery_destinations?: string[];
134
+ }[];
135
+ };
136
+ is?: {
137
+ pickup_supported?: boolean;
138
+ delivery_supported?: boolean;
139
+ frictionless_supported?: boolean;
140
+ plu_enabled?: boolean;
141
+ promo_exemptions_enabled?: boolean;
142
+ local_images_enabled?: boolean;
143
+ hidden?: boolean;
144
+ show_in_kiosk?: boolean;
145
+ show_in_pos?: boolean;
146
+ item_desc_edit_enabled?: boolean;
147
+ scan_and_go_supported?: boolean;
148
+ calories_edit_enabled?: boolean;
149
+ // admin panel toggle
150
+ special_instructions_enabled?: boolean;
151
+ dining_hall?: boolean;
152
+ [index: string]: any;
153
+ };
154
+ // The CDL id representing the brand
155
+ brand?: string;
156
+ // The CDL id representing the location of this brand
157
+ location?: string;
158
+ // location group
159
+ group?: string;
160
+ // The CDL id representing the payment provider of this brand
161
+ payment_provider?: string;
162
+ // @deprecated
163
+ location_description?: string;
164
+ // The CDL id representing the company of this brand
165
+ company?: string;
166
+ config?: {
167
+ private?: Record<string, any>;
168
+ public?: Record<string, any>;
169
+ };
170
+ tax_rate?: number;
171
+ meta?: {
172
+ scout?: {
173
+ user_id?: string;
174
+ name?: {
175
+ first?: string;
176
+ last?: string;
134
177
  };
135
- is?: {
136
- pickupSupported?: boolean;
137
- deliverySupported?: boolean;
138
- frictionlessSupported?: boolean;
139
- pluEnabled?: boolean;
140
- promoExemptionsEnabled?: boolean;
141
- localImagesEnabled?: boolean;
142
- hidden?: boolean;
143
- showInKiosk?: boolean;
144
- showInPos?: boolean;
145
- itemDescEditEnabled?: boolean;
146
- scanAndGoSupported?: boolean;
147
- caloriesEditEnabled?: boolean;
148
- // admin panel toggle
149
- specialInstructionsEnabled?: boolean;
150
- diningHall?: boolean;
151
- [index: string]: any;
178
+ };
179
+ partner?: {
180
+ user_id?: string;
181
+ name?: {
182
+ first?: string;
183
+ last?: string;
152
184
  };
153
- // The CDL id representing the brand
154
- brand?: string;
155
- // The CDL id representing the location of this brand
156
- location?: string;
157
- // location group
158
- group?: string;
159
- // The CDL id representing the payment provider of this brand
160
- paymentProvider?: string;
161
- // @deprecated
162
- locationDescription?: string;
163
- // The CDL id representing the company of this brand
164
- company?: string;
165
- config?: {
166
- private?: Record<string, any>;
167
- public?: Record<string, any>;
185
+ };
186
+ contact?: {
187
+ name?: string;
188
+ role?: string;
189
+ email?: string;
190
+ phone?: string;
191
+ };
192
+ market_id?: string;
193
+ partner_type?: string;
194
+ business_number?: number;
195
+ website?: string;
196
+ cuisine_types?: string[];
197
+ status?: PartnerStatus;
198
+ active?: boolean;
199
+ max_showcase_items?: number;
200
+ jde_category?: string;
201
+ software_integrations?: {
202
+ system365?: string;
203
+ jwo?: string;
204
+ time2eat?: {
205
+ enabled?: boolean;
206
+ use_timeslots?: boolean;
207
+ ignore_station_hours?: boolean;
168
208
  };
169
- taxRate?: number;
170
- meta?: {
171
- scout?: {
172
- userId?: string;
173
- name?: {
174
- first?: string;
175
- last?: string;
176
- };
177
- };
178
- partner?: {
179
- userId?: string;
180
- name?: {
181
- first?: string;
182
- last?: string;
183
- };
184
- };
185
- contact?: {
186
- name?: string;
187
- role?: string;
188
- email?: string;
189
- phone?: string;
190
- };
191
- marketId?: string;
192
- partnerType?: string;
193
- businessNumber?: number;
194
- website?: string;
195
- cuisineTypes?: string[];
196
- status?: 'await_partner' | 'await_scout' | 'completed';
197
- active?: boolean;
198
- maxShowcaseItems?: number;
199
- jdeCategory?: string;
200
- softwareIntegrations?: {
201
- system365?: string;
202
- jwo?: string;
203
- time2eat?: {
204
- enabled?: boolean;
205
- };
206
- nextep?: {
207
- mobileApp?: boolean;
208
- web?: boolean;
209
- };
210
- mashgin?: {
211
- enabled?: boolean;
212
- };
213
- };
214
- typeOfKds?: {
215
- cdl?: boolean;
216
- nextep?: boolean;
217
- volante?: boolean;
218
- agilysys?: boolean;
219
- [index: string]: any;
220
- };
221
- [index: string]: any;
209
+ nextep?: {
210
+ mobile_app?: boolean;
211
+ web?: boolean;
222
212
  };
223
- descriptions?: {
224
- location?: {
225
- en?: string;
226
- fr?: string;
227
- };
213
+ mashgin?: {
214
+ enabled?: boolean;
228
215
  };
229
- estimatedWaitTime?: {
230
- delivery?: {
231
- // maxium wait time to the next time slot in minutes
232
- max?: number;
233
- // minimum wait time to the next time slot in minutes
234
- min?: number;
235
- // the epoch timestamp of the next available ready time for a station
236
- readyTime?: number;
237
- };
238
- pickup?: {
239
- // maxium wait time to the next time slot in minutes
240
- max?: number;
241
- // minimum wait time to the next time slot in minutes
242
- min?: number;
243
- // the epoch timestamp of the next available ready time for a station
244
- readyTime?: number;
245
- };
216
+ centric_hub?: {
217
+ enabled?: boolean;
246
218
  };
247
- state?: {
248
- pickup?: 'open' | 'closed' | 'preorder';
249
- delivery?: 'open' | 'closed' | 'preorder';
219
+ agilysys?: {
220
+ order_streaming_enabled?: boolean;
250
221
  };
222
+ };
223
+ type_of_kds?: {
224
+ cdl?: boolean;
225
+ nextep?: boolean;
226
+ volante?: boolean;
227
+ agilysys?: boolean;
251
228
  [index: string]: any;
252
229
  };
230
+ [index: string]: any;
231
+ };
232
+ descriptions?: {
233
+ location?: {
234
+ en?: string;
235
+ fr?: string;
236
+ };
237
+ };
238
+ estimated_wait_time?: {
239
+ delivery?: WaitTime;
240
+ pickup?: WaitTime;
241
+ };
242
+ state?: {
243
+ pickup?: BrandOrMenuState;
244
+ delivery?: BrandOrMenuState;
245
+ };
246
+ [index: string]: any;
247
+ }
248
+
249
+ export interface LocationBrandUpdatedEvent {
250
+ id: string;
251
+ type: 'LocationBrandUpdatedEvent';
252
+ version: '0.0.1';
253
+ timestamp: string;
254
+ traceContext: {
255
+ traceId?: string;
256
+ };
257
+ payload: {
258
+ brand: Brand;
253
259
  };
254
260
  source: string;
255
261
  }