@oystehr/sdk 3.0.4 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/config.d.ts +8 -0
  3. package/dist/cjs/index.cjs +856 -642
  4. package/dist/cjs/index.cjs.map +1 -1
  5. package/dist/cjs/index.min.cjs +1 -1
  6. package/dist/cjs/index.min.cjs.map +1 -1
  7. package/dist/cjs/resources/classes/application.d.ts +8 -8
  8. package/dist/cjs/resources/classes/charge.d.ts +2 -2
  9. package/dist/cjs/resources/classes/conversation.d.ts +5 -5
  10. package/dist/cjs/resources/classes/developer.d.ts +6 -6
  11. package/dist/cjs/resources/classes/erx.d.ts +13 -5
  12. package/dist/cjs/resources/classes/fax.d.ts +30 -0
  13. package/dist/cjs/resources/classes/index.d.ts +2 -0
  14. package/dist/cjs/resources/classes/m2m.d.ts +7 -7
  15. package/dist/cjs/resources/classes/messaging.d.ts +1 -1
  16. package/dist/cjs/resources/classes/paymentMethod.d.ts +4 -4
  17. package/dist/cjs/resources/classes/project.d.ts +2 -2
  18. package/dist/cjs/resources/classes/rcm.d.ts +4 -4
  19. package/dist/cjs/resources/classes/role.d.ts +5 -5
  20. package/dist/cjs/resources/classes/secret.d.ts +4 -4
  21. package/dist/cjs/resources/classes/telemed.d.ts +2 -2
  22. package/dist/cjs/resources/classes/transactionalSMS.d.ts +1 -1
  23. package/dist/cjs/resources/classes/user.d.ts +7 -7
  24. package/dist/cjs/resources/classes/version.d.ts +1 -1
  25. package/dist/cjs/resources/classes/z3.d.ts +7 -7
  26. package/dist/cjs/resources/classes/zambda.d.ts +8 -8
  27. package/dist/cjs/resources/classes/zambdaLogStream.d.ts +3 -3
  28. package/dist/cjs/resources/types/ConversationAddParticipantParams.d.ts +1 -1
  29. package/dist/cjs/resources/types/ConversationCreateResponse.d.ts +1 -1
  30. package/dist/cjs/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
  31. package/dist/cjs/resources/types/ErxCancelOrderParams.d.ts +6 -0
  32. package/dist/cjs/resources/types/ErxCancelOrderResponse.d.ts +6 -0
  33. package/dist/cjs/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
  34. package/dist/cjs/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
  35. package/dist/cjs/resources/types/FaxSendParams.d.ts +18 -0
  36. package/dist/cjs/resources/types/FaxSendResponse.d.ts +10 -0
  37. package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  38. package/dist/cjs/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
  39. package/dist/cjs/resources/types/index.d.ts +6 -0
  40. package/dist/cjs/tests/setup/constants.d.ts +1 -1
  41. package/dist/esm/client/client.js +14 -11
  42. package/dist/esm/client/client.js.map +1 -1
  43. package/dist/esm/config.d.ts +8 -0
  44. package/dist/esm/index.min.js +1 -1
  45. package/dist/esm/index.min.js.map +1 -1
  46. package/dist/esm/resources/classes/application.d.ts +8 -8
  47. package/dist/esm/resources/classes/application.js +72 -56
  48. package/dist/esm/resources/classes/application.js.map +1 -1
  49. package/dist/esm/resources/classes/charge.d.ts +2 -2
  50. package/dist/esm/resources/classes/charge.js +28 -24
  51. package/dist/esm/resources/classes/charge.js.map +1 -1
  52. package/dist/esm/resources/classes/conversation.d.ts +5 -5
  53. package/dist/esm/resources/classes/conversation.js +59 -49
  54. package/dist/esm/resources/classes/conversation.js.map +1 -1
  55. package/dist/esm/resources/classes/developer.d.ts +6 -6
  56. package/dist/esm/resources/classes/developer.js +56 -44
  57. package/dist/esm/resources/classes/developer.js.map +1 -1
  58. package/dist/esm/resources/classes/erx.d.ts +13 -5
  59. package/dist/esm/resources/classes/erx.js +36 -16
  60. package/dist/esm/resources/classes/erx.js.map +1 -1
  61. package/dist/esm/resources/classes/fax.d.ts +30 -0
  62. package/dist/esm/resources/classes/fax.js +41 -0
  63. package/dist/esm/resources/classes/fax.js.map +1 -0
  64. package/dist/esm/resources/classes/fhir-ext.js +3 -0
  65. package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
  66. package/dist/esm/resources/classes/index.d.ts +2 -0
  67. package/dist/esm/resources/classes/index.js +2 -0
  68. package/dist/esm/resources/classes/index.js.map +1 -1
  69. package/dist/esm/resources/classes/m2m.d.ts +7 -7
  70. package/dist/esm/resources/classes/m2m.js +65 -51
  71. package/dist/esm/resources/classes/m2m.js.map +1 -1
  72. package/dist/esm/resources/classes/messaging.d.ts +1 -1
  73. package/dist/esm/resources/classes/messaging.js +6 -4
  74. package/dist/esm/resources/classes/messaging.js.map +1 -1
  75. package/dist/esm/resources/classes/paymentMethod.d.ts +4 -4
  76. package/dist/esm/resources/classes/paymentMethod.js +72 -64
  77. package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
  78. package/dist/esm/resources/classes/project.d.ts +2 -2
  79. package/dist/esm/resources/classes/project.js +18 -14
  80. package/dist/esm/resources/classes/project.js.map +1 -1
  81. package/dist/esm/resources/classes/rcm.d.ts +4 -4
  82. package/dist/esm/resources/classes/rcm.js +39 -33
  83. package/dist/esm/resources/classes/rcm.js.map +1 -1
  84. package/dist/esm/resources/classes/role.d.ts +5 -5
  85. package/dist/esm/resources/classes/role.js +46 -36
  86. package/dist/esm/resources/classes/role.js.map +1 -1
  87. package/dist/esm/resources/classes/secret.d.ts +4 -4
  88. package/dist/esm/resources/classes/secret.js +36 -28
  89. package/dist/esm/resources/classes/secret.js.map +1 -1
  90. package/dist/esm/resources/classes/telemed.d.ts +2 -2
  91. package/dist/esm/resources/classes/telemed.js +27 -23
  92. package/dist/esm/resources/classes/telemed.js.map +1 -1
  93. package/dist/esm/resources/classes/transactionalSMS.d.ts +1 -1
  94. package/dist/esm/resources/classes/transactionalSMS.js +18 -16
  95. package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
  96. package/dist/esm/resources/classes/user.d.ts +7 -7
  97. package/dist/esm/resources/classes/user.js +64 -50
  98. package/dist/esm/resources/classes/user.js.map +1 -1
  99. package/dist/esm/resources/classes/version.d.ts +1 -1
  100. package/dist/esm/resources/classes/version.js +6 -4
  101. package/dist/esm/resources/classes/version.js.map +1 -1
  102. package/dist/esm/resources/classes/z3.d.ts +7 -7
  103. package/dist/esm/resources/classes/z3.js +55 -43
  104. package/dist/esm/resources/classes/z3.js.map +1 -1
  105. package/dist/esm/resources/classes/zambda.d.ts +8 -8
  106. package/dist/esm/resources/classes/zambda.js +71 -55
  107. package/dist/esm/resources/classes/zambda.js.map +1 -1
  108. package/dist/esm/resources/classes/zambdaLogStream.d.ts +3 -3
  109. package/dist/esm/resources/classes/zambdaLogStream.js +27 -21
  110. package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
  111. package/dist/esm/resources/types/ConversationAddParticipantParams.d.ts +1 -1
  112. package/dist/esm/resources/types/ConversationCreateResponse.d.ts +1 -1
  113. package/dist/esm/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
  114. package/dist/esm/resources/types/ErxCancelOrderParams.d.ts +6 -0
  115. package/dist/esm/resources/types/ErxCancelOrderResponse.d.ts +6 -0
  116. package/dist/esm/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
  117. package/dist/esm/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
  118. package/dist/esm/resources/types/FaxSendParams.d.ts +18 -0
  119. package/dist/esm/resources/types/FaxSendResponse.d.ts +10 -0
  120. package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  121. package/dist/esm/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
  122. package/dist/esm/resources/types/index.d.ts +6 -0
  123. package/dist/esm/tests/setup/constants.d.ts +1 -1
  124. package/package.json +4 -4
  125. package/src/client/client.ts +8 -3
  126. package/src/config.ts +8 -0
  127. package/src/resources/classes/application.ts +27 -19
  128. package/src/resources/classes/charge.ts +6 -4
  129. package/src/resources/classes/conversation.ts +15 -10
  130. package/src/resources/classes/developer.ts +18 -11
  131. package/src/resources/classes/erx.ts +33 -8
  132. package/src/resources/classes/fax.ts +41 -0
  133. package/src/resources/classes/fhir-ext.ts +3 -0
  134. package/src/resources/classes/index.ts +3 -0
  135. package/src/resources/classes/m2m.ts +21 -13
  136. package/src/resources/classes/messaging.ts +3 -2
  137. package/src/resources/classes/paymentMethod.ts +12 -8
  138. package/src/resources/classes/project.ts +6 -3
  139. package/src/resources/classes/rcm.ts +13 -9
  140. package/src/resources/classes/role.ts +15 -9
  141. package/src/resources/classes/secret.ts +12 -7
  142. package/src/resources/classes/telemed.ts +7 -7
  143. package/src/resources/classes/transactionalSMS.ts +3 -2
  144. package/src/resources/classes/user.ts +21 -12
  145. package/src/resources/classes/version.ts +3 -1
  146. package/src/resources/classes/z3.ts +19 -14
  147. package/src/resources/classes/zambda.ts +25 -15
  148. package/src/resources/classes/zambdaLogStream.ts +9 -8
  149. package/src/resources/types/ConversationAddParticipantParams.ts +1 -1
  150. package/src/resources/types/ConversationCreateResponse.ts +1 -1
  151. package/src/resources/types/ConversationRemoveParticipantParams.ts +1 -1
  152. package/src/resources/types/ErxCancelOrderParams.ts +8 -0
  153. package/src/resources/types/ErxCancelOrderResponse.ts +8 -0
  154. package/src/resources/types/ErxCancelPrescriptionParams.ts +8 -0
  155. package/src/resources/types/ErxCancelPrescriptionResponse.ts +8 -0
  156. package/src/resources/types/FaxSendParams.ts +20 -0
  157. package/src/resources/types/FaxSendResponse.ts +12 -0
  158. package/src/resources/types/TelemedCreateMeetingParams.ts +1 -1
  159. package/src/resources/types/TelemedCreateMeetingResponse.ts +1 -1
  160. package/src/resources/types/index.ts +6 -0
  161. /package/dist/cjs/tests/{common.d.ts → integrational/common.d.ts} +0 -0
  162. /package/dist/esm/tests/{common.d.ts → integrational/common.d.ts} +0 -0
@@ -11,5 +11,7 @@ export class Version extends SDKResource {
11
11
  /**
12
12
  * Get project API version. This endpoint is public so there are no access policy requirements.
13
13
  */
14
- get = (request?: OystehrClientRequest): Promise<VersionGetResponse> => this.request('/version', 'get')(request);
14
+ get(request?: OystehrClientRequest): Promise<VersionGetResponse> {
15
+ return this.request('/version', 'get')(request);
16
+ }
15
17
  }
@@ -32,7 +32,7 @@ export class Z3 extends SDKResource {
32
32
  downloadFile = ext.downloadFile;
33
33
  /**
34
34
  * This helper performs a `getPresignedUrl` request for Z3 URLs of the forms
35
- * `https://projects-api.oystehr.com/v1/z3/<bucket>/<key>` * or `z3://<bucket>/<key>`
35
+ * `https://projects-api.oystehr.com/v1/z3/<bucket>/<key>` or `z3://<bucket>/<key>`
36
36
  * instead of the standard SDK `Z3GetPresignedUrlParams`.
37
37
  * @param params url and action
38
38
  */
@@ -43,47 +43,52 @@ export class Z3 extends SDKResource {
43
43
  * Access Policy Action: `Z3:ListBuckets`
44
44
  * Access Policy Resource: `Z3:BucketName`
45
45
  */
46
- listBuckets = (request?: OystehrClientRequest): Promise<Z3ListBucketsResponse> => this.request('/z3', 'get')(request);
46
+ listBuckets(request?: OystehrClientRequest): Promise<Z3ListBucketsResponse> {
47
+ return this.request('/z3', 'get')(request);
48
+ }
47
49
  /**
48
50
  * 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.
49
51
  *
50
52
  * Access Policy Action: `Z3:CreateBucket`
51
53
  * Access Policy Resource: `Z3:BucketName`
52
54
  */
53
- createBucket = (params: Z3CreateBucketParams, request?: OystehrClientRequest): Promise<Z3CreateBucketResponse> =>
54
- this.request('/z3/{bucketName}', 'put')(params, request);
55
+ createBucket(params: Z3CreateBucketParams, request?: OystehrClientRequest): Promise<Z3CreateBucketResponse> {
56
+ return this.request('/z3/{bucketName}', 'put')(params, request);
57
+ }
55
58
  /**
56
59
  * 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.
57
60
  *
58
61
  * Access Policy Action: `Z3:DeleteBucket`
59
62
  * Access Policy Resource: `Z3:BucketName`
60
63
  */
61
- deleteBucket = (params: Z3DeleteBucketParams, request?: OystehrClientRequest): Promise<void> =>
62
- this.request('/z3/{bucketName}', 'delete')(params, request);
64
+ deleteBucket(params: Z3DeleteBucketParams, request?: OystehrClientRequest): Promise<void> {
65
+ return this.request('/z3/{bucketName}', 'delete')(params, request);
66
+ }
63
67
  /**
64
68
  * 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.
65
69
  *
66
70
  * Access Policy Action: `Z3:ListObjects`
67
71
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
68
72
  */
69
- listObjects = (params: Z3ListObjectsParams, request?: OystehrClientRequest): Promise<Z3ListObjectsResponse> =>
70
- this.request('/z3/{bucketName}/{objectPath+}', 'get')(params, request);
73
+ listObjects(params: Z3ListObjectsParams, request?: OystehrClientRequest): Promise<Z3ListObjectsResponse> {
74
+ return this.request('/z3/{bucketName}/{objectPath+}', 'get')(params, request);
75
+ }
71
76
  /**
72
77
  * 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.
73
78
  *
74
79
  * Access Policy Action: `Z3:PutObject` or `Z3:GetObject`
75
80
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
76
81
  */
77
- getPresignedUrl = (
78
- params: Z3GetPresignedUrlParams,
79
- request?: OystehrClientRequest
80
- ): Promise<Z3GetPresignedUrlResponse> => this.request('/z3/{bucketName}/{objectPath+}', 'post')(params, request);
82
+ getPresignedUrl(params: Z3GetPresignedUrlParams, request?: OystehrClientRequest): Promise<Z3GetPresignedUrlResponse> {
83
+ return this.request('/z3/{bucketName}/{objectPath+}', 'post')(params, request);
84
+ }
81
85
  /**
82
86
  * 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.
83
87
  *
84
88
  * Access Policy Action: `Z3:DeleteObject`
85
89
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
86
90
  */
87
- deleteObject = (params: Z3DeleteObjectParams, request?: OystehrClientRequest): Promise<void> =>
88
- this.request('/z3/{bucketName}/{objectPath+}', 'delete')(params, request);
91
+ deleteObject(params: Z3DeleteObjectParams, request?: OystehrClientRequest): Promise<void> {
92
+ return this.request('/z3/{bucketName}/{objectPath+}', 'delete')(params, request);
93
+ }
89
94
  }
@@ -32,62 +32,72 @@ export class Zambda extends SDKResource {
32
32
  * Access Policy Action: `Zambda:ListAllFunctions`
33
33
  * Access Policy Resource: `Zambda:Function`
34
34
  */
35
- list = (request?: OystehrClientRequest): Promise<ZambdaListResponse> => this.request('/zambda', 'get')(request);
35
+ list(request?: OystehrClientRequest): Promise<ZambdaListResponse> {
36
+ return this.request('/zambda', 'get')(request);
37
+ }
36
38
  /**
37
39
  * Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
38
40
  *
39
41
  * Access Policy Action: `Zambda:CreateFunction`
40
42
  * Access Policy Resource: `Zambda:Function`
41
43
  */
42
- create = (params: ZambdaCreateParams, request?: OystehrClientRequest): Promise<ZambdaCreateResponse> =>
43
- this.request('/zambda', 'post')(params, request);
44
+ create(params: ZambdaCreateParams, request?: OystehrClientRequest): Promise<ZambdaCreateResponse> {
45
+ return this.request('/zambda', 'post')(params, request);
46
+ }
44
47
  /**
45
48
  * Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
46
49
  *
47
50
  * Access Policy Action: `Zambda:GetFunction`
48
51
  * Access Policy Resource: `Zambda:Function`
49
52
  */
50
- get = (params: ZambdaGetParams, request?: OystehrClientRequest): Promise<ZambdaGetResponse> =>
51
- this.request('/zambda/{id}', 'get')(params, request);
53
+ get(params: ZambdaGetParams, request?: OystehrClientRequest): Promise<ZambdaGetResponse> {
54
+ return this.request('/zambda/{id}', 'get')(params, request);
55
+ }
52
56
  /**
53
57
  * Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
54
58
  *
55
59
  * Access Policy Action: `Zambda:UpdateFunction`
56
60
  * Access Policy Resource: `Zambda:Function`
57
61
  */
58
- update = (params: ZambdaUpdateParams, request?: OystehrClientRequest): Promise<ZambdaUpdateResponse> =>
59
- this.request('/zambda/{id}', 'patch')(params, request);
62
+ update(params: ZambdaUpdateParams, request?: OystehrClientRequest): Promise<ZambdaUpdateResponse> {
63
+ return this.request('/zambda/{id}', 'patch')(params, request);
64
+ }
60
65
  /**
61
66
  * Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
62
67
  *
63
68
  * Access Policy Action: `Zambda:DeleteFunction`
64
69
  * Access Policy Resource: `Zambda:Function`
65
70
  */
66
- delete = (params: ZambdaDeleteParams, request?: OystehrClientRequest): Promise<void> =>
67
- this.request('/zambda/{id}', 'delete')(params, request);
71
+ delete(params: ZambdaDeleteParams, request?: OystehrClientRequest): Promise<void> {
72
+ return this.request('/zambda/{id}', 'delete')(params, request);
73
+ }
68
74
  /**
69
75
  * Execute the [Authenticated Zambda Function](https://docs.oystehr.com/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
70
76
  *
71
77
  * Access Policy Action: `Zambda:InvokeFunction`
72
78
  * Access Policy Resource: `Zambda:Function`
73
79
  */
74
- execute = (params: ZambdaExecuteParams, request?: OystehrClientRequest): Promise<ZambdaExecuteResponse> =>
75
- this.request('/zambda/{id}/execute', 'post')(params, request);
80
+ execute(params: ZambdaExecuteParams, request?: OystehrClientRequest): Promise<ZambdaExecuteResponse> {
81
+ return this.request('/zambda/{id}/execute', 'post')(params, request);
82
+ }
76
83
  /**
77
84
  * Execute the [Public Zambda Function](https://docs.oystehr.com/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
78
85
  *
79
86
  * Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.
80
87
  */
81
- executePublic = (
88
+ executePublic(
82
89
  params: ZambdaExecutePublicParams,
83
90
  request?: OystehrClientRequest
84
- ): Promise<ZambdaExecutePublicResponse> => this.request('/zambda/{id}/execute-public', 'post')(params, request);
91
+ ): Promise<ZambdaExecutePublicResponse> {
92
+ return this.request('/zambda/{id}/execute-public', 'post')(params, request);
93
+ }
85
94
  /**
86
95
  * Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
87
96
  *
88
97
  * Access Policy Action: `Zambda:UpdateFunction`
89
98
  * Access Policy Resource: `Zambda:Function`
90
99
  */
91
- s3Upload = (params: ZambdaS3UploadParams, request?: OystehrClientRequest): Promise<ZambdaS3UploadResponse> =>
92
- this.request('/zambda/{id}/s3-upload', 'post')(params, request);
100
+ s3Upload(params: ZambdaS3UploadParams, request?: OystehrClientRequest): Promise<ZambdaS3UploadResponse> {
101
+ return this.request('/zambda/{id}/s3-upload', 'post')(params, request);
102
+ }
93
103
  }
@@ -22,24 +22,25 @@ export class ZambdaLogStream extends SDKResource {
22
22
  * Access Policy Action: `Zambda:ReadLogs`
23
23
  * Access Policy Resource: `Zambda:Function`
24
24
  */
25
- list = (params: ZambdaLogStreamListParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamListResponse> =>
26
- this.request('/zambda/{id}/logStream', 'post')(params, request);
25
+ list(params: ZambdaLogStreamListParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamListResponse> {
26
+ return this.request('/zambda/{id}/logStream', 'post')(params, request);
27
+ }
27
28
  /**
28
29
  * Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
29
30
  *
30
31
  * Access Policy Action: `Zambda:ReadLogs`
31
32
  * Access Policy Resource: `Zambda:Function`
32
33
  */
33
- search = (
34
- params: ZambdaLogStreamSearchParams,
35
- request?: OystehrClientRequest
36
- ): Promise<ZambdaLogStreamSearchResponse> => this.request('/zambda/{id}/logStream/search', 'post')(params, request);
34
+ search(params: ZambdaLogStreamSearchParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamSearchResponse> {
35
+ return this.request('/zambda/{id}/logStream/search', 'post')(params, request);
36
+ }
37
37
  /**
38
38
  * Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
39
39
  *
40
40
  * Access Policy Action: `Zambda:ReadLogs`
41
41
  * Access Policy Resource: `Zambda:Function`
42
42
  */
43
- get = (params: ZambdaLogStreamGetParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamGetResponse> =>
44
- this.request('/zambda/{id}/logStream/{logStreamName}', 'post')(params, request);
43
+ get(params: ZambdaLogStreamGetParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamGetResponse> {
44
+ return this.request('/zambda/{id}/logStream/{logStreamName}', 'post')(params, request);
45
+ }
45
46
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  export interface ConversationAddParticipantParams {
4
4
  /**
5
- * A valid FHIR Encounter relative reference in the format: `Encounter/some-uuid`. This reference must be a valid Encounter in the FHIR store which has the https://extensions.fhir.zapehr.com/encounter-virtual-service-pre-release extension from being created by `POST /message/conversation`.
5
+ * A valid FHIR Encounter relative reference in the format: `Encounter/some-uuid`. This reference must be a valid Encounter in the FHIR store which has the https://extensions.fhir.oystehr.com/encounter-virtual-service-pre-release extension from being created by `POST /message/conversation`.
6
6
  */
7
7
  encounterReference: string;
8
8
  participants: {
@@ -6,7 +6,7 @@ import { Encounter } from 'fhir/r4b';
6
6
  */
7
7
  export interface ConversationCreateResponse {
8
8
  /**
9
- * The FHIR Encounter resource that represents the Conversation in the FHIR Store modified to include the https://extensions.fhir.zapehr.com/encounter-virtual-service-pre-release extension which holds the Twilio Conversation SID.
9
+ * The FHIR Encounter resource that represents the Conversation in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/encounter-virtual-service-pre-release extension which holds the Twilio Conversation SID.
10
10
  */
11
11
  encounter: Encounter;
12
12
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  export interface ConversationRemoveParticipantParams {
4
4
  /**
5
- * A valid FHIR Encounter relative reference in the format: `Encounter/some-uuid`. This reference must be a valid Encounter in the FHIR store which has the https://extensions.fhir.zapehr.com/encounter-virtual-service-pre-release extension from being created by `POST /message/conversation`.
5
+ * A valid FHIR Encounter relative reference in the format: `Encounter/some-uuid`. This reference must be a valid Encounter in the FHIR store which has the https://extensions.fhir.oystehr.com/encounter-virtual-service-pre-release extension from being created by `POST /message/conversation`.
6
6
  */
7
7
  encounterReference: string;
8
8
  /**
@@ -0,0 +1,8 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ export interface ErxCancelOrderParams {
4
+ /**
5
+ * A photon id of the order to cancel.
6
+ */
7
+ orderId: string;
8
+ }
@@ -0,0 +1,8 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ /**
4
+ * Cancelled order
5
+ */
6
+ export interface ErxCancelOrderResponse {
7
+ orderId: string;
8
+ }
@@ -0,0 +1,8 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ export interface ErxCancelPrescriptionParams {
4
+ /**
5
+ * A photon id of the prescription to cancel.
6
+ */
7
+ prescriptionId: string;
8
+ }
@@ -0,0 +1,8 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ /**
4
+ * Cancelled prescription
5
+ */
6
+ export interface ErxCancelPrescriptionResponse {
7
+ prescriptionId: string;
8
+ }
@@ -0,0 +1,20 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ export interface FaxSendParams {
4
+ /**
5
+ * A Z3 URL of the document you want to send. Your user must have access to this document.
6
+ */
7
+ media: string;
8
+ /**
9
+ * The quality of the document you want sent.
10
+ */
11
+ quality: 'standard' | 'fine' | 'superfine';
12
+ /**
13
+ * The recipient of the fax. This must be a valid FHIR CareTeam, HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have a number in the `telecom` field with a `system` of `fax`.
14
+ */
15
+ recipient: string;
16
+ /**
17
+ * The sender of the fax. This must be a valid FHIR HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have your [onboarded fax number](https://docs.oystehr.com/services/fax/number/) in the `telecom` field with a `system` of `fax`.
18
+ */
19
+ sender: string;
20
+ }
@@ -0,0 +1,12 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ import { Communication } from 'fhir/r4b';
4
+ /**
5
+ * Successfully sent a fax.
6
+ */
7
+ export interface FaxSendResponse {
8
+ /**
9
+ * The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically.
10
+ */
11
+ communicationResource: Communication;
12
+ }
@@ -4,7 +4,7 @@ import { Encounter } from 'fhir/r4b';
4
4
 
5
5
  export interface TelemedCreateMeetingParams {
6
6
  /**
7
- * Well formed Encounter with the https://extensions.fhir.zapehr.com/encounter-other-participants extension specified optionally.
7
+ * Well formed Encounter with the https://extensions.fhir.oystehr.com/encounter-other-participants extension specified optionally.
8
8
  */
9
9
  encounter?: Encounter;
10
10
  }
@@ -6,7 +6,7 @@ import { Encounter } from 'fhir/r4b';
6
6
  */
7
7
  export interface TelemedCreateMeetingResponse {
8
8
  /**
9
- * Returns well formed Encounter with video meeting information in the https://extensions.fhir.zapehr.com/encounter-virtual-service-pre-release extension.
9
+ * Returns well formed Encounter with video meeting information in the https://extensions.fhir.oystehr.com/encounter-virtual-service-pre-release extension.
10
10
  */
11
11
  encounter?: Encounter;
12
12
  }
@@ -97,10 +97,16 @@ export * from './ErxSyncPatientParams';
97
97
  export * from './ErxSyncPatientResponse';
98
98
  export * from './ErxAllergySearchParams';
99
99
  export * from './ErxAllergySearchResponse';
100
+ export * from './ErxCancelOrderParams';
101
+ export * from './ErxCancelOrderResponse';
102
+ export * from './ErxCancelPrescriptionParams';
103
+ export * from './ErxCancelPrescriptionResponse';
100
104
  export * from './ErxMedicationSearchParams';
101
105
  export * from './ErxMedicationSearchResponse';
102
106
  export * from './ErxMedicationSearchV2Params';
103
107
  export * from './ErxMedicationSearchV2Response';
108
+ export * from './FaxSendParams';
109
+ export * from './FaxSendResponse';
104
110
  export * from './RoleListResponse';
105
111
  export * from './RoleCreateParams';
106
112
  export * from './RoleCreateResponse';