@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
@@ -1,5 +1,270 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ export interface Group {
4
+ id?: string;
5
+ // ISO timestamp when the group was soft deleted
6
+ deleted_at?: string;
7
+ name?: string;
8
+ label?: Label;
9
+ // Distance in meters from the group
10
+ distance?: number;
11
+ locations?: Location[];
12
+ address?: Address;
13
+ meta?: Record<string, any>;
14
+ style?: {
15
+ logo?: string;
16
+ main_logo?: string;
17
+ alt_logo?: string;
18
+ appThemeId?: string;
19
+ };
20
+ timezone?: string;
21
+ device_mapping?: Record<string, DeviceMapping[]>;
22
+ date?: DateInfo;
23
+ [index: string]: any;
24
+ }
25
+
26
+ export interface Location {
27
+ id?: string;
28
+ // ISO timestamp when the location was soft deleted
29
+ deleted_at?: string;
30
+ operation_id?: number;
31
+ name?: string;
32
+ label?: Label;
33
+ sequence?: number;
34
+ search?: string[];
35
+ app?: string;
36
+ address?: Address;
37
+ latitude?: number;
38
+ longitude?: number;
39
+ brands?: Brand[];
40
+ meta?: Record<string, any>;
41
+ phone?: string;
42
+ // The CDL is representing the group of this location
43
+ location_group?: string;
44
+ // The CDL id representing the multigroup of this location
45
+ location_multigroup?: string;
46
+ // The CDL id representing the sector of this location
47
+ sector?: string;
48
+ date?: DateInfo;
49
+ market_place?: MarketPlace;
50
+ [index: string]: any;
51
+ }
52
+
53
+ export interface Address {
54
+ // Suite number of the address, if applicable
55
+ suite?: string;
56
+ // First line of the address, should include street number
57
+ address?: string;
58
+ // City of the address
59
+ city?: string;
60
+ // State of the address, also province in Canada
61
+ state?: string;
62
+ // Country of the address
63
+ country?: string;
64
+ // Zip code or postal code of the address
65
+ zip?: string;
66
+ coordinates?: {
67
+ // latitude of the the address
68
+ latitude?: number;
69
+ // longitude of the the address
70
+ longitude?: number;
71
+ };
72
+ }
73
+
74
+ export interface Label {
75
+ en?: string;
76
+ fr?: string;
77
+ }
78
+
79
+ export interface DateInfo {
80
+ deleted?: string;
81
+ created?: string;
82
+ modified?: string;
83
+ }
84
+
85
+ export interface DeviceMapping {
86
+ device_type?: string;
87
+ site_device_id?: string;
88
+ name?: string;
89
+ business_units?: string[];
90
+ }
91
+
92
+ export interface BrandDeviceMapping {
93
+ device_type: string;
94
+ site_device_id: string;
95
+ business_units?: string[];
96
+ }
97
+
98
+ export interface Brand {
99
+ // brand
100
+ id?: string;
101
+ // ISO timestamp when the brand was soft deleted
102
+ deleted_at?: string;
103
+ // The CDL id representing the sector this brand belongs to
104
+ sector?: string;
105
+ name?: string;
106
+ label?: Label;
107
+ sequence?: number;
108
+ timezone?: string;
109
+ description?: string;
110
+ address?: Address;
111
+ menus?: MenuHours[];
112
+ date?: DateInfo;
113
+ hours?: Hours[];
114
+ deliveryHours?: DeliveryHours[];
115
+ style?: {
116
+ logo?: string;
117
+ main_logo?: string;
118
+ alt_logo?: string;
119
+ };
120
+ // The CDL id representing the PoS for this brand
121
+ pos?: string;
122
+ terminals?: Record<string, any>[];
123
+ device_mapping?: Record<string, BrandDeviceMapping[]>;
124
+ timeslots?: {
125
+ time?: string;
126
+ averagePrepTime?: string;
127
+ duration_minutes?: number;
128
+ customers_per_slot?: number;
129
+ menu_items_per_slot?: number;
130
+ delivery_time?: string;
131
+ delivery_customers_per_slot?: number;
132
+ delivery_menu_items_per_slot?: number;
133
+ delivery_prep_time?: string;
134
+ delivery_is_user_defined?: boolean;
135
+ delivery_user_defined?: {
136
+ start_time: string;
137
+ end_time: string;
138
+ delivery_destinations?: string[];
139
+ }[];
140
+ };
141
+ is?: {
142
+ pickup_supported?: boolean;
143
+ delivery_supported?: boolean;
144
+ frictionless_supported?: boolean;
145
+ plu_enabled?: boolean;
146
+ promo_exemptions_enabled?: boolean;
147
+ local_images_enabled?: boolean;
148
+ hidden?: boolean;
149
+ show_in_kiosk?: boolean;
150
+ show_in_pos?: boolean;
151
+ item_desc_edit_enabled?: boolean;
152
+ scan_and_go_supported?: boolean;
153
+ calories_edit_enabled?: boolean;
154
+ special_instructions_enabled?: boolean;
155
+ dining_hall?: boolean;
156
+ [index: string]: any;
157
+ };
158
+ // The CDL id representing the brand
159
+ brand?: string;
160
+ // The CDL id representing the location of this brand
161
+ location?: string;
162
+ // location group
163
+ group?: string;
164
+ // The CDL id representing the payment provider of this brand
165
+ payment_provider?: string;
166
+ // @deprecated
167
+ location_description?: string;
168
+ // The CDL id representing the company of this brand
169
+ company?: string;
170
+ config?: {
171
+ private?: Record<string, any>;
172
+ public?: Record<string, any>;
173
+ };
174
+ tax_rate?: number;
175
+ meta?: Record<string, any>;
176
+ descriptions?: {
177
+ location?: Label;
178
+ };
179
+ estimated_wait_time?: {
180
+ delivery?: WaitTime;
181
+ pickup?: WaitTime;
182
+ };
183
+ state?: {
184
+ pickup?: BrandOrMenuState;
185
+ delivery?: BrandOrMenuState;
186
+ };
187
+ }
188
+
189
+ export interface MenuHours {
190
+ id?: string;
191
+ label?: Label;
192
+ hours?: Hours[];
193
+ is_pickup?: boolean;
194
+ is_delivery?: boolean;
195
+ is_frictionless?: boolean;
196
+ state?: BrandOrMenuState;
197
+ is_disabled?: boolean;
198
+ }
199
+
200
+ export interface Hours {
201
+ id?: string;
202
+ date?: {
203
+ deleted?: string;
204
+ start?: string;
205
+ end?: string;
206
+ };
207
+ day?: {
208
+ start?: number;
209
+ end?: number;
210
+ };
211
+ hours?: string;
212
+ }
213
+
214
+ export interface DeliveryHours {
215
+ id?: string;
216
+ day?: {
217
+ start?: number;
218
+ end?: number;
219
+ };
220
+ hours?: string;
221
+ }
222
+
223
+ export interface WaitTime {
224
+ // maxium wait time to the next time slot in minutes
225
+ max: number;
226
+ // minimum wait time to the next time slot in minutes
227
+ min: number;
228
+ // the epoch timestamp of the next available ready time for a station
229
+ ready_time: number;
230
+ }
231
+
232
+ export type BrandOrMenuState = 'open' | 'closed' | 'preorder';
233
+
234
+ export interface MarketPlace {
235
+ stations?: Station[];
236
+ label?: Label;
237
+ location_description?: Label;
238
+ logo?: string;
239
+ is?: {
240
+ enabled?: boolean;
241
+ pickup_supported?: boolean;
242
+ delivery_supported?: boolean;
243
+ };
244
+ delivery_details?: {
245
+ show_single_timeslot?: boolean;
246
+ show_instructions?: boolean;
247
+ runner_app_enabled?: boolean;
248
+ };
249
+ delivery_destinations?: string[];
250
+ pickup_instruction?: Label;
251
+ hours?: Hours[];
252
+ deliveryHours?: DeliveryHours[];
253
+ service_fee?: {
254
+ type?: string;
255
+ value?: number;
256
+ };
257
+ [index: string]: any;
258
+ }
259
+
260
+ export interface Station {
261
+ // The CDL id representing the brand of the station object
262
+ brand?: string;
263
+ // The CDL id representing the menu of the station object
264
+ menu?: string;
265
+ [index: string]: any;
266
+ }
267
+
3
268
  export interface LocationGroupCreatedEvent {
4
269
  id: string;
5
270
  type: 'LocationGroupCreatedEvent';
@@ -9,80 +274,7 @@ export interface LocationGroupCreatedEvent {
9
274
  traceId?: string;
10
275
  };
11
276
  payload: {
12
- locationGroup?: {
13
- // location group id
14
- id?: string;
15
- // ISO timestamp when the location group was soft deleted
16
- deletedAt?: string;
17
- // Name of the location group
18
- name?: string;
19
- label?: {
20
- en?: string;
21
- fr?: string;
22
- };
23
- // Distance in meters from the location group
24
- distance?: number;
25
- // Array of Location objects
26
- locations?: {
27
- id?: string;
28
- name?: string;
29
- address?: {
30
- address?: string;
31
- city?: string;
32
- state?: string;
33
- country?: string;
34
- zip?: string;
35
- coordinates?: {
36
- latitude?: number;
37
- longitude?: number;
38
- };
39
- };
40
- }[];
41
- address?: {
42
- // Suite number of the address, if applicable
43
- suite?: string;
44
- // First line of the address, should include street number
45
- address?: string;
46
- // City of the address
47
- city?: string;
48
- // State of the address, also province in Canada
49
- state?: string;
50
- // Country of the address
51
- country?: string;
52
- // Zip code or postal code of the address
53
- zip?: string;
54
- coordinates?: {
55
- // latitude of the address
56
- latitude?: number;
57
- // longitude of the address
58
- longitude?: number;
59
- };
60
- };
61
- meta?: {
62
- tags?: string[];
63
- category?: string;
64
- [index: string]: any;
65
- };
66
- style?: {
67
- logo?: string;
68
- mainLogo?: string;
69
- altLogo?: string;
70
- appThemeId?: string;
71
- };
72
- timezone?: string;
73
- deviceMapping?: {
74
- pos?: {
75
- deviceType?: string;
76
- siteDeviceId?: string;
77
- name?: string;
78
- }[];
79
- };
80
- date?: {
81
- created?: string;
82
- modified?: string;
83
- };
84
- [index: string]: any;
85
- };
277
+ group: Group;
86
278
  };
87
279
  source: string;
88
280
  }
@@ -1,5 +1,270 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ export interface Group {
4
+ id?: string;
5
+ // ISO timestamp when the group was soft deleted
6
+ deleted_at?: string;
7
+ name?: string;
8
+ label?: Label;
9
+ // Distance in meters from the group
10
+ distance?: number;
11
+ locations?: Location[];
12
+ address?: Address;
13
+ meta?: Record<string, any>;
14
+ style?: {
15
+ logo?: string;
16
+ main_logo?: string;
17
+ alt_logo?: string;
18
+ appThemeId?: string;
19
+ };
20
+ timezone?: string;
21
+ device_mapping?: Record<string, DeviceMapping[]>;
22
+ date?: DateInfo;
23
+ [index: string]: any;
24
+ }
25
+
26
+ export interface Location {
27
+ id?: string;
28
+ // ISO timestamp when the location was soft deleted
29
+ deleted_at?: string;
30
+ operation_id?: number;
31
+ name?: string;
32
+ label?: Label;
33
+ sequence?: number;
34
+ search?: string[];
35
+ app?: string;
36
+ address?: Address;
37
+ latitude?: number;
38
+ longitude?: number;
39
+ brands?: Brand[];
40
+ meta?: Record<string, any>;
41
+ phone?: string;
42
+ // The CDL is representing the group of this location
43
+ location_group?: string;
44
+ // The CDL id representing the multigroup of this location
45
+ location_multigroup?: string;
46
+ // The CDL id representing the sector of this location
47
+ sector?: string;
48
+ date?: DateInfo;
49
+ market_place?: MarketPlace;
50
+ [index: string]: any;
51
+ }
52
+
53
+ export interface Address {
54
+ // Suite number of the address, if applicable
55
+ suite?: string;
56
+ // First line of the address, should include street number
57
+ address?: string;
58
+ // City of the address
59
+ city?: string;
60
+ // State of the address, also province in Canada
61
+ state?: string;
62
+ // Country of the address
63
+ country?: string;
64
+ // Zip code or postal code of the address
65
+ zip?: string;
66
+ coordinates?: {
67
+ // latitude of the the address
68
+ latitude?: number;
69
+ // longitude of the the address
70
+ longitude?: number;
71
+ };
72
+ }
73
+
74
+ export interface Label {
75
+ en?: string;
76
+ fr?: string;
77
+ }
78
+
79
+ export interface DateInfo {
80
+ deleted?: string;
81
+ created?: string;
82
+ modified?: string;
83
+ }
84
+
85
+ export interface DeviceMapping {
86
+ device_type?: string;
87
+ site_device_id?: string;
88
+ name?: string;
89
+ business_units?: string[];
90
+ }
91
+
92
+ export interface BrandDeviceMapping {
93
+ device_type: string;
94
+ site_device_id: string;
95
+ business_units?: string[];
96
+ }
97
+
98
+ export interface Brand {
99
+ // brand
100
+ id?: string;
101
+ // ISO timestamp when the brand was soft deleted
102
+ deleted_at?: string;
103
+ // The CDL id representing the sector this brand belongs to
104
+ sector?: string;
105
+ name?: string;
106
+ label?: Label;
107
+ sequence?: number;
108
+ timezone?: string;
109
+ description?: string;
110
+ address?: Address;
111
+ menus?: MenuHours[];
112
+ date?: DateInfo;
113
+ hours?: Hours[];
114
+ deliveryHours?: DeliveryHours[];
115
+ style?: {
116
+ logo?: string;
117
+ main_logo?: string;
118
+ alt_logo?: string;
119
+ };
120
+ // The CDL id representing the PoS for this brand
121
+ pos?: string;
122
+ terminals?: Record<string, any>[];
123
+ device_mapping?: Record<string, BrandDeviceMapping[]>;
124
+ timeslots?: {
125
+ time?: string;
126
+ averagePrepTime?: string;
127
+ duration_minutes?: number;
128
+ customers_per_slot?: number;
129
+ menu_items_per_slot?: number;
130
+ delivery_time?: string;
131
+ delivery_customers_per_slot?: number;
132
+ delivery_menu_items_per_slot?: number;
133
+ delivery_prep_time?: string;
134
+ delivery_is_user_defined?: boolean;
135
+ delivery_user_defined?: {
136
+ start_time: string;
137
+ end_time: string;
138
+ delivery_destinations?: string[];
139
+ }[];
140
+ };
141
+ is?: {
142
+ pickup_supported?: boolean;
143
+ delivery_supported?: boolean;
144
+ frictionless_supported?: boolean;
145
+ plu_enabled?: boolean;
146
+ promo_exemptions_enabled?: boolean;
147
+ local_images_enabled?: boolean;
148
+ hidden?: boolean;
149
+ show_in_kiosk?: boolean;
150
+ show_in_pos?: boolean;
151
+ item_desc_edit_enabled?: boolean;
152
+ scan_and_go_supported?: boolean;
153
+ calories_edit_enabled?: boolean;
154
+ special_instructions_enabled?: boolean;
155
+ dining_hall?: boolean;
156
+ [index: string]: any;
157
+ };
158
+ // The CDL id representing the brand
159
+ brand?: string;
160
+ // The CDL id representing the location of this brand
161
+ location?: string;
162
+ // location group
163
+ group?: string;
164
+ // The CDL id representing the payment provider of this brand
165
+ payment_provider?: string;
166
+ // @deprecated
167
+ location_description?: string;
168
+ // The CDL id representing the company of this brand
169
+ company?: string;
170
+ config?: {
171
+ private?: Record<string, any>;
172
+ public?: Record<string, any>;
173
+ };
174
+ tax_rate?: number;
175
+ meta?: Record<string, any>;
176
+ descriptions?: {
177
+ location?: Label;
178
+ };
179
+ estimated_wait_time?: {
180
+ delivery?: WaitTime;
181
+ pickup?: WaitTime;
182
+ };
183
+ state?: {
184
+ pickup?: BrandOrMenuState;
185
+ delivery?: BrandOrMenuState;
186
+ };
187
+ }
188
+
189
+ export interface MenuHours {
190
+ id?: string;
191
+ label?: Label;
192
+ hours?: Hours[];
193
+ is_pickup?: boolean;
194
+ is_delivery?: boolean;
195
+ is_frictionless?: boolean;
196
+ state?: BrandOrMenuState;
197
+ is_disabled?: boolean;
198
+ }
199
+
200
+ export interface Hours {
201
+ id?: string;
202
+ date?: {
203
+ deleted?: string;
204
+ start?: string;
205
+ end?: string;
206
+ };
207
+ day?: {
208
+ start?: number;
209
+ end?: number;
210
+ };
211
+ hours?: string;
212
+ }
213
+
214
+ export interface DeliveryHours {
215
+ id?: string;
216
+ day?: {
217
+ start?: number;
218
+ end?: number;
219
+ };
220
+ hours?: string;
221
+ }
222
+
223
+ export interface WaitTime {
224
+ // maxium wait time to the next time slot in minutes
225
+ max: number;
226
+ // minimum wait time to the next time slot in minutes
227
+ min: number;
228
+ // the epoch timestamp of the next available ready time for a station
229
+ ready_time: number;
230
+ }
231
+
232
+ export type BrandOrMenuState = 'open' | 'closed' | 'preorder';
233
+
234
+ export interface MarketPlace {
235
+ stations?: Station[];
236
+ label?: Label;
237
+ location_description?: Label;
238
+ logo?: string;
239
+ is?: {
240
+ enabled?: boolean;
241
+ pickup_supported?: boolean;
242
+ delivery_supported?: boolean;
243
+ };
244
+ delivery_details?: {
245
+ show_single_timeslot?: boolean;
246
+ show_instructions?: boolean;
247
+ runner_app_enabled?: boolean;
248
+ };
249
+ delivery_destinations?: string[];
250
+ pickup_instruction?: Label;
251
+ hours?: Hours[];
252
+ deliveryHours?: DeliveryHours[];
253
+ service_fee?: {
254
+ type?: string;
255
+ value?: number;
256
+ };
257
+ [index: string]: any;
258
+ }
259
+
260
+ export interface Station {
261
+ // The CDL id representing the brand of the station object
262
+ brand?: string;
263
+ // The CDL id representing the menu of the station object
264
+ menu?: string;
265
+ [index: string]: any;
266
+ }
267
+
3
268
  export interface LocationGroupUpdatedEvent {
4
269
  id: string;
5
270
  type: 'LocationGroupUpdatedEvent';
@@ -9,59 +274,7 @@ export interface LocationGroupUpdatedEvent {
9
274
  traceId?: string;
10
275
  };
11
276
  payload: {
12
- group: {
13
- // group id
14
- id: string;
15
- // ISO timestamp when the group was soft deleted
16
- deletedAt?: string;
17
- // Name of the group
18
- name: string;
19
- label?: {
20
- en?: string;
21
- fr?: string;
22
- };
23
- // Distance in meters from the group
24
- distance?: number;
25
- // Array of Location objects
26
- locations?: Record<string, any>[];
27
- address?: {
28
- // Suite number of the address, if applicable
29
- suite?: string;
30
- // First line of the address, should include street number
31
- address?: string;
32
- // City of the address
33
- city?: string;
34
- // State of the address, also province in Canada
35
- state?: string;
36
- // Country of the address
37
- country?: string;
38
- // Zip code or postal code of the address
39
- zip?: string;
40
- coordinates?: {
41
- // latitude of the address
42
- latitude?: number;
43
- // longitude of the address
44
- longitude?: number;
45
- };
46
- };
47
- // Additional metadata
48
- meta?: Record<string, any>;
49
- style?: {
50
- logo?: string;
51
- mainLogo?: string;
52
- altLogo?: string;
53
- appThemeId?: string;
54
- };
55
- // Timezone of the group
56
- timezone?: string;
57
- // Device mapping configuration
58
- deviceMapping?: Record<string, any>;
59
- date?: {
60
- deleted?: string;
61
- created?: string;
62
- modified?: string;
63
- };
64
- };
277
+ group: Group;
65
278
  };
66
279
  source: string;
67
280
  }