@oystehr/sdk 3.0.4 → 3.0.6

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 (162) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/config.d.ts +8 -0
  3. package/dist/cjs/index.cjs +856 -642
  4. package/dist/cjs/index.cjs.map +1 -1
  5. package/dist/cjs/index.min.cjs +1 -1
  6. package/dist/cjs/index.min.cjs.map +1 -1
  7. package/dist/cjs/resources/classes/application.d.ts +8 -8
  8. package/dist/cjs/resources/classes/charge.d.ts +2 -2
  9. package/dist/cjs/resources/classes/conversation.d.ts +5 -5
  10. package/dist/cjs/resources/classes/developer.d.ts +6 -6
  11. package/dist/cjs/resources/classes/erx.d.ts +13 -5
  12. package/dist/cjs/resources/classes/fax.d.ts +30 -0
  13. package/dist/cjs/resources/classes/index.d.ts +2 -0
  14. package/dist/cjs/resources/classes/m2m.d.ts +7 -7
  15. package/dist/cjs/resources/classes/messaging.d.ts +1 -1
  16. package/dist/cjs/resources/classes/paymentMethod.d.ts +4 -4
  17. package/dist/cjs/resources/classes/project.d.ts +2 -2
  18. package/dist/cjs/resources/classes/rcm.d.ts +4 -4
  19. package/dist/cjs/resources/classes/role.d.ts +5 -5
  20. package/dist/cjs/resources/classes/secret.d.ts +4 -4
  21. package/dist/cjs/resources/classes/telemed.d.ts +2 -2
  22. package/dist/cjs/resources/classes/transactionalSMS.d.ts +1 -1
  23. package/dist/cjs/resources/classes/user.d.ts +7 -7
  24. package/dist/cjs/resources/classes/version.d.ts +1 -1
  25. package/dist/cjs/resources/classes/z3.d.ts +7 -7
  26. package/dist/cjs/resources/classes/zambda.d.ts +8 -8
  27. package/dist/cjs/resources/classes/zambdaLogStream.d.ts +3 -3
  28. package/dist/cjs/resources/types/ConversationAddParticipantParams.d.ts +1 -1
  29. package/dist/cjs/resources/types/ConversationCreateResponse.d.ts +1 -1
  30. package/dist/cjs/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
  31. package/dist/cjs/resources/types/ErxCancelOrderParams.d.ts +6 -0
  32. package/dist/cjs/resources/types/ErxCancelOrderResponse.d.ts +6 -0
  33. package/dist/cjs/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
  34. package/dist/cjs/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
  35. package/dist/cjs/resources/types/FaxSendParams.d.ts +18 -0
  36. package/dist/cjs/resources/types/FaxSendResponse.d.ts +10 -0
  37. package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  38. package/dist/cjs/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
  39. package/dist/cjs/resources/types/index.d.ts +6 -0
  40. package/dist/cjs/tests/setup/constants.d.ts +1 -1
  41. package/dist/esm/client/client.js +14 -11
  42. package/dist/esm/client/client.js.map +1 -1
  43. package/dist/esm/config.d.ts +8 -0
  44. package/dist/esm/index.min.js +1 -1
  45. package/dist/esm/index.min.js.map +1 -1
  46. package/dist/esm/resources/classes/application.d.ts +8 -8
  47. package/dist/esm/resources/classes/application.js +72 -56
  48. package/dist/esm/resources/classes/application.js.map +1 -1
  49. package/dist/esm/resources/classes/charge.d.ts +2 -2
  50. package/dist/esm/resources/classes/charge.js +28 -24
  51. package/dist/esm/resources/classes/charge.js.map +1 -1
  52. package/dist/esm/resources/classes/conversation.d.ts +5 -5
  53. package/dist/esm/resources/classes/conversation.js +59 -49
  54. package/dist/esm/resources/classes/conversation.js.map +1 -1
  55. package/dist/esm/resources/classes/developer.d.ts +6 -6
  56. package/dist/esm/resources/classes/developer.js +56 -44
  57. package/dist/esm/resources/classes/developer.js.map +1 -1
  58. package/dist/esm/resources/classes/erx.d.ts +13 -5
  59. package/dist/esm/resources/classes/erx.js +36 -16
  60. package/dist/esm/resources/classes/erx.js.map +1 -1
  61. package/dist/esm/resources/classes/fax.d.ts +30 -0
  62. package/dist/esm/resources/classes/fax.js +41 -0
  63. package/dist/esm/resources/classes/fax.js.map +1 -0
  64. package/dist/esm/resources/classes/fhir-ext.js +3 -0
  65. package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
  66. package/dist/esm/resources/classes/index.d.ts +2 -0
  67. package/dist/esm/resources/classes/index.js +2 -0
  68. package/dist/esm/resources/classes/index.js.map +1 -1
  69. package/dist/esm/resources/classes/m2m.d.ts +7 -7
  70. package/dist/esm/resources/classes/m2m.js +65 -51
  71. package/dist/esm/resources/classes/m2m.js.map +1 -1
  72. package/dist/esm/resources/classes/messaging.d.ts +1 -1
  73. package/dist/esm/resources/classes/messaging.js +6 -4
  74. package/dist/esm/resources/classes/messaging.js.map +1 -1
  75. package/dist/esm/resources/classes/paymentMethod.d.ts +4 -4
  76. package/dist/esm/resources/classes/paymentMethod.js +72 -64
  77. package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
  78. package/dist/esm/resources/classes/project.d.ts +2 -2
  79. package/dist/esm/resources/classes/project.js +18 -14
  80. package/dist/esm/resources/classes/project.js.map +1 -1
  81. package/dist/esm/resources/classes/rcm.d.ts +4 -4
  82. package/dist/esm/resources/classes/rcm.js +39 -33
  83. package/dist/esm/resources/classes/rcm.js.map +1 -1
  84. package/dist/esm/resources/classes/role.d.ts +5 -5
  85. package/dist/esm/resources/classes/role.js +46 -36
  86. package/dist/esm/resources/classes/role.js.map +1 -1
  87. package/dist/esm/resources/classes/secret.d.ts +4 -4
  88. package/dist/esm/resources/classes/secret.js +36 -28
  89. package/dist/esm/resources/classes/secret.js.map +1 -1
  90. package/dist/esm/resources/classes/telemed.d.ts +2 -2
  91. package/dist/esm/resources/classes/telemed.js +27 -23
  92. package/dist/esm/resources/classes/telemed.js.map +1 -1
  93. package/dist/esm/resources/classes/transactionalSMS.d.ts +1 -1
  94. package/dist/esm/resources/classes/transactionalSMS.js +18 -16
  95. package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
  96. package/dist/esm/resources/classes/user.d.ts +7 -7
  97. package/dist/esm/resources/classes/user.js +64 -50
  98. package/dist/esm/resources/classes/user.js.map +1 -1
  99. package/dist/esm/resources/classes/version.d.ts +1 -1
  100. package/dist/esm/resources/classes/version.js +6 -4
  101. package/dist/esm/resources/classes/version.js.map +1 -1
  102. package/dist/esm/resources/classes/z3.d.ts +7 -7
  103. package/dist/esm/resources/classes/z3.js +55 -43
  104. package/dist/esm/resources/classes/z3.js.map +1 -1
  105. package/dist/esm/resources/classes/zambda.d.ts +8 -8
  106. package/dist/esm/resources/classes/zambda.js +71 -55
  107. package/dist/esm/resources/classes/zambda.js.map +1 -1
  108. package/dist/esm/resources/classes/zambdaLogStream.d.ts +3 -3
  109. package/dist/esm/resources/classes/zambdaLogStream.js +27 -21
  110. package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
  111. package/dist/esm/resources/types/ConversationAddParticipantParams.d.ts +1 -1
  112. package/dist/esm/resources/types/ConversationCreateResponse.d.ts +1 -1
  113. package/dist/esm/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
  114. package/dist/esm/resources/types/ErxCancelOrderParams.d.ts +6 -0
  115. package/dist/esm/resources/types/ErxCancelOrderResponse.d.ts +6 -0
  116. package/dist/esm/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
  117. package/dist/esm/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
  118. package/dist/esm/resources/types/FaxSendParams.d.ts +18 -0
  119. package/dist/esm/resources/types/FaxSendResponse.d.ts +10 -0
  120. package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  121. package/dist/esm/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
  122. package/dist/esm/resources/types/index.d.ts +6 -0
  123. package/dist/esm/tests/setup/constants.d.ts +1 -1
  124. package/package.json +4 -4
  125. package/src/client/client.ts +8 -3
  126. package/src/config.ts +8 -0
  127. package/src/resources/classes/application.ts +27 -19
  128. package/src/resources/classes/charge.ts +6 -4
  129. package/src/resources/classes/conversation.ts +15 -10
  130. package/src/resources/classes/developer.ts +18 -11
  131. package/src/resources/classes/erx.ts +33 -8
  132. package/src/resources/classes/fax.ts +41 -0
  133. package/src/resources/classes/fhir-ext.ts +3 -0
  134. package/src/resources/classes/index.ts +3 -0
  135. package/src/resources/classes/m2m.ts +21 -13
  136. package/src/resources/classes/messaging.ts +3 -2
  137. package/src/resources/classes/paymentMethod.ts +12 -8
  138. package/src/resources/classes/project.ts +6 -3
  139. package/src/resources/classes/rcm.ts +13 -9
  140. package/src/resources/classes/role.ts +15 -9
  141. package/src/resources/classes/secret.ts +12 -7
  142. package/src/resources/classes/telemed.ts +7 -7
  143. package/src/resources/classes/transactionalSMS.ts +3 -2
  144. package/src/resources/classes/user.ts +21 -12
  145. package/src/resources/classes/version.ts +3 -1
  146. package/src/resources/classes/z3.ts +19 -14
  147. package/src/resources/classes/zambda.ts +25 -15
  148. package/src/resources/classes/zambdaLogStream.ts +9 -8
  149. package/src/resources/types/ConversationAddParticipantParams.ts +1 -1
  150. package/src/resources/types/ConversationCreateResponse.ts +1 -1
  151. package/src/resources/types/ConversationRemoveParticipantParams.ts +1 -1
  152. package/src/resources/types/ErxCancelOrderParams.ts +8 -0
  153. package/src/resources/types/ErxCancelOrderResponse.ts +8 -0
  154. package/src/resources/types/ErxCancelPrescriptionParams.ts +8 -0
  155. package/src/resources/types/ErxCancelPrescriptionResponse.ts +8 -0
  156. package/src/resources/types/FaxSendParams.ts +20 -0
  157. package/src/resources/types/FaxSendResponse.ts +12 -0
  158. package/src/resources/types/TelemedCreateMeetingParams.ts +1 -1
  159. package/src/resources/types/TelemedCreateMeetingResponse.ts +1 -1
  160. package/src/resources/types/index.ts +6 -0
  161. /package/dist/cjs/tests/{common.d.ts → integrational/common.d.ts} +0 -0
  162. /package/dist/esm/tests/{common.d.ts → integrational/common.d.ts} +0 -0
@@ -26,32 +26,36 @@ export class Developer extends SDKResource {
26
26
  * Access Policy Action: `IAM:GetDeveloper`
27
27
  * Access Policy Resource: `IAM:Developer`
28
28
  */
29
- get = (params: DeveloperGetParams, request?: OystehrClientRequest): Promise<DeveloperGetResponse> =>
30
- this.request('/developer/{id}', 'get')(params, request);
29
+ get(params: DeveloperGetParams, request?: OystehrClientRequest): Promise<DeveloperGetResponse> {
30
+ return this.request('/developer/{id}', 'get')(params, request);
31
+ }
31
32
  /**
32
33
  * Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
33
34
  *
34
35
  * Access Policy Action: `IAM:UpdateDeveloper`
35
36
  * Access Policy Resource: `IAM:Developer`
36
37
  */
37
- update = (params: DeveloperUpdateParams, request?: OystehrClientRequest): Promise<DeveloperUpdateResponse> =>
38
- this.request('/developer/{id}', 'patch')(params, request);
38
+ update(params: DeveloperUpdateParams, request?: OystehrClientRequest): Promise<DeveloperUpdateResponse> {
39
+ return this.request('/developer/{id}', 'patch')(params, request);
40
+ }
39
41
  /**
40
42
  * Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
41
43
  *
42
44
  * Access Policy Action: `IAM:RemoveDeveloper`
43
45
  * Access Policy Resource: `IAM:Developer`
44
46
  */
45
- delete = (params: DeveloperDeleteParams, request?: OystehrClientRequest): Promise<void> =>
46
- this.request('/developer/{id}', 'delete')(params, request);
47
+ delete(params: DeveloperDeleteParams, request?: OystehrClientRequest): Promise<void> {
48
+ return this.request('/developer/{id}', 'delete')(params, request);
49
+ }
47
50
  /**
48
51
  * Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
49
52
  *
50
53
  * Access Policy Action: `IAM:InviteDeveloper`
51
54
  * Access Policy Resource: `IAM:Developer`
52
55
  */
53
- invite = (params: DeveloperInviteParams, request?: OystehrClientRequest): Promise<DeveloperInviteResponse> =>
54
- this.request('/developer/invite', 'post')(params, request);
56
+ invite(params: DeveloperInviteParams, request?: OystehrClientRequest): Promise<DeveloperInviteResponse> {
57
+ return this.request('/developer/invite', 'post')(params, request);
58
+ }
55
59
  /**
56
60
  * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_developer-v2-list) instead.
57
61
  *
@@ -60,13 +64,16 @@ export class Developer extends SDKResource {
60
64
  * Access Policy Action: `IAM:ListAllDevelopers`
61
65
  * Access Policy Resource: `IAM:Developer`
62
66
  */
63
- list = (request?: OystehrClientRequest): Promise<DeveloperListResponse> => this.request('/developer', 'get')(request);
67
+ list(request?: OystehrClientRequest): Promise<DeveloperListResponse> {
68
+ return this.request('/developer', 'get')(request);
69
+ }
64
70
  /**
65
71
  * Get Developers in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
66
72
  *
67
73
  * Access Policy Action: `Project:ListAllUsers`
68
74
  * Access Policy Resource: `Project:Settings`
69
75
  */
70
- listV2 = (params: DeveloperListV2Params, request?: OystehrClientRequest): Promise<DeveloperListV2Response> =>
71
- this.request('/developer/v2/list', 'get')(params, request);
76
+ listV2(params: DeveloperListV2Params, request?: OystehrClientRequest): Promise<DeveloperListV2Response> {
77
+ return this.request('/developer/v2/list', 'get')(params, request);
78
+ }
72
79
  }
@@ -3,6 +3,10 @@
3
3
  import {
4
4
  ErxAllergySearchParams,
5
5
  ErxAllergySearchResponse,
6
+ ErxCancelOrderParams,
7
+ ErxCancelOrderResponse,
8
+ ErxCancelPrescriptionParams,
9
+ ErxCancelPrescriptionResponse,
6
10
  ErxMedicationSearchParams,
7
11
  ErxMedicationSearchResponse,
8
12
  ErxMedicationSearchV2Params,
@@ -21,25 +25,46 @@ export class Erx extends SDKResource {
21
25
  /**
22
26
  * Retrieve patient properties from FHIR service and sync them with eRx service
23
27
  */
24
- syncPatient = (params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<ErxSyncPatientResponse> =>
25
- this.request('/erx/sync-patient/{patientId}', 'post')(params, request);
28
+ syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<ErxSyncPatientResponse> {
29
+ return this.request('/erx/sync-patient/{patientId}', 'post')(params, request);
30
+ }
26
31
  /**
27
32
  * Search for allergies
28
33
  */
29
- allergySearch = (params: ErxAllergySearchParams, request?: OystehrClientRequest): Promise<ErxAllergySearchResponse> =>
30
- this.request('/erx/allergy/search', 'get')(params, request);
34
+ allergySearch(params: ErxAllergySearchParams, request?: OystehrClientRequest): Promise<ErxAllergySearchResponse> {
35
+ return this.request('/erx/allergy/search', 'get')(params, request);
36
+ }
37
+ /**
38
+ * Cancel photon order
39
+ */
40
+ cancelOrder(params: ErxCancelOrderParams, request?: OystehrClientRequest): Promise<ErxCancelOrderResponse> {
41
+ return this.request('/erx/cancel-order', 'post')(params, request);
42
+ }
43
+ /**
44
+ * Cancel photon prescription
45
+ */
46
+ cancelPrescription(
47
+ params: ErxCancelPrescriptionParams,
48
+ request?: OystehrClientRequest
49
+ ): Promise<ErxCancelPrescriptionResponse> {
50
+ return this.request('/erx/cancel-prescription', 'post')(params, request);
51
+ }
31
52
  /**
32
53
  * Search for medications. Provide at least one of code or name filters
33
54
  */
34
- medicationSearch = (
55
+ medicationSearch(
35
56
  params: ErxMedicationSearchParams,
36
57
  request?: OystehrClientRequest
37
- ): Promise<ErxMedicationSearchResponse> => this.request('/erx/medication/search', 'get')(params, request);
58
+ ): Promise<ErxMedicationSearchResponse> {
59
+ return this.request('/erx/medication/search', 'get')(params, request);
60
+ }
38
61
  /**
39
62
  * Search for medications. Provide at least one of code or name filters
40
63
  */
41
- medicationSearchV2 = (
64
+ medicationSearchV2(
42
65
  params: ErxMedicationSearchV2Params,
43
66
  request?: OystehrClientRequest
44
- ): Promise<ErxMedicationSearchV2Response> => this.request('/erx/v2/medication/search', 'get')(params, request);
67
+ ): Promise<ErxMedicationSearchV2Response> {
68
+ return this.request('/erx/v2/medication/search', 'get')(params, request);
69
+ }
45
70
  }
@@ -0,0 +1,41 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ import { FaxSendParams, FaxSendResponse, OystehrClientRequest } from '../..';
4
+ import { SDKResource } from '../../client/client';
5
+ import { OystehrConfig } from '../../config';
6
+
7
+ export class Fax extends SDKResource {
8
+ constructor(config: OystehrConfig) {
9
+ super(config);
10
+ }
11
+ /**
12
+ * Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure.
13
+ *
14
+ * Access Policy Requirements:
15
+ * Action: `Fax:Offboard`
16
+ * Access Policy Resource: `Fax:Number`
17
+ */
18
+ offboard(request?: OystehrClientRequest): Promise<void> {
19
+ return this.request('/fax/offboard', 'post')(request);
20
+ }
21
+ /**
22
+ * Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call.
23
+ *
24
+ * Access Policy Requirements:
25
+ * Action: `Fax:Onboard`
26
+ * Access Policy Resource: `Fax:Number`
27
+ */
28
+ onboard(request?: OystehrClientRequest): Promise<void> {
29
+ return this.request('/fax/onboard', 'post')(request);
30
+ }
31
+ /**
32
+ * Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
33
+ *
34
+ * Access Policy Requirements:
35
+ * Action: `Fax:Send`
36
+ * Access Policy Resource: `Fax:Fax`
37
+ */
38
+ send(params: FaxSendParams, request?: OystehrClientRequest): Promise<FaxSendResponse> {
39
+ return this.request('/fax/send', 'post')(params, request);
40
+ }
41
+ }
@@ -160,6 +160,9 @@ function batchInputRequestToBundleEntryItem<T extends FhirResource>(
160
160
  return { name, value };
161
161
  })
162
162
  .reduce((acc, { name, value }) => {
163
+ if (!name) {
164
+ return acc;
165
+ }
163
166
  if (!acc[name]) {
164
167
  acc[name] = [];
165
168
  }
@@ -6,6 +6,7 @@ import { Charge } from './charge';
6
6
  import { Conversation } from './conversation';
7
7
  import { Developer } from './developer';
8
8
  import { Erx } from './erx';
9
+ import { Fax } from './fax';
9
10
  import { Fhir } from './fhir';
10
11
  import { M2m } from './m2m';
11
12
  import { Messaging } from './messaging';
@@ -35,6 +36,7 @@ export class Oystehr {
35
36
  readonly project: Project;
36
37
  readonly rcm: Rcm;
37
38
  readonly erx: Erx;
39
+ readonly fax: Fax;
38
40
  readonly role: Role;
39
41
  readonly secret: Secret;
40
42
  readonly telemed: Telemed;
@@ -57,6 +59,7 @@ export class Oystehr {
57
59
  this.project = new Project(config);
58
60
  this.rcm = new Rcm(config);
59
61
  this.erx = new Erx(config);
62
+ this.fax = new Fax(config);
60
63
  this.role = new Role(config);
61
64
  this.secret = new Secret(config);
62
65
  this.telemed = new Telemed(config);
@@ -30,53 +30,61 @@ export class M2m extends SDKResource {
30
30
  * Access Policy Action: `App:ListAllM2MClients`
31
31
  * Access Policy Resource: `IAM:M2MClient`
32
32
  */
33
- list = (request?: OystehrClientRequest): Promise<M2mListResponse> => this.request('/m2m', 'get')(request);
33
+ list(request?: OystehrClientRequest): Promise<M2mListResponse> {
34
+ return this.request('/m2m', 'get')(request);
35
+ }
34
36
  /**
35
37
  * Create a new M2M Client. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
36
38
  *
37
39
  * Access Policy Action: `App:CreateM2MClient`
38
40
  * Access Policy Resource: `IAM:M2MClient`
39
41
  */
40
- create = (params: M2mCreateParams, request?: OystehrClientRequest): Promise<M2mCreateResponse> =>
41
- this.request('/m2m', 'post')(params, request);
42
+ create(params: M2mCreateParams, request?: OystehrClientRequest): Promise<M2mCreateResponse> {
43
+ return this.request('/m2m', 'post')(params, request);
44
+ }
42
45
  /**
43
46
  * Get the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
44
47
  *
45
48
  * Access Policy Action: `App:GetM2MClient`
46
49
  * Access Policy Resource: `IAM:M2MClient`
47
50
  */
48
- get = (params: M2mGetParams, request?: OystehrClientRequest): Promise<M2mGetResponse> =>
49
- this.request('/m2m/{id}', 'get')(params, request);
51
+ get(params: M2mGetParams, request?: OystehrClientRequest): Promise<M2mGetResponse> {
52
+ return this.request('/m2m/{id}', 'get')(params, request);
53
+ }
50
54
  /**
51
55
  * Update the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
52
56
  *
53
57
  * Access Policy Action: `App:UpdateM2MClient`
54
58
  * Access Policy Resource: `IAM:M2MClient`
55
59
  */
56
- update = (params: M2mUpdateParams, request?: OystehrClientRequest): Promise<M2mUpdateResponse> =>
57
- this.request('/m2m/{id}', 'patch')(params, request);
60
+ update(params: M2mUpdateParams, request?: OystehrClientRequest): Promise<M2mUpdateResponse> {
61
+ return this.request('/m2m/{id}', 'patch')(params, request);
62
+ }
58
63
  /**
59
64
  * Delete the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
60
65
  *
61
66
  * Access Policy Action: `App:DeleteM2MClient`
62
67
  * Access Policy Resource: `IAM:M2MClient`
63
68
  */
64
- delete = (params: M2mDeleteParams, request?: OystehrClientRequest): Promise<void> =>
65
- this.request('/m2m/{id}', 'delete')(params, request);
69
+ delete(params: M2mDeleteParams, request?: OystehrClientRequest): Promise<void> {
70
+ return this.request('/m2m/{id}', 'delete')(params, request);
71
+ }
66
72
  /**
67
73
  * Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
68
74
  *
69
75
  * Access Policy Action: `App:RotateM2MClientSecret`
70
76
  * Access Policy Resource: `IAM:M2MClient`
71
77
  */
72
- rotateSecret = (params: M2mRotateSecretParams, request?: OystehrClientRequest): Promise<M2mRotateSecretResponse> =>
73
- this.request('/m2m/{id}/rotate-secret', 'post')(params, request);
78
+ rotateSecret(params: M2mRotateSecretParams, request?: OystehrClientRequest): Promise<M2mRotateSecretResponse> {
79
+ return this.request('/m2m/{id}/rotate-secret', 'post')(params, request);
80
+ }
74
81
  /**
75
82
  * Get M2M clients in the Project with pagination, sort, sort Order and filtering. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
76
83
  *
77
84
  * Access Policy Action: `App:ListAllM2MClients`
78
85
  * Access Policy Resource: `IAM:M2MClient`
79
86
  */
80
- listV2 = (params: M2mListV2Params, request?: OystehrClientRequest): Promise<M2mListV2Response> =>
81
- this.request('/m2m/v2/list', 'get')(params, request);
87
+ listV2(params: M2mListV2Params, request?: OystehrClientRequest): Promise<M2mListV2Response> {
88
+ return this.request('/m2m/v2/list', 'get')(params, request);
89
+ }
82
90
  }
@@ -11,6 +11,7 @@ export class Messaging extends SDKResource {
11
11
  /**
12
12
  * Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.
13
13
  */
14
- getMessagingConfig = (request?: OystehrClientRequest): Promise<MessagingGetMessagingConfigResponse> =>
15
- this.request('/messaging/config', 'get')(request);
14
+ getMessagingConfig(request?: OystehrClientRequest): Promise<MessagingGetMessagingConfigResponse> {
15
+ return this.request('/messaging/config', 'get')(request);
16
+ }
16
17
  }
@@ -31,8 +31,9 @@ export class PaymentMethod extends SDKResource {
31
31
  * Action: `FHIR:Read`
32
32
  * Access Policy Resource: `FHIR:Patient`
33
33
  */
34
- setUp = (params: PaymentMethodSetUpParams, request?: OystehrClientRequest): Promise<PaymentMethodSetUpResponse> =>
35
- this.request('/payment/payment-method/setup', 'post')(params, request);
34
+ setUp(params: PaymentMethodSetUpParams, request?: OystehrClientRequest): Promise<PaymentMethodSetUpResponse> {
35
+ return this.request('/payment/payment-method/setup', 'post')(params, request);
36
+ }
36
37
  /**
37
38
  * Set a specified payment method for the user as default.
38
39
  *
@@ -48,8 +49,9 @@ export class PaymentMethod extends SDKResource {
48
49
  * Action: `FHIR:Read`
49
50
  * Access Policy Resource: `FHIR:Patient`
50
51
  */
51
- setDefault = (params: PaymentMethodSetDefaultParams, request?: OystehrClientRequest): Promise<void> =>
52
- this.request('/payment/payment-method/set-default', 'post')(params, request);
52
+ setDefault(params: PaymentMethodSetDefaultParams, request?: OystehrClientRequest): Promise<void> {
53
+ return this.request('/payment/payment-method/set-default', 'post')(params, request);
54
+ }
53
55
  /**
54
56
  * Delete a specified payment method for the beneficiary.
55
57
  *
@@ -65,8 +67,9 @@ export class PaymentMethod extends SDKResource {
65
67
  * Action: `FHIR:Read`
66
68
  * Access Policy Resource: `FHIR:Patient`
67
69
  */
68
- delete = (params: PaymentMethodDeleteParams, request?: OystehrClientRequest): Promise<void> =>
69
- this.request('/payment/payment-method', 'delete')(params, request);
70
+ delete(params: PaymentMethodDeleteParams, request?: OystehrClientRequest): Promise<void> {
71
+ return this.request('/payment/payment-method', 'delete')(params, request);
72
+ }
70
73
  /**
71
74
  * List all payment methods for the patient.
72
75
  *
@@ -82,6 +85,7 @@ export class PaymentMethod extends SDKResource {
82
85
  * Action: `FHIR:Read`
83
86
  * Access Policy Resource: `FHIR:Patient`
84
87
  */
85
- list = (params: PaymentMethodListParams, request?: OystehrClientRequest): Promise<PaymentMethodListResponse> =>
86
- this.request('/payment/payment-method/list', 'post')(params, request);
88
+ list(params: PaymentMethodListParams, request?: OystehrClientRequest): Promise<PaymentMethodListResponse> {
89
+ return this.request('/payment/payment-method/list', 'post')(params, request);
90
+ }
87
91
  }
@@ -14,13 +14,16 @@ export class Project extends SDKResource {
14
14
  * Access Policy Action: `Project:GetProjectInfo`
15
15
  * Access Policy Resource: `Project:Settings`
16
16
  */
17
- get = (request?: OystehrClientRequest): Promise<ProjectGetResponse> => this.request('/project', 'get')(request);
17
+ get(request?: OystehrClientRequest): Promise<ProjectGetResponse> {
18
+ return this.request('/project', 'get')(request);
19
+ }
18
20
  /**
19
21
  * Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/services/project/) is the logically-isolated instance of Oystehr that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/services/fhir/basics/), [Applications](https://docs.oystehr.com/services/app/applications/), [Users](https://docs.oystehr.com/services/app/users/), etc .
20
22
  *
21
23
  * Access Policy Action: `Project:UpdateProjectInfo`
22
24
  * Access Policy Resource: `Project:Settings`
23
25
  */
24
- update = (params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse> =>
25
- this.request('/project', 'patch')(params, request);
26
+ update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse> {
27
+ return this.request('/project', 'patch')(params, request);
28
+ }
26
29
  }
@@ -22,13 +22,15 @@ export class Rcm extends SDKResource {
22
22
  * Access Policy Action: `RCM:CheckInsuranceEligibility`
23
23
  * Access Policy Resource: `RCM:InsuranceEligibility`
24
24
  *
25
- * nAccess Policy Action: `FHIR:Create`
25
+ * Access Policy Action: `FHIR:Create`
26
26
  * Access Policy Resource: `FHIR:CoverageEligibilityResponse`
27
27
  */
28
- eligibilityCheck = (
28
+ eligibilityCheck(
29
29
  params: RcmEligibilityCheckParams,
30
30
  request?: OystehrClientRequest
31
- ): Promise<RcmEligibilityCheckResponse> => this.request('/rcm/eligibility-check', 'post')(params, request);
31
+ ): Promise<RcmEligibilityCheckResponse> {
32
+ return this.request('/rcm/eligibility-check', 'post')(params, request);
33
+ }
32
34
  /**
33
35
  * Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
34
36
  *
@@ -38,11 +40,12 @@ export class Rcm extends SDKResource {
38
40
  * Access Policy Action: `FHIR:Create`
39
41
  * Access Policy Resource: `FHIR:AuditEvent`
40
42
  */
41
- validateProfessionalClaim = (
43
+ validateProfessionalClaim(
42
44
  params: RcmValidateProfessionalClaimParams,
43
45
  request?: OystehrClientRequest
44
- ): Promise<RcmValidateProfessionalClaimResponse> =>
45
- this.request('/rcm/professional-claim/validate', 'post')(params, request);
46
+ ): Promise<RcmValidateProfessionalClaimResponse> {
47
+ return this.request('/rcm/professional-claim/validate', 'post')(params, request);
48
+ }
46
49
  /**
47
50
  * Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
48
51
  *
@@ -55,9 +58,10 @@ export class Rcm extends SDKResource {
55
58
  * Access Policy Actions: `FHIR:Create, FHIR:Update`
56
59
  * Access Policy Resource: `FHIR:Claim`
57
60
  */
58
- submitProfessionalClaim = (
61
+ submitProfessionalClaim(
59
62
  params: RcmSubmitProfessionalClaimParams,
60
63
  request?: OystehrClientRequest
61
- ): Promise<RcmSubmitProfessionalClaimResponse> =>
62
- this.request('/rcm/professional-claim/submit', 'post')(params, request);
64
+ ): Promise<RcmSubmitProfessionalClaimResponse> {
65
+ return this.request('/rcm/professional-claim/submit', 'post')(params, request);
66
+ }
63
67
  }
@@ -24,31 +24,36 @@ export class Role extends SDKResource {
24
24
  * Access Policy Action: `IAM:ListAllRoles`
25
25
  * Access Policy Resource: `IAM:Role`
26
26
  */
27
- list = (request?: OystehrClientRequest): Promise<RoleListResponse> => this.request('/iam/role', 'get')(request);
27
+ list(request?: OystehrClientRequest): Promise<RoleListResponse> {
28
+ return this.request('/iam/role', 'get')(request);
29
+ }
28
30
  /**
29
31
  * Create a new Role. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
30
32
  *
31
33
  * Access Policy Action: `IAM:CreateRole`
32
34
  * Access Policy Resource: `IAM:Role`
33
35
  */
34
- create = (params: RoleCreateParams, request?: OystehrClientRequest): Promise<RoleCreateResponse> =>
35
- this.request('/iam/role', 'post')(params, request);
36
+ create(params: RoleCreateParams, request?: OystehrClientRequest): Promise<RoleCreateResponse> {
37
+ return this.request('/iam/role', 'post')(params, request);
38
+ }
36
39
  /**
37
40
  * Get the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
38
41
  *
39
42
  * Access Policy Action: `IAM:GetRole`
40
43
  * Access Policy Resource: `IAM:Role`
41
44
  */
42
- get = (params: RoleGetParams, request?: OystehrClientRequest): Promise<RoleGetResponse> =>
43
- this.request('/iam/role/{roleId}', 'get')(params, request);
45
+ get(params: RoleGetParams, request?: OystehrClientRequest): Promise<RoleGetResponse> {
46
+ return this.request('/iam/role/{roleId}', 'get')(params, request);
47
+ }
44
48
  /**
45
49
  * Update the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
46
50
  *
47
51
  * Access Policy Action: `IAM:UpdateRole`
48
52
  * Access Policy Resource: `IAM:Role`
49
53
  */
50
- update = (params: RoleUpdateParams, request?: OystehrClientRequest): Promise<RoleUpdateResponse> =>
51
- this.request('/iam/role/{roleId}', 'patch')(params, request);
54
+ update(params: RoleUpdateParams, request?: OystehrClientRequest): Promise<RoleUpdateResponse> {
55
+ return this.request('/iam/role/{roleId}', 'patch')(params, request);
56
+ }
52
57
  /**
53
58
  * Delete the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
54
59
  *
@@ -56,6 +61,7 @@ export class Role extends SDKResource {
56
61
  * Access Policy Resource: `IAM:Role`
57
62
  * Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project
58
63
  */
59
- delete = (params: RoleDeleteParams, request?: OystehrClientRequest): Promise<void> =>
60
- this.request('/iam/role/{roleId}', 'delete')(params, request);
64
+ delete(params: RoleDeleteParams, request?: OystehrClientRequest): Promise<void> {
65
+ return this.request('/iam/role/{roleId}', 'delete')(params, request);
66
+ }
61
67
  }
@@ -22,29 +22,34 @@ export class Secret extends SDKResource {
22
22
  * Access Policy Action: `Zambda:ListAllSecrets`
23
23
  * Access Policy Resource: `Zambda:Secret`
24
24
  */
25
- list = (request?: OystehrClientRequest): Promise<SecretListResponse> => this.request('/secret', 'get')(request);
25
+ list(request?: OystehrClientRequest): Promise<SecretListResponse> {
26
+ return this.request('/secret', 'get')(request);
27
+ }
26
28
  /**
27
29
  * Create a secret for a project. If the secret is already defined, update it.
28
30
  *
29
31
  * Access Policy Action: `Zambda:CreateSecret`
30
32
  * Access Policy Resource: `Zambda:Secret`
31
33
  */
32
- set = (params: SecretSetParams, request?: OystehrClientRequest): Promise<SecretSetResponse> =>
33
- this.request('/secret', 'post')(params, request);
34
+ set(params: SecretSetParams, request?: OystehrClientRequest): Promise<SecretSetResponse> {
35
+ return this.request('/secret', 'post')(params, request);
36
+ }
34
37
  /**
35
38
  * Get the secret with the provided name.
36
39
  *
37
40
  * Access Policy Action: `Zambda:GetSecret`
38
41
  * Access Policy Resource: `Zambda:Secret`
39
42
  */
40
- get = (params: SecretGetParams, request?: OystehrClientRequest): Promise<SecretGetResponse> =>
41
- this.request('/secret/{name}', 'get')(params, request);
43
+ get(params: SecretGetParams, request?: OystehrClientRequest): Promise<SecretGetResponse> {
44
+ return this.request('/secret/{name}', 'get')(params, request);
45
+ }
42
46
  /**
43
47
  * Delete the secret with the provided name.
44
48
  *
45
49
  * Access Policy Action: `Zambda:DeleteSecret`
46
50
  * Access Policy Resource: `Zambda:Secret`
47
51
  */
48
- delete = (params: SecretDeleteParams, request?: OystehrClientRequest): Promise<void> =>
49
- this.request('/secret/{name}', 'delete')(params, request);
52
+ delete(params: SecretDeleteParams, request?: OystehrClientRequest): Promise<void> {
53
+ return this.request('/secret/{name}', 'delete')(params, request);
54
+ }
50
55
  }
@@ -25,10 +25,12 @@ export class Telemed extends SDKResource {
25
25
  * Action: `FHIR:Update`
26
26
  * Access Policy Resource: `FHIR:Encounter`
27
27
  */
28
- createMeeting = (
28
+ createMeeting(
29
29
  params: TelemedCreateMeetingParams,
30
30
  request?: OystehrClientRequest
31
- ): Promise<TelemedCreateMeetingResponse> => this.request('/telemed/v2/meeting', 'post')(params, request);
31
+ ): Promise<TelemedCreateMeetingResponse> {
32
+ return this.request('/telemed/v2/meeting', 'post')(params, request);
33
+ }
32
34
  /**
33
35
  * Get Meeting and Attendee objects necessary to join a telemedicine video meeting.
34
36
  *
@@ -39,9 +41,7 @@ export class Telemed extends SDKResource {
39
41
  * Action: `Telemed:AddAnonymousToMeeting`
40
42
  * Access Policy Resource: `Telemed:Meeting`
41
43
  */
42
- joinMeeting = (
43
- params: TelemedJoinMeetingParams,
44
- request?: OystehrClientRequest
45
- ): Promise<TelemedJoinMeetingResponse> =>
46
- this.request('/telemed/v2/meeting/{encounterId}/join', 'get')(params, request);
44
+ joinMeeting(params: TelemedJoinMeetingParams, request?: OystehrClientRequest): Promise<TelemedJoinMeetingResponse> {
45
+ return this.request('/telemed/v2/meeting/{encounterId}/join', 'get')(params, request);
46
+ }
47
47
  }
@@ -23,6 +23,7 @@ export class TransactionalSMS extends SDKResource {
23
23
  * Action: `FHIR:Read`
24
24
  * Access Policy Resource: `FHIR:Patient`
25
25
  */
26
- send = (params: TransactionalSMSSendParams, request?: OystehrClientRequest): Promise<TransactionalSMSSendResponse> =>
27
- this.request('/messaging/transactional-sms/send', 'post')(params, request);
26
+ send(params: TransactionalSMSSendParams, request?: OystehrClientRequest): Promise<TransactionalSMSSendResponse> {
27
+ return this.request('/messaging/transactional-sms/send', 'post')(params, request);
28
+ }
28
29
  }
@@ -26,39 +26,45 @@ export class User extends SDKResource {
26
26
  *
27
27
  * Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
28
28
  */
29
- me = (request?: OystehrClientRequest): Promise<UserMeResponse> => this.request('/user/me', 'get')(request);
29
+ me(request?: OystehrClientRequest): Promise<UserMeResponse> {
30
+ return this.request('/user/me', 'get')(request);
31
+ }
30
32
  /**
31
33
  * Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
32
34
  *
33
35
  * Access Policy Action: `App:GetUser`
34
36
  * Access Policy Resource: `App:User`
35
37
  */
36
- get = (params: UserGetParams, request?: OystehrClientRequest): Promise<UserGetResponse> =>
37
- this.request('/user/{id}', 'get')(params, request);
38
+ get(params: UserGetParams, request?: OystehrClientRequest): Promise<UserGetResponse> {
39
+ return this.request('/user/{id}', 'get')(params, request);
40
+ }
38
41
  /**
39
42
  * Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
40
43
  *
41
44
  * Access Policy Action: `App:UpdateUser`
42
45
  * Access Policy Resource: `App:User`
43
46
  */
44
- update = (params: UserUpdateParams, request?: OystehrClientRequest): Promise<UserUpdateResponse> =>
45
- this.request('/user/{id}', 'patch')(params, request);
47
+ update(params: UserUpdateParams, request?: OystehrClientRequest): Promise<UserUpdateResponse> {
48
+ return this.request('/user/{id}', 'patch')(params, request);
49
+ }
46
50
  /**
47
51
  * Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
48
52
  *
49
53
  * Access Policy Action: `App:DeleteUser`
50
54
  * Access Policy Resource: `App:User`
51
55
  */
52
- delete = (params: UserDeleteParams, request?: OystehrClientRequest): Promise<void> =>
53
- this.request('/user/{id}', 'delete')(params, request);
56
+ delete(params: UserDeleteParams, request?: OystehrClientRequest): Promise<void> {
57
+ return this.request('/user/{id}', 'delete')(params, request);
58
+ }
54
59
  /**
55
60
  * Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
56
61
  *
57
62
  * Access Policy Action: `App:CreateUser`
58
63
  * Access Policy Resource: `App:User`
59
64
  */
60
- invite = (params: UserInviteParams, request?: OystehrClientRequest): Promise<UserInviteResponse> =>
61
- this.request('/user/invite', 'post')(params, request);
65
+ invite(params: UserInviteParams, request?: OystehrClientRequest): Promise<UserInviteResponse> {
66
+ return this.request('/user/invite', 'post')(params, request);
67
+ }
62
68
  /**
63
69
  * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.
64
70
  *
@@ -67,13 +73,16 @@ export class User extends SDKResource {
67
73
  * Access Policy Action: `App:ListAllUsers`
68
74
  * Access Policy Resource: `App:User`
69
75
  */
70
- list = (request?: OystehrClientRequest): Promise<UserListResponse> => this.request('/user', 'get')(request);
76
+ list(request?: OystehrClientRequest): Promise<UserListResponse> {
77
+ return this.request('/user', 'get')(request);
78
+ }
71
79
  /**
72
80
  * Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
73
81
  *
74
82
  * Access Policy Action: `Project:ListAllUsers`
75
83
  * Access Policy Resource: `Project:Settings`
76
84
  */
77
- listV2 = (params: UserListV2Params, request?: OystehrClientRequest): Promise<UserListV2Response> =>
78
- this.request('/user/v2/list', 'get')(params, request);
85
+ listV2(params: UserListV2Params, request?: OystehrClientRequest): Promise<UserListV2Response> {
86
+ return this.request('/user/v2/list', 'get')(params, request);
87
+ }
79
88
  }