oro-sdk 3.22.0 → 3.25.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/client.d.ts CHANGED
@@ -92,12 +92,13 @@ export declare class OroClient {
92
92
  * @param workflow
93
93
  * @param recoveryQA
94
94
  * @param indexSearch create search index for the consultation if true
95
+ * @param onProgress callback that is called whenever a new step of patient registration is executed. Note: progress ranges from 0 to 1, and descriptionKey is a description of the progress as a key so the app would use it to translate the description
95
96
  * @returns
96
97
  */
97
98
  registerPatient(patientUuid: Uuid, consult: ConsultRequest, workflow: WorkflowData, recoveryQA?: {
98
99
  recoverySecurityQuestions: string[];
99
100
  recoverySecurityAnswers: string[];
100
- }, indexSearch?: boolean): Promise<RegisterPatientOutput>;
101
+ }, indexSearch?: boolean, onProgress?: (progress: number, descriptionKey: string) => void): Promise<RegisterPatientOutput>;
101
102
  /**
102
103
  * Fetches all grants, and consultations that exist in each lockbox
103
104
  * Then updates the index for the current user with the lockbox consult relationship
@@ -19,12 +19,16 @@ import { OroClient, RegisterPatientOutput } from '..';
19
19
  * @param masterKey
20
20
  * @param recoveryQA
21
21
  * @param indexSearch create search index for the consultation if true
22
+ * @param onProgress callback that is called whenever a new step of patient registration is executed. Note: progress ranges from 0 to 1, and descriptionKey is a description of the progress as a key so the app would use it to translate the description
22
23
  * @returns the successful registration
23
24
  */
24
25
  export declare function registerPatient(patientUuid: Uuid, consultRequest: ConsultRequest, workflow: WorkflowData, oroClient: OroClient, masterKey?: Uuid, recoveryQA?: {
25
26
  recoverySecurityQuestions: string[];
26
27
  recoverySecurityAnswers: string[];
27
- }, indexSearch?: boolean): Promise<RegisterPatientOutput>;
28
+ }, indexSearch?: boolean, onProgress?: (progress: number, descriptionKey: string, extraInfo?: {
29
+ storedImagesNum?: number;
30
+ totalImagesNum?: number;
31
+ }) => void): Promise<RegisterPatientOutput>;
28
32
  /**
29
33
  * Extracts the workflow MetadataCategory for Personal, ChildPersonal and OtherPersonal
30
34
  * then stores it in the vault