oro-sdk 5.3.6 → 5.4.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.
@@ -843,52 +843,53 @@ function _getImagesFromIndexDb() {
843
843
  }
844
844
  function populateWorkflowField(_x6, _x7) {
845
845
  return _populateWorkflowField.apply(this, arguments);
846
- } /**
847
- * Determine if a question is triggered by some answers
848
- *
849
- * We use the following logical combinations of rules:
850
- *
851
- * #### Single string
852
- *
853
- * ```
854
- * // Required: rule1
855
- * rules: rule1
856
- * ```
857
- *
858
- * #### Array of strings (AND is applied between statements):
859
- *
860
- * ```
861
- * // Required: rule1 AND rule2
862
- * rules: [ rule1, rule2 ]
863
- * ```
864
- *
865
- * #### Array of arrays of strings (OR is applied between inner arrays. AND is applied between inner arrays statements)
866
- *
867
- * ```
868
- * // Required: rule1 OR rule2
869
- * rules: [
870
- * [ rule1 ],
871
- * [ rule2 ]
872
- * ]
873
- *
874
- * // Required: rule1 OR (rule2 AND rule3)
875
- * rules: [
876
- * [ rule1 ],
877
- * [ rule2, rule3 ]
878
- * ]
879
- *
880
- * // THIS IS FORBIDDEN
881
- * rules: [
882
- * rule1, // <-- THIS IS FORBIDDEN. Instead use [ rule1 ]
883
- * [ rule2, rule3 ]
884
- * ]
885
- * ```
886
- *
887
- * @param triggers the triggering rules
888
- * @param answers the answers to check againts triggering rules
889
- * @returns `true` if triggers are verified against ansers. Otherwise, returns `false`.
890
- * @throws an Error if triggers typing is wrong
891
- */
846
+ }
847
+ /**
848
+ * Determine if a question is triggered by some answers
849
+ *
850
+ * We use the following logical combinations of rules:
851
+ *
852
+ * #### Single string
853
+ *
854
+ * ```
855
+ * // Required: rule1
856
+ * rules: rule1
857
+ * ```
858
+ *
859
+ * #### Array of strings (AND is applied between statements):
860
+ *
861
+ * ```
862
+ * // Required: rule1 AND rule2
863
+ * rules: [ rule1, rule2 ]
864
+ * ```
865
+ *
866
+ * #### Array of arrays of strings (OR is applied between inner arrays. AND is applied between inner arrays statements)
867
+ *
868
+ * ```
869
+ * // Required: rule1 OR rule2
870
+ * rules: [
871
+ * [ rule1 ],
872
+ * [ rule2 ]
873
+ * ]
874
+ *
875
+ * // Required: rule1 OR (rule2 AND rule3)
876
+ * rules: [
877
+ * [ rule1 ],
878
+ * [ rule2, rule3 ]
879
+ * ]
880
+ *
881
+ * // THIS IS FORBIDDEN
882
+ * rules: [
883
+ * rule1, // <-- THIS IS FORBIDDEN. Instead use [ rule1 ]
884
+ * [ rule2, rule3 ]
885
+ * ]
886
+ * ```
887
+ *
888
+ * @param triggers the triggering rules
889
+ * @param answers the answers to check againts triggering rules
890
+ * @returns `true` if triggers are verified against ansers. Otherwise, returns `false`.
891
+ * @throws an Error if triggers typing is wrong
892
+ */
892
893
  function _populateWorkflowField() {
893
894
  _populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
894
895
  var answer, displayedAnswer;
@@ -1390,15 +1391,16 @@ function _registerPatient() {
1390
1391
  }
1391
1392
  function getOrCreatePatientLockbox(_x9) {
1392
1393
  return _getOrCreatePatientLockbox.apply(this, arguments);
1393
- } /**
1394
- * Store all patient related information into his/her lockbox
1395
- * @param consultationId The consultation id
1396
- * @param isoLanguage the prefered language of communication (ISO 639-3 https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes)
1397
- * @param lockboxUuid the lockbox uuid to store data in
1398
- * @param workflow the workflow used to extract informations
1399
- * @param oroClient an oroClient instance
1400
- * @returns
1401
- */
1394
+ }
1395
+ /**
1396
+ * Store all patient related information into his/her lockbox
1397
+ * @param consultationId The consultation id
1398
+ * @param isoLanguage the prefered language of communication (ISO 639-3 https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes)
1399
+ * @param lockboxUuid the lockbox uuid to store data in
1400
+ * @param workflow the workflow used to extract informations
1401
+ * @param oroClient an oroClient instance
1402
+ * @returns
1403
+ */
1402
1404
  function _getOrCreatePatientLockbox() {
1403
1405
  _getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(oroClient) {
1404
1406
  var grants, lockboxResponse, tokens;
@@ -1497,15 +1499,16 @@ function _storePatientData() {
1497
1499
  }
1498
1500
  function storeImageAliases(_x15, _x16, _x17, _x18, _x19) {
1499
1501
  return _storeImageAliases.apply(this, arguments);
1500
- } /**
1501
- * Extracts the workflow MetadataCategory for Personal, ChildPersonal and OtherPersonal
1502
- * then stores it in the vault
1503
- *
1504
- * @param workflow
1505
- * @param lockboxUuid
1506
- * @param category
1507
- * @returns The data uuid
1508
- */
1502
+ }
1503
+ /**
1504
+ * Extracts the workflow MetadataCategory for Personal, ChildPersonal and OtherPersonal
1505
+ * then stores it in the vault
1506
+ *
1507
+ * @param workflow
1508
+ * @param lockboxUuid
1509
+ * @param category
1510
+ * @returns The data uuid
1511
+ */
1509
1512
  function _storeImageAliases() {
1510
1513
  _storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, lockboxUuid, workflow, oroClient, progress) {
1511
1514
  var images, nonNullImages, storedImagesNum, totalImagesNum, promises;
@@ -2001,17 +2004,19 @@ var OroClient = /*#__PURE__*/function () {
2001
2004
  return _cleanIndex.apply(this, arguments);
2002
2005
  }
2003
2006
  return cleanIndex;
2004
- }() /**
2005
- * Generates an RSA key pair and password payload (rsa private key encrypted with the password)
2006
- * Calls Guard to sign up with the email address, password, practice, legal and token data
2007
- *
2008
- * @param email
2009
- * @param password
2010
- * @param practice
2011
- * @param legal
2012
- * @param tokenData
2013
- * @returns
2014
- */;
2007
+ }()
2008
+ /**
2009
+ * Generates an RSA key pair and password payload (rsa private key encrypted with the password)
2010
+ * Calls Guard to sign up with the email address, password, practice, legal and token data
2011
+ *
2012
+ * @param email
2013
+ * @param password
2014
+ * @param practice
2015
+ * @param legal
2016
+ * @param tokenData
2017
+ * @returns
2018
+ */
2019
+ ;
2015
2020
  _proto.signUp =
2016
2021
  /*#__PURE__*/
2017
2022
  function () {
@@ -2059,11 +2064,13 @@ var OroClient = /*#__PURE__*/function () {
2059
2064
  return _signUp.apply(this, arguments);
2060
2065
  }
2061
2066
  return signUp;
2062
- }() /**
2063
- * Parse the given accessToken claims by calling guard whoami and update theidentity to set it's emailConfirmed flag
2064
- * @param accessToken
2065
- * @returns The identity related to confirmedEmail
2066
- */;
2067
+ }()
2068
+ /**
2069
+ * Parse the given accessToken claims by calling guard whoami and update theidentity to set it's emailConfirmed flag
2070
+ * @param accessToken
2071
+ * @returns The identity related to confirmedEmail
2072
+ */
2073
+ ;
2067
2074
  _proto.confirmEmail =
2068
2075
  /*#__PURE__*/
2069
2076
  function () {
@@ -2094,16 +2101,18 @@ var OroClient = /*#__PURE__*/function () {
2094
2101
  return _confirmEmail.apply(this, arguments);
2095
2102
  }
2096
2103
  return confirmEmail;
2097
- }() /**
2098
- * Calls Guard to sign in with the email address, password and one time password (if MFA is enabled)
2099
- * Then recover's the rsa private key from the recovery payload
2100
- *
2101
- * @param practiceUuid
2102
- * @param email
2103
- * @param password
2104
- * @param otp
2105
- * @returns the user identity
2106
- */;
2104
+ }()
2105
+ /**
2106
+ * Calls Guard to sign in with the email address, password and one time password (if MFA is enabled)
2107
+ * Then recover's the rsa private key from the recovery payload
2108
+ *
2109
+ * @param practiceUuid
2110
+ * @param email
2111
+ * @param password
2112
+ * @param otp
2113
+ * @returns the user identity
2114
+ */
2115
+ ;
2107
2116
  _proto.signIn =
2108
2117
  /*#__PURE__*/
2109
2118
  function () {
@@ -2145,10 +2154,12 @@ var OroClient = /*#__PURE__*/function () {
2145
2154
  return _signIn.apply(this, arguments);
2146
2155
  }
2147
2156
  return signIn;
2148
- }() /**
2149
- * Will attempt to recover an existing login session and set back
2150
- * the private key in scope
2151
- */;
2157
+ }()
2158
+ /**
2159
+ * Will attempt to recover an existing login session and set back
2160
+ * the private key in scope
2161
+ */
2162
+ ;
2152
2163
  _proto.resumeSession =
2153
2164
  /*#__PURE__*/
2154
2165
  function () {
@@ -2187,13 +2198,15 @@ var OroClient = /*#__PURE__*/function () {
2187
2198
  return _resumeSession.apply(this, arguments);
2188
2199
  }
2189
2200
  return resumeSession;
2190
- }() /**
2191
- * This function let's you encrypt locally an Object
2192
- * @param value the Object to encrypt
2193
- * @returns a LocalEncryptedData Object
2194
- * @throws IncompleteAuthentication if rsa is not set
2195
- * @calls authenticationCallback if rsa is not set
2196
- */;
2201
+ }()
2202
+ /**
2203
+ * This function let's you encrypt locally an Object
2204
+ * @param value the Object to encrypt
2205
+ * @returns a LocalEncryptedData Object
2206
+ * @throws IncompleteAuthentication if rsa is not set
2207
+ * @calls authenticationCallback if rsa is not set
2208
+ */
2209
+ ;
2197
2210
  _proto.localEncryptToJsonPayload = function localEncryptToJsonPayload(value) {
2198
2211
  if (!this.rsa) {
2199
2212
  if (this.authenticationCallback) {
@@ -2259,25 +2272,27 @@ var OroClient = /*#__PURE__*/function () {
2259
2272
  return _signOut.apply(this, arguments);
2260
2273
  }
2261
2274
  return signOut;
2262
- }() /**
2263
- * @name registerPatient
2264
- * @description The complete flow to register a patient
2265
- *
2266
- * Steps:
2267
- * 1. Create a consult (checks if payment has been done)
2268
- * 2. Creates a lockbox
2269
- * 3. Grants lockbox access to all practice personnel
2270
- * 4. Creates secure identification, medical, onboarding data
2271
- * 5. Generates and stores the rsa key pair and recovery payloads
2272
- *
2273
- * @param patientUuid
2274
- * @param consult
2275
- * @param workflow
2276
- * @param recoveryQA
2277
- * @param indexSearch create search index for the consultation if true
2278
- * @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
2279
- * @returns
2280
- */;
2275
+ }()
2276
+ /**
2277
+ * @name registerPatient
2278
+ * @description The complete flow to register a patient
2279
+ *
2280
+ * Steps:
2281
+ * 1. Create a consult (checks if payment has been done)
2282
+ * 2. Creates a lockbox
2283
+ * 3. Grants lockbox access to all practice personnel
2284
+ * 4. Creates secure identification, medical, onboarding data
2285
+ * 5. Generates and stores the rsa key pair and recovery payloads
2286
+ *
2287
+ * @param patientUuid
2288
+ * @param consult
2289
+ * @param workflow
2290
+ * @param recoveryQA
2291
+ * @param indexSearch create search index for the consultation if true
2292
+ * @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
2293
+ * @returns
2294
+ */
2295
+ ;
2281
2296
  _proto.registerPatient =
2282
2297
  /*#__PURE__*/
2283
2298
  function () {
@@ -2307,16 +2322,18 @@ var OroClient = /*#__PURE__*/function () {
2307
2322
  return _registerPatient2.apply(this, arguments);
2308
2323
  }
2309
2324
  return registerPatient$1;
2310
- }() /**
2311
- * Creates and stores all relevant refill data
2312
- * - New consultation is created
2313
- * - Stores refill workflow data in the lockbox
2314
- * - Updates the consult to new
2315
- *
2316
- * @param consult
2317
- * @param populatedRefillWorkflow
2318
- * @returns
2319
- */;
2325
+ }()
2326
+ /**
2327
+ * Creates and stores all relevant refill data
2328
+ * - New consultation is created
2329
+ * - Stores refill workflow data in the lockbox
2330
+ * - Updates the consult to new
2331
+ *
2332
+ * @param consult
2333
+ * @param populatedRefillWorkflow
2334
+ * @returns
2335
+ */
2336
+ ;
2320
2337
  _proto.createRefill =
2321
2338
  /*#__PURE__*/
2322
2339
  function () {
@@ -2343,10 +2360,12 @@ var OroClient = /*#__PURE__*/function () {
2343
2360
  return _createRefill2.apply(this, arguments);
2344
2361
  }
2345
2362
  return createRefill$1;
2346
- }() /**
2347
- * Fetches all grants, and consultations that exist in each lockbox
2348
- * Then updates the index for the current user with the lockbox consult relationship
2349
- */;
2363
+ }()
2364
+ /**
2365
+ * Fetches all grants, and consultations that exist in each lockbox
2366
+ * Then updates the index for the current user with the lockbox consult relationship
2367
+ */
2368
+ ;
2350
2369
  _proto.forceUpdateIndexEntries =
2351
2370
  /*#__PURE__*/
2352
2371
  function () {
@@ -2422,12 +2441,14 @@ var OroClient = /*#__PURE__*/function () {
2422
2441
  return _forceUpdateIndexEntries.apply(this, arguments);
2423
2442
  }
2424
2443
  return forceUpdateIndexEntries;
2425
- }() /**
2426
- * Generates, encrypts and adds entries to vault index for a given index owner
2427
- *
2428
- * @param entries
2429
- * @param indexOwnerUuid
2430
- */;
2444
+ }()
2445
+ /**
2446
+ * Generates, encrypts and adds entries to vault index for a given index owner
2447
+ *
2448
+ * @param entries
2449
+ * @param indexOwnerUuid
2450
+ */
2451
+ ;
2431
2452
  _proto.vaultIndexAdd =
2432
2453
  /*#__PURE__*/
2433
2454
  function () {
@@ -2504,13 +2525,15 @@ var OroClient = /*#__PURE__*/function () {
2504
2525
  return _vaultIndexAdd.apply(this, arguments);
2505
2526
  }
2506
2527
  return vaultIndexAdd;
2507
- }() /**
2508
- * @name grantLockbox
2509
- * @description Grants a lockbox by retrieving the shared secret of the lockbox and encrypting it with the grantees public key
2510
- * @param granteeUuid
2511
- * @param lockboxUuid
2512
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2513
- */;
2528
+ }()
2529
+ /**
2530
+ * @name grantLockbox
2531
+ * @description Grants a lockbox by retrieving the shared secret of the lockbox and encrypting it with the grantees public key
2532
+ * @param granteeUuid
2533
+ * @param lockboxUuid
2534
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2535
+ */
2536
+ ;
2514
2537
  _proto.grantLockbox =
2515
2538
  /*#__PURE__*/
2516
2539
  function () {
@@ -2553,16 +2576,18 @@ var OroClient = /*#__PURE__*/function () {
2553
2576
  return _grantLockbox.apply(this, arguments);
2554
2577
  }
2555
2578
  return grantLockbox;
2556
- }() /**
2557
- * @name createMessageData
2558
- * @description Creates a Base64 encrypted Payload to send and store in the vault from a message string
2559
- * @param lockboxUuid
2560
- * @param message
2561
- * @param consultationId the consultation for which this message is sent
2562
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2563
- * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2564
- * @returns the data uuid
2565
- */;
2579
+ }()
2580
+ /**
2581
+ * @name createMessageData
2582
+ * @description Creates a Base64 encrypted Payload to send and store in the vault from a message string
2583
+ * @param lockboxUuid
2584
+ * @param message
2585
+ * @param consultationId the consultation for which this message is sent
2586
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2587
+ * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2588
+ * @returns the data uuid
2589
+ */
2590
+ ;
2566
2591
  _proto.createMessageData =
2567
2592
  /*#__PURE__*/
2568
2593
  function () {
@@ -2615,16 +2640,18 @@ var OroClient = /*#__PURE__*/function () {
2615
2640
  return _createMessageData.apply(this, arguments);
2616
2641
  }
2617
2642
  return createMessageData;
2618
- }() /**
2619
- * @name createMessageAttachmentData
2620
- * @description Creates a Base64 encrypted Payload to send and store in the vault from a file
2621
- * @param lockboxUuid
2622
- * @param data the file stored
2623
- * @param consultationId the consultation for which this message is sent
2624
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2625
- * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2626
- * @returns the data uuid
2627
- */;
2643
+ }()
2644
+ /**
2645
+ * @name createMessageAttachmentData
2646
+ * @description Creates a Base64 encrypted Payload to send and store in the vault from a file
2647
+ * @param lockboxUuid
2648
+ * @param data the file stored
2649
+ * @param consultationId the consultation for which this message is sent
2650
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2651
+ * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2652
+ * @returns the data uuid
2653
+ */
2654
+ ;
2628
2655
  _proto.createMessageAttachmentData =
2629
2656
  /*#__PURE__*/
2630
2657
  function () {
@@ -2690,18 +2717,20 @@ var OroClient = /*#__PURE__*/function () {
2690
2717
  return _createMessageAttachmentData.apply(this, arguments);
2691
2718
  }
2692
2719
  return createMessageAttachmentData;
2693
- }() /**
2694
- * @name createAttachmentData
2695
- * @description Creates a Base64 encrypted Payload to send and store in the vault from a file
2696
- * @param lockboxUuid
2697
- * @param data the file stored
2698
- * @param consultationId the consultation for which this message is sent
2699
- * @param category the category for the attachment data
2700
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2701
- * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2702
- * @param withNotification if the insertion of data requires notification
2703
- * @returns the data uuid
2704
- */;
2720
+ }()
2721
+ /**
2722
+ * @name createAttachmentData
2723
+ * @description Creates a Base64 encrypted Payload to send and store in the vault from a file
2724
+ * @param lockboxUuid
2725
+ * @param data the file stored
2726
+ * @param consultationId the consultation for which this message is sent
2727
+ * @param category the category for the attachment data
2728
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2729
+ * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2730
+ * @param withNotification if the insertion of data requires notification
2731
+ * @returns the data uuid
2732
+ */
2733
+ ;
2705
2734
  _proto.createConsultationAttachmentData =
2706
2735
  /*#__PURE__*/
2707
2736
  function () {
@@ -2759,18 +2788,20 @@ var OroClient = /*#__PURE__*/function () {
2759
2788
  return _createConsultationAttachmentData.apply(this, arguments);
2760
2789
  }
2761
2790
  return createConsultationAttachmentData;
2762
- }() /**
2763
- * @name createJsonData
2764
- * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a JSON
2765
- * @param lockboxUuid
2766
- * @param data
2767
- * @param meta
2768
- * @param privateMeta the metadata that will be secured in the vault
2769
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2770
- * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
2771
- * @param options if the insertion of data requires email notification
2772
- * @returns the data uuid
2773
- */;
2791
+ }()
2792
+ /**
2793
+ * @name createJsonData
2794
+ * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a JSON
2795
+ * @param lockboxUuid
2796
+ * @param data
2797
+ * @param meta
2798
+ * @param privateMeta the metadata that will be secured in the vault
2799
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2800
+ * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
2801
+ * @param options if the insertion of data requires email notification
2802
+ * @returns the data uuid
2803
+ */
2804
+ ;
2774
2805
  _proto.createJsonData =
2775
2806
  /*#__PURE__*/
2776
2807
  function () {
@@ -2820,16 +2851,18 @@ var OroClient = /*#__PURE__*/function () {
2820
2851
  return _createJsonData.apply(this, arguments);
2821
2852
  }
2822
2853
  return createJsonData;
2823
- }() /**
2824
- * Get or upsert a data in lockbox
2825
- * @param lockboxUuid the lockbox uuid
2826
- * @param data the data to insert
2827
- * @param publicMetadata the public Metadata
2828
- * @param privateMetadata the private Metadata
2829
- * @param forceReplace set true when the insertion of data requires to replace the data when it exists already
2830
- * @param options if the insertion of data requires email notification
2831
- * @returns the data uuid
2832
- */;
2854
+ }()
2855
+ /**
2856
+ * Get or upsert a data in lockbox
2857
+ * @param lockboxUuid the lockbox uuid
2858
+ * @param data the data to insert
2859
+ * @param publicMetadata the public Metadata
2860
+ * @param privateMetadata the private Metadata
2861
+ * @param forceReplace set true when the insertion of data requires to replace the data when it exists already
2862
+ * @param options if the insertion of data requires email notification
2863
+ * @returns the data uuid
2864
+ */
2865
+ ;
2833
2866
  _proto.getOrInsertJsonData =
2834
2867
  /*#__PURE__*/
2835
2868
  function () {
@@ -2878,18 +2911,20 @@ var OroClient = /*#__PURE__*/function () {
2878
2911
  return _getOrInsertJsonData.apply(this, arguments);
2879
2912
  }
2880
2913
  return getOrInsertJsonData;
2881
- }() /**
2882
- * @name createBytesData
2883
- * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a Bytes
2884
- * @param lockboxUuid
2885
- * @param data
2886
- * @param meta
2887
- * @param privateMeta the metadata that will be secured in the vault
2888
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2889
- * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
2890
- * @param withNotification if the insertion of data requires notification
2891
- * @returns the data uuid
2892
- */;
2914
+ }()
2915
+ /**
2916
+ * @name createBytesData
2917
+ * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a Bytes
2918
+ * @param lockboxUuid
2919
+ * @param data
2920
+ * @param meta
2921
+ * @param privateMeta the metadata that will be secured in the vault
2922
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2923
+ * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
2924
+ * @param withNotification if the insertion of data requires notification
2925
+ * @returns the data uuid
2926
+ */
2927
+ ;
2893
2928
  _proto.createBytesData =
2894
2929
  /*#__PURE__*/
2895
2930
  function () {
@@ -2939,17 +2974,19 @@ var OroClient = /*#__PURE__*/function () {
2939
2974
  return _createBytesData.apply(this, arguments);
2940
2975
  }
2941
2976
  return createBytesData;
2942
- }() /**
2943
- * @name getJsonData
2944
- * @description Fetches and decrypts the lockbox data with the cached shared secret.
2945
- * Decrypts the data to a valid JSON object. If this is impossible, the call to the WASM binary will fail
2946
- *
2947
- * @type T is the generic type specifying the return type object of the function
2948
- * @param lockboxUuid
2949
- * @param dataUuid
2950
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2951
- * @returns the data specified by the generic type <T>
2952
- */;
2977
+ }()
2978
+ /**
2979
+ * @name getJsonData
2980
+ * @description Fetches and decrypts the lockbox data with the cached shared secret.
2981
+ * Decrypts the data to a valid JSON object. If this is impossible, the call to the WASM binary will fail
2982
+ *
2983
+ * @type T is the generic type specifying the return type object of the function
2984
+ * @param lockboxUuid
2985
+ * @param dataUuid
2986
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2987
+ * @returns the data specified by the generic type <T>
2988
+ */
2989
+ ;
2953
2990
  _proto.getJsonData =
2954
2991
  /*#__PURE__*/
2955
2992
  function () {
@@ -2983,13 +3020,15 @@ var OroClient = /*#__PURE__*/function () {
2983
3020
  return _getJsonData.apply(this, arguments);
2984
3021
  }
2985
3022
  return getJsonData;
2986
- }() /**
2987
- * @description Fetches and decrypts the lockbox data with the cached shared secret.
2988
- * @param lockboxUuid
2989
- * @param dataUuid
2990
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2991
- * @returns the bytes data
2992
- */;
3023
+ }()
3024
+ /**
3025
+ * @description Fetches and decrypts the lockbox data with the cached shared secret.
3026
+ * @param lockboxUuid
3027
+ * @param dataUuid
3028
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
3029
+ * @returns the bytes data
3030
+ */
3031
+ ;
2993
3032
  _proto.getBytesData =
2994
3033
  /*#__PURE__*/
2995
3034
  function () {
@@ -3023,16 +3062,18 @@ var OroClient = /*#__PURE__*/function () {
3023
3062
  return _getBytesData.apply(this, arguments);
3024
3063
  }
3025
3064
  return getBytesData;
3026
- }() /**
3027
- * @name getGrants
3028
- * @description Get all lockboxes granted to user with the applied filter
3029
- * @note this function returns cached grants and will not update unless the page is refreshed
3030
- * @todo some versions of lockboxes do not make use of lockbox metadata
3031
- * in this case, all lockboxes need to be filtered one-by-one to find the correct one
3032
- * Remove if this is no longer the case
3033
- * @param filter: the consultationId in which the grant exists
3034
- * @returns decrypted lockboxes granted to user
3035
- */;
3065
+ }()
3066
+ /**
3067
+ * @name getGrants
3068
+ * @description Get all lockboxes granted to user with the applied filter
3069
+ * @note this function returns cached grants and will not update unless the page is refreshed
3070
+ * @todo some versions of lockboxes do not make use of lockbox metadata
3071
+ * in this case, all lockboxes need to be filtered one-by-one to find the correct one
3072
+ * Remove if this is no longer the case
3073
+ * @param filter: the consultationId in which the grant exists
3074
+ * @returns decrypted lockboxes granted to user
3075
+ */
3076
+ ;
3036
3077
  _proto.getGrants =
3037
3078
  /*#__PURE__*/
3038
3079
  function () {
@@ -3132,11 +3173,13 @@ var OroClient = /*#__PURE__*/function () {
3132
3173
  return _getGrants.apply(this, arguments);
3133
3174
  }
3134
3175
  return getGrants;
3135
- }() /**
3136
- * Fetches the role of the account that is logged in
3137
- *
3138
- * @returns the role based scopes defined by the whoami
3139
- */;
3176
+ }()
3177
+ /**
3178
+ * Fetches the role of the account that is logged in
3179
+ *
3180
+ * @returns the role based scopes defined by the whoami
3181
+ */
3182
+ ;
3140
3183
  _proto.getAccountRole =
3141
3184
  /*#__PURE__*/
3142
3185
  function () {
@@ -3160,13 +3203,15 @@ var OroClient = /*#__PURE__*/function () {
3160
3203
  return _getAccountRole.apply(this, arguments);
3161
3204
  }
3162
3205
  return getAccountRole;
3163
- }() /**
3164
- * @name getCachedSecretCryptor
3165
- * @description Retrieves the cached lockbox secret or fetches the secret from vault, then creates the symmetric cryptor and stores it in memory
3166
- * @param lockboxUuid
3167
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
3168
- * @returns
3169
- */;
3206
+ }()
3207
+ /**
3208
+ * @name getCachedSecretCryptor
3209
+ * @description Retrieves the cached lockbox secret or fetches the secret from vault, then creates the symmetric cryptor and stores it in memory
3210
+ * @param lockboxUuid
3211
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
3212
+ * @returns
3213
+ */
3214
+ ;
3170
3215
  _proto.getCachedSecretCryptor =
3171
3216
  /*#__PURE__*/
3172
3217
  function () {
@@ -3213,15 +3258,17 @@ var OroClient = /*#__PURE__*/function () {
3213
3258
  return _getCachedSecretCryptor.apply(this, arguments);
3214
3259
  }
3215
3260
  return getCachedSecretCryptor;
3216
- }() /**
3217
- * Retrieves the patient personal information associated to the `consultationId`
3218
- * The `consultationId` only helps to retrieve the patient lockboxes
3219
- * Note: it is possible to have several personal informations data
3220
- * @param consultationId The consultation Id
3221
- * @param category The personal MetadataCategory to fetch
3222
- * @param forceRefresh force data refresh (default to false)
3223
- * @returns the personal data
3224
- */;
3261
+ }()
3262
+ /**
3263
+ * Retrieves the patient personal information associated to the `consultationId`
3264
+ * The `consultationId` only helps to retrieve the patient lockboxes
3265
+ * Note: it is possible to have several personal informations data
3266
+ * @param consultationId The consultation Id
3267
+ * @param category The personal MetadataCategory to fetch
3268
+ * @param forceRefresh force data refresh (default to false)
3269
+ * @returns the personal data
3270
+ */
3271
+ ;
3225
3272
  _proto.getPersonalInformationsFromConsultId =
3226
3273
  /*#__PURE__*/
3227
3274
  function () {
@@ -3247,14 +3294,16 @@ var OroClient = /*#__PURE__*/function () {
3247
3294
  return _getPersonalInformationsFromConsultId.apply(this, arguments);
3248
3295
  }
3249
3296
  return getPersonalInformationsFromConsultId;
3250
- }() /**
3251
- * Retrieves the patient medical data associated to the `consultationId`
3252
- * The `consultationId` only helps to retrieve the patient lockboxes
3253
- * Note: it is possible to have several medical data
3254
- * @param consultationId The consultation Id
3255
- * @param forceRefresh force data refresh (default to false)
3256
- * @returns the medical data
3257
- */;
3297
+ }()
3298
+ /**
3299
+ * Retrieves the patient medical data associated to the `consultationId`
3300
+ * The `consultationId` only helps to retrieve the patient lockboxes
3301
+ * Note: it is possible to have several medical data
3302
+ * @param consultationId The consultation Id
3303
+ * @param forceRefresh force data refresh (default to false)
3304
+ * @returns the medical data
3305
+ */
3306
+ ;
3258
3307
  _proto.getMedicalDataFromConsultId =
3259
3308
  /*#__PURE__*/
3260
3309
  function () {
@@ -3394,11 +3443,13 @@ var OroClient = /*#__PURE__*/function () {
3394
3443
  return _getMetaCategoryFromConsultId.apply(this, arguments);
3395
3444
  }
3396
3445
  return getMetaCategoryFromConsultId;
3397
- }() /**
3398
- * @description retrieves the personal information stored in the first owned lockbox
3399
- * @param userId The user Id
3400
- * @returns the personal data
3401
- */;
3446
+ }()
3447
+ /**
3448
+ * @description retrieves the personal information stored in the first owned lockbox
3449
+ * @param userId The user Id
3450
+ * @returns the personal data
3451
+ */
3452
+ ;
3402
3453
  _proto.getPersonalInformations =
3403
3454
  /*#__PURE__*/
3404
3455
  function () {
@@ -3464,12 +3515,14 @@ var OroClient = /*#__PURE__*/function () {
3464
3515
  return _getPersonalInformations.apply(this, arguments);
3465
3516
  }
3466
3517
  return getPersonalInformations;
3467
- }() /**
3468
- * Retrieves the grant associated to a consultationId
3469
- * @note returns the first grant only
3470
- * @param consultationId The consultationId
3471
- * @returns the grant
3472
- */;
3518
+ }()
3519
+ /**
3520
+ * Retrieves the grant associated to a consultationId
3521
+ * @note returns the first grant only
3522
+ * @param consultationId The consultationId
3523
+ * @returns the grant
3524
+ */
3525
+ ;
3473
3526
  _proto.getGrantFromConsultId =
3474
3527
  /*#__PURE__*/
3475
3528
  function () {
@@ -3503,11 +3556,13 @@ var OroClient = /*#__PURE__*/function () {
3503
3556
  return _getGrantFromConsultId.apply(this, arguments);
3504
3557
  }
3505
3558
  return getGrantFromConsultId;
3506
- }() /**
3507
- * retrieves the identity associated to the `consultationId`
3508
- * @param consultationId The consultation Id
3509
- * @returns the identity
3510
- */;
3559
+ }()
3560
+ /**
3561
+ * retrieves the identity associated to the `consultationId`
3562
+ * @param consultationId The consultation Id
3563
+ * @returns the identity
3564
+ */
3565
+ ;
3511
3566
  _proto.getIdentityFromConsultId =
3512
3567
  /*#__PURE__*/
3513
3568
  function () {
@@ -3542,16 +3597,18 @@ var OroClient = /*#__PURE__*/function () {
3542
3597
  return _getIdentityFromConsultId.apply(this, arguments);
3543
3598
  }
3544
3599
  return getIdentityFromConsultId;
3545
- }() /**
3546
- * retrieves the lockbox manifest for a given lockbox and add's its private metadata
3547
- * @note the lockbox manifest will retrieved the cached manifest first unless force refresh is enabled
3548
- * @param lockboxUuid
3549
- * @param filter
3550
- * @param expandPrivateMetadata
3551
- * @param lockboxOwnerUuid
3552
- * @param forceRefresh
3553
- * @returns the lockbox manifest
3554
- */;
3600
+ }()
3601
+ /**
3602
+ * retrieves the lockbox manifest for a given lockbox and add's its private metadata
3603
+ * @note the lockbox manifest will retrieved the cached manifest first unless force refresh is enabled
3604
+ * @param lockboxUuid
3605
+ * @param filter
3606
+ * @param expandPrivateMetadata
3607
+ * @param lockboxOwnerUuid
3608
+ * @param forceRefresh
3609
+ * @returns the lockbox manifest
3610
+ */
3611
+ ;
3555
3612
  _proto.getLockboxManifest =
3556
3613
  /*#__PURE__*/
3557
3614
  function () {
@@ -3623,13 +3680,15 @@ var OroClient = /*#__PURE__*/function () {
3623
3680
  return _getLockboxManifest.apply(this, arguments);
3624
3681
  }
3625
3682
  return getLockboxManifest;
3626
- }() /**
3627
- * @description Create or update the personal information and store it in the first owned lockbox
3628
- * @param identity The identity to use
3629
- * @param data The personal data to store
3630
- * @param dataUuid (optional) The dataUuid to update
3631
- * @returns
3632
- */;
3683
+ }()
3684
+ /**
3685
+ * @description Create or update the personal information and store it in the first owned lockbox
3686
+ * @param identity The identity to use
3687
+ * @param data The personal data to store
3688
+ * @param dataUuid (optional) The dataUuid to update
3689
+ * @returns
3690
+ */
3691
+ ;
3633
3692
  _proto.createPersonalInformations =
3634
3693
  /*#__PURE__*/
3635
3694
  function () {
@@ -3678,13 +3737,15 @@ var OroClient = /*#__PURE__*/function () {
3678
3737
  return _createPersonalInformations.apply(this, arguments);
3679
3738
  }
3680
3739
  return createPersonalInformations;
3681
- }() /**
3682
- * Create or update user Preference
3683
- * @param identity
3684
- * @param preference
3685
- * @param dataUuid
3686
- * @returns
3687
- */;
3740
+ }()
3741
+ /**
3742
+ * Create or update user Preference
3743
+ * @param identity
3744
+ * @param preference
3745
+ * @param dataUuid
3746
+ * @returns
3747
+ */
3748
+ ;
3688
3749
  _proto.createUserPreference =
3689
3750
  /*#__PURE__*/
3690
3751
  function () {
@@ -3733,11 +3794,13 @@ var OroClient = /*#__PURE__*/function () {
3733
3794
  return _createUserPreference.apply(this, arguments);
3734
3795
  }
3735
3796
  return createUserPreference;
3736
- }() /**
3737
- * retrieves the user preference from a grant
3738
- * @param grant The grant
3739
- * @returns the user preference
3740
- */;
3797
+ }()
3798
+ /**
3799
+ * retrieves the user preference from a grant
3800
+ * @param grant The grant
3801
+ * @returns the user preference
3802
+ */
3803
+ ;
3741
3804
  _proto.getDataFromGrant =
3742
3805
  /*#__PURE__*/
3743
3806
  function () {
@@ -3790,11 +3853,13 @@ var OroClient = /*#__PURE__*/function () {
3790
3853
  return _getDataFromGrant.apply(this, arguments);
3791
3854
  }
3792
3855
  return getDataFromGrant;
3793
- }() /**
3794
- * retrieves the user preference from a consultation id
3795
- * @param consultationId The related consultationId
3796
- * @returns the user preference
3797
- */;
3856
+ }()
3857
+ /**
3858
+ * retrieves the user preference from a consultation id
3859
+ * @param consultationId The related consultationId
3860
+ * @returns the user preference
3861
+ */
3862
+ ;
3798
3863
  _proto.getUserPreferenceFromConsultId =
3799
3864
  /*#__PURE__*/
3800
3865
  function () {
@@ -3829,11 +3894,13 @@ var OroClient = /*#__PURE__*/function () {
3829
3894
  return _getUserPreferenceFromConsultId.apply(this, arguments);
3830
3895
  }
3831
3896
  return getUserPreferenceFromConsultId;
3832
- }() /**
3833
- * retrieves the user preference stored in the first owned lockbox from identity
3834
- * @param identity The identity to use
3835
- * @returns the user preference
3836
- */;
3897
+ }()
3898
+ /**
3899
+ * retrieves the user preference stored in the first owned lockbox from identity
3900
+ * @param identity The identity to use
3901
+ * @returns the user preference
3902
+ */
3903
+ ;
3837
3904
  _proto.getUserPreference =
3838
3905
  /*#__PURE__*/
3839
3906
  function () {
@@ -3870,11 +3937,13 @@ var OroClient = /*#__PURE__*/function () {
3870
3937
  return _getUserPreference.apply(this, arguments);
3871
3938
  }
3872
3939
  return getUserPreference;
3873
- }() /**
3874
- * retrieves the user preference from a consultation id
3875
- * @param consultationId The related consultationId
3876
- * @returns the user preference
3877
- */;
3940
+ }()
3941
+ /**
3942
+ * retrieves the user preference from a consultation id
3943
+ * @param consultationId The related consultationId
3944
+ * @returns the user preference
3945
+ */
3946
+ ;
3878
3947
  _proto.getRecoveryDataFromConsultId =
3879
3948
  /*#__PURE__*/
3880
3949
  function () {
@@ -3909,11 +3978,13 @@ var OroClient = /*#__PURE__*/function () {
3909
3978
  return _getRecoveryDataFromConsultId.apply(this, arguments);
3910
3979
  }
3911
3980
  return getRecoveryDataFromConsultId;
3912
- }() /**
3913
- * retrieves the user preference stored in the first owned lockbox from identity
3914
- * @param identity The identity to use
3915
- * @returns the user preference
3916
- */;
3981
+ }()
3982
+ /**
3983
+ * retrieves the user preference stored in the first owned lockbox from identity
3984
+ * @param identity The identity to use
3985
+ * @returns the user preference
3986
+ */
3987
+ ;
3917
3988
  _proto.getRecoveryData =
3918
3989
  /*#__PURE__*/
3919
3990
  function () {
@@ -3950,16 +4021,18 @@ var OroClient = /*#__PURE__*/function () {
3950
4021
  return _getRecoveryData.apply(this, arguments);
3951
4022
  }
3952
4023
  return getRecoveryData;
3953
- }() /**
3954
- * @name getAssignedConsultations
3955
- * @description finds all assigned or owned consultations for the logged user
3956
- * Steps:
3957
- * - Retrieves all granted lockboxes given to the logged user
3958
- * - for each lockbox, find all consultation ids
3959
- * - for each consultation id, retrieve the consult information
3960
- * @param practiceUuid the uuid of the practice to look consult into
3961
- * @returns the list of consults
3962
- */;
4024
+ }()
4025
+ /**
4026
+ * @name getAssignedConsultations
4027
+ * @description finds all assigned or owned consultations for the logged user
4028
+ * Steps:
4029
+ * - Retrieves all granted lockboxes given to the logged user
4030
+ * - for each lockbox, find all consultation ids
4031
+ * - for each consultation id, retrieve the consult information
4032
+ * @param practiceUuid the uuid of the practice to look consult into
4033
+ * @returns the list of consults
4034
+ */
4035
+ ;
3963
4036
  _proto.getAssignedConsultations =
3964
4037
  /*#__PURE__*/
3965
4038
  function () {
@@ -4017,11 +4090,13 @@ var OroClient = /*#__PURE__*/function () {
4017
4090
  return _getAssignedConsultations.apply(this, arguments);
4018
4091
  }
4019
4092
  return getAssignedConsultations;
4020
- }() /**
4021
- * Gets the past consultations of the patient as well as his relatives if any
4022
- * @param consultationId any consultation uuid from which we will fetch all the other consultations of the same patient as the owner of this consultation id
4023
- * @param practiceUuid
4024
- */;
4093
+ }()
4094
+ /**
4095
+ * Gets the past consultations of the patient as well as his relatives if any
4096
+ * @param consultationId any consultation uuid from which we will fetch all the other consultations of the same patient as the owner of this consultation id
4097
+ * @param practiceUuid
4098
+ */
4099
+ ;
4025
4100
  _proto.getPastConsultationsFromConsultId =
4026
4101
  /*#__PURE__*/
4027
4102
  function () {
@@ -4092,12 +4167,14 @@ var OroClient = /*#__PURE__*/function () {
4092
4167
  return _getPastConsultationsFromConsultId.apply(this, arguments);
4093
4168
  }
4094
4169
  return getPastConsultationsFromConsultId;
4095
- }() /**
4096
- * @name getPatientConsultationData
4097
- * @description retrieves the consultation data
4098
- * @param consultationId
4099
- * @returns
4100
- */;
4170
+ }()
4171
+ /**
4172
+ * @name getPatientConsultationData
4173
+ * @description retrieves the consultation data
4174
+ * @param consultationId
4175
+ * @returns
4176
+ */
4177
+ ;
4101
4178
  _proto.getPatientConsultationData =
4102
4179
  /*#__PURE__*/
4103
4180
  function () {
@@ -4143,11 +4220,13 @@ var OroClient = /*#__PURE__*/function () {
4143
4220
  return _getPatientConsultationData.apply(this, arguments);
4144
4221
  }
4145
4222
  return getPatientConsultationData;
4146
- }() /**
4147
- * This function returns the patient prescriptions
4148
- * @param consultationId
4149
- * @returns
4150
- */;
4223
+ }()
4224
+ /**
4225
+ * This function returns the patient prescriptions
4226
+ * @param consultationId
4227
+ * @returns
4228
+ */
4229
+ ;
4151
4230
  _proto.getPatientPrescriptionsList =
4152
4231
  /*#__PURE__*/
4153
4232
  function () {
@@ -4171,11 +4250,13 @@ var OroClient = /*#__PURE__*/function () {
4171
4250
  return _getPatientPrescriptionsList.apply(this, arguments);
4172
4251
  }
4173
4252
  return getPatientPrescriptionsList;
4174
- }() /**
4175
- * This function returns the patient results
4176
- * @param consultationId
4177
- * @returns
4178
- */;
4253
+ }()
4254
+ /**
4255
+ * This function returns the patient results
4256
+ * @param consultationId
4257
+ * @returns
4258
+ */
4259
+ ;
4179
4260
  _proto.getPatientResultsList =
4180
4261
  /*#__PURE__*/
4181
4262
  function () {
@@ -4199,11 +4280,13 @@ var OroClient = /*#__PURE__*/function () {
4199
4280
  return _getPatientResultsList.apply(this, arguments);
4200
4281
  }
4201
4282
  return getPatientResultsList;
4202
- }() /**
4203
- * returns the patient treatment plan options
4204
- * @param consultationId
4205
- * @returns Document[] corresponding to the patient treatment plan options
4206
- */;
4283
+ }()
4284
+ /**
4285
+ * returns the patient treatment plan options
4286
+ * @param consultationId
4287
+ * @returns Document[] corresponding to the patient treatment plan options
4288
+ */
4289
+ ;
4207
4290
  _proto.getPatientTreatmentPlans =
4208
4291
  /*#__PURE__*/
4209
4292
  function () {
@@ -4227,12 +4310,14 @@ var OroClient = /*#__PURE__*/function () {
4227
4310
  return _getPatientTreatmentPlans.apply(this, arguments);
4228
4311
  }
4229
4312
  return getPatientTreatmentPlans;
4230
- }() /**
4231
- * returns a specific patient treatment plan option
4232
- * @param consultationId
4233
- * @param treatmentPlanId
4234
- * @returns
4235
- */;
4313
+ }()
4314
+ /**
4315
+ * returns a specific patient treatment plan option
4316
+ * @param consultationId
4317
+ * @param treatmentPlanId
4318
+ * @returns
4319
+ */
4320
+ ;
4236
4321
  _proto.getPatientTreatmentPlanByUuid =
4237
4322
  /*#__PURE__*/
4238
4323
  function () {
@@ -4257,15 +4342,17 @@ var OroClient = /*#__PURE__*/function () {
4257
4342
  return _getPatientTreatmentPlanByUuid.apply(this, arguments);
4258
4343
  }
4259
4344
  return getPatientTreatmentPlanByUuid;
4260
- }() /**
4261
- * @name getPatientDocumentsList
4262
- * @description applies the provided filter to the vault to only find those documents
4263
- * @param filters the applied filters (e.g. type of documents)
4264
- * @param expandPrivateMetadata whether or not, the private metadata needs to be retrieved
4265
- * (more computationally expensive)
4266
- * @param consultationId
4267
- * @returns the filtered document list
4268
- */;
4345
+ }()
4346
+ /**
4347
+ * @name getPatientDocumentsList
4348
+ * @description applies the provided filter to the vault to only find those documents
4349
+ * @param filters the applied filters (e.g. type of documents)
4350
+ * @param expandPrivateMetadata whether or not, the private metadata needs to be retrieved
4351
+ * (more computationally expensive)
4352
+ * @param consultationId
4353
+ * @returns the filtered document list
4354
+ */
4355
+ ;
4269
4356
  _proto.getPatientDocumentsList =
4270
4357
  /*#__PURE__*/
4271
4358
  function () {
@@ -4379,12 +4466,14 @@ var OroClient = /*#__PURE__*/function () {
4379
4466
  return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
4380
4467
  }
4381
4468
  return recoverPrivateKeyFromSecurityQuestions;
4382
- }() /**
4383
- * @name recoverPrivateKeyFromPassword
4384
- * @description Recovers and sets the rsa private key from the password
4385
- * @param id
4386
- * @param password
4387
- */;
4469
+ }()
4470
+ /**
4471
+ * @name recoverPrivateKeyFromPassword
4472
+ * @description Recovers and sets the rsa private key from the password
4473
+ * @param id
4474
+ * @param password
4475
+ */
4476
+ ;
4388
4477
  _proto.recoverPrivateKeyFromPassword =
4389
4478
  /*#__PURE__*/
4390
4479
  function () {
@@ -4418,12 +4507,14 @@ var OroClient = /*#__PURE__*/function () {
4418
4507
  return _recoverPrivateKeyFromPassword.apply(this, arguments);
4419
4508
  }
4420
4509
  return recoverPrivateKeyFromPassword;
4421
- }() /**
4422
- * @name recoverPrivateKeyFromMasterKey
4423
- * @description Recovers and sets the rsa private key from the master key
4424
- * @param id
4425
- * @param masterKey
4426
- */;
4510
+ }()
4511
+ /**
4512
+ * @name recoverPrivateKeyFromMasterKey
4513
+ * @description Recovers and sets the rsa private key from the master key
4514
+ * @param id
4515
+ * @param masterKey
4516
+ */
4517
+ ;
4427
4518
  _proto.recoverPrivateKeyFromMasterKey =
4428
4519
  /*#__PURE__*/
4429
4520
  function () {
@@ -4451,14 +4542,16 @@ var OroClient = /*#__PURE__*/function () {
4451
4542
  return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
4452
4543
  }
4453
4544
  return recoverPrivateKeyFromMasterKey;
4454
- }() /**
4455
- * @description Generates and updates the security questions and answers payload using new recovery questions and answers
4456
- * Important: Since the security questions generate a payload for the private key, they will never be stored on the device as they must remain secret!!!
4457
- * @param id
4458
- * @param recoverySecurityQuestions
4459
- * @param recoverySecurityAnswers
4460
- * @param threshold the number of answers needed to rebuild the secret
4461
- */;
4545
+ }()
4546
+ /**
4547
+ * @description Generates and updates the security questions and answers payload using new recovery questions and answers
4548
+ * Important: Since the security questions generate a payload for the private key, they will never be stored on the device as they must remain secret!!!
4549
+ * @param id
4550
+ * @param recoverySecurityQuestions
4551
+ * @param recoverySecurityAnswers
4552
+ * @param threshold the number of answers needed to rebuild the secret
4553
+ */
4554
+ ;
4462
4555
  _proto.updateSecurityQuestions =
4463
4556
  /*#__PURE__*/
4464
4557
  function () {
@@ -4493,17 +4586,19 @@ var OroClient = /*#__PURE__*/function () {
4493
4586
  return _updateSecurityQuestions.apply(this, arguments);
4494
4587
  }
4495
4588
  return updateSecurityQuestions;
4496
- }() /**
4497
- * @description Generates and stores the payload encrypted payload and updates the password itself (double hash)
4498
- * @important
4499
- * the recovery payload uses a singly hashed password and the password stored is doubly hashed so
4500
- * the stored password cannot derive the decryption key in the payload
4501
- * @note
4502
- * the old password must be provided when not performing an account recovery
4503
- * @param id
4504
- * @param newPassword
4505
- * @param oldPassword
4506
- */;
4589
+ }()
4590
+ /**
4591
+ * @description Generates and stores the payload encrypted payload and updates the password itself (double hash)
4592
+ * @important
4593
+ * the recovery payload uses a singly hashed password and the password stored is doubly hashed so
4594
+ * the stored password cannot derive the decryption key in the payload
4595
+ * @note
4596
+ * the old password must be provided when not performing an account recovery
4597
+ * @param id
4598
+ * @param newPassword
4599
+ * @param oldPassword
4600
+ */
4601
+ ;
4507
4602
  _proto.updatePassword =
4508
4603
  /*#__PURE__*/
4509
4604
  function () {
@@ -4547,14 +4642,16 @@ var OroClient = /*#__PURE__*/function () {
4547
4642
  return _updatePassword.apply(this, arguments);
4548
4643
  }
4549
4644
  return updatePassword;
4550
- }() /**
4551
- * @description Generates and stores the master key encrypted payload
4552
- * Important
4553
- * Since the master key is used to generate a payload for the private key, it will never be stored on the device as it must remain secret!
4554
- * @param id
4555
- * @param masterKey
4556
- * @param lockboxUuid
4557
- */;
4645
+ }()
4646
+ /**
4647
+ * @description Generates and stores the master key encrypted payload
4648
+ * Important
4649
+ * Since the master key is used to generate a payload for the private key, it will never be stored on the device as it must remain secret!
4650
+ * @param id
4651
+ * @param masterKey
4652
+ * @param lockboxUuid
4653
+ */
4654
+ ;
4558
4655
  _proto.updateMasterKey =
4559
4656
  /*#__PURE__*/
4560
4657
  function () {