@oystehr/sdk 4.0.0-alpha.4 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/cjs/client/client.cjs +259 -0
  2. package/dist/cjs/client/client.cjs.map +1 -0
  3. package/dist/cjs/errors/index.cjs +58 -0
  4. package/dist/cjs/errors/index.cjs.map +1 -0
  5. package/dist/cjs/index.cjs +11 -1980
  6. package/dist/cjs/index.cjs.map +1 -1
  7. package/dist/cjs/index.min.cjs +1 -1
  8. package/dist/cjs/index.min.cjs.map +1 -1
  9. package/dist/cjs/resources/classes/application.cjs +88 -0
  10. package/dist/cjs/resources/classes/application.cjs.map +1 -0
  11. package/dist/cjs/resources/classes/charge.cjs +44 -0
  12. package/dist/cjs/resources/classes/charge.cjs.map +1 -0
  13. package/dist/cjs/resources/classes/conversation-ext.cjs +31 -0
  14. package/dist/cjs/resources/classes/conversation-ext.cjs.map +1 -0
  15. package/dist/cjs/resources/classes/conversation.cjs +84 -0
  16. package/dist/cjs/resources/classes/conversation.cjs.map +1 -0
  17. package/dist/cjs/resources/classes/developer.cjs +72 -0
  18. package/dist/cjs/resources/classes/developer.cjs.map +1 -0
  19. package/dist/cjs/resources/classes/erx.cjs +88 -0
  20. package/dist/cjs/resources/classes/erx.cjs.map +1 -0
  21. package/dist/cjs/resources/classes/erx.d.ts +5 -1
  22. package/dist/cjs/resources/classes/erxV1.cjs +46 -0
  23. package/dist/cjs/resources/classes/erxV1.cjs.map +1 -0
  24. package/dist/cjs/resources/classes/erxV2.cjs +22 -0
  25. package/dist/cjs/resources/classes/erxV2.cjs.map +1 -0
  26. package/dist/cjs/resources/classes/fax.cjs +46 -0
  27. package/dist/cjs/resources/classes/fax.cjs.map +1 -0
  28. package/dist/cjs/resources/classes/fhir-ext.cjs +200 -0
  29. package/dist/cjs/resources/classes/fhir-ext.cjs.map +1 -0
  30. package/dist/cjs/resources/classes/fhir-ext.d.ts +8 -8
  31. package/dist/cjs/resources/classes/fhir.cjs +34 -0
  32. package/dist/cjs/resources/classes/fhir.cjs.map +1 -0
  33. package/dist/cjs/resources/classes/fhir.d.ts +2 -2
  34. package/dist/cjs/resources/classes/index.cjs +88 -0
  35. package/dist/cjs/resources/classes/index.cjs.map +1 -0
  36. package/dist/cjs/resources/classes/lab.cjs +76 -0
  37. package/dist/cjs/resources/classes/lab.cjs.map +1 -0
  38. package/dist/cjs/resources/classes/m2m.cjs +81 -0
  39. package/dist/cjs/resources/classes/m2m.cjs.map +1 -0
  40. package/dist/cjs/resources/classes/messaging.cjs +22 -0
  41. package/dist/cjs/resources/classes/messaging.cjs.map +1 -0
  42. package/dist/cjs/resources/classes/paymentMethod.cjs +88 -0
  43. package/dist/cjs/resources/classes/paymentMethod.cjs.map +1 -0
  44. package/dist/cjs/resources/classes/project.cjs +34 -0
  45. package/dist/cjs/resources/classes/project.cjs.map +1 -0
  46. package/dist/cjs/resources/classes/rcm.cjs +55 -0
  47. package/dist/cjs/resources/classes/rcm.cjs.map +1 -0
  48. package/dist/cjs/resources/classes/role.cjs +62 -0
  49. package/dist/cjs/resources/classes/role.cjs.map +1 -0
  50. package/dist/cjs/resources/classes/secret.cjs +52 -0
  51. package/dist/cjs/resources/classes/secret.cjs.map +1 -0
  52. package/dist/cjs/resources/classes/telemed.cjs +43 -0
  53. package/dist/cjs/resources/classes/telemed.cjs.map +1 -0
  54. package/dist/cjs/resources/classes/transactionalSMS.cjs +34 -0
  55. package/dist/cjs/resources/classes/transactionalSMS.cjs.map +1 -0
  56. package/dist/cjs/resources/classes/user.cjs +80 -0
  57. package/dist/cjs/resources/classes/user.cjs.map +1 -0
  58. package/dist/cjs/resources/classes/version.cjs +22 -0
  59. package/dist/cjs/resources/classes/version.cjs.map +1 -0
  60. package/dist/cjs/resources/classes/z3-ext.cjs +81 -0
  61. package/dist/cjs/resources/classes/z3-ext.cjs.map +1 -0
  62. package/dist/cjs/resources/classes/z3.cjs +88 -0
  63. package/dist/cjs/resources/classes/z3.cjs.map +1 -0
  64. package/dist/cjs/resources/classes/zambda-ext.cjs +15 -0
  65. package/dist/cjs/resources/classes/zambda-ext.cjs.map +1 -0
  66. package/dist/cjs/resources/classes/zambda.cjs +89 -0
  67. package/dist/cjs/resources/classes/zambda.cjs.map +1 -0
  68. package/dist/cjs/resources/classes/zambdaLogStream.cjs +43 -0
  69. package/dist/cjs/resources/classes/zambdaLogStream.cjs.map +1 -0
  70. package/dist/cjs/resources/types/ErxGetConfigurationResponse.d.ts +9 -0
  71. package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +12 -0
  72. package/dist/cjs/resources/types/ZambdaFunction.d.ts +8 -0
  73. package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +8 -0
  74. package/dist/cjs/resources/types/fhir.d.ts +12 -12
  75. package/dist/cjs/resources/types/index.d.ts +1 -0
  76. package/dist/esm/client/client.js +68 -67
  77. package/dist/esm/client/client.js.map +1 -1
  78. package/dist/esm/errors/index.js +3 -2
  79. package/dist/esm/errors/index.js.map +1 -1
  80. package/dist/esm/index.js +2 -2
  81. package/dist/esm/index.js.map +1 -1
  82. package/dist/esm/index.min.js +1 -1
  83. package/dist/esm/index.min.js.map +1 -1
  84. package/dist/esm/resources/classes/application.js +11 -15
  85. package/dist/esm/resources/classes/application.js.map +1 -1
  86. package/dist/esm/resources/classes/charge.js +5 -9
  87. package/dist/esm/resources/classes/charge.js.map +1 -1
  88. package/dist/esm/resources/classes/conversation-ext.js +4 -5
  89. package/dist/esm/resources/classes/conversation-ext.js.map +1 -1
  90. package/dist/esm/resources/classes/conversation.js +16 -20
  91. package/dist/esm/resources/classes/conversation.js.map +1 -1
  92. package/dist/esm/resources/classes/developer.js +9 -13
  93. package/dist/esm/resources/classes/developer.js.map +1 -1
  94. package/dist/esm/resources/classes/erx.d.ts +5 -1
  95. package/dist/esm/resources/classes/erx.js +20 -18
  96. package/dist/esm/resources/classes/erx.js.map +1 -1
  97. package/dist/esm/resources/classes/erxV1.js +8 -12
  98. package/dist/esm/resources/classes/erxV1.js.map +1 -1
  99. package/dist/esm/resources/classes/erxV2.js +4 -8
  100. package/dist/esm/resources/classes/erxV2.js.map +1 -1
  101. package/dist/esm/resources/classes/fax.js +6 -10
  102. package/dist/esm/resources/classes/fax.js.map +1 -1
  103. package/dist/esm/resources/classes/fhir-ext.d.ts +8 -8
  104. package/dist/esm/resources/classes/fhir-ext.js +71 -62
  105. package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
  106. package/dist/esm/resources/classes/fhir.d.ts +2 -2
  107. package/dist/esm/resources/classes/fhir.js +20 -20
  108. package/dist/esm/resources/classes/fhir.js.map +1 -1
  109. package/dist/esm/resources/classes/index.js +28 -5
  110. package/dist/esm/resources/classes/index.js.map +1 -1
  111. package/dist/esm/resources/classes/lab.js +9 -13
  112. package/dist/esm/resources/classes/lab.js.map +1 -1
  113. package/dist/esm/resources/classes/m2m.js +10 -14
  114. package/dist/esm/resources/classes/m2m.js.map +1 -1
  115. package/dist/esm/resources/classes/messaging.js +4 -8
  116. package/dist/esm/resources/classes/messaging.js.map +1 -1
  117. package/dist/esm/resources/classes/paymentMethod.js +7 -11
  118. package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
  119. package/dist/esm/resources/classes/project.js +5 -9
  120. package/dist/esm/resources/classes/project.js.map +1 -1
  121. package/dist/esm/resources/classes/rcm.js +6 -10
  122. package/dist/esm/resources/classes/rcm.js.map +1 -1
  123. package/dist/esm/resources/classes/role.js +8 -12
  124. package/dist/esm/resources/classes/role.js.map +1 -1
  125. package/dist/esm/resources/classes/secret.js +7 -11
  126. package/dist/esm/resources/classes/secret.js.map +1 -1
  127. package/dist/esm/resources/classes/telemed.js +5 -9
  128. package/dist/esm/resources/classes/telemed.js.map +1 -1
  129. package/dist/esm/resources/classes/transactionalSMS.js +4 -8
  130. package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
  131. package/dist/esm/resources/classes/user.js +10 -14
  132. package/dist/esm/resources/classes/user.js.map +1 -1
  133. package/dist/esm/resources/classes/version.js +4 -8
  134. package/dist/esm/resources/classes/version.js.map +1 -1
  135. package/dist/esm/resources/classes/z3-ext.js +47 -56
  136. package/dist/esm/resources/classes/z3-ext.js.map +1 -1
  137. package/dist/esm/resources/classes/z3.js +26 -30
  138. package/dist/esm/resources/classes/z3.js.map +1 -1
  139. package/dist/esm/resources/classes/zambda-ext.js +6 -11
  140. package/dist/esm/resources/classes/zambda-ext.js.map +1 -1
  141. package/dist/esm/resources/classes/zambda.js +12 -16
  142. package/dist/esm/resources/classes/zambda.js.map +1 -1
  143. package/dist/esm/resources/classes/zambdaLogStream.js +6 -10
  144. package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
  145. package/dist/esm/resources/types/ErxGetConfigurationResponse.d.ts +9 -0
  146. package/dist/esm/resources/types/ZambdaCreateParams.d.ts +12 -0
  147. package/dist/esm/resources/types/ZambdaFunction.d.ts +8 -0
  148. package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +8 -0
  149. package/dist/esm/resources/types/fhir.d.ts +12 -12
  150. package/dist/esm/resources/types/index.d.ts +1 -0
  151. package/package.json +4 -3
  152. package/rollup.config-cjs.mjs +97 -18
  153. package/src/resources/classes/erx.ts +7 -0
  154. package/src/resources/classes/fhir-ext.ts +6 -6
  155. package/src/resources/types/ErxGetConfigurationResponse.ts +11 -0
  156. package/src/resources/types/ZambdaCreateParams.ts +12 -0
  157. package/src/resources/types/ZambdaFunction.ts +8 -0
  158. package/src/resources/types/ZambdaUpdateParams.ts +8 -0
  159. package/src/resources/types/fhir.ts +12 -12
  160. package/src/resources/types/index.ts +1 -0
  161. package/dist/esm/node_modules/tslib/tslib.es6.js +0 -40
  162. package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -0,0 +1,81 @@
1
+ 'use strict';
2
+
3
+ var client = require('../../client/client.cjs');
4
+
5
+ // AUTOGENERATED -- DO NOT EDIT
6
+ class M2m extends client.SDKResource {
7
+ constructor(config) {
8
+ super(config);
9
+ }
10
+ #baseUrlThunk() {
11
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
+ }
13
+ /**
14
+ * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_m2m-v2-list) instead.
15
+ *
16
+ * 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).
17
+ *
18
+ * Access Policy Action: `App:ListAllM2MClients`
19
+ * Access Policy Resource: `IAM:M2MClient`
20
+ */
21
+ list(request) {
22
+ return this.request('/m2m', 'get', this.#baseUrlThunk.bind(this))(request);
23
+ }
24
+ /**
25
+ * 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).
26
+ *
27
+ * Access Policy Action: `App:CreateM2MClient`
28
+ * Access Policy Resource: `IAM:M2MClient`
29
+ */
30
+ create(params, request) {
31
+ return this.request('/m2m', 'post', this.#baseUrlThunk.bind(this))(params, request);
32
+ }
33
+ /**
34
+ * 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).
35
+ *
36
+ * Access Policy Action: `App:GetM2MClient`
37
+ * Access Policy Resource: `IAM:M2MClient`
38
+ */
39
+ get(params, request) {
40
+ return this.request('/m2m/{id}', 'get', this.#baseUrlThunk.bind(this))(params, request);
41
+ }
42
+ /**
43
+ * 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).
44
+ *
45
+ * Access Policy Action: `App:UpdateM2MClient`
46
+ * Access Policy Resource: `IAM:M2MClient`
47
+ */
48
+ update(params, request) {
49
+ return this.request('/m2m/{id}', 'patch', this.#baseUrlThunk.bind(this))(params, request);
50
+ }
51
+ /**
52
+ * 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).
53
+ *
54
+ * Access Policy Action: `App:DeleteM2MClient`
55
+ * Access Policy Resource: `IAM:M2MClient`
56
+ */
57
+ delete(params, request) {
58
+ return this.request('/m2m/{id}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
59
+ }
60
+ /**
61
+ * 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).
62
+ *
63
+ * Access Policy Action: `App:RotateM2MClientSecret`
64
+ * Access Policy Resource: `IAM:M2MClient`
65
+ */
66
+ rotateSecret(params, request) {
67
+ return this.request('/m2m/{id}/rotate-secret', 'post', this.#baseUrlThunk.bind(this))(params, request);
68
+ }
69
+ /**
70
+ * 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).
71
+ *
72
+ * Access Policy Action: `App:ListAllM2MClients`
73
+ * Access Policy Resource: `IAM:M2MClient`
74
+ */
75
+ listV2(params, request) {
76
+ return this.request('/m2m/v2/list', 'get', this.#baseUrlThunk.bind(this))(params, request);
77
+ }
78
+ }
79
+
80
+ exports.M2m = M2m;
81
+ //# sourceMappingURL=m2m.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"m2m.cjs","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/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(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/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 | OystehrClientRequest, request?: OystehrClientRequest): Promise<M2mListV2Response> {\n return this.request('/m2m/v2/list', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["SDKResource"],"mappings":";;;;AAAA;AAoBM,MAAO,GAAI,SAAQA,kBAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;;;;;;AAOG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC5F;AACF;;;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var client = require('../../client/client.cjs');
4
+
5
+ // AUTOGENERATED -- DO NOT EDIT
6
+ class Messaging extends client.SDKResource {
7
+ constructor(config) {
8
+ super(config);
9
+ }
10
+ #baseUrlThunk() {
11
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
+ }
13
+ /**
14
+ * Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.
15
+ */
16
+ getMessagingConfig(request) {
17
+ return this.request('/messaging/config', 'get', this.#baseUrlThunk.bind(this))(request);
18
+ }
19
+ }
20
+
21
+ exports.Messaging = Messaging;
22
+ //# sourceMappingURL=messaging.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messaging.cjs","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":["SDKResource"],"mappings":";;;;AAAA;AAMM,MAAO,SAAU,SAAQA,kBAAW,CAAA;AACxC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;AAEG;AACH,IAAA,kBAAkB,CAAC,OAA8B,EAAA;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KACzF;AACF;;;;"}
@@ -0,0 +1,88 @@
1
+ 'use strict';
2
+
3
+ var client = require('../../client/client.cjs');
4
+
5
+ // AUTOGENERATED -- DO NOT EDIT
6
+ class PaymentMethod extends client.SDKResource {
7
+ constructor(config) {
8
+ super(config);
9
+ }
10
+ #baseUrlThunk() {
11
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
+ }
13
+ /**
14
+ * Enter a new credit card or other payment method for the user.
15
+ *
16
+ * Access Policy Requirements:
17
+ * Action: `Payment:Setup`
18
+ * Access Policy Resource: `Payment:PaymentMethod`
19
+ * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
20
+ * Access Policy Resource: `FHIR:Coverage:*`
21
+ * Action: `FHIR:Read,FHIR:Create,FHIR:Update`
22
+ * Access Policy Resource: `FHIR:Account:*`
23
+ *
24
+ * Also need to be able to read the patients' details. For example:
25
+ * Action: `FHIR:Read`
26
+ * Access Policy Resource: `FHIR:Patient`
27
+ */
28
+ setUp(params, request) {
29
+ return this.request('/payment/payment-method/setup', 'post', this.#baseUrlThunk.bind(this))(params, request);
30
+ }
31
+ /**
32
+ * Set a specified payment method for the user as default.
33
+ *
34
+ * Access Policy Requirements:
35
+ * Action: `Payment:SetDefault`
36
+ * Access Policy Resource: `Payment:PaymentMethod`
37
+ * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
38
+ * Access Policy Resource: `FHIR:Coverage:*`
39
+ * Action: `FHIR:Read,FHIR:Create,FHIR:Update`
40
+ * Access Policy Resource: `FHIR:Account:*`
41
+ *
42
+ * Also need to be able to read the patients' details. For example:
43
+ * Action: `FHIR:Read`
44
+ * Access Policy Resource: `FHIR:Patient`
45
+ */
46
+ setDefault(params, request) {
47
+ return this.request('/payment/payment-method/set-default', 'post', this.#baseUrlThunk.bind(this))(params, request);
48
+ }
49
+ /**
50
+ * Delete a specified payment method for the beneficiary.
51
+ *
52
+ * Access Policy Requirements:
53
+ * Action: `Payment:Delete`
54
+ * Access Policy Resource: `Payment:PaymentMethod`
55
+ * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
56
+ * Access Policy Resource: `FHIR:Coverage:*`
57
+ * Action: `FHIR:Read,FHIR:Create,FHIR:Update`
58
+ * Access Policy Resource: `FHIR:Account:*`
59
+ *
60
+ * Also need to be able to read the patients' details. For example:
61
+ * Action: `FHIR:Read`
62
+ * Access Policy Resource: `FHIR:Patient`
63
+ */
64
+ delete(params, request) {
65
+ return this.request('/payment/payment-method', 'delete', this.#baseUrlThunk.bind(this))(params, request);
66
+ }
67
+ /**
68
+ * List all payment methods for the patient.
69
+ *
70
+ * Access Policy Requirements:
71
+ * Action: `Payment:Setup`
72
+ * Access Policy Resource: `Payment:PaymentMethod`
73
+ * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
74
+ * Access Policy Resource: `FHIR:Coverage:*`
75
+ * Action: `FHIR:Read,FHIR:Create,FHIR:Update`
76
+ * Access Policy Resource: `FHIR:Account:*`
77
+ *
78
+ * Also need to be able to read the patients' details. For example:
79
+ * Action: `FHIR:Read`
80
+ * Access Policy Resource: `FHIR:Patient`
81
+ */
82
+ list(params, request) {
83
+ return this.request('/payment/payment-method/list', 'post', this.#baseUrlThunk.bind(this))(params, request);
84
+ }
85
+ }
86
+
87
+ exports.PaymentMethod = PaymentMethod;
88
+ //# sourceMappingURL=paymentMethod.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentMethod.cjs","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":["SDKResource"],"mappings":";;;;AAAA;AAcM,MAAO,aAAc,SAAQA,kBAAW,CAAA;AAC5C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,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,aAAa,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,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC7G;AACF;;;;"}
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var client = require('../../client/client.cjs');
4
+
5
+ // AUTOGENERATED -- DO NOT EDIT
6
+ class Project extends client.SDKResource {
7
+ constructor(config) {
8
+ super(config);
9
+ }
10
+ #baseUrlThunk() {
11
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
+ }
13
+ /**
14
+ * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/#x-oystehr-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 .
15
+ *
16
+ * Access Policy Action: `Project:GetProjectInfo`
17
+ * Access Policy Resource: `Project:Settings`
18
+ */
19
+ get(request) {
20
+ return this.request('/project', 'get', this.#baseUrlThunk.bind(this))(request);
21
+ }
22
+ /**
23
+ * 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 .
24
+ *
25
+ * Access Policy Action: `Project:UpdateProjectInfo`
26
+ * Access Policy Resource: `Project:Settings`
27
+ */
28
+ update(params, request) {
29
+ return this.request('/project', 'patch', this.#baseUrlThunk.bind(this))(params, request);
30
+ }
31
+ }
32
+
33
+ exports.Project = Project;
34
+ //# sourceMappingURL=project.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.cjs","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-oystehr-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/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(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/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(\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":["SDKResource"],"mappings":";;;;AAAA;AAMM,MAAO,OAAQ,SAAQA,kBAAW,CAAA;AACtC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;;;;AAKG;AACH,IAAA,GAAG,CAAC,OAA8B,EAAA;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1F;AACF;;;;"}
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ var client = require('../../client/client.cjs');
4
+
5
+ // AUTOGENERATED -- DO NOT EDIT
6
+ class Rcm extends client.SDKResource {
7
+ constructor(config) {
8
+ super(config);
9
+ }
10
+ #baseUrlThunk() {
11
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
+ }
13
+ /**
14
+ * Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).
15
+ *
16
+ * Access Policy Action: `RCM:CheckInsuranceEligibility`
17
+ * Access Policy Resource: `RCM:InsuranceEligibility`
18
+ *
19
+ * Access Policy Action: `FHIR:Create`
20
+ * Access Policy Resource: `FHIR:CoverageEligibilityResponse`
21
+ */
22
+ eligibilityCheck(params, request) {
23
+ return this.request('/rcm/eligibility-check', 'post', this.#baseUrlThunk.bind(this))(params, request);
24
+ }
25
+ /**
26
+ * Check [Validate Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
27
+ *
28
+ * Access Policy Action: `RCM:ValidateProfessionalClaim`
29
+ * Access Policy Resource: `RCM:Claim`
30
+ *
31
+ * Access Policy Action: `FHIR:Create`
32
+ * Access Policy Resource: `FHIR:AuditEvent`
33
+ */
34
+ validateProfessionalClaim(params, request) {
35
+ return this.request('/rcm/professional-claim/validate', 'post', this.#baseUrlThunk.bind(this))(params, request);
36
+ }
37
+ /**
38
+ * Check [Submit Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
39
+ *
40
+ * Access Policy Action: `RCM:SubmitProfessionalClaim`
41
+ * Access Policy Resource: `RCM:Claim`
42
+ *
43
+ * Access Policy Action: `FHIR:Create`
44
+ * Access Policy Resource: `FHIR:AuditEvent`
45
+ *
46
+ * Access Policy Actions: `FHIR:Create, FHIR:Update`
47
+ * Access Policy Resource: `FHIR:Claim`
48
+ */
49
+ submitProfessionalClaim(params, request) {
50
+ return this.request('/rcm/professional-claim/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);
51
+ }
52
+ }
53
+
54
+ exports.Rcm = Rcm;
55
+ //# sourceMappingURL=rcm.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rcm.cjs","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":["SDKResource"],"mappings":";;;;AAAA;AAcM,MAAO,GAAI,SAAQA,kBAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;;;;;;;AAQG;IACH,gBAAgB,CACd,MAAiC,EACjC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,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,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/G;AACF;;;;"}
@@ -0,0 +1,62 @@
1
+ 'use strict';
2
+
3
+ var client = require('../../client/client.cjs');
4
+
5
+ // AUTOGENERATED -- DO NOT EDIT
6
+ class Role extends client.SDKResource {
7
+ constructor(config) {
8
+ super(config);
9
+ }
10
+ #baseUrlThunk() {
11
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
+ }
13
+ /**
14
+ * 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/).
15
+ *
16
+ * Access Policy Action: `IAM:ListAllRoles`
17
+ * Access Policy Resource: `IAM:Role`
18
+ */
19
+ list(request) {
20
+ return this.request('/iam/role', 'get', this.#baseUrlThunk.bind(this))(request);
21
+ }
22
+ /**
23
+ * 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/).
24
+ *
25
+ * Access Policy Action: `IAM:CreateRole`
26
+ * Access Policy Resource: `IAM:Role`
27
+ */
28
+ create(params, request) {
29
+ return this.request('/iam/role', 'post', this.#baseUrlThunk.bind(this))(params, request);
30
+ }
31
+ /**
32
+ * 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/).
33
+ *
34
+ * Access Policy Action: `IAM:GetRole`
35
+ * Access Policy Resource: `IAM:Role`
36
+ */
37
+ get(params, request) {
38
+ return this.request('/iam/role/{roleId}', 'get', this.#baseUrlThunk.bind(this))(params, request);
39
+ }
40
+ /**
41
+ * 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/).
42
+ *
43
+ * Access Policy Action: `IAM:UpdateRole`
44
+ * Access Policy Resource: `IAM:Role`
45
+ */
46
+ update(params, request) {
47
+ return this.request('/iam/role/{roleId}', 'patch', this.#baseUrlThunk.bind(this))(params, request);
48
+ }
49
+ /**
50
+ * 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/).
51
+ *
52
+ * Access Policy Action: `IAM:DeleteRole`
53
+ * Access Policy Resource: `IAM:Role`
54
+ * Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project
55
+ */
56
+ delete(params, request) {
57
+ return this.request('/iam/role/{roleId}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
58
+ }
59
+ }
60
+
61
+ exports.Role = Role;
62
+ //# sourceMappingURL=role.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.cjs","sources":["../../../../src/resources/classes/role.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n RoleCreateParams,\n RoleCreateResponse,\n RoleDeleteParams,\n RoleGetParams,\n RoleGetResponse,\n RoleListResponse,\n RoleUpdateParams,\n RoleUpdateResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Role 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 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/).\n *\n * Access Policy Action: `IAM:ListAllRoles`\n * Access Policy Resource: `IAM:Role`\n */\n list(request?: OystehrClientRequest): Promise<RoleListResponse> {\n return this.request('/iam/role', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:CreateRole`\n * Access Policy Resource: `IAM:Role`\n */\n create(params: RoleCreateParams, request?: OystehrClientRequest): Promise<RoleCreateResponse> {\n return this.request('/iam/role', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:GetRole`\n * Access Policy Resource: `IAM:Role`\n */\n get(params: RoleGetParams, request?: OystehrClientRequest): Promise<RoleGetResponse> {\n return this.request('/iam/role/{roleId}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:UpdateRole`\n * Access Policy Resource: `IAM:Role`\n */\n update(params: RoleUpdateParams, request?: OystehrClientRequest): Promise<RoleUpdateResponse> {\n return this.request('/iam/role/{roleId}', 'patch', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:DeleteRole`\n * Access Policy Resource: `IAM:Role`\n * Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project\n */\n delete(params: RoleDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/iam/role/{roleId}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["SDKResource"],"mappings":";;;;AAAA;AAgBM,MAAO,IAAK,SAAQA,kBAAW,CAAA;AACnC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;;;;AAKG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KACjF;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1F;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAqB,EAAE,OAA8B,EAAA;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClG;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpG;AACD;;;;;;AAMG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrG;AACF;;;;"}
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ var client = require('../../client/client.cjs');
4
+
5
+ // AUTOGENERATED -- DO NOT EDIT
6
+ class Secret extends client.SDKResource {
7
+ constructor(config) {
8
+ super(config);
9
+ }
10
+ #baseUrlThunk() {
11
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
+ }
13
+ /**
14
+ * Get a list of all secrets in the Project.
15
+ *
16
+ * Access Policy Action: `Zambda:ListAllSecrets`
17
+ * Access Policy Resource: `Zambda:Secret`
18
+ */
19
+ list(request) {
20
+ return this.request('/secret', 'get', this.#baseUrlThunk.bind(this))(request);
21
+ }
22
+ /**
23
+ * Create a secret for a project. If the secret is already defined, update it.
24
+ *
25
+ * Access Policy Action: `Zambda:CreateSecret`
26
+ * Access Policy Resource: `Zambda:Secret`
27
+ */
28
+ set(params, request) {
29
+ return this.request('/secret', 'post', this.#baseUrlThunk.bind(this))(params, request);
30
+ }
31
+ /**
32
+ * Get the secret with the provided name.
33
+ *
34
+ * Access Policy Action: `Zambda:GetSecret`
35
+ * Access Policy Resource: `Zambda:Secret`
36
+ */
37
+ get(params, request) {
38
+ return this.request('/secret/{name}', 'get', this.#baseUrlThunk.bind(this))(params, request);
39
+ }
40
+ /**
41
+ * Delete the secret with the provided name.
42
+ *
43
+ * Access Policy Action: `Zambda:DeleteSecret`
44
+ * Access Policy Resource: `Zambda:Secret`
45
+ */
46
+ delete(params, request) {
47
+ return this.request('/secret/{name}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
48
+ }
49
+ }
50
+
51
+ exports.Secret = Secret;
52
+ //# sourceMappingURL=secret.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret.cjs","sources":["../../../../src/resources/classes/secret.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n SecretDeleteParams,\n SecretGetParams,\n SecretGetResponse,\n SecretListResponse,\n SecretSetParams,\n SecretSetResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Secret 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 a list of all secrets in the Project.\n *\n * Access Policy Action: `Zambda:ListAllSecrets`\n * Access Policy Resource: `Zambda:Secret`\n */\n list(request?: OystehrClientRequest): Promise<SecretListResponse> {\n return this.request('/secret', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Create a secret for a project. If the secret is already defined, update it.\n *\n * Access Policy Action: `Zambda:CreateSecret`\n * Access Policy Resource: `Zambda:Secret`\n */\n set(params: SecretSetParams, request?: OystehrClientRequest): Promise<SecretSetResponse> {\n return this.request('/secret', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get the secret with the provided name.\n *\n * Access Policy Action: `Zambda:GetSecret`\n * Access Policy Resource: `Zambda:Secret`\n */\n get(params: SecretGetParams, request?: OystehrClientRequest): Promise<SecretGetResponse> {\n return this.request('/secret/{name}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Delete the secret with the provided name.\n *\n * Access Policy Action: `Zambda:DeleteSecret`\n * Access Policy Resource: `Zambda:Secret`\n */\n delete(params: SecretDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/secret/{name}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["SDKResource"],"mappings":";;;;AAAA;AAcM,MAAO,MAAO,SAAQA,kBAAW,CAAA;AACrC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;;;;AAKG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAC/E;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAuB,EAAE,OAA8B,EAAA;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxF;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAuB,EAAE,OAA8B,EAAA;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9F;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA8B,EAAA;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACjG;AACF;;;;"}
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ var client = require('../../client/client.cjs');
4
+
5
+ // AUTOGENERATED -- DO NOT EDIT
6
+ class Telemed extends client.SDKResource {
7
+ constructor(config) {
8
+ super(config);
9
+ }
10
+ #baseUrlThunk() {
11
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
+ }
13
+ /**
14
+ * Create a [telemedicine video meeting](https://docs.oystehr.com/oystehr/services/telemed/).
15
+ *
16
+ * Access Policy Requirements:
17
+ * Action: `Telemed:CreateMeeting`
18
+ * Access Policy Resource: `Telemed:Meeting`
19
+ * Action: `FHIR:Create`
20
+ * Access Policy Resource: `FHIR:Encounter`
21
+ * Action: `FHIR:Update`
22
+ * Access Policy Resource: `FHIR:Encounter`
23
+ */
24
+ createMeeting(params, request) {
25
+ return this.request('/telemed/v2/meeting', 'post', this.#baseUrlThunk.bind(this))(params, request);
26
+ }
27
+ /**
28
+ * Get Meeting and Attendee objects necessary to join a telemedicine video meeting.
29
+ *
30
+ * Access Policy Requirements:
31
+ * Action: `Telemed:JoinMeeting`
32
+ * Access Policy Resource: `Telemed:Meeting`
33
+ * To use M2M token to join as anonymous user:
34
+ * Action: `Telemed:AddAnonymousToMeeting`
35
+ * Access Policy Resource: `Telemed:Meeting`
36
+ */
37
+ joinMeeting(params, request) {
38
+ return this.request('/telemed/v2/meeting/{encounterId}/join', 'get', this.#baseUrlThunk.bind(this))(params, request);
39
+ }
40
+ }
41
+
42
+ exports.Telemed = Telemed;
43
+ //# sourceMappingURL=telemed.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telemed.cjs","sources":["../../../../src/resources/classes/telemed.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n TelemedCreateMeetingParams,\n TelemedCreateMeetingResponse,\n TelemedJoinMeetingParams,\n TelemedJoinMeetingResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Telemed 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 * Create a [telemedicine video meeting](https://docs.oystehr.com/oystehr/services/telemed/).\n *\n * Access Policy Requirements:\n * Action: `Telemed:CreateMeeting`\n * Access Policy Resource: `Telemed:Meeting`\n * Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:Encounter`\n * Action: `FHIR:Update`\n * Access Policy Resource: `FHIR:Encounter`\n */\n createMeeting(\n params: TelemedCreateMeetingParams,\n request?: OystehrClientRequest\n ): Promise<TelemedCreateMeetingResponse> {\n return this.request('/telemed/v2/meeting', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get Meeting and Attendee objects necessary to join a telemedicine video meeting.\n *\n * Access Policy Requirements:\n * Action: `Telemed:JoinMeeting`\n * Access Policy Resource: `Telemed:Meeting`\n * To use M2M token to join as anonymous user:\n * Action: `Telemed:AddAnonymousToMeeting`\n * Access Policy Resource: `Telemed:Meeting`\n */\n joinMeeting(params: TelemedJoinMeetingParams, request?: OystehrClientRequest): Promise<TelemedJoinMeetingResponse> {\n return this.request(\n '/telemed/v2/meeting/{encounterId}/join',\n 'get',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n}\n"],"names":["SDKResource"],"mappings":";;;;AAAA;AAYM,MAAO,OAAQ,SAAQA,kBAAW,CAAA;AACtC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;;;;;;;;;AAUG;IACH,aAAa,CACX,MAAkC,EAClC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpG;AACD;;;;;;;;;AASG;IACH,WAAW,CAAC,MAAgC,EAAE,OAA8B,EAAA;QAC1E,OAAO,IAAI,CAAC,OAAO,CACjB,wCAAwC,EACxC,KAAK,EACL,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpB;AACF;;;;"}
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var client = require('../../client/client.cjs');
4
+
5
+ // AUTOGENERATED -- DO NOT EDIT
6
+ class TransactionalSMS extends client.SDKResource {
7
+ constructor(config) {
8
+ super(config);
9
+ }
10
+ #baseUrlThunk() {
11
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
+ }
13
+ /**
14
+ * Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/oystehr/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/oystehr/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
15
+ *
16
+ * Access Policy Requirements:
17
+ * Action: `Messaging:SendTransactionalSMS`
18
+ * Access Policy Resource: `Messaging:TransactionalSMS`
19
+ * Action: `FHIR:Create`
20
+ * Access Policy Resource: `FHIR:Communication`
21
+ * Action: `FHIR:Update`
22
+ * Access Policy Resource: `FHIR:Communication`
23
+ *
24
+ * You also need Read access for the resource to which you are sending a message. For example:
25
+ * Action: `FHIR:Read`
26
+ * Access Policy Resource: `FHIR:Patient`
27
+ */
28
+ send(params, request) {
29
+ return this.request('/messaging/transactional-sms/send', 'post', this.#baseUrlThunk.bind(this))(params, request);
30
+ }
31
+ }
32
+
33
+ exports.TransactionalSMS = TransactionalSMS;
34
+ //# sourceMappingURL=transactionalSMS.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionalSMS.cjs","sources":["../../../../src/resources/classes/transactionalSMS.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrClientRequest, TransactionalSMSSendParams, TransactionalSMSSendResponse } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class TransactionalSMS 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 * Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/oystehr/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/oystehr/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.\n *\n * Access Policy Requirements:\n * Action: `Messaging:SendTransactionalSMS`\n * Access Policy Resource: `Messaging:TransactionalSMS`\n * Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:Communication`\n * Action: `FHIR:Update`\n * Access Policy Resource: `FHIR:Communication`\n *\n * You also need Read access for the resource to which you are sending a message. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n send(params: TransactionalSMSSendParams, request?: OystehrClientRequest): Promise<TransactionalSMSSendResponse> {\n return this.request('/messaging/transactional-sms/send', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["SDKResource"],"mappings":";;;;AAAA;AAMM,MAAO,gBAAiB,SAAQA,kBAAW,CAAA;AAC/C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;;;;;;;;;;;;;AAcG;IACH,IAAI,CAAC,MAAkC,EAAE,OAA8B,EAAA;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,mCAAmC,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClH;AACF;;;;"}