@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.
- package/lib/index.d.ts +17 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/payment.d.ts +35 -0
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/messages/events/LocationBrandCreatedEvent.d.ts +211 -209
- package/lib/messages/events/LocationBrandCreatedEvent.d.ts.map +1 -1
- package/lib/messages/events/LocationBrandUpdatedEvent.d.ts +211 -209
- package/lib/messages/events/LocationBrandUpdatedEvent.d.ts.map +1 -1
- package/lib/messages/events/LocationCompanyCreatedEvent.d.ts +304 -0
- package/lib/messages/events/LocationCompanyCreatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationCompanyCreatedEvent.js +4 -0
- package/lib/messages/events/LocationCompanyCreatedEvent.js.map +1 -0
- package/lib/messages/events/LocationCompanyUpdatedEvent.d.ts +304 -0
- package/lib/messages/events/LocationCompanyUpdatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationCompanyUpdatedEvent.js +4 -0
- package/lib/messages/events/LocationCompanyUpdatedEvent.js.map +1 -0
- package/lib/messages/events/LocationCreatedEvent.d.ts +260 -66
- package/lib/messages/events/LocationCreatedEvent.d.ts.map +1 -1
- package/lib/messages/events/LocationDeliveryDestinationCreatedEvent.d.ts +34 -0
- package/lib/messages/events/LocationDeliveryDestinationCreatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationDeliveryDestinationCreatedEvent.js +4 -0
- package/lib/messages/events/LocationDeliveryDestinationCreatedEvent.js.map +1 -0
- package/lib/messages/events/LocationDeliveryDestinationUpdatedEvent.d.ts +34 -0
- package/lib/messages/events/LocationDeliveryDestinationUpdatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationDeliveryDestinationUpdatedEvent.js +4 -0
- package/lib/messages/events/LocationDeliveryDestinationUpdatedEvent.js.map +1 -0
- package/lib/messages/events/LocationGroupCreatedEvent.d.ts +222 -61
- package/lib/messages/events/LocationGroupCreatedEvent.d.ts.map +1 -1
- package/lib/messages/events/LocationGroupUpdatedEvent.d.ts +222 -37
- package/lib/messages/events/LocationGroupUpdatedEvent.d.ts.map +1 -1
- package/lib/messages/events/LocationMultigroupCreatedEvent.d.ts +354 -0
- package/lib/messages/events/LocationMultigroupCreatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationMultigroupCreatedEvent.js +4 -0
- package/lib/messages/events/LocationMultigroupCreatedEvent.js.map +1 -0
- package/lib/messages/events/LocationMultigroupUpdatedEvent.d.ts +354 -0
- package/lib/messages/events/LocationMultigroupUpdatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationMultigroupUpdatedEvent.js +4 -0
- package/lib/messages/events/LocationMultigroupUpdatedEvent.js.map +1 -0
- package/lib/messages/events/LocationSectorCreatedEvent.d.ts +312 -0
- package/lib/messages/events/LocationSectorCreatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationSectorCreatedEvent.js +4 -0
- package/lib/messages/events/LocationSectorCreatedEvent.js.map +1 -0
- package/lib/messages/events/LocationSectorUpdatedEvent.d.ts +312 -0
- package/lib/messages/events/LocationSectorUpdatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationSectorUpdatedEvent.js +4 -0
- package/lib/messages/events/LocationSectorUpdatedEvent.js.map +1 -0
- package/lib/messages/events/LocationUpdatedEvent.d.ts +260 -66
- package/lib/messages/events/LocationUpdatedEvent.d.ts.map +1 -1
- package/lib/messages/events/index.d.ts +8 -0
- package/lib/messages/events/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +30 -0
- package/src/interface/payment.ts +49 -0
- package/src/messages/events/LocationBrandCreatedEvent.ts +246 -240
- package/src/messages/events/LocationBrandUpdatedEvent.ts +246 -240
- package/src/messages/events/LocationCompanyCreatedEvent.ts +391 -0
- package/src/messages/events/LocationCompanyUpdatedEvent.ts +391 -0
- package/src/messages/events/LocationCreatedEvent.ts +304 -95
- package/src/messages/events/LocationDeliveryDestinationCreatedEvent.ts +50 -0
- package/src/messages/events/LocationDeliveryDestinationUpdatedEvent.ts +50 -0
- package/src/messages/events/LocationGroupCreatedEvent.ts +266 -74
- package/src/messages/events/LocationGroupUpdatedEvent.ts +266 -53
- package/src/messages/events/LocationMultigroupCreatedEvent.ts +461 -0
- package/src/messages/events/LocationMultigroupUpdatedEvent.ts +461 -0
- package/src/messages/events/LocationSectorCreatedEvent.ts +405 -0
- package/src/messages/events/LocationSectorUpdatedEvent.ts +405 -0
- package/src/messages/events/LocationUpdatedEvent.ts +304 -95
- 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
|
|
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
|
-
|
|
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
|
|
11
|
-
|
|
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
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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 LocationCreatedEvent {
|
|
@@ -47,75 +324,7 @@ export interface LocationCreatedEvent {
|
|
|
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
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface DeliveryDestination {
|
|
4
|
+
// Unique identifier for the delivery destination
|
|
5
|
+
id: string;
|
|
6
|
+
// Name of the delivery destination
|
|
7
|
+
name: string;
|
|
8
|
+
// Boolean to indicate whether the delivery destination is a foodlocker or not
|
|
9
|
+
foodlocker: boolean;
|
|
10
|
+
address: Address;
|
|
11
|
+
// Additional information of the delivery destination
|
|
12
|
+
information?: string;
|
|
13
|
+
// Sort order for the delivery destination
|
|
14
|
+
sort_sequence?: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface Address {
|
|
18
|
+
// Suite number of the address, if applicable
|
|
19
|
+
suite?: string;
|
|
20
|
+
// First line of the address, should include street number
|
|
21
|
+
address?: string;
|
|
22
|
+
// City of the address
|
|
23
|
+
city?: string;
|
|
24
|
+
// State of the address, also province in Canada
|
|
25
|
+
state?: string;
|
|
26
|
+
// Country of the address
|
|
27
|
+
country?: string;
|
|
28
|
+
// Zip code or postal code of the address
|
|
29
|
+
zip?: string;
|
|
30
|
+
coordinates?: {
|
|
31
|
+
// latitude of the the address
|
|
32
|
+
latitude?: number;
|
|
33
|
+
// longitude of the the address
|
|
34
|
+
longitude?: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface LocationDeliveryDestinationCreatedEvent {
|
|
39
|
+
id: string;
|
|
40
|
+
type: 'LocationDeliveryDestinationCreatedEvent';
|
|
41
|
+
version: '0.0.1';
|
|
42
|
+
timestamp: string;
|
|
43
|
+
traceContext: {
|
|
44
|
+
traceId?: string;
|
|
45
|
+
};
|
|
46
|
+
payload: {
|
|
47
|
+
deliveryDestination: DeliveryDestination;
|
|
48
|
+
};
|
|
49
|
+
source: string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface DeliveryDestination {
|
|
4
|
+
// Unique identifier for the delivery destination
|
|
5
|
+
id: string;
|
|
6
|
+
// Name of the delivery destination
|
|
7
|
+
name: string;
|
|
8
|
+
// Boolean to indicate whether the delivery destination is a foodlocker or not
|
|
9
|
+
foodlocker: boolean;
|
|
10
|
+
address: Address;
|
|
11
|
+
// Additional information of the delivery destination
|
|
12
|
+
information?: string;
|
|
13
|
+
// Sort order for the delivery destination
|
|
14
|
+
sort_sequence?: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface Address {
|
|
18
|
+
// Suite number of the address, if applicable
|
|
19
|
+
suite?: string;
|
|
20
|
+
// First line of the address, should include street number
|
|
21
|
+
address?: string;
|
|
22
|
+
// City of the address
|
|
23
|
+
city?: string;
|
|
24
|
+
// State of the address, also province in Canada
|
|
25
|
+
state?: string;
|
|
26
|
+
// Country of the address
|
|
27
|
+
country?: string;
|
|
28
|
+
// Zip code or postal code of the address
|
|
29
|
+
zip?: string;
|
|
30
|
+
coordinates?: {
|
|
31
|
+
// latitude of the the address
|
|
32
|
+
latitude?: number;
|
|
33
|
+
// longitude of the the address
|
|
34
|
+
longitude?: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface LocationDeliveryDestinationUpdatedEvent {
|
|
39
|
+
id: string;
|
|
40
|
+
type: 'LocationDeliveryDestinationUpdatedEvent';
|
|
41
|
+
version: '0.0.1';
|
|
42
|
+
timestamp: string;
|
|
43
|
+
traceContext: {
|
|
44
|
+
traceId?: string;
|
|
45
|
+
};
|
|
46
|
+
payload: {
|
|
47
|
+
deliveryDestination: DeliveryDestination;
|
|
48
|
+
};
|
|
49
|
+
source: string;
|
|
50
|
+
}
|