@oystehr/sdk 3.0.7 → 3.0.8

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 (161) hide show
  1. package/README.md +5 -5
  2. package/dist/cjs/index.cjs +273 -228
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/cjs/index.min.cjs +1 -1
  5. package/dist/cjs/index.min.cjs.map +1 -1
  6. package/dist/cjs/resources/classes/application.d.ts +6 -6
  7. package/dist/cjs/resources/classes/charge.d.ts +1 -1
  8. package/dist/cjs/resources/classes/conversation.d.ts +6 -6
  9. package/dist/cjs/resources/classes/developer.d.ts +14 -7
  10. package/dist/cjs/resources/classes/erx.d.ts +9 -1
  11. package/dist/cjs/resources/classes/fax.d.ts +4 -4
  12. package/dist/cjs/resources/classes/fhir.d.ts +1 -1
  13. package/dist/cjs/resources/classes/m2m.d.ts +15 -8
  14. package/dist/cjs/resources/classes/messaging.d.ts +1 -1
  15. package/dist/cjs/resources/classes/paymentMethod.d.ts +1 -1
  16. package/dist/cjs/resources/classes/project.d.ts +10 -3
  17. package/dist/cjs/resources/classes/rcm.d.ts +4 -4
  18. package/dist/cjs/resources/classes/role.d.ts +6 -6
  19. package/dist/cjs/resources/classes/secret.d.ts +1 -1
  20. package/dist/cjs/resources/classes/telemed.d.ts +2 -2
  21. package/dist/cjs/resources/classes/transactionalSMS.d.ts +2 -2
  22. package/dist/cjs/resources/classes/user.d.ts +15 -8
  23. package/dist/cjs/resources/classes/version.d.ts +1 -1
  24. package/dist/cjs/resources/classes/z3.d.ts +7 -7
  25. package/dist/cjs/resources/classes/zambda.d.ts +9 -9
  26. package/dist/cjs/resources/classes/zambdaLogStream.d.ts +4 -4
  27. package/dist/cjs/resources/types/AccessPolicy.d.ts +8 -3
  28. package/dist/cjs/resources/types/ChargeIssueParams.d.ts +1 -1
  29. package/dist/cjs/resources/types/ChargeStatusParams.d.ts +1 -1
  30. package/dist/cjs/resources/types/DeveloperListV2Params.d.ts +2 -2
  31. package/dist/cjs/resources/types/FaxSendParams.d.ts +1 -1
  32. package/dist/cjs/resources/types/M2mListV2Params.d.ts +2 -2
  33. package/dist/cjs/resources/types/M2mRotateSecretResponse.d.ts +1 -1
  34. package/dist/cjs/resources/types/RcmEligibilityCheckParams.d.ts +1 -1
  35. package/dist/cjs/resources/types/RoleUpdateParams.d.ts +0 -4
  36. package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  37. package/dist/cjs/resources/types/UserListV2Params.d.ts +2 -2
  38. package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +1 -1
  39. package/dist/cjs/resources/types/ZambdaFunction.d.ts +1 -1
  40. package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +2 -2
  41. package/dist/esm/index.min.js +1 -1
  42. package/dist/esm/index.min.js.map +1 -1
  43. package/dist/esm/resources/classes/application.d.ts +6 -6
  44. package/dist/esm/resources/classes/application.js +20 -17
  45. package/dist/esm/resources/classes/application.js.map +1 -1
  46. package/dist/esm/resources/classes/charge.d.ts +1 -1
  47. package/dist/esm/resources/classes/charge.js +9 -6
  48. package/dist/esm/resources/classes/charge.js.map +1 -1
  49. package/dist/esm/resources/classes/conversation.d.ts +6 -6
  50. package/dist/esm/resources/classes/conversation.js +17 -14
  51. package/dist/esm/resources/classes/conversation.js.map +1 -1
  52. package/dist/esm/resources/classes/developer.d.ts +14 -7
  53. package/dist/esm/resources/classes/developer.js +18 -15
  54. package/dist/esm/resources/classes/developer.js.map +1 -1
  55. package/dist/esm/resources/classes/erx.d.ts +9 -1
  56. package/dist/esm/resources/classes/erx.js +13 -10
  57. package/dist/esm/resources/classes/erx.js.map +1 -1
  58. package/dist/esm/resources/classes/fax.d.ts +4 -4
  59. package/dist/esm/resources/classes/fax.js +13 -10
  60. package/dist/esm/resources/classes/fax.js.map +1 -1
  61. package/dist/esm/resources/classes/fhir.d.ts +1 -1
  62. package/dist/esm/resources/classes/fhir.js +3 -4
  63. package/dist/esm/resources/classes/fhir.js.map +1 -1
  64. package/dist/esm/resources/classes/index.js +2 -2
  65. package/dist/esm/resources/classes/index.js.map +1 -1
  66. package/dist/esm/resources/classes/m2m.d.ts +15 -8
  67. package/dist/esm/resources/classes/m2m.js +20 -17
  68. package/dist/esm/resources/classes/m2m.js.map +1 -1
  69. package/dist/esm/resources/classes/messaging.d.ts +1 -1
  70. package/dist/esm/resources/classes/messaging.js +8 -5
  71. package/dist/esm/resources/classes/messaging.js.map +1 -1
  72. package/dist/esm/resources/classes/paymentMethod.d.ts +1 -1
  73. package/dist/esm/resources/classes/paymentMethod.js +11 -8
  74. package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
  75. package/dist/esm/resources/classes/project.d.ts +10 -3
  76. package/dist/esm/resources/classes/project.js +10 -7
  77. package/dist/esm/resources/classes/project.js.map +1 -1
  78. package/dist/esm/resources/classes/rcm.d.ts +4 -4
  79. package/dist/esm/resources/classes/rcm.js +13 -10
  80. package/dist/esm/resources/classes/rcm.js.map +1 -1
  81. package/dist/esm/resources/classes/role.d.ts +6 -6
  82. package/dist/esm/resources/classes/role.js +17 -14
  83. package/dist/esm/resources/classes/role.js.map +1 -1
  84. package/dist/esm/resources/classes/secret.d.ts +1 -1
  85. package/dist/esm/resources/classes/secret.js +11 -8
  86. package/dist/esm/resources/classes/secret.js.map +1 -1
  87. package/dist/esm/resources/classes/telemed.d.ts +2 -2
  88. package/dist/esm/resources/classes/telemed.js +10 -7
  89. package/dist/esm/resources/classes/telemed.js.map +1 -1
  90. package/dist/esm/resources/classes/transactionalSMS.d.ts +2 -2
  91. package/dist/esm/resources/classes/transactionalSMS.js +9 -6
  92. package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
  93. package/dist/esm/resources/classes/user.d.ts +15 -8
  94. package/dist/esm/resources/classes/user.js +20 -17
  95. package/dist/esm/resources/classes/user.js.map +1 -1
  96. package/dist/esm/resources/classes/version.d.ts +1 -1
  97. package/dist/esm/resources/classes/version.js +8 -5
  98. package/dist/esm/resources/classes/version.js.map +1 -1
  99. package/dist/esm/resources/classes/z3.d.ts +7 -7
  100. package/dist/esm/resources/classes/z3.js +19 -16
  101. package/dist/esm/resources/classes/z3.js.map +1 -1
  102. package/dist/esm/resources/classes/zambda.d.ts +9 -9
  103. package/dist/esm/resources/classes/zambda.js +23 -20
  104. package/dist/esm/resources/classes/zambda.js.map +1 -1
  105. package/dist/esm/resources/classes/zambdaLogStream.d.ts +4 -4
  106. package/dist/esm/resources/classes/zambdaLogStream.js +13 -10
  107. package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
  108. package/dist/esm/resources/types/AccessPolicy.d.ts +8 -3
  109. package/dist/esm/resources/types/ChargeIssueParams.d.ts +1 -1
  110. package/dist/esm/resources/types/ChargeStatusParams.d.ts +1 -1
  111. package/dist/esm/resources/types/DeveloperListV2Params.d.ts +2 -2
  112. package/dist/esm/resources/types/FaxSendParams.d.ts +1 -1
  113. package/dist/esm/resources/types/M2mListV2Params.d.ts +2 -2
  114. package/dist/esm/resources/types/M2mRotateSecretResponse.d.ts +1 -1
  115. package/dist/esm/resources/types/RcmEligibilityCheckParams.d.ts +1 -1
  116. package/dist/esm/resources/types/RoleUpdateParams.d.ts +0 -4
  117. package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  118. package/dist/esm/resources/types/UserListV2Params.d.ts +2 -2
  119. package/dist/esm/resources/types/ZambdaCreateParams.d.ts +1 -1
  120. package/dist/esm/resources/types/ZambdaFunction.d.ts +1 -1
  121. package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +2 -2
  122. package/package.json +1 -1
  123. package/src/resources/classes/application.ts +18 -14
  124. package/src/resources/classes/charge.ts +3 -3
  125. package/src/resources/classes/conversation.ts +11 -11
  126. package/src/resources/classes/developer.ts +30 -13
  127. package/src/resources/classes/erx.ts +29 -7
  128. package/src/resources/classes/fax.ts +7 -7
  129. package/src/resources/classes/fhir.ts +1 -1
  130. package/src/resources/classes/index.ts +2 -2
  131. package/src/resources/classes/m2m.ts +29 -15
  132. package/src/resources/classes/messaging.ts +2 -2
  133. package/src/resources/classes/paymentMethod.ts +5 -5
  134. package/src/resources/classes/project.ts +22 -5
  135. package/src/resources/classes/rcm.ts +7 -7
  136. package/src/resources/classes/role.ts +11 -11
  137. package/src/resources/classes/secret.ts +5 -5
  138. package/src/resources/classes/telemed.ts +8 -4
  139. package/src/resources/classes/transactionalSMS.ts +3 -3
  140. package/src/resources/classes/user.ts +32 -15
  141. package/src/resources/classes/version.ts +2 -2
  142. package/src/resources/classes/z3.ts +13 -13
  143. package/src/resources/classes/zambda.ts +17 -17
  144. package/src/resources/classes/zambdaLogStream.ts +7 -7
  145. package/src/resources/types/AccessPolicy.ts +12 -3
  146. package/src/resources/types/ChargeIssueParams.ts +1 -1
  147. package/src/resources/types/ChargeStatusParams.ts +1 -1
  148. package/src/resources/types/DeveloperListV2Params.ts +2 -2
  149. package/src/resources/types/FaxSendParams.ts +1 -1
  150. package/src/resources/types/M2mListV2Params.ts +2 -2
  151. package/src/resources/types/M2mRotateSecretResponse.ts +1 -1
  152. package/src/resources/types/RcmEligibilityCheckParams.ts +1 -1
  153. package/src/resources/types/RoleUpdateParams.ts +0 -4
  154. package/src/resources/types/TelemedCreateMeetingParams.ts +1 -1
  155. package/src/resources/types/UserListV2Params.ts +2 -2
  156. package/src/resources/types/ZambdaCreateParams.ts +1 -1
  157. package/src/resources/types/ZambdaFunction.ts +1 -1
  158. package/src/resources/types/ZambdaUpdateParams.ts +2 -2
  159. package/dist/esm/node_modules/tslib/package.json +0 -1
  160. package/dist/esm/node_modules/tslib/tslib.es6.js +0 -34
  161. package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -1,69 +1,68 @@
1
+ import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
1
2
  import { SDKResource } from '../../client/client.js';
2
3
 
3
4
  // AUTOGENERATED -- DO NOT EDIT
5
+ var _M2m_instances, _M2m_baseUrlThunk;
4
6
  class M2m extends SDKResource {
5
7
  constructor(config) {
6
8
  super(config);
7
- }
8
- baseUrlThunk() {
9
- var _a, _b;
10
- return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
9
+ _M2m_instances.add(this);
11
10
  }
12
11
  /**
13
12
  * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_m2m-v2-list) instead.
14
13
  *
15
- * Get a list of all M2M Clients. [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).
14
+ * Get a list of all M2M Clients. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
16
15
  *
17
16
  * Access Policy Action: `App:ListAllM2MClients`
18
17
  * Access Policy Resource: `IAM:M2MClient`
19
18
  */
20
19
  list(request) {
21
- return this.request('/m2m', 'get', this.baseUrlThunk.bind(this))(request);
20
+ return this.request('/m2m', 'get', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(request);
22
21
  }
23
22
  /**
24
- * 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).
23
+ * Create a new M2M Client. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
25
24
  *
26
25
  * Access Policy Action: `App:CreateM2MClient`
27
26
  * Access Policy Resource: `IAM:M2MClient`
28
27
  */
29
28
  create(params, request) {
30
- return this.request('/m2m', 'post', this.baseUrlThunk.bind(this))(params, request);
29
+ return this.request('/m2m', 'post', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
31
30
  }
32
31
  /**
33
- * 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).
32
+ * Get the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
34
33
  *
35
34
  * Access Policy Action: `App:GetM2MClient`
36
35
  * Access Policy Resource: `IAM:M2MClient`
37
36
  */
38
37
  get(params, request) {
39
- return this.request('/m2m/{id}', 'get', this.baseUrlThunk.bind(this))(params, request);
38
+ return this.request('/m2m/{id}', 'get', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
40
39
  }
41
40
  /**
42
- * 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).
41
+ * Update the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
43
42
  *
44
43
  * Access Policy Action: `App:UpdateM2MClient`
45
44
  * Access Policy Resource: `IAM:M2MClient`
46
45
  */
47
46
  update(params, request) {
48
- return this.request('/m2m/{id}', 'patch', this.baseUrlThunk.bind(this))(params, request);
47
+ return this.request('/m2m/{id}', 'patch', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
49
48
  }
50
49
  /**
51
- * 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).
50
+ * Delete the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
52
51
  *
53
52
  * Access Policy Action: `App:DeleteM2MClient`
54
53
  * Access Policy Resource: `IAM:M2MClient`
55
54
  */
56
55
  delete(params, request) {
57
- return this.request('/m2m/{id}', 'delete', this.baseUrlThunk.bind(this))(params, request);
56
+ return this.request('/m2m/{id}', 'delete', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
58
57
  }
59
58
  /**
60
- * 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).
59
+ * Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
61
60
  *
62
61
  * Access Policy Action: `App:RotateM2MClientSecret`
63
62
  * Access Policy Resource: `IAM:M2MClient`
64
63
  */
65
64
  rotateSecret(params, request) {
66
- return this.request('/m2m/{id}/rotate-secret', 'post', this.baseUrlThunk.bind(this))(params, request);
65
+ return this.request('/m2m/{id}/rotate-secret', 'post', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
67
66
  }
68
67
  /**
69
68
  * 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).
@@ -72,9 +71,13 @@ class M2m extends SDKResource {
72
71
  * Access Policy Resource: `IAM:M2MClient`
73
72
  */
74
73
  listV2(params, request) {
75
- return this.request('/m2m/v2/list', 'get', this.baseUrlThunk.bind(this))(params, request);
74
+ return this.request('/m2m/v2/list', 'get', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
76
75
  }
77
76
  }
77
+ _M2m_instances = new WeakSet(), _M2m_baseUrlThunk = function _M2m_baseUrlThunk() {
78
+ var _a, _b;
79
+ return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
80
+ };
78
81
 
79
82
  export { M2m };
80
83
  //# sourceMappingURL=m2m.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"m2m.js","sources":["../../../../src/resources/classes/m2m.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n M2mCreateParams,\n M2mCreateResponse,\n M2mDeleteParams,\n M2mGetParams,\n M2mGetResponse,\n M2mListResponse,\n M2mListV2Params,\n M2mListV2Response,\n M2mRotateSecretParams,\n M2mRotateSecretResponse,\n M2mUpdateParams,\n M2mUpdateResponse,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class M2m extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_m2m-v2-list) instead.\n *\n * Get a list of all M2M Clients. [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).\n *\n * Access Policy Action: `App:ListAllM2MClients`\n * Access Policy Resource: `IAM:M2MClient`\n */\n list(request?: OystehrClientRequest): Promise<M2mListResponse> {\n return this.request('/m2m', 'get', this.baseUrlThunk.bind(this))(request);\n }\n /**\n * 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).\n *\n * Access Policy Action: `App:CreateM2MClient`\n * Access Policy Resource: `IAM:M2MClient`\n */\n create(params: M2mCreateParams, request?: OystehrClientRequest): Promise<M2mCreateResponse> {\n return this.request('/m2m', 'post', this.baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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).\n *\n * Access Policy Action: `App:GetM2MClient`\n * Access Policy Resource: `IAM:M2MClient`\n */\n get(params: M2mGetParams, request?: OystehrClientRequest): Promise<M2mGetResponse> {\n return this.request('/m2m/{id}', 'get', this.baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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).\n *\n * Access Policy Action: `App:UpdateM2MClient`\n * Access Policy Resource: `IAM:M2MClient`\n */\n update(params: M2mUpdateParams, request?: OystehrClientRequest): Promise<M2mUpdateResponse> {\n return this.request('/m2m/{id}', 'patch', this.baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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).\n *\n * Access Policy Action: `App:DeleteM2MClient`\n * Access Policy Resource: `IAM:M2MClient`\n */\n delete(params: M2mDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/m2m/{id}', 'delete', this.baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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).\n *\n * Access Policy Action: `App:RotateM2MClientSecret`\n * Access Policy Resource: `IAM:M2MClient`\n */\n rotateSecret(params: M2mRotateSecretParams, request?: OystehrClientRequest): Promise<M2mRotateSecretResponse> {\n return this.request('/m2m/{id}/rotate-secret', 'post', this.baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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).\n *\n * Access Policy Action: `App:ListAllM2MClients`\n * Access Policy Resource: `IAM:M2MClient`\n */\n listV2(params: M2mListV2Params, request?: OystehrClientRequest): Promise<M2mListV2Response> {\n return this.request('/m2m/v2/list', 'get', this.baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAoBM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,YAAY,GAAA;;AACV,QAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;KACvF;AACD;;;;;;;AAOG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAC3E;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAuB,EAAE,OAA8B,EAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpF;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAoB,EAAE,OAA8B,EAAA;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxF;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAuB,EAAE,OAA8B,EAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1F;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAuB,EAAE,OAA8B,EAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC3F;AACD;;;;;AAKG;IACH,YAAY,CAAC,MAA6B,EAAE,OAA8B,EAAA;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACvG;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAuB,EAAE,OAA8B,EAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC3F;AACF;;;;"}
1
+ {"version":3,"file":"m2m.js","sources":["../../../../src/resources/classes/m2m.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n M2mCreateParams,\n M2mCreateResponse,\n M2mDeleteParams,\n M2mGetParams,\n M2mGetResponse,\n M2mListResponse,\n M2mListV2Params,\n M2mListV2Response,\n M2mRotateSecretParams,\n M2mRotateSecretResponse,\n M2mUpdateParams,\n M2mUpdateResponse,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class M2m extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_m2m-v2-list) instead.\n *\n * Get a list of all M2M Clients. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).\n *\n * Access Policy Action: `App:ListAllM2MClients`\n * Access Policy Resource: `IAM:M2MClient`\n */\n list(request?: OystehrClientRequest): Promise<M2mListResponse> {\n return this.request('/m2m', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Create a new M2M Client. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).\n *\n * Access Policy Action: `App:CreateM2MClient`\n * Access Policy Resource: `IAM:M2MClient`\n */\n create(params: M2mCreateParams, request?: OystehrClientRequest): Promise<M2mCreateResponse> {\n return this.request('/m2m', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).\n *\n * Access Policy Action: `App:GetM2MClient`\n * Access Policy Resource: `IAM:M2MClient`\n */\n get(params: M2mGetParams, request?: OystehrClientRequest): Promise<M2mGetResponse> {\n return this.request('/m2m/{id}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Update the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).\n *\n * Access Policy Action: `App:UpdateM2MClient`\n * Access Policy Resource: `IAM:M2MClient`\n */\n update(params: M2mUpdateParams, request?: OystehrClientRequest): Promise<M2mUpdateResponse> {\n return this.request('/m2m/{id}', 'patch', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Delete the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).\n *\n * Access Policy Action: `App:DeleteM2MClient`\n * Access Policy Resource: `IAM:M2MClient`\n */\n delete(params: M2mDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/m2m/{id}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).\n *\n * Access Policy Action: `App:RotateM2MClientSecret`\n * Access Policy Resource: `IAM:M2MClient`\n */\n rotateSecret(params: M2mRotateSecretParams, request?: OystehrClientRequest): Promise<M2mRotateSecretResponse> {\n return this.request('/m2m/{id}/rotate-secret', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get M2M clients in the Project with pagination, sort, sort Order and filtering. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).\n *\n * Access Policy Action: `App:ListAllM2MClients`\n * Access Policy Resource: `IAM:M2MClient`\n */\n listV2(params: M2mListV2Params, request?: OystehrClientRequest): Promise<M2mListV2Response>;\n /**\n * 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).\n *\n * Access Policy Action: `App:ListAllM2MClients`\n * Access Policy Resource: `IAM:M2MClient`\n */\n listV2(request?: OystehrClientRequest): Promise<M2mListV2Response>;\n /**\n * 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).\n *\n * Access Policy Action: `App:ListAllM2MClients`\n * Access Policy Resource: `IAM:M2MClient`\n */\n listV2(params?: M2mListV2Params | OystehrClientRequest, request?: OystehrClientRequest): Promise<M2mListV2Response> {\n return this.request('/m2m/v2/list', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAoBM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;;;;;;AAOG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,yCAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAC5E;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAuB,EAAE,OAA8B,EAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrF;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAoB,EAAE,OAA8B,EAAA;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzF;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAuB,EAAE,OAA8B,EAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC3F;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAuB,EAAE,OAA8B,EAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC5F;AACD;;;;;AAKG;IACH,YAAY,CAAC,MAA6B,EAAE,OAA8B,EAAA;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxG;AAeD;;;;;AAKG;IACH,MAAM,CAAC,MAA+C,EAAE,OAA8B,EAAA;QACpF,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC5F;AACF,CAAA;;;AAjFG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
@@ -2,8 +2,8 @@ import { MessagingGetMessagingConfigResponse, OystehrClientRequest } from '../..
2
2
  import { SDKResource } from '../../client/client';
3
3
  import { OystehrConfig } from '../../config';
4
4
  export declare class Messaging extends SDKResource {
5
+ #private;
5
6
  constructor(config: OystehrConfig);
6
- baseUrlThunk(): string;
7
7
  /**
8
8
  * Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.
9
9
  */
@@ -1,21 +1,24 @@
1
+ import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
1
2
  import { SDKResource } from '../../client/client.js';
2
3
 
3
4
  // AUTOGENERATED -- DO NOT EDIT
5
+ var _Messaging_instances, _Messaging_baseUrlThunk;
4
6
  class Messaging extends SDKResource {
5
7
  constructor(config) {
6
8
  super(config);
7
- }
8
- baseUrlThunk() {
9
- var _a, _b;
10
- return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
9
+ _Messaging_instances.add(this);
11
10
  }
12
11
  /**
13
12
  * Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.
14
13
  */
15
14
  getMessagingConfig(request) {
16
- return this.request('/messaging/config', 'get', this.baseUrlThunk.bind(this))(request);
15
+ return this.request('/messaging/config', 'get', __classPrivateFieldGet(this, _Messaging_instances, "m", _Messaging_baseUrlThunk).bind(this))(request);
17
16
  }
18
17
  }
18
+ _Messaging_instances = new WeakSet(), _Messaging_baseUrlThunk = function _Messaging_baseUrlThunk() {
19
+ var _a, _b;
20
+ return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
21
+ };
19
22
 
20
23
  export { Messaging };
21
24
  //# sourceMappingURL=messaging.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"messaging.js","sources":["../../../../src/resources/classes/messaging.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { MessagingGetMessagingConfigResponse, OystehrClientRequest } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Messaging extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.\n */\n getMessagingConfig(request?: OystehrClientRequest): Promise<MessagingGetMessagingConfigResponse> {\n return this.request('/messaging/config', 'get', this.baseUrlThunk.bind(this))(request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAMM,MAAO,SAAU,SAAQ,WAAW,CAAA;AACxC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,YAAY,GAAA;;AACV,QAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;KACvF;AACD;;AAEG;AACH,IAAA,kBAAkB,CAAC,OAA8B,EAAA;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KACxF;AACF;;;;"}
1
+ {"version":3,"file":"messaging.js","sources":["../../../../src/resources/classes/messaging.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { MessagingGetMessagingConfigResponse, OystehrClientRequest } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Messaging extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.\n */\n getMessagingConfig(request?: OystehrClientRequest): Promise<MessagingGetMessagingConfigResponse> {\n return this.request('/messaging/config', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAMM,MAAO,SAAU,SAAQ,WAAW,CAAA;AACxC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;AAEG;AACH,IAAA,kBAAkB,CAAC,OAA8B,EAAA;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,qDAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KACzF;AACF,CAAA;;;AARG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
@@ -2,8 +2,8 @@ import { OystehrClientRequest, PaymentMethodDeleteParams, PaymentMethodListParam
2
2
  import { SDKResource } from '../../client/client';
3
3
  import { OystehrConfig } from '../../config';
4
4
  export declare class PaymentMethod extends SDKResource {
5
+ #private;
5
6
  constructor(config: OystehrConfig);
6
- baseUrlThunk(): string;
7
7
  /**
8
8
  * Enter a new credit card or other payment method for the user.
9
9
  *
@@ -1,13 +1,12 @@
1
+ import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
1
2
  import { SDKResource } from '../../client/client.js';
2
3
 
3
4
  // AUTOGENERATED -- DO NOT EDIT
5
+ var _PaymentMethod_instances, _PaymentMethod_baseUrlThunk;
4
6
  class PaymentMethod extends SDKResource {
5
7
  constructor(config) {
6
8
  super(config);
7
- }
8
- baseUrlThunk() {
9
- var _a, _b;
10
- return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
9
+ _PaymentMethod_instances.add(this);
11
10
  }
12
11
  /**
13
12
  * Enter a new credit card or other payment method for the user.
@@ -25,7 +24,7 @@ class PaymentMethod extends SDKResource {
25
24
  * Access Policy Resource: `FHIR:Patient`
26
25
  */
27
26
  setUp(params, request) {
28
- return this.request('/payment/payment-method/setup', 'post', this.baseUrlThunk.bind(this))(params, request);
27
+ return this.request('/payment/payment-method/setup', 'post', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
29
28
  }
30
29
  /**
31
30
  * Set a specified payment method for the user as default.
@@ -43,7 +42,7 @@ class PaymentMethod extends SDKResource {
43
42
  * Access Policy Resource: `FHIR:Patient`
44
43
  */
45
44
  setDefault(params, request) {
46
- return this.request('/payment/payment-method/set-default', 'post', this.baseUrlThunk.bind(this))(params, request);
45
+ return this.request('/payment/payment-method/set-default', 'post', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
47
46
  }
48
47
  /**
49
48
  * Delete a specified payment method for the beneficiary.
@@ -61,7 +60,7 @@ class PaymentMethod extends SDKResource {
61
60
  * Access Policy Resource: `FHIR:Patient`
62
61
  */
63
62
  delete(params, request) {
64
- return this.request('/payment/payment-method', 'delete', this.baseUrlThunk.bind(this))(params, request);
63
+ return this.request('/payment/payment-method', 'delete', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
65
64
  }
66
65
  /**
67
66
  * List all payment methods for the patient.
@@ -79,9 +78,13 @@ class PaymentMethod extends SDKResource {
79
78
  * Access Policy Resource: `FHIR:Patient`
80
79
  */
81
80
  list(params, request) {
82
- return this.request('/payment/payment-method/list', 'post', this.baseUrlThunk.bind(this))(params, request);
81
+ return this.request('/payment/payment-method/list', 'post', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
83
82
  }
84
83
  }
84
+ _PaymentMethod_instances = new WeakSet(), _PaymentMethod_baseUrlThunk = function _PaymentMethod_baseUrlThunk() {
85
+ var _a, _b;
86
+ return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
87
+ };
85
88
 
86
89
  export { PaymentMethod };
87
90
  //# sourceMappingURL=paymentMethod.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"paymentMethod.js","sources":["../../../../src/resources/classes/paymentMethod.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n PaymentMethodDeleteParams,\n PaymentMethodListParams,\n PaymentMethodListResponse,\n PaymentMethodSetDefaultParams,\n PaymentMethodSetUpParams,\n PaymentMethodSetUpResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class PaymentMethod extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Enter a new credit card or other payment method for the user.\n *\n * Access Policy Requirements:\n * Action: `Payment:Setup`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n setUp(params: PaymentMethodSetUpParams, request?: OystehrClientRequest): Promise<PaymentMethodSetUpResponse> {\n return this.request('/payment/payment-method/setup', 'post', this.baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Set a specified payment method for the user as default.\n *\n * Access Policy Requirements:\n * Action: `Payment:SetDefault`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n setDefault(params: PaymentMethodSetDefaultParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/payment/payment-method/set-default', 'post', this.baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Delete a specified payment method for the beneficiary.\n *\n * Access Policy Requirements:\n * Action: `Payment:Delete`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n delete(params: PaymentMethodDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/payment/payment-method', 'delete', this.baseUrlThunk.bind(this))(params, request);\n }\n /**\n * List all payment methods for the patient.\n *\n * Access Policy Requirements:\n * Action: `Payment:Setup`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n list(params: PaymentMethodListParams, request?: OystehrClientRequest): Promise<PaymentMethodListResponse> {\n return this.request('/payment/payment-method/list', 'post', this.baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAcM,MAAO,aAAc,SAAQ,WAAW,CAAA;AAC5C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,YAAY,GAAA;;AACV,QAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;KACvF;AACD;;;;;;;;;;;;;;AAcG;IACH,KAAK,CAAC,MAAgC,EAAE,OAA8B,EAAA;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC7G;AACD;;;;;;;;;;;;;;AAcG;IACH,UAAU,CAAC,MAAqC,EAAE,OAA8B,EAAA;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,qCAAqC,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnH;AACD;;;;;;;;;;;;;;AAcG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA8B,EAAA;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzG;AACD;;;;;;;;;;;;;;AAcG;IACH,IAAI,CAAC,MAA+B,EAAE,OAA8B,EAAA;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,8BAA8B,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC5G;AACF;;;;"}
1
+ {"version":3,"file":"paymentMethod.js","sources":["../../../../src/resources/classes/paymentMethod.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n PaymentMethodDeleteParams,\n PaymentMethodListParams,\n PaymentMethodListResponse,\n PaymentMethodSetDefaultParams,\n PaymentMethodSetUpParams,\n PaymentMethodSetUpResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class PaymentMethod extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Enter a new credit card or other payment method for the user.\n *\n * Access Policy Requirements:\n * Action: `Payment:Setup`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n setUp(params: PaymentMethodSetUpParams, request?: OystehrClientRequest): Promise<PaymentMethodSetUpResponse> {\n return this.request('/payment/payment-method/setup', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Set a specified payment method for the user as default.\n *\n * Access Policy Requirements:\n * Action: `Payment:SetDefault`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n setDefault(params: PaymentMethodSetDefaultParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/payment/payment-method/set-default', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Delete a specified payment method for the beneficiary.\n *\n * Access Policy Requirements:\n * Action: `Payment:Delete`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n delete(params: PaymentMethodDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/payment/payment-method', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * List all payment methods for the patient.\n *\n * Access Policy Requirements:\n * Action: `Payment:Setup`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n list(params: PaymentMethodListParams, request?: OystehrClientRequest): Promise<PaymentMethodListResponse> {\n return this.request('/payment/payment-method/list', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAcM,MAAO,aAAc,SAAQ,WAAW,CAAA;AAC5C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;;;;;;;;;;;;;AAcG;IACH,KAAK,CAAC,MAAgC,EAAE,OAA8B,EAAA;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,wBAAA,EAAA,GAAA,EAAA,2BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9G;AACD;;;;;;;;;;;;;;AAcG;IACH,UAAU,CAAC,MAAqC,EAAE,OAA8B,EAAA;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,qCAAqC,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,wBAAA,EAAA,GAAA,EAAA,2BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpH;AACD;;;;;;;;;;;;;;AAcG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA8B,EAAA;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,QAAQ,EAAE,sBAAA,CAAA,IAAI,EAAA,wBAAA,EAAA,GAAA,EAAA,2BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1G;AACD;;;;;;;;;;;;;;AAcG;IACH,IAAI,CAAC,MAA+B,EAAE,OAA8B,EAAA;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,8BAA8B,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,wBAAA,EAAA,GAAA,EAAA,2BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC7G;AACF,CAAA;;;AA1EG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
@@ -2,20 +2,27 @@ import { OystehrClientRequest, ProjectGetResponse, ProjectUpdateParams, ProjectU
2
2
  import { SDKResource } from '../../client/client';
3
3
  import { OystehrConfig } from '../../config';
4
4
  export declare class Project extends SDKResource {
5
+ #private;
5
6
  constructor(config: OystehrConfig);
6
- baseUrlThunk(): string;
7
7
  /**
8
- * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/services/project/) 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 .
8
+ * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/oystehr/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .
9
9
  *
10
10
  * Access Policy Action: `Project:GetProjectInfo`
11
11
  * Access Policy Resource: `Project:Settings`
12
12
  */
13
13
  get(request?: OystehrClientRequest): Promise<ProjectGetResponse>;
14
14
  /**
15
- * 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 .
15
+ * Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/oystehr/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/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .
16
16
  *
17
17
  * Access Policy Action: `Project:UpdateProjectInfo`
18
18
  * Access Policy Resource: `Project:Settings`
19
19
  */
20
20
  update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;
21
+ /**
22
+ * 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 .
23
+ *
24
+ * Access Policy Action: `Project:UpdateProjectInfo`
25
+ * Access Policy Resource: `Project:Settings`
26
+ */
27
+ update(request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;
21
28
  }
@@ -1,22 +1,21 @@
1
+ import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
1
2
  import { SDKResource } from '../../client/client.js';
2
3
 
3
4
  // AUTOGENERATED -- DO NOT EDIT
5
+ var _Project_instances, _Project_baseUrlThunk;
4
6
  class Project extends SDKResource {
5
7
  constructor(config) {
6
8
  super(config);
7
- }
8
- baseUrlThunk() {
9
- var _a, _b;
10
- return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
9
+ _Project_instances.add(this);
11
10
  }
12
11
  /**
13
- * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/services/project/) 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 .
12
+ * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/oystehr/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .
14
13
  *
15
14
  * Access Policy Action: `Project:GetProjectInfo`
16
15
  * Access Policy Resource: `Project:Settings`
17
16
  */
18
17
  get(request) {
19
- return this.request('/project', 'get', this.baseUrlThunk.bind(this))(request);
18
+ return this.request('/project', 'get', __classPrivateFieldGet(this, _Project_instances, "m", _Project_baseUrlThunk).bind(this))(request);
20
19
  }
21
20
  /**
22
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 .
@@ -25,9 +24,13 @@ class Project extends SDKResource {
25
24
  * Access Policy Resource: `Project:Settings`
26
25
  */
27
26
  update(params, request) {
28
- return this.request('/project', 'patch', this.baseUrlThunk.bind(this))(params, request);
27
+ return this.request('/project', 'patch', __classPrivateFieldGet(this, _Project_instances, "m", _Project_baseUrlThunk).bind(this))(params, request);
29
28
  }
30
29
  }
30
+ _Project_instances = new WeakSet(), _Project_baseUrlThunk = function _Project_baseUrlThunk() {
31
+ var _a, _b;
32
+ return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
33
+ };
31
34
 
32
35
  export { Project };
33
36
  //# sourceMappingURL=project.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project.js","sources":["../../../../src/resources/classes/project.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrClientRequest, ProjectGetResponse, ProjectUpdateParams, ProjectUpdateResponse } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Project extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/services/project/) 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 .\n *\n * Access Policy Action: `Project:GetProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n get(request?: OystehrClientRequest): Promise<ProjectGetResponse> {\n return this.request('/project', 'get', this.baseUrlThunk.bind(this))(request);\n }\n /**\n * 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 .\n *\n * Access Policy Action: `Project:UpdateProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse> {\n return this.request('/project', 'patch', this.baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAMM,MAAO,OAAQ,SAAQ,WAAW,CAAA;AACtC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,YAAY,GAAA;;AACV,QAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;KACvF;AACD;;;;;AAKG;AACH,IAAA,GAAG,CAAC,OAA8B,EAAA;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAC/E;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAA2B,EAAE,OAA8B,EAAA;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzF;AACF;;;;"}
1
+ {"version":3,"file":"project.js","sources":["../../../../src/resources/classes/project.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrClientRequest, ProjectGetResponse, ProjectUpdateParams, ProjectUpdateResponse } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Project extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/oystehr/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .\n *\n * Access Policy Action: `Project:GetProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n get(request?: OystehrClientRequest): Promise<ProjectGetResponse> {\n return this.request('/project', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/oystehr/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/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .\n *\n * Access Policy Action: `Project:UpdateProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;\n /**\n * 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 .\n *\n * Access Policy Action: `Project:UpdateProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n update(request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;\n /**\n * 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 .\n *\n * Access Policy Action: `Project:UpdateProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n update(\n params?: ProjectUpdateParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<ProjectUpdateResponse> {\n return this.request('/project', 'patch', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAMM,MAAO,OAAQ,SAAQ,WAAW,CAAA;AACtC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;;;;AAKG;AACH,IAAA,GAAG,CAAC,OAA8B,EAAA;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,iDAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAChF;AAeD;;;;;AAKG;IACH,MAAM,CACJ,MAAmD,EACnD,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE,sBAAA,CAAA,IAAI,EAAA,kBAAA,EAAA,GAAA,EAAA,qBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1F;AACF,CAAA;;;AArCG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
@@ -2,10 +2,10 @@ import { OystehrClientRequest, RcmEligibilityCheckParams, RcmEligibilityCheckRes
2
2
  import { SDKResource } from '../../client/client';
3
3
  import { OystehrConfig } from '../../config';
4
4
  export declare class Rcm extends SDKResource {
5
+ #private;
5
6
  constructor(config: OystehrConfig);
6
- baseUrlThunk(): string;
7
7
  /**
8
- * Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).
8
+ * Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).
9
9
  *
10
10
  * Access Policy Action: `RCM:CheckInsuranceEligibility`
11
11
  * Access Policy Resource: `RCM:InsuranceEligibility`
@@ -15,7 +15,7 @@ export declare class Rcm extends SDKResource {
15
15
  */
16
16
  eligibilityCheck(params: RcmEligibilityCheckParams, request?: OystehrClientRequest): Promise<RcmEligibilityCheckResponse>;
17
17
  /**
18
- * Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
18
+ * Check [Validate Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
19
19
  *
20
20
  * Access Policy Action: `RCM:ValidateProfessionalClaim`
21
21
  * Access Policy Resource: `RCM:Claim`
@@ -25,7 +25,7 @@ export declare class Rcm extends SDKResource {
25
25
  */
26
26
  validateProfessionalClaim(params: RcmValidateProfessionalClaimParams, request?: OystehrClientRequest): Promise<RcmValidateProfessionalClaimResponse>;
27
27
  /**
28
- * Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
28
+ * Check [Submit Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
29
29
  *
30
30
  * Access Policy Action: `RCM:SubmitProfessionalClaim`
31
31
  * Access Policy Resource: `RCM:Claim`
@@ -1,16 +1,15 @@
1
+ import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
1
2
  import { SDKResource } from '../../client/client.js';
2
3
 
3
4
  // AUTOGENERATED -- DO NOT EDIT
5
+ var _Rcm_instances, _Rcm_baseUrlThunk;
4
6
  class Rcm extends SDKResource {
5
7
  constructor(config) {
6
8
  super(config);
7
- }
8
- baseUrlThunk() {
9
- var _a, _b;
10
- return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
9
+ _Rcm_instances.add(this);
11
10
  }
12
11
  /**
13
- * Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).
12
+ * Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).
14
13
  *
15
14
  * Access Policy Action: `RCM:CheckInsuranceEligibility`
16
15
  * Access Policy Resource: `RCM:InsuranceEligibility`
@@ -19,10 +18,10 @@ class Rcm extends SDKResource {
19
18
  * Access Policy Resource: `FHIR:CoverageEligibilityResponse`
20
19
  */
21
20
  eligibilityCheck(params, request) {
22
- return this.request('/rcm/eligibility-check', 'post', this.baseUrlThunk.bind(this))(params, request);
21
+ return this.request('/rcm/eligibility-check', 'post', __classPrivateFieldGet(this, _Rcm_instances, "m", _Rcm_baseUrlThunk).bind(this))(params, request);
23
22
  }
24
23
  /**
25
- * Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
24
+ * Check [Validate Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
26
25
  *
27
26
  * Access Policy Action: `RCM:ValidateProfessionalClaim`
28
27
  * Access Policy Resource: `RCM:Claim`
@@ -31,10 +30,10 @@ class Rcm extends SDKResource {
31
30
  * Access Policy Resource: `FHIR:AuditEvent`
32
31
  */
33
32
  validateProfessionalClaim(params, request) {
34
- return this.request('/rcm/professional-claim/validate', 'post', this.baseUrlThunk.bind(this))(params, request);
33
+ return this.request('/rcm/professional-claim/validate', 'post', __classPrivateFieldGet(this, _Rcm_instances, "m", _Rcm_baseUrlThunk).bind(this))(params, request);
35
34
  }
36
35
  /**
37
- * Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
36
+ * Check [Submit Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
38
37
  *
39
38
  * Access Policy Action: `RCM:SubmitProfessionalClaim`
40
39
  * Access Policy Resource: `RCM:Claim`
@@ -46,9 +45,13 @@ class Rcm extends SDKResource {
46
45
  * Access Policy Resource: `FHIR:Claim`
47
46
  */
48
47
  submitProfessionalClaim(params, request) {
49
- return this.request('/rcm/professional-claim/submit', 'post', this.baseUrlThunk.bind(this))(params, request);
48
+ return this.request('/rcm/professional-claim/submit', 'post', __classPrivateFieldGet(this, _Rcm_instances, "m", _Rcm_baseUrlThunk).bind(this))(params, request);
50
49
  }
51
50
  }
51
+ _Rcm_instances = new WeakSet(), _Rcm_baseUrlThunk = function _Rcm_baseUrlThunk() {
52
+ var _a, _b;
53
+ return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
54
+ };
52
55
 
53
56
  export { Rcm };
54
57
  //# sourceMappingURL=rcm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rcm.js","sources":["../../../../src/resources/classes/rcm.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n RcmEligibilityCheckParams,\n RcmEligibilityCheckResponse,\n RcmSubmitProfessionalClaimParams,\n RcmSubmitProfessionalClaimResponse,\n RcmValidateProfessionalClaimParams,\n RcmValidateProfessionalClaimResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Rcm extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).\n *\n * Access Policy Action: `RCM:CheckInsuranceEligibility`\n * Access Policy Resource: `RCM:InsuranceEligibility`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:CoverageEligibilityResponse`\n */\n eligibilityCheck(\n params: RcmEligibilityCheckParams,\n request?: OystehrClientRequest\n ): Promise<RcmEligibilityCheckResponse> {\n return this.request('/rcm/eligibility-check', 'post', this.baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).\n *\n * Access Policy Action: `RCM:ValidateProfessionalClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:AuditEvent`\n */\n validateProfessionalClaim(\n params: RcmValidateProfessionalClaimParams,\n request?: OystehrClientRequest\n ): Promise<RcmValidateProfessionalClaimResponse> {\n return this.request('/rcm/professional-claim/validate', 'post', this.baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).\n *\n * Access Policy Action: `RCM:SubmitProfessionalClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:AuditEvent`\n *\n * Access Policy Actions: `FHIR:Create, FHIR:Update`\n * Access Policy Resource: `FHIR:Claim`\n */\n submitProfessionalClaim(\n params: RcmSubmitProfessionalClaimParams,\n request?: OystehrClientRequest\n ): Promise<RcmSubmitProfessionalClaimResponse> {\n return this.request('/rcm/professional-claim/submit', 'post', this.baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAcM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,YAAY,GAAA;;AACV,QAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;KACvF;AACD;;;;;;;;AAQG;IACH,gBAAgB,CACd,MAAiC,EACjC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtG;AACD;;;;;;;;AAQG;IACH,yBAAyB,CACvB,MAA0C,EAC1C,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,kCAAkC,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChH;AACD;;;;;;;;;;;AAWG;IACH,uBAAuB,CACrB,MAAwC,EACxC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9G;AACF;;;;"}
1
+ {"version":3,"file":"rcm.js","sources":["../../../../src/resources/classes/rcm.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n RcmEligibilityCheckParams,\n RcmEligibilityCheckResponse,\n RcmSubmitProfessionalClaimParams,\n RcmSubmitProfessionalClaimResponse,\n RcmValidateProfessionalClaimParams,\n RcmValidateProfessionalClaimResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Rcm extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).\n *\n * Access Policy Action: `RCM:CheckInsuranceEligibility`\n * Access Policy Resource: `RCM:InsuranceEligibility`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:CoverageEligibilityResponse`\n */\n eligibilityCheck(\n params: RcmEligibilityCheckParams,\n request?: OystehrClientRequest\n ): Promise<RcmEligibilityCheckResponse> {\n return this.request('/rcm/eligibility-check', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Check [Validate Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).\n *\n * Access Policy Action: `RCM:ValidateProfessionalClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:AuditEvent`\n */\n validateProfessionalClaim(\n params: RcmValidateProfessionalClaimParams,\n request?: OystehrClientRequest\n ): Promise<RcmValidateProfessionalClaimResponse> {\n return this.request('/rcm/professional-claim/validate', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Check [Submit Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).\n *\n * Access Policy Action: `RCM:SubmitProfessionalClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:AuditEvent`\n *\n * Access Policy Actions: `FHIR:Create, FHIR:Update`\n * Access Policy Resource: `FHIR:Claim`\n */\n submitProfessionalClaim(\n params: RcmSubmitProfessionalClaimParams,\n request?: OystehrClientRequest\n ): Promise<RcmSubmitProfessionalClaimResponse> {\n return this.request('/rcm/professional-claim/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAcM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;;;;;;;AAQG;IACH,gBAAgB,CACd,MAAiC,EACjC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACvG;AACD;;;;;;;;AAQG;IACH,yBAAyB,CACvB,MAA0C,EAC1C,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,kCAAkC,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACjH;AACD;;;;;;;;;;;AAWG;IACH,uBAAuB,CACrB,MAAwC,EACxC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/G;AACF,CAAA;;;AAlDG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
@@ -2,38 +2,38 @@ import { OystehrClientRequest, RoleCreateParams, RoleCreateResponse, RoleDeleteP
2
2
  import { SDKResource } from '../../client/client';
3
3
  import { OystehrConfig } from '../../config';
4
4
  export declare class Role extends SDKResource {
5
+ #private;
5
6
  constructor(config: OystehrConfig);
6
- baseUrlThunk(): string;
7
7
  /**
8
- * Get a list of all Roles. 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/).
8
+ * Get a list of all Roles. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
9
9
  *
10
10
  * Access Policy Action: `IAM:ListAllRoles`
11
11
  * Access Policy Resource: `IAM:Role`
12
12
  */
13
13
  list(request?: OystehrClientRequest): Promise<RoleListResponse>;
14
14
  /**
15
- * 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/).
15
+ * Create a new Role. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
16
16
  *
17
17
  * Access Policy Action: `IAM:CreateRole`
18
18
  * Access Policy Resource: `IAM:Role`
19
19
  */
20
20
  create(params: RoleCreateParams, request?: OystehrClientRequest): Promise<RoleCreateResponse>;
21
21
  /**
22
- * 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/).
22
+ * Get the Role with the provided ID. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
23
23
  *
24
24
  * Access Policy Action: `IAM:GetRole`
25
25
  * Access Policy Resource: `IAM:Role`
26
26
  */
27
27
  get(params: RoleGetParams, request?: OystehrClientRequest): Promise<RoleGetResponse>;
28
28
  /**
29
- * 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/).
29
+ * Update the Role with the provided ID. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
30
30
  *
31
31
  * Access Policy Action: `IAM:UpdateRole`
32
32
  * Access Policy Resource: `IAM:Role`
33
33
  */
34
34
  update(params: RoleUpdateParams, request?: OystehrClientRequest): Promise<RoleUpdateResponse>;
35
35
  /**
36
- * 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/).
36
+ * Delete the Role with the provided ID. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
37
37
  *
38
38
  * Access Policy Action: `IAM:DeleteRole`
39
39
  * Access Policy Resource: `IAM:Role`