oro-sdk 5.4.0 → 5.5.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/client.d.ts CHANGED
@@ -109,7 +109,7 @@ export declare class OroClient {
109
109
  * @param populatedRefillWorkflow
110
110
  * @returns
111
111
  */
112
- createRefill(consult: ConsultRequest, populatedRefillWorkflow: WorkflowData): Promise<void>;
112
+ createRefill(consult: ConsultRequest, populatedRefillWorkflow: WorkflowData, indexSearch?: boolean, onProgress?: (progress: number, descriptionKey: string) => void): Promise<Consult>;
113
113
  /**
114
114
  * Fetches all grants, and consultations that exist in each lockbox
115
115
  * Then updates the index for the current user with the lockbox consult relationship
@@ -1,10 +1,12 @@
1
- import { ConsultRequest, PlaceData, WorkflowData } from 'oro-sdk-apis';
1
+ import { Consult, ConsultRequest, PlaceData, WorkflowData } from 'oro-sdk-apis';
2
2
  import { OroClient } from '..';
3
3
  /**
4
4
  * Placeholder while the workflow interpreter for the refill flows is complete
5
5
  *
6
6
  * Creates a fake workflow in which the workflow data will reside
7
7
  *
8
+ * @todo deprecate this function when using workflows and populating them from the app
9
+ *
8
10
  * @param isTreatmentWorking the value from the `is treatment working` question
9
11
  * @param hasSideEffects the value from the `does the treatment have side effects` question
10
12
  * @param deliveryAddress the provided delivery address
@@ -18,4 +20,7 @@ export declare function getRefillAnswersAsWorkflow(isTreatmentWorking: string, h
18
20
  * @param populatedRefillWorkflow the refill workflow data
19
21
  * @param oroClient
20
22
  */
21
- export declare function createRefill(consultRequest: ConsultRequest, populatedRefillWorkflow: WorkflowData, oroClient: OroClient): Promise<void>;
23
+ export declare function createRefill(consultRequest: ConsultRequest, populatedRefillWorkflow: WorkflowData, oroClient: OroClient, indexSearch?: boolean, onProgress?: (progress: number, descriptionKey: string, extraInfo?: {
24
+ storedImagesNum?: number;
25
+ totalImagesNum?: number;
26
+ }) => void): Promise<Consult>;
@@ -1740,6 +1740,8 @@ var MAX_RETRIES$1 = 15;
1740
1740
  *
1741
1741
  * Creates a fake workflow in which the workflow data will reside
1742
1742
  *
1743
+ * @todo deprecate this function when using workflows and populating them from the app
1744
+ *
1743
1745
  * @param isTreatmentWorking the value from the `is treatment working` question
1744
1746
  * @param hasSideEffects the value from the `does the treatment have side effects` question
1745
1747
  * @param deliveryAddress the provided delivery address
@@ -1747,10 +1749,12 @@ var MAX_RETRIES$1 = 15;
1747
1749
  * @returns a workflow
1748
1750
  */
1749
1751
  function getRefillAnswersAsWorkflow(isTreatmentWorking, hasSideEffects, deliveryAddress, pharmacy) {
1750
- var _ref, _ref2, _selectedAnswers$push, _selectedAnswers$push2;
1751
- var selectedAnswers = [(_ref = {}, _ref['isTreatmentWorking'] = isTreatmentWorking, _ref), (_ref2 = {}, _ref2['hasSideEffects'] = hasSideEffects, _ref2)];
1752
- if (deliveryAddress) selectedAnswers.push((_selectedAnswers$push = {}, _selectedAnswers$push['deliveryAddress'] = deliveryAddress, _selectedAnswers$push));
1753
- if (pharmacy) selectedAnswers.push((_selectedAnswers$push2 = {}, _selectedAnswers$push2['pharmacy'] = JSON.stringify(pharmacy), _selectedAnswers$push2));
1752
+ var _ref, _extends2, _extends3;
1753
+ var selectedAnswers = [(_ref = {}, _ref['isTreatmentWorking'] = isTreatmentWorking, _ref['hasSideEffects'] = hasSideEffects, _ref)];
1754
+ // appends the delivery address to the first page of the answers if provided
1755
+ if (deliveryAddress) selectedAnswers[0] = _extends({}, selectedAnswers[0], (_extends2 = {}, _extends2['deliveryAddress'] = deliveryAddress, _extends2));
1756
+ // appends the pharmacy to the first page of the answers if provided
1757
+ if (pharmacy) selectedAnswers[0] = _extends({}, selectedAnswers[0], (_extends3 = {}, _extends3['pharmacy'] = JSON.stringify(pharmacy), _extends3));
1754
1758
  return {
1755
1759
  id: '32573a20-6f1d-49be-9ad3-b87c58074979',
1756
1760
  createdAt: '2022-10-03T00:00:00.000Z',
@@ -1809,7 +1813,6 @@ function getRefillAnswersAsWorkflow(isTreatmentWorking, hasSideEffects, delivery
1809
1813
  kind: 'online-pharmacy-picker',
1810
1814
  label: 'Which pharmacy do you want the prescription sent to?',
1811
1815
  metaCategory: initApis.MetadataCategory.Refill,
1812
- minorLabel: ' (Optional)',
1813
1816
  summaryLabel: 'Your pharmacy'
1814
1817
  },
1815
1818
  youAddress: {
@@ -1829,43 +1832,48 @@ function getRefillAnswersAsWorkflow(isTreatmentWorking, hasSideEffects, delivery
1829
1832
  * @param populatedRefillWorkflow the refill workflow data
1830
1833
  * @param oroClient
1831
1834
  */
1832
- function createRefill(_x, _x2, _x3) {
1835
+ function createRefill(_x, _x2, _x3, _x4, _x5) {
1833
1836
  return _createRefill.apply(this, arguments);
1834
1837
  }
1835
1838
  function _createRefill() {
1836
- _createRefill = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(consultRequest, populatedRefillWorkflow, oroClient) {
1837
- var retry, errorsThrown, newConsult, lockboxUuid;
1839
+ _createRefill = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(consultRequest, populatedRefillWorkflow, oroClient, indexSearch, onProgress) {
1840
+ var retry, errorsThrown, newConsult, lockboxUuid, stepsTotalNum, currentStep, rawConsultationManifest, rawConsultation;
1838
1841
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1839
1842
  while (1) {
1840
1843
  switch (_context.prev = _context.next) {
1841
1844
  case 0:
1845
+ if (indexSearch === void 0) {
1846
+ indexSearch = true;
1847
+ }
1842
1848
  retry = MAX_RETRIES$1;
1843
1849
  errorsThrown = [];
1844
- case 2:
1850
+ newConsult = undefined;
1851
+ stepsTotalNum = 6;
1852
+ case 5:
1845
1853
  if (!(retry > 0)) {
1846
- _context.next = 28;
1854
+ _context.next = 54;
1847
1855
  break;
1848
1856
  }
1849
- _context.prev = 3;
1850
- if (newConsult) {
1851
- _context.next = 8;
1852
- break;
1853
- }
1854
- _context.next = 7;
1857
+ _context.prev = 6;
1858
+ currentStep = 0;
1859
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'create_consult');
1860
+ // Creating refill consult
1861
+ _context.next = 11;
1855
1862
  return getOrCreatePatientConsultationUuid(consultRequest, oroClient);
1856
- case 7:
1863
+ case 11:
1857
1864
  newConsult = _context.sent;
1858
- case 8:
1865
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'get_patient_grant');
1859
1866
  if (lockboxUuid) {
1860
- _context.next = 12;
1867
+ _context.next = 17;
1861
1868
  break;
1862
1869
  }
1863
- _context.next = 11;
1870
+ _context.next = 16;
1864
1871
  return oroClient.getGrants();
1865
- case 11:
1872
+ case 16:
1866
1873
  lockboxUuid = _context.sent[0].lockboxUuid;
1867
- case 12:
1868
- _context.next = 14;
1874
+ case 17:
1875
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'store_patient_data');
1876
+ _context.next = 20;
1869
1877
  return oroClient.getOrInsertJsonData(lockboxUuid, populatedRefillWorkflow, {
1870
1878
  category: initApis.MetadataCategory.Refill,
1871
1879
  documentType: initApis.DocumentType.PopulatedWorkflowData,
@@ -1873,39 +1881,95 @@ function _createRefill() {
1873
1881
  }, {}, {
1874
1882
  withNotification: true
1875
1883
  })["catch"](function (err) {
1876
- console.error('[SDK: prescription refill] Some errors happened during refill data upload', err);
1884
+ console.error('[SDK: prescription refill request] Some errors happened during refill data upload', err);
1877
1885
  errorsThrown.push(err);
1878
1886
  });
1879
- case 14:
1887
+ case 20:
1888
+ if (!indexSearch) {
1889
+ _context.next = 36;
1890
+ break;
1891
+ }
1892
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'fetching_parent_workflow_data');
1893
+ // raw workflow from parent consultation (contains first and last name of patient)
1894
+ _context.next = 24;
1895
+ return oroClient.getLockboxManifest(lockboxUuid, {
1896
+ category: initApis.MetadataCategory.Raw,
1897
+ consultationId: consultRequest.uuidParent
1898
+ }, false);
1899
+ case 24:
1900
+ rawConsultationManifest = _context.sent;
1901
+ if (!(rawConsultationManifest && rawConsultationManifest.length > 0)) {
1902
+ _context.next = 34;
1903
+ break;
1904
+ }
1905
+ _context.next = 28;
1906
+ return oroClient.getJsonData(lockboxUuid, rawConsultationManifest[0].dataUuid);
1907
+ case 28:
1908
+ rawConsultation = _context.sent;
1909
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'search_indexing');
1910
+ _context.next = 32;
1911
+ return buildConsultSearchIndex(newConsult, rawConsultation, oroClient)["catch"](function (err) {
1912
+ console.error('[SDK: prescription refill request] personal information not found or another error occured during search indexing', err);
1913
+ if (retry <= 1) return; // this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
1914
+ errorsThrown.push(err);
1915
+ });
1916
+ case 32:
1917
+ _context.next = 36;
1918
+ break;
1919
+ case 34:
1920
+ console.error('[SDK: prescription refill request] parent consultation\'s raw data not found');
1921
+ errorsThrown.push(Error('RawData Not Found'));
1922
+ case 36:
1880
1923
  if (!(errorsThrown.length > 0)) {
1881
- _context.next = 16;
1924
+ _context.next = 38;
1882
1925
  break;
1883
1926
  }
1884
1927
  throw errorsThrown;
1885
- case 16:
1886
- _context.next = 18;
1928
+ case 38:
1929
+ _context.next = 40;
1887
1930
  return oroClient.consultClient.updateConsultByUUID(newConsult.uuid, {
1888
1931
  statusMedical: initApis.MedicalStatus.New
1889
1932
  });
1890
- case 18:
1891
- _context.next = 25;
1892
- break;
1893
- case 20:
1894
- _context.prev = 20;
1895
- _context.t0 = _context["catch"](3);
1896
- console.error("[SDK] Error occured during refill: " + _context.t0 + ", retrying... Retries remaining: " + retry);
1933
+ case 40:
1934
+ // if we got through the complete flow, the registration succeeded
1935
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'success');
1936
+ _context.next = 43;
1937
+ return oroClient.cleanIndex();
1938
+ case 43:
1939
+ return _context.abrupt("break", 54);
1940
+ case 46:
1941
+ _context.prev = 46;
1942
+ _context.t0 = _context["catch"](6);
1943
+ console.error("[SDK] Error occured during prescription refill request: " + _context.t0 + ", retrying... Retries remaining: " + retry);
1897
1944
  errorsThrown = [];
1898
- return _context.abrupt("continue", 25);
1899
- case 25:
1945
+ return _context.abrupt("continue", 51);
1946
+ case 51:
1900
1947
  retry--;
1901
- _context.next = 2;
1948
+ _context.next = 5;
1902
1949
  break;
1903
- case 28:
1950
+ case 54:
1951
+ if (!(retry <= 0)) {
1952
+ _context.next = 57;
1953
+ break;
1954
+ }
1955
+ console.error('[SDK] prescription refill request failed: MAX_RETRIES reached');
1956
+ throw 'RegistrationFailed';
1957
+ case 57:
1958
+ if (newConsult) {
1959
+ _context.next = 60;
1960
+ break;
1961
+ }
1962
+ console.error('[SDK] prescription refill request failed: MAX_RETRIES reached');
1963
+ throw 'RegistrationFailed';
1964
+ case 60:
1965
+ console.log('Successfully Created refill');
1966
+ return _context.abrupt("return", newConsult);
1967
+ case 62:
1904
1968
  case "end":
1905
1969
  return _context.stop();
1906
1970
  }
1907
1971
  }
1908
- }, _callee, null, [[3, 20]]);
1972
+ }, _callee, null, [[6, 46]]);
1909
1973
  }));
1910
1974
  return _createRefill.apply(this, arguments);
1911
1975
  }
@@ -2337,26 +2401,29 @@ var OroClient = /*#__PURE__*/function () {
2337
2401
  _proto.createRefill =
2338
2402
  /*#__PURE__*/
2339
2403
  function () {
2340
- var _createRefill2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consult, populatedRefillWorkflow) {
2404
+ var _createRefill2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consult, populatedRefillWorkflow, indexSearch, onProgress) {
2341
2405
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
2342
2406
  while (1) {
2343
2407
  switch (_context8.prev = _context8.next) {
2344
2408
  case 0:
2409
+ if (indexSearch === void 0) {
2410
+ indexSearch = true;
2411
+ }
2345
2412
  if (this.rsa) {
2346
- _context8.next = 2;
2413
+ _context8.next = 3;
2347
2414
  break;
2348
2415
  }
2349
2416
  throw IncompleteAuthentication;
2350
- case 2:
2351
- return _context8.abrupt("return", createRefill(consult, populatedRefillWorkflow, this));
2352
2417
  case 3:
2418
+ return _context8.abrupt("return", createRefill(consult, populatedRefillWorkflow, this, indexSearch, onProgress));
2419
+ case 4:
2353
2420
  case "end":
2354
2421
  return _context8.stop();
2355
2422
  }
2356
2423
  }
2357
2424
  }, _callee8, this);
2358
2425
  }));
2359
- function createRefill$1(_x19, _x20) {
2426
+ function createRefill$1(_x19, _x20, _x21, _x22) {
2360
2427
  return _createRefill2.apply(this, arguments);
2361
2428
  }
2362
2429
  return createRefill$1;
@@ -2417,7 +2484,7 @@ var OroClient = /*#__PURE__*/function () {
2417
2484
  }
2418
2485
  }, _callee9);
2419
2486
  }));
2420
- return function (_x21) {
2487
+ return function (_x23) {
2421
2488
  return _ref2.apply(this, arguments);
2422
2489
  };
2423
2490
  }())).then(function (consults) {
@@ -2521,7 +2588,7 @@ var OroClient = /*#__PURE__*/function () {
2521
2588
  }
2522
2589
  }, _callee11, this);
2523
2590
  }));
2524
- function vaultIndexAdd(_x22, _x23) {
2591
+ function vaultIndexAdd(_x24, _x25) {
2525
2592
  return _vaultIndexAdd.apply(this, arguments);
2526
2593
  }
2527
2594
  return vaultIndexAdd;
@@ -2572,7 +2639,7 @@ var OroClient = /*#__PURE__*/function () {
2572
2639
  }
2573
2640
  }, _callee12, this);
2574
2641
  }));
2575
- function grantLockbox(_x24, _x25, _x26) {
2642
+ function grantLockbox(_x26, _x27, _x28) {
2576
2643
  return _grantLockbox.apply(this, arguments);
2577
2644
  }
2578
2645
  return grantLockbox;
@@ -2636,7 +2703,7 @@ var OroClient = /*#__PURE__*/function () {
2636
2703
  }
2637
2704
  }, _callee13, this);
2638
2705
  }));
2639
- function createMessageData(_x27, _x28, _x29, _x30, _x31) {
2706
+ function createMessageData(_x29, _x30, _x31, _x32, _x33) {
2640
2707
  return _createMessageData.apply(this, arguments);
2641
2708
  }
2642
2709
  return createMessageData;
@@ -2713,7 +2780,7 @@ var OroClient = /*#__PURE__*/function () {
2713
2780
  }
2714
2781
  }, _callee14, this);
2715
2782
  }));
2716
- function createMessageAttachmentData(_x32, _x33, _x34, _x35, _x36) {
2783
+ function createMessageAttachmentData(_x34, _x35, _x36, _x37, _x38) {
2717
2784
  return _createMessageAttachmentData.apply(this, arguments);
2718
2785
  }
2719
2786
  return createMessageAttachmentData;
@@ -2784,7 +2851,7 @@ var OroClient = /*#__PURE__*/function () {
2784
2851
  }
2785
2852
  }, _callee15, this);
2786
2853
  }));
2787
- function createConsultationAttachmentData(_x37, _x38, _x39, _x40, _x41, _x42, _x43) {
2854
+ function createConsultationAttachmentData(_x39, _x40, _x41, _x42, _x43, _x44, _x45) {
2788
2855
  return _createConsultationAttachmentData.apply(this, arguments);
2789
2856
  }
2790
2857
  return createConsultationAttachmentData;
@@ -2847,7 +2914,7 @@ var OroClient = /*#__PURE__*/function () {
2847
2914
  }
2848
2915
  }, _callee16, this);
2849
2916
  }));
2850
- function createJsonData(_x44, _x45, _x46, _x47, _x48, _x49, _x50) {
2917
+ function createJsonData(_x46, _x47, _x48, _x49, _x50, _x51, _x52) {
2851
2918
  return _createJsonData.apply(this, arguments);
2852
2919
  }
2853
2920
  return createJsonData;
@@ -2907,7 +2974,7 @@ var OroClient = /*#__PURE__*/function () {
2907
2974
  }
2908
2975
  }, _callee17, this);
2909
2976
  }));
2910
- function getOrInsertJsonData(_x51, _x52, _x53, _x54, _x55) {
2977
+ function getOrInsertJsonData(_x53, _x54, _x55, _x56, _x57) {
2911
2978
  return _getOrInsertJsonData.apply(this, arguments);
2912
2979
  }
2913
2980
  return getOrInsertJsonData;
@@ -2970,7 +3037,7 @@ var OroClient = /*#__PURE__*/function () {
2970
3037
  }
2971
3038
  }, _callee18, this);
2972
3039
  }));
2973
- function createBytesData(_x56, _x57, _x58, _x59, _x60, _x61, _x62) {
3040
+ function createBytesData(_x58, _x59, _x60, _x61, _x62, _x63, _x64) {
2974
3041
  return _createBytesData.apply(this, arguments);
2975
3042
  }
2976
3043
  return createBytesData;
@@ -3016,7 +3083,7 @@ var OroClient = /*#__PURE__*/function () {
3016
3083
  }
3017
3084
  }, _callee19, this);
3018
3085
  }));
3019
- function getJsonData(_x63, _x64, _x65) {
3086
+ function getJsonData(_x65, _x66, _x67) {
3020
3087
  return _getJsonData.apply(this, arguments);
3021
3088
  }
3022
3089
  return getJsonData;
@@ -3058,7 +3125,7 @@ var OroClient = /*#__PURE__*/function () {
3058
3125
  }
3059
3126
  }, _callee20, this);
3060
3127
  }));
3061
- function getBytesData(_x66, _x67, _x68) {
3128
+ function getBytesData(_x68, _x69, _x70) {
3062
3129
  return _getBytesData.apply(this, arguments);
3063
3130
  }
3064
3131
  return getBytesData;
@@ -3169,7 +3236,7 @@ var OroClient = /*#__PURE__*/function () {
3169
3236
  }
3170
3237
  }, _callee21, this);
3171
3238
  }));
3172
- function getGrants(_x69) {
3239
+ function getGrants(_x71) {
3173
3240
  return _getGrants.apply(this, arguments);
3174
3241
  }
3175
3242
  return getGrants;
@@ -3254,7 +3321,7 @@ var OroClient = /*#__PURE__*/function () {
3254
3321
  }
3255
3322
  }, _callee23, this);
3256
3323
  }));
3257
- function getCachedSecretCryptor(_x70, _x71) {
3324
+ function getCachedSecretCryptor(_x72, _x73) {
3258
3325
  return _getCachedSecretCryptor.apply(this, arguments);
3259
3326
  }
3260
3327
  return getCachedSecretCryptor;
@@ -3290,7 +3357,7 @@ var OroClient = /*#__PURE__*/function () {
3290
3357
  }
3291
3358
  }, _callee24, this);
3292
3359
  }));
3293
- function getPersonalInformationsFromConsultId(_x72, _x73, _x74) {
3360
+ function getPersonalInformationsFromConsultId(_x74, _x75, _x76) {
3294
3361
  return _getPersonalInformationsFromConsultId.apply(this, arguments);
3295
3362
  }
3296
3363
  return getPersonalInformationsFromConsultId;
@@ -3325,7 +3392,7 @@ var OroClient = /*#__PURE__*/function () {
3325
3392
  }
3326
3393
  }, _callee25, this);
3327
3394
  }));
3328
- function getMedicalDataFromConsultId(_x75, _x76) {
3395
+ function getMedicalDataFromConsultId(_x77, _x78) {
3329
3396
  return _getMedicalDataFromConsultId.apply(this, arguments);
3330
3397
  }
3331
3398
  return getMedicalDataFromConsultId;
@@ -3406,7 +3473,7 @@ var OroClient = /*#__PURE__*/function () {
3406
3473
  }
3407
3474
  }, _callee26);
3408
3475
  }));
3409
- return function (_x80) {
3476
+ return function (_x82) {
3410
3477
  return _ref3.apply(this, arguments);
3411
3478
  };
3412
3479
  }()));
@@ -3439,7 +3506,7 @@ var OroClient = /*#__PURE__*/function () {
3439
3506
  }
3440
3507
  }, _callee27, this);
3441
3508
  }));
3442
- function getMetaCategoryFromConsultId(_x77, _x78, _x79) {
3509
+ function getMetaCategoryFromConsultId(_x79, _x80, _x81) {
3443
3510
  return _getMetaCategoryFromConsultId.apply(this, arguments);
3444
3511
  }
3445
3512
  return getMetaCategoryFromConsultId;
@@ -3511,7 +3578,7 @@ var OroClient = /*#__PURE__*/function () {
3511
3578
  }
3512
3579
  }, _callee28, this);
3513
3580
  }));
3514
- function getPersonalInformations(_x81) {
3581
+ function getPersonalInformations(_x83) {
3515
3582
  return _getPersonalInformations.apply(this, arguments);
3516
3583
  }
3517
3584
  return getPersonalInformations;
@@ -3552,7 +3619,7 @@ var OroClient = /*#__PURE__*/function () {
3552
3619
  }
3553
3620
  }, _callee29, this);
3554
3621
  }));
3555
- function getGrantFromConsultId(_x82) {
3622
+ function getGrantFromConsultId(_x84) {
3556
3623
  return _getGrantFromConsultId.apply(this, arguments);
3557
3624
  }
3558
3625
  return getGrantFromConsultId;
@@ -3593,7 +3660,7 @@ var OroClient = /*#__PURE__*/function () {
3593
3660
  }
3594
3661
  }, _callee30, this);
3595
3662
  }));
3596
- function getIdentityFromConsultId(_x83) {
3663
+ function getIdentityFromConsultId(_x85) {
3597
3664
  return _getIdentityFromConsultId.apply(this, arguments);
3598
3665
  }
3599
3666
  return getIdentityFromConsultId;
@@ -3662,7 +3729,7 @@ var OroClient = /*#__PURE__*/function () {
3662
3729
  }
3663
3730
  }, _callee31);
3664
3731
  }));
3665
- return function (_x89) {
3732
+ return function (_x91) {
3666
3733
  return _ref4.apply(this, arguments);
3667
3734
  };
3668
3735
  }())).then(function (manifest) {
@@ -3676,7 +3743,7 @@ var OroClient = /*#__PURE__*/function () {
3676
3743
  }
3677
3744
  }, _callee32, this);
3678
3745
  }));
3679
- function getLockboxManifest(_x84, _x85, _x86, _x87, _x88) {
3746
+ function getLockboxManifest(_x86, _x87, _x88, _x89, _x90) {
3680
3747
  return _getLockboxManifest.apply(this, arguments);
3681
3748
  }
3682
3749
  return getLockboxManifest;
@@ -3733,7 +3800,7 @@ var OroClient = /*#__PURE__*/function () {
3733
3800
  }
3734
3801
  }, _callee33, this);
3735
3802
  }));
3736
- function createPersonalInformations(_x90, _x91, _x92) {
3803
+ function createPersonalInformations(_x92, _x93, _x94) {
3737
3804
  return _createPersonalInformations.apply(this, arguments);
3738
3805
  }
3739
3806
  return createPersonalInformations;
@@ -3790,7 +3857,7 @@ var OroClient = /*#__PURE__*/function () {
3790
3857
  }
3791
3858
  }, _callee34, this);
3792
3859
  }));
3793
- function createUserPreference(_x93, _x94, _x95) {
3860
+ function createUserPreference(_x95, _x96, _x97) {
3794
3861
  return _createUserPreference.apply(this, arguments);
3795
3862
  }
3796
3863
  return createUserPreference;
@@ -3849,7 +3916,7 @@ var OroClient = /*#__PURE__*/function () {
3849
3916
  }
3850
3917
  }, _callee35, this);
3851
3918
  }));
3852
- function getDataFromGrant(_x96, _x97) {
3919
+ function getDataFromGrant(_x98, _x99) {
3853
3920
  return _getDataFromGrant.apply(this, arguments);
3854
3921
  }
3855
3922
  return getDataFromGrant;
@@ -3890,7 +3957,7 @@ var OroClient = /*#__PURE__*/function () {
3890
3957
  }
3891
3958
  }, _callee36, this);
3892
3959
  }));
3893
- function getUserPreferenceFromConsultId(_x98) {
3960
+ function getUserPreferenceFromConsultId(_x100) {
3894
3961
  return _getUserPreferenceFromConsultId.apply(this, arguments);
3895
3962
  }
3896
3963
  return getUserPreferenceFromConsultId;
@@ -3933,7 +4000,7 @@ var OroClient = /*#__PURE__*/function () {
3933
4000
  }
3934
4001
  }, _callee37, this);
3935
4002
  }));
3936
- function getUserPreference(_x99) {
4003
+ function getUserPreference(_x101) {
3937
4004
  return _getUserPreference.apply(this, arguments);
3938
4005
  }
3939
4006
  return getUserPreference;
@@ -3974,7 +4041,7 @@ var OroClient = /*#__PURE__*/function () {
3974
4041
  }
3975
4042
  }, _callee38, this);
3976
4043
  }));
3977
- function getRecoveryDataFromConsultId(_x100) {
4044
+ function getRecoveryDataFromConsultId(_x102) {
3978
4045
  return _getRecoveryDataFromConsultId.apply(this, arguments);
3979
4046
  }
3980
4047
  return getRecoveryDataFromConsultId;
@@ -4017,7 +4084,7 @@ var OroClient = /*#__PURE__*/function () {
4017
4084
  }
4018
4085
  }, _callee39, this);
4019
4086
  }));
4020
- function getRecoveryData(_x101) {
4087
+ function getRecoveryData(_x103) {
4021
4088
  return _getRecoveryData.apply(this, arguments);
4022
4089
  }
4023
4090
  return getRecoveryData;
@@ -4068,7 +4135,7 @@ var OroClient = /*#__PURE__*/function () {
4068
4135
  }
4069
4136
  }, _callee40);
4070
4137
  }));
4071
- return function (_x103) {
4138
+ return function (_x105) {
4072
4139
  return _ref5.apply(this, arguments);
4073
4140
  };
4074
4141
  }())).then(function (promise) {
@@ -4086,7 +4153,7 @@ var OroClient = /*#__PURE__*/function () {
4086
4153
  }
4087
4154
  }, _callee41, this);
4088
4155
  }));
4089
- function getAssignedConsultations(_x102) {
4156
+ function getAssignedConsultations(_x104) {
4090
4157
  return _getAssignedConsultations.apply(this, arguments);
4091
4158
  }
4092
4159
  return getAssignedConsultations;
@@ -4150,7 +4217,7 @@ var OroClient = /*#__PURE__*/function () {
4150
4217
  }
4151
4218
  }, _callee42);
4152
4219
  }));
4153
- return function (_x106) {
4220
+ return function (_x108) {
4154
4221
  return _ref6.apply(this, arguments);
4155
4222
  };
4156
4223
  }()));
@@ -4163,7 +4230,7 @@ var OroClient = /*#__PURE__*/function () {
4163
4230
  }
4164
4231
  }, _callee43, this);
4165
4232
  }));
4166
- function getPastConsultationsFromConsultId(_x104, _x105) {
4233
+ function getPastConsultationsFromConsultId(_x106, _x107) {
4167
4234
  return _getPastConsultationsFromConsultId.apply(this, arguments);
4168
4235
  }
4169
4236
  return getPastConsultationsFromConsultId;
@@ -4216,7 +4283,7 @@ var OroClient = /*#__PURE__*/function () {
4216
4283
  }
4217
4284
  }, _callee44, this);
4218
4285
  }));
4219
- function getPatientConsultationData(_x107, _x108) {
4286
+ function getPatientConsultationData(_x109, _x110) {
4220
4287
  return _getPatientConsultationData.apply(this, arguments);
4221
4288
  }
4222
4289
  return getPatientConsultationData;
@@ -4246,7 +4313,7 @@ var OroClient = /*#__PURE__*/function () {
4246
4313
  }
4247
4314
  }, _callee45, this);
4248
4315
  }));
4249
- function getPatientPrescriptionsList(_x109) {
4316
+ function getPatientPrescriptionsList(_x111) {
4250
4317
  return _getPatientPrescriptionsList.apply(this, arguments);
4251
4318
  }
4252
4319
  return getPatientPrescriptionsList;
@@ -4276,7 +4343,7 @@ var OroClient = /*#__PURE__*/function () {
4276
4343
  }
4277
4344
  }, _callee46, this);
4278
4345
  }));
4279
- function getPatientResultsList(_x110) {
4346
+ function getPatientResultsList(_x112) {
4280
4347
  return _getPatientResultsList.apply(this, arguments);
4281
4348
  }
4282
4349
  return getPatientResultsList;
@@ -4306,7 +4373,7 @@ var OroClient = /*#__PURE__*/function () {
4306
4373
  }
4307
4374
  }, _callee47, this);
4308
4375
  }));
4309
- function getPatientTreatmentPlans(_x111) {
4376
+ function getPatientTreatmentPlans(_x113) {
4310
4377
  return _getPatientTreatmentPlans.apply(this, arguments);
4311
4378
  }
4312
4379
  return getPatientTreatmentPlans;
@@ -4338,7 +4405,7 @@ var OroClient = /*#__PURE__*/function () {
4338
4405
  }
4339
4406
  }, _callee48, this);
4340
4407
  }));
4341
- function getPatientTreatmentPlanByUuid(_x112, _x113) {
4408
+ function getPatientTreatmentPlanByUuid(_x114, _x115) {
4342
4409
  return _getPatientTreatmentPlanByUuid.apply(this, arguments);
4343
4410
  }
4344
4411
  return getPatientTreatmentPlanByUuid;
@@ -4391,7 +4458,7 @@ var OroClient = /*#__PURE__*/function () {
4391
4458
  }
4392
4459
  }, _callee49);
4393
4460
  }));
4394
- return function (_x117) {
4461
+ return function (_x119) {
4395
4462
  return _ref7.apply(this, arguments);
4396
4463
  };
4397
4464
  }()));
@@ -4407,7 +4474,7 @@ var OroClient = /*#__PURE__*/function () {
4407
4474
  }
4408
4475
  }, _callee50, this);
4409
4476
  }));
4410
- function getPatientDocumentsList(_x114, _x115, _x116) {
4477
+ function getPatientDocumentsList(_x116, _x117, _x118) {
4411
4478
  return _getPatientDocumentsList.apply(this, arguments);
4412
4479
  }
4413
4480
  return getPatientDocumentsList;
@@ -4462,7 +4529,7 @@ var OroClient = /*#__PURE__*/function () {
4462
4529
  }
4463
4530
  }, _callee51, this);
4464
4531
  }));
4465
- function recoverPrivateKeyFromSecurityQuestions(_x118, _x119, _x120, _x121) {
4532
+ function recoverPrivateKeyFromSecurityQuestions(_x120, _x121, _x122, _x123) {
4466
4533
  return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
4467
4534
  }
4468
4535
  return recoverPrivateKeyFromSecurityQuestions;
@@ -4503,7 +4570,7 @@ var OroClient = /*#__PURE__*/function () {
4503
4570
  }
4504
4571
  }, _callee52, this);
4505
4572
  }));
4506
- function recoverPrivateKeyFromPassword(_x122, _x123) {
4573
+ function recoverPrivateKeyFromPassword(_x124, _x125) {
4507
4574
  return _recoverPrivateKeyFromPassword.apply(this, arguments);
4508
4575
  }
4509
4576
  return recoverPrivateKeyFromPassword;
@@ -4538,7 +4605,7 @@ var OroClient = /*#__PURE__*/function () {
4538
4605
  }
4539
4606
  }, _callee53, this);
4540
4607
  }));
4541
- function recoverPrivateKeyFromMasterKey(_x124, _x125) {
4608
+ function recoverPrivateKeyFromMasterKey(_x126, _x127) {
4542
4609
  return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
4543
4610
  }
4544
4611
  return recoverPrivateKeyFromMasterKey;
@@ -4582,7 +4649,7 @@ var OroClient = /*#__PURE__*/function () {
4582
4649
  }
4583
4650
  }, _callee54, this);
4584
4651
  }));
4585
- function updateSecurityQuestions(_x126, _x127, _x128, _x129) {
4652
+ function updateSecurityQuestions(_x128, _x129, _x130, _x131) {
4586
4653
  return _updateSecurityQuestions.apply(this, arguments);
4587
4654
  }
4588
4655
  return updateSecurityQuestions;
@@ -4638,7 +4705,7 @@ var OroClient = /*#__PURE__*/function () {
4638
4705
  }
4639
4706
  }, _callee55, this);
4640
4707
  }));
4641
- function updatePassword(_x130, _x131, _x132) {
4708
+ function updatePassword(_x132, _x133, _x134) {
4642
4709
  return _updatePassword.apply(this, arguments);
4643
4710
  }
4644
4711
  return updatePassword;
@@ -4694,7 +4761,7 @@ var OroClient = /*#__PURE__*/function () {
4694
4761
  }
4695
4762
  }, _callee56, this);
4696
4763
  }));
4697
- function updateMasterKey(_x133, _x134, _x135) {
4764
+ function updateMasterKey(_x135, _x136, _x137) {
4698
4765
  return _updateMasterKey.apply(this, arguments);
4699
4766
  }
4700
4767
  return updateMasterKey;