@compassdigital/sdk.typescript 3.37.0 → 3.39.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 +176 -72
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +6 -1
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +6 -1
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +1 -0
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +13 -4
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +5 -2
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +5 -1
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +40 -6
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/loyalty.d.ts +31 -6
- package/lib/interface/loyalty.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +8 -2
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +39 -8
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +5 -1
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +13 -2
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +21 -6
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +13 -2
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +6 -1
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +7 -1
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +7 -1
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +6 -2
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +15 -3
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +14 -2
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +18 -4
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +258 -52
- 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 +73 -3
- package/src/interface/loyalty.ts +65 -5
- package/src/interface/mealplan.ts +18 -2
- package/src/interface/menu.ts +81 -7
- package/src/interface/notification.ts +10 -1
- package/src/interface/order.ts +22 -1
- package/src/interface/partner.ts +41 -5
- package/src/interface/payment.ts +28 -2
- 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 +10 -1
- package/src/interface/task.ts +30 -3
- package/src/interface/user.ts +27 -2
- package/src/interface/vendor.ts +34 -4
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
|
@@ -267,6 +267,8 @@ export interface Acl {
|
|
|
267
267
|
export interface GetUserAuthQuery {
|
|
268
268
|
// realm
|
|
269
269
|
realm?: string;
|
|
270
|
+
// Graphql query string
|
|
271
|
+
_query?: string;
|
|
270
272
|
}
|
|
271
273
|
|
|
272
274
|
export type GetUserAuthResponse = auth;
|
|
@@ -285,11 +287,16 @@ export interface PostUserAuthRequest extends BaseRequest {
|
|
|
285
287
|
|
|
286
288
|
// GET /user/zendesk - Get zendesk JWT token to allow web widget to search restricted articles
|
|
287
289
|
|
|
290
|
+
export interface GetUserZendeskQuery {
|
|
291
|
+
// Graphql query string
|
|
292
|
+
_query?: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
288
295
|
export interface GetUserZendeskResponse {
|
|
289
296
|
token: string;
|
|
290
297
|
}
|
|
291
298
|
|
|
292
|
-
export interface GetUserZendeskRequest extends BaseRequest {}
|
|
299
|
+
export interface GetUserZendeskRequest extends BaseRequest, RequestQuery<GetUserZendeskQuery> {}
|
|
293
300
|
|
|
294
301
|
// POST /user - Create an User
|
|
295
302
|
|
|
@@ -316,6 +323,8 @@ export interface GetUserPath {
|
|
|
316
323
|
export interface GetUserQuery {
|
|
317
324
|
// Use ACL permission system
|
|
318
325
|
acl?: boolean;
|
|
326
|
+
// Graphql query string
|
|
327
|
+
_query?: string;
|
|
319
328
|
}
|
|
320
329
|
|
|
321
330
|
export type GetUserResponse = User;
|
|
@@ -395,6 +404,8 @@ export interface PostUserKdsTokenRequest extends BaseRequest {
|
|
|
395
404
|
|
|
396
405
|
export interface GetUserKdsTokenQuery {
|
|
397
406
|
authorized?: boolean;
|
|
407
|
+
// Graphql query string
|
|
408
|
+
_query?: string;
|
|
398
409
|
}
|
|
399
410
|
|
|
400
411
|
export type GetUserKdsTokenResponse = KDSDevices;
|
|
@@ -468,11 +479,19 @@ export interface GetUserSecretPath {
|
|
|
468
479
|
key: string;
|
|
469
480
|
}
|
|
470
481
|
|
|
482
|
+
export interface GetUserSecretQuery {
|
|
483
|
+
// Graphql query string
|
|
484
|
+
_query?: string;
|
|
485
|
+
}
|
|
486
|
+
|
|
471
487
|
export interface GetUserSecretResponse {
|
|
472
488
|
[index: string]: any;
|
|
473
489
|
}
|
|
474
490
|
|
|
475
|
-
export interface GetUserSecretRequest
|
|
491
|
+
export interface GetUserSecretRequest
|
|
492
|
+
extends BaseRequest,
|
|
493
|
+
RequestQuery<GetUserSecretQuery>,
|
|
494
|
+
GetUserSecretPath {}
|
|
476
495
|
|
|
477
496
|
// POST /user/forgotpassword - Reset the users password
|
|
478
497
|
|
|
@@ -530,6 +549,8 @@ export interface GetUserRealmUsersQuery {
|
|
|
530
549
|
lastmodified_start?: string;
|
|
531
550
|
// Use ACL permission system
|
|
532
551
|
acl?: boolean;
|
|
552
|
+
// Graphql query string
|
|
553
|
+
_query?: string;
|
|
533
554
|
}
|
|
534
555
|
|
|
535
556
|
export type GetUserRealmUsersResponse = Users;
|
|
@@ -549,6 +570,8 @@ export interface GetUserPermissionsPath {
|
|
|
549
570
|
export interface GetUserPermissionsQuery {
|
|
550
571
|
// Use ACL permission system
|
|
551
572
|
acl?: boolean;
|
|
573
|
+
// Graphql query string
|
|
574
|
+
_query?: string;
|
|
552
575
|
}
|
|
553
576
|
|
|
554
577
|
export type GetUserPermissionsResponse = User;
|
|
@@ -622,6 +645,8 @@ export interface GetUserSearchCheckInQuery {
|
|
|
622
645
|
checkin_uuid?: string;
|
|
623
646
|
// Visit UUID that corresponds to the check-in
|
|
624
647
|
visit_uuid?: string;
|
|
648
|
+
// Graphql query string
|
|
649
|
+
_query?: string;
|
|
625
650
|
}
|
|
626
651
|
|
|
627
652
|
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;
|