oro-sdk-apis 1.16.0 → 1.17.1
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/dist/models/guard.d.ts +2 -1
- package/dist/oro-sdk-apis.cjs.development.js +19 -2
- 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 +19 -2
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/teller.d.ts +6 -0
- package/package.json +1 -1
- package/src/models/guard.ts +2 -1
- package/src/services/apisPracticeManager.ts +3 -0
- package/src/services/teller.ts +11 -0
|
@@ -15,4 +15,10 @@ export declare class TellerService {
|
|
|
15
15
|
* @returns void
|
|
16
16
|
*/
|
|
17
17
|
notifyFaxFailed(practiceUuid: Uuid, consultationUuid: Uuid, consultationShortId: string, fax: string): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* This function let's you reassign a practictioner to a consult and send a notification email
|
|
20
|
+
* @param uuidConsult the uuid of the consult to reassign
|
|
21
|
+
* @param newPractitionerUuid the uuid of the practitioner that will get reassigned
|
|
22
|
+
*/
|
|
23
|
+
reassignmentEmail(uuidConsult: Uuid, newPractitionerUuid: Uuid): Promise<void>;
|
|
18
24
|
}
|
package/package.json
CHANGED
package/src/models/guard.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Uuid, Base64String, TokenData, RFC3339Date, Url } from './'
|
|
2
|
+
import { AllRoleType } from './practice'
|
|
2
3
|
|
|
3
4
|
export type AuthRefreshFunc = (refreshToken?: string) => Promise<AuthTokenResponse>
|
|
4
5
|
export interface Tokens {
|
|
@@ -145,7 +146,7 @@ export interface LegalData {
|
|
|
145
146
|
rpAcceptedAtIP?: string
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
export type RoleBasedScopes =
|
|
149
|
+
export type RoleBasedScopes = AllRoleType
|
|
149
150
|
|
|
150
151
|
export type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'practice.assignments.post'
|
|
151
152
|
|
package/src/services/teller.ts
CHANGED
|
@@ -51,4 +51,15 @@ export class TellerService {
|
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* This function let's you reassign a practictioner to a consult and send a notification email
|
|
57
|
+
* @param uuidConsult the uuid of the consult to reassign
|
|
58
|
+
* @param newPractitionerUuid the uuid of the practitioner that will get reassigned
|
|
59
|
+
*/
|
|
60
|
+
public reassignmentEmail(uuidConsult: Uuid, newPractitionerUuid: Uuid) {
|
|
61
|
+
return this.api.post<void>(`${this.baseURL}/v1/consult/${uuidConsult}/reassignment-email`, {
|
|
62
|
+
newPractitionerUuid,
|
|
63
|
+
})
|
|
64
|
+
}
|
|
54
65
|
}
|