@compassdigital/sdk.typescript 3.39.0 → 3.41.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/base.d.ts +3 -3
- package/lib/base.d.ts.map +1 -1
- package/lib/index.d.ts +83 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +86 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +8 -8
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +6 -6
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +1 -1
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +14 -14
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +2 -2
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/email.d.ts +2 -2
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +1 -1
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +7 -7
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +72 -70
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/loyalty.d.ts +11 -11
- package/lib/interface/loyalty.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +15 -9
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +144 -36
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +7 -7
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +19 -16
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +451 -420
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +12 -13
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +14 -14
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +25 -25
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +9 -9
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +142 -85
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +13 -13
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +58 -44
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/util.d.ts +1 -1
- package/lib/interface/util.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +24 -24
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +10 -5
- package/pipeline.yml +13 -0
- package/src/index.ts +219 -5
- package/src/interface/location.ts +8 -6
- package/src/interface/mealplan.ts +12 -1
- package/src/interface/menu.ts +175 -0
- package/src/interface/order.ts +4 -0
- package/src/interface/partner.ts +507 -469
- package/src/interface/payment.ts +2 -4
- package/src/interface/shoppingcart.ts +141 -72
- package/src/interface/user.ts +15 -0
|
@@ -9,52 +9,7 @@ export interface ShoppingCart {
|
|
|
9
9
|
menu?: string;
|
|
10
10
|
brand?: string;
|
|
11
11
|
date?: any;
|
|
12
|
-
items?:
|
|
13
|
-
id: string;
|
|
14
|
-
_index?: string;
|
|
15
|
-
quantity: number;
|
|
16
|
-
unit?: number;
|
|
17
|
-
price?: {
|
|
18
|
-
amount?: number;
|
|
19
|
-
};
|
|
20
|
-
sale_price?: {
|
|
21
|
-
active?: boolean;
|
|
22
|
-
amount?: number;
|
|
23
|
-
};
|
|
24
|
-
_subtotal?: {
|
|
25
|
-
amount?: number;
|
|
26
|
-
};
|
|
27
|
-
_promo?: {
|
|
28
|
-
amount?: number;
|
|
29
|
-
};
|
|
30
|
-
meta?: {
|
|
31
|
-
menu?: string;
|
|
32
|
-
brand?: string;
|
|
33
|
-
[index: string]: any;
|
|
34
|
-
};
|
|
35
|
-
options?: {
|
|
36
|
-
id?: string;
|
|
37
|
-
label?: {
|
|
38
|
-
en?: string;
|
|
39
|
-
};
|
|
40
|
-
meta?: any;
|
|
41
|
-
items?: {
|
|
42
|
-
id?: string;
|
|
43
|
-
label?: {
|
|
44
|
-
en?: string;
|
|
45
|
-
};
|
|
46
|
-
_index?: string;
|
|
47
|
-
meta?: any;
|
|
48
|
-
quantity?: number;
|
|
49
|
-
amount_off_exclusions?: string[];
|
|
50
|
-
}[];
|
|
51
|
-
}[];
|
|
52
|
-
item_discount?: any;
|
|
53
|
-
special_instructions?: string;
|
|
54
|
-
amount_off_exclusions?: string[];
|
|
55
|
-
added_on?: string;
|
|
56
|
-
[index: string]: any;
|
|
57
|
-
}[];
|
|
12
|
+
items?: Item[];
|
|
58
13
|
sub_total?: {
|
|
59
14
|
amount?: number;
|
|
60
15
|
};
|
|
@@ -65,6 +20,15 @@ export interface ShoppingCart {
|
|
|
65
20
|
amount?: number;
|
|
66
21
|
app?: string;
|
|
67
22
|
};
|
|
23
|
+
loyalty?: {
|
|
24
|
+
coupon?: {
|
|
25
|
+
code?: string;
|
|
26
|
+
amount_off?: number;
|
|
27
|
+
amount?: number;
|
|
28
|
+
name?: string;
|
|
29
|
+
};
|
|
30
|
+
order_loyalty_points?: boolean;
|
|
31
|
+
};
|
|
68
32
|
discount?: {
|
|
69
33
|
code?: string;
|
|
70
34
|
amount_off?: number;
|
|
@@ -100,19 +64,9 @@ export interface ShoppingCart {
|
|
|
100
64
|
id?: string;
|
|
101
65
|
tender?: string;
|
|
102
66
|
};
|
|
67
|
+
badge_pay?: BadgePay;
|
|
103
68
|
};
|
|
104
|
-
taxes?:
|
|
105
|
-
amount?: number;
|
|
106
|
-
rate?: number;
|
|
107
|
-
breakdown?: {
|
|
108
|
-
taxable_amount?: number;
|
|
109
|
-
tax_collectable?: number;
|
|
110
|
-
combined_tax_rate?: number;
|
|
111
|
-
gst?: number;
|
|
112
|
-
pst?: number;
|
|
113
|
-
[index: string]: any;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
69
|
+
taxes?: taxes;
|
|
116
70
|
total?: {
|
|
117
71
|
amount?: number;
|
|
118
72
|
meals?: number;
|
|
@@ -132,15 +86,78 @@ export interface ShoppingCart {
|
|
|
132
86
|
is?: {
|
|
133
87
|
type?: string;
|
|
134
88
|
mx_cart?: boolean;
|
|
135
|
-
|
|
89
|
+
email_tax_exempt?: boolean;
|
|
90
|
+
tax_calculation_required?: boolean;
|
|
136
91
|
};
|
|
137
92
|
meta?: {
|
|
138
93
|
vendor?: any;
|
|
139
94
|
[index: string]: any;
|
|
140
95
|
};
|
|
141
96
|
}
|
|
142
|
-
export
|
|
143
|
-
|
|
97
|
+
export interface Item {
|
|
98
|
+
id: string;
|
|
99
|
+
_index?: string;
|
|
100
|
+
quantity: number;
|
|
101
|
+
unit?: number;
|
|
102
|
+
price?: {
|
|
103
|
+
amount?: number;
|
|
104
|
+
};
|
|
105
|
+
sale_price?: {
|
|
106
|
+
active?: boolean;
|
|
107
|
+
amount?: number;
|
|
108
|
+
};
|
|
109
|
+
_subtotal?: {
|
|
110
|
+
amount?: number;
|
|
111
|
+
};
|
|
112
|
+
_promo?: {
|
|
113
|
+
amount?: number;
|
|
114
|
+
};
|
|
115
|
+
meta?: {
|
|
116
|
+
menu?: string;
|
|
117
|
+
brand?: string;
|
|
118
|
+
[index: string]: any;
|
|
119
|
+
};
|
|
120
|
+
options?: {
|
|
121
|
+
id?: string;
|
|
122
|
+
label?: {
|
|
123
|
+
en?: string;
|
|
124
|
+
};
|
|
125
|
+
meta?: any;
|
|
126
|
+
items?: {
|
|
127
|
+
id?: string;
|
|
128
|
+
label?: {
|
|
129
|
+
en?: string;
|
|
130
|
+
};
|
|
131
|
+
_index?: string;
|
|
132
|
+
meta?: any;
|
|
133
|
+
quantity?: number;
|
|
134
|
+
amount_off_exclusions?: string[];
|
|
135
|
+
}[];
|
|
136
|
+
}[];
|
|
137
|
+
item_discount?: any;
|
|
138
|
+
special_instructions?: string;
|
|
139
|
+
amount_off_exclusions?: string[];
|
|
140
|
+
added_on?: string;
|
|
141
|
+
[index: string]: any;
|
|
142
|
+
}
|
|
143
|
+
export interface BadgePay {
|
|
144
|
+
id?: string;
|
|
145
|
+
total?: number;
|
|
146
|
+
tender?: string;
|
|
147
|
+
name?: string;
|
|
148
|
+
}
|
|
149
|
+
export interface taxes {
|
|
150
|
+
amount?: number;
|
|
151
|
+
rate?: number;
|
|
152
|
+
breakdown?: {
|
|
153
|
+
taxable_amount?: number;
|
|
154
|
+
tax_collectable?: number;
|
|
155
|
+
combined_tax_rate?: number;
|
|
156
|
+
gst?: number;
|
|
157
|
+
pst?: number;
|
|
158
|
+
[index: string]: any;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
144
161
|
export interface LocationGroup {
|
|
145
162
|
id?: string;
|
|
146
163
|
name?: string;
|
|
@@ -149,215 +166,229 @@ export interface LocationGroup {
|
|
|
149
166
|
fr?: string;
|
|
150
167
|
};
|
|
151
168
|
distance?: number;
|
|
152
|
-
locations?:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
169
|
+
locations?: Location[];
|
|
170
|
+
address?: Address;
|
|
171
|
+
meta?: {
|
|
172
|
+
[index: string]: any;
|
|
173
|
+
};
|
|
174
|
+
style?: any;
|
|
175
|
+
[index: string]: any;
|
|
176
|
+
}
|
|
177
|
+
export interface Location {
|
|
178
|
+
id?: string;
|
|
179
|
+
operation_id?: number;
|
|
180
|
+
name?: string;
|
|
181
|
+
label?: {
|
|
182
|
+
en?: string;
|
|
183
|
+
fr?: string;
|
|
184
|
+
};
|
|
185
|
+
search?: string[];
|
|
186
|
+
app?: string;
|
|
187
|
+
address?: Address;
|
|
188
|
+
latitude?: number;
|
|
189
|
+
longitude?: number;
|
|
190
|
+
brands?: Brand[];
|
|
191
|
+
meta?: {
|
|
192
|
+
[index: string]: any;
|
|
193
|
+
};
|
|
194
|
+
phone?: string;
|
|
195
|
+
location_group?: string;
|
|
196
|
+
location_multigroup?: string;
|
|
197
|
+
sector?: string;
|
|
198
|
+
date?: {
|
|
199
|
+
deleted?: string;
|
|
200
|
+
created?: string;
|
|
201
|
+
modified?: string;
|
|
202
|
+
};
|
|
203
|
+
market_place?: {
|
|
156
204
|
label?: {
|
|
157
205
|
en?: string;
|
|
158
206
|
fr?: string;
|
|
159
207
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
latitude?: number;
|
|
164
|
-
longitude?: number;
|
|
165
|
-
brands?: {
|
|
166
|
-
id?: string;
|
|
167
|
-
sector?: string;
|
|
168
|
-
name?: string;
|
|
169
|
-
label?: {
|
|
170
|
-
en?: string;
|
|
171
|
-
fr?: string;
|
|
172
|
-
};
|
|
173
|
-
timezone?: string;
|
|
174
|
-
description?: string;
|
|
175
|
-
latitude?: number;
|
|
176
|
-
longitude?: number;
|
|
177
|
-
address?: {
|
|
178
|
-
suite?: string;
|
|
179
|
-
address?: string;
|
|
180
|
-
city?: string;
|
|
181
|
-
state?: string;
|
|
182
|
-
country?: string;
|
|
183
|
-
zip?: string;
|
|
184
|
-
coordinates?: {
|
|
185
|
-
latitude?: number;
|
|
186
|
-
longitude?: number;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
menus?: {
|
|
190
|
-
id?: string;
|
|
191
|
-
label?: {
|
|
192
|
-
en?: string;
|
|
193
|
-
};
|
|
194
|
-
hours?: any[];
|
|
195
|
-
is_pickup?: boolean;
|
|
196
|
-
is_delivery?: boolean;
|
|
197
|
-
is_frictionless?: boolean;
|
|
198
|
-
}[];
|
|
199
|
-
date?: {
|
|
200
|
-
created?: string;
|
|
201
|
-
};
|
|
202
|
-
hours?: {
|
|
203
|
-
id?: string;
|
|
204
|
-
date?: {
|
|
205
|
-
start?: string;
|
|
206
|
-
end?: string;
|
|
207
|
-
};
|
|
208
|
-
day?: {
|
|
209
|
-
start?: number;
|
|
210
|
-
end?: number;
|
|
211
|
-
};
|
|
212
|
-
hours?: string;
|
|
213
|
-
}[];
|
|
214
|
-
deliveryHours?: {
|
|
215
|
-
id?: string;
|
|
216
|
-
day?: {
|
|
217
|
-
start?: number;
|
|
218
|
-
end?: number;
|
|
219
|
-
};
|
|
220
|
-
hours?: string;
|
|
221
|
-
}[];
|
|
222
|
-
style?: any;
|
|
223
|
-
pos?: string;
|
|
224
|
-
terminals?: any[];
|
|
225
|
-
timeslots?: {
|
|
226
|
-
time?: string;
|
|
227
|
-
averagePrepTime?: string;
|
|
228
|
-
duration_minutes?: number;
|
|
229
|
-
customers_per_slot?: number;
|
|
230
|
-
menu_items_per_slot?: number;
|
|
231
|
-
delivery_time?: string;
|
|
232
|
-
delivery_customers_per_slot?: number;
|
|
233
|
-
delivery_menu_items_per_slot?: number;
|
|
234
|
-
delivery_prep_time?: string;
|
|
235
|
-
delivery_is_user_defined?: boolean;
|
|
236
|
-
delivery_user_defined?: {
|
|
237
|
-
start_time: string;
|
|
238
|
-
end_time: string;
|
|
239
|
-
delivery_destinations?: string[];
|
|
240
|
-
}[];
|
|
241
|
-
};
|
|
242
|
-
is?: {
|
|
243
|
-
pickup_supported?: boolean;
|
|
244
|
-
delivery_supported?: boolean;
|
|
245
|
-
plu_enabled?: boolean;
|
|
246
|
-
promo_exemptions_enabled?: boolean;
|
|
247
|
-
local_images_enabled?: boolean;
|
|
248
|
-
hidden?: boolean;
|
|
249
|
-
item_desc_edit_enabled?: boolean;
|
|
250
|
-
scan_and_go_supported?: boolean;
|
|
251
|
-
calories_edit_enabled?: boolean;
|
|
252
|
-
special_instructions?: boolean;
|
|
253
|
-
[index: string]: any;
|
|
254
|
-
};
|
|
255
|
-
brand?: string;
|
|
256
|
-
location?: string;
|
|
257
|
-
group?: string;
|
|
258
|
-
payment_provider?: string;
|
|
259
|
-
location_description?: string;
|
|
260
|
-
company?: string;
|
|
261
|
-
config?: {
|
|
262
|
-
private?: any;
|
|
263
|
-
public?: any;
|
|
264
|
-
};
|
|
265
|
-
tax_rate?: number;
|
|
266
|
-
meta?: {
|
|
267
|
-
scout?: {
|
|
268
|
-
user_id?: string;
|
|
269
|
-
name?: {
|
|
270
|
-
first?: string;
|
|
271
|
-
last?: string;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
partner?: {
|
|
275
|
-
user_id?: string;
|
|
276
|
-
name?: {
|
|
277
|
-
first?: string;
|
|
278
|
-
last?: string;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
contact?: {
|
|
282
|
-
name?: string;
|
|
283
|
-
role?: string;
|
|
284
|
-
email?: string;
|
|
285
|
-
phone?: string;
|
|
286
|
-
};
|
|
287
|
-
market_id?: string;
|
|
288
|
-
partner_type?: string;
|
|
289
|
-
business_number?: number;
|
|
290
|
-
website?: string;
|
|
291
|
-
cuisine_types?: string[];
|
|
292
|
-
status?: string;
|
|
293
|
-
active?: boolean;
|
|
294
|
-
max_showcase_items?: number;
|
|
295
|
-
jde_category?: string;
|
|
296
|
-
};
|
|
297
|
-
descriptions?: {
|
|
298
|
-
location?: {
|
|
299
|
-
en?: string;
|
|
300
|
-
fr?: string;
|
|
301
|
-
};
|
|
302
|
-
};
|
|
303
|
-
[index: string]: any;
|
|
304
|
-
}[];
|
|
305
|
-
meta?: any;
|
|
306
|
-
phone?: string;
|
|
307
|
-
location_group?: string;
|
|
308
|
-
location_multigroup?: string;
|
|
309
|
-
sector?: string;
|
|
310
|
-
date?: {
|
|
311
|
-
created?: string;
|
|
312
|
-
modified?: string;
|
|
208
|
+
location_description?: {
|
|
209
|
+
en?: string;
|
|
210
|
+
fr?: string;
|
|
313
211
|
};
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
212
|
+
logo?: string;
|
|
213
|
+
is?: {
|
|
214
|
+
pickup_supported?: boolean;
|
|
215
|
+
delivery_supported?: boolean;
|
|
216
|
+
};
|
|
217
|
+
delivery_details?: {
|
|
218
|
+
show_single_timeslot?: boolean;
|
|
219
|
+
show_instructions?: boolean;
|
|
220
|
+
runner_app_enabled?: boolean;
|
|
221
|
+
};
|
|
222
|
+
delivery_destinations?: string[];
|
|
223
|
+
pickup_instruction?: {
|
|
224
|
+
en?: string;
|
|
225
|
+
fr?: string;
|
|
226
|
+
};
|
|
227
|
+
hours?: any;
|
|
228
|
+
deliveryHours?: any;
|
|
229
|
+
service_fee?: {
|
|
230
|
+
type?: string;
|
|
231
|
+
value?: number;
|
|
232
|
+
};
|
|
233
|
+
[index: string]: any;
|
|
234
|
+
};
|
|
235
|
+
[index: string]: any;
|
|
236
|
+
}
|
|
237
|
+
export interface Brand {
|
|
238
|
+
id?: string;
|
|
239
|
+
sector?: string;
|
|
240
|
+
name?: string;
|
|
241
|
+
label?: {
|
|
242
|
+
en?: string;
|
|
243
|
+
fr?: string;
|
|
244
|
+
};
|
|
245
|
+
timezone?: string;
|
|
246
|
+
description?: string;
|
|
247
|
+
latitude?: number;
|
|
248
|
+
longitude?: number;
|
|
249
|
+
address?: Address;
|
|
250
|
+
menus?: MenuHours[];
|
|
251
|
+
date?: {
|
|
252
|
+
deleted?: string;
|
|
253
|
+
created?: string;
|
|
254
|
+
};
|
|
255
|
+
hours?: Hours[];
|
|
256
|
+
deliveryHours?: DeliveryHours[];
|
|
257
|
+
style?: any;
|
|
258
|
+
pos?: string;
|
|
259
|
+
terminals?: any[];
|
|
260
|
+
timeslots?: {
|
|
261
|
+
time?: string;
|
|
262
|
+
averagePrepTime?: string;
|
|
263
|
+
duration_minutes?: number;
|
|
264
|
+
customers_per_slot?: number;
|
|
265
|
+
menu_items_per_slot?: number;
|
|
266
|
+
delivery_time?: string;
|
|
267
|
+
delivery_customers_per_slot?: number;
|
|
268
|
+
delivery_menu_items_per_slot?: number;
|
|
269
|
+
delivery_prep_time?: string;
|
|
270
|
+
delivery_is_user_defined?: boolean;
|
|
271
|
+
delivery_user_defined?: {
|
|
272
|
+
start_time: string;
|
|
273
|
+
end_time: string;
|
|
333
274
|
delivery_destinations?: string[];
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
275
|
+
}[];
|
|
276
|
+
};
|
|
277
|
+
is?: {
|
|
278
|
+
pickup_supported?: boolean;
|
|
279
|
+
delivery_supported?: boolean;
|
|
280
|
+
plu_enabled?: boolean;
|
|
281
|
+
promo_exemptions_enabled?: boolean;
|
|
282
|
+
local_images_enabled?: boolean;
|
|
283
|
+
hidden?: boolean;
|
|
284
|
+
item_desc_edit_enabled?: boolean;
|
|
285
|
+
scan_and_go_supported?: boolean;
|
|
286
|
+
calories_edit_enabled?: boolean;
|
|
287
|
+
special_instructions?: boolean;
|
|
288
|
+
[index: string]: any;
|
|
289
|
+
};
|
|
290
|
+
brand?: string;
|
|
291
|
+
location?: string;
|
|
292
|
+
group?: string;
|
|
293
|
+
payment_provider?: string;
|
|
294
|
+
location_description?: string;
|
|
295
|
+
company?: string;
|
|
296
|
+
config?: {
|
|
297
|
+
private?: any;
|
|
298
|
+
public?: any;
|
|
299
|
+
};
|
|
300
|
+
tax_rate?: number;
|
|
301
|
+
meta?: {
|
|
302
|
+
scout?: {
|
|
303
|
+
user_id?: string;
|
|
304
|
+
name?: {
|
|
305
|
+
first?: string;
|
|
306
|
+
last?: string;
|
|
337
307
|
};
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
308
|
+
};
|
|
309
|
+
partner?: {
|
|
310
|
+
user_id?: string;
|
|
311
|
+
name?: {
|
|
312
|
+
first?: string;
|
|
313
|
+
last?: string;
|
|
343
314
|
};
|
|
344
|
-
[index: string]: any;
|
|
345
315
|
};
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
316
|
+
contact?: {
|
|
317
|
+
name?: string;
|
|
318
|
+
role?: string;
|
|
319
|
+
email?: string;
|
|
320
|
+
phone?: string;
|
|
321
|
+
};
|
|
322
|
+
market_id?: string;
|
|
323
|
+
partner_type?: string;
|
|
324
|
+
business_number?: number;
|
|
325
|
+
website?: string;
|
|
326
|
+
cuisine_types?: string[];
|
|
327
|
+
status?: string;
|
|
328
|
+
active?: boolean;
|
|
329
|
+
max_showcase_items?: number;
|
|
330
|
+
jde_category?: string;
|
|
350
331
|
[index: string]: any;
|
|
351
332
|
};
|
|
352
|
-
|
|
333
|
+
descriptions?: {
|
|
334
|
+
location?: {
|
|
335
|
+
en?: string;
|
|
336
|
+
fr?: string;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
estimated_wait_time?: {
|
|
340
|
+
delivery?: WaitTime;
|
|
341
|
+
pickup?: WaitTime;
|
|
342
|
+
};
|
|
353
343
|
[index: string]: any;
|
|
354
344
|
}
|
|
355
|
-
export
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
345
|
+
export interface Address {
|
|
346
|
+
suite?: string;
|
|
347
|
+
address?: string;
|
|
348
|
+
city?: string;
|
|
349
|
+
state?: string;
|
|
350
|
+
country?: string;
|
|
351
|
+
zip?: string;
|
|
352
|
+
coordinates?: {
|
|
353
|
+
latitude?: number;
|
|
354
|
+
longitude?: number;
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
export interface MenuHours {
|
|
358
|
+
id?: string;
|
|
359
|
+
label?: {
|
|
360
|
+
en?: string;
|
|
361
|
+
};
|
|
362
|
+
hours?: Hours[];
|
|
363
|
+
is_pickup?: boolean;
|
|
364
|
+
is_delivery?: boolean;
|
|
365
|
+
is_frictionless?: boolean;
|
|
366
|
+
}
|
|
367
|
+
export interface Hours {
|
|
368
|
+
id?: string;
|
|
369
|
+
date?: {
|
|
370
|
+
deleted?: string;
|
|
371
|
+
start?: string;
|
|
372
|
+
end?: string;
|
|
373
|
+
};
|
|
374
|
+
day?: {
|
|
375
|
+
start?: number;
|
|
376
|
+
end?: number;
|
|
377
|
+
};
|
|
378
|
+
hours?: string;
|
|
379
|
+
}
|
|
380
|
+
export interface DeliveryHours {
|
|
381
|
+
id?: string;
|
|
382
|
+
day?: {
|
|
383
|
+
start?: number;
|
|
384
|
+
end?: number;
|
|
385
|
+
};
|
|
386
|
+
hours?: string;
|
|
387
|
+
}
|
|
388
|
+
export interface WaitTime {
|
|
389
|
+
max: number;
|
|
390
|
+
min: number;
|
|
391
|
+
}
|
|
361
392
|
export interface Menu {
|
|
362
393
|
id?: string;
|
|
363
394
|
date?: {
|
|
@@ -368,202 +399,202 @@ export interface Menu {
|
|
|
368
399
|
label?: {
|
|
369
400
|
en?: string;
|
|
370
401
|
};
|
|
371
|
-
groups?:
|
|
402
|
+
groups?: Group[];
|
|
403
|
+
parent_id?: string;
|
|
404
|
+
location_brand?: string;
|
|
405
|
+
company?: string;
|
|
406
|
+
sector?: string;
|
|
407
|
+
is?: {
|
|
408
|
+
disabled?: boolean;
|
|
409
|
+
hidden?: boolean;
|
|
410
|
+
linked?: boolean;
|
|
411
|
+
promo_exemptions_enabled?: boolean;
|
|
412
|
+
plu_enabled?: boolean;
|
|
413
|
+
item_images_enabled?: boolean;
|
|
414
|
+
item_showcase_enabled?: boolean;
|
|
415
|
+
item_desc_edit_enabled?: boolean;
|
|
416
|
+
calories_edit_enabled?: boolean;
|
|
417
|
+
item_label_edit_enabled?: boolean;
|
|
418
|
+
};
|
|
419
|
+
meta?: {
|
|
420
|
+
locked_by_user?: string;
|
|
421
|
+
last_modified_user?: string;
|
|
422
|
+
[index: string]: any;
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
export interface Group {
|
|
426
|
+
id?: string;
|
|
427
|
+
label?: {
|
|
428
|
+
en?: string;
|
|
429
|
+
fr?: string;
|
|
430
|
+
};
|
|
431
|
+
items?: {
|
|
372
432
|
id?: string;
|
|
373
433
|
label?: {
|
|
374
434
|
en?: string;
|
|
375
|
-
fr?: string;
|
|
376
435
|
};
|
|
377
|
-
|
|
436
|
+
description?: {
|
|
437
|
+
en?: string;
|
|
438
|
+
};
|
|
439
|
+
price?: {
|
|
440
|
+
amount?: number;
|
|
441
|
+
currency?: string;
|
|
442
|
+
};
|
|
443
|
+
meal_value?: number;
|
|
444
|
+
sale_price?: {
|
|
445
|
+
amount?: number;
|
|
446
|
+
currency?: string;
|
|
447
|
+
};
|
|
448
|
+
unit?: number;
|
|
449
|
+
ingredients?: any[];
|
|
450
|
+
amount_off_exclusions?: string[];
|
|
451
|
+
nutrition?: {
|
|
452
|
+
kcal?: number;
|
|
453
|
+
calories?: any;
|
|
454
|
+
serving_size?: any;
|
|
455
|
+
total_fat?: any;
|
|
456
|
+
saturated_fat?: any;
|
|
457
|
+
trans_fat?: any;
|
|
458
|
+
cholesterol?: any;
|
|
459
|
+
sodium?: {
|
|
460
|
+
amount?: number;
|
|
461
|
+
unit?: string;
|
|
462
|
+
};
|
|
463
|
+
total_carbohydrate?: any;
|
|
464
|
+
dietary_fiber?: any;
|
|
465
|
+
sugars?: any;
|
|
466
|
+
protein?: any;
|
|
467
|
+
well_being?: any;
|
|
468
|
+
[index: string]: any;
|
|
469
|
+
};
|
|
470
|
+
certified?: {
|
|
471
|
+
vegan?: boolean;
|
|
472
|
+
vegetarian?: boolean;
|
|
473
|
+
seafood_watch?: boolean;
|
|
474
|
+
wellbeing?: boolean;
|
|
475
|
+
farm_to_fork?: boolean;
|
|
476
|
+
in_balance?: boolean;
|
|
477
|
+
organic?: boolean;
|
|
478
|
+
no_gluten_ingredients?: boolean;
|
|
479
|
+
halal?: boolean;
|
|
480
|
+
kosher?: boolean;
|
|
481
|
+
humane?: boolean;
|
|
482
|
+
locally_crafted?: boolean;
|
|
483
|
+
nuts?: boolean;
|
|
484
|
+
oracle_garden_grown?: boolean;
|
|
485
|
+
oracle_oyes?: boolean;
|
|
486
|
+
peanut_free?: boolean;
|
|
487
|
+
tree_nut_free?: boolean;
|
|
488
|
+
wheat_free?: boolean;
|
|
489
|
+
non_gmo?: boolean;
|
|
490
|
+
milk_free?: boolean;
|
|
491
|
+
egg_free?: boolean;
|
|
492
|
+
soy_free?: boolean;
|
|
493
|
+
fair_trade?: boolean;
|
|
494
|
+
rainforest_alliance?: boolean;
|
|
495
|
+
salt_free?: boolean;
|
|
496
|
+
};
|
|
497
|
+
options?: {
|
|
378
498
|
id?: string;
|
|
379
499
|
label?: {
|
|
380
500
|
en?: string;
|
|
381
501
|
};
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
};
|
|
385
|
-
price?: {
|
|
386
|
-
amount?: number;
|
|
387
|
-
currency?: string;
|
|
388
|
-
};
|
|
389
|
-
meal_value?: number;
|
|
390
|
-
sale_price?: {
|
|
391
|
-
amount?: number;
|
|
392
|
-
currency?: string;
|
|
393
|
-
};
|
|
394
|
-
unit?: number;
|
|
395
|
-
ingredients?: any[];
|
|
396
|
-
amount_off_exclusions?: string[];
|
|
397
|
-
nutrition?: {
|
|
398
|
-
kcal?: number;
|
|
399
|
-
calories?: any;
|
|
400
|
-
serving_size?: any;
|
|
401
|
-
total_fat?: any;
|
|
402
|
-
saturated_fat?: any;
|
|
403
|
-
trans_fat?: any;
|
|
404
|
-
cholesterol?: any;
|
|
405
|
-
sodium?: {
|
|
406
|
-
amount?: number;
|
|
407
|
-
unit?: string;
|
|
408
|
-
};
|
|
409
|
-
total_carbohydrate?: any;
|
|
410
|
-
dietary_fiber?: any;
|
|
411
|
-
sugars?: any;
|
|
412
|
-
protein?: any;
|
|
413
|
-
well_being?: any;
|
|
414
|
-
[index: string]: any;
|
|
415
|
-
};
|
|
416
|
-
certified?: {
|
|
417
|
-
vegan?: boolean;
|
|
418
|
-
vegetarian?: boolean;
|
|
419
|
-
seafood_watch?: boolean;
|
|
420
|
-
wellbeing?: boolean;
|
|
421
|
-
farm_to_fork?: boolean;
|
|
422
|
-
in_balance?: boolean;
|
|
423
|
-
organic?: boolean;
|
|
424
|
-
no_gluten_ingredients?: boolean;
|
|
425
|
-
halal?: boolean;
|
|
426
|
-
kosher?: boolean;
|
|
427
|
-
humane?: boolean;
|
|
428
|
-
locally_crafted?: boolean;
|
|
429
|
-
nuts?: boolean;
|
|
430
|
-
oracle_garden_grown?: boolean;
|
|
431
|
-
oracle_oyes?: boolean;
|
|
432
|
-
peanut_free?: boolean;
|
|
433
|
-
tree_nut_free?: boolean;
|
|
434
|
-
wheat_free?: boolean;
|
|
435
|
-
non_gmo?: boolean;
|
|
436
|
-
milk_free?: boolean;
|
|
437
|
-
egg_free?: boolean;
|
|
438
|
-
soy_free?: boolean;
|
|
439
|
-
fair_trade?: boolean;
|
|
440
|
-
rainforest_alliance?: boolean;
|
|
441
|
-
salt_free?: boolean;
|
|
442
|
-
};
|
|
443
|
-
options?: {
|
|
502
|
+
unique_name?: string;
|
|
503
|
+
items?: {
|
|
444
504
|
id?: string;
|
|
445
505
|
label?: {
|
|
446
506
|
en?: string;
|
|
447
507
|
};
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
label?: {
|
|
452
|
-
en?: string;
|
|
453
|
-
};
|
|
454
|
-
price?: {
|
|
455
|
-
amount?: number;
|
|
456
|
-
currency?: string;
|
|
457
|
-
};
|
|
458
|
-
sku?: number;
|
|
459
|
-
nutrition?: {
|
|
460
|
-
kcal?: number;
|
|
461
|
-
calories?: any;
|
|
462
|
-
};
|
|
463
|
-
certified?: {
|
|
464
|
-
vegan?: boolean;
|
|
465
|
-
};
|
|
466
|
-
modifier_sets?: {
|
|
467
|
-
category?: string;
|
|
468
|
-
list?: string[];
|
|
469
|
-
}[];
|
|
470
|
-
meta?: {
|
|
471
|
-
sort_number?: number;
|
|
472
|
-
menu_sort_number?: number;
|
|
473
|
-
[index: string]: any;
|
|
474
|
-
};
|
|
475
|
-
is?: {
|
|
476
|
-
disabled?: boolean;
|
|
477
|
-
hidden?: boolean;
|
|
478
|
-
out_of_stock?: boolean;
|
|
479
|
-
};
|
|
480
|
-
amount_off_exclusions?: any[];
|
|
481
|
-
}[];
|
|
482
|
-
min?: number;
|
|
483
|
-
max?: number;
|
|
484
|
-
is?: {
|
|
485
|
-
disabled?: boolean;
|
|
486
|
-
hidden?: boolean;
|
|
487
|
-
out_of_stock?: boolean;
|
|
508
|
+
price?: {
|
|
509
|
+
amount?: number;
|
|
510
|
+
currency?: string;
|
|
488
511
|
};
|
|
512
|
+
sku?: number;
|
|
513
|
+
nutrition?: {
|
|
514
|
+
kcal?: number;
|
|
515
|
+
calories?: any;
|
|
516
|
+
};
|
|
517
|
+
certified?: {
|
|
518
|
+
vegan?: boolean;
|
|
519
|
+
};
|
|
520
|
+
modifier_sets?: {
|
|
521
|
+
category?: string;
|
|
522
|
+
list?: string[];
|
|
523
|
+
}[];
|
|
489
524
|
meta?: {
|
|
490
525
|
sort_number?: number;
|
|
491
526
|
menu_sort_number?: number;
|
|
492
527
|
[index: string]: any;
|
|
493
528
|
};
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
meta?: {
|
|
499
|
-
superplate?: {
|
|
500
|
-
type_id?: number;
|
|
501
|
-
type?: string;
|
|
502
|
-
};
|
|
503
|
-
featured?: {
|
|
504
|
-
sort_number?: number;
|
|
505
|
-
dates?: {
|
|
506
|
-
start?: string;
|
|
507
|
-
end?: string;
|
|
508
|
-
};
|
|
529
|
+
is?: {
|
|
530
|
+
disabled?: boolean;
|
|
531
|
+
hidden?: boolean;
|
|
532
|
+
out_of_stock?: boolean;
|
|
509
533
|
};
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
en?: string;
|
|
515
|
-
};
|
|
516
|
-
location?: string;
|
|
517
|
-
sku?: number;
|
|
518
|
-
item_number?: number;
|
|
519
|
-
image?: {
|
|
520
|
-
src?: string;
|
|
521
|
-
};
|
|
522
|
-
is_deleted?: boolean;
|
|
534
|
+
amount_off_exclusions?: any[];
|
|
535
|
+
}[];
|
|
536
|
+
min?: number;
|
|
537
|
+
max?: number;
|
|
523
538
|
is?: {
|
|
524
539
|
disabled?: boolean;
|
|
525
540
|
hidden?: boolean;
|
|
526
|
-
meq_eligible?: boolean;
|
|
527
541
|
out_of_stock?: boolean;
|
|
528
|
-
deleted?: boolean;
|
|
529
|
-
featured?: boolean;
|
|
530
542
|
};
|
|
543
|
+
meta?: {
|
|
544
|
+
sort_number?: number;
|
|
545
|
+
menu_sort_number?: number;
|
|
546
|
+
[index: string]: any;
|
|
547
|
+
};
|
|
548
|
+
[index: string]: any;
|
|
531
549
|
}[];
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
is?: {
|
|
535
|
-
disabled?: boolean;
|
|
536
|
-
hidden?: boolean;
|
|
537
|
-
};
|
|
550
|
+
required?: boolean;
|
|
551
|
+
special?: boolean;
|
|
538
552
|
meta?: {
|
|
553
|
+
superplate?: {
|
|
554
|
+
type_id?: number;
|
|
555
|
+
type?: string;
|
|
556
|
+
};
|
|
557
|
+
featured?: {
|
|
558
|
+
sort_number?: number;
|
|
559
|
+
dates?: {
|
|
560
|
+
start?: string;
|
|
561
|
+
end?: string;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
539
564
|
sort_number?: number;
|
|
540
565
|
menu_sort_number?: number;
|
|
541
|
-
|
|
566
|
+
};
|
|
567
|
+
category?: {
|
|
568
|
+
en?: string;
|
|
569
|
+
};
|
|
570
|
+
location?: string;
|
|
571
|
+
sku?: number;
|
|
572
|
+
item_number?: number;
|
|
573
|
+
image?: {
|
|
574
|
+
src?: string;
|
|
575
|
+
};
|
|
576
|
+
is_deleted?: boolean;
|
|
577
|
+
is?: {
|
|
578
|
+
disabled?: boolean;
|
|
579
|
+
hidden?: boolean;
|
|
580
|
+
meq_eligible?: boolean;
|
|
581
|
+
out_of_stock?: boolean;
|
|
582
|
+
deleted?: boolean;
|
|
583
|
+
featured?: boolean;
|
|
542
584
|
};
|
|
543
585
|
}[];
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
company?: string;
|
|
547
|
-
sector?: string;
|
|
586
|
+
is_disabled?: boolean;
|
|
587
|
+
name?: string;
|
|
548
588
|
is?: {
|
|
549
589
|
disabled?: boolean;
|
|
550
590
|
hidden?: boolean;
|
|
551
|
-
linked?: boolean;
|
|
552
|
-
promo_exemptions_enabled?: boolean;
|
|
553
|
-
plu_enabled?: boolean;
|
|
554
|
-
item_images_enabled?: boolean;
|
|
555
|
-
item_showcase_enabled?: boolean;
|
|
556
|
-
item_desc_edit_enabled?: boolean;
|
|
557
|
-
calories_edit_enabled?: boolean;
|
|
558
|
-
item_label_edit_enabled?: boolean;
|
|
559
591
|
};
|
|
560
592
|
meta?: {
|
|
561
|
-
|
|
562
|
-
|
|
593
|
+
sort_number?: number;
|
|
594
|
+
menu_sort_number?: number;
|
|
563
595
|
[index: string]: any;
|
|
564
596
|
};
|
|
565
597
|
}
|
|
566
|
-
export declare type Group = any;
|
|
567
598
|
export interface CognitionStore {
|
|
568
599
|
uuid?: string;
|
|
569
600
|
name?: string;
|
|
@@ -587,7 +618,7 @@ export interface CoolrLocations {
|
|
|
587
618
|
};
|
|
588
619
|
[index: string]: any;
|
|
589
620
|
}
|
|
590
|
-
export
|
|
621
|
+
export type CoolrImages = any[];
|
|
591
622
|
export interface PostPartnerStandardcognitionShoppingcartBody {
|
|
592
623
|
items?: {
|
|
593
624
|
sku?: string;
|
|
@@ -597,7 +628,7 @@ export interface PostPartnerStandardcognitionShoppingcartBody {
|
|
|
597
628
|
shoppingcart?: string;
|
|
598
629
|
meta?: any;
|
|
599
630
|
}
|
|
600
|
-
export
|
|
631
|
+
export type PostPartnerStandardcognitionShoppingcartResponse = ShoppingCart;
|
|
601
632
|
export interface PostPartnerStandardcognitionShoppingcartRequest extends BaseRequest {
|
|
602
633
|
body: PostPartnerStandardcognitionShoppingcartBody;
|
|
603
634
|
}
|
|
@@ -605,14 +636,14 @@ export interface GetPartnerStandardcognitionLocationsQuery {
|
|
|
605
636
|
_query?: string;
|
|
606
637
|
}
|
|
607
638
|
export interface GetPartnerStandardcognitionLocationsResponse {
|
|
608
|
-
groups?: LocationGroup;
|
|
639
|
+
groups?: LocationGroup[];
|
|
609
640
|
}
|
|
610
641
|
export interface GetPartnerStandardcognitionLocationsRequest extends BaseRequest, RequestQuery<GetPartnerStandardcognitionLocationsQuery> {
|
|
611
642
|
}
|
|
612
643
|
export interface GetPartnerStandardcognitionStoresQuery {
|
|
613
644
|
_query?: string;
|
|
614
645
|
}
|
|
615
|
-
export
|
|
646
|
+
export type GetPartnerStandardcognitionStoresResponse = CognitionStore;
|
|
616
647
|
export interface GetPartnerStandardcognitionStoresRequest extends BaseRequest, RequestQuery<GetPartnerStandardcognitionStoresQuery> {
|
|
617
648
|
}
|
|
618
649
|
export interface PostPartnerStandardcognitionMenuBody {
|
|
@@ -622,7 +653,7 @@ export interface PostPartnerStandardcognitionMenuBody {
|
|
|
622
653
|
jsonfile?: string;
|
|
623
654
|
s3_link: string;
|
|
624
655
|
}
|
|
625
|
-
export
|
|
656
|
+
export type PostPartnerStandardcognitionMenuResponse = Menu;
|
|
626
657
|
export interface PostPartnerStandardcognitionMenuRequest extends BaseRequest {
|
|
627
658
|
body: PostPartnerStandardcognitionMenuBody;
|
|
628
659
|
}
|