@compassdigital/sdk.typescript 3.11.0 → 3.12.1

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.
Files changed (97) hide show
  1. package/bin/gen.js +10 -1
  2. package/gen.ts +10 -2
  3. package/lib/index.d.ts +7 -1
  4. package/lib/index.d.ts.map +1 -1
  5. package/lib/index.js +8 -0
  6. package/lib/index.js.map +1 -1
  7. package/lib/interface/announcement.d.ts +3 -2
  8. package/lib/interface/announcement.d.ts.map +1 -1
  9. package/lib/interface/brand.d.ts.map +1 -1
  10. package/lib/interface/calendar.d.ts +3 -2
  11. package/lib/interface/calendar.d.ts.map +1 -1
  12. package/lib/interface/compassconnect.d.ts +2 -1
  13. package/lib/interface/compassconnect.d.ts.map +1 -1
  14. package/lib/interface/config.d.ts +2 -0
  15. package/lib/interface/config.d.ts.map +1 -1
  16. package/lib/interface/datalake.d.ts.map +1 -1
  17. package/lib/interface/delivery.d.ts.map +1 -1
  18. package/lib/interface/dh.d.ts.map +1 -1
  19. package/lib/interface/email.d.ts.map +1 -1
  20. package/lib/interface/file.d.ts.map +1 -1
  21. package/lib/interface/kds.d.ts +2 -1
  22. package/lib/interface/kds.d.ts.map +1 -1
  23. package/lib/interface/location.d.ts +22 -21
  24. package/lib/interface/location.d.ts.map +1 -1
  25. package/lib/interface/logger.d.ts +2 -1
  26. package/lib/interface/logger.d.ts.map +1 -1
  27. package/lib/interface/loyalty.d.ts +12 -11
  28. package/lib/interface/loyalty.d.ts.map +1 -1
  29. package/lib/interface/mealplan.d.ts +2 -1
  30. package/lib/interface/mealplan.d.ts.map +1 -1
  31. package/lib/interface/menu.d.ts +11 -10
  32. package/lib/interface/menu.d.ts.map +1 -1
  33. package/lib/interface/message.d.ts.map +1 -1
  34. package/lib/interface/notification.d.ts +2 -1
  35. package/lib/interface/notification.d.ts.map +1 -1
  36. package/lib/interface/order.d.ts +6 -5
  37. package/lib/interface/order.d.ts.map +1 -1
  38. package/lib/interface/partner.d.ts.map +1 -1
  39. package/lib/interface/payment.d.ts +5 -4
  40. package/lib/interface/payment.d.ts.map +1 -1
  41. package/lib/interface/permission.d.ts +3 -2
  42. package/lib/interface/permission.d.ts.map +1 -1
  43. package/lib/interface/promo.d.ts +5 -4
  44. package/lib/interface/promo.d.ts.map +1 -1
  45. package/lib/interface/report.d.ts +9 -8
  46. package/lib/interface/report.d.ts.map +1 -1
  47. package/lib/interface/schedule.d.ts +2 -1
  48. package/lib/interface/schedule.d.ts.map +1 -1
  49. package/lib/interface/shoppingcart.d.ts.map +1 -1
  50. package/lib/interface/sms.d.ts +1 -0
  51. package/lib/interface/sms.js +1 -0
  52. package/lib/interface/task.d.ts +11 -10
  53. package/lib/interface/task.d.ts.map +1 -1
  54. package/lib/interface/user.d.ts +15 -14
  55. package/lib/interface/user.d.ts.map +1 -1
  56. package/lib/interface/util.d.ts +7 -0
  57. package/lib/interface/util.d.ts.map +1 -0
  58. package/lib/interface/util.js +3 -0
  59. package/lib/interface/util.js.map +1 -0
  60. package/lib/interface/vendor.d.ts +4 -3
  61. package/lib/interface/vendor.d.ts.map +1 -1
  62. package/lib/interface/vote.d.ts +2 -1
  63. package/lib/interface/vote.d.ts.map +1 -1
  64. package/package.json +3 -3
  65. package/src/index.ts +17 -0
  66. package/src/interface/announcement.ts +5 -2
  67. package/src/interface/brand.ts +2 -0
  68. package/src/interface/calendar.ts +6 -2
  69. package/src/interface/compassconnect.ts +4 -1
  70. package/src/interface/config.ts +8 -0
  71. package/src/interface/datalake.ts +2 -0
  72. package/src/interface/delivery.ts +2 -0
  73. package/src/interface/dh.ts +2 -0
  74. package/src/interface/email.ts +2 -0
  75. package/src/interface/file.ts +2 -0
  76. package/src/interface/kds.ts +3 -1
  77. package/src/interface/location.ts +29 -21
  78. package/src/interface/logger.ts +3 -1
  79. package/src/interface/loyalty.ts +25 -11
  80. package/src/interface/mealplan.ts +5 -1
  81. package/src/interface/menu.ts +12 -10
  82. package/src/interface/message.ts +2 -0
  83. package/src/interface/notification.ts +3 -1
  84. package/src/interface/order.ts +7 -5
  85. package/src/interface/partner.ts +2 -0
  86. package/src/interface/payment.ts +8 -4
  87. package/src/interface/permission.ts +4 -2
  88. package/src/interface/promo.ts +6 -4
  89. package/src/interface/report.ts +12 -8
  90. package/src/interface/schedule.ts +3 -1
  91. package/src/interface/shoppingcart.ts +2 -0
  92. package/src/interface/sms.ts +2 -0
  93. package/src/interface/task.ts +14 -10
  94. package/src/interface/user.ts +20 -14
  95. package/src/interface/util.ts +6 -0
  96. package/src/interface/vendor.ts +5 -3
  97. package/src/interface/vote.ts +3 -1
@@ -1,5 +1,7 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ import { RequestQuery } from "./util";
4
+
3
5
  export interface Error {
4
6
  message?: string;
5
7
  code?: number;
@@ -1,5 +1,7 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ import { RequestQuery } from "./util";
4
+
3
5
  export interface Transaction {
4
6
  success?: boolean;
5
7
  [index: string]: any;
@@ -262,7 +264,9 @@ export interface GetPaymentMethodResponse {
262
264
  payment_methods?: PaymentMethod[];
263
265
  }
264
266
 
265
- export interface GetPaymentMethodRequest extends GetPaymentMethodQuery, GetPaymentMethodPath {}
267
+ export interface GetPaymentMethodRequest
268
+ extends RequestQuery<GetPaymentMethodQuery>,
269
+ GetPaymentMethodPath {}
266
270
 
267
271
  // DELETE /payment/{id}/method/{method_id}
268
272
 
@@ -301,7 +305,7 @@ export interface GetPaymentTokenQuery {
301
305
 
302
306
  export type GetPaymentTokenResponse = TokenInformation;
303
307
 
304
- export interface GetPaymentTokenRequest extends GetPaymentTokenQuery {}
308
+ export interface GetPaymentTokenRequest extends RequestQuery<GetPaymentTokenQuery> {}
305
309
 
306
310
  // POST /payment/token
307
311
 
@@ -370,7 +374,7 @@ export interface GetPaymentMethodsResponse {
370
374
  recordsTotal?: number;
371
375
  }
372
376
 
373
- export interface GetPaymentMethodsRequest extends GetPaymentMethodsQuery {}
377
+ export interface GetPaymentMethodsRequest extends RequestQuery<GetPaymentMethodsQuery> {}
374
378
 
375
379
  // GET /payment/hpc
376
380
 
@@ -386,4 +390,4 @@ export interface GetPaymentHpcResponse {
386
390
  sessionKey?: string;
387
391
  }
388
392
 
389
- export interface GetPaymentHpcRequest extends GetPaymentHpcQuery {}
393
+ export interface GetPaymentHpcRequest extends RequestQuery<GetPaymentHpcQuery> {}
@@ -1,5 +1,7 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ import { RequestQuery } from "./util";
4
+
3
5
  export interface Success {
4
6
  success?: boolean;
5
7
  }
@@ -148,7 +150,7 @@ export interface GetPermissionRoleQuery {
148
150
 
149
151
  export type GetPermissionRoleResponse = Roles;
150
152
 
151
- export interface GetPermissionRoleRequest extends GetPermissionRoleQuery {}
153
+ export interface GetPermissionRoleRequest extends RequestQuery<GetPermissionRoleQuery> {}
152
154
 
153
155
  // POST /permission/role - Create a new role
154
156
 
@@ -192,7 +194,7 @@ export interface GetPermissionRecipientQuery {
192
194
  export type GetPermissionRecipientResponse = Permissions;
193
195
 
194
196
  export interface GetPermissionRecipientRequest
195
- extends GetPermissionRecipientQuery,
197
+ extends RequestQuery<GetPermissionRecipientQuery>,
196
198
  GetPermissionRecipientPath {}
197
199
 
198
200
  // GET /permission/role/user/{user_id} - Get a list of role assignments for a user
@@ -1,5 +1,7 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ import { RequestQuery } from "./util";
4
+
3
5
  export interface Error {
4
6
  message?: string;
5
7
  code?: number;
@@ -259,7 +261,7 @@ export interface GetPromosQuery {
259
261
 
260
262
  export type GetPromosResponse = Promotions;
261
263
 
262
- export interface GetPromosRequest extends GetPromosQuery {}
264
+ export interface GetPromosRequest extends RequestQuery<GetPromosQuery> {}
263
265
 
264
266
  // GET /promo/{id} - Get an individual promotion
265
267
 
@@ -275,7 +277,7 @@ export interface GetPromoQuery {
275
277
 
276
278
  export type GetPromoResponse = Promotion;
277
279
 
278
- export interface GetPromoRequest extends GetPromoQuery, GetPromoPath {}
280
+ export interface GetPromoRequest extends RequestQuery<GetPromoQuery>, GetPromoPath {}
279
281
 
280
282
  // PUT /promo/{id} - Update a promotion
281
283
 
@@ -321,7 +323,7 @@ export interface GetPromoCompanyLocationGroupQuery {
321
323
  export type GetPromoCompanyLocationGroupResponse = Promotions;
322
324
 
323
325
  export interface GetPromoCompanyLocationGroupRequest
324
- extends GetPromoCompanyLocationGroupQuery,
326
+ extends RequestQuery<GetPromoCompanyLocationGroupQuery>,
325
327
  GetPromoCompanyLocationGroupPath {}
326
328
 
327
329
  // POST /promo/validate/voucher - Validate a promo voucher
@@ -386,7 +388,7 @@ export interface DeletePromoVoucherResponse {
386
388
  }
387
389
 
388
390
  export interface DeletePromoVoucherRequest
389
- extends DeletePromoVoucherQuery,
391
+ extends RequestQuery<DeletePromoVoucherQuery>,
390
392
  DeletePromoVoucherPath {}
391
393
 
392
394
  // POST /promo/customer/ - Add user to voucherify
@@ -1,5 +1,7 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ import { RequestQuery } from "./util";
4
+
3
5
  export interface Success {
4
6
  success?: boolean;
5
7
  }
@@ -382,7 +384,7 @@ export interface GetReportAnalyticsGroupQuery {
382
384
  export type GetReportAnalyticsGroupResponse = P2AnalyticsReport;
383
385
 
384
386
  export interface GetReportAnalyticsGroupRequest
385
- extends GetReportAnalyticsGroupQuery,
387
+ extends RequestQuery<GetReportAnalyticsGroupQuery>,
386
388
  GetReportAnalyticsGroupPath {}
387
389
 
388
390
  // GET /report/analytics/combined/group/{location_group}
@@ -403,7 +405,7 @@ export interface GetReportAnalyticsCombinedGroupQuery {
403
405
  export type GetReportAnalyticsCombinedGroupResponse = SAReport;
404
406
 
405
407
  export interface GetReportAnalyticsCombinedGroupRequest
406
- extends GetReportAnalyticsCombinedGroupQuery,
408
+ extends RequestQuery<GetReportAnalyticsCombinedGroupQuery>,
407
409
  GetReportAnalyticsCombinedGroupPath {}
408
410
 
409
411
  // GET /report/analytics/exactmobile/totals
@@ -418,7 +420,7 @@ export interface GetReportAnalyticsExactmobileTotalsQuery {
418
420
  export type GetReportAnalyticsExactmobileTotalsResponse = DiscrepancyTotals;
419
421
 
420
422
  export interface GetReportAnalyticsExactmobileTotalsRequest
421
- extends GetReportAnalyticsExactmobileTotalsQuery {}
423
+ extends RequestQuery<GetReportAnalyticsExactmobileTotalsQuery> {}
422
424
 
423
425
  // GET /report/analytics/exactmobile/transactions
424
426
 
@@ -432,7 +434,7 @@ export interface GetReportAnalyticsExactmobileTransactionsQuery {
432
434
  export type GetReportAnalyticsExactmobileTransactionsResponse = DiscrepancyTranscation;
433
435
 
434
436
  export interface GetReportAnalyticsExactmobileTransactionsRequest
435
- extends GetReportAnalyticsExactmobileTransactionsQuery {}
437
+ extends RequestQuery<GetReportAnalyticsExactmobileTransactionsQuery> {}
436
438
 
437
439
  // GET /report/analytics/exactmobile/discrepancies
438
440
 
@@ -446,7 +448,7 @@ export interface GetReportAnalyticsExactmobileDiscrepanciesQuery {
446
448
  export type GetReportAnalyticsExactmobileDiscrepanciesResponse = DiscrepancyCount;
447
449
 
448
450
  export interface GetReportAnalyticsExactmobileDiscrepanciesRequest
449
- extends GetReportAnalyticsExactmobileDiscrepanciesQuery {}
451
+ extends RequestQuery<GetReportAnalyticsExactmobileDiscrepanciesQuery> {}
450
452
 
451
453
  // GET /report/analytics/tracker/report/{id}
452
454
 
@@ -479,7 +481,9 @@ export interface GetReportEodGroupQuery {
479
481
 
480
482
  export type GetReportEodGroupResponse = EODReports;
481
483
 
482
- export interface GetReportEodGroupRequest extends GetReportEodGroupQuery, GetReportEodGroupPath {}
484
+ export interface GetReportEodGroupRequest
485
+ extends RequestQuery<GetReportEodGroupQuery>,
486
+ GetReportEodGroupPath {}
483
487
 
484
488
  // GET /report/eod/group/{id}/subscribers - Get reports for selected location group
485
489
 
@@ -539,7 +543,7 @@ export interface GetReportDiscrepancySubscribersQuery {
539
543
  export type GetReportDiscrepancySubscribersResponse = DiscrepancySubscriber;
540
544
 
541
545
  export interface GetReportDiscrepancySubscribersRequest
542
- extends GetReportDiscrepancySubscribersQuery {}
546
+ extends RequestQuery<GetReportDiscrepancySubscribersQuery> {}
543
547
 
544
548
  // DELETE /report/discrepancy/subscribers - deletes subscriber from discrepency
545
549
 
@@ -550,7 +554,7 @@ export interface DeleteReportDiscrepancySubscribersQuery {
550
554
  export type DeleteReportDiscrepancySubscribersResponse = Success;
551
555
 
552
556
  export interface DeleteReportDiscrepancySubscribersRequest
553
- extends DeleteReportDiscrepancySubscribersQuery {}
557
+ extends RequestQuery<DeleteReportDiscrepancySubscribersQuery> {}
554
558
 
555
559
  // POST /report/discrepancy/subscribers - Create new discrepancy subscriber
556
560
 
@@ -1,5 +1,7 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ import { RequestQuery } from "./util";
4
+
3
5
  export interface Error {
4
6
  message?: string;
5
7
  code?: number;
@@ -97,7 +99,7 @@ export interface GetSchedulesQuery {
97
99
 
98
100
  export type GetSchedulesResponse = Schedules;
99
101
 
100
- export interface GetSchedulesRequest extends GetSchedulesQuery {}
102
+ export interface GetSchedulesRequest extends RequestQuery<GetSchedulesQuery> {}
101
103
 
102
104
  // GET /schedule/{id} - Get an individual schedule
103
105
 
@@ -1,5 +1,7 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ import { RequestQuery } from "./util";
4
+
3
5
  export interface Error {
4
6
  message?: string;
5
7
  code?: number;
@@ -1 +1,3 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ import { RequestQuery } from "./util";
@@ -1,6 +1,8 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- export interface location {
3
+ import { RequestQuery } from "./util";
4
+
5
+ export interface TaskLocation {
4
6
  // Location ID
5
7
  location_id: string;
6
8
  // Location latitude
@@ -40,8 +42,8 @@ export interface Task {
40
42
  order_details?: any;
41
43
  delivery_instructions?: string;
42
44
  };
43
- pickup_details?: location;
44
- dropoff_details?: location;
45
+ pickup_details?: TaskLocation;
46
+ dropoff_details?: TaskLocation;
45
47
  // Task Status
46
48
  status?: string;
47
49
  // Any related metadata information about this Task
@@ -86,8 +88,8 @@ export interface TaskCreate {
86
88
  order_details?: any;
87
89
  delivery_instructions?: string;
88
90
  };
89
- pickup_details: location;
90
- dropoff_details: location;
91
+ pickup_details: TaskLocation;
92
+ dropoff_details: TaskLocation;
91
93
  // Task Status
92
94
  status: string;
93
95
  // Any related metadata information about this Task
@@ -113,8 +115,8 @@ export interface TaskUpdate {
113
115
  order_details?: any;
114
116
  delivery_instructions?: string;
115
117
  };
116
- pickup_details?: location;
117
- dropoff_details?: location;
118
+ pickup_details?: TaskLocation;
119
+ dropoff_details?: TaskLocation;
118
120
  // Task Status
119
121
  status?: string;
120
122
  // Any related metadata information about this Task
@@ -238,7 +240,9 @@ export interface GetTaskAssigneeQuery {
238
240
 
239
241
  export type GetTaskAssigneeResponse = Tasks;
240
242
 
241
- export interface GetTaskAssigneeRequest extends GetTaskAssigneeQuery, GetTaskAssigneePath {}
243
+ export interface GetTaskAssigneeRequest
244
+ extends RequestQuery<GetTaskAssigneeQuery>,
245
+ GetTaskAssigneePath {}
242
246
 
243
247
  // GET /task/location/brand/{id} - Get location brand tasks
244
248
 
@@ -267,7 +271,7 @@ export interface GetTaskLocationBrandQuery {
267
271
  export type GetTaskLocationBrandResponse = Tasks;
268
272
 
269
273
  export interface GetTaskLocationBrandRequest
270
- extends GetTaskLocationBrandQuery,
274
+ extends RequestQuery<GetTaskLocationBrandQuery>,
271
275
  GetTaskLocationBrandPath {}
272
276
 
273
277
  // GET /task/location/group/{id} - Get location group tasks
@@ -297,5 +301,5 @@ export interface GetTaskLocationGroupQuery {
297
301
  export type GetTaskLocationGroupResponse = Tasks;
298
302
 
299
303
  export interface GetTaskLocationGroupRequest
300
- extends GetTaskLocationGroupQuery,
304
+ extends RequestQuery<GetTaskLocationGroupQuery>,
301
305
  GetTaskLocationGroupPath {}
@@ -1,5 +1,7 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ import { RequestQuery } from "./util";
4
+
3
5
  export interface Error {
4
6
  message?: string;
5
7
  code?: number;
@@ -225,7 +227,7 @@ export interface GetUserAuthQuery {
225
227
 
226
228
  export type GetUserAuthResponse = auth;
227
229
 
228
- export interface GetUserAuthRequest extends GetUserAuthQuery {}
230
+ export interface GetUserAuthRequest extends RequestQuery<GetUserAuthQuery> {}
229
231
 
230
232
  // POST /user/auth - Use refresh token to generate a new access token and refresh token
231
233
 
@@ -256,7 +258,7 @@ export type PostUserBody = User;
256
258
 
257
259
  export type PostUserResponse = User;
258
260
 
259
- export interface PostUserRequest extends PostUserQuery {
261
+ export interface PostUserRequest extends RequestQuery<PostUserQuery> {
260
262
  body: PostUserBody;
261
263
  }
262
264
 
@@ -274,7 +276,7 @@ export interface GetUserQuery {
274
276
 
275
277
  export type GetUserResponse = User;
276
278
 
277
- export interface GetUserRequest extends GetUserQuery, GetUserPath {}
279
+ export interface GetUserRequest extends RequestQuery<GetUserQuery>, GetUserPath {}
278
280
 
279
281
  // PUT /user/{id} - Update an individual user
280
282
 
@@ -292,7 +294,7 @@ export type PutUserBody = User;
292
294
 
293
295
  export type PutUserResponse = User;
294
296
 
295
- export interface PutUserRequest extends PutUserQuery, PutUserPath {
297
+ export interface PutUserRequest extends RequestQuery<PutUserQuery>, PutUserPath {
296
298
  body: PutUserBody;
297
299
  }
298
300
 
@@ -312,7 +314,7 @@ export type PatchUserBody = User;
312
314
 
313
315
  export type PatchUserResponse = User;
314
316
 
315
- export interface PatchUserRequest extends PatchUserQuery, PatchUserPath {
317
+ export interface PatchUserRequest extends RequestQuery<PatchUserQuery>, PatchUserPath {
316
318
  body: PatchUserBody;
317
319
  }
318
320
 
@@ -330,7 +332,7 @@ export interface DeleteUserQuery {
330
332
 
331
333
  export type DeleteUserResponse = success;
332
334
 
333
- export interface DeleteUserRequest extends DeleteUserQuery, DeleteUserPath {}
335
+ export interface DeleteUserRequest extends RequestQuery<DeleteUserQuery>, DeleteUserPath {}
334
336
 
335
337
  // POST /user/device/auth - Endpoint for generating/retrieving KDS device token
336
338
 
@@ -350,7 +352,7 @@ export interface GetUserKdsTokenQuery {
350
352
 
351
353
  export type GetUserKdsTokenResponse = KDSDevices;
352
354
 
353
- export interface GetUserKdsTokenRequest extends GetUserKdsTokenQuery {}
355
+ export interface GetUserKdsTokenRequest extends RequestQuery<GetUserKdsTokenQuery> {}
354
356
 
355
357
  // DELETE /user/device/auth/{device_id} - Endpoint for deleting a device by specified device_id
356
358
 
@@ -442,7 +444,7 @@ export type PostUserResetPasswordBody = Forgotpassword;
442
444
 
443
445
  export type PostUserResetPasswordResponse = success;
444
446
 
445
- export interface PostUserResetPasswordRequest extends PostUserResetPasswordQuery {
447
+ export interface PostUserResetPasswordRequest extends RequestQuery<PostUserResetPasswordQuery> {
446
448
  body: PostUserResetPasswordBody;
447
449
  }
448
450
 
@@ -463,7 +465,7 @@ export type PostUserResetPasswordTokenBody = Resetpassword;
463
465
  export type PostUserResetPasswordTokenResponse = success;
464
466
 
465
467
  export interface PostUserResetPasswordTokenRequest
466
- extends PostUserResetPasswordTokenQuery,
468
+ extends RequestQuery<PostUserResetPasswordTokenQuery>,
467
469
  PostUserResetPasswordTokenPath {
468
470
  body: PostUserResetPasswordTokenBody;
469
471
  }
@@ -486,7 +488,9 @@ export interface GetUserRealmUsersQuery {
486
488
 
487
489
  export type GetUserRealmUsersResponse = Users;
488
490
 
489
- export interface GetUserRealmUsersRequest extends GetUserRealmUsersQuery, GetUserRealmUsersPath {}
491
+ export interface GetUserRealmUsersRequest
492
+ extends RequestQuery<GetUserRealmUsersQuery>,
493
+ GetUserRealmUsersPath {}
490
494
 
491
495
  // GET /user/{id}/permissions - Get user permissions
492
496
 
@@ -503,7 +507,7 @@ export interface GetUserPermissionsQuery {
503
507
  export type GetUserPermissionsResponse = User;
504
508
 
505
509
  export interface GetUserPermissionsRequest
506
- extends GetUserPermissionsQuery,
510
+ extends RequestQuery<GetUserPermissionsQuery>,
507
511
  GetUserPermissionsPath {}
508
512
 
509
513
  // PUT /user/{id}/permissions - Update user permissions
@@ -524,7 +528,9 @@ export interface PutUserPermissionsBody {
524
528
 
525
529
  export type PutUserPermissionsResponse = User;
526
530
 
527
- export interface PutUserPermissionsRequest extends PutUserPermissionsQuery, PutUserPermissionsPath {
531
+ export interface PutUserPermissionsRequest
532
+ extends RequestQuery<PutUserPermissionsQuery>,
533
+ PutUserPermissionsPath {
528
534
  body: PutUserPermissionsBody;
529
535
  }
530
536
 
@@ -571,7 +577,7 @@ export interface GetUserSearchCheckInQuery {
571
577
 
572
578
  export type GetUserSearchCheckInResponse = Checkin;
573
579
 
574
- export interface GetUserSearchCheckInRequest extends GetUserSearchCheckInQuery {}
580
+ export interface GetUserSearchCheckInRequest extends RequestQuery<GetUserSearchCheckInQuery> {}
575
581
 
576
582
  // POST /user/{id}/verification - Send email verification to user
577
583
 
@@ -618,7 +624,7 @@ export interface PostUserVerificationPhoneBody {
618
624
  export type PostUserVerificationPhoneResponse = success;
619
625
 
620
626
  export interface PostUserVerificationPhoneRequest
621
- extends PostUserVerificationPhoneQuery,
627
+ extends RequestQuery<PostUserVerificationPhoneQuery>,
622
628
  PostUserVerificationPhonePath {
623
629
  body: PostUserVerificationPhoneBody;
624
630
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Convert number query parameters to string.
3
+ */
4
+ export type RequestQuery<T extends object> = {
5
+ [K in keyof T]: T[K] extends number ? string : T[K];
6
+ }
@@ -1,5 +1,7 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ import { RequestQuery } from "./util";
4
+
3
5
  export interface Error {
4
6
  message?: string;
5
7
  code?: number;
@@ -214,7 +216,7 @@ export interface GetVendorApplicationQuery {
214
216
 
215
217
  export type GetVendorApplicationResponse = Applications;
216
218
 
217
- export interface GetVendorApplicationRequest extends GetVendorApplicationQuery {}
219
+ export interface GetVendorApplicationRequest extends RequestQuery<GetVendorApplicationQuery> {}
218
220
 
219
221
  // PATCH /vendor/application/{id} - Update an application (or update status)
220
222
 
@@ -331,7 +333,7 @@ export interface GetVendorKeyQuery {
331
333
 
332
334
  export type GetVendorKeyResponse = Key;
333
335
 
334
- export interface GetVendorKeyRequest extends GetVendorKeyQuery, GetVendorKeyPath {}
336
+ export interface GetVendorKeyRequest extends RequestQuery<GetVendorKeyQuery>, GetVendorKeyPath {}
335
337
 
336
338
  // PATCH /vendor/{id}/key/{key} - Update info for vendor key
337
339
 
@@ -379,7 +381,7 @@ export interface PostVendorKeyRotateQuery {
379
381
  export type PostVendorKeyRotateResponse = Success;
380
382
 
381
383
  export interface PostVendorKeyRotateRequest
382
- extends PostVendorKeyRotateQuery,
384
+ extends RequestQuery<PostVendorKeyRotateQuery>,
383
385
  PostVendorKeyRotatePath {}
384
386
 
385
387
  // POST /vendor/{id}/reset/password - Reset the existing password for vendor
@@ -1,5 +1,7 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ import { RequestQuery } from "./util";
4
+
3
5
  export interface Error {
4
6
  message?: string;
5
7
  code?: number;
@@ -70,4 +72,4 @@ export interface GetVoteIdfaResponse {
70
72
  votes?: Vote[];
71
73
  }
72
74
 
73
- export interface GetVoteIdfaRequest extends GetVoteIdfaQuery, GetVoteIdfaPath {}
75
+ export interface GetVoteIdfaRequest extends RequestQuery<GetVoteIdfaQuery>, GetVoteIdfaPath {}