oro-sdk-apis 1.15.0 → 1.16.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.
@@ -128,3 +128,6 @@ export interface LegalData {
128
128
  rpAcceptedVersion: Url;
129
129
  rpAcceptedAtIP?: string;
130
130
  }
131
+ export declare type RoleBasedScopes = 'User' | 'Patient' | 'Practitioner' | 'Administrative';
132
+ export declare type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'practice.assignments.post';
133
+ 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,27 @@ 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
+ });
2894
2915
  };
2895
2916
 
2896
2917
  return TellerService;