oro-sdk 5.3.6 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -839,52 +839,53 @@ function _getImagesFromIndexDb() {
839
839
  }
840
840
  function populateWorkflowField(_x6, _x7) {
841
841
  return _populateWorkflowField.apply(this, arguments);
842
- } /**
843
- * Determine if a question is triggered by some answers
844
- *
845
- * We use the following logical combinations of rules:
846
- *
847
- * #### Single string
848
- *
849
- * ```
850
- * // Required: rule1
851
- * rules: rule1
852
- * ```
853
- *
854
- * #### Array of strings (AND is applied between statements):
855
- *
856
- * ```
857
- * // Required: rule1 AND rule2
858
- * rules: [ rule1, rule2 ]
859
- * ```
860
- *
861
- * #### Array of arrays of strings (OR is applied between inner arrays. AND is applied between inner arrays statements)
862
- *
863
- * ```
864
- * // Required: rule1 OR rule2
865
- * rules: [
866
- * [ rule1 ],
867
- * [ rule2 ]
868
- * ]
869
- *
870
- * // Required: rule1 OR (rule2 AND rule3)
871
- * rules: [
872
- * [ rule1 ],
873
- * [ rule2, rule3 ]
874
- * ]
875
- *
876
- * // THIS IS FORBIDDEN
877
- * rules: [
878
- * rule1, // <-- THIS IS FORBIDDEN. Instead use [ rule1 ]
879
- * [ rule2, rule3 ]
880
- * ]
881
- * ```
882
- *
883
- * @param triggers the triggering rules
884
- * @param answers the answers to check againts triggering rules
885
- * @returns `true` if triggers are verified against ansers. Otherwise, returns `false`.
886
- * @throws an Error if triggers typing is wrong
887
- */
842
+ }
843
+ /**
844
+ * Determine if a question is triggered by some answers
845
+ *
846
+ * We use the following logical combinations of rules:
847
+ *
848
+ * #### Single string
849
+ *
850
+ * ```
851
+ * // Required: rule1
852
+ * rules: rule1
853
+ * ```
854
+ *
855
+ * #### Array of strings (AND is applied between statements):
856
+ *
857
+ * ```
858
+ * // Required: rule1 AND rule2
859
+ * rules: [ rule1, rule2 ]
860
+ * ```
861
+ *
862
+ * #### Array of arrays of strings (OR is applied between inner arrays. AND is applied between inner arrays statements)
863
+ *
864
+ * ```
865
+ * // Required: rule1 OR rule2
866
+ * rules: [
867
+ * [ rule1 ],
868
+ * [ rule2 ]
869
+ * ]
870
+ *
871
+ * // Required: rule1 OR (rule2 AND rule3)
872
+ * rules: [
873
+ * [ rule1 ],
874
+ * [ rule2, rule3 ]
875
+ * ]
876
+ *
877
+ * // THIS IS FORBIDDEN
878
+ * rules: [
879
+ * rule1, // <-- THIS IS FORBIDDEN. Instead use [ rule1 ]
880
+ * [ rule2, rule3 ]
881
+ * ]
882
+ * ```
883
+ *
884
+ * @param triggers the triggering rules
885
+ * @param answers the answers to check againts triggering rules
886
+ * @returns `true` if triggers are verified against ansers. Otherwise, returns `false`.
887
+ * @throws an Error if triggers typing is wrong
888
+ */
888
889
  function _populateWorkflowField() {
889
890
  _populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
890
891
  var answer, displayedAnswer;
@@ -1386,15 +1387,16 @@ function _registerPatient() {
1386
1387
  }
1387
1388
  function getOrCreatePatientLockbox(_x9) {
1388
1389
  return _getOrCreatePatientLockbox.apply(this, arguments);
1389
- } /**
1390
- * Store all patient related information into his/her lockbox
1391
- * @param consultationId The consultation id
1392
- * @param isoLanguage the prefered language of communication (ISO 639-3 https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes)
1393
- * @param lockboxUuid the lockbox uuid to store data in
1394
- * @param workflow the workflow used to extract informations
1395
- * @param oroClient an oroClient instance
1396
- * @returns
1397
- */
1390
+ }
1391
+ /**
1392
+ * Store all patient related information into his/her lockbox
1393
+ * @param consultationId The consultation id
1394
+ * @param isoLanguage the prefered language of communication (ISO 639-3 https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes)
1395
+ * @param lockboxUuid the lockbox uuid to store data in
1396
+ * @param workflow the workflow used to extract informations
1397
+ * @param oroClient an oroClient instance
1398
+ * @returns
1399
+ */
1398
1400
  function _getOrCreatePatientLockbox() {
1399
1401
  _getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(oroClient) {
1400
1402
  var grants, lockboxResponse, tokens;
@@ -1493,15 +1495,16 @@ function _storePatientData() {
1493
1495
  }
1494
1496
  function storeImageAliases(_x15, _x16, _x17, _x18, _x19) {
1495
1497
  return _storeImageAliases.apply(this, arguments);
1496
- } /**
1497
- * Extracts the workflow MetadataCategory for Personal, ChildPersonal and OtherPersonal
1498
- * then stores it in the vault
1499
- *
1500
- * @param workflow
1501
- * @param lockboxUuid
1502
- * @param category
1503
- * @returns The data uuid
1504
- */
1498
+ }
1499
+ /**
1500
+ * Extracts the workflow MetadataCategory for Personal, ChildPersonal and OtherPersonal
1501
+ * then stores it in the vault
1502
+ *
1503
+ * @param workflow
1504
+ * @param lockboxUuid
1505
+ * @param category
1506
+ * @returns The data uuid
1507
+ */
1505
1508
  function _storeImageAliases() {
1506
1509
  _storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, lockboxUuid, workflow, oroClient, progress) {
1507
1510
  var images, nonNullImages, storedImagesNum, totalImagesNum, promises;
@@ -1997,17 +2000,19 @@ var OroClient = /*#__PURE__*/function () {
1997
2000
  return _cleanIndex.apply(this, arguments);
1998
2001
  }
1999
2002
  return cleanIndex;
2000
- }() /**
2001
- * Generates an RSA key pair and password payload (rsa private key encrypted with the password)
2002
- * Calls Guard to sign up with the email address, password, practice, legal and token data
2003
- *
2004
- * @param email
2005
- * @param password
2006
- * @param practice
2007
- * @param legal
2008
- * @param tokenData
2009
- * @returns
2010
- */;
2003
+ }()
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
+ */
2015
+ ;
2011
2016
  _proto.signUp =
2012
2017
  /*#__PURE__*/
2013
2018
  function () {
@@ -2055,11 +2060,13 @@ var OroClient = /*#__PURE__*/function () {
2055
2060
  return _signUp.apply(this, arguments);
2056
2061
  }
2057
2062
  return signUp;
2058
- }() /**
2059
- * Parse the given accessToken claims by calling guard whoami and update theidentity to set it's emailConfirmed flag
2060
- * @param accessToken
2061
- * @returns The identity related to confirmedEmail
2062
- */;
2063
+ }()
2064
+ /**
2065
+ * Parse the given accessToken claims by calling guard whoami and update theidentity to set it's emailConfirmed flag
2066
+ * @param accessToken
2067
+ * @returns The identity related to confirmedEmail
2068
+ */
2069
+ ;
2063
2070
  _proto.confirmEmail =
2064
2071
  /*#__PURE__*/
2065
2072
  function () {
@@ -2090,16 +2097,18 @@ var OroClient = /*#__PURE__*/function () {
2090
2097
  return _confirmEmail.apply(this, arguments);
2091
2098
  }
2092
2099
  return confirmEmail;
2093
- }() /**
2094
- * Calls Guard to sign in with the email address, password and one time password (if MFA is enabled)
2095
- * Then recover's the rsa private key from the recovery payload
2096
- *
2097
- * @param practiceUuid
2098
- * @param email
2099
- * @param password
2100
- * @param otp
2101
- * @returns the user identity
2102
- */;
2100
+ }()
2101
+ /**
2102
+ * Calls Guard to sign in with the email address, password and one time password (if MFA is enabled)
2103
+ * Then recover's the rsa private key from the recovery payload
2104
+ *
2105
+ * @param practiceUuid
2106
+ * @param email
2107
+ * @param password
2108
+ * @param otp
2109
+ * @returns the user identity
2110
+ */
2111
+ ;
2103
2112
  _proto.signIn =
2104
2113
  /*#__PURE__*/
2105
2114
  function () {
@@ -2141,10 +2150,12 @@ var OroClient = /*#__PURE__*/function () {
2141
2150
  return _signIn.apply(this, arguments);
2142
2151
  }
2143
2152
  return signIn;
2144
- }() /**
2145
- * Will attempt to recover an existing login session and set back
2146
- * the private key in scope
2147
- */;
2153
+ }()
2154
+ /**
2155
+ * Will attempt to recover an existing login session and set back
2156
+ * the private key in scope
2157
+ */
2158
+ ;
2148
2159
  _proto.resumeSession =
2149
2160
  /*#__PURE__*/
2150
2161
  function () {
@@ -2183,13 +2194,15 @@ var OroClient = /*#__PURE__*/function () {
2183
2194
  return _resumeSession.apply(this, arguments);
2184
2195
  }
2185
2196
  return resumeSession;
2186
- }() /**
2187
- * This function let's you encrypt locally an Object
2188
- * @param value the Object to encrypt
2189
- * @returns a LocalEncryptedData Object
2190
- * @throws IncompleteAuthentication if rsa is not set
2191
- * @calls authenticationCallback if rsa is not set
2192
- */;
2197
+ }()
2198
+ /**
2199
+ * This function let's you encrypt locally an Object
2200
+ * @param value the Object to encrypt
2201
+ * @returns a LocalEncryptedData Object
2202
+ * @throws IncompleteAuthentication if rsa is not set
2203
+ * @calls authenticationCallback if rsa is not set
2204
+ */
2205
+ ;
2193
2206
  _proto.localEncryptToJsonPayload = function localEncryptToJsonPayload(value) {
2194
2207
  if (!this.rsa) {
2195
2208
  if (this.authenticationCallback) {
@@ -2255,25 +2268,27 @@ var OroClient = /*#__PURE__*/function () {
2255
2268
  return _signOut.apply(this, arguments);
2256
2269
  }
2257
2270
  return signOut;
2258
- }() /**
2259
- * @name registerPatient
2260
- * @description The complete flow to register a patient
2261
- *
2262
- * Steps:
2263
- * 1. Create a consult (checks if payment has been done)
2264
- * 2. Creates a lockbox
2265
- * 3. Grants lockbox access to all practice personnel
2266
- * 4. Creates secure identification, medical, onboarding data
2267
- * 5. Generates and stores the rsa key pair and recovery payloads
2268
- *
2269
- * @param patientUuid
2270
- * @param consult
2271
- * @param workflow
2272
- * @param recoveryQA
2273
- * @param indexSearch create search index for the consultation if true
2274
- * @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
2275
- * @returns
2276
- */;
2271
+ }()
2272
+ /**
2273
+ * @name registerPatient
2274
+ * @description The complete flow to register a patient
2275
+ *
2276
+ * Steps:
2277
+ * 1. Create a consult (checks if payment has been done)
2278
+ * 2. Creates a lockbox
2279
+ * 3. Grants lockbox access to all practice personnel
2280
+ * 4. Creates secure identification, medical, onboarding data
2281
+ * 5. Generates and stores the rsa key pair and recovery payloads
2282
+ *
2283
+ * @param patientUuid
2284
+ * @param consult
2285
+ * @param workflow
2286
+ * @param recoveryQA
2287
+ * @param indexSearch create search index for the consultation if true
2288
+ * @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
2289
+ * @returns
2290
+ */
2291
+ ;
2277
2292
  _proto.registerPatient =
2278
2293
  /*#__PURE__*/
2279
2294
  function () {
@@ -2303,16 +2318,18 @@ var OroClient = /*#__PURE__*/function () {
2303
2318
  return _registerPatient2.apply(this, arguments);
2304
2319
  }
2305
2320
  return registerPatient$1;
2306
- }() /**
2307
- * Creates and stores all relevant refill data
2308
- * - New consultation is created
2309
- * - Stores refill workflow data in the lockbox
2310
- * - Updates the consult to new
2311
- *
2312
- * @param consult
2313
- * @param populatedRefillWorkflow
2314
- * @returns
2315
- */;
2321
+ }()
2322
+ /**
2323
+ * Creates and stores all relevant refill data
2324
+ * - New consultation is created
2325
+ * - Stores refill workflow data in the lockbox
2326
+ * - Updates the consult to new
2327
+ *
2328
+ * @param consult
2329
+ * @param populatedRefillWorkflow
2330
+ * @returns
2331
+ */
2332
+ ;
2316
2333
  _proto.createRefill =
2317
2334
  /*#__PURE__*/
2318
2335
  function () {
@@ -2339,10 +2356,12 @@ var OroClient = /*#__PURE__*/function () {
2339
2356
  return _createRefill2.apply(this, arguments);
2340
2357
  }
2341
2358
  return createRefill$1;
2342
- }() /**
2343
- * Fetches all grants, and consultations that exist in each lockbox
2344
- * Then updates the index for the current user with the lockbox consult relationship
2345
- */;
2359
+ }()
2360
+ /**
2361
+ * Fetches all grants, and consultations that exist in each lockbox
2362
+ * Then updates the index for the current user with the lockbox consult relationship
2363
+ */
2364
+ ;
2346
2365
  _proto.forceUpdateIndexEntries =
2347
2366
  /*#__PURE__*/
2348
2367
  function () {
@@ -2418,12 +2437,14 @@ var OroClient = /*#__PURE__*/function () {
2418
2437
  return _forceUpdateIndexEntries.apply(this, arguments);
2419
2438
  }
2420
2439
  return forceUpdateIndexEntries;
2421
- }() /**
2422
- * Generates, encrypts and adds entries to vault index for a given index owner
2423
- *
2424
- * @param entries
2425
- * @param indexOwnerUuid
2426
- */;
2440
+ }()
2441
+ /**
2442
+ * Generates, encrypts and adds entries to vault index for a given index owner
2443
+ *
2444
+ * @param entries
2445
+ * @param indexOwnerUuid
2446
+ */
2447
+ ;
2427
2448
  _proto.vaultIndexAdd =
2428
2449
  /*#__PURE__*/
2429
2450
  function () {
@@ -2500,13 +2521,15 @@ var OroClient = /*#__PURE__*/function () {
2500
2521
  return _vaultIndexAdd.apply(this, arguments);
2501
2522
  }
2502
2523
  return vaultIndexAdd;
2503
- }() /**
2504
- * @name grantLockbox
2505
- * @description Grants a lockbox by retrieving the shared secret of the lockbox and encrypting it with the grantees public key
2506
- * @param granteeUuid
2507
- * @param lockboxUuid
2508
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2509
- */;
2524
+ }()
2525
+ /**
2526
+ * @name grantLockbox
2527
+ * @description Grants a lockbox by retrieving the shared secret of the lockbox and encrypting it with the grantees public key
2528
+ * @param granteeUuid
2529
+ * @param lockboxUuid
2530
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2531
+ */
2532
+ ;
2510
2533
  _proto.grantLockbox =
2511
2534
  /*#__PURE__*/
2512
2535
  function () {
@@ -2549,16 +2572,18 @@ var OroClient = /*#__PURE__*/function () {
2549
2572
  return _grantLockbox.apply(this, arguments);
2550
2573
  }
2551
2574
  return grantLockbox;
2552
- }() /**
2553
- * @name createMessageData
2554
- * @description Creates a Base64 encrypted Payload to send and store in the vault from a message string
2555
- * @param lockboxUuid
2556
- * @param message
2557
- * @param consultationId the consultation for which this message is sent
2558
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2559
- * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2560
- * @returns the data uuid
2561
- */;
2575
+ }()
2576
+ /**
2577
+ * @name createMessageData
2578
+ * @description Creates a Base64 encrypted Payload to send and store in the vault from a message string
2579
+ * @param lockboxUuid
2580
+ * @param message
2581
+ * @param consultationId the consultation for which this message is sent
2582
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2583
+ * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2584
+ * @returns the data uuid
2585
+ */
2586
+ ;
2562
2587
  _proto.createMessageData =
2563
2588
  /*#__PURE__*/
2564
2589
  function () {
@@ -2611,16 +2636,18 @@ var OroClient = /*#__PURE__*/function () {
2611
2636
  return _createMessageData.apply(this, arguments);
2612
2637
  }
2613
2638
  return createMessageData;
2614
- }() /**
2615
- * @name createMessageAttachmentData
2616
- * @description Creates a Base64 encrypted Payload to send and store in the vault from a file
2617
- * @param lockboxUuid
2618
- * @param data the file stored
2619
- * @param consultationId the consultation for which this message is sent
2620
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2621
- * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2622
- * @returns the data uuid
2623
- */;
2639
+ }()
2640
+ /**
2641
+ * @name createMessageAttachmentData
2642
+ * @description Creates a Base64 encrypted Payload to send and store in the vault from a file
2643
+ * @param lockboxUuid
2644
+ * @param data the file stored
2645
+ * @param consultationId the consultation for which this message is sent
2646
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2647
+ * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2648
+ * @returns the data uuid
2649
+ */
2650
+ ;
2624
2651
  _proto.createMessageAttachmentData =
2625
2652
  /*#__PURE__*/
2626
2653
  function () {
@@ -2686,18 +2713,20 @@ var OroClient = /*#__PURE__*/function () {
2686
2713
  return _createMessageAttachmentData.apply(this, arguments);
2687
2714
  }
2688
2715
  return createMessageAttachmentData;
2689
- }() /**
2690
- * @name createAttachmentData
2691
- * @description Creates a Base64 encrypted Payload to send and store in the vault from a file
2692
- * @param lockboxUuid
2693
- * @param data the file stored
2694
- * @param consultationId the consultation for which this message is sent
2695
- * @param category the category for the attachment data
2696
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2697
- * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2698
- * @param withNotification if the insertion of data requires notification
2699
- * @returns the data uuid
2700
- */;
2716
+ }()
2717
+ /**
2718
+ * @name createAttachmentData
2719
+ * @description Creates a Base64 encrypted Payload to send and store in the vault from a file
2720
+ * @param lockboxUuid
2721
+ * @param data the file stored
2722
+ * @param consultationId the consultation for which this message is sent
2723
+ * @param category the category for the attachment data
2724
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2725
+ * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2726
+ * @param withNotification if the insertion of data requires notification
2727
+ * @returns the data uuid
2728
+ */
2729
+ ;
2701
2730
  _proto.createConsultationAttachmentData =
2702
2731
  /*#__PURE__*/
2703
2732
  function () {
@@ -2755,18 +2784,20 @@ var OroClient = /*#__PURE__*/function () {
2755
2784
  return _createConsultationAttachmentData.apply(this, arguments);
2756
2785
  }
2757
2786
  return createConsultationAttachmentData;
2758
- }() /**
2759
- * @name createJsonData
2760
- * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a JSON
2761
- * @param lockboxUuid
2762
- * @param data
2763
- * @param meta
2764
- * @param privateMeta the metadata that will be secured in the vault
2765
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2766
- * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
2767
- * @param options if the insertion of data requires email notification
2768
- * @returns the data uuid
2769
- */;
2787
+ }()
2788
+ /**
2789
+ * @name createJsonData
2790
+ * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a JSON
2791
+ * @param lockboxUuid
2792
+ * @param data
2793
+ * @param meta
2794
+ * @param privateMeta the metadata that will be secured in the vault
2795
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2796
+ * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
2797
+ * @param options if the insertion of data requires email notification
2798
+ * @returns the data uuid
2799
+ */
2800
+ ;
2770
2801
  _proto.createJsonData =
2771
2802
  /*#__PURE__*/
2772
2803
  function () {
@@ -2816,16 +2847,18 @@ var OroClient = /*#__PURE__*/function () {
2816
2847
  return _createJsonData.apply(this, arguments);
2817
2848
  }
2818
2849
  return createJsonData;
2819
- }() /**
2820
- * Get or upsert a data in lockbox
2821
- * @param lockboxUuid the lockbox uuid
2822
- * @param data the data to insert
2823
- * @param publicMetadata the public Metadata
2824
- * @param privateMetadata the private Metadata
2825
- * @param forceReplace set true when the insertion of data requires to replace the data when it exists already
2826
- * @param options if the insertion of data requires email notification
2827
- * @returns the data uuid
2828
- */;
2850
+ }()
2851
+ /**
2852
+ * Get or upsert a data in lockbox
2853
+ * @param lockboxUuid the lockbox uuid
2854
+ * @param data the data to insert
2855
+ * @param publicMetadata the public Metadata
2856
+ * @param privateMetadata the private Metadata
2857
+ * @param forceReplace set true when the insertion of data requires to replace the data when it exists already
2858
+ * @param options if the insertion of data requires email notification
2859
+ * @returns the data uuid
2860
+ */
2861
+ ;
2829
2862
  _proto.getOrInsertJsonData =
2830
2863
  /*#__PURE__*/
2831
2864
  function () {
@@ -2874,18 +2907,20 @@ var OroClient = /*#__PURE__*/function () {
2874
2907
  return _getOrInsertJsonData.apply(this, arguments);
2875
2908
  }
2876
2909
  return getOrInsertJsonData;
2877
- }() /**
2878
- * @name createBytesData
2879
- * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a Bytes
2880
- * @param lockboxUuid
2881
- * @param data
2882
- * @param meta
2883
- * @param privateMeta the metadata that will be secured in the vault
2884
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2885
- * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
2886
- * @param withNotification if the insertion of data requires notification
2887
- * @returns the data uuid
2888
- */;
2910
+ }()
2911
+ /**
2912
+ * @name createBytesData
2913
+ * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a Bytes
2914
+ * @param lockboxUuid
2915
+ * @param data
2916
+ * @param meta
2917
+ * @param privateMeta the metadata that will be secured in the vault
2918
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2919
+ * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
2920
+ * @param withNotification if the insertion of data requires notification
2921
+ * @returns the data uuid
2922
+ */
2923
+ ;
2889
2924
  _proto.createBytesData =
2890
2925
  /*#__PURE__*/
2891
2926
  function () {
@@ -2935,17 +2970,19 @@ var OroClient = /*#__PURE__*/function () {
2935
2970
  return _createBytesData.apply(this, arguments);
2936
2971
  }
2937
2972
  return createBytesData;
2938
- }() /**
2939
- * @name getJsonData
2940
- * @description Fetches and decrypts the lockbox data with the cached shared secret.
2941
- * Decrypts the data to a valid JSON object. If this is impossible, the call to the WASM binary will fail
2942
- *
2943
- * @type T is the generic type specifying the return type object of the function
2944
- * @param lockboxUuid
2945
- * @param dataUuid
2946
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2947
- * @returns the data specified by the generic type <T>
2948
- */;
2973
+ }()
2974
+ /**
2975
+ * @name getJsonData
2976
+ * @description Fetches and decrypts the lockbox data with the cached shared secret.
2977
+ * Decrypts the data to a valid JSON object. If this is impossible, the call to the WASM binary will fail
2978
+ *
2979
+ * @type T is the generic type specifying the return type object of the function
2980
+ * @param lockboxUuid
2981
+ * @param dataUuid
2982
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2983
+ * @returns the data specified by the generic type <T>
2984
+ */
2985
+ ;
2949
2986
  _proto.getJsonData =
2950
2987
  /*#__PURE__*/
2951
2988
  function () {
@@ -2979,13 +3016,15 @@ var OroClient = /*#__PURE__*/function () {
2979
3016
  return _getJsonData.apply(this, arguments);
2980
3017
  }
2981
3018
  return getJsonData;
2982
- }() /**
2983
- * @description Fetches and decrypts the lockbox data with the cached shared secret.
2984
- * @param lockboxUuid
2985
- * @param dataUuid
2986
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2987
- * @returns the bytes data
2988
- */;
3019
+ }()
3020
+ /**
3021
+ * @description Fetches and decrypts the lockbox data with the cached shared secret.
3022
+ * @param lockboxUuid
3023
+ * @param dataUuid
3024
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
3025
+ * @returns the bytes data
3026
+ */
3027
+ ;
2989
3028
  _proto.getBytesData =
2990
3029
  /*#__PURE__*/
2991
3030
  function () {
@@ -3019,16 +3058,18 @@ var OroClient = /*#__PURE__*/function () {
3019
3058
  return _getBytesData.apply(this, arguments);
3020
3059
  }
3021
3060
  return getBytesData;
3022
- }() /**
3023
- * @name getGrants
3024
- * @description Get all lockboxes granted to user with the applied filter
3025
- * @note this function returns cached grants and will not update unless the page is refreshed
3026
- * @todo some versions of lockboxes do not make use of lockbox metadata
3027
- * in this case, all lockboxes need to be filtered one-by-one to find the correct one
3028
- * Remove if this is no longer the case
3029
- * @param filter: the consultationId in which the grant exists
3030
- * @returns decrypted lockboxes granted to user
3031
- */;
3061
+ }()
3062
+ /**
3063
+ * @name getGrants
3064
+ * @description Get all lockboxes granted to user with the applied filter
3065
+ * @note this function returns cached grants and will not update unless the page is refreshed
3066
+ * @todo some versions of lockboxes do not make use of lockbox metadata
3067
+ * in this case, all lockboxes need to be filtered one-by-one to find the correct one
3068
+ * Remove if this is no longer the case
3069
+ * @param filter: the consultationId in which the grant exists
3070
+ * @returns decrypted lockboxes granted to user
3071
+ */
3072
+ ;
3032
3073
  _proto.getGrants =
3033
3074
  /*#__PURE__*/
3034
3075
  function () {
@@ -3128,11 +3169,13 @@ var OroClient = /*#__PURE__*/function () {
3128
3169
  return _getGrants.apply(this, arguments);
3129
3170
  }
3130
3171
  return getGrants;
3131
- }() /**
3132
- * Fetches the role of the account that is logged in
3133
- *
3134
- * @returns the role based scopes defined by the whoami
3135
- */;
3172
+ }()
3173
+ /**
3174
+ * Fetches the role of the account that is logged in
3175
+ *
3176
+ * @returns the role based scopes defined by the whoami
3177
+ */
3178
+ ;
3136
3179
  _proto.getAccountRole =
3137
3180
  /*#__PURE__*/
3138
3181
  function () {
@@ -3156,13 +3199,15 @@ var OroClient = /*#__PURE__*/function () {
3156
3199
  return _getAccountRole.apply(this, arguments);
3157
3200
  }
3158
3201
  return getAccountRole;
3159
- }() /**
3160
- * @name getCachedSecretCryptor
3161
- * @description Retrieves the cached lockbox secret or fetches the secret from vault, then creates the symmetric cryptor and stores it in memory
3162
- * @param lockboxUuid
3163
- * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
3164
- * @returns
3165
- */;
3202
+ }()
3203
+ /**
3204
+ * @name getCachedSecretCryptor
3205
+ * @description Retrieves the cached lockbox secret or fetches the secret from vault, then creates the symmetric cryptor and stores it in memory
3206
+ * @param lockboxUuid
3207
+ * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
3208
+ * @returns
3209
+ */
3210
+ ;
3166
3211
  _proto.getCachedSecretCryptor =
3167
3212
  /*#__PURE__*/
3168
3213
  function () {
@@ -3209,15 +3254,17 @@ var OroClient = /*#__PURE__*/function () {
3209
3254
  return _getCachedSecretCryptor.apply(this, arguments);
3210
3255
  }
3211
3256
  return getCachedSecretCryptor;
3212
- }() /**
3213
- * Retrieves the patient personal information associated to the `consultationId`
3214
- * The `consultationId` only helps to retrieve the patient lockboxes
3215
- * Note: it is possible to have several personal informations data
3216
- * @param consultationId The consultation Id
3217
- * @param category The personal MetadataCategory to fetch
3218
- * @param forceRefresh force data refresh (default to false)
3219
- * @returns the personal data
3220
- */;
3257
+ }()
3258
+ /**
3259
+ * Retrieves the patient personal information associated to the `consultationId`
3260
+ * The `consultationId` only helps to retrieve the patient lockboxes
3261
+ * Note: it is possible to have several personal informations data
3262
+ * @param consultationId The consultation Id
3263
+ * @param category The personal MetadataCategory to fetch
3264
+ * @param forceRefresh force data refresh (default to false)
3265
+ * @returns the personal data
3266
+ */
3267
+ ;
3221
3268
  _proto.getPersonalInformationsFromConsultId =
3222
3269
  /*#__PURE__*/
3223
3270
  function () {
@@ -3243,14 +3290,16 @@ var OroClient = /*#__PURE__*/function () {
3243
3290
  return _getPersonalInformationsFromConsultId.apply(this, arguments);
3244
3291
  }
3245
3292
  return getPersonalInformationsFromConsultId;
3246
- }() /**
3247
- * Retrieves the patient medical data associated to the `consultationId`
3248
- * The `consultationId` only helps to retrieve the patient lockboxes
3249
- * Note: it is possible to have several medical data
3250
- * @param consultationId The consultation Id
3251
- * @param forceRefresh force data refresh (default to false)
3252
- * @returns the medical data
3253
- */;
3293
+ }()
3294
+ /**
3295
+ * Retrieves the patient medical data associated to the `consultationId`
3296
+ * The `consultationId` only helps to retrieve the patient lockboxes
3297
+ * Note: it is possible to have several medical data
3298
+ * @param consultationId The consultation Id
3299
+ * @param forceRefresh force data refresh (default to false)
3300
+ * @returns the medical data
3301
+ */
3302
+ ;
3254
3303
  _proto.getMedicalDataFromConsultId =
3255
3304
  /*#__PURE__*/
3256
3305
  function () {
@@ -3390,11 +3439,13 @@ var OroClient = /*#__PURE__*/function () {
3390
3439
  return _getMetaCategoryFromConsultId.apply(this, arguments);
3391
3440
  }
3392
3441
  return getMetaCategoryFromConsultId;
3393
- }() /**
3394
- * @description retrieves the personal information stored in the first owned lockbox
3395
- * @param userId The user Id
3396
- * @returns the personal data
3397
- */;
3442
+ }()
3443
+ /**
3444
+ * @description retrieves the personal information stored in the first owned lockbox
3445
+ * @param userId The user Id
3446
+ * @returns the personal data
3447
+ */
3448
+ ;
3398
3449
  _proto.getPersonalInformations =
3399
3450
  /*#__PURE__*/
3400
3451
  function () {
@@ -3460,12 +3511,14 @@ var OroClient = /*#__PURE__*/function () {
3460
3511
  return _getPersonalInformations.apply(this, arguments);
3461
3512
  }
3462
3513
  return getPersonalInformations;
3463
- }() /**
3464
- * Retrieves the grant associated to a consultationId
3465
- * @note returns the first grant only
3466
- * @param consultationId The consultationId
3467
- * @returns the grant
3468
- */;
3514
+ }()
3515
+ /**
3516
+ * Retrieves the grant associated to a consultationId
3517
+ * @note returns the first grant only
3518
+ * @param consultationId The consultationId
3519
+ * @returns the grant
3520
+ */
3521
+ ;
3469
3522
  _proto.getGrantFromConsultId =
3470
3523
  /*#__PURE__*/
3471
3524
  function () {
@@ -3499,11 +3552,13 @@ var OroClient = /*#__PURE__*/function () {
3499
3552
  return _getGrantFromConsultId.apply(this, arguments);
3500
3553
  }
3501
3554
  return getGrantFromConsultId;
3502
- }() /**
3503
- * retrieves the identity associated to the `consultationId`
3504
- * @param consultationId The consultation Id
3505
- * @returns the identity
3506
- */;
3555
+ }()
3556
+ /**
3557
+ * retrieves the identity associated to the `consultationId`
3558
+ * @param consultationId The consultation Id
3559
+ * @returns the identity
3560
+ */
3561
+ ;
3507
3562
  _proto.getIdentityFromConsultId =
3508
3563
  /*#__PURE__*/
3509
3564
  function () {
@@ -3538,16 +3593,18 @@ var OroClient = /*#__PURE__*/function () {
3538
3593
  return _getIdentityFromConsultId.apply(this, arguments);
3539
3594
  }
3540
3595
  return getIdentityFromConsultId;
3541
- }() /**
3542
- * retrieves the lockbox manifest for a given lockbox and add's its private metadata
3543
- * @note the lockbox manifest will retrieved the cached manifest first unless force refresh is enabled
3544
- * @param lockboxUuid
3545
- * @param filter
3546
- * @param expandPrivateMetadata
3547
- * @param lockboxOwnerUuid
3548
- * @param forceRefresh
3549
- * @returns the lockbox manifest
3550
- */;
3596
+ }()
3597
+ /**
3598
+ * retrieves the lockbox manifest for a given lockbox and add's its private metadata
3599
+ * @note the lockbox manifest will retrieved the cached manifest first unless force refresh is enabled
3600
+ * @param lockboxUuid
3601
+ * @param filter
3602
+ * @param expandPrivateMetadata
3603
+ * @param lockboxOwnerUuid
3604
+ * @param forceRefresh
3605
+ * @returns the lockbox manifest
3606
+ */
3607
+ ;
3551
3608
  _proto.getLockboxManifest =
3552
3609
  /*#__PURE__*/
3553
3610
  function () {
@@ -3619,13 +3676,15 @@ var OroClient = /*#__PURE__*/function () {
3619
3676
  return _getLockboxManifest.apply(this, arguments);
3620
3677
  }
3621
3678
  return getLockboxManifest;
3622
- }() /**
3623
- * @description Create or update the personal information and store it in the first owned lockbox
3624
- * @param identity The identity to use
3625
- * @param data The personal data to store
3626
- * @param dataUuid (optional) The dataUuid to update
3627
- * @returns
3628
- */;
3679
+ }()
3680
+ /**
3681
+ * @description Create or update the personal information and store it in the first owned lockbox
3682
+ * @param identity The identity to use
3683
+ * @param data The personal data to store
3684
+ * @param dataUuid (optional) The dataUuid to update
3685
+ * @returns
3686
+ */
3687
+ ;
3629
3688
  _proto.createPersonalInformations =
3630
3689
  /*#__PURE__*/
3631
3690
  function () {
@@ -3674,13 +3733,15 @@ var OroClient = /*#__PURE__*/function () {
3674
3733
  return _createPersonalInformations.apply(this, arguments);
3675
3734
  }
3676
3735
  return createPersonalInformations;
3677
- }() /**
3678
- * Create or update user Preference
3679
- * @param identity
3680
- * @param preference
3681
- * @param dataUuid
3682
- * @returns
3683
- */;
3736
+ }()
3737
+ /**
3738
+ * Create or update user Preference
3739
+ * @param identity
3740
+ * @param preference
3741
+ * @param dataUuid
3742
+ * @returns
3743
+ */
3744
+ ;
3684
3745
  _proto.createUserPreference =
3685
3746
  /*#__PURE__*/
3686
3747
  function () {
@@ -3729,11 +3790,13 @@ var OroClient = /*#__PURE__*/function () {
3729
3790
  return _createUserPreference.apply(this, arguments);
3730
3791
  }
3731
3792
  return createUserPreference;
3732
- }() /**
3733
- * retrieves the user preference from a grant
3734
- * @param grant The grant
3735
- * @returns the user preference
3736
- */;
3793
+ }()
3794
+ /**
3795
+ * retrieves the user preference from a grant
3796
+ * @param grant The grant
3797
+ * @returns the user preference
3798
+ */
3799
+ ;
3737
3800
  _proto.getDataFromGrant =
3738
3801
  /*#__PURE__*/
3739
3802
  function () {
@@ -3786,11 +3849,13 @@ var OroClient = /*#__PURE__*/function () {
3786
3849
  return _getDataFromGrant.apply(this, arguments);
3787
3850
  }
3788
3851
  return getDataFromGrant;
3789
- }() /**
3790
- * retrieves the user preference from a consultation id
3791
- * @param consultationId The related consultationId
3792
- * @returns the user preference
3793
- */;
3852
+ }()
3853
+ /**
3854
+ * retrieves the user preference from a consultation id
3855
+ * @param consultationId The related consultationId
3856
+ * @returns the user preference
3857
+ */
3858
+ ;
3794
3859
  _proto.getUserPreferenceFromConsultId =
3795
3860
  /*#__PURE__*/
3796
3861
  function () {
@@ -3825,11 +3890,13 @@ var OroClient = /*#__PURE__*/function () {
3825
3890
  return _getUserPreferenceFromConsultId.apply(this, arguments);
3826
3891
  }
3827
3892
  return getUserPreferenceFromConsultId;
3828
- }() /**
3829
- * retrieves the user preference stored in the first owned lockbox from identity
3830
- * @param identity The identity to use
3831
- * @returns the user preference
3832
- */;
3893
+ }()
3894
+ /**
3895
+ * retrieves the user preference stored in the first owned lockbox from identity
3896
+ * @param identity The identity to use
3897
+ * @returns the user preference
3898
+ */
3899
+ ;
3833
3900
  _proto.getUserPreference =
3834
3901
  /*#__PURE__*/
3835
3902
  function () {
@@ -3866,11 +3933,13 @@ var OroClient = /*#__PURE__*/function () {
3866
3933
  return _getUserPreference.apply(this, arguments);
3867
3934
  }
3868
3935
  return getUserPreference;
3869
- }() /**
3870
- * retrieves the user preference from a consultation id
3871
- * @param consultationId The related consultationId
3872
- * @returns the user preference
3873
- */;
3936
+ }()
3937
+ /**
3938
+ * retrieves the user preference from a consultation id
3939
+ * @param consultationId The related consultationId
3940
+ * @returns the user preference
3941
+ */
3942
+ ;
3874
3943
  _proto.getRecoveryDataFromConsultId =
3875
3944
  /*#__PURE__*/
3876
3945
  function () {
@@ -3905,11 +3974,13 @@ var OroClient = /*#__PURE__*/function () {
3905
3974
  return _getRecoveryDataFromConsultId.apply(this, arguments);
3906
3975
  }
3907
3976
  return getRecoveryDataFromConsultId;
3908
- }() /**
3909
- * retrieves the user preference stored in the first owned lockbox from identity
3910
- * @param identity The identity to use
3911
- * @returns the user preference
3912
- */;
3977
+ }()
3978
+ /**
3979
+ * retrieves the user preference stored in the first owned lockbox from identity
3980
+ * @param identity The identity to use
3981
+ * @returns the user preference
3982
+ */
3983
+ ;
3913
3984
  _proto.getRecoveryData =
3914
3985
  /*#__PURE__*/
3915
3986
  function () {
@@ -3946,16 +4017,18 @@ var OroClient = /*#__PURE__*/function () {
3946
4017
  return _getRecoveryData.apply(this, arguments);
3947
4018
  }
3948
4019
  return getRecoveryData;
3949
- }() /**
3950
- * @name getAssignedConsultations
3951
- * @description finds all assigned or owned consultations for the logged user
3952
- * Steps:
3953
- * - Retrieves all granted lockboxes given to the logged user
3954
- * - for each lockbox, find all consultation ids
3955
- * - for each consultation id, retrieve the consult information
3956
- * @param practiceUuid the uuid of the practice to look consult into
3957
- * @returns the list of consults
3958
- */;
4020
+ }()
4021
+ /**
4022
+ * @name getAssignedConsultations
4023
+ * @description finds all assigned or owned consultations for the logged user
4024
+ * Steps:
4025
+ * - Retrieves all granted lockboxes given to the logged user
4026
+ * - for each lockbox, find all consultation ids
4027
+ * - for each consultation id, retrieve the consult information
4028
+ * @param practiceUuid the uuid of the practice to look consult into
4029
+ * @returns the list of consults
4030
+ */
4031
+ ;
3959
4032
  _proto.getAssignedConsultations =
3960
4033
  /*#__PURE__*/
3961
4034
  function () {
@@ -4013,11 +4086,13 @@ var OroClient = /*#__PURE__*/function () {
4013
4086
  return _getAssignedConsultations.apply(this, arguments);
4014
4087
  }
4015
4088
  return getAssignedConsultations;
4016
- }() /**
4017
- * Gets the past consultations of the patient as well as his relatives if any
4018
- * @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
4019
- * @param practiceUuid
4020
- */;
4089
+ }()
4090
+ /**
4091
+ * Gets the past consultations of the patient as well as his relatives if any
4092
+ * @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
4093
+ * @param practiceUuid
4094
+ */
4095
+ ;
4021
4096
  _proto.getPastConsultationsFromConsultId =
4022
4097
  /*#__PURE__*/
4023
4098
  function () {
@@ -4088,12 +4163,14 @@ var OroClient = /*#__PURE__*/function () {
4088
4163
  return _getPastConsultationsFromConsultId.apply(this, arguments);
4089
4164
  }
4090
4165
  return getPastConsultationsFromConsultId;
4091
- }() /**
4092
- * @name getPatientConsultationData
4093
- * @description retrieves the consultation data
4094
- * @param consultationId
4095
- * @returns
4096
- */;
4166
+ }()
4167
+ /**
4168
+ * @name getPatientConsultationData
4169
+ * @description retrieves the consultation data
4170
+ * @param consultationId
4171
+ * @returns
4172
+ */
4173
+ ;
4097
4174
  _proto.getPatientConsultationData =
4098
4175
  /*#__PURE__*/
4099
4176
  function () {
@@ -4139,11 +4216,13 @@ var OroClient = /*#__PURE__*/function () {
4139
4216
  return _getPatientConsultationData.apply(this, arguments);
4140
4217
  }
4141
4218
  return getPatientConsultationData;
4142
- }() /**
4143
- * This function returns the patient prescriptions
4144
- * @param consultationId
4145
- * @returns
4146
- */;
4219
+ }()
4220
+ /**
4221
+ * This function returns the patient prescriptions
4222
+ * @param consultationId
4223
+ * @returns
4224
+ */
4225
+ ;
4147
4226
  _proto.getPatientPrescriptionsList =
4148
4227
  /*#__PURE__*/
4149
4228
  function () {
@@ -4167,11 +4246,13 @@ var OroClient = /*#__PURE__*/function () {
4167
4246
  return _getPatientPrescriptionsList.apply(this, arguments);
4168
4247
  }
4169
4248
  return getPatientPrescriptionsList;
4170
- }() /**
4171
- * This function returns the patient results
4172
- * @param consultationId
4173
- * @returns
4174
- */;
4249
+ }()
4250
+ /**
4251
+ * This function returns the patient results
4252
+ * @param consultationId
4253
+ * @returns
4254
+ */
4255
+ ;
4175
4256
  _proto.getPatientResultsList =
4176
4257
  /*#__PURE__*/
4177
4258
  function () {
@@ -4195,11 +4276,13 @@ var OroClient = /*#__PURE__*/function () {
4195
4276
  return _getPatientResultsList.apply(this, arguments);
4196
4277
  }
4197
4278
  return getPatientResultsList;
4198
- }() /**
4199
- * returns the patient treatment plan options
4200
- * @param consultationId
4201
- * @returns Document[] corresponding to the patient treatment plan options
4202
- */;
4279
+ }()
4280
+ /**
4281
+ * returns the patient treatment plan options
4282
+ * @param consultationId
4283
+ * @returns Document[] corresponding to the patient treatment plan options
4284
+ */
4285
+ ;
4203
4286
  _proto.getPatientTreatmentPlans =
4204
4287
  /*#__PURE__*/
4205
4288
  function () {
@@ -4223,12 +4306,14 @@ var OroClient = /*#__PURE__*/function () {
4223
4306
  return _getPatientTreatmentPlans.apply(this, arguments);
4224
4307
  }
4225
4308
  return getPatientTreatmentPlans;
4226
- }() /**
4227
- * returns a specific patient treatment plan option
4228
- * @param consultationId
4229
- * @param treatmentPlanId
4230
- * @returns
4231
- */;
4309
+ }()
4310
+ /**
4311
+ * returns a specific patient treatment plan option
4312
+ * @param consultationId
4313
+ * @param treatmentPlanId
4314
+ * @returns
4315
+ */
4316
+ ;
4232
4317
  _proto.getPatientTreatmentPlanByUuid =
4233
4318
  /*#__PURE__*/
4234
4319
  function () {
@@ -4253,15 +4338,17 @@ var OroClient = /*#__PURE__*/function () {
4253
4338
  return _getPatientTreatmentPlanByUuid.apply(this, arguments);
4254
4339
  }
4255
4340
  return getPatientTreatmentPlanByUuid;
4256
- }() /**
4257
- * @name getPatientDocumentsList
4258
- * @description applies the provided filter to the vault to only find those documents
4259
- * @param filters the applied filters (e.g. type of documents)
4260
- * @param expandPrivateMetadata whether or not, the private metadata needs to be retrieved
4261
- * (more computationally expensive)
4262
- * @param consultationId
4263
- * @returns the filtered document list
4264
- */;
4341
+ }()
4342
+ /**
4343
+ * @name getPatientDocumentsList
4344
+ * @description applies the provided filter to the vault to only find those documents
4345
+ * @param filters the applied filters (e.g. type of documents)
4346
+ * @param expandPrivateMetadata whether or not, the private metadata needs to be retrieved
4347
+ * (more computationally expensive)
4348
+ * @param consultationId
4349
+ * @returns the filtered document list
4350
+ */
4351
+ ;
4265
4352
  _proto.getPatientDocumentsList =
4266
4353
  /*#__PURE__*/
4267
4354
  function () {
@@ -4375,12 +4462,14 @@ var OroClient = /*#__PURE__*/function () {
4375
4462
  return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
4376
4463
  }
4377
4464
  return recoverPrivateKeyFromSecurityQuestions;
4378
- }() /**
4379
- * @name recoverPrivateKeyFromPassword
4380
- * @description Recovers and sets the rsa private key from the password
4381
- * @param id
4382
- * @param password
4383
- */;
4465
+ }()
4466
+ /**
4467
+ * @name recoverPrivateKeyFromPassword
4468
+ * @description Recovers and sets the rsa private key from the password
4469
+ * @param id
4470
+ * @param password
4471
+ */
4472
+ ;
4384
4473
  _proto.recoverPrivateKeyFromPassword =
4385
4474
  /*#__PURE__*/
4386
4475
  function () {
@@ -4414,12 +4503,14 @@ var OroClient = /*#__PURE__*/function () {
4414
4503
  return _recoverPrivateKeyFromPassword.apply(this, arguments);
4415
4504
  }
4416
4505
  return recoverPrivateKeyFromPassword;
4417
- }() /**
4418
- * @name recoverPrivateKeyFromMasterKey
4419
- * @description Recovers and sets the rsa private key from the master key
4420
- * @param id
4421
- * @param masterKey
4422
- */;
4506
+ }()
4507
+ /**
4508
+ * @name recoverPrivateKeyFromMasterKey
4509
+ * @description Recovers and sets the rsa private key from the master key
4510
+ * @param id
4511
+ * @param masterKey
4512
+ */
4513
+ ;
4423
4514
  _proto.recoverPrivateKeyFromMasterKey =
4424
4515
  /*#__PURE__*/
4425
4516
  function () {
@@ -4447,14 +4538,16 @@ var OroClient = /*#__PURE__*/function () {
4447
4538
  return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
4448
4539
  }
4449
4540
  return recoverPrivateKeyFromMasterKey;
4450
- }() /**
4451
- * @description Generates and updates the security questions and answers payload using new recovery questions and answers
4452
- * 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!!!
4453
- * @param id
4454
- * @param recoverySecurityQuestions
4455
- * @param recoverySecurityAnswers
4456
- * @param threshold the number of answers needed to rebuild the secret
4457
- */;
4541
+ }()
4542
+ /**
4543
+ * @description Generates and updates the security questions and answers payload using new recovery questions and answers
4544
+ * 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!!!
4545
+ * @param id
4546
+ * @param recoverySecurityQuestions
4547
+ * @param recoverySecurityAnswers
4548
+ * @param threshold the number of answers needed to rebuild the secret
4549
+ */
4550
+ ;
4458
4551
  _proto.updateSecurityQuestions =
4459
4552
  /*#__PURE__*/
4460
4553
  function () {
@@ -4489,17 +4582,19 @@ var OroClient = /*#__PURE__*/function () {
4489
4582
  return _updateSecurityQuestions.apply(this, arguments);
4490
4583
  }
4491
4584
  return updateSecurityQuestions;
4492
- }() /**
4493
- * @description Generates and stores the payload encrypted payload and updates the password itself (double hash)
4494
- * @important
4495
- * the recovery payload uses a singly hashed password and the password stored is doubly hashed so
4496
- * the stored password cannot derive the decryption key in the payload
4497
- * @note
4498
- * the old password must be provided when not performing an account recovery
4499
- * @param id
4500
- * @param newPassword
4501
- * @param oldPassword
4502
- */;
4585
+ }()
4586
+ /**
4587
+ * @description Generates and stores the payload encrypted payload and updates the password itself (double hash)
4588
+ * @important
4589
+ * the recovery payload uses a singly hashed password and the password stored is doubly hashed so
4590
+ * the stored password cannot derive the decryption key in the payload
4591
+ * @note
4592
+ * the old password must be provided when not performing an account recovery
4593
+ * @param id
4594
+ * @param newPassword
4595
+ * @param oldPassword
4596
+ */
4597
+ ;
4503
4598
  _proto.updatePassword =
4504
4599
  /*#__PURE__*/
4505
4600
  function () {
@@ -4543,14 +4638,16 @@ var OroClient = /*#__PURE__*/function () {
4543
4638
  return _updatePassword.apply(this, arguments);
4544
4639
  }
4545
4640
  return updatePassword;
4546
- }() /**
4547
- * @description Generates and stores the master key encrypted payload
4548
- * Important
4549
- * 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!
4550
- * @param id
4551
- * @param masterKey
4552
- * @param lockboxUuid
4553
- */;
4641
+ }()
4642
+ /**
4643
+ * @description Generates and stores the master key encrypted payload
4644
+ * Important
4645
+ * 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!
4646
+ * @param id
4647
+ * @param masterKey
4648
+ * @param lockboxUuid
4649
+ */
4650
+ ;
4554
4651
  _proto.updateMasterKey =
4555
4652
  /*#__PURE__*/
4556
4653
  function () {