@compassdigital/sdk.typescript 4.67.0 → 4.68.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 +5 -3
- 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
|
@@ -1,275 +1,276 @@
|
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
code?: number;
|
|
8
|
+
message?: string;
|
|
9
|
+
data?: Record<string, any>;
|
|
10
|
+
headers?: {
|
|
11
|
+
Location?: string;
|
|
12
|
+
};
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface Tender {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
// tender
|
|
17
|
+
id?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
balance?: number;
|
|
20
|
+
amount?: number;
|
|
21
|
+
type?: string;
|
|
22
|
+
is?: TenderIs;
|
|
23
|
+
currency?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export interface TenderIs {
|
|
27
|
-
|
|
27
|
+
validated?: boolean;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export interface TendersAndAuth {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
tenders?: Tender[];
|
|
32
|
+
auth?: AuthPayload;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export interface VerifyEmail {
|
|
36
|
-
|
|
36
|
+
email?: string;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface success {
|
|
40
|
-
|
|
40
|
+
success?: boolean;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export interface AuthPayload {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
44
|
+
webview?: {
|
|
45
|
+
url?: string;
|
|
46
|
+
method?: string;
|
|
47
|
+
encoding?: string;
|
|
48
|
+
body?: {
|
|
49
|
+
[index: string]: any;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
direct?: {
|
|
53
|
+
name?: {
|
|
54
|
+
en?: string;
|
|
55
|
+
};
|
|
56
|
+
description?: {
|
|
57
|
+
en?: string;
|
|
58
|
+
};
|
|
59
|
+
username_field?: {
|
|
60
|
+
en?: string;
|
|
61
|
+
};
|
|
62
|
+
password_field?: {
|
|
63
|
+
en?: string;
|
|
64
|
+
};
|
|
65
|
+
username_value?: string;
|
|
66
|
+
email_value?: string;
|
|
67
|
+
};
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
// POST /mealplan/{id} - Authenticate against the meal plan provider
|
|
71
71
|
|
|
72
72
|
export interface PostMealplanPath {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
// Meal plan ID
|
|
74
|
+
id: string;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export interface PostMealplanBody {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
username?: string;
|
|
79
|
+
password?: string;
|
|
80
|
+
// Used for email domain validation, if enabled for current mealplan.
|
|
81
|
+
email?: string;
|
|
82
|
+
lang?: string;
|
|
83
|
+
skey?: string;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
export interface PostMealplanResponse {
|
|
86
|
-
|
|
87
|
+
tenders?: Tender[];
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
export interface PostMealplanRequest extends BaseRequest, PostMealplanPath {
|
|
90
|
-
|
|
91
|
+
body: PostMealplanBody;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
// PUT /mealplan/{id} - Save a token for access to the meal plan
|
|
94
95
|
|
|
95
96
|
export interface PutMealplanPath {
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
// Meal plan ID
|
|
98
|
+
id: string;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
export interface PutMealplanBody {
|
|
101
|
-
|
|
102
|
+
token?: string;
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
export interface PutMealplanResponse {
|
|
105
|
-
|
|
106
|
+
tenders?: Tender[];
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
export interface PutMealplanRequest extends BaseRequest, PutMealplanPath {
|
|
109
|
-
|
|
110
|
+
body: PutMealplanBody;
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
// GET /mealplan/{id} - Check the user's meal plan tenders and get the authentication configuration
|
|
113
114
|
|
|
114
115
|
export interface GetMealplanPath {
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
// Meal plan ID
|
|
117
|
+
id: string;
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
export interface GetMealplanQuery {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
// Retrieve all tenders from the get_mealplan call. Defaults to false
|
|
122
|
+
all_tenders?: boolean;
|
|
123
|
+
// Graphql query string
|
|
124
|
+
_query?: string;
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
export type GetMealplanResponse = TendersAndAuth;
|
|
127
128
|
|
|
128
129
|
export interface GetMealplanRequest
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
extends BaseRequest,
|
|
131
|
+
RequestQuery<GetMealplanQuery>,
|
|
132
|
+
GetMealplanPath {}
|
|
132
133
|
|
|
133
134
|
// DELETE /mealplan/{id} - Delete a mealplan or a tender from the user's account
|
|
134
135
|
|
|
135
136
|
export interface DeleteMealplanPath {
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
// Meal plan ID
|
|
138
|
+
id: string;
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
export interface DeleteMealplanBody {
|
|
141
|
-
|
|
142
|
+
tenders?: string[];
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
export type DeleteMealplanResponse = TendersAndAuth;
|
|
145
146
|
|
|
146
147
|
export interface DeleteMealplanRequest extends BaseRequest, DeleteMealplanPath {
|
|
147
|
-
|
|
148
|
+
body: DeleteMealplanBody;
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
// POST /mealplan/{id}/callback - Callback endpoint for meal plans that make a call back from a webview workflow
|
|
151
152
|
|
|
152
153
|
export interface PostMealplanCallbackPath {
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
// Meal plan ID
|
|
155
|
+
id: string;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
export interface PostMealplanCallbackQuery {
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
// Determines whether the request originates from a web client or not
|
|
160
|
+
web?: boolean;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
export interface PostMealplanCallbackBody {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
// Used for ITC SSO
|
|
165
|
+
Credential?: string;
|
|
166
|
+
// Used for ITC SSO
|
|
167
|
+
token?: string;
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
export interface PostMealplanCallbackResponse {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
token?: string;
|
|
172
|
+
//@deprecated
|
|
173
|
+
cardNumber?: string;
|
|
173
174
|
}
|
|
174
175
|
|
|
175
176
|
export interface PostMealplanCallbackRequest
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
extends BaseRequest,
|
|
178
|
+
RequestQuery<PostMealplanCallbackQuery>,
|
|
179
|
+
PostMealplanCallbackPath {
|
|
180
|
+
body: PostMealplanCallbackBody;
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
// GET /mealplan/{id}/tender/{tender} - Check the user's tender balance
|
|
183
184
|
|
|
184
185
|
export interface GetMealplanTenderPath {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
// Meal plan ID
|
|
187
|
+
id: string;
|
|
188
|
+
// Tender ID
|
|
189
|
+
tender: string;
|
|
189
190
|
}
|
|
190
191
|
|
|
191
192
|
export interface GetMealplanTenderQuery {
|
|
192
|
-
|
|
193
|
-
|
|
193
|
+
// Graphql query string
|
|
194
|
+
_query?: string;
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
export type GetMealplanTenderResponse = Tender;
|
|
197
198
|
|
|
198
199
|
export interface GetMealplanTenderRequest
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
extends BaseRequest,
|
|
201
|
+
RequestQuery<GetMealplanTenderQuery>,
|
|
202
|
+
GetMealplanTenderPath {}
|
|
202
203
|
|
|
203
204
|
// DELETE /mealplan/{id}/tender/{tender} - Debit an amount from the tender balance
|
|
204
205
|
|
|
205
206
|
export interface DeleteMealplanTenderPath {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
// Meal plan ID
|
|
208
|
+
id: string;
|
|
209
|
+
// Tender ID
|
|
210
|
+
tender: string;
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
export interface DeleteMealplanTenderBody {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
214
|
+
amount: number;
|
|
215
|
+
type?: string;
|
|
216
|
+
conversion_amount?: number;
|
|
217
|
+
terminal_id?: string;
|
|
218
|
+
drain_order_type?: {
|
|
219
|
+
taxable?: boolean;
|
|
220
|
+
tax_exempt?: boolean;
|
|
221
|
+
};
|
|
221
222
|
}
|
|
222
223
|
|
|
223
224
|
export interface DeleteMealplanTenderResponse {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
225
|
+
// tender
|
|
226
|
+
id?: string;
|
|
227
|
+
name?: string;
|
|
228
|
+
balance?: number;
|
|
229
|
+
is?: TenderIs;
|
|
230
|
+
transaction_id?: string;
|
|
231
|
+
type?: number;
|
|
232
|
+
tender_id?: number;
|
|
233
|
+
currency?: string;
|
|
234
|
+
transaction_amount?: number;
|
|
234
235
|
}
|
|
235
236
|
|
|
236
237
|
export interface DeleteMealplanTenderRequest extends BaseRequest, DeleteMealplanTenderPath {
|
|
237
|
-
|
|
238
|
+
body: DeleteMealplanTenderBody;
|
|
238
239
|
}
|
|
239
240
|
|
|
240
241
|
// PATCH /mealplan/{id}/tender/{tender} - Refund an amount to the tender balance
|
|
241
242
|
|
|
242
243
|
export interface PatchMealplanTenderPath {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
244
|
+
// Meal plan ID
|
|
245
|
+
id: string;
|
|
246
|
+
// Tender ID
|
|
247
|
+
tender: string;
|
|
247
248
|
}
|
|
248
249
|
|
|
249
250
|
export interface PatchMealplanTenderBody {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
amount: number;
|
|
252
|
+
transaction_id?: string;
|
|
253
|
+
// Amount for order paid by user
|
|
254
|
+
transaction_amount?: number;
|
|
255
|
+
terminal_id?: string;
|
|
255
256
|
}
|
|
256
257
|
|
|
257
258
|
export type PatchMealplanTenderResponse = Tender;
|
|
258
259
|
|
|
259
260
|
export interface PatchMealplanTenderRequest extends BaseRequest, PatchMealplanTenderPath {
|
|
260
|
-
|
|
261
|
+
body: PatchMealplanTenderBody;
|
|
261
262
|
}
|
|
262
263
|
|
|
263
264
|
// POST /mealplan/{id}/verify - Send verification email to user linking a mealplan
|
|
264
265
|
|
|
265
266
|
export interface PostMealplanVerifyPath {
|
|
266
|
-
|
|
267
|
-
|
|
267
|
+
// Meal plan ID
|
|
268
|
+
id: string;
|
|
268
269
|
}
|
|
269
270
|
|
|
270
271
|
export interface PostMealplanVerifyQuery {
|
|
271
|
-
|
|
272
|
-
|
|
272
|
+
// The language of the user ex: en, fr
|
|
273
|
+
lang?: string;
|
|
273
274
|
}
|
|
274
275
|
|
|
275
276
|
export type PostMealplanVerifyBody = VerifyEmail;
|
|
@@ -277,53 +278,53 @@ export type PostMealplanVerifyBody = VerifyEmail;
|
|
|
277
278
|
export type PostMealplanVerifyResponse = success;
|
|
278
279
|
|
|
279
280
|
export interface PostMealplanVerifyRequest
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
extends BaseRequest,
|
|
282
|
+
RequestQuery<PostMealplanVerifyQuery>,
|
|
283
|
+
PostMealplanVerifyPath {
|
|
284
|
+
body: PostMealplanVerifyBody;
|
|
284
285
|
}
|
|
285
286
|
|
|
286
287
|
// PUT /mealplan/{id}/verify - Verify email address using provided payload
|
|
287
288
|
|
|
288
289
|
export interface PutMealplanVerifyPath {
|
|
289
|
-
|
|
290
|
-
|
|
290
|
+
// Meal plan ID
|
|
291
|
+
id: string;
|
|
291
292
|
}
|
|
292
293
|
|
|
293
294
|
export interface PutMealplanVerifyBody {
|
|
294
|
-
|
|
295
|
+
token?: string;
|
|
295
296
|
}
|
|
296
297
|
|
|
297
298
|
export type PutMealplanVerifyResponse = success;
|
|
298
299
|
|
|
299
300
|
export interface PutMealplanVerifyRequest extends BaseRequest, PutMealplanVerifyPath {
|
|
300
|
-
|
|
301
|
+
body: PutMealplanVerifyBody;
|
|
301
302
|
}
|
|
302
303
|
|
|
303
304
|
// POST /mealplan/{id}/authorize - Authorize Transaction
|
|
304
305
|
|
|
305
306
|
export interface PostMealplanAuthorizePath {
|
|
306
|
-
|
|
307
|
-
|
|
307
|
+
// Meal plan ID
|
|
308
|
+
id: string;
|
|
308
309
|
}
|
|
309
310
|
|
|
310
311
|
export interface PostMealplanAuthorizeBody {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
312
|
+
// Encoded ID of the tender - should be renamed to `tender_number` for consistency
|
|
313
|
+
tender_id: string;
|
|
314
|
+
// Amount for the transaction should be authorized
|
|
315
|
+
amount: number;
|
|
315
316
|
}
|
|
316
317
|
|
|
317
318
|
export interface PostMealplanAuthorizeResponse {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
319
|
+
// tender
|
|
320
|
+
id?: string;
|
|
321
|
+
name?: string;
|
|
322
|
+
balance?: number;
|
|
323
|
+
is?: TenderIs;
|
|
324
|
+
transaction_id?: string;
|
|
325
|
+
currency?: string;
|
|
325
326
|
}
|
|
326
327
|
|
|
327
328
|
export interface PostMealplanAuthorizeRequest extends BaseRequest, PostMealplanAuthorizePath {
|
|
328
|
-
|
|
329
|
+
body: PostMealplanAuthorizeBody;
|
|
329
330
|
}
|