oro-sdk-apis 1.23.3 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { APIService } from './api';
2
- import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid } from '../models';
2
+ import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid, ResumeConsultEmailRequest } from '../models';
3
3
  export declare class TellerService {
4
4
  private api;
5
5
  private baseURL;
@@ -31,4 +31,10 @@ export declare class TellerService {
31
31
  * @returns void
32
32
  */
33
33
  sendOnlineFaxSuccessfulEmail(consult: Consult, patientUuid: Uuid): Promise<void>;
34
+ /**
35
+ * This function will send an email to patient to allow them to resume the consult.
36
+ * @param req the body of the resume consult request
37
+ * @returns void
38
+ */
39
+ sendResumeConsultEmail(req: ResumeConsultEmailRequest): Promise<void>;
34
40
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.23.3",
2
+ "version": "1.24.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -10,3 +10,4 @@ export * from './vault'
10
10
  export * from './workflow'
11
11
  export * from './external'
12
12
  export * from './user'
13
+ export * from './teller'
@@ -0,0 +1,5 @@
1
+ export interface ResumeConsultEmailRequest {
2
+ patientEmail: string
3
+ locale: string
4
+ resumeConsultUrl: string
5
+ }
@@ -1,7 +1,14 @@
1
1
  import { APIService } from './api'
2
- import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid } from '../models'
2
+ import {
3
+ Consult,
4
+ DataCreateResponse,
5
+ LockboxDataRequest,
6
+ MedicalStatus,
7
+ Uuid,
8
+ ResumeConsultEmailRequest,
9
+ } from '../models'
3
10
  export class TellerService {
4
- constructor(private api: APIService, private baseURL: string) { }
11
+ constructor(private api: APIService, private baseURL: string) {}
5
12
 
6
13
  public async lockboxDataStore(
7
14
  lockboxUuid: Uuid,
@@ -68,16 +75,20 @@ export class TellerService {
68
75
  /**
69
76
  * This function will send an email to the patientUuid, saying that the online practice has been sent a fax successfully
70
77
  * @todo - Make service only exposed route
71
- * @param consult
72
- * @param patientUuid
78
+ * @param consult
79
+ * @param patientUuid
73
80
  * @returns void
74
81
  */
75
- public sendOnlineFaxSuccessfulEmail(
76
- consult: Consult,
77
- patientUuid: Uuid,
78
- ): Promise<void> {
79
- return this.api.post(
80
- `${this.baseURL}/v1/online-fax-notify`, { consult, patientUuid }
81
- )
82
+ public sendOnlineFaxSuccessfulEmail(consult: Consult, patientUuid: Uuid): Promise<void> {
83
+ return this.api.post(`${this.baseURL}/v1/online-fax-notify`, { consult, patientUuid })
84
+ }
85
+
86
+ /**
87
+ * This function will send an email to patient to allow them to resume the consult.
88
+ * @param req the body of the resume consult request
89
+ * @returns void
90
+ */
91
+ public sendResumeConsultEmail(req: ResumeConsultEmailRequest): Promise<void> {
92
+ return this.api.post(`${this.baseURL}/v1/resume-consult-email`, req)
82
93
  }
83
94
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 ORO Health Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.