oro-sdk-apis 1.23.3 → 1.25.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.
- package/README.md +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/practice.d.ts +12 -5
- package/dist/models/teller.d.ts +5 -0
- package/dist/oro-sdk-apis.cjs.development.js +14 -4
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +14 -4
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/practice.d.ts +1 -1
- package/dist/services/teller.d.ts +7 -1
- package/package.json +1 -1
- package/src/models/index.ts +1 -0
- package/src/models/practice.ts +22 -7
- package/src/models/teller.ts +5 -0
- package/src/services/practice.ts +1 -2
- package/src/services/teller.ts +22 -11
- package/LICENSE +0 -21
|
@@ -73,7 +73,7 @@ export declare class PracticeService {
|
|
|
73
73
|
* @param consultRequest (optional) consult request to use. If defined, when payment service call our hooks in practice, it will try to create a consult with these infos.
|
|
74
74
|
* @returns
|
|
75
75
|
*/
|
|
76
|
-
practiceCreatePaymentsIntent(practiceUuid: Uuid, planId: number, userEmail: string, isoLocality?: string, url_subdomain?: string,
|
|
76
|
+
practiceCreatePaymentsIntent(practiceUuid: Uuid, planId: number, userEmail: string, isoLocality?: string, url_subdomain?: string, consultRequest?: ConsultRequestMetadata): Promise<PracticePaymentIntent>;
|
|
77
77
|
practiceGetPaymentsIntent(practiceUuid: Uuid, paymentIntentId: number): Promise<PracticePaymentIntent>;
|
|
78
78
|
practiceUpdatePaymentsIntent(practiceUuid: string, idPraticePaymentIntent: number, practicePaymentIntent: PracticePaymentIntent, userEmail: string, promotionCode?: string): Promise<PracticePaymentIntent>;
|
|
79
79
|
/**
|
|
@@ -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
package/src/models/index.ts
CHANGED
package/src/models/practice.ts
CHANGED
|
@@ -110,7 +110,7 @@ export enum PracticeEmailKind {
|
|
|
110
110
|
ExamResult = 'ExamResult',
|
|
111
111
|
Reassigned = 'Reassigned',
|
|
112
112
|
OnlinePharmacyFaxSent = 'OnlinePharmacyFaxSent',
|
|
113
|
-
ResumeConsult = 'ResumeConsult'
|
|
113
|
+
ResumeConsult = 'ResumeConsult',
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
export interface PracticeAccount {
|
|
@@ -125,10 +125,11 @@ export interface PracticeAccount {
|
|
|
125
125
|
export enum PracticeConfigKind {
|
|
126
126
|
PractitionerConsultList = 'PractitionerConsultList',
|
|
127
127
|
PractitionerChatbox = 'PractitionerChatbox',
|
|
128
|
-
|
|
128
|
+
PracticeConfigExample = 'PracticeConfigExample',
|
|
129
129
|
PracticeLocaleSwitcher = 'PracticeLocaleSwitcher',
|
|
130
130
|
PracticeCookieBanner = 'PracticeCookieBanner',
|
|
131
131
|
PracticePharmacyPicker = 'PracticePharmacyPicker',
|
|
132
|
+
PracticeCssVariables = 'PracticeCssVariables',
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
export interface PracticeConfig<K, T> {
|
|
@@ -179,7 +180,19 @@ export type PracticeConfigPracticeCookieBanner = PracticeConfig<
|
|
|
179
180
|
>
|
|
180
181
|
|
|
181
182
|
// This type is for demonstration only for now
|
|
182
|
-
export type
|
|
183
|
+
export type PracticeConfigPracticeConfigExample = PracticeConfig<
|
|
184
|
+
PracticeConfigKind.PracticeConfigExample,
|
|
185
|
+
{ primaryColor?: string }
|
|
186
|
+
>
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* This interface describes all practice css variables
|
|
190
|
+
* The keys should reflect the exact css name
|
|
191
|
+
*/
|
|
192
|
+
export type PracticeConfigPracticeCssVariables = PracticeConfig<
|
|
193
|
+
PracticeConfigKind.PracticeCssVariables,
|
|
194
|
+
Record<string, string>
|
|
195
|
+
>
|
|
183
196
|
|
|
184
197
|
export type PracticeConfigs =
|
|
185
198
|
| PracticeConfigPractitionerConsultList
|
|
@@ -187,7 +200,8 @@ export type PracticeConfigs =
|
|
|
187
200
|
| PracticeConfigPracticeLocaleSwitcher
|
|
188
201
|
| PracticeConfigPracticeCookieBanner
|
|
189
202
|
| PracticeConfigPracticeOnlinePharmacy
|
|
190
|
-
|
|
|
203
|
+
| PracticeConfigPracticeCssVariables
|
|
204
|
+
| PracticeConfigPracticeConfigExample // Here for demonstration only
|
|
191
205
|
|
|
192
206
|
export interface PracticeWorkflow {
|
|
193
207
|
id?: number ///optional for insertion
|
|
@@ -312,8 +326,8 @@ export interface AssignmentRequest {
|
|
|
312
326
|
status?: AssignmentStatus
|
|
313
327
|
uuidConsult?: string
|
|
314
328
|
tagSpecialty?: string
|
|
315
|
-
isoLocality?: string
|
|
316
|
-
isoLanguage?: string
|
|
329
|
+
isoLocality?: string
|
|
330
|
+
isoLanguage?: string
|
|
317
331
|
}
|
|
318
332
|
|
|
319
333
|
export type Assignment = {
|
|
@@ -388,10 +402,11 @@ export interface Practitioner {
|
|
|
388
402
|
export interface HydratedPracticeConfigs {
|
|
389
403
|
[PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList
|
|
390
404
|
[PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox
|
|
391
|
-
[PracticeConfigKind.
|
|
405
|
+
[PracticeConfigKind.PracticeConfigExample]?: PracticeConfigPracticeConfigExample
|
|
392
406
|
[PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher
|
|
393
407
|
[PracticeConfigKind.PracticeCookieBanner]?: PracticeConfigPracticeCookieBanner
|
|
394
408
|
[PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy
|
|
409
|
+
[PracticeConfigKind.PracticeCssVariables]?: PracticeConfigPracticeCssVariables
|
|
395
410
|
}
|
|
396
411
|
|
|
397
412
|
export interface Practice {
|
package/src/services/practice.ts
CHANGED
|
@@ -195,7 +195,6 @@ export class PracticeService {
|
|
|
195
195
|
userEmail: string,
|
|
196
196
|
isoLocality?: string,
|
|
197
197
|
url_subdomain?: string,
|
|
198
|
-
promotionCode?: string,
|
|
199
198
|
consultRequest?: ConsultRequestMetadata
|
|
200
199
|
): Promise<PracticePaymentIntent> {
|
|
201
200
|
return this.api.post<PracticePaymentIntent>(
|
|
@@ -206,7 +205,7 @@ export class PracticeService {
|
|
|
206
205
|
isoLocality,
|
|
207
206
|
consultRequest,
|
|
208
207
|
},
|
|
209
|
-
{ params: { url_subdomain
|
|
208
|
+
{ params: { url_subdomain } }
|
|
210
209
|
)
|
|
211
210
|
}
|
|
212
211
|
|
package/src/services/teller.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { APIService } from './api'
|
|
2
|
-
import {
|
|
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
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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.
|