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
package/dist/models/guard.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Uuid, Base64String, TokenData, RFC3339Date, Url } from './';
|
|
2
|
+
import { AllRoleType } from './practice';
|
|
2
3
|
export declare type AuthRefreshFunc = (refreshToken?: string) => Promise<AuthTokenResponse>;
|
|
3
4
|
export interface Tokens {
|
|
4
5
|
accessToken?: string;
|
|
@@ -128,6 +129,6 @@ export interface LegalData {
|
|
|
128
129
|
rpAcceptedVersion: Url;
|
|
129
130
|
rpAcceptedAtIP?: string;
|
|
130
131
|
}
|
|
131
|
-
export declare type RoleBasedScopes =
|
|
132
|
+
export declare type RoleBasedScopes = AllRoleType;
|
|
132
133
|
export declare type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'practice.assignments.post';
|
|
133
134
|
export declare type AllScopes = RoleBasedScopes | PermissionBasedScopes;
|
|
@@ -1245,14 +1245,19 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
|
1245
1245
|
return function authTokenFunc() {
|
|
1246
1246
|
return _ref.apply(this, arguments);
|
|
1247
1247
|
};
|
|
1248
|
-
}(); //
|
|
1248
|
+
}(); // Initialize the M2M token
|
|
1249
1249
|
|
|
1250
1250
|
|
|
1251
|
+
_context2.next = 7;
|
|
1252
|
+
return authTokenFunc();
|
|
1253
|
+
|
|
1254
|
+
case 7:
|
|
1255
|
+
// Set the refresh tokens callback
|
|
1251
1256
|
newPracticeInstance.apiService.setAuthRefreshFn(authTokenFunc);
|
|
1252
1257
|
this.practiceInstances.set(practiceUuid, newPracticeInstance);
|
|
1253
1258
|
return _context2.abrupt("return", newPracticeInstance);
|
|
1254
1259
|
|
|
1255
|
-
case
|
|
1260
|
+
case 10:
|
|
1256
1261
|
case "end":
|
|
1257
1262
|
return _context2.stop();
|
|
1258
1263
|
}
|
|
@@ -2912,6 +2917,18 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2912
2917
|
practice_uuid: practiceUuid
|
|
2913
2918
|
}
|
|
2914
2919
|
});
|
|
2920
|
+
}
|
|
2921
|
+
/**
|
|
2922
|
+
* This function let's you reassign a practictioner to a consult and send a notification email
|
|
2923
|
+
* @param uuidConsult the uuid of the consult to reassign
|
|
2924
|
+
* @param newPractitionerUuid the uuid of the practitioner that will get reassigned
|
|
2925
|
+
*/
|
|
2926
|
+
;
|
|
2927
|
+
|
|
2928
|
+
_proto.reassignmentEmail = function reassignmentEmail(uuidConsult, newPractitionerUuid) {
|
|
2929
|
+
return this.api.post(this.baseURL + "/v1/consult/" + uuidConsult + "/reassignment-email", {
|
|
2930
|
+
newPractitionerUuid: newPractitionerUuid
|
|
2931
|
+
});
|
|
2915
2932
|
};
|
|
2916
2933
|
|
|
2917
2934
|
return TellerService;
|