oro-sdk 5.3.4 → 5.3.5

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/client.d.ts CHANGED
@@ -164,7 +164,9 @@ export declare class OroClient {
164
164
  * @param withNotification if the insertion of data requires notification
165
165
  * @returns the data uuid
166
166
  */
167
- createConsultationAttachmentData(lockboxUuid: Uuid, data: File, consultationId: string, documentType: DocumentType, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, withNotification?: boolean): Promise<DataCreateResponse>;
167
+ createConsultationAttachmentData(lockboxUuid: Uuid, data: File, consultationId: string, documentType: DocumentType, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, options?: {
168
+ withNotification?: boolean;
169
+ }): Promise<DataCreateResponse>;
168
170
  /**
169
171
  * @name createJsonData
170
172
  * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a JSON
@@ -174,12 +176,14 @@ export declare class OroClient {
174
176
  * @param privateMeta the metadata that will be secured in the vault
175
177
  * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
176
178
  * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
177
- * @param withNotification if the insertion of data requires notification
179
+ * @param options if the insertion of data requires email notification
178
180
  * @returns the data uuid
179
181
  */
180
182
  createJsonData<T extends Metadata>(lockboxUuid: Uuid, data: any, meta?: T, privateMeta?: {
181
183
  [val: string]: any;
182
- }, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, withNotification?: boolean): Promise<DataCreateResponse>;
184
+ }, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, options?: {
185
+ withNotification?: boolean;
186
+ }): Promise<DataCreateResponse>;
183
187
  /**
184
188
  * Get or upsert a data in lockbox
185
189
  * @param lockboxUuid the lockbox uuid
@@ -187,10 +191,13 @@ export declare class OroClient {
187
191
  * @param publicMetadata the public Metadata
188
192
  * @param privateMetadata the private Metadata
189
193
  * @param forceReplace set true when the insertion of data requires to replace the data when it exists already
190
- * @param withNotification if the insertion of data requires notification
194
+ * @param options if the insertion of data requires email notification
191
195
  * @returns the data uuid
192
196
  */
193
- getOrInsertJsonData<M extends Metadata>(lockboxUuid: Uuid, data: any, publicMetadata: M, privateMetadata: Metadata, forceReplace?: boolean, withNotification?: boolean): Promise<Uuid>;
197
+ getOrInsertJsonData<M extends Metadata>(lockboxUuid: Uuid, data: any, publicMetadata: M, privateMetadata: Metadata, options?: {
198
+ withNotification?: boolean;
199
+ forceReplace?: boolean;
200
+ }): Promise<Uuid>;
194
201
  /**
195
202
  * @name createBytesData
196
203
  * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a Bytes
@@ -205,7 +212,9 @@ export declare class OroClient {
205
212
  */
206
213
  createBytesData<T extends Metadata>(lockboxUuid: Uuid, data: Uint8Array, meta: T, privateMeta: {
207
214
  [val: string]: any;
208
- }, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, withNotification?: boolean): Promise<DataCreateResponse>;
215
+ }, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, options?: {
216
+ withNotification?: boolean;
217
+ }): Promise<DataCreateResponse>;
209
218
  /**
210
219
  * @name getJsonData
211
220
  * @description Fetches and decrypts the lockbox data with the cached shared secret.
@@ -262,7 +271,9 @@ export declare class OroClient {
262
271
  * @param forceRefresh force data refresh (default to false)
263
272
  * @returns the personal data
264
273
  */
265
- getPersonalInformationsFromConsultId(consultationId: Uuid, category: MetadataCategory.Personal | MetadataCategory.ChildPersonal | MetadataCategory.OtherPersonal, forceRefresh?: boolean): Promise<LocalizedData<PopulatedWorkflowData>[]>;
274
+ getPersonalInformationsFromConsultId(consultationId: Uuid, category: MetadataCategory.Personal | MetadataCategory.ChildPersonal | MetadataCategory.OtherPersonal, options?: {
275
+ forceRefresh: boolean;
276
+ }): Promise<LocalizedData<PopulatedWorkflowData>[]>;
266
277
  /**
267
278
  * Retrieves the patient medical data associated to the `consultationId`
268
279
  * The `consultationId` only helps to retrieve the patient lockboxes
@@ -271,7 +282,9 @@ export declare class OroClient {
271
282
  * @param forceRefresh force data refresh (default to false)
272
283
  * @returns the medical data
273
284
  */
274
- getMedicalDataFromConsultId(consultationId: Uuid, forceRefresh?: boolean): Promise<LocalizedData<PopulatedWorkflowData>[]>;
285
+ getMedicalDataFromConsultId(consultationId: Uuid, options?: {
286
+ forceRefresh: boolean;
287
+ }): Promise<LocalizedData<PopulatedWorkflowData>[]>;
275
288
  private getMetaCategoryFromConsultId;
276
289
  /**
277
290
  * @description retrieves the personal information stored in the first owned lockbox
@@ -302,7 +315,9 @@ export declare class OroClient {
302
315
  * @param forceRefresh
303
316
  * @returns the lockbox manifest
304
317
  */
305
- getLockboxManifest(lockboxUuid: Uuid, filter: Metadata, expandPrivateMetadata: boolean, lockboxOwnerUuid?: Uuid, forceRefresh?: boolean): Promise<LockboxManifest>;
318
+ getLockboxManifest(lockboxUuid: Uuid, filter: Metadata, expandPrivateMetadata: boolean, lockboxOwnerUuid?: Uuid, options?: {
319
+ forceRefresh: boolean;
320
+ }): Promise<LockboxManifest>;
306
321
  /**
307
322
  * @description Create or update the personal information and store it in the first owned lockbox
308
323
  * @param identity The identity to use
@@ -372,7 +387,9 @@ export declare class OroClient {
372
387
  * @param consultationId
373
388
  * @returns
374
389
  */
375
- getPatientConsultationData(consultationId: Uuid, forceRefresh?: boolean): Promise<PopulatedWorkflowData[]>;
390
+ getPatientConsultationData(consultationId: Uuid, options?: {
391
+ forceRefresh: boolean;
392
+ }): Promise<PopulatedWorkflowData[]>;
376
393
  /**
377
394
  * This function returns the patient prescriptions
378
395
  * @param consultationId