@compassdigital/sdk.typescript 3.38.0 → 3.40.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 +185 -74
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +14 -9
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +12 -7
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +2 -1
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +27 -18
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +7 -4
- 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 +12 -8
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +112 -76
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/loyalty.d.ts +42 -17
- package/lib/interface/loyalty.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +16 -10
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +83 -44
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +12 -8
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +32 -18
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +473 -426
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +25 -15
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +20 -15
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +32 -26
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +16 -10
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +25 -22
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +28 -16
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +72 -46
- 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 +42 -28
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +281 -56
- package/src/interface/announcement.ts +13 -1
- package/src/interface/calendar.ts +12 -1
- package/src/interface/compassconnect.ts +2 -0
- package/src/interface/config.ts +26 -3
- package/src/interface/datalake.ts +6 -1
- package/src/interface/kds.ts +8 -1
- package/src/interface/location.ts +81 -9
- package/src/interface/loyalty.ts +65 -5
- package/src/interface/mealplan.ts +18 -2
- package/src/interface/menu.ts +96 -7
- package/src/interface/notification.ts +10 -1
- package/src/interface/order.ts +26 -1
- package/src/interface/partner.ts +550 -474
- package/src/interface/payment.ts +30 -6
- package/src/interface/permission.ts +13 -1
- package/src/interface/promo.ts +14 -1
- package/src/interface/report.ts +12 -0
- package/src/interface/shoppingcart.ts +9 -1
- package/src/interface/task.ts +30 -3
- package/src/interface/user.ts +42 -2
- package/src/interface/vendor.ts +34 -4
package/src/interface/payment.ts
CHANGED
|
@@ -171,10 +171,8 @@ export interface PostPaymentTransactionRefundPath {
|
|
|
171
171
|
export interface PostPaymentTransactionRefundBody {
|
|
172
172
|
// The amount to refund for the transaction
|
|
173
173
|
amount: string;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
transaction?: Transaction;
|
|
177
|
-
options?: Options;
|
|
174
|
+
transaction: Transaction;
|
|
175
|
+
options: Options;
|
|
178
176
|
}
|
|
179
177
|
|
|
180
178
|
export type PostPaymentTransactionRefundResponse = Refund;
|
|
@@ -192,9 +190,17 @@ export interface GetPaymentClienttokenPath {
|
|
|
192
190
|
id: string;
|
|
193
191
|
}
|
|
194
192
|
|
|
193
|
+
export interface GetPaymentClienttokenQuery {
|
|
194
|
+
// Graphql query string
|
|
195
|
+
_query?: string;
|
|
196
|
+
}
|
|
197
|
+
|
|
195
198
|
export type GetPaymentClienttokenResponse = ClientToken;
|
|
196
199
|
|
|
197
|
-
export interface GetPaymentClienttokenRequest
|
|
200
|
+
export interface GetPaymentClienttokenRequest
|
|
201
|
+
extends BaseRequest,
|
|
202
|
+
RequestQuery<GetPaymentClienttokenQuery>,
|
|
203
|
+
GetPaymentClienttokenPath {}
|
|
198
204
|
|
|
199
205
|
// POST /payment/{id}/paymenttoken
|
|
200
206
|
|
|
@@ -267,6 +273,8 @@ export interface GetPaymentMethodPath {
|
|
|
267
273
|
export interface GetPaymentMethodQuery {
|
|
268
274
|
// The user id
|
|
269
275
|
user_id: string;
|
|
276
|
+
// Graphql query string
|
|
277
|
+
_query?: string;
|
|
270
278
|
}
|
|
271
279
|
|
|
272
280
|
export interface GetPaymentMethodResponse {
|
|
@@ -311,6 +319,8 @@ export interface GetPaymentTokenQuery {
|
|
|
311
319
|
terminalId: string;
|
|
312
320
|
// name on card
|
|
313
321
|
nameOnCard: string;
|
|
322
|
+
// Graphql query string
|
|
323
|
+
_query?: string;
|
|
314
324
|
}
|
|
315
325
|
|
|
316
326
|
export type GetPaymentTokenResponse = TokenInformation;
|
|
@@ -375,6 +385,8 @@ export interface GetPaymentMethodsQuery {
|
|
|
375
385
|
storeId: any[];
|
|
376
386
|
// FP TerminalId
|
|
377
387
|
terminalId: string;
|
|
388
|
+
// Graphql query string
|
|
389
|
+
_query?: string;
|
|
378
390
|
}
|
|
379
391
|
|
|
380
392
|
export interface GetPaymentMethodsResponse {
|
|
@@ -393,6 +405,8 @@ export interface GetPaymentHpcQuery {
|
|
|
393
405
|
storeId: string;
|
|
394
406
|
// FP TerminalId
|
|
395
407
|
terminalId: string;
|
|
408
|
+
// Graphql query string
|
|
409
|
+
_query?: string;
|
|
396
410
|
}
|
|
397
411
|
|
|
398
412
|
export interface GetPaymentHpcResponse {
|
|
@@ -407,6 +421,8 @@ export interface GetPaymentHpcRequest extends BaseRequest, RequestQuery<GetPayme
|
|
|
407
421
|
export interface GetPaymentHcaptchaVerifyQuery {
|
|
408
422
|
// hCaptcha response key
|
|
409
423
|
responseKey?: string;
|
|
424
|
+
// Graphql query string
|
|
425
|
+
_query?: string;
|
|
410
426
|
}
|
|
411
427
|
|
|
412
428
|
export interface GetPaymentHcaptchaVerifyResponse {
|
|
@@ -424,11 +440,19 @@ export interface GetPaymentBadgepayPath {
|
|
|
424
440
|
id: string;
|
|
425
441
|
}
|
|
426
442
|
|
|
443
|
+
export interface GetPaymentBadgepayQuery {
|
|
444
|
+
// Graphql query string
|
|
445
|
+
_query?: string;
|
|
446
|
+
}
|
|
447
|
+
|
|
427
448
|
export interface GetPaymentBadgepayResponse {
|
|
428
449
|
tenders?: BadgePayTender[];
|
|
429
450
|
}
|
|
430
451
|
|
|
431
|
-
export interface GetPaymentBadgepayRequest
|
|
452
|
+
export interface GetPaymentBadgepayRequest
|
|
453
|
+
extends BaseRequest,
|
|
454
|
+
RequestQuery<GetPaymentBadgepayQuery>,
|
|
455
|
+
GetPaymentBadgepayPath {}
|
|
432
456
|
|
|
433
457
|
// POST /payment/{id}/badgepay
|
|
434
458
|
|
|
@@ -146,6 +146,8 @@ export interface GetPermissionRoleQuery {
|
|
|
146
146
|
status?: string;
|
|
147
147
|
// Key for pagination, retrieves the next page of items
|
|
148
148
|
start_at?: string;
|
|
149
|
+
// Graphql query string
|
|
150
|
+
_query?: string;
|
|
149
151
|
}
|
|
150
152
|
|
|
151
153
|
export type GetPermissionRoleResponse = Roles;
|
|
@@ -191,6 +193,8 @@ export interface GetPermissionRecipientPath {
|
|
|
191
193
|
export interface GetPermissionRecipientQuery {
|
|
192
194
|
// Show additional meta fields
|
|
193
195
|
extended?: boolean;
|
|
196
|
+
// Graphql query string
|
|
197
|
+
_query?: string;
|
|
194
198
|
}
|
|
195
199
|
|
|
196
200
|
export type GetPermissionRecipientResponse = Permissions;
|
|
@@ -207,9 +211,17 @@ export interface GetPermissionRoleUserPath {
|
|
|
207
211
|
user_id: string;
|
|
208
212
|
}
|
|
209
213
|
|
|
214
|
+
export interface GetPermissionRoleUserQuery {
|
|
215
|
+
// Graphql query string
|
|
216
|
+
_query?: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
210
219
|
export type GetPermissionRoleUserResponse = RoleAssignments;
|
|
211
220
|
|
|
212
|
-
export interface GetPermissionRoleUserRequest
|
|
221
|
+
export interface GetPermissionRoleUserRequest
|
|
222
|
+
extends BaseRequest,
|
|
223
|
+
RequestQuery<GetPermissionRoleUserQuery>,
|
|
224
|
+
GetPermissionRoleUserPath {}
|
|
213
225
|
|
|
214
226
|
// POST /permission/role/user/{user_id} - Assign a role to a user
|
|
215
227
|
|
package/src/interface/promo.ts
CHANGED
|
@@ -257,6 +257,8 @@ export interface PostPromoRequest extends BaseRequest {
|
|
|
257
257
|
export interface GetPromosQuery {
|
|
258
258
|
// Limit to promotions in selected multigroup
|
|
259
259
|
multigroup?: string;
|
|
260
|
+
// Graphql query string
|
|
261
|
+
_query?: string;
|
|
260
262
|
}
|
|
261
263
|
|
|
262
264
|
export type GetPromosResponse = Promotions;
|
|
@@ -273,6 +275,8 @@ export interface GetPromoPath {
|
|
|
273
275
|
export interface GetPromoQuery {
|
|
274
276
|
// Show all props of the promotion(ex., location_group_ids)
|
|
275
277
|
extended?: boolean;
|
|
278
|
+
// Graphql query string
|
|
279
|
+
_query?: string;
|
|
276
280
|
}
|
|
277
281
|
|
|
278
282
|
export type GetPromoResponse = Promotion;
|
|
@@ -317,6 +321,8 @@ export interface GetPromoCompanyLocationGroupPath {
|
|
|
317
321
|
export interface GetPromoCompanyLocationGroupQuery {
|
|
318
322
|
// Return only promos of certain status.
|
|
319
323
|
status?: string;
|
|
324
|
+
// Graphql query string
|
|
325
|
+
_query?: string;
|
|
320
326
|
nocache?: boolean;
|
|
321
327
|
}
|
|
322
328
|
|
|
@@ -446,6 +452,13 @@ export interface PostPromoVoucherifyActivityExecuteRequest extends BaseRequest {
|
|
|
446
452
|
|
|
447
453
|
// GET /promo/voucherify/activity/config.json - Get SFMC Journey Custom Activity configuration
|
|
448
454
|
|
|
455
|
+
export interface GetPromoVoucherifyActivityConfigQuery {
|
|
456
|
+
// Graphql query string
|
|
457
|
+
_query?: string;
|
|
458
|
+
}
|
|
459
|
+
|
|
449
460
|
export type GetPromoVoucherifyActivityConfigResponse = SFMCConfig;
|
|
450
461
|
|
|
451
|
-
export interface GetPromoVoucherifyActivityConfigRequest
|
|
462
|
+
export interface GetPromoVoucherifyActivityConfigRequest
|
|
463
|
+
extends BaseRequest,
|
|
464
|
+
RequestQuery<GetPromoVoucherifyActivityConfigQuery> {}
|
package/src/interface/report.ts
CHANGED
|
@@ -319,6 +319,8 @@ export interface GetReportAnalyticsGroupQuery {
|
|
|
319
319
|
end_date: string;
|
|
320
320
|
time_frame: string;
|
|
321
321
|
order_type?: string;
|
|
322
|
+
// Graphql query string
|
|
323
|
+
_query?: string;
|
|
322
324
|
}
|
|
323
325
|
|
|
324
326
|
export type GetReportAnalyticsGroupResponse = P2AnalyticsReport;
|
|
@@ -341,6 +343,8 @@ export interface GetReportAnalyticsCombinedGroupQuery {
|
|
|
341
343
|
end_date: string;
|
|
342
344
|
time_frame: string;
|
|
343
345
|
order_type?: string;
|
|
346
|
+
// Graphql query string
|
|
347
|
+
_query?: string;
|
|
344
348
|
}
|
|
345
349
|
|
|
346
350
|
export type GetReportAnalyticsCombinedGroupResponse = SAReport;
|
|
@@ -365,6 +369,8 @@ export interface GetReportEodGroupQuery {
|
|
|
365
369
|
format?: string;
|
|
366
370
|
// Location IDs, comma-separated
|
|
367
371
|
locations?: string;
|
|
372
|
+
// Graphql query string
|
|
373
|
+
_query?: string;
|
|
368
374
|
nocache?: boolean;
|
|
369
375
|
}
|
|
370
376
|
|
|
@@ -381,10 +387,16 @@ export interface GetReportEodGroupSubscribersPath {
|
|
|
381
387
|
id: string;
|
|
382
388
|
}
|
|
383
389
|
|
|
390
|
+
export interface GetReportEodGroupSubscribersQuery {
|
|
391
|
+
// Graphql query string
|
|
392
|
+
_query?: string;
|
|
393
|
+
}
|
|
394
|
+
|
|
384
395
|
export type GetReportEodGroupSubscribersResponse = EODSubscribers;
|
|
385
396
|
|
|
386
397
|
export interface GetReportEodGroupSubscribersRequest
|
|
387
398
|
extends BaseRequest,
|
|
399
|
+
RequestQuery<GetReportEodGroupSubscribersQuery>,
|
|
388
400
|
GetReportEodGroupSubscribersPath {}
|
|
389
401
|
|
|
390
402
|
// POST /report/eod/group/{id}/subscribers - Add emails to selected location group
|
|
@@ -319,9 +319,17 @@ export interface GetShoppingcartCartPath {
|
|
|
319
319
|
id: string;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
+
export interface GetShoppingcartCartQuery {
|
|
323
|
+
// Graphql query string
|
|
324
|
+
_query?: string;
|
|
325
|
+
}
|
|
326
|
+
|
|
322
327
|
export type GetShoppingcartCartResponse = ShoppingCartResponse;
|
|
323
328
|
|
|
324
|
-
export interface GetShoppingcartCartRequest
|
|
329
|
+
export interface GetShoppingcartCartRequest
|
|
330
|
+
extends BaseRequest,
|
|
331
|
+
RequestQuery<GetShoppingcartCartQuery>,
|
|
332
|
+
GetShoppingcartCartPath {}
|
|
325
333
|
|
|
326
334
|
// PATCH /shoppingcart/{id} - Update a ShoppingCart
|
|
327
335
|
|
package/src/interface/task.ts
CHANGED
|
@@ -154,9 +154,14 @@ export interface GetTaskPath {
|
|
|
154
154
|
id: string;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
export interface GetTaskQuery {
|
|
158
|
+
// Graphql query string
|
|
159
|
+
_query?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
157
162
|
export type GetTaskResponse = Task;
|
|
158
163
|
|
|
159
|
-
export interface GetTaskRequest extends BaseRequest, GetTaskPath {}
|
|
164
|
+
export interface GetTaskRequest extends BaseRequest, RequestQuery<GetTaskQuery>, GetTaskPath {}
|
|
160
165
|
|
|
161
166
|
// PATCH /task/{id} - Update Task
|
|
162
167
|
|
|
@@ -191,9 +196,17 @@ export interface GetTaskOrderPath {
|
|
|
191
196
|
id: string;
|
|
192
197
|
}
|
|
193
198
|
|
|
199
|
+
export interface GetTaskOrderQuery {
|
|
200
|
+
// Graphql query string
|
|
201
|
+
_query?: string;
|
|
202
|
+
}
|
|
203
|
+
|
|
194
204
|
export type GetTaskOrderResponse = Task;
|
|
195
205
|
|
|
196
|
-
export interface GetTaskOrderRequest
|
|
206
|
+
export interface GetTaskOrderRequest
|
|
207
|
+
extends BaseRequest,
|
|
208
|
+
RequestQuery<GetTaskOrderQuery>,
|
|
209
|
+
GetTaskOrderPath {}
|
|
197
210
|
|
|
198
211
|
// GET /task/order/{id}/kds - Get KDS tasks based on passed order ID
|
|
199
212
|
|
|
@@ -202,9 +215,17 @@ export interface GetTaskOrderKdsPath {
|
|
|
202
215
|
id: string;
|
|
203
216
|
}
|
|
204
217
|
|
|
218
|
+
export interface GetTaskOrderKdsQuery {
|
|
219
|
+
// Graphql query string
|
|
220
|
+
_query?: string;
|
|
221
|
+
}
|
|
222
|
+
|
|
205
223
|
export type GetTaskOrderKdsResponse = Tasks;
|
|
206
224
|
|
|
207
|
-
export interface GetTaskOrderKdsRequest
|
|
225
|
+
export interface GetTaskOrderKdsRequest
|
|
226
|
+
extends BaseRequest,
|
|
227
|
+
RequestQuery<GetTaskOrderKdsQuery>,
|
|
228
|
+
GetTaskOrderKdsPath {}
|
|
208
229
|
|
|
209
230
|
// PATCH /task/order/{id}/kds - Update an order and its associated tasks
|
|
210
231
|
|
|
@@ -239,6 +260,8 @@ export interface GetTaskAssigneeQuery {
|
|
|
239
260
|
started?: number;
|
|
240
261
|
// Filter tasks by their completed date. Only return tasks that have a completed date less than or equal to the date.
|
|
241
262
|
completed?: number;
|
|
263
|
+
// Graphql query string
|
|
264
|
+
_query?: string;
|
|
242
265
|
}
|
|
243
266
|
|
|
244
267
|
export type GetTaskAssigneeResponse = Tasks;
|
|
@@ -270,6 +293,8 @@ export interface GetTaskLocationBrandQuery {
|
|
|
270
293
|
pickup_time?: number;
|
|
271
294
|
// The type of task that will be searched on. The default is: 'bolter'
|
|
272
295
|
query_type?: string;
|
|
296
|
+
// Graphql query string
|
|
297
|
+
_query?: string;
|
|
273
298
|
}
|
|
274
299
|
|
|
275
300
|
export type GetTaskLocationBrandResponse = Tasks;
|
|
@@ -301,6 +326,8 @@ export interface GetTaskLocationGroupQuery {
|
|
|
301
326
|
pickup_time?: number;
|
|
302
327
|
// The type of task that will be searched on. The default is: 'bolter'
|
|
303
328
|
query_type?: string;
|
|
329
|
+
// Graphql query string
|
|
330
|
+
_query?: string;
|
|
304
331
|
}
|
|
305
332
|
|
|
306
333
|
export type GetTaskLocationGroupResponse = Tasks;
|
package/src/interface/user.ts
CHANGED
|
@@ -193,6 +193,7 @@ export interface Checkin {
|
|
|
193
193
|
date_queued?: string;
|
|
194
194
|
// The state of the user association process (attaching). Present for NFC check-ins only
|
|
195
195
|
state?: string;
|
|
196
|
+
meta?: CheckinMeta;
|
|
196
197
|
}
|
|
197
198
|
|
|
198
199
|
export interface PatchCheckin {
|
|
@@ -200,6 +201,20 @@ export interface PatchCheckin {
|
|
|
200
201
|
date_queued?: number;
|
|
201
202
|
// The state of the user association process (attaching). Present for NFC check-ins only
|
|
202
203
|
state?: string;
|
|
204
|
+
meta?: CheckinMeta;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface CheckinMeta {
|
|
208
|
+
order_id?: string;
|
|
209
|
+
status?: string;
|
|
210
|
+
logs?: {
|
|
211
|
+
code?: number;
|
|
212
|
+
date?: string;
|
|
213
|
+
message?: string;
|
|
214
|
+
type?: string;
|
|
215
|
+
[index: string]: any;
|
|
216
|
+
}[];
|
|
217
|
+
[index: string]: any;
|
|
203
218
|
}
|
|
204
219
|
|
|
205
220
|
export interface RefreshToken {
|
|
@@ -267,6 +282,8 @@ export interface Acl {
|
|
|
267
282
|
export interface GetUserAuthQuery {
|
|
268
283
|
// realm
|
|
269
284
|
realm?: string;
|
|
285
|
+
// Graphql query string
|
|
286
|
+
_query?: string;
|
|
270
287
|
}
|
|
271
288
|
|
|
272
289
|
export type GetUserAuthResponse = auth;
|
|
@@ -285,11 +302,16 @@ export interface PostUserAuthRequest extends BaseRequest {
|
|
|
285
302
|
|
|
286
303
|
// GET /user/zendesk - Get zendesk JWT token to allow web widget to search restricted articles
|
|
287
304
|
|
|
305
|
+
export interface GetUserZendeskQuery {
|
|
306
|
+
// Graphql query string
|
|
307
|
+
_query?: string;
|
|
308
|
+
}
|
|
309
|
+
|
|
288
310
|
export interface GetUserZendeskResponse {
|
|
289
311
|
token: string;
|
|
290
312
|
}
|
|
291
313
|
|
|
292
|
-
export interface GetUserZendeskRequest extends BaseRequest {}
|
|
314
|
+
export interface GetUserZendeskRequest extends BaseRequest, RequestQuery<GetUserZendeskQuery> {}
|
|
293
315
|
|
|
294
316
|
// POST /user - Create an User
|
|
295
317
|
|
|
@@ -316,6 +338,8 @@ export interface GetUserPath {
|
|
|
316
338
|
export interface GetUserQuery {
|
|
317
339
|
// Use ACL permission system
|
|
318
340
|
acl?: boolean;
|
|
341
|
+
// Graphql query string
|
|
342
|
+
_query?: string;
|
|
319
343
|
}
|
|
320
344
|
|
|
321
345
|
export type GetUserResponse = User;
|
|
@@ -395,6 +419,8 @@ export interface PostUserKdsTokenRequest extends BaseRequest {
|
|
|
395
419
|
|
|
396
420
|
export interface GetUserKdsTokenQuery {
|
|
397
421
|
authorized?: boolean;
|
|
422
|
+
// Graphql query string
|
|
423
|
+
_query?: string;
|
|
398
424
|
}
|
|
399
425
|
|
|
400
426
|
export type GetUserKdsTokenResponse = KDSDevices;
|
|
@@ -468,11 +494,19 @@ export interface GetUserSecretPath {
|
|
|
468
494
|
key: string;
|
|
469
495
|
}
|
|
470
496
|
|
|
497
|
+
export interface GetUserSecretQuery {
|
|
498
|
+
// Graphql query string
|
|
499
|
+
_query?: string;
|
|
500
|
+
}
|
|
501
|
+
|
|
471
502
|
export interface GetUserSecretResponse {
|
|
472
503
|
[index: string]: any;
|
|
473
504
|
}
|
|
474
505
|
|
|
475
|
-
export interface GetUserSecretRequest
|
|
506
|
+
export interface GetUserSecretRequest
|
|
507
|
+
extends BaseRequest,
|
|
508
|
+
RequestQuery<GetUserSecretQuery>,
|
|
509
|
+
GetUserSecretPath {}
|
|
476
510
|
|
|
477
511
|
// POST /user/forgotpassword - Reset the users password
|
|
478
512
|
|
|
@@ -530,6 +564,8 @@ export interface GetUserRealmUsersQuery {
|
|
|
530
564
|
lastmodified_start?: string;
|
|
531
565
|
// Use ACL permission system
|
|
532
566
|
acl?: boolean;
|
|
567
|
+
// Graphql query string
|
|
568
|
+
_query?: string;
|
|
533
569
|
}
|
|
534
570
|
|
|
535
571
|
export type GetUserRealmUsersResponse = Users;
|
|
@@ -549,6 +585,8 @@ export interface GetUserPermissionsPath {
|
|
|
549
585
|
export interface GetUserPermissionsQuery {
|
|
550
586
|
// Use ACL permission system
|
|
551
587
|
acl?: boolean;
|
|
588
|
+
// Graphql query string
|
|
589
|
+
_query?: string;
|
|
552
590
|
}
|
|
553
591
|
|
|
554
592
|
export type GetUserPermissionsResponse = User;
|
|
@@ -622,6 +660,8 @@ export interface GetUserSearchCheckInQuery {
|
|
|
622
660
|
checkin_uuid?: string;
|
|
623
661
|
// Visit UUID that corresponds to the check-in
|
|
624
662
|
visit_uuid?: string;
|
|
663
|
+
// Graphql query string
|
|
664
|
+
_query?: string;
|
|
625
665
|
}
|
|
626
666
|
|
|
627
667
|
export type GetUserSearchCheckInResponse = Checkin;
|
package/src/interface/vendor.ts
CHANGED
|
@@ -212,6 +212,8 @@ export interface GetVendorApplicationQuery {
|
|
|
212
212
|
status?: string;
|
|
213
213
|
// Pagination token to start query from
|
|
214
214
|
last_evaluated_key?: string;
|
|
215
|
+
// Graphql query string
|
|
216
|
+
_query?: string;
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
export type GetVendorApplicationResponse = Applications;
|
|
@@ -247,9 +249,14 @@ export interface PostVendorRequest extends BaseRequest {
|
|
|
247
249
|
|
|
248
250
|
// GET /vendor - Get all Vendors
|
|
249
251
|
|
|
252
|
+
export interface GetVendorsQuery {
|
|
253
|
+
// Graphql query string
|
|
254
|
+
_query?: string;
|
|
255
|
+
}
|
|
256
|
+
|
|
250
257
|
export type GetVendorsResponse = Vendors;
|
|
251
258
|
|
|
252
|
-
export interface GetVendorsRequest extends BaseRequest {}
|
|
259
|
+
export interface GetVendorsRequest extends BaseRequest, RequestQuery<GetVendorsQuery> {}
|
|
253
260
|
|
|
254
261
|
// GET /vendor/{id} - Get info about the Vendor
|
|
255
262
|
|
|
@@ -258,9 +265,17 @@ export interface GetVendorPath {
|
|
|
258
265
|
id: string;
|
|
259
266
|
}
|
|
260
267
|
|
|
268
|
+
export interface GetVendorQuery {
|
|
269
|
+
// Graphql query string
|
|
270
|
+
_query?: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
261
273
|
export type GetVendorResponse = Vendor;
|
|
262
274
|
|
|
263
|
-
export interface GetVendorRequest
|
|
275
|
+
export interface GetVendorRequest
|
|
276
|
+
extends BaseRequest,
|
|
277
|
+
RequestQuery<GetVendorQuery>,
|
|
278
|
+
GetVendorPath {}
|
|
264
279
|
|
|
265
280
|
// PATCH /vendor/{id} - Update info about the Vendor
|
|
266
281
|
|
|
@@ -279,9 +294,14 @@ export interface PatchVendorRequest extends BaseRequest, PatchVendorPath {
|
|
|
279
294
|
|
|
280
295
|
// GET /vendor/auth - Get access/refresh tokens for accessing our APIs
|
|
281
296
|
|
|
297
|
+
export interface GetVendorAuthQuery {
|
|
298
|
+
// Graphql query string
|
|
299
|
+
_query?: string;
|
|
300
|
+
}
|
|
301
|
+
|
|
282
302
|
export type GetVendorAuthResponse = Auth;
|
|
283
303
|
|
|
284
|
-
export interface GetVendorAuthRequest extends BaseRequest {}
|
|
304
|
+
export interface GetVendorAuthRequest extends BaseRequest, RequestQuery<GetVendorAuthQuery> {}
|
|
285
305
|
|
|
286
306
|
// POST /vendor/auth - Get new access token using refresh token and previous token
|
|
287
307
|
|
|
@@ -300,9 +320,17 @@ export interface GetVendorKeysPath {
|
|
|
300
320
|
id: string;
|
|
301
321
|
}
|
|
302
322
|
|
|
323
|
+
export interface GetVendorKeysQuery {
|
|
324
|
+
// Graphql query string
|
|
325
|
+
_query?: string;
|
|
326
|
+
}
|
|
327
|
+
|
|
303
328
|
export type GetVendorKeysResponse = Keys;
|
|
304
329
|
|
|
305
|
-
export interface GetVendorKeysRequest
|
|
330
|
+
export interface GetVendorKeysRequest
|
|
331
|
+
extends BaseRequest,
|
|
332
|
+
RequestQuery<GetVendorKeysQuery>,
|
|
333
|
+
GetVendorKeysPath {}
|
|
306
334
|
|
|
307
335
|
// POST /vendor/{id}/key - Create new key for the vendor
|
|
308
336
|
|
|
@@ -331,6 +359,8 @@ export interface GetVendorKeyPath {
|
|
|
331
359
|
export interface GetVendorKeyQuery {
|
|
332
360
|
// Pagination token to start query from
|
|
333
361
|
last_evaluated_key?: string;
|
|
362
|
+
// Graphql query string
|
|
363
|
+
_query?: string;
|
|
334
364
|
}
|
|
335
365
|
|
|
336
366
|
export type GetVendorKeyResponse = Key;
|