oro-sdk-apis 1.23.1 → 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.1",
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'
@@ -110,6 +110,7 @@ export enum PracticeEmailKind {
110
110
  ExamResult = 'ExamResult',
111
111
  Reassigned = 'Reassigned',
112
112
  OnlinePharmacyFaxSent = 'OnlinePharmacyFaxSent',
113
+ ResumeConsult = 'ResumeConsult'
113
114
  }
114
115
 
115
116
  export interface PracticeAccount {
@@ -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, patient_uuid: 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
  }