oro-sdk-apis 1.15.0 → 1.17.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,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,3 +129,6 @@ export interface LegalData {
128
129
  rpAcceptedVersion: Url;
129
130
  rpAcceptedAtIP?: string;
130
131
  }
132
+ export declare type RoleBasedScopes = AllRoleType;
133
+ export declare type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'practice.assignments.post';
134
+ export declare type AllScopes = RoleBasedScopes | PermissionBasedScopes;
@@ -1,4 +1,4 @@
1
- import { PlaceData } from ".";
1
+ import { PlaceData } from '.';
2
2
  export declare enum WorkflowType {
3
3
  Onboard = "Onboard",
4
4
  Followup = "Followup",
@@ -249,8 +249,17 @@ export interface ConsultRequestMetadata {
249
249
  isoLocalityRequired?: string;
250
250
  isoLanguageRequired: string;
251
251
  }
252
- export interface Assignment {
253
- id?: number;
252
+ export interface AssignmentRequest {
253
+ uuidAssignor: string;
254
+ uuidPractitioner?: string;
255
+ status?: AssignmentStatus;
256
+ uuidConsult?: string;
257
+ tagSpecialty?: string;
258
+ isoLocality?: string;
259
+ isoLanguage?: string;
260
+ }
261
+ export declare type Assignment = {
262
+ id: number;
254
263
  uuidPractice: string;
255
264
  uuidAssignor: string;
256
265
  uuidPractitioner?: string;
@@ -258,7 +267,7 @@ export interface Assignment {
258
267
  uuidConsult?: string;
259
268
  tagSpecialty?: string;
260
269
  timeAssigned?: string;
261
- }
270
+ };
262
271
  export interface PractitionerRole {
263
272
  id?: number;
264
273
  uuidPractice: string;
@@ -2891,6 +2891,39 @@ var TellerService = /*#__PURE__*/function () {
2891
2891
  statusMedical: statusMedical,
2892
2892
  neverExpires: neverExpires
2893
2893
  });
2894
+ }
2895
+ /**
2896
+ * This function notifies teller that the fax sent for a specific consult did not get through
2897
+ * @param practiceUuid the practice uuid linked to the consult
2898
+ * @param consultationUuid the consultation uuid
2899
+ * @param consultationShortId the consultation short id
2900
+ * @param fax the address where to send the fax
2901
+ * @returns void
2902
+ */
2903
+ ;
2904
+
2905
+ _proto.notifyFaxFailed = function notifyFaxFailed(practiceUuid, consultationUuid, consultationShortId, fax) {
2906
+ return this.api.post(this.baseURL + "/v1/fax-failed", {
2907
+ consultationUuid: consultationUuid,
2908
+ consultationShortId: consultationShortId,
2909
+ fax: fax
2910
+ }, {
2911
+ params: {
2912
+ practice_uuid: practiceUuid
2913
+ }
2914
+ });
2915
+ }
2916
+ /**
2917
+ * This function let's you reassign a practictioner to a consult and send a notification email
2918
+ * @param uuidConsult the uuid of the consult to reassign
2919
+ * @param newPractitionerUuid the uuid of the practitioner that will get reassigned
2920
+ */
2921
+ ;
2922
+
2923
+ _proto.reassignmentEmail = function reassignmentEmail(uuidConsult, newPractitionerUuid) {
2924
+ return this.api.post(this.baseURL + "/v1/consult/" + uuidConsult + "/reassignment-email", {
2925
+ newPractitionerUuid: newPractitionerUuid
2926
+ });
2894
2927
  };
2895
2928
 
2896
2929
  return TellerService;