@oystehr/sdk 3.0.5 → 3.0.7

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 (167) hide show
  1. package/README.md +24 -8
  2. package/dist/cjs/client/client.d.ts +1 -1
  3. package/dist/cjs/config.d.ts +5 -0
  4. package/dist/cjs/errors/index.d.ts +4 -1
  5. package/dist/cjs/index.cjs +255 -92
  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.d.ts +1 -0
  10. package/dist/cjs/resources/classes/charge.d.ts +1 -0
  11. package/dist/cjs/resources/classes/conversation.d.ts +1 -0
  12. package/dist/cjs/resources/classes/developer.d.ts +1 -0
  13. package/dist/cjs/resources/classes/erx.d.ts +10 -1
  14. package/dist/cjs/resources/classes/fax.d.ts +31 -0
  15. package/dist/cjs/resources/classes/fhir.d.ts +1 -0
  16. package/dist/cjs/resources/classes/index.d.ts +2 -0
  17. package/dist/cjs/resources/classes/m2m.d.ts +1 -0
  18. package/dist/cjs/resources/classes/messaging.d.ts +1 -0
  19. package/dist/cjs/resources/classes/paymentMethod.d.ts +1 -0
  20. package/dist/cjs/resources/classes/project.d.ts +1 -0
  21. package/dist/cjs/resources/classes/rcm.d.ts +2 -1
  22. package/dist/cjs/resources/classes/role.d.ts +1 -0
  23. package/dist/cjs/resources/classes/secret.d.ts +1 -0
  24. package/dist/cjs/resources/classes/telemed.d.ts +1 -0
  25. package/dist/cjs/resources/classes/transactionalSMS.d.ts +1 -0
  26. package/dist/cjs/resources/classes/user.d.ts +1 -0
  27. package/dist/cjs/resources/classes/version.d.ts +1 -0
  28. package/dist/cjs/resources/classes/z3.d.ts +1 -0
  29. package/dist/cjs/resources/classes/zambda.d.ts +1 -0
  30. package/dist/cjs/resources/classes/zambdaLogStream.d.ts +1 -0
  31. package/dist/cjs/resources/types/DeveloperInviteResponse.d.ts +0 -4
  32. package/dist/cjs/resources/types/ErxCancelOrderParams.d.ts +6 -0
  33. package/dist/cjs/resources/types/ErxCancelOrderResponse.d.ts +6 -0
  34. package/dist/cjs/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
  35. package/dist/cjs/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
  36. package/dist/cjs/resources/types/FaxSendParams.d.ts +18 -0
  37. package/dist/cjs/resources/types/FaxSendResponse.d.ts +10 -0
  38. package/dist/cjs/resources/types/index.d.ts +6 -0
  39. package/dist/cjs/tests/setup/constants.d.ts +2 -6
  40. package/dist/cjs/tests/setup/global.d.ts +1 -0
  41. package/dist/esm/client/client.d.ts +1 -1
  42. package/dist/esm/client/client.js +4 -4
  43. package/dist/esm/client/client.js.map +1 -1
  44. package/dist/esm/config.d.ts +5 -0
  45. package/dist/esm/errors/index.d.ts +4 -1
  46. package/dist/esm/errors/index.js +18 -2
  47. package/dist/esm/errors/index.js.map +1 -1
  48. package/dist/esm/index.min.js +1 -1
  49. package/dist/esm/index.min.js.map +1 -1
  50. package/dist/esm/resources/classes/application.d.ts +1 -0
  51. package/dist/esm/resources/classes/application.js +12 -8
  52. package/dist/esm/resources/classes/application.js.map +1 -1
  53. package/dist/esm/resources/classes/charge.d.ts +1 -0
  54. package/dist/esm/resources/classes/charge.js +6 -2
  55. package/dist/esm/resources/classes/charge.js.map +1 -1
  56. package/dist/esm/resources/classes/conversation.d.ts +1 -0
  57. package/dist/esm/resources/classes/conversation.js +9 -5
  58. package/dist/esm/resources/classes/conversation.js.map +1 -1
  59. package/dist/esm/resources/classes/developer.d.ts +1 -0
  60. package/dist/esm/resources/classes/developer.js +10 -6
  61. package/dist/esm/resources/classes/developer.js.map +1 -1
  62. package/dist/esm/resources/classes/erx.d.ts +10 -1
  63. package/dist/esm/resources/classes/erx.js +20 -4
  64. package/dist/esm/resources/classes/erx.js.map +1 -1
  65. package/dist/esm/resources/classes/fax.d.ts +31 -0
  66. package/dist/esm/resources/classes/fax.js +45 -0
  67. package/dist/esm/resources/classes/fax.js.map +1 -0
  68. package/dist/esm/resources/classes/fhir.d.ts +1 -0
  69. package/dist/esm/resources/classes/fhir.js +4 -0
  70. package/dist/esm/resources/classes/fhir.js.map +1 -1
  71. package/dist/esm/resources/classes/index.d.ts +2 -0
  72. package/dist/esm/resources/classes/index.js +7 -0
  73. package/dist/esm/resources/classes/index.js.map +1 -1
  74. package/dist/esm/resources/classes/m2m.d.ts +1 -0
  75. package/dist/esm/resources/classes/m2m.js +11 -7
  76. package/dist/esm/resources/classes/m2m.js.map +1 -1
  77. package/dist/esm/resources/classes/messaging.d.ts +1 -0
  78. package/dist/esm/resources/classes/messaging.js +5 -1
  79. package/dist/esm/resources/classes/messaging.js.map +1 -1
  80. package/dist/esm/resources/classes/paymentMethod.d.ts +1 -0
  81. package/dist/esm/resources/classes/paymentMethod.js +8 -4
  82. package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
  83. package/dist/esm/resources/classes/project.d.ts +1 -0
  84. package/dist/esm/resources/classes/project.js +6 -2
  85. package/dist/esm/resources/classes/project.js.map +1 -1
  86. package/dist/esm/resources/classes/rcm.d.ts +2 -1
  87. package/dist/esm/resources/classes/rcm.js +8 -4
  88. package/dist/esm/resources/classes/rcm.js.map +1 -1
  89. package/dist/esm/resources/classes/role.d.ts +1 -0
  90. package/dist/esm/resources/classes/role.js +9 -5
  91. package/dist/esm/resources/classes/role.js.map +1 -1
  92. package/dist/esm/resources/classes/secret.d.ts +1 -0
  93. package/dist/esm/resources/classes/secret.js +8 -4
  94. package/dist/esm/resources/classes/secret.js.map +1 -1
  95. package/dist/esm/resources/classes/telemed.d.ts +1 -0
  96. package/dist/esm/resources/classes/telemed.js +6 -2
  97. package/dist/esm/resources/classes/telemed.js.map +1 -1
  98. package/dist/esm/resources/classes/transactionalSMS.d.ts +1 -0
  99. package/dist/esm/resources/classes/transactionalSMS.js +5 -1
  100. package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
  101. package/dist/esm/resources/classes/user.d.ts +1 -0
  102. package/dist/esm/resources/classes/user.js +11 -7
  103. package/dist/esm/resources/classes/user.js.map +1 -1
  104. package/dist/esm/resources/classes/version.d.ts +1 -0
  105. package/dist/esm/resources/classes/version.js +5 -1
  106. package/dist/esm/resources/classes/version.js.map +1 -1
  107. package/dist/esm/resources/classes/z3-ext.js +9 -5
  108. package/dist/esm/resources/classes/z3-ext.js.map +1 -1
  109. package/dist/esm/resources/classes/z3.d.ts +1 -0
  110. package/dist/esm/resources/classes/z3.js +10 -6
  111. package/dist/esm/resources/classes/z3.js.map +1 -1
  112. package/dist/esm/resources/classes/zambda-ext.js +5 -1
  113. package/dist/esm/resources/classes/zambda-ext.js.map +1 -1
  114. package/dist/esm/resources/classes/zambda.d.ts +1 -0
  115. package/dist/esm/resources/classes/zambda.js +12 -8
  116. package/dist/esm/resources/classes/zambda.js.map +1 -1
  117. package/dist/esm/resources/classes/zambdaLogStream.d.ts +1 -0
  118. package/dist/esm/resources/classes/zambdaLogStream.js +7 -3
  119. package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
  120. package/dist/esm/resources/types/DeveloperInviteResponse.d.ts +0 -4
  121. package/dist/esm/resources/types/ErxCancelOrderParams.d.ts +6 -0
  122. package/dist/esm/resources/types/ErxCancelOrderResponse.d.ts +6 -0
  123. package/dist/esm/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
  124. package/dist/esm/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
  125. package/dist/esm/resources/types/FaxSendParams.d.ts +18 -0
  126. package/dist/esm/resources/types/FaxSendResponse.d.ts +10 -0
  127. package/dist/esm/resources/types/index.d.ts +6 -0
  128. package/dist/esm/tests/setup/constants.d.ts +2 -6
  129. package/dist/esm/tests/setup/global.d.ts +1 -0
  130. package/package.json +4 -4
  131. package/src/client/client.ts +6 -6
  132. package/src/config.ts +5 -0
  133. package/src/errors/index.ts +18 -2
  134. package/src/resources/classes/application.ts +15 -8
  135. package/src/resources/classes/charge.ts +5 -2
  136. package/src/resources/classes/conversation.ts +20 -5
  137. package/src/resources/classes/developer.ts +9 -6
  138. package/src/resources/classes/erx.ts +26 -4
  139. package/src/resources/classes/fax.ts +44 -0
  140. package/src/resources/classes/fhir.ts +3 -0
  141. package/src/resources/classes/index.ts +6 -0
  142. package/src/resources/classes/m2m.ts +10 -7
  143. package/src/resources/classes/messaging.ts +4 -1
  144. package/src/resources/classes/paymentMethod.ts +7 -4
  145. package/src/resources/classes/project.ts +5 -2
  146. package/src/resources/classes/rcm.ts +7 -4
  147. package/src/resources/classes/role.ts +8 -5
  148. package/src/resources/classes/secret.ts +7 -4
  149. package/src/resources/classes/telemed.ts +5 -2
  150. package/src/resources/classes/transactionalSMS.ts +4 -1
  151. package/src/resources/classes/user.ts +10 -7
  152. package/src/resources/classes/version.ts +4 -1
  153. package/src/resources/classes/z3-ext.ts +10 -4
  154. package/src/resources/classes/z3.ts +9 -6
  155. package/src/resources/classes/zambda-ext.ts +5 -1
  156. package/src/resources/classes/zambda.ts +11 -8
  157. package/src/resources/classes/zambdaLogStream.ts +10 -3
  158. package/src/resources/types/DeveloperInviteResponse.ts +0 -4
  159. package/src/resources/types/ErxCancelOrderParams.ts +8 -0
  160. package/src/resources/types/ErxCancelOrderResponse.ts +8 -0
  161. package/src/resources/types/ErxCancelPrescriptionParams.ts +8 -0
  162. package/src/resources/types/ErxCancelPrescriptionResponse.ts +8 -0
  163. package/src/resources/types/FaxSendParams.ts +20 -0
  164. package/src/resources/types/FaxSendResponse.ts +12 -0
  165. package/src/resources/types/index.ts +6 -0
  166. /package/dist/cjs/tests/{common.d.ts → integrational/common.d.ts} +0 -0
  167. /package/dist/esm/tests/{common.d.ts → integrational/common.d.ts} +0 -0
@@ -20,6 +20,9 @@ export class Z3 extends SDKResource {
20
20
  constructor(config: OystehrConfig) {
21
21
  super(config);
22
22
  }
23
+ baseUrlThunk(): string {
24
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
25
+ }
23
26
  /**
24
27
  * Uploads a file to the bucket and key. Files should be Blobs.
25
28
  * @param params upload file params
@@ -44,7 +47,7 @@ export class Z3 extends SDKResource {
44
47
  * Access Policy Resource: `Z3:BucketName`
45
48
  */
46
49
  listBuckets(request?: OystehrClientRequest): Promise<Z3ListBucketsResponse> {
47
- return this.request('/z3', 'get')(request);
50
+ return this.request('/z3', 'get', this.baseUrlThunk.bind(this))(request);
48
51
  }
49
52
  /**
50
53
  * 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.
@@ -53,7 +56,7 @@ export class Z3 extends SDKResource {
53
56
  * Access Policy Resource: `Z3:BucketName`
54
57
  */
55
58
  createBucket(params: Z3CreateBucketParams, request?: OystehrClientRequest): Promise<Z3CreateBucketResponse> {
56
- return this.request('/z3/{bucketName}', 'put')(params, request);
59
+ return this.request('/z3/{bucketName}', 'put', this.baseUrlThunk.bind(this))(params, request);
57
60
  }
58
61
  /**
59
62
  * 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.
@@ -62,7 +65,7 @@ export class Z3 extends SDKResource {
62
65
  * Access Policy Resource: `Z3:BucketName`
63
66
  */
64
67
  deleteBucket(params: Z3DeleteBucketParams, request?: OystehrClientRequest): Promise<void> {
65
- return this.request('/z3/{bucketName}', 'delete')(params, request);
68
+ return this.request('/z3/{bucketName}', 'delete', this.baseUrlThunk.bind(this))(params, request);
66
69
  }
67
70
  /**
68
71
  * 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.
@@ -71,7 +74,7 @@ export class Z3 extends SDKResource {
71
74
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
72
75
  */
73
76
  listObjects(params: Z3ListObjectsParams, request?: OystehrClientRequest): Promise<Z3ListObjectsResponse> {
74
- return this.request('/z3/{bucketName}/{objectPath+}', 'get')(params, request);
77
+ return this.request('/z3/{bucketName}/{objectPath+}', 'get', this.baseUrlThunk.bind(this))(params, request);
75
78
  }
76
79
  /**
77
80
  * 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.
@@ -80,7 +83,7 @@ export class Z3 extends SDKResource {
80
83
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
81
84
  */
82
85
  getPresignedUrl(params: Z3GetPresignedUrlParams, request?: OystehrClientRequest): Promise<Z3GetPresignedUrlResponse> {
83
- return this.request('/z3/{bucketName}/{objectPath+}', 'post')(params, request);
86
+ return this.request('/z3/{bucketName}/{objectPath+}', 'post', this.baseUrlThunk.bind(this))(params, request);
84
87
  }
85
88
  /**
86
89
  * 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.
@@ -89,6 +92,6 @@ export class Z3 extends SDKResource {
89
92
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
90
93
  */
91
94
  deleteObject(params: Z3DeleteObjectParams, request?: OystehrClientRequest): Promise<void> {
92
- return this.request('/z3/{bucketName}/{objectPath+}', 'delete')(params, request);
95
+ return this.request('/z3/{bucketName}/{objectPath+}', 'delete', this.baseUrlThunk.bind(this))(params, request);
93
96
  }
94
97
  }
@@ -1,5 +1,9 @@
1
1
  import { SDKResource } from '../../client/client';
2
2
 
3
+ function baseUrlThunk(this: SDKResource): string {
4
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
5
+ }
6
+
3
7
  export async function uploadFile(
4
8
  this: SDKResource,
5
9
  {
@@ -12,7 +16,7 @@ export async function uploadFile(
12
16
  filename?: string | undefined;
13
17
  }
14
18
  ): Promise<void> {
15
- const uploadUrl = await this.request('/zambda/{id}/s3-upload', 'post')({ id, filename });
19
+ const uploadUrl = await this.request('/zambda/{id}/s3-upload', 'post', baseUrlThunk.bind(this))({ id, filename });
16
20
  await fetch(uploadUrl.signedUrl, {
17
21
  method: 'PUT',
18
22
  body: file,
@@ -25,6 +25,9 @@ export class Zambda extends SDKResource {
25
25
  constructor(config: OystehrConfig) {
26
26
  super(config);
27
27
  }
28
+ baseUrlThunk(): string {
29
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
30
+ }
28
31
  uploadFile = ext.uploadFile;
29
32
  /**
30
33
  * Get a list of all Zambda Functions in the Project. [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.
@@ -33,7 +36,7 @@ export class Zambda extends SDKResource {
33
36
  * Access Policy Resource: `Zambda:Function`
34
37
  */
35
38
  list(request?: OystehrClientRequest): Promise<ZambdaListResponse> {
36
- return this.request('/zambda', 'get')(request);
39
+ return this.request('/zambda', 'get', this.baseUrlThunk.bind(this))(request);
37
40
  }
38
41
  /**
39
42
  * 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.
@@ -42,7 +45,7 @@ export class Zambda extends SDKResource {
42
45
  * Access Policy Resource: `Zambda:Function`
43
46
  */
44
47
  create(params: ZambdaCreateParams, request?: OystehrClientRequest): Promise<ZambdaCreateResponse> {
45
- return this.request('/zambda', 'post')(params, request);
48
+ return this.request('/zambda', 'post', this.baseUrlThunk.bind(this))(params, request);
46
49
  }
47
50
  /**
48
51
  * 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.
@@ -51,7 +54,7 @@ export class Zambda extends SDKResource {
51
54
  * Access Policy Resource: `Zambda:Function`
52
55
  */
53
56
  get(params: ZambdaGetParams, request?: OystehrClientRequest): Promise<ZambdaGetResponse> {
54
- return this.request('/zambda/{id}', 'get')(params, request);
57
+ return this.request('/zambda/{id}', 'get', this.baseUrlThunk.bind(this))(params, request);
55
58
  }
56
59
  /**
57
60
  * 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.
@@ -60,7 +63,7 @@ export class Zambda extends SDKResource {
60
63
  * Access Policy Resource: `Zambda:Function`
61
64
  */
62
65
  update(params: ZambdaUpdateParams, request?: OystehrClientRequest): Promise<ZambdaUpdateResponse> {
63
- return this.request('/zambda/{id}', 'patch')(params, request);
66
+ return this.request('/zambda/{id}', 'patch', this.baseUrlThunk.bind(this))(params, request);
64
67
  }
65
68
  /**
66
69
  * 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.
@@ -69,7 +72,7 @@ export class Zambda extends SDKResource {
69
72
  * Access Policy Resource: `Zambda:Function`
70
73
  */
71
74
  delete(params: ZambdaDeleteParams, request?: OystehrClientRequest): Promise<void> {
72
- return this.request('/zambda/{id}', 'delete')(params, request);
75
+ return this.request('/zambda/{id}', 'delete', this.baseUrlThunk.bind(this))(params, request);
73
76
  }
74
77
  /**
75
78
  * 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.
@@ -78,7 +81,7 @@ export class Zambda extends SDKResource {
78
81
  * Access Policy Resource: `Zambda:Function`
79
82
  */
80
83
  execute(params: ZambdaExecuteParams, request?: OystehrClientRequest): Promise<ZambdaExecuteResponse> {
81
- return this.request('/zambda/{id}/execute', 'post')(params, request);
84
+ return this.request('/zambda/{id}/execute', 'post', this.baseUrlThunk.bind(this))(params, request);
82
85
  }
83
86
  /**
84
87
  * 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.
@@ -89,7 +92,7 @@ export class Zambda extends SDKResource {
89
92
  params: ZambdaExecutePublicParams,
90
93
  request?: OystehrClientRequest
91
94
  ): Promise<ZambdaExecutePublicResponse> {
92
- return this.request('/zambda/{id}/execute-public', 'post')(params, request);
95
+ return this.request('/zambda/{id}/execute-public', 'post', this.baseUrlThunk.bind(this))(params, request);
93
96
  }
94
97
  /**
95
98
  * 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.
@@ -98,6 +101,6 @@ export class Zambda extends SDKResource {
98
101
  * Access Policy Resource: `Zambda:Function`
99
102
  */
100
103
  s3Upload(params: ZambdaS3UploadParams, request?: OystehrClientRequest): Promise<ZambdaS3UploadResponse> {
101
- return this.request('/zambda/{id}/s3-upload', 'post')(params, request);
104
+ return this.request('/zambda/{id}/s3-upload', 'post', this.baseUrlThunk.bind(this))(params, request);
102
105
  }
103
106
  }
@@ -16,6 +16,9 @@ export class ZambdaLogStream extends SDKResource {
16
16
  constructor(config: OystehrConfig) {
17
17
  super(config);
18
18
  }
19
+ baseUrlThunk(): string {
20
+ return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
21
+ }
19
22
  /**
20
23
  * Get the log streams 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.
21
24
  *
@@ -23,7 +26,7 @@ export class ZambdaLogStream extends SDKResource {
23
26
  * Access Policy Resource: `Zambda:Function`
24
27
  */
25
28
  list(params: ZambdaLogStreamListParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamListResponse> {
26
- return this.request('/zambda/{id}/logStream', 'post')(params, request);
29
+ return this.request('/zambda/{id}/logStream', 'post', this.baseUrlThunk.bind(this))(params, request);
27
30
  }
28
31
  /**
29
32
  * 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.
@@ -32,7 +35,7 @@ export class ZambdaLogStream extends SDKResource {
32
35
  * Access Policy Resource: `Zambda:Function`
33
36
  */
34
37
  search(params: ZambdaLogStreamSearchParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamSearchResponse> {
35
- return this.request('/zambda/{id}/logStream/search', 'post')(params, request);
38
+ return this.request('/zambda/{id}/logStream/search', 'post', this.baseUrlThunk.bind(this))(params, request);
36
39
  }
37
40
  /**
38
41
  * 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.
@@ -41,6 +44,10 @@ export class ZambdaLogStream extends SDKResource {
41
44
  * Access Policy Resource: `Zambda:Function`
42
45
  */
43
46
  get(params: ZambdaLogStreamGetParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamGetResponse> {
44
- return this.request('/zambda/{id}/logStream/{logStreamName}', 'post')(params, request);
47
+ return this.request(
48
+ '/zambda/{id}/logStream/{logStreamName}',
49
+ 'post',
50
+ this.baseUrlThunk.bind(this)
51
+ )(params, request);
45
52
  }
46
53
  }
@@ -14,10 +14,6 @@ export interface DeveloperInviteResponse {
14
14
  * The ID of the FHIR Practitioner resource that represents the developer. Also known as the Developer's "profile".
15
15
  */
16
16
  practitionerId: string;
17
- /**
18
- * The ID of the invite
19
- */
20
- invitationUrl: string;
21
17
  /**
22
18
  * The roles assigned to the developer.
23
19
  */
@@ -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
+ }
@@ -97,6 +97,10 @@ 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';
@@ -160,3 +164,5 @@ export * from './ZambdaLogStreamSearchParams';
160
164
  export * from './ZambdaLogStreamSearchResponse';
161
165
  export * from './ZambdaLogStreamGetParams';
162
166
  export * from './ZambdaLogStreamGetResponse';
167
+ export * from './FaxSendParams';
168
+ export * from './FaxSendResponse';