@oystehr/sdk 3.0.4 → 3.0.5

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 (129) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/config.d.ts +8 -0
  3. package/dist/cjs/index.cjs +806 -642
  4. package/dist/cjs/index.cjs.map +1 -1
  5. package/dist/cjs/index.min.cjs +1 -1
  6. package/dist/cjs/index.min.cjs.map +1 -1
  7. package/dist/cjs/resources/classes/application.d.ts +8 -8
  8. package/dist/cjs/resources/classes/charge.d.ts +2 -2
  9. package/dist/cjs/resources/classes/conversation.d.ts +5 -5
  10. package/dist/cjs/resources/classes/developer.d.ts +6 -6
  11. package/dist/cjs/resources/classes/erx.d.ts +4 -4
  12. package/dist/cjs/resources/classes/m2m.d.ts +7 -7
  13. package/dist/cjs/resources/classes/messaging.d.ts +1 -1
  14. package/dist/cjs/resources/classes/paymentMethod.d.ts +4 -4
  15. package/dist/cjs/resources/classes/project.d.ts +2 -2
  16. package/dist/cjs/resources/classes/rcm.d.ts +3 -3
  17. package/dist/cjs/resources/classes/role.d.ts +5 -5
  18. package/dist/cjs/resources/classes/secret.d.ts +4 -4
  19. package/dist/cjs/resources/classes/telemed.d.ts +2 -2
  20. package/dist/cjs/resources/classes/transactionalSMS.d.ts +1 -1
  21. package/dist/cjs/resources/classes/user.d.ts +7 -7
  22. package/dist/cjs/resources/classes/version.d.ts +1 -1
  23. package/dist/cjs/resources/classes/z3.d.ts +7 -7
  24. package/dist/cjs/resources/classes/zambda.d.ts +8 -8
  25. package/dist/cjs/resources/classes/zambdaLogStream.d.ts +3 -3
  26. package/dist/cjs/resources/types/ConversationAddParticipantParams.d.ts +1 -1
  27. package/dist/cjs/resources/types/ConversationCreateResponse.d.ts +1 -1
  28. package/dist/cjs/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
  29. package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  30. package/dist/cjs/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
  31. package/dist/cjs/tests/setup/constants.d.ts +1 -1
  32. package/dist/esm/client/client.js +14 -11
  33. package/dist/esm/client/client.js.map +1 -1
  34. package/dist/esm/config.d.ts +8 -0
  35. package/dist/esm/index.min.js +1 -1
  36. package/dist/esm/index.min.js.map +1 -1
  37. package/dist/esm/resources/classes/application.d.ts +8 -8
  38. package/dist/esm/resources/classes/application.js +72 -56
  39. package/dist/esm/resources/classes/application.js.map +1 -1
  40. package/dist/esm/resources/classes/charge.d.ts +2 -2
  41. package/dist/esm/resources/classes/charge.js +28 -24
  42. package/dist/esm/resources/classes/charge.js.map +1 -1
  43. package/dist/esm/resources/classes/conversation.d.ts +5 -5
  44. package/dist/esm/resources/classes/conversation.js +59 -49
  45. package/dist/esm/resources/classes/conversation.js.map +1 -1
  46. package/dist/esm/resources/classes/developer.d.ts +6 -6
  47. package/dist/esm/resources/classes/developer.js +56 -44
  48. package/dist/esm/resources/classes/developer.js.map +1 -1
  49. package/dist/esm/resources/classes/erx.d.ts +4 -4
  50. package/dist/esm/resources/classes/erx.js +24 -16
  51. package/dist/esm/resources/classes/erx.js.map +1 -1
  52. package/dist/esm/resources/classes/fhir-ext.js +3 -0
  53. package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
  54. package/dist/esm/resources/classes/m2m.d.ts +7 -7
  55. package/dist/esm/resources/classes/m2m.js +65 -51
  56. package/dist/esm/resources/classes/m2m.js.map +1 -1
  57. package/dist/esm/resources/classes/messaging.d.ts +1 -1
  58. package/dist/esm/resources/classes/messaging.js +6 -4
  59. package/dist/esm/resources/classes/messaging.js.map +1 -1
  60. package/dist/esm/resources/classes/paymentMethod.d.ts +4 -4
  61. package/dist/esm/resources/classes/paymentMethod.js +72 -64
  62. package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
  63. package/dist/esm/resources/classes/project.d.ts +2 -2
  64. package/dist/esm/resources/classes/project.js +18 -14
  65. package/dist/esm/resources/classes/project.js.map +1 -1
  66. package/dist/esm/resources/classes/rcm.d.ts +3 -3
  67. package/dist/esm/resources/classes/rcm.js +39 -33
  68. package/dist/esm/resources/classes/rcm.js.map +1 -1
  69. package/dist/esm/resources/classes/role.d.ts +5 -5
  70. package/dist/esm/resources/classes/role.js +46 -36
  71. package/dist/esm/resources/classes/role.js.map +1 -1
  72. package/dist/esm/resources/classes/secret.d.ts +4 -4
  73. package/dist/esm/resources/classes/secret.js +36 -28
  74. package/dist/esm/resources/classes/secret.js.map +1 -1
  75. package/dist/esm/resources/classes/telemed.d.ts +2 -2
  76. package/dist/esm/resources/classes/telemed.js +27 -23
  77. package/dist/esm/resources/classes/telemed.js.map +1 -1
  78. package/dist/esm/resources/classes/transactionalSMS.d.ts +1 -1
  79. package/dist/esm/resources/classes/transactionalSMS.js +18 -16
  80. package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
  81. package/dist/esm/resources/classes/user.d.ts +7 -7
  82. package/dist/esm/resources/classes/user.js +64 -50
  83. package/dist/esm/resources/classes/user.js.map +1 -1
  84. package/dist/esm/resources/classes/version.d.ts +1 -1
  85. package/dist/esm/resources/classes/version.js +6 -4
  86. package/dist/esm/resources/classes/version.js.map +1 -1
  87. package/dist/esm/resources/classes/z3.d.ts +7 -7
  88. package/dist/esm/resources/classes/z3.js +55 -43
  89. package/dist/esm/resources/classes/z3.js.map +1 -1
  90. package/dist/esm/resources/classes/zambda.d.ts +8 -8
  91. package/dist/esm/resources/classes/zambda.js +71 -55
  92. package/dist/esm/resources/classes/zambda.js.map +1 -1
  93. package/dist/esm/resources/classes/zambdaLogStream.d.ts +3 -3
  94. package/dist/esm/resources/classes/zambdaLogStream.js +27 -21
  95. package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
  96. package/dist/esm/resources/types/ConversationAddParticipantParams.d.ts +1 -1
  97. package/dist/esm/resources/types/ConversationCreateResponse.d.ts +1 -1
  98. package/dist/esm/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
  99. package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  100. package/dist/esm/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
  101. package/dist/esm/tests/setup/constants.d.ts +1 -1
  102. package/package.json +3 -3
  103. package/src/client/client.ts +8 -3
  104. package/src/config.ts +8 -0
  105. package/src/resources/classes/application.ts +27 -19
  106. package/src/resources/classes/charge.ts +6 -4
  107. package/src/resources/classes/conversation.ts +15 -10
  108. package/src/resources/classes/developer.ts +18 -11
  109. package/src/resources/classes/erx.ts +14 -8
  110. package/src/resources/classes/fhir-ext.ts +3 -0
  111. package/src/resources/classes/m2m.ts +21 -13
  112. package/src/resources/classes/messaging.ts +3 -2
  113. package/src/resources/classes/paymentMethod.ts +12 -8
  114. package/src/resources/classes/project.ts +6 -3
  115. package/src/resources/classes/rcm.ts +12 -8
  116. package/src/resources/classes/role.ts +15 -9
  117. package/src/resources/classes/secret.ts +12 -7
  118. package/src/resources/classes/telemed.ts +7 -7
  119. package/src/resources/classes/transactionalSMS.ts +3 -2
  120. package/src/resources/classes/user.ts +21 -12
  121. package/src/resources/classes/version.ts +3 -1
  122. package/src/resources/classes/z3.ts +19 -14
  123. package/src/resources/classes/zambda.ts +25 -15
  124. package/src/resources/classes/zambdaLogStream.ts +9 -8
  125. package/src/resources/types/ConversationAddParticipantParams.ts +1 -1
  126. package/src/resources/types/ConversationCreateResponse.ts +1 -1
  127. package/src/resources/types/ConversationRemoveParticipantParams.ts +1 -1
  128. package/src/resources/types/TelemedCreateMeetingParams.ts +1 -1
  129. package/src/resources/types/TelemedCreateMeetingResponse.ts +1 -1
@@ -4,34 +4,42 @@ import { SDKResource } from '../../client/client.js';
4
4
  class Secret extends SDKResource {
5
5
  constructor(config) {
6
6
  super(config);
7
- /**
8
- * Get a list of all secrets in the Project.
9
- *
10
- * Access Policy Action: `Zambda:ListAllSecrets`
11
- * Access Policy Resource: `Zambda:Secret`
12
- */
13
- this.list = (request) => this.request('/secret', 'get')(request);
14
- /**
15
- * Create a secret for a project. If the secret is already defined, update it.
16
- *
17
- * Access Policy Action: `Zambda:CreateSecret`
18
- * Access Policy Resource: `Zambda:Secret`
19
- */
20
- this.set = (params, request) => this.request('/secret', 'post')(params, request);
21
- /**
22
- * Get the secret with the provided name.
23
- *
24
- * Access Policy Action: `Zambda:GetSecret`
25
- * Access Policy Resource: `Zambda:Secret`
26
- */
27
- this.get = (params, request) => this.request('/secret/{name}', 'get')(params, request);
28
- /**
29
- * Delete the secret with the provided name.
30
- *
31
- * Access Policy Action: `Zambda:DeleteSecret`
32
- * Access Policy Resource: `Zambda:Secret`
33
- */
34
- this.delete = (params, request) => this.request('/secret/{name}', 'delete')(params, request);
7
+ }
8
+ /**
9
+ * Get a list of all secrets in the Project.
10
+ *
11
+ * Access Policy Action: `Zambda:ListAllSecrets`
12
+ * Access Policy Resource: `Zambda:Secret`
13
+ */
14
+ list(request) {
15
+ return this.request('/secret', 'get')(request);
16
+ }
17
+ /**
18
+ * Create a secret for a project. If the secret is already defined, update it.
19
+ *
20
+ * Access Policy Action: `Zambda:CreateSecret`
21
+ * Access Policy Resource: `Zambda:Secret`
22
+ */
23
+ set(params, request) {
24
+ return this.request('/secret', 'post')(params, request);
25
+ }
26
+ /**
27
+ * Get the secret with the provided name.
28
+ *
29
+ * Access Policy Action: `Zambda:GetSecret`
30
+ * Access Policy Resource: `Zambda:Secret`
31
+ */
32
+ get(params, request) {
33
+ return this.request('/secret/{name}', 'get')(params, request);
34
+ }
35
+ /**
36
+ * Delete the secret with the provided name.
37
+ *
38
+ * Access Policy Action: `Zambda:DeleteSecret`
39
+ * Access Policy Resource: `Zambda:Secret`
40
+ */
41
+ delete(params, request) {
42
+ return this.request('/secret/{name}', 'delete')(params, request);
35
43
  }
36
44
  }
37
45
 
@@ -1 +1 @@
1
- {"version":3,"file":"secret.js","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 /**\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> => this.request('/secret', 'get')(request);\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 this.request('/secret', 'post')(params, request);\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 this.request('/secret/{name}', 'get')(params, request);\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 this.request('/secret/{name}', 'delete')(params, request);\n}\n"],"names":[],"mappings":";;AAAA;AAcM,MAAO,MAAO,SAAQ,WAAW,CAAA;AACrC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhB;;;;;AAKG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,CAAC,OAA8B,KAAkC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;AAChH;;;;;AAKG;QACH,IAAG,CAAA,GAAA,GAAG,CAAC,MAAuB,EAAE,OAA8B,KAC5D,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACnD;;;;;AAKG;QACH,IAAG,CAAA,GAAA,GAAG,CAAC,MAAuB,EAAE,OAA8B,KAC5D,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACzD;;;;;AAKG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAA0B,EAAE,OAA8B,KAClE,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KA/B3D;AAgCF;;;;"}
1
+ {"version":3,"file":"secret.js","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 /**\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')(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')(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')(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')(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAcM,MAAO,MAAO,SAAQ,WAAW,CAAA;AACrC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;AACD;;;;;AAKG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;KAChD;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAuB,EAAE,OAA8B,EAAA;AACzD,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzD;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAuB,EAAE,OAA8B,EAAA;AACzD,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/D;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA8B,EAAA;AAC/D,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClE;AACF;;;;"}
@@ -14,7 +14,7 @@ export declare class Telemed extends SDKResource {
14
14
  * Action: `FHIR:Update`
15
15
  * Access Policy Resource: `FHIR:Encounter`
16
16
  */
17
- createMeeting: (params: TelemedCreateMeetingParams, request?: OystehrClientRequest) => Promise<TelemedCreateMeetingResponse>;
17
+ createMeeting(params: TelemedCreateMeetingParams, request?: OystehrClientRequest): Promise<TelemedCreateMeetingResponse>;
18
18
  /**
19
19
  * Get Meeting and Attendee objects necessary to join a telemedicine video meeting.
20
20
  *
@@ -25,5 +25,5 @@ export declare class Telemed extends SDKResource {
25
25
  * Action: `Telemed:AddAnonymousToMeeting`
26
26
  * Access Policy Resource: `Telemed:Meeting`
27
27
  */
28
- joinMeeting: (params: TelemedJoinMeetingParams, request?: OystehrClientRequest) => Promise<TelemedJoinMeetingResponse>;
28
+ joinMeeting(params: TelemedJoinMeetingParams, request?: OystehrClientRequest): Promise<TelemedJoinMeetingResponse>;
29
29
  }
@@ -4,29 +4,33 @@ import { SDKResource } from '../../client/client.js';
4
4
  class Telemed extends SDKResource {
5
5
  constructor(config) {
6
6
  super(config);
7
- /**
8
- * Create a [telemedicine video meeting](https://docs.oystehr.com/services/telemed/).
9
- *
10
- * Access Policy Requirements:
11
- * Action: `Telemed:CreateMeeting`
12
- * Access Policy Resource: `Telemed:Meeting`
13
- * Action: `FHIR:Create`
14
- * Access Policy Resource: `FHIR:Encounter`
15
- * Action: `FHIR:Update`
16
- * Access Policy Resource: `FHIR:Encounter`
17
- */
18
- this.createMeeting = (params, request) => this.request('/telemed/v2/meeting', 'post')(params, request);
19
- /**
20
- * Get Meeting and Attendee objects necessary to join a telemedicine video meeting.
21
- *
22
- * Access Policy Requirements:
23
- * Action: `Telemed:JoinMeeting`
24
- * Access Policy Resource: `Telemed:Meeting`
25
- * To use M2M token to join as anonymous user:
26
- * Action: `Telemed:AddAnonymousToMeeting`
27
- * Access Policy Resource: `Telemed:Meeting`
28
- */
29
- this.joinMeeting = (params, request) => this.request('/telemed/v2/meeting/{encounterId}/join', 'get')(params, request);
7
+ }
8
+ /**
9
+ * Create a [telemedicine video meeting](https://docs.oystehr.com/services/telemed/).
10
+ *
11
+ * Access Policy Requirements:
12
+ * Action: `Telemed:CreateMeeting`
13
+ * Access Policy Resource: `Telemed:Meeting`
14
+ * Action: `FHIR:Create`
15
+ * Access Policy Resource: `FHIR:Encounter`
16
+ * Action: `FHIR:Update`
17
+ * Access Policy Resource: `FHIR:Encounter`
18
+ */
19
+ createMeeting(params, request) {
20
+ return this.request('/telemed/v2/meeting', 'post')(params, request);
21
+ }
22
+ /**
23
+ * Get Meeting and Attendee objects necessary to join a telemedicine video meeting.
24
+ *
25
+ * Access Policy Requirements:
26
+ * Action: `Telemed:JoinMeeting`
27
+ * Access Policy Resource: `Telemed:Meeting`
28
+ * To use M2M token to join as anonymous user:
29
+ * Action: `Telemed:AddAnonymousToMeeting`
30
+ * Access Policy Resource: `Telemed:Meeting`
31
+ */
32
+ joinMeeting(params, request) {
33
+ return this.request('/telemed/v2/meeting/{encounterId}/join', 'get')(params, request);
30
34
  }
31
35
  }
32
36
 
@@ -1 +1 @@
1
- {"version":3,"file":"telemed.js","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 /**\n * Create a [telemedicine video meeting](https://docs.oystehr.com/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> => this.request('/telemed/v2/meeting', 'post')(params, request);\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 = (\n params: TelemedJoinMeetingParams,\n request?: OystehrClientRequest\n ): Promise<TelemedJoinMeetingResponse> =>\n this.request('/telemed/v2/meeting/{encounterId}/join', 'get')(params, request);\n}\n"],"names":[],"mappings":";;AAAA;AAYM,MAAO,OAAQ,SAAQ,WAAW,CAAA;AACtC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhB;;;;;;;;;;AAUG;QACH,IAAa,CAAA,aAAA,GAAG,CACd,MAAkC,EAClC,OAA8B,KACY,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACzG;;;;;;;;;AASG;QACH,IAAW,CAAA,WAAA,GAAG,CACZ,MAAgC,EAChC,OAA8B,KAE9B,IAAI,CAAC,OAAO,CAAC,wCAAwC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KA9BhF;AA+BF;;;;"}
1
+ {"version":3,"file":"telemed.js","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 /**\n * Create a [telemedicine video meeting](https://docs.oystehr.com/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')(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('/telemed/v2/meeting/{encounterId}/join', 'get')(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAYM,MAAO,OAAQ,SAAQ,WAAW,CAAA;AACtC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;AACD;;;;;;;;;;AAUG;IACH,aAAa,CACX,MAAkC,EAClC,OAA8B,EAAA;AAE9B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrE;AACD;;;;;;;;;AASG;IACH,WAAW,CAAC,MAAgC,EAAE,OAA8B,EAAA;AAC1E,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,wCAAwC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACvF;AACF;;;;"}
@@ -18,5 +18,5 @@ export declare class TransactionalSMS extends SDKResource {
18
18
  * Action: `FHIR:Read`
19
19
  * Access Policy Resource: `FHIR:Patient`
20
20
  */
21
- send: (params: TransactionalSMSSendParams, request?: OystehrClientRequest) => Promise<TransactionalSMSSendResponse>;
21
+ send(params: TransactionalSMSSendParams, request?: OystehrClientRequest): Promise<TransactionalSMSSendResponse>;
22
22
  }
@@ -4,22 +4,24 @@ import { SDKResource } from '../../client/client.js';
4
4
  class TransactionalSMS extends SDKResource {
5
5
  constructor(config) {
6
6
  super(config);
7
- /**
8
- * Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
9
- *
10
- * Access Policy Requirements:
11
- * Action: `Messaging:SendTransactionalSMS`
12
- * Access Policy Resource: `Messaging:TransactionalSMS`
13
- * Action: `FHIR:Create`
14
- * Access Policy Resource: `FHIR:Communication`
15
- * Action: `FHIR:Update`
16
- * Access Policy Resource: `FHIR:Communication`
17
- *
18
- * You also need Read access for the resource to which you are sending a message. For example:
19
- * Action: `FHIR:Read`
20
- * Access Policy Resource: `FHIR:Patient`
21
- */
22
- this.send = (params, request) => this.request('/messaging/transactional-sms/send', 'post')(params, request);
7
+ }
8
+ /**
9
+ * Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
10
+ *
11
+ * Access Policy Requirements:
12
+ * Action: `Messaging:SendTransactionalSMS`
13
+ * Access Policy Resource: `Messaging:TransactionalSMS`
14
+ * Action: `FHIR:Create`
15
+ * Access Policy Resource: `FHIR:Communication`
16
+ * Action: `FHIR:Update`
17
+ * Access Policy Resource: `FHIR:Communication`
18
+ *
19
+ * You also need Read access for the resource to which you are sending a message. For example:
20
+ * Action: `FHIR:Read`
21
+ * Access Policy Resource: `FHIR:Patient`
22
+ */
23
+ send(params, request) {
24
+ return this.request('/messaging/transactional-sms/send', 'post')(params, request);
23
25
  }
24
26
  }
25
27
 
@@ -1 +1 @@
1
- {"version":3,"file":"transactionalSMS.js","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 /**\n * Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/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 this.request('/messaging/transactional-sms/send', 'post')(params, request);\n}\n"],"names":[],"mappings":";;AAAA;AAMM,MAAO,gBAAiB,SAAQ,WAAW,CAAA;AAC/C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhB;;;;;;;;;;;;;;AAcG;QACH,IAAI,CAAA,IAAA,GAAG,CAAC,MAAkC,EAAE,OAA8B,KACxE,IAAI,CAAC,OAAO,CAAC,mCAAmC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAjB5E;AAkBF;;;;"}
1
+ {"version":3,"file":"transactionalSMS.js","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 /**\n * Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/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')(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAMM,MAAO,gBAAiB,SAAQ,WAAW,CAAA;AAC/C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;AACD;;;;;;;;;;;;;;AAcG;IACH,IAAI,CAAC,MAAkC,EAAE,OAA8B,EAAA;AACrE,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,mCAAmC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnF;AACF;;;;"}
@@ -8,35 +8,35 @@ export declare class User extends SDKResource {
8
8
  *
9
9
  * Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
10
10
  */
11
- me: (request?: OystehrClientRequest) => Promise<UserMeResponse>;
11
+ me(request?: OystehrClientRequest): Promise<UserMeResponse>;
12
12
  /**
13
13
  * Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
14
14
  *
15
15
  * Access Policy Action: `App:GetUser`
16
16
  * Access Policy Resource: `App:User`
17
17
  */
18
- get: (params: UserGetParams, request?: OystehrClientRequest) => Promise<UserGetResponse>;
18
+ get(params: UserGetParams, request?: OystehrClientRequest): Promise<UserGetResponse>;
19
19
  /**
20
20
  * Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
21
21
  *
22
22
  * Access Policy Action: `App:UpdateUser`
23
23
  * Access Policy Resource: `App:User`
24
24
  */
25
- update: (params: UserUpdateParams, request?: OystehrClientRequest) => Promise<UserUpdateResponse>;
25
+ update(params: UserUpdateParams, request?: OystehrClientRequest): Promise<UserUpdateResponse>;
26
26
  /**
27
27
  * Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
28
28
  *
29
29
  * Access Policy Action: `App:DeleteUser`
30
30
  * Access Policy Resource: `App:User`
31
31
  */
32
- delete: (params: UserDeleteParams, request?: OystehrClientRequest) => Promise<void>;
32
+ delete(params: UserDeleteParams, request?: OystehrClientRequest): Promise<void>;
33
33
  /**
34
34
  * Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
35
35
  *
36
36
  * Access Policy Action: `App:CreateUser`
37
37
  * Access Policy Resource: `App:User`
38
38
  */
39
- invite: (params: UserInviteParams, request?: OystehrClientRequest) => Promise<UserInviteResponse>;
39
+ invite(params: UserInviteParams, request?: OystehrClientRequest): Promise<UserInviteResponse>;
40
40
  /**
41
41
  * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.
42
42
  *
@@ -45,12 +45,12 @@ export declare class User extends SDKResource {
45
45
  * Access Policy Action: `App:ListAllUsers`
46
46
  * Access Policy Resource: `App:User`
47
47
  */
48
- list: (request?: OystehrClientRequest) => Promise<UserListResponse>;
48
+ list(request?: OystehrClientRequest): Promise<UserListResponse>;
49
49
  /**
50
50
  * Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
51
51
  *
52
52
  * Access Policy Action: `Project:ListAllUsers`
53
53
  * Access Policy Resource: `Project:Settings`
54
54
  */
55
- listV2: (params: UserListV2Params, request?: OystehrClientRequest) => Promise<UserListV2Response>;
55
+ listV2(params: UserListV2Params, request?: OystehrClientRequest): Promise<UserListV2Response>;
56
56
  }
@@ -4,56 +4,70 @@ import { SDKResource } from '../../client/client.js';
4
4
  class User extends SDKResource {
5
5
  constructor(config) {
6
6
  super(config);
7
- /**
8
- * Get your own User details. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
9
- *
10
- * Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
11
- */
12
- this.me = (request) => this.request('/user/me', 'get')(request);
13
- /**
14
- * Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
15
- *
16
- * Access Policy Action: `App:GetUser`
17
- * Access Policy Resource: `App:User`
18
- */
19
- this.get = (params, request) => this.request('/user/{id}', 'get')(params, request);
20
- /**
21
- * Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
22
- *
23
- * Access Policy Action: `App:UpdateUser`
24
- * Access Policy Resource: `App:User`
25
- */
26
- this.update = (params, request) => this.request('/user/{id}', 'patch')(params, request);
27
- /**
28
- * Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
29
- *
30
- * Access Policy Action: `App:DeleteUser`
31
- * Access Policy Resource: `App:User`
32
- */
33
- this.delete = (params, request) => this.request('/user/{id}', 'delete')(params, request);
34
- /**
35
- * Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
36
- *
37
- * Access Policy Action: `App:CreateUser`
38
- * Access Policy Resource: `App:User`
39
- */
40
- this.invite = (params, request) => this.request('/user/invite', 'post')(params, request);
41
- /**
42
- * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.
43
- *
44
- * Get all Users in the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
45
- *
46
- * Access Policy Action: `App:ListAllUsers`
47
- * Access Policy Resource: `App:User`
48
- */
49
- this.list = (request) => this.request('/user', 'get')(request);
50
- /**
51
- * Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
52
- *
53
- * Access Policy Action: `Project:ListAllUsers`
54
- * Access Policy Resource: `Project:Settings`
55
- */
56
- this.listV2 = (params, request) => this.request('/user/v2/list', 'get')(params, request);
7
+ }
8
+ /**
9
+ * Get your own User details. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
10
+ *
11
+ * Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
12
+ */
13
+ me(request) {
14
+ return this.request('/user/me', 'get')(request);
15
+ }
16
+ /**
17
+ * Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
18
+ *
19
+ * Access Policy Action: `App:GetUser`
20
+ * Access Policy Resource: `App:User`
21
+ */
22
+ get(params, request) {
23
+ return this.request('/user/{id}', 'get')(params, request);
24
+ }
25
+ /**
26
+ * Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
27
+ *
28
+ * Access Policy Action: `App:UpdateUser`
29
+ * Access Policy Resource: `App:User`
30
+ */
31
+ update(params, request) {
32
+ return this.request('/user/{id}', 'patch')(params, request);
33
+ }
34
+ /**
35
+ * Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
36
+ *
37
+ * Access Policy Action: `App:DeleteUser`
38
+ * Access Policy Resource: `App:User`
39
+ */
40
+ delete(params, request) {
41
+ return this.request('/user/{id}', 'delete')(params, request);
42
+ }
43
+ /**
44
+ * Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
45
+ *
46
+ * Access Policy Action: `App:CreateUser`
47
+ * Access Policy Resource: `App:User`
48
+ */
49
+ invite(params, request) {
50
+ return this.request('/user/invite', 'post')(params, request);
51
+ }
52
+ /**
53
+ * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.
54
+ *
55
+ * Get all Users in the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
56
+ *
57
+ * Access Policy Action: `App:ListAllUsers`
58
+ * Access Policy Resource: `App:User`
59
+ */
60
+ list(request) {
61
+ return this.request('/user', 'get')(request);
62
+ }
63
+ /**
64
+ * Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
65
+ *
66
+ * Access Policy Action: `Project:ListAllUsers`
67
+ * Access Policy Resource: `Project:Settings`
68
+ */
69
+ listV2(params, request) {
70
+ return this.request('/user/v2/list', 'get')(params, request);
57
71
  }
58
72
  }
59
73
 
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sources":["../../../../src/resources/classes/user.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n UserDeleteParams,\n UserGetParams,\n UserGetResponse,\n UserInviteParams,\n UserInviteResponse,\n UserListResponse,\n UserListV2Params,\n UserListV2Response,\n UserMeResponse,\n UserUpdateParams,\n UserUpdateResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class User extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Get your own User details. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.\n */\n me = (request?: OystehrClientRequest): Promise<UserMeResponse> => this.request('/user/me', 'get')(request);\n /**\n * Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `App:GetUser`\n * Access Policy Resource: `App:User`\n */\n get = (params: UserGetParams, request?: OystehrClientRequest): Promise<UserGetResponse> =>\n this.request('/user/{id}', 'get')(params, request);\n /**\n * Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `App:UpdateUser`\n * Access Policy Resource: `App:User`\n */\n update = (params: UserUpdateParams, request?: OystehrClientRequest): Promise<UserUpdateResponse> =>\n this.request('/user/{id}', 'patch')(params, request);\n /**\n * Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `App:DeleteUser`\n * Access Policy Resource: `App:User`\n */\n delete = (params: UserDeleteParams, request?: OystehrClientRequest): Promise<void> =>\n this.request('/user/{id}', 'delete')(params, request);\n /**\n * Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `App:CreateUser`\n * Access Policy Resource: `App:User`\n */\n invite = (params: UserInviteParams, request?: OystehrClientRequest): Promise<UserInviteResponse> =>\n this.request('/user/invite', 'post')(params, request);\n /**\n * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.\n *\n * Get all Users in the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `App:ListAllUsers`\n * Access Policy Resource: `App:User`\n */\n list = (request?: OystehrClientRequest): Promise<UserListResponse> => this.request('/user', 'get')(request);\n /**\n * Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `Project:ListAllUsers`\n * Access Policy Resource: `Project:Settings`\n */\n listV2 = (params: UserListV2Params, request?: OystehrClientRequest): Promise<UserListV2Response> =>\n this.request('/user/v2/list', 'get')(params, request);\n}\n"],"names":[],"mappings":";;AAAA;AAmBM,MAAO,IAAK,SAAQ,WAAW,CAAA;AACnC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhB;;;;AAIG;AACH,QAAA,IAAA,CAAA,EAAE,GAAG,CAAC,OAA8B,KAA8B,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;AAC3G;;;;;AAKG;QACH,IAAG,CAAA,GAAA,GAAG,CAAC,MAAqB,EAAE,OAA8B,KAC1D,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrD;;;;;AAKG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAAwB,EAAE,OAA8B,KAChE,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACvD;;;;;AAKG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAAwB,EAAE,OAA8B,KAChE,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACxD;;;;;AAKG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAAwB,EAAE,OAA8B,KAChE,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACxD;;;;;;;AAOG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,CAAC,OAA8B,KAAgC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;AAC5G;;;;;AAKG;QACH,IAAM,CAAA,MAAA,GAAG,CAAC,MAAwB,EAAE,OAA8B,KAChE,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAvDvD;AAwDF;;;;"}
1
+ {"version":3,"file":"user.js","sources":["../../../../src/resources/classes/user.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n UserDeleteParams,\n UserGetParams,\n UserGetResponse,\n UserInviteParams,\n UserInviteResponse,\n UserListResponse,\n UserListV2Params,\n UserListV2Response,\n UserMeResponse,\n UserUpdateParams,\n UserUpdateResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class User extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Get your own User details. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.\n */\n me(request?: OystehrClientRequest): Promise<UserMeResponse> {\n return this.request('/user/me', 'get')(request);\n }\n /**\n * Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `App:GetUser`\n * Access Policy Resource: `App:User`\n */\n get(params: UserGetParams, request?: OystehrClientRequest): Promise<UserGetResponse> {\n return this.request('/user/{id}', 'get')(params, request);\n }\n /**\n * Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `App:UpdateUser`\n * Access Policy Resource: `App:User`\n */\n update(params: UserUpdateParams, request?: OystehrClientRequest): Promise<UserUpdateResponse> {\n return this.request('/user/{id}', 'patch')(params, request);\n }\n /**\n * Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `App:DeleteUser`\n * Access Policy Resource: `App:User`\n */\n delete(params: UserDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/user/{id}', 'delete')(params, request);\n }\n /**\n * Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `App:CreateUser`\n * Access Policy Resource: `App:User`\n */\n invite(params: UserInviteParams, request?: OystehrClientRequest): Promise<UserInviteResponse> {\n return this.request('/user/invite', 'post')(params, request);\n }\n /**\n * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.\n *\n * Get all Users in the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `App:ListAllUsers`\n * Access Policy Resource: `App:User`\n */\n list(request?: OystehrClientRequest): Promise<UserListResponse> {\n return this.request('/user', 'get')(request);\n }\n /**\n * Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n *\n * Access Policy Action: `Project:ListAllUsers`\n * Access Policy Resource: `Project:Settings`\n */\n listV2(params: UserListV2Params, request?: OystehrClientRequest): Promise<UserListV2Response> {\n return this.request('/user/v2/list', 'get')(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAmBM,MAAO,IAAK,SAAQ,WAAW,CAAA;AACnC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;AACD;;;;AAIG;AACH,IAAA,EAAE,CAAC,OAA8B,EAAA;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;KACjD;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAqB,EAAE,OAA8B,EAAA;AACvD,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC3D;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;AAC7D,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC7D;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;AAC7D,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9D;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;AAC7D,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9D;AACD;;;;;;;AAOG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;KAC9C;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;AAC7D,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9D;AACF;;;;"}
@@ -6,5 +6,5 @@ export declare class Version extends SDKResource {
6
6
  /**
7
7
  * Get project API version. This endpoint is public so there are no access policy requirements.
8
8
  */
9
- get: (request?: OystehrClientRequest) => Promise<VersionGetResponse>;
9
+ get(request?: OystehrClientRequest): Promise<VersionGetResponse>;
10
10
  }
@@ -4,10 +4,12 @@ import { SDKResource } from '../../client/client.js';
4
4
  class Version extends SDKResource {
5
5
  constructor(config) {
6
6
  super(config);
7
- /**
8
- * Get project API version. This endpoint is public so there are no access policy requirements.
9
- */
10
- this.get = (request) => this.request('/version', 'get')(request);
7
+ }
8
+ /**
9
+ * Get project API version. This endpoint is public so there are no access policy requirements.
10
+ */
11
+ get(request) {
12
+ return this.request('/version', 'get')(request);
11
13
  }
12
14
  }
13
15
 
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../../src/resources/classes/version.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrClientRequest, VersionGetResponse } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Version extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Get project API version. This endpoint is public so there are no access policy requirements.\n */\n get = (request?: OystehrClientRequest): Promise<VersionGetResponse> => this.request('/version', 'get')(request);\n}\n"],"names":[],"mappings":";;AAAA;AAMM,MAAO,OAAQ,SAAQ,WAAW,CAAA;AACtC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhB;;AAEG;AACH,QAAA,IAAA,CAAA,GAAG,GAAG,CAAC,OAA8B,KAAkC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;KAJ/G;AAKF;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../../src/resources/classes/version.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrClientRequest, VersionGetResponse } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Version extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Get project API version. This endpoint is public so there are no access policy requirements.\n */\n get(request?: OystehrClientRequest): Promise<VersionGetResponse> {\n return this.request('/version', 'get')(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;AACD;;AAEG;AACH,IAAA,GAAG,CAAC,OAA8B,EAAA;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;KACjD;AACF;;;;"}
@@ -16,7 +16,7 @@ export declare class Z3 extends SDKResource {
16
16
  downloadFile: typeof ext.downloadFile;
17
17
  /**
18
18
  * This helper performs a `getPresignedUrl` request for Z3 URLs of the forms
19
- * `https://projects-api.oystehr.com/v1/z3/<bucket>/<key>` * or `z3://<bucket>/<key>`
19
+ * `https://projects-api.oystehr.com/v1/z3/<bucket>/<key>` or `z3://<bucket>/<key>`
20
20
  * instead of the standard SDK `Z3GetPresignedUrlParams`.
21
21
  * @param params url and action
22
22
  */
@@ -27,40 +27,40 @@ export declare class Z3 extends SDKResource {
27
27
  * Access Policy Action: `Z3:ListBuckets`
28
28
  * Access Policy Resource: `Z3:BucketName`
29
29
  */
30
- listBuckets: (request?: OystehrClientRequest) => Promise<Z3ListBucketsResponse>;
30
+ listBuckets(request?: OystehrClientRequest): Promise<Z3ListBucketsResponse>;
31
31
  /**
32
32
  * Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
33
33
  *
34
34
  * Access Policy Action: `Z3:CreateBucket`
35
35
  * Access Policy Resource: `Z3:BucketName`
36
36
  */
37
- createBucket: (params: Z3CreateBucketParams, request?: OystehrClientRequest) => Promise<Z3CreateBucketResponse>;
37
+ createBucket(params: Z3CreateBucketParams, request?: OystehrClientRequest): Promise<Z3CreateBucketResponse>;
38
38
  /**
39
39
  * Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
40
40
  *
41
41
  * Access Policy Action: `Z3:DeleteBucket`
42
42
  * Access Policy Resource: `Z3:BucketName`
43
43
  */
44
- deleteBucket: (params: Z3DeleteBucketParams, request?: OystehrClientRequest) => Promise<void>;
44
+ deleteBucket(params: Z3DeleteBucketParams, request?: OystehrClientRequest): Promise<void>;
45
45
  /**
46
46
  * List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
47
47
  *
48
48
  * Access Policy Action: `Z3:ListObjects`
49
49
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
50
50
  */
51
- listObjects: (params: Z3ListObjectsParams, request?: OystehrClientRequest) => Promise<Z3ListObjectsResponse>;
51
+ listObjects(params: Z3ListObjectsParams, request?: OystehrClientRequest): Promise<Z3ListObjectsResponse>;
52
52
  /**
53
53
  * Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
54
54
  *
55
55
  * Access Policy Action: `Z3:PutObject` or `Z3:GetObject`
56
56
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
57
57
  */
58
- getPresignedUrl: (params: Z3GetPresignedUrlParams, request?: OystehrClientRequest) => Promise<Z3GetPresignedUrlResponse>;
58
+ getPresignedUrl(params: Z3GetPresignedUrlParams, request?: OystehrClientRequest): Promise<Z3GetPresignedUrlResponse>;
59
59
  /**
60
60
  * Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
61
61
  *
62
62
  * Access Policy Action: `Z3:DeleteObject`
63
63
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
64
64
  */
65
- deleteObject: (params: Z3DeleteObjectParams, request?: OystehrClientRequest) => Promise<void>;
65
+ deleteObject(params: Z3DeleteObjectParams, request?: OystehrClientRequest): Promise<void>;
66
66
  }