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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.16.0",
2
+ "version": "1.17.1",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -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 = 'User' | 'Patient' | 'Practitioner' | 'Administrative'
149
+ export type RoleBasedScopes = AllRoleType
149
150
 
150
151
  export type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'practice.assignments.post'
151
152
 
@@ -42,6 +42,9 @@ export class ApisPracticeManager {
42
42
  }
43
43
  }
44
44
 
45
+ // Initialize the M2M token
46
+ await authTokenFunc()
47
+
45
48
  // Set the refresh tokens callback
46
49
  newPracticeInstance.apiService.setAuthRefreshFn(authTokenFunc)
47
50
 
@@ -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
  }