@compassdigital/sdk.typescript 3.12.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 (77) hide show
  1. package/bin/gen.js +9 -3
  2. package/gen.ts +9 -4
  3. package/lib/interface/announcement.d.ts +3 -3
  4. package/lib/interface/announcement.d.ts.map +1 -1
  5. package/lib/interface/calendar.d.ts +3 -3
  6. package/lib/interface/calendar.d.ts.map +1 -1
  7. package/lib/interface/compassconnect.d.ts +2 -2
  8. package/lib/interface/compassconnect.d.ts.map +1 -1
  9. package/lib/interface/kds.d.ts +2 -2
  10. package/lib/interface/kds.d.ts.map +1 -1
  11. package/lib/interface/location.d.ts +22 -22
  12. package/lib/interface/location.d.ts.map +1 -1
  13. package/lib/interface/logger.d.ts +2 -2
  14. package/lib/interface/logger.d.ts.map +1 -1
  15. package/lib/interface/loyalty.d.ts +12 -12
  16. package/lib/interface/loyalty.d.ts.map +1 -1
  17. package/lib/interface/mealplan.d.ts +2 -2
  18. package/lib/interface/mealplan.d.ts.map +1 -1
  19. package/lib/interface/menu.d.ts +11 -11
  20. package/lib/interface/menu.d.ts.map +1 -1
  21. package/lib/interface/notification.d.ts +2 -2
  22. package/lib/interface/notification.d.ts.map +1 -1
  23. package/lib/interface/order.d.ts +6 -6
  24. package/lib/interface/order.d.ts.map +1 -1
  25. package/lib/interface/payment.d.ts +5 -5
  26. package/lib/interface/payment.d.ts.map +1 -1
  27. package/lib/interface/permission.d.ts +3 -3
  28. package/lib/interface/permission.d.ts.map +1 -1
  29. package/lib/interface/promo.d.ts +5 -5
  30. package/lib/interface/promo.d.ts.map +1 -1
  31. package/lib/interface/report.d.ts +9 -9
  32. package/lib/interface/report.d.ts.map +1 -1
  33. package/lib/interface/schedule.d.ts +2 -2
  34. package/lib/interface/schedule.d.ts.map +1 -1
  35. package/lib/interface/task.d.ts +11 -11
  36. package/lib/interface/task.d.ts.map +1 -1
  37. package/lib/interface/user.d.ts +15 -15
  38. package/lib/interface/user.d.ts.map +1 -1
  39. package/lib/interface/util.d.ts +3 -3
  40. package/lib/interface/util.d.ts.map +1 -1
  41. package/lib/interface/vendor.d.ts +4 -4
  42. package/lib/interface/vendor.d.ts.map +1 -1
  43. package/lib/interface/vote.d.ts +2 -2
  44. package/lib/interface/vote.d.ts.map +1 -1
  45. package/package.json +3 -3
  46. package/src/interface/announcement.ts +3 -3
  47. package/src/interface/brand.ts +1 -1
  48. package/src/interface/calendar.ts +3 -3
  49. package/src/interface/compassconnect.ts +2 -2
  50. package/src/interface/config.ts +1 -1
  51. package/src/interface/datalake.ts +1 -1
  52. package/src/interface/delivery.ts +1 -1
  53. package/src/interface/dh.ts +1 -1
  54. package/src/interface/email.ts +1 -1
  55. package/src/interface/file.ts +1 -1
  56. package/src/interface/kds.ts +2 -2
  57. package/src/interface/location.ts +22 -23
  58. package/src/interface/logger.ts +2 -2
  59. package/src/interface/loyalty.ts +12 -12
  60. package/src/interface/mealplan.ts +2 -2
  61. package/src/interface/menu.ts +11 -11
  62. package/src/interface/message.ts +1 -1
  63. package/src/interface/notification.ts +2 -2
  64. package/src/interface/order.ts +6 -6
  65. package/src/interface/partner.ts +1 -1
  66. package/src/interface/payment.ts +5 -5
  67. package/src/interface/permission.ts +3 -3
  68. package/src/interface/promo.ts +5 -5
  69. package/src/interface/report.ts +9 -9
  70. package/src/interface/schedule.ts +2 -2
  71. package/src/interface/shoppingcart.ts +1 -1
  72. package/src/interface/sms.ts +1 -1
  73. package/src/interface/task.ts +11 -11
  74. package/src/interface/user.ts +15 -15
  75. package/src/interface/util.ts +3 -4
  76. package/src/interface/vendor.ts +4 -4
  77. package/src/interface/vote.ts +2 -2
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { WithStringProps } from "./util";
3
+ import { RequestQuery } from "./util";
4
4
 
5
5
  export interface Success {
6
6
  success?: boolean;
@@ -384,7 +384,7 @@ export interface GetReportAnalyticsGroupQuery {
384
384
  export type GetReportAnalyticsGroupResponse = P2AnalyticsReport;
385
385
 
386
386
  export interface GetReportAnalyticsGroupRequest
387
- extends WithStringProps<GetReportAnalyticsGroupQuery>,
387
+ extends RequestQuery<GetReportAnalyticsGroupQuery>,
388
388
  GetReportAnalyticsGroupPath {}
389
389
 
390
390
  // GET /report/analytics/combined/group/{location_group}
@@ -405,7 +405,7 @@ export interface GetReportAnalyticsCombinedGroupQuery {
405
405
  export type GetReportAnalyticsCombinedGroupResponse = SAReport;
406
406
 
407
407
  export interface GetReportAnalyticsCombinedGroupRequest
408
- extends WithStringProps<GetReportAnalyticsCombinedGroupQuery>,
408
+ extends RequestQuery<GetReportAnalyticsCombinedGroupQuery>,
409
409
  GetReportAnalyticsCombinedGroupPath {}
410
410
 
411
411
  // GET /report/analytics/exactmobile/totals
@@ -420,7 +420,7 @@ export interface GetReportAnalyticsExactmobileTotalsQuery {
420
420
  export type GetReportAnalyticsExactmobileTotalsResponse = DiscrepancyTotals;
421
421
 
422
422
  export interface GetReportAnalyticsExactmobileTotalsRequest
423
- extends WithStringProps<GetReportAnalyticsExactmobileTotalsQuery> {}
423
+ extends RequestQuery<GetReportAnalyticsExactmobileTotalsQuery> {}
424
424
 
425
425
  // GET /report/analytics/exactmobile/transactions
426
426
 
@@ -434,7 +434,7 @@ export interface GetReportAnalyticsExactmobileTransactionsQuery {
434
434
  export type GetReportAnalyticsExactmobileTransactionsResponse = DiscrepancyTranscation;
435
435
 
436
436
  export interface GetReportAnalyticsExactmobileTransactionsRequest
437
- extends WithStringProps<GetReportAnalyticsExactmobileTransactionsQuery> {}
437
+ extends RequestQuery<GetReportAnalyticsExactmobileTransactionsQuery> {}
438
438
 
439
439
  // GET /report/analytics/exactmobile/discrepancies
440
440
 
@@ -448,7 +448,7 @@ export interface GetReportAnalyticsExactmobileDiscrepanciesQuery {
448
448
  export type GetReportAnalyticsExactmobileDiscrepanciesResponse = DiscrepancyCount;
449
449
 
450
450
  export interface GetReportAnalyticsExactmobileDiscrepanciesRequest
451
- extends WithStringProps<GetReportAnalyticsExactmobileDiscrepanciesQuery> {}
451
+ extends RequestQuery<GetReportAnalyticsExactmobileDiscrepanciesQuery> {}
452
452
 
453
453
  // GET /report/analytics/tracker/report/{id}
454
454
 
@@ -482,7 +482,7 @@ export interface GetReportEodGroupQuery {
482
482
  export type GetReportEodGroupResponse = EODReports;
483
483
 
484
484
  export interface GetReportEodGroupRequest
485
- extends WithStringProps<GetReportEodGroupQuery>,
485
+ extends RequestQuery<GetReportEodGroupQuery>,
486
486
  GetReportEodGroupPath {}
487
487
 
488
488
  // GET /report/eod/group/{id}/subscribers - Get reports for selected location group
@@ -543,7 +543,7 @@ export interface GetReportDiscrepancySubscribersQuery {
543
543
  export type GetReportDiscrepancySubscribersResponse = DiscrepancySubscriber;
544
544
 
545
545
  export interface GetReportDiscrepancySubscribersRequest
546
- extends WithStringProps<GetReportDiscrepancySubscribersQuery> {}
546
+ extends RequestQuery<GetReportDiscrepancySubscribersQuery> {}
547
547
 
548
548
  // DELETE /report/discrepancy/subscribers - deletes subscriber from discrepency
549
549
 
@@ -554,7 +554,7 @@ export interface DeleteReportDiscrepancySubscribersQuery {
554
554
  export type DeleteReportDiscrepancySubscribersResponse = Success;
555
555
 
556
556
  export interface DeleteReportDiscrepancySubscribersRequest
557
- extends WithStringProps<DeleteReportDiscrepancySubscribersQuery> {}
557
+ extends RequestQuery<DeleteReportDiscrepancySubscribersQuery> {}
558
558
 
559
559
  // POST /report/discrepancy/subscribers - Create new discrepancy subscriber
560
560
 
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { WithStringProps } from "./util";
3
+ import { RequestQuery } from "./util";
4
4
 
5
5
  export interface Error {
6
6
  message?: string;
@@ -99,7 +99,7 @@ export interface GetSchedulesQuery {
99
99
 
100
100
  export type GetSchedulesResponse = Schedules;
101
101
 
102
- export interface GetSchedulesRequest extends WithStringProps<GetSchedulesQuery> {}
102
+ export interface GetSchedulesRequest extends RequestQuery<GetSchedulesQuery> {}
103
103
 
104
104
  // GET /schedule/{id} - Get an individual schedule
105
105
 
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { WithStringProps } from "./util";
3
+ import { RequestQuery } from "./util";
4
4
 
5
5
  export interface Error {
6
6
  message?: string;
@@ -1,3 +1,3 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { WithStringProps } from "./util";
3
+ import { RequestQuery } from "./util";
@@ -1,8 +1,8 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { WithStringProps } from "./util";
3
+ import { RequestQuery } from "./util";
4
4
 
5
- export interface location {
5
+ export interface TaskLocation {
6
6
  // Location ID
7
7
  location_id: string;
8
8
  // Location latitude
@@ -42,8 +42,8 @@ export interface Task {
42
42
  order_details?: any;
43
43
  delivery_instructions?: string;
44
44
  };
45
- pickup_details?: location;
46
- dropoff_details?: location;
45
+ pickup_details?: TaskLocation;
46
+ dropoff_details?: TaskLocation;
47
47
  // Task Status
48
48
  status?: string;
49
49
  // Any related metadata information about this Task
@@ -88,8 +88,8 @@ export interface TaskCreate {
88
88
  order_details?: any;
89
89
  delivery_instructions?: string;
90
90
  };
91
- pickup_details: location;
92
- dropoff_details: location;
91
+ pickup_details: TaskLocation;
92
+ dropoff_details: TaskLocation;
93
93
  // Task Status
94
94
  status: string;
95
95
  // Any related metadata information about this Task
@@ -115,8 +115,8 @@ export interface TaskUpdate {
115
115
  order_details?: any;
116
116
  delivery_instructions?: string;
117
117
  };
118
- pickup_details?: location;
119
- dropoff_details?: location;
118
+ pickup_details?: TaskLocation;
119
+ dropoff_details?: TaskLocation;
120
120
  // Task Status
121
121
  status?: string;
122
122
  // Any related metadata information about this Task
@@ -241,7 +241,7 @@ export interface GetTaskAssigneeQuery {
241
241
  export type GetTaskAssigneeResponse = Tasks;
242
242
 
243
243
  export interface GetTaskAssigneeRequest
244
- extends WithStringProps<GetTaskAssigneeQuery>,
244
+ extends RequestQuery<GetTaskAssigneeQuery>,
245
245
  GetTaskAssigneePath {}
246
246
 
247
247
  // GET /task/location/brand/{id} - Get location brand tasks
@@ -271,7 +271,7 @@ export interface GetTaskLocationBrandQuery {
271
271
  export type GetTaskLocationBrandResponse = Tasks;
272
272
 
273
273
  export interface GetTaskLocationBrandRequest
274
- extends WithStringProps<GetTaskLocationBrandQuery>,
274
+ extends RequestQuery<GetTaskLocationBrandQuery>,
275
275
  GetTaskLocationBrandPath {}
276
276
 
277
277
  // GET /task/location/group/{id} - Get location group tasks
@@ -301,5 +301,5 @@ export interface GetTaskLocationGroupQuery {
301
301
  export type GetTaskLocationGroupResponse = Tasks;
302
302
 
303
303
  export interface GetTaskLocationGroupRequest
304
- extends WithStringProps<GetTaskLocationGroupQuery>,
304
+ extends RequestQuery<GetTaskLocationGroupQuery>,
305
305
  GetTaskLocationGroupPath {}
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { WithStringProps } from "./util";
3
+ import { RequestQuery } 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 WithStringProps<GetUserAuthQuery> {}
230
+ export interface GetUserAuthRequest extends RequestQuery<GetUserAuthQuery> {}
231
231
 
232
232
  // POST /user/auth - Use refresh token to generate a new access token and refresh token
233
233
 
@@ -258,7 +258,7 @@ export type PostUserBody = User;
258
258
 
259
259
  export type PostUserResponse = User;
260
260
 
261
- export interface PostUserRequest extends WithStringProps<PostUserQuery> {
261
+ export interface PostUserRequest extends 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 WithStringProps<GetUserQuery>, GetUserPath {}
279
+ export interface GetUserRequest extends 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 WithStringProps<PutUserQuery>, PutUserPath {
297
+ export interface PutUserRequest extends 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 WithStringProps<PatchUserQuery>, PatchUserPath {
317
+ export interface PatchUserRequest extends RequestQuery<PatchUserQuery>, PatchUserPath {
318
318
  body: PatchUserBody;
319
319
  }
320
320
 
@@ -332,7 +332,7 @@ export interface DeleteUserQuery {
332
332
 
333
333
  export type DeleteUserResponse = success;
334
334
 
335
- export interface DeleteUserRequest extends WithStringProps<DeleteUserQuery>, DeleteUserPath {}
335
+ export interface DeleteUserRequest extends RequestQuery<DeleteUserQuery>, DeleteUserPath {}
336
336
 
337
337
  // POST /user/device/auth - Endpoint for generating/retrieving KDS device token
338
338
 
@@ -352,7 +352,7 @@ export interface GetUserKdsTokenQuery {
352
352
 
353
353
  export type GetUserKdsTokenResponse = KDSDevices;
354
354
 
355
- export interface GetUserKdsTokenRequest extends WithStringProps<GetUserKdsTokenQuery> {}
355
+ export interface GetUserKdsTokenRequest extends RequestQuery<GetUserKdsTokenQuery> {}
356
356
 
357
357
  // DELETE /user/device/auth/{device_id} - Endpoint for deleting a device by specified device_id
358
358
 
@@ -444,7 +444,7 @@ export type PostUserResetPasswordBody = Forgotpassword;
444
444
 
445
445
  export type PostUserResetPasswordResponse = success;
446
446
 
447
- export interface PostUserResetPasswordRequest extends WithStringProps<PostUserResetPasswordQuery> {
447
+ export interface PostUserResetPasswordRequest extends RequestQuery<PostUserResetPasswordQuery> {
448
448
  body: PostUserResetPasswordBody;
449
449
  }
450
450
 
@@ -465,7 +465,7 @@ export type PostUserResetPasswordTokenBody = Resetpassword;
465
465
  export type PostUserResetPasswordTokenResponse = success;
466
466
 
467
467
  export interface PostUserResetPasswordTokenRequest
468
- extends WithStringProps<PostUserResetPasswordTokenQuery>,
468
+ extends RequestQuery<PostUserResetPasswordTokenQuery>,
469
469
  PostUserResetPasswordTokenPath {
470
470
  body: PostUserResetPasswordTokenBody;
471
471
  }
@@ -489,7 +489,7 @@ export interface GetUserRealmUsersQuery {
489
489
  export type GetUserRealmUsersResponse = Users;
490
490
 
491
491
  export interface GetUserRealmUsersRequest
492
- extends WithStringProps<GetUserRealmUsersQuery>,
492
+ extends RequestQuery<GetUserRealmUsersQuery>,
493
493
  GetUserRealmUsersPath {}
494
494
 
495
495
  // GET /user/{id}/permissions - Get user permissions
@@ -507,7 +507,7 @@ export interface GetUserPermissionsQuery {
507
507
  export type GetUserPermissionsResponse = User;
508
508
 
509
509
  export interface GetUserPermissionsRequest
510
- extends WithStringProps<GetUserPermissionsQuery>,
510
+ extends RequestQuery<GetUserPermissionsQuery>,
511
511
  GetUserPermissionsPath {}
512
512
 
513
513
  // PUT /user/{id}/permissions - Update user permissions
@@ -529,7 +529,7 @@ export interface PutUserPermissionsBody {
529
529
  export type PutUserPermissionsResponse = User;
530
530
 
531
531
  export interface PutUserPermissionsRequest
532
- extends WithStringProps<PutUserPermissionsQuery>,
532
+ extends RequestQuery<PutUserPermissionsQuery>,
533
533
  PutUserPermissionsPath {
534
534
  body: PutUserPermissionsBody;
535
535
  }
@@ -577,7 +577,7 @@ export interface GetUserSearchCheckInQuery {
577
577
 
578
578
  export type GetUserSearchCheckInResponse = Checkin;
579
579
 
580
- export interface GetUserSearchCheckInRequest extends WithStringProps<GetUserSearchCheckInQuery> {}
580
+ export interface GetUserSearchCheckInRequest extends RequestQuery<GetUserSearchCheckInQuery> {}
581
581
 
582
582
  // POST /user/{id}/verification - Send email verification to user
583
583
 
@@ -624,7 +624,7 @@ export interface PostUserVerificationPhoneBody {
624
624
  export type PostUserVerificationPhoneResponse = success;
625
625
 
626
626
  export interface PostUserVerificationPhoneRequest
627
- extends WithStringProps<PostUserVerificationPhoneQuery>,
627
+ extends RequestQuery<PostUserVerificationPhoneQuery>,
628
628
  PostUserVerificationPhonePath {
629
629
  body: PostUserVerificationPhoneBody;
630
630
  }
@@ -1,7 +1,6 @@
1
-
2
1
  /**
3
- * Convert all properties of T to be of type string.
2
+ * Convert number query parameters to string.
4
3
  */
5
- export type WithStringProps<T extends object> = {
6
- [K in keyof T]: string;
4
+ export type RequestQuery<T extends object> = {
5
+ [K in keyof T]: T[K] extends number ? string : T[K];
7
6
  }
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { WithStringProps } from "./util";
3
+ import { RequestQuery } from "./util";
4
4
 
5
5
  export interface Error {
6
6
  message?: string;
@@ -216,7 +216,7 @@ export interface GetVendorApplicationQuery {
216
216
 
217
217
  export type GetVendorApplicationResponse = Applications;
218
218
 
219
- export interface GetVendorApplicationRequest extends WithStringProps<GetVendorApplicationQuery> {}
219
+ export interface GetVendorApplicationRequest extends RequestQuery<GetVendorApplicationQuery> {}
220
220
 
221
221
  // PATCH /vendor/application/{id} - Update an application (or update status)
222
222
 
@@ -333,7 +333,7 @@ export interface GetVendorKeyQuery {
333
333
 
334
334
  export type GetVendorKeyResponse = Key;
335
335
 
336
- export interface GetVendorKeyRequest extends WithStringProps<GetVendorKeyQuery>, GetVendorKeyPath {}
336
+ export interface GetVendorKeyRequest extends RequestQuery<GetVendorKeyQuery>, GetVendorKeyPath {}
337
337
 
338
338
  // PATCH /vendor/{id}/key/{key} - Update info for vendor key
339
339
 
@@ -381,7 +381,7 @@ export interface PostVendorKeyRotateQuery {
381
381
  export type PostVendorKeyRotateResponse = Success;
382
382
 
383
383
  export interface PostVendorKeyRotateRequest
384
- extends WithStringProps<PostVendorKeyRotateQuery>,
384
+ extends RequestQuery<PostVendorKeyRotateQuery>,
385
385
  PostVendorKeyRotatePath {}
386
386
 
387
387
  // POST /vendor/{id}/reset/password - Reset the existing password for vendor
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { WithStringProps } from "./util";
3
+ import { RequestQuery } from "./util";
4
4
 
5
5
  export interface Error {
6
6
  message?: string;
@@ -72,4 +72,4 @@ export interface GetVoteIdfaResponse {
72
72
  votes?: Vote[];
73
73
  }
74
74
 
75
- export interface GetVoteIdfaRequest extends WithStringProps<GetVoteIdfaQuery>, GetVoteIdfaPath {}
75
+ export interface GetVoteIdfaRequest extends RequestQuery<GetVoteIdfaQuery>, GetVoteIdfaPath {}