@compassdigital/sdk.typescript 4.67.0 → 4.69.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 +58 -57
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +503 -501
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +1 -1
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/announcement.d.ts +1 -1
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/auth.d.ts +3 -3
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +2 -2
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +11 -11
- package/lib/interface/centricos.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 +1 -1
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +1 -1
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/email.d.ts +1 -1
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +2 -2
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +9 -9
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +1 -1
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +6 -4
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +2 -1
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +149 -109
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +3 -3
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +7 -7
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +10 -10
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +3 -3
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +8 -8
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +10 -10
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/search.d.ts +8 -8
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +7 -7
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +8 -8
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +2 -2
- package/lib/interface/tax.d.ts.map +1 -1
- package/lib/interface/user.d.ts +16 -16
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +6 -6
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +10395 -10394
- package/src/interface/ai.ts +22 -22
- package/src/interface/announcement.ts +60 -60
- package/src/interface/auth.ts +68 -68
- package/src/interface/calendar.ts +94 -94
- package/src/interface/centricos.ts +145 -145
- package/src/interface/compassconnect.ts +59 -59
- package/src/interface/config.ts +166 -166
- package/src/interface/datalake.ts +13 -13
- package/src/interface/email.ts +13 -13
- package/src/interface/file.ts +18 -18
- package/src/interface/frictionless.ts +177 -177
- package/src/interface/kds.ts +49 -49
- package/src/interface/location.ts +771 -769
- package/src/interface/mealplan.ts +155 -154
- package/src/interface/menu.ts +4079 -4018
- package/src/interface/notification.ts +51 -51
- package/src/interface/order.ts +464 -464
- package/src/interface/partner.ts +823 -823
- package/src/interface/payment.ts +278 -278
- package/src/interface/promo.ts +373 -373
- package/src/interface/report.ts +348 -348
- package/src/interface/search.ts +135 -135
- package/src/interface/shoppingcart.ts +429 -429
- package/src/interface/task.ts +212 -212
- package/src/interface/tax.ts +69 -69
- package/src/interface/user.ts +410 -410
- package/src/interface/vendor.ts +215 -215
package/src/interface/partner.ts
CHANGED
|
@@ -1,213 +1,213 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
3
|
|
|
4
|
-
import { RequestQuery, BaseRequest } from
|
|
4
|
+
import { RequestQuery, BaseRequest } from './util';
|
|
5
5
|
|
|
6
6
|
export interface Error {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
message?: string;
|
|
8
|
+
code?: number;
|
|
9
|
+
data?: Record<string, any>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export interface ShoppingCartResponse {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
13
|
+
// shoppingcart
|
|
14
|
+
id?: string;
|
|
15
|
+
// location
|
|
16
|
+
location?: string;
|
|
17
|
+
// menu
|
|
18
|
+
menu?: string;
|
|
19
|
+
// brand
|
|
20
|
+
brand?: string;
|
|
21
|
+
date?: Record<string, any>;
|
|
22
|
+
items?: ItemResponse[];
|
|
23
|
+
sub_total?: {
|
|
24
|
+
amount?: MonetaryValue;
|
|
25
|
+
};
|
|
26
|
+
promo?: {
|
|
27
|
+
code?: string;
|
|
28
|
+
provider?: 'fp' | 'voucherify';
|
|
29
|
+
amount_off?: MonetaryValue;
|
|
30
|
+
percent_off?: MonetaryValue;
|
|
31
|
+
amount?: MonetaryValue;
|
|
32
|
+
app?: string;
|
|
33
|
+
discount?: Record<string, any>;
|
|
34
|
+
provider_data?: FPValidationData;
|
|
35
|
+
};
|
|
36
|
+
//@deprecated
|
|
37
|
+
loyalty?: {
|
|
38
|
+
coupon?: {
|
|
39
|
+
code?: string;
|
|
40
|
+
amount_off?: MonetaryValue;
|
|
41
|
+
amount?: MonetaryValue;
|
|
42
|
+
name?: string;
|
|
43
|
+
};
|
|
44
|
+
// Points to be earned for this shopping cart total
|
|
45
|
+
order_loyalty_points?: boolean;
|
|
46
|
+
};
|
|
47
|
+
discount?: {
|
|
48
|
+
code?: string;
|
|
49
|
+
provider?: 'fp' | 'voucherify';
|
|
50
|
+
amount_off?: MonetaryValue;
|
|
51
|
+
percent_off?: MonetaryValue;
|
|
52
|
+
amount?: MonetaryValue;
|
|
53
|
+
discount?: Record<string, any>;
|
|
54
|
+
provider_data?: FPValidationData;
|
|
55
|
+
};
|
|
56
|
+
payment_method?: {
|
|
57
|
+
// Mealplan payment details
|
|
58
|
+
mealplan?: {
|
|
59
|
+
id?: string;
|
|
60
|
+
tender?: string;
|
|
61
|
+
total?: MonetaryValue;
|
|
62
|
+
type?: PaymentType;
|
|
63
|
+
};
|
|
64
|
+
// Credit Cart payment details
|
|
65
|
+
credit_card?: {
|
|
66
|
+
card_type?: string;
|
|
67
|
+
last4?: string;
|
|
68
|
+
total?: MonetaryValue;
|
|
69
|
+
type?: PaymentType;
|
|
70
|
+
};
|
|
71
|
+
// Digital Wallet Pay payment details
|
|
72
|
+
digital_wallet_pay?: {
|
|
73
|
+
wallet_type?: string;
|
|
74
|
+
total?: MonetaryValue;
|
|
75
|
+
type?: PaymentType;
|
|
76
|
+
};
|
|
77
|
+
// Meal Swipes payment details
|
|
78
|
+
meal_swipes?: {
|
|
79
|
+
id?: string;
|
|
80
|
+
tender?: string;
|
|
81
|
+
tender_type?: string;
|
|
82
|
+
tender_name?: string;
|
|
83
|
+
swipes?: MonetaryValue;
|
|
84
|
+
rate?: MonetaryValue;
|
|
85
|
+
total?: MonetaryValue;
|
|
86
|
+
type?: PaymentType;
|
|
87
|
+
};
|
|
88
|
+
// Meal Exchange payment details
|
|
89
|
+
meal_exchange?: {
|
|
90
|
+
id?: string;
|
|
91
|
+
tender?: string;
|
|
92
|
+
type?: PaymentType;
|
|
93
|
+
};
|
|
94
|
+
badge_pay?: CashlessTender;
|
|
95
|
+
stipend?: CashlessTender;
|
|
96
|
+
voucher?: CashlessTender;
|
|
97
|
+
coupon_voucher?: CashlessTender;
|
|
98
|
+
};
|
|
99
|
+
taxes?: Taxes;
|
|
100
|
+
total?: {
|
|
101
|
+
amount?: MonetaryValue;
|
|
102
|
+
meals?: MonetaryValue;
|
|
103
|
+
};
|
|
104
|
+
exemptions?: {
|
|
105
|
+
tax?: boolean;
|
|
106
|
+
};
|
|
107
|
+
order?: {
|
|
108
|
+
// order
|
|
109
|
+
id?: string;
|
|
110
|
+
};
|
|
111
|
+
service_fee?: {
|
|
112
|
+
amount?: MonetaryValue;
|
|
113
|
+
};
|
|
114
|
+
delivery_fee?: {
|
|
115
|
+
amount?: MonetaryValue;
|
|
116
|
+
};
|
|
117
|
+
is?: {
|
|
118
|
+
// Shoppingcart Type: delivery, pickup
|
|
119
|
+
type?: 'delivery' | 'pickup' | 'scan_and_go' | 'frictionless';
|
|
120
|
+
// If an order should be paid with meal exchange. If true, this will calculate meals total.
|
|
121
|
+
mx_cart?: boolean;
|
|
122
|
+
// If a user's email or email domain is a match in a sites list of tax exempt emails or domains
|
|
123
|
+
email_tax_exempt?: boolean;
|
|
124
|
+
// Indicates to clients that a tax recalculation is required
|
|
125
|
+
tax_calculation_required?: boolean;
|
|
126
|
+
};
|
|
127
|
+
meta?: {
|
|
128
|
+
// Raw request from any vendor integrated with CDL
|
|
129
|
+
vendor?: Record<string, any>;
|
|
130
|
+
[index: string]: any;
|
|
131
|
+
};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export interface ItemResponse {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
135
|
+
// can be cdl item id or stringified timestamp
|
|
136
|
+
id: string;
|
|
137
|
+
description?: Label;
|
|
138
|
+
// index based on cdl id or stringified timestamp
|
|
139
|
+
_index?: string;
|
|
140
|
+
quantity: Quantity;
|
|
141
|
+
unit?: number;
|
|
142
|
+
price?: Price;
|
|
143
|
+
// Final item price after LTO/Bundle/BOGO etc is applied on the item.
|
|
144
|
+
sale_price?: {
|
|
145
|
+
active?: boolean;
|
|
146
|
+
amount?: MonetaryValue;
|
|
147
|
+
};
|
|
148
|
+
// Subtotal of the item including all options
|
|
149
|
+
_subtotal?: {
|
|
150
|
+
amount?: MonetaryValue;
|
|
151
|
+
};
|
|
152
|
+
// Promo applied to this item
|
|
153
|
+
_promo?: {
|
|
154
|
+
amount?: MonetaryValue;
|
|
155
|
+
};
|
|
156
|
+
// discount applied to this item
|
|
157
|
+
_discount?: {
|
|
158
|
+
amount?: MonetaryValue;
|
|
159
|
+
};
|
|
160
|
+
meta?: {
|
|
161
|
+
// menu id
|
|
162
|
+
menu?: string;
|
|
163
|
+
// brand id
|
|
164
|
+
brand?: string;
|
|
165
|
+
brand_label?: Label;
|
|
166
|
+
taxes?: string[];
|
|
167
|
+
menu_tax_tags?: string[];
|
|
168
|
+
orderable?: boolean;
|
|
169
|
+
volante_id?: string;
|
|
170
|
+
[index: string]: any;
|
|
171
|
+
};
|
|
172
|
+
options?: {
|
|
173
|
+
id?: string;
|
|
174
|
+
label?: Label;
|
|
175
|
+
meta?: {
|
|
176
|
+
taxes?: string[];
|
|
177
|
+
original_label?: Label;
|
|
178
|
+
};
|
|
179
|
+
items?: {
|
|
180
|
+
// option/modifier
|
|
181
|
+
id?: string;
|
|
182
|
+
price?: Price;
|
|
183
|
+
quantity?: Quantity;
|
|
184
|
+
label?: Label;
|
|
185
|
+
// index
|
|
186
|
+
_index?: string;
|
|
187
|
+
meta?: {
|
|
188
|
+
sort_number?: number;
|
|
189
|
+
original_label?: Label;
|
|
190
|
+
taxes?: string[];
|
|
191
|
+
};
|
|
192
|
+
amount_off_exclusions?: AmountOffExclusion[];
|
|
193
|
+
is?: {
|
|
194
|
+
disabled?: boolean;
|
|
195
|
+
};
|
|
196
|
+
}[];
|
|
197
|
+
is?: {
|
|
198
|
+
disabled?: boolean;
|
|
199
|
+
};
|
|
200
|
+
}[];
|
|
201
|
+
// Details about discount like BOGO, LTO, Bundle etc.
|
|
202
|
+
item_discount?: Record<string, any>;
|
|
203
|
+
// user specified instructions for the item
|
|
204
|
+
special_instructions?: string;
|
|
205
|
+
amount_off_exclusions?: AmountOffExclusion[];
|
|
206
|
+
added_on?: string;
|
|
207
|
+
meal_value?: IntegerValue;
|
|
208
|
+
category?: Label;
|
|
209
|
+
tax_rate?: MonetaryValue;
|
|
210
|
+
label?: Label;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
export type MonetaryValue = number;
|
|
@@ -215,674 +215,674 @@ export type MonetaryValue = number;
|
|
|
215
215
|
export type PaymentType = string;
|
|
216
216
|
|
|
217
217
|
export interface FPValidationData {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
218
|
+
discountIncentives?: {
|
|
219
|
+
id?: string;
|
|
220
|
+
program?: {
|
|
221
|
+
code?: string;
|
|
222
|
+
};
|
|
223
|
+
[index: string]: any;
|
|
224
|
+
}[];
|
|
225
|
+
[index: string]: any;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
export type AmountOffExclusion =
|
|
228
|
+
export type AmountOffExclusion = 'discount' | 'promo';
|
|
229
229
|
|
|
230
230
|
export interface Label {
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
en?: string;
|
|
232
|
+
fr?: string;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
export type IntegerValue = number;
|
|
236
236
|
|
|
237
237
|
export interface Price {
|
|
238
|
-
|
|
238
|
+
amount?: MonetaryValue;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
export type Quantity = number;
|
|
242
242
|
|
|
243
243
|
export interface CashlessTender {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
244
|
+
id?: string;
|
|
245
|
+
total?: MonetaryValue;
|
|
246
|
+
tender?: string;
|
|
247
|
+
name?: string;
|
|
248
|
+
type?: PaymentType;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
export interface Taxes {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
252
|
+
amount?: MonetaryValue;
|
|
253
|
+
rate?: MonetaryValue;
|
|
254
|
+
breakdown?: {
|
|
255
|
+
taxable_amount?: MonetaryValue;
|
|
256
|
+
tax_collectable?: MonetaryValue;
|
|
257
|
+
combined_tax_rate?: MonetaryValue;
|
|
258
|
+
gst?: MonetaryValue;
|
|
259
|
+
pst?: MonetaryValue;
|
|
260
|
+
[index: string]: any;
|
|
261
|
+
};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
export interface LocationGroup {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
265
|
+
// group
|
|
266
|
+
id?: string;
|
|
267
|
+
name?: string;
|
|
268
|
+
label?: {
|
|
269
|
+
en?: string;
|
|
270
|
+
fr?: string;
|
|
271
|
+
};
|
|
272
|
+
// Distance in meters from the group
|
|
273
|
+
distance?: number;
|
|
274
|
+
locations?: Location[];
|
|
275
|
+
address?: Address;
|
|
276
|
+
meta?: {
|
|
277
|
+
[index: string]: any;
|
|
278
|
+
};
|
|
279
|
+
style?: Record<string, any>;
|
|
280
|
+
timezone?: string;
|
|
281
|
+
[index: string]: any;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
export interface Location {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
285
|
+
// location
|
|
286
|
+
id?: string;
|
|
287
|
+
operation_id?: number;
|
|
288
|
+
name?: string;
|
|
289
|
+
label?: {
|
|
290
|
+
en?: string;
|
|
291
|
+
fr?: string;
|
|
292
|
+
};
|
|
293
|
+
search?: string[];
|
|
294
|
+
app?: string;
|
|
295
|
+
address?: Address;
|
|
296
|
+
latitude?: number;
|
|
297
|
+
longitude?: number;
|
|
298
|
+
brands?: Brand[];
|
|
299
|
+
meta?: {
|
|
300
|
+
[index: string]: any;
|
|
301
|
+
};
|
|
302
|
+
phone?: string;
|
|
303
|
+
// group
|
|
304
|
+
location_group?: string;
|
|
305
|
+
// multigroup
|
|
306
|
+
location_multigroup?: string;
|
|
307
|
+
// sector
|
|
308
|
+
sector?: string;
|
|
309
|
+
date?: {
|
|
310
|
+
deleted?: string;
|
|
311
|
+
created?: string;
|
|
312
|
+
modified?: string;
|
|
313
|
+
};
|
|
314
|
+
market_place?: {
|
|
315
|
+
label?: {
|
|
316
|
+
en?: string;
|
|
317
|
+
fr?: string;
|
|
318
|
+
};
|
|
319
|
+
location_description?: {
|
|
320
|
+
en?: string;
|
|
321
|
+
fr?: string;
|
|
322
|
+
};
|
|
323
|
+
logo?: string;
|
|
324
|
+
is?: {
|
|
325
|
+
pickup_supported?: boolean;
|
|
326
|
+
delivery_supported?: boolean;
|
|
327
|
+
};
|
|
328
|
+
delivery_details?: {
|
|
329
|
+
show_single_timeslot?: boolean;
|
|
330
|
+
show_instructions?: boolean;
|
|
331
|
+
runner_app_enabled?: boolean;
|
|
332
|
+
};
|
|
333
|
+
delivery_destinations?: string[];
|
|
334
|
+
pickup_instruction?: {
|
|
335
|
+
en?: string;
|
|
336
|
+
fr?: string;
|
|
337
|
+
};
|
|
338
|
+
hours?: Hours[];
|
|
339
|
+
deliveryHours?: DeliveryHours[];
|
|
340
|
+
service_fee?: {
|
|
341
|
+
type?: string;
|
|
342
|
+
value?: number;
|
|
343
|
+
};
|
|
344
|
+
[index: string]: any;
|
|
345
|
+
};
|
|
346
|
+
[index: string]: any;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
export interface Brand {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
350
|
+
// brand
|
|
351
|
+
id?: string;
|
|
352
|
+
// sector
|
|
353
|
+
sector?: string;
|
|
354
|
+
name?: string;
|
|
355
|
+
label?: {
|
|
356
|
+
en?: string;
|
|
357
|
+
fr?: string;
|
|
358
|
+
};
|
|
359
|
+
timezone?: string;
|
|
360
|
+
description?: string;
|
|
361
|
+
//@deprecated
|
|
362
|
+
latitude?: number;
|
|
363
|
+
//@deprecated
|
|
364
|
+
longitude?: number;
|
|
365
|
+
address?: Address;
|
|
366
|
+
menus?: MenuHours[];
|
|
367
|
+
date?: {
|
|
368
|
+
deleted?: string;
|
|
369
|
+
created?: string;
|
|
370
|
+
};
|
|
371
|
+
hours?: Hours[];
|
|
372
|
+
deliveryHours?: DeliveryHours[];
|
|
373
|
+
style?: Record<string, any>;
|
|
374
|
+
// pos
|
|
375
|
+
pos?: string;
|
|
376
|
+
terminals?: Record<string, any>[];
|
|
377
|
+
device_mapping?: {
|
|
378
|
+
[index: string]: {
|
|
379
|
+
device_type: string;
|
|
380
|
+
site_device_id: string;
|
|
381
|
+
business_units: string[];
|
|
382
|
+
}[];
|
|
383
|
+
};
|
|
384
|
+
timeslots?: {
|
|
385
|
+
time?: string;
|
|
386
|
+
averagePrepTime?: string;
|
|
387
|
+
duration_minutes?: number;
|
|
388
|
+
customers_per_slot?: number;
|
|
389
|
+
menu_items_per_slot?: number;
|
|
390
|
+
delivery_time?: string;
|
|
391
|
+
delivery_customers_per_slot?: number;
|
|
392
|
+
delivery_menu_items_per_slot?: number;
|
|
393
|
+
delivery_prep_time?: string;
|
|
394
|
+
delivery_is_user_defined?: boolean;
|
|
395
|
+
delivery_user_defined?: {
|
|
396
|
+
start_time: string;
|
|
397
|
+
end_time: string;
|
|
398
|
+
delivery_destinations?: string[];
|
|
399
|
+
}[];
|
|
400
|
+
};
|
|
401
|
+
is?: {
|
|
402
|
+
pickup_supported?: boolean;
|
|
403
|
+
delivery_supported?: boolean;
|
|
404
|
+
plu_enabled?: boolean;
|
|
405
|
+
promo_exemptions_enabled?: boolean;
|
|
406
|
+
local_images_enabled?: boolean;
|
|
407
|
+
hidden?: boolean;
|
|
408
|
+
show_in_kiosk?: boolean;
|
|
409
|
+
show_in_pos?: boolean;
|
|
410
|
+
item_desc_edit_enabled?: boolean;
|
|
411
|
+
scan_and_go_supported?: boolean;
|
|
412
|
+
calories_edit_enabled?: boolean;
|
|
413
|
+
// admin panel toggle
|
|
414
|
+
special_instructions?: boolean;
|
|
415
|
+
dining_hall?: boolean;
|
|
416
|
+
[index: string]: any;
|
|
417
|
+
};
|
|
418
|
+
// brand
|
|
419
|
+
brand?: string;
|
|
420
|
+
// location
|
|
421
|
+
location?: string;
|
|
422
|
+
// location group
|
|
423
|
+
group?: string;
|
|
424
|
+
// payment
|
|
425
|
+
payment_provider?: string;
|
|
426
|
+
//@deprecated
|
|
427
|
+
location_description?: string;
|
|
428
|
+
// company
|
|
429
|
+
company?: string;
|
|
430
|
+
config?: {
|
|
431
|
+
private?: Record<string, any>;
|
|
432
|
+
public?: Record<string, any>;
|
|
433
|
+
};
|
|
434
|
+
tax_rate?: number;
|
|
435
|
+
meta?: {
|
|
436
|
+
scout?: {
|
|
437
|
+
user_id?: string;
|
|
438
|
+
name?: {
|
|
439
|
+
first?: string;
|
|
440
|
+
last?: string;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
partner?: {
|
|
444
|
+
user_id?: string;
|
|
445
|
+
name?: {
|
|
446
|
+
first?: string;
|
|
447
|
+
last?: string;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
contact?: {
|
|
451
|
+
name?: string;
|
|
452
|
+
role?: string;
|
|
453
|
+
email?: string;
|
|
454
|
+
phone?: string;
|
|
455
|
+
};
|
|
456
|
+
market_id?: string;
|
|
457
|
+
partner_type?: string;
|
|
458
|
+
business_number?: number;
|
|
459
|
+
website?: string;
|
|
460
|
+
cuisine_types?: string[];
|
|
461
|
+
status?: 'await_partner' | 'await_scout' | 'completed';
|
|
462
|
+
active?: boolean;
|
|
463
|
+
max_showcase_items?: number;
|
|
464
|
+
jde_category?: string;
|
|
465
|
+
software_integrations?: {
|
|
466
|
+
system365?: string;
|
|
467
|
+
jwo?: string;
|
|
468
|
+
};
|
|
469
|
+
[index: string]: any;
|
|
470
|
+
};
|
|
471
|
+
descriptions?: {
|
|
472
|
+
location?: {
|
|
473
|
+
en?: string;
|
|
474
|
+
fr?: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
estimated_wait_time?: {
|
|
478
|
+
delivery?: WaitTime;
|
|
479
|
+
pickup?: WaitTime;
|
|
480
|
+
};
|
|
481
|
+
state?: {
|
|
482
|
+
pickup?: MenuHours['state'];
|
|
483
|
+
delivery?: MenuHours['state'];
|
|
484
|
+
};
|
|
485
|
+
[index: string]: any;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
export interface Address {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
489
|
+
// Suite number of the address, if applicable
|
|
490
|
+
suite?: string;
|
|
491
|
+
// First line of the address, should include street number
|
|
492
|
+
address?: string;
|
|
493
|
+
// City of the address
|
|
494
|
+
city?: string;
|
|
495
|
+
// State of the address, also province in Canada
|
|
496
|
+
state?: string;
|
|
497
|
+
// Country of the address
|
|
498
|
+
country?: string;
|
|
499
|
+
// Zip code or postal code of the address
|
|
500
|
+
zip?: string;
|
|
501
|
+
coordinates?: {
|
|
502
|
+
// latitude of the the address
|
|
503
|
+
latitude?: number;
|
|
504
|
+
// longitude of the the address
|
|
505
|
+
longitude?: number;
|
|
506
|
+
};
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
export interface MenuHours {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
510
|
+
// menu
|
|
511
|
+
id?: string;
|
|
512
|
+
label?: {
|
|
513
|
+
en?: string;
|
|
514
|
+
};
|
|
515
|
+
hours?: Hours[];
|
|
516
|
+
is_pickup?: boolean;
|
|
517
|
+
is_delivery?: boolean;
|
|
518
|
+
is_frictionless?: boolean;
|
|
519
|
+
// Identifies a brand or menu state, i.e open, closed or accepting preorders
|
|
520
|
+
state?: 'open' | 'closed' | 'preorder';
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
export interface Hours {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
524
|
+
// hours
|
|
525
|
+
id?: string;
|
|
526
|
+
date?: {
|
|
527
|
+
deleted?: string;
|
|
528
|
+
start?: string;
|
|
529
|
+
end?: string;
|
|
530
|
+
};
|
|
531
|
+
day?: {
|
|
532
|
+
start?: number;
|
|
533
|
+
end?: number;
|
|
534
|
+
};
|
|
535
|
+
hours?: string;
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
export interface DeliveryHours {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
539
|
+
// hours
|
|
540
|
+
id?: string;
|
|
541
|
+
day?: {
|
|
542
|
+
start?: number;
|
|
543
|
+
end?: number;
|
|
544
|
+
};
|
|
545
|
+
hours?: string;
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
export interface WaitTime {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
549
|
+
// maxium wait time to the next time slot in minutes
|
|
550
|
+
max: number;
|
|
551
|
+
// minimum wait time to the next time slot in minutes
|
|
552
|
+
min: number;
|
|
553
|
+
// the epoch timestamp of the next available ready time for a station
|
|
554
|
+
ready_time: number;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
export interface Menu {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
558
|
+
// menu
|
|
559
|
+
id?: string;
|
|
560
|
+
date?: {
|
|
561
|
+
created?: string;
|
|
562
|
+
modified?: string;
|
|
563
|
+
published?: string;
|
|
564
|
+
};
|
|
565
|
+
label?: {
|
|
566
|
+
en?: string;
|
|
567
|
+
};
|
|
568
|
+
groups?: Group[];
|
|
569
|
+
// menu
|
|
570
|
+
parent_id?: string;
|
|
571
|
+
// brand
|
|
572
|
+
location_brand?: string;
|
|
573
|
+
// company
|
|
574
|
+
company?: string;
|
|
575
|
+
// sector
|
|
576
|
+
sector?: string;
|
|
577
|
+
is?: {
|
|
578
|
+
disabled?: boolean;
|
|
579
|
+
hidden?: boolean;
|
|
580
|
+
linked?: boolean;
|
|
581
|
+
promo_exemptions_enabled?: boolean;
|
|
582
|
+
plu_enabled?: boolean;
|
|
583
|
+
item_images_enabled?: boolean;
|
|
584
|
+
item_showcase_enabled?: boolean;
|
|
585
|
+
item_desc_edit_enabled?: boolean;
|
|
586
|
+
calories_edit_enabled?: boolean;
|
|
587
|
+
item_label_edit_enabled?: boolean;
|
|
588
|
+
frictionless?: boolean;
|
|
589
|
+
category_images_enabled?: boolean;
|
|
590
|
+
};
|
|
591
|
+
meta?: {
|
|
592
|
+
// User ID
|
|
593
|
+
locked_by_user?: string;
|
|
594
|
+
// User ID
|
|
595
|
+
last_modified_user?: string;
|
|
596
|
+
centricos?: boolean;
|
|
597
|
+
version?: number;
|
|
598
|
+
[index: string]: any;
|
|
599
|
+
};
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
export interface Group {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
603
|
+
// group
|
|
604
|
+
id?: string;
|
|
605
|
+
name?: string;
|
|
606
|
+
label?: {
|
|
607
|
+
en?: string;
|
|
608
|
+
fr?: string;
|
|
609
|
+
};
|
|
610
|
+
items?: {
|
|
611
|
+
// item
|
|
612
|
+
id?: string;
|
|
613
|
+
label?: {
|
|
614
|
+
en?: string;
|
|
615
|
+
};
|
|
616
|
+
name?: string;
|
|
617
|
+
description?: {
|
|
618
|
+
en?: string;
|
|
619
|
+
};
|
|
620
|
+
price?: {
|
|
621
|
+
amount?: number;
|
|
622
|
+
currency?: string;
|
|
623
|
+
};
|
|
624
|
+
// Meal exchange value of the item
|
|
625
|
+
meal_value?: number;
|
|
626
|
+
sale_price?: {
|
|
627
|
+
amount?: number;
|
|
628
|
+
currency?: string;
|
|
629
|
+
};
|
|
630
|
+
// The number of units that belong to this item. For example, a dozen doughnuts should have a unit value of 12
|
|
631
|
+
unit?: number;
|
|
632
|
+
ingredients?: Record<string, any>[];
|
|
633
|
+
amount_off_exclusions?: AmountOffExclusionTypes[];
|
|
634
|
+
nutrition?: {
|
|
635
|
+
//@deprecated
|
|
636
|
+
kcal?: number;
|
|
637
|
+
calories?: Nutrition;
|
|
638
|
+
serving_size?: Nutrition;
|
|
639
|
+
total_fat?: Nutrition;
|
|
640
|
+
saturated_fat?: Nutrition;
|
|
641
|
+
trans_fat?: Nutrition;
|
|
642
|
+
cholesterol?: Nutrition;
|
|
643
|
+
sodium?: Nutrition;
|
|
644
|
+
total_carbohydrate?: Nutrition;
|
|
645
|
+
dietary_fiber?: Nutrition;
|
|
646
|
+
sugars?: Nutrition;
|
|
647
|
+
protein?: Nutrition;
|
|
648
|
+
well_being?: Nutrition;
|
|
649
|
+
[index: string]: any;
|
|
650
|
+
};
|
|
651
|
+
certified?: {
|
|
652
|
+
vegan?: boolean;
|
|
653
|
+
vegetarian?: boolean;
|
|
654
|
+
seafood_watch?: boolean;
|
|
655
|
+
wellbeing?: boolean;
|
|
656
|
+
farm_to_fork?: boolean;
|
|
657
|
+
in_balance?: boolean;
|
|
658
|
+
organic?: boolean;
|
|
659
|
+
no_gluten_ingredients?: boolean;
|
|
660
|
+
halal?: boolean;
|
|
661
|
+
kosher?: boolean;
|
|
662
|
+
humane?: boolean;
|
|
663
|
+
locally_crafted?: boolean;
|
|
664
|
+
nuts?: boolean;
|
|
665
|
+
oracle_garden_grown?: boolean;
|
|
666
|
+
oracle_oyes?: boolean;
|
|
667
|
+
peanut_free?: boolean;
|
|
668
|
+
tree_nut_free?: boolean;
|
|
669
|
+
wheat_free?: boolean;
|
|
670
|
+
non_gmo?: boolean;
|
|
671
|
+
milk_free?: boolean;
|
|
672
|
+
egg_free?: boolean;
|
|
673
|
+
soy_free?: boolean;
|
|
674
|
+
fair_trade?: boolean;
|
|
675
|
+
rainforest_alliance?: boolean;
|
|
676
|
+
salt_free?: boolean;
|
|
677
|
+
};
|
|
678
|
+
options?: {
|
|
679
|
+
// modifier_group
|
|
680
|
+
id?: string;
|
|
681
|
+
label?: {
|
|
682
|
+
en?: string;
|
|
683
|
+
};
|
|
684
|
+
unique_name?: string;
|
|
685
|
+
name?: string;
|
|
686
|
+
items?: {
|
|
687
|
+
// option
|
|
688
|
+
id?: string;
|
|
689
|
+
label?: {
|
|
690
|
+
en?: string;
|
|
691
|
+
};
|
|
692
|
+
name?: string;
|
|
693
|
+
description?: {
|
|
694
|
+
en?: string;
|
|
695
|
+
};
|
|
696
|
+
price?: {
|
|
697
|
+
amount?: number;
|
|
698
|
+
currency?: string;
|
|
699
|
+
};
|
|
700
|
+
reporting?: {
|
|
701
|
+
category?: {
|
|
702
|
+
primary?: string;
|
|
703
|
+
secondary?: string;
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
weight?: {
|
|
707
|
+
unit?: string;
|
|
708
|
+
amount?: number;
|
|
709
|
+
};
|
|
710
|
+
image?: {
|
|
711
|
+
src?: string;
|
|
712
|
+
sizes?: {
|
|
713
|
+
original?: string;
|
|
714
|
+
thumbnail_80_80?: string;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
sku?: number;
|
|
718
|
+
nutrition?: {
|
|
719
|
+
//@deprecated
|
|
720
|
+
kcal?: number;
|
|
721
|
+
calories?: Nutrition;
|
|
722
|
+
};
|
|
723
|
+
certified?: {
|
|
724
|
+
vegan?: boolean;
|
|
725
|
+
};
|
|
726
|
+
modifier_sets?: {
|
|
727
|
+
category?: string;
|
|
728
|
+
list?: string[];
|
|
729
|
+
}[];
|
|
730
|
+
meta?: {
|
|
731
|
+
// chit sort order
|
|
732
|
+
sort_number?: number;
|
|
733
|
+
// menu sort order
|
|
734
|
+
menu_sort_number?: number;
|
|
735
|
+
plu?: string;
|
|
736
|
+
sizing?: {
|
|
737
|
+
name?: string;
|
|
738
|
+
posid?: string;
|
|
739
|
+
price?: number;
|
|
740
|
+
}[];
|
|
741
|
+
tax?: {
|
|
742
|
+
tax_tag_code?: string;
|
|
743
|
+
};
|
|
744
|
+
[index: string]: any;
|
|
745
|
+
};
|
|
746
|
+
is?: {
|
|
747
|
+
disabled?: boolean;
|
|
748
|
+
hidden?: boolean;
|
|
749
|
+
out_of_stock?: boolean;
|
|
750
|
+
};
|
|
751
|
+
amount_off_exclusions?: AmountOffExclusionTypes[];
|
|
752
|
+
}[];
|
|
753
|
+
min?: number;
|
|
754
|
+
max?: number;
|
|
755
|
+
is?: {
|
|
756
|
+
disabled?: boolean;
|
|
757
|
+
hidden?: boolean;
|
|
758
|
+
out_of_stock?: boolean;
|
|
759
|
+
incremental?: boolean;
|
|
760
|
+
};
|
|
761
|
+
meta?: {
|
|
762
|
+
// chit sort order
|
|
763
|
+
sort_number?: number;
|
|
764
|
+
// menu sort order
|
|
765
|
+
menu_sort_number?: number;
|
|
766
|
+
[index: string]: any;
|
|
767
|
+
};
|
|
768
|
+
limit?: number;
|
|
769
|
+
[index: string]: any;
|
|
770
|
+
}[];
|
|
771
|
+
required?: boolean;
|
|
772
|
+
special?: boolean;
|
|
773
|
+
meta?: {
|
|
774
|
+
superplate?: {
|
|
775
|
+
type_id?: number;
|
|
776
|
+
type?: string;
|
|
777
|
+
};
|
|
778
|
+
featured?: {
|
|
779
|
+
sort_number?: number;
|
|
780
|
+
dates?: {
|
|
781
|
+
start?: string;
|
|
782
|
+
end?: string;
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
// chit sort order
|
|
786
|
+
sort_number?: number;
|
|
787
|
+
// menu sort order
|
|
788
|
+
menu_sort_number?: number;
|
|
789
|
+
// barcodes of the item
|
|
790
|
+
barcodes?: string[];
|
|
791
|
+
tax?: {
|
|
792
|
+
tax_tag_code?: string;
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
category?: {
|
|
796
|
+
en?: string;
|
|
797
|
+
};
|
|
798
|
+
location?: string;
|
|
799
|
+
sku?: number;
|
|
800
|
+
item_number?: number;
|
|
801
|
+
image?: {
|
|
802
|
+
src?: string;
|
|
803
|
+
sizes?: {
|
|
804
|
+
original?: string;
|
|
805
|
+
thumbnail_80_80?: string;
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
weight?: {
|
|
809
|
+
unit?: string;
|
|
810
|
+
amount?: number;
|
|
811
|
+
};
|
|
812
|
+
line_route?: string;
|
|
813
|
+
reporting?: {
|
|
814
|
+
category?: {
|
|
815
|
+
primary?: string;
|
|
816
|
+
secondary?: string;
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
//@deprecated
|
|
820
|
+
is_deleted?: boolean;
|
|
821
|
+
is?: {
|
|
822
|
+
disabled?: boolean;
|
|
823
|
+
hidden?: boolean;
|
|
824
|
+
meq_eligible?: boolean;
|
|
825
|
+
out_of_stock?: boolean;
|
|
826
|
+
deleted?: boolean;
|
|
827
|
+
featured?: boolean;
|
|
828
|
+
};
|
|
829
|
+
}[];
|
|
830
|
+
//@deprecated
|
|
831
|
+
is_disabled?: boolean;
|
|
832
|
+
is?: {
|
|
833
|
+
disabled?: boolean;
|
|
834
|
+
hidden?: boolean;
|
|
835
|
+
item_images_enabled?: boolean;
|
|
836
|
+
};
|
|
837
|
+
meta?: {
|
|
838
|
+
// chit sort order
|
|
839
|
+
sort_number?: number;
|
|
840
|
+
// menu sort order
|
|
841
|
+
menu_sort_number?: number;
|
|
842
|
+
[index: string]: any;
|
|
843
|
+
};
|
|
844
|
+
image?: {
|
|
845
|
+
src?: string;
|
|
846
|
+
sizes?: {
|
|
847
|
+
original?: string;
|
|
848
|
+
thumbnail_80_80?: string;
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
851
|
}
|
|
852
852
|
|
|
853
853
|
export interface Nutrition {
|
|
854
|
-
|
|
855
|
-
|
|
854
|
+
amount?: number;
|
|
855
|
+
unit?: string;
|
|
856
856
|
}
|
|
857
857
|
|
|
858
|
-
export type AmountOffExclusionTypes =
|
|
858
|
+
export type AmountOffExclusionTypes = 'loyalty' | 'discount' | 'promo';
|
|
859
859
|
|
|
860
860
|
export interface CognitionStore {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
861
|
+
// UUID for external store
|
|
862
|
+
uuid?: string;
|
|
863
|
+
// Store name
|
|
864
|
+
name?: string;
|
|
865
|
+
// Full address
|
|
866
|
+
address?: string;
|
|
867
|
+
city?: string;
|
|
868
|
+
state?: string;
|
|
869
|
+
// Abbreviated address
|
|
870
|
+
street_address?: string;
|
|
871
|
+
// ISO code for currency
|
|
872
|
+
currency_code?: string;
|
|
873
|
+
latitude?: number;
|
|
874
|
+
longitude?: number;
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
export interface Success {
|
|
878
|
-
|
|
878
|
+
success?: boolean;
|
|
879
879
|
}
|
|
880
880
|
|
|
881
881
|
// POST /partner/event/{id} - Send an event from 3rd party to our system
|
|
882
882
|
|
|
883
883
|
export interface PostPartnerEventPath {
|
|
884
|
-
|
|
885
|
-
|
|
884
|
+
// provider
|
|
885
|
+
id: string;
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
export type PostPartnerEventBody = Record<string, any>;
|
|
@@ -890,46 +890,46 @@ export type PostPartnerEventBody = Record<string, any>;
|
|
|
890
890
|
export type PostPartnerEventResponse = Success;
|
|
891
891
|
|
|
892
892
|
export interface PostPartnerEventRequest extends BaseRequest, PostPartnerEventPath {
|
|
893
|
-
|
|
893
|
+
body: PostPartnerEventBody;
|
|
894
894
|
}
|
|
895
895
|
|
|
896
896
|
// GET /partner/swagger.json
|
|
897
897
|
|
|
898
898
|
export interface GetPartnerSwaggerQuery {
|
|
899
|
-
|
|
900
|
-
|
|
899
|
+
// Graphql query string
|
|
900
|
+
_query?: string;
|
|
901
901
|
}
|
|
902
902
|
|
|
903
903
|
export interface GetPartnerSwaggerResponse {
|
|
904
|
-
|
|
904
|
+
[index: string]: any;
|
|
905
905
|
}
|
|
906
906
|
|
|
907
907
|
export interface GetPartnerSwaggerRequest
|
|
908
|
-
|
|
909
|
-
|
|
908
|
+
extends BaseRequest,
|
|
909
|
+
RequestQuery<GetPartnerSwaggerQuery> {}
|
|
910
910
|
|
|
911
911
|
// POST /partner/{id}/menu - Create a Partner menu from files(only xls for now)
|
|
912
912
|
|
|
913
913
|
export interface PostPartnerMenuPath {
|
|
914
|
-
|
|
915
|
-
|
|
914
|
+
// partner
|
|
915
|
+
id: string;
|
|
916
916
|
}
|
|
917
917
|
|
|
918
918
|
export interface PostPartnerMenuBody {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
919
|
+
// Link for S3 menu file(file is uploaded to S3 before it gets processed)
|
|
920
|
+
s3_link: string;
|
|
921
|
+
// CDL Id of a location group units of which being updated
|
|
922
|
+
location_group: string;
|
|
923
|
+
// Should make items visible in local menu by default
|
|
924
|
+
default_items_visible?: boolean;
|
|
925
925
|
}
|
|
926
926
|
|
|
927
927
|
export interface PostPartnerMenuResponse {
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
928
|
+
menus?: {
|
|
929
|
+
id: string;
|
|
930
|
+
}[];
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
export interface PostPartnerMenuRequest extends BaseRequest, PostPartnerMenuPath {
|
|
934
|
-
|
|
934
|
+
body: PostPartnerMenuBody;
|
|
935
935
|
}
|