@compassdigital/sdk.typescript 3.19.0 → 3.21.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/interface/announcement.d.ts +7 -7
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +8 -7
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +2 -2
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +11 -9
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +4 -2
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/email.d.ts +2 -1
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +3 -2
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +8 -7
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +55 -53
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +12 -12
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +27 -27
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +8 -7
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +15 -15
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +12 -7
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +15 -15
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +10 -10
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +18 -17
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +8 -8
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +15 -14
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +11 -11
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +31 -29
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/util.d.ts +19 -0
- package/lib/interface/util.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +19 -17
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/interface/announcement.ts +9 -7
- package/src/interface/calendar.ts +11 -7
- package/src/interface/compassconnect.ts +3 -2
- package/src/interface/config.ts +10 -10
- package/src/interface/datalake.ts +3 -3
- package/src/interface/email.ts +2 -2
- package/src/interface/file.ts +3 -3
- package/src/interface/kds.ts +7 -7
- package/src/interface/location.ts +92 -53
- package/src/interface/mealplan.ts +13 -12
- package/src/interface/menu.ts +40 -27
- package/src/interface/notification.ts +7 -7
- package/src/interface/order.ts +22 -15
- package/src/interface/partner.ts +8 -8
- package/src/interface/payment.ts +20 -15
- package/src/interface/permission.ts +13 -10
- package/src/interface/promo.ts +19 -17
- package/src/interface/report.ts +18 -8
- package/src/interface/shoppingcart.ts +27 -15
- package/src/interface/sms.ts +1 -1
- package/src/interface/task.ts +14 -11
- package/src/interface/user.ts +43 -29
- package/src/interface/util.ts +22 -1
- package/src/interface/vendor.ts +23 -17
package/src/interface/user.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import { RequestQuery } from "./util";
|
|
3
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Error {
|
|
6
6
|
message?: string;
|
|
@@ -227,7 +227,7 @@ export interface GetUserAuthQuery {
|
|
|
227
227
|
|
|
228
228
|
export type GetUserAuthResponse = auth;
|
|
229
229
|
|
|
230
|
-
export interface GetUserAuthRequest extends RequestQuery<GetUserAuthQuery> {}
|
|
230
|
+
export interface GetUserAuthRequest extends BaseRequest, RequestQuery<GetUserAuthQuery> {}
|
|
231
231
|
|
|
232
232
|
// POST /user/auth - Use refresh token to generate a new access token and refresh token
|
|
233
233
|
|
|
@@ -235,7 +235,7 @@ export type PostUserAuthBody = RefreshToken;
|
|
|
235
235
|
|
|
236
236
|
export type PostUserAuthResponse = auth;
|
|
237
237
|
|
|
238
|
-
export interface PostUserAuthRequest {
|
|
238
|
+
export interface PostUserAuthRequest extends BaseRequest {
|
|
239
239
|
body: PostUserAuthBody;
|
|
240
240
|
}
|
|
241
241
|
|
|
@@ -245,7 +245,7 @@ export interface GetUserZendeskResponse {
|
|
|
245
245
|
token: string;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
export
|
|
248
|
+
export interface GetUserZendeskRequest extends BaseRequest {}
|
|
249
249
|
|
|
250
250
|
// POST /user - Create an User
|
|
251
251
|
|
|
@@ -258,7 +258,7 @@ export type PostUserBody = User;
|
|
|
258
258
|
|
|
259
259
|
export type PostUserResponse = User;
|
|
260
260
|
|
|
261
|
-
export interface PostUserRequest extends RequestQuery<PostUserQuery> {
|
|
261
|
+
export interface PostUserRequest extends BaseRequest, RequestQuery<PostUserQuery> {
|
|
262
262
|
body: PostUserBody;
|
|
263
263
|
}
|
|
264
264
|
|
|
@@ -276,7 +276,7 @@ export interface GetUserQuery {
|
|
|
276
276
|
|
|
277
277
|
export type GetUserResponse = User;
|
|
278
278
|
|
|
279
|
-
export interface GetUserRequest extends RequestQuery<GetUserQuery>, GetUserPath {}
|
|
279
|
+
export interface GetUserRequest extends BaseRequest, RequestQuery<GetUserQuery>, GetUserPath {}
|
|
280
280
|
|
|
281
281
|
// PUT /user/{id} - Update an individual user
|
|
282
282
|
|
|
@@ -294,7 +294,7 @@ export type PutUserBody = User;
|
|
|
294
294
|
|
|
295
295
|
export type PutUserResponse = User;
|
|
296
296
|
|
|
297
|
-
export interface PutUserRequest extends RequestQuery<PutUserQuery>, PutUserPath {
|
|
297
|
+
export interface PutUserRequest extends BaseRequest, RequestQuery<PutUserQuery>, PutUserPath {
|
|
298
298
|
body: PutUserBody;
|
|
299
299
|
}
|
|
300
300
|
|
|
@@ -314,7 +314,7 @@ export type PatchUserBody = User;
|
|
|
314
314
|
|
|
315
315
|
export type PatchUserResponse = User;
|
|
316
316
|
|
|
317
|
-
export interface PatchUserRequest extends RequestQuery<PatchUserQuery>, PatchUserPath {
|
|
317
|
+
export interface PatchUserRequest extends BaseRequest, RequestQuery<PatchUserQuery>, PatchUserPath {
|
|
318
318
|
body: PatchUserBody;
|
|
319
319
|
}
|
|
320
320
|
|
|
@@ -332,7 +332,10 @@ export interface DeleteUserQuery {
|
|
|
332
332
|
|
|
333
333
|
export type DeleteUserResponse = success;
|
|
334
334
|
|
|
335
|
-
export interface DeleteUserRequest
|
|
335
|
+
export interface DeleteUserRequest
|
|
336
|
+
extends BaseRequest,
|
|
337
|
+
RequestQuery<DeleteUserQuery>,
|
|
338
|
+
DeleteUserPath {}
|
|
336
339
|
|
|
337
340
|
// POST /user/device/auth - Endpoint for generating/retrieving KDS device token
|
|
338
341
|
|
|
@@ -340,7 +343,7 @@ export type PostUserKdsTokenBody = UserDeviceAuthBody;
|
|
|
340
343
|
|
|
341
344
|
export type PostUserKdsTokenResponse = KDSToken;
|
|
342
345
|
|
|
343
|
-
export interface PostUserKdsTokenRequest {
|
|
346
|
+
export interface PostUserKdsTokenRequest extends BaseRequest {
|
|
344
347
|
body: PostUserKdsTokenBody;
|
|
345
348
|
}
|
|
346
349
|
|
|
@@ -352,7 +355,7 @@ export interface GetUserKdsTokenQuery {
|
|
|
352
355
|
|
|
353
356
|
export type GetUserKdsTokenResponse = KDSDevices;
|
|
354
357
|
|
|
355
|
-
export interface GetUserKdsTokenRequest extends RequestQuery<GetUserKdsTokenQuery> {}
|
|
358
|
+
export interface GetUserKdsTokenRequest extends BaseRequest, RequestQuery<GetUserKdsTokenQuery> {}
|
|
356
359
|
|
|
357
360
|
// DELETE /user/device/auth/{device_id} - Endpoint for deleting a device by specified device_id
|
|
358
361
|
|
|
@@ -363,7 +366,7 @@ export interface DeleteUserDeviceAuthPath {
|
|
|
363
366
|
|
|
364
367
|
export type DeleteUserDeviceAuthResponse = Error;
|
|
365
368
|
|
|
366
|
-
export interface DeleteUserDeviceAuthRequest extends DeleteUserDeviceAuthPath {}
|
|
369
|
+
export interface DeleteUserDeviceAuthRequest extends BaseRequest, DeleteUserDeviceAuthPath {}
|
|
367
370
|
|
|
368
371
|
// PATCH /user/device/auth/{device_id} - Endpoint for authorizing device to retrieve valid kds token
|
|
369
372
|
|
|
@@ -374,7 +377,7 @@ export interface PatchUserAuthKdsPath {
|
|
|
374
377
|
|
|
375
378
|
export type PatchUserAuthKdsResponse = KDSDevice;
|
|
376
379
|
|
|
377
|
-
export interface PatchUserAuthKdsRequest extends PatchUserAuthKdsPath {}
|
|
380
|
+
export interface PatchUserAuthKdsRequest extends BaseRequest, PatchUserAuthKdsPath {}
|
|
378
381
|
|
|
379
382
|
// POST /user/{id}/changepassword - Change the users password
|
|
380
383
|
|
|
@@ -387,7 +390,7 @@ export type PostUserChangePasswordBody = Changepassword;
|
|
|
387
390
|
|
|
388
391
|
export type PostUserChangePasswordResponse = User;
|
|
389
392
|
|
|
390
|
-
export interface PostUserChangePasswordRequest extends PostUserChangePasswordPath {
|
|
393
|
+
export interface PostUserChangePasswordRequest extends BaseRequest, PostUserChangePasswordPath {
|
|
391
394
|
body: PostUserChangePasswordBody;
|
|
392
395
|
}
|
|
393
396
|
|
|
@@ -395,7 +398,7 @@ export interface PostUserChangePasswordRequest extends PostUserChangePasswordPat
|
|
|
395
398
|
|
|
396
399
|
export type DeleteUserLogoutResponse = success;
|
|
397
400
|
|
|
398
|
-
export
|
|
401
|
+
export interface DeleteUserLogoutRequest extends BaseRequest {}
|
|
399
402
|
|
|
400
403
|
// POST /user/{id}/secret/{key} - Add a secret key
|
|
401
404
|
|
|
@@ -409,7 +412,7 @@ export type PostUserAddSecretBody = any;
|
|
|
409
412
|
|
|
410
413
|
export type PostUserAddSecretResponse = Key;
|
|
411
414
|
|
|
412
|
-
export interface PostUserAddSecretRequest extends PostUserAddSecretPath {
|
|
415
|
+
export interface PostUserAddSecretRequest extends BaseRequest, PostUserAddSecretPath {
|
|
413
416
|
body: PostUserAddSecretBody;
|
|
414
417
|
}
|
|
415
418
|
|
|
@@ -425,7 +428,7 @@ export interface GetUserSecretResponse {
|
|
|
425
428
|
[index: string]: any;
|
|
426
429
|
}
|
|
427
430
|
|
|
428
|
-
export interface GetUserSecretRequest extends GetUserSecretPath {}
|
|
431
|
+
export interface GetUserSecretRequest extends BaseRequest, GetUserSecretPath {}
|
|
429
432
|
|
|
430
433
|
// POST /user/forgotpassword - Reset the users password
|
|
431
434
|
|
|
@@ -440,7 +443,9 @@ export type PostUserResetPasswordBody = Forgotpassword;
|
|
|
440
443
|
|
|
441
444
|
export type PostUserResetPasswordResponse = success;
|
|
442
445
|
|
|
443
|
-
export interface PostUserResetPasswordRequest
|
|
446
|
+
export interface PostUserResetPasswordRequest
|
|
447
|
+
extends BaseRequest,
|
|
448
|
+
RequestQuery<PostUserResetPasswordQuery> {
|
|
444
449
|
body: PostUserResetPasswordBody;
|
|
445
450
|
}
|
|
446
451
|
|
|
@@ -461,7 +466,8 @@ export type PostUserResetPasswordTokenBody = Resetpassword;
|
|
|
461
466
|
export type PostUserResetPasswordTokenResponse = success;
|
|
462
467
|
|
|
463
468
|
export interface PostUserResetPasswordTokenRequest
|
|
464
|
-
extends
|
|
469
|
+
extends BaseRequest,
|
|
470
|
+
RequestQuery<PostUserResetPasswordTokenQuery>,
|
|
465
471
|
PostUserResetPasswordTokenPath {
|
|
466
472
|
body: PostUserResetPasswordTokenBody;
|
|
467
473
|
}
|
|
@@ -485,7 +491,8 @@ export interface GetUserRealmUsersQuery {
|
|
|
485
491
|
export type GetUserRealmUsersResponse = Users;
|
|
486
492
|
|
|
487
493
|
export interface GetUserRealmUsersRequest
|
|
488
|
-
extends
|
|
494
|
+
extends BaseRequest,
|
|
495
|
+
RequestQuery<GetUserRealmUsersQuery>,
|
|
489
496
|
GetUserRealmUsersPath {}
|
|
490
497
|
|
|
491
498
|
// GET /user/{id}/permissions - Get user permissions
|
|
@@ -503,7 +510,8 @@ export interface GetUserPermissionsQuery {
|
|
|
503
510
|
export type GetUserPermissionsResponse = User;
|
|
504
511
|
|
|
505
512
|
export interface GetUserPermissionsRequest
|
|
506
|
-
extends
|
|
513
|
+
extends BaseRequest,
|
|
514
|
+
RequestQuery<GetUserPermissionsQuery>,
|
|
507
515
|
GetUserPermissionsPath {}
|
|
508
516
|
|
|
509
517
|
// PUT /user/{id}/permissions - Update user permissions
|
|
@@ -525,7 +533,8 @@ export interface PutUserPermissionsBody {
|
|
|
525
533
|
export type PutUserPermissionsResponse = User;
|
|
526
534
|
|
|
527
535
|
export interface PutUserPermissionsRequest
|
|
528
|
-
extends
|
|
536
|
+
extends BaseRequest,
|
|
537
|
+
RequestQuery<PutUserPermissionsQuery>,
|
|
529
538
|
PutUserPermissionsPath {
|
|
530
539
|
body: PutUserPermissionsBody;
|
|
531
540
|
}
|
|
@@ -541,7 +550,7 @@ export type PostUserCheckInBody = CheckInUserInfo;
|
|
|
541
550
|
|
|
542
551
|
export type PostUserCheckInResponse = Checkin;
|
|
543
552
|
|
|
544
|
-
export interface PostUserCheckInRequest extends PostUserCheckInPath {
|
|
553
|
+
export interface PostUserCheckInRequest extends BaseRequest, PostUserCheckInPath {
|
|
545
554
|
body: PostUserCheckInBody;
|
|
546
555
|
}
|
|
547
556
|
|
|
@@ -558,7 +567,7 @@ export type PatchUserCheckinBody = PatchCheckin;
|
|
|
558
567
|
|
|
559
568
|
export type PatchUserCheckinResponse = Checkin;
|
|
560
569
|
|
|
561
|
-
export interface PatchUserCheckinRequest extends PatchUserCheckinPath {
|
|
570
|
+
export interface PatchUserCheckinRequest extends BaseRequest, PatchUserCheckinPath {
|
|
562
571
|
body: PatchUserCheckinBody;
|
|
563
572
|
}
|
|
564
573
|
|
|
@@ -573,7 +582,9 @@ export interface GetUserSearchCheckInQuery {
|
|
|
573
582
|
|
|
574
583
|
export type GetUserSearchCheckInResponse = Checkin;
|
|
575
584
|
|
|
576
|
-
export interface GetUserSearchCheckInRequest
|
|
585
|
+
export interface GetUserSearchCheckInRequest
|
|
586
|
+
extends BaseRequest,
|
|
587
|
+
RequestQuery<GetUserSearchCheckInQuery> {}
|
|
577
588
|
|
|
578
589
|
// POST /user/{id}/verification - Send email verification to user
|
|
579
590
|
|
|
@@ -584,7 +595,9 @@ export interface PostUserSendEmailVerificationPath {
|
|
|
584
595
|
|
|
585
596
|
export type PostUserSendEmailVerificationResponse = success;
|
|
586
597
|
|
|
587
|
-
export interface PostUserSendEmailVerificationRequest
|
|
598
|
+
export interface PostUserSendEmailVerificationRequest
|
|
599
|
+
extends BaseRequest,
|
|
600
|
+
PostUserSendEmailVerificationPath {}
|
|
588
601
|
|
|
589
602
|
// PUT /user/{id}/verification/confirm - Verify a users email
|
|
590
603
|
|
|
@@ -597,7 +610,7 @@ export type PutUserVerifyUserEmailBody = VerifyEmail;
|
|
|
597
610
|
|
|
598
611
|
export type PutUserVerifyUserEmailResponse = success;
|
|
599
612
|
|
|
600
|
-
export interface PutUserVerifyUserEmailRequest extends PutUserVerifyUserEmailPath {
|
|
613
|
+
export interface PutUserVerifyUserEmailRequest extends BaseRequest, PutUserVerifyUserEmailPath {
|
|
601
614
|
body: PutUserVerifyUserEmailBody;
|
|
602
615
|
}
|
|
603
616
|
|
|
@@ -620,7 +633,8 @@ export interface PostUserVerificationPhoneBody {
|
|
|
620
633
|
export type PostUserVerificationPhoneResponse = success;
|
|
621
634
|
|
|
622
635
|
export interface PostUserVerificationPhoneRequest
|
|
623
|
-
extends
|
|
636
|
+
extends BaseRequest,
|
|
637
|
+
RequestQuery<PostUserVerificationPhoneQuery>,
|
|
624
638
|
PostUserVerificationPhonePath {
|
|
625
639
|
body: PostUserVerificationPhoneBody;
|
|
626
640
|
}
|
|
@@ -639,6 +653,6 @@ export interface PutUserVerificationPhoneBody {
|
|
|
639
653
|
|
|
640
654
|
export type PutUserVerificationPhoneResponse = success;
|
|
641
655
|
|
|
642
|
-
export interface PutUserVerificationPhoneRequest extends PutUserVerificationPhonePath {
|
|
656
|
+
export interface PutUserVerificationPhoneRequest extends BaseRequest, PutUserVerificationPhonePath {
|
|
643
657
|
body: PutUserVerificationPhoneBody;
|
|
644
658
|
}
|
package/src/interface/util.ts
CHANGED
|
@@ -2,5 +2,26 @@
|
|
|
2
2
|
* Convert number query parameters to string.
|
|
3
3
|
*/
|
|
4
4
|
export type RequestQuery<T extends object> = {
|
|
5
|
-
|
|
5
|
+
[K in keyof T]: T[K] extends number|undefined ? string : T[K];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Provider request context.
|
|
10
|
+
*/
|
|
11
|
+
export interface RequestContext {
|
|
12
|
+
subject: string;
|
|
13
|
+
user_id: string;
|
|
14
|
+
expiry: Date | null;
|
|
15
|
+
iat: Date;
|
|
16
|
+
scopes: string;
|
|
17
|
+
sub: string;
|
|
18
|
+
domain?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* All requests implement this interface.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseRequest {
|
|
25
|
+
context?: RequestContext;
|
|
26
|
+
headers?: Record<string, string>;
|
|
6
27
|
}
|
package/src/interface/vendor.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import { RequestQuery } from "./util";
|
|
3
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Error {
|
|
6
6
|
message?: string;
|
|
@@ -202,7 +202,7 @@ export type PostVendorApplicationBody = ApplicationPostBody;
|
|
|
202
202
|
|
|
203
203
|
export type PostVendorApplicationResponse = Application;
|
|
204
204
|
|
|
205
|
-
export interface PostVendorApplicationRequest {
|
|
205
|
+
export interface PostVendorApplicationRequest extends BaseRequest {
|
|
206
206
|
body: PostVendorApplicationBody;
|
|
207
207
|
}
|
|
208
208
|
|
|
@@ -216,7 +216,9 @@ export interface GetVendorApplicationQuery {
|
|
|
216
216
|
|
|
217
217
|
export type GetVendorApplicationResponse = Applications;
|
|
218
218
|
|
|
219
|
-
export interface GetVendorApplicationRequest
|
|
219
|
+
export interface GetVendorApplicationRequest
|
|
220
|
+
extends BaseRequest,
|
|
221
|
+
RequestQuery<GetVendorApplicationQuery> {}
|
|
220
222
|
|
|
221
223
|
// PATCH /vendor/application/{id} - Update an application (or update status)
|
|
222
224
|
|
|
@@ -229,7 +231,7 @@ export type PatchVendorApplicationBody = ApplicationPatchBody;
|
|
|
229
231
|
|
|
230
232
|
export type PatchVendorApplicationResponse = Application;
|
|
231
233
|
|
|
232
|
-
export interface PatchVendorApplicationRequest extends PatchVendorApplicationPath {
|
|
234
|
+
export interface PatchVendorApplicationRequest extends BaseRequest, PatchVendorApplicationPath {
|
|
233
235
|
body: PatchVendorApplicationBody;
|
|
234
236
|
}
|
|
235
237
|
|
|
@@ -239,7 +241,7 @@ export type PostVendorBody = VendorPostBody;
|
|
|
239
241
|
|
|
240
242
|
export type PostVendorResponse = Vendor;
|
|
241
243
|
|
|
242
|
-
export interface PostVendorRequest {
|
|
244
|
+
export interface PostVendorRequest extends BaseRequest {
|
|
243
245
|
body: PostVendorBody;
|
|
244
246
|
}
|
|
245
247
|
|
|
@@ -247,7 +249,7 @@ export interface PostVendorRequest {
|
|
|
247
249
|
|
|
248
250
|
export type GetVendorsResponse = Vendors;
|
|
249
251
|
|
|
250
|
-
export
|
|
252
|
+
export interface GetVendorsRequest extends BaseRequest {}
|
|
251
253
|
|
|
252
254
|
// GET /vendor/{id} - Get info about the Vendor
|
|
253
255
|
|
|
@@ -258,7 +260,7 @@ export interface GetVendorPath {
|
|
|
258
260
|
|
|
259
261
|
export type GetVendorResponse = Vendor;
|
|
260
262
|
|
|
261
|
-
export interface GetVendorRequest extends GetVendorPath {}
|
|
263
|
+
export interface GetVendorRequest extends BaseRequest, GetVendorPath {}
|
|
262
264
|
|
|
263
265
|
// PATCH /vendor/{id} - Update info about the Vendor
|
|
264
266
|
|
|
@@ -271,7 +273,7 @@ export type PatchVendorBody = Vendor;
|
|
|
271
273
|
|
|
272
274
|
export type PatchVendorResponse = Vendor;
|
|
273
275
|
|
|
274
|
-
export interface PatchVendorRequest extends PatchVendorPath {
|
|
276
|
+
export interface PatchVendorRequest extends BaseRequest, PatchVendorPath {
|
|
275
277
|
body: PatchVendorBody;
|
|
276
278
|
}
|
|
277
279
|
|
|
@@ -279,7 +281,7 @@ export interface PatchVendorRequest extends PatchVendorPath {
|
|
|
279
281
|
|
|
280
282
|
export type GetVendorAuthResponse = Auth;
|
|
281
283
|
|
|
282
|
-
export
|
|
284
|
+
export interface GetVendorAuthRequest extends BaseRequest {}
|
|
283
285
|
|
|
284
286
|
// POST /vendor/auth - Get new access token using refresh token and previous token
|
|
285
287
|
|
|
@@ -287,7 +289,7 @@ export type PostVendorAuthBody = RefreshPayload;
|
|
|
287
289
|
|
|
288
290
|
export type PostVendorAuthResponse = Auth;
|
|
289
291
|
|
|
290
|
-
export interface PostVendorAuthRequest {
|
|
292
|
+
export interface PostVendorAuthRequest extends BaseRequest {
|
|
291
293
|
body: PostVendorAuthBody;
|
|
292
294
|
}
|
|
293
295
|
|
|
@@ -300,7 +302,7 @@ export interface GetVendorKeysPath {
|
|
|
300
302
|
|
|
301
303
|
export type GetVendorKeysResponse = Keys;
|
|
302
304
|
|
|
303
|
-
export interface GetVendorKeysRequest extends GetVendorKeysPath {}
|
|
305
|
+
export interface GetVendorKeysRequest extends BaseRequest, GetVendorKeysPath {}
|
|
304
306
|
|
|
305
307
|
// POST /vendor/{id}/key - Create new key for the vendor
|
|
306
308
|
|
|
@@ -313,7 +315,7 @@ export type PostVendorKeyBody = KeyPostBody;
|
|
|
313
315
|
|
|
314
316
|
export type PostVendorKeyResponse = Key;
|
|
315
317
|
|
|
316
|
-
export interface PostVendorKeyRequest extends PostVendorKeyPath {
|
|
318
|
+
export interface PostVendorKeyRequest extends BaseRequest, PostVendorKeyPath {
|
|
317
319
|
body: PostVendorKeyBody;
|
|
318
320
|
}
|
|
319
321
|
|
|
@@ -333,7 +335,10 @@ export interface GetVendorKeyQuery {
|
|
|
333
335
|
|
|
334
336
|
export type GetVendorKeyResponse = Key;
|
|
335
337
|
|
|
336
|
-
export interface GetVendorKeyRequest
|
|
338
|
+
export interface GetVendorKeyRequest
|
|
339
|
+
extends BaseRequest,
|
|
340
|
+
RequestQuery<GetVendorKeyQuery>,
|
|
341
|
+
GetVendorKeyPath {}
|
|
337
342
|
|
|
338
343
|
// PATCH /vendor/{id}/key/{key} - Update info for vendor key
|
|
339
344
|
|
|
@@ -348,7 +353,7 @@ export type PatchVendorKeyBody = KeyPatchBody;
|
|
|
348
353
|
|
|
349
354
|
export type PatchVendorKeyResponse = Key;
|
|
350
355
|
|
|
351
|
-
export interface PatchVendorKeyRequest extends PatchVendorKeyPath {
|
|
356
|
+
export interface PatchVendorKeyRequest extends BaseRequest, PatchVendorKeyPath {
|
|
352
357
|
body: PatchVendorKeyBody;
|
|
353
358
|
}
|
|
354
359
|
|
|
@@ -363,7 +368,7 @@ export interface DeleteVendorKeyPath {
|
|
|
363
368
|
|
|
364
369
|
export type DeleteVendorKeyResponse = Key;
|
|
365
370
|
|
|
366
|
-
export interface DeleteVendorKeyRequest extends DeleteVendorKeyPath {}
|
|
371
|
+
export interface DeleteVendorKeyRequest extends BaseRequest, DeleteVendorKeyPath {}
|
|
367
372
|
|
|
368
373
|
// POST /vendor/{id}/key/{key}/rotate - Rotate vendor key
|
|
369
374
|
|
|
@@ -381,7 +386,8 @@ export interface PostVendorKeyRotateQuery {
|
|
|
381
386
|
export type PostVendorKeyRotateResponse = Success;
|
|
382
387
|
|
|
383
388
|
export interface PostVendorKeyRotateRequest
|
|
384
|
-
extends
|
|
389
|
+
extends BaseRequest,
|
|
390
|
+
RequestQuery<PostVendorKeyRotateQuery>,
|
|
385
391
|
PostVendorKeyRotatePath {}
|
|
386
392
|
|
|
387
393
|
// POST /vendor/{id}/reset/password - Reset the existing password for vendor
|
|
@@ -395,6 +401,6 @@ export type PostVendorResetPasswordBody = ResetPassword;
|
|
|
395
401
|
|
|
396
402
|
export type PostVendorResetPasswordResponse = Success;
|
|
397
403
|
|
|
398
|
-
export interface PostVendorResetPasswordRequest extends PostVendorResetPasswordPath {
|
|
404
|
+
export interface PostVendorResetPasswordRequest extends BaseRequest, PostVendorResetPasswordPath {
|
|
399
405
|
body: PostVendorResetPasswordBody;
|
|
400
406
|
}
|