oro-sdk 3.6.0 → 3.6.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/client.d.ts CHANGED
@@ -91,12 +91,13 @@ export declare class OroClient {
91
91
  * @param consult
92
92
  * @param workflow
93
93
  * @param recoveryQA
94
+ * @param indexSearch create search index for the consultation if true
94
95
  * @returns
95
96
  */
96
97
  registerPatient(patientUuid: Uuid, consult: ConsultRequest, workflow: WorkflowData, recoveryQA?: {
97
98
  recoverySecurityQuestions: string[];
98
99
  recoverySecurityAnswers: string[];
99
- }): Promise<RegisterPatientOutput>;
100
+ }, indexSearch?: boolean): Promise<RegisterPatientOutput>;
100
101
  /**
101
102
  * Builds the vault index for the logged user
102
103
  *
@@ -2834,6 +2834,7 @@ var OroClient = /*#__PURE__*/function () {
2834
2834
  * @param consult
2835
2835
  * @param workflow
2836
2836
  * @param recoveryQA
2837
+ * @param indexSearch create search index for the consultation if true
2837
2838
  * @returns
2838
2839
  */
2839
2840
  ;
@@ -2841,22 +2842,26 @@ var OroClient = /*#__PURE__*/function () {
2841
2842
  _proto.registerPatient =
2842
2843
  /*#__PURE__*/
2843
2844
  function () {
2844
- var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(patientUuid, consult, workflow, recoveryQA) {
2845
+ var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch) {
2845
2846
  return runtime_1.wrap(function _callee7$(_context7) {
2846
2847
  while (1) {
2847
2848
  switch (_context7.prev = _context7.next) {
2848
2849
  case 0:
2850
+ if (indexSearch === void 0) {
2851
+ indexSearch = true;
2852
+ }
2853
+
2849
2854
  if (this.rsa) {
2850
- _context7.next = 2;
2855
+ _context7.next = 3;
2851
2856
  break;
2852
2857
  }
2853
2858
 
2854
2859
  throw IncompleteAuthentication;
2855
2860
 
2856
- case 2:
2857
- return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA));
2858
-
2859
2861
  case 3:
2862
+ return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA, indexSearch));
2863
+
2864
+ case 4:
2860
2865
  case "end":
2861
2866
  return _context7.stop();
2862
2867
  }
@@ -2864,7 +2869,7 @@ var OroClient = /*#__PURE__*/function () {
2864
2869
  }, _callee7, this);
2865
2870
  }));
2866
2871
 
2867
- function registerPatient$1(_x13, _x14, _x15, _x16) {
2872
+ function registerPatient$1(_x13, _x14, _x15, _x16, _x17) {
2868
2873
  return _registerPatient2.apply(this, arguments);
2869
2874
  }
2870
2875
 
@@ -2910,7 +2915,7 @@ var OroClient = /*#__PURE__*/function () {
2910
2915
  }, _callee8, this);
2911
2916
  }));
2912
2917
 
2913
- function buildVaultIndex(_x17) {
2918
+ function buildVaultIndex(_x18) {
2914
2919
  return _buildVaultIndex.apply(this, arguments);
2915
2920
  }
2916
2921
 
@@ -2987,7 +2992,7 @@ var OroClient = /*#__PURE__*/function () {
2987
2992
  }, _callee9);
2988
2993
  }));
2989
2994
 
2990
- return function (_x18) {
2995
+ return function (_x19) {
2991
2996
  return _ref2.apply(this, arguments);
2992
2997
  };
2993
2998
  }())).then(function (consults) {
@@ -3139,7 +3144,7 @@ var OroClient = /*#__PURE__*/function () {
3139
3144
  }, _callee11, this);
3140
3145
  }));
3141
3146
 
3142
- function vaultIndexAdd(_x19, _x20) {
3147
+ function vaultIndexAdd(_x20, _x21) {
3143
3148
  return _vaultIndexAdd.apply(this, arguments);
3144
3149
  }
3145
3150
 
@@ -3198,7 +3203,7 @@ var OroClient = /*#__PURE__*/function () {
3198
3203
  }, _callee12, this);
3199
3204
  }));
3200
3205
 
3201
- function indexSnapshotAdd(_x21) {
3206
+ function indexSnapshotAdd(_x22) {
3202
3207
  return _indexSnapshotAdd.apply(this, arguments);
3203
3208
  }
3204
3209
 
@@ -3257,7 +3262,7 @@ var OroClient = /*#__PURE__*/function () {
3257
3262
  }, _callee13, this);
3258
3263
  }));
3259
3264
 
3260
- function grantLockbox(_x22, _x23, _x24) {
3265
+ function grantLockbox(_x23, _x24, _x25) {
3261
3266
  return _grantLockbox.apply(this, arguments);
3262
3267
  }
3263
3268
 
@@ -3329,7 +3334,7 @@ var OroClient = /*#__PURE__*/function () {
3329
3334
  }, _callee14, this);
3330
3335
  }));
3331
3336
 
3332
- function createMessageData(_x25, _x26, _x27, _x28, _x29) {
3337
+ function createMessageData(_x26, _x27, _x28, _x29, _x30) {
3333
3338
  return _createMessageData.apply(this, arguments);
3334
3339
  }
3335
3340
 
@@ -3415,7 +3420,7 @@ var OroClient = /*#__PURE__*/function () {
3415
3420
  }, _callee15, this);
3416
3421
  }));
3417
3422
 
3418
- function createMessageAttachmentData(_x30, _x31, _x32, _x33, _x34) {
3423
+ function createMessageAttachmentData(_x31, _x32, _x33, _x34, _x35) {
3419
3424
  return _createMessageAttachmentData.apply(this, arguments);
3420
3425
  }
3421
3426
 
@@ -3487,7 +3492,7 @@ var OroClient = /*#__PURE__*/function () {
3487
3492
  }, _callee16, this);
3488
3493
  }));
3489
3494
 
3490
- function createConsultationAttachmentData(_x35, _x36, _x37, _x38, _x39, _x40) {
3495
+ function createConsultationAttachmentData(_x36, _x37, _x38, _x39, _x40, _x41) {
3491
3496
  return _createConsultationAttachmentData.apply(this, arguments);
3492
3497
  }
3493
3498
 
@@ -3545,7 +3550,7 @@ var OroClient = /*#__PURE__*/function () {
3545
3550
  }, _callee17, this);
3546
3551
  }));
3547
3552
 
3548
- function createJsonData(_x41, _x42, _x43, _x44, _x45, _x46) {
3553
+ function createJsonData(_x42, _x43, _x44, _x45, _x46, _x47) {
3549
3554
  return _createJsonData.apply(this, arguments);
3550
3555
  }
3551
3556
 
@@ -3608,7 +3613,7 @@ var OroClient = /*#__PURE__*/function () {
3608
3613
  }, _callee18, this);
3609
3614
  }));
3610
3615
 
3611
- function getOrInsertJsonData(_x47, _x48, _x49, _x50, _x51) {
3616
+ function getOrInsertJsonData(_x48, _x49, _x50, _x51, _x52) {
3612
3617
  return _getOrInsertJsonData.apply(this, arguments);
3613
3618
  }
3614
3619
 
@@ -3666,7 +3671,7 @@ var OroClient = /*#__PURE__*/function () {
3666
3671
  }, _callee19, this);
3667
3672
  }));
3668
3673
 
3669
- function createBytesData(_x52, _x53, _x54, _x55, _x56, _x57) {
3674
+ function createBytesData(_x53, _x54, _x55, _x56, _x57, _x58) {
3670
3675
  return _createBytesData.apply(this, arguments);
3671
3676
  }
3672
3677
 
@@ -3720,7 +3725,7 @@ var OroClient = /*#__PURE__*/function () {
3720
3725
  }, _callee20, this);
3721
3726
  }));
3722
3727
 
3723
- function getJsonData(_x58, _x59, _x60) {
3728
+ function getJsonData(_x59, _x60, _x61) {
3724
3729
  return _getJsonData.apply(this, arguments);
3725
3730
  }
3726
3731
 
@@ -3770,7 +3775,7 @@ var OroClient = /*#__PURE__*/function () {
3770
3775
  }, _callee21, this);
3771
3776
  }));
3772
3777
 
3773
- function getBytesData(_x61, _x62, _x63) {
3778
+ function getBytesData(_x62, _x63, _x64) {
3774
3779
  return _getBytesData.apply(this, arguments);
3775
3780
  }
3776
3781
 
@@ -3893,7 +3898,7 @@ var OroClient = /*#__PURE__*/function () {
3893
3898
  }, _callee22, this);
3894
3899
  }));
3895
3900
 
3896
- function getGrants(_x64, _x65) {
3901
+ function getGrants(_x65, _x66) {
3897
3902
  return _getGrants.apply(this, arguments);
3898
3903
  }
3899
3904
 
@@ -3958,7 +3963,7 @@ var OroClient = /*#__PURE__*/function () {
3958
3963
  }, _callee23, this);
3959
3964
  }));
3960
3965
 
3961
- function getCachedSecretCryptor(_x66, _x67) {
3966
+ function getCachedSecretCryptor(_x67, _x68) {
3962
3967
  return _getCachedSecretCryptor.apply(this, arguments);
3963
3968
  }
3964
3969
 
@@ -3997,7 +4002,7 @@ var OroClient = /*#__PURE__*/function () {
3997
4002
  }, _callee24, this);
3998
4003
  }));
3999
4004
 
4000
- function getPersonalInformationsFromConsultId(_x68, _x69, _x70) {
4005
+ function getPersonalInformationsFromConsultId(_x69, _x70, _x71) {
4001
4006
  return _getPersonalInformationsFromConsultId.apply(this, arguments);
4002
4007
  }
4003
4008
 
@@ -4035,7 +4040,7 @@ var OroClient = /*#__PURE__*/function () {
4035
4040
  }, _callee25, this);
4036
4041
  }));
4037
4042
 
4038
- function getMedicalDataFromConsultId(_x71, _x72) {
4043
+ function getMedicalDataFromConsultId(_x72, _x73) {
4039
4044
  return _getMedicalDataFromConsultId.apply(this, arguments);
4040
4045
  }
4041
4046
 
@@ -4128,7 +4133,7 @@ var OroClient = /*#__PURE__*/function () {
4128
4133
  }, _callee26);
4129
4134
  }));
4130
4135
 
4131
- return function (_x76) {
4136
+ return function (_x77) {
4132
4137
  return _ref3.apply(this, arguments);
4133
4138
  };
4134
4139
  }()));
@@ -4169,7 +4174,7 @@ var OroClient = /*#__PURE__*/function () {
4169
4174
  }, _callee27, this);
4170
4175
  }));
4171
4176
 
4172
- function getMetaCategoryFromConsultId(_x73, _x74, _x75) {
4177
+ function getMetaCategoryFromConsultId(_x74, _x75, _x76) {
4173
4178
  return _getMetaCategoryFromConsultId.apply(this, arguments);
4174
4179
  }
4175
4180
 
@@ -4256,7 +4261,7 @@ var OroClient = /*#__PURE__*/function () {
4256
4261
  }, _callee28, this);
4257
4262
  }));
4258
4263
 
4259
- function getPersonalInformations(_x77) {
4264
+ function getPersonalInformations(_x78) {
4260
4265
  return _getPersonalInformations.apply(this, arguments);
4261
4266
  }
4262
4267
 
@@ -4305,7 +4310,7 @@ var OroClient = /*#__PURE__*/function () {
4305
4310
  }, _callee29, this);
4306
4311
  }));
4307
4312
 
4308
- function getGrantFromConsultId(_x78) {
4313
+ function getGrantFromConsultId(_x79) {
4309
4314
  return _getGrantFromConsultId.apply(this, arguments);
4310
4315
  }
4311
4316
 
@@ -4355,7 +4360,7 @@ var OroClient = /*#__PURE__*/function () {
4355
4360
  }, _callee30, this);
4356
4361
  }));
4357
4362
 
4358
- function getIdentityFromConsultId(_x79) {
4363
+ function getIdentityFromConsultId(_x80) {
4359
4364
  return _getIdentityFromConsultId.apply(this, arguments);
4360
4365
  }
4361
4366
 
@@ -4434,7 +4439,7 @@ var OroClient = /*#__PURE__*/function () {
4434
4439
  }, _callee31);
4435
4440
  }));
4436
4441
 
4437
- return function (_x85) {
4442
+ return function (_x86) {
4438
4443
  return _ref4.apply(this, arguments);
4439
4444
  };
4440
4445
  }())).then(function (manifest) {
@@ -4450,7 +4455,7 @@ var OroClient = /*#__PURE__*/function () {
4450
4455
  }, _callee32, this);
4451
4456
  }));
4452
4457
 
4453
- function getLockboxManifest(_x80, _x81, _x82, _x83, _x84) {
4458
+ function getLockboxManifest(_x81, _x82, _x83, _x84, _x85) {
4454
4459
  return _getLockboxManifest.apply(this, arguments);
4455
4460
  }
4456
4461
 
@@ -4520,7 +4525,7 @@ var OroClient = /*#__PURE__*/function () {
4520
4525
  }, _callee33, this);
4521
4526
  }));
4522
4527
 
4523
- function createPersonalInformations(_x86, _x87, _x88) {
4528
+ function createPersonalInformations(_x87, _x88, _x89) {
4524
4529
  return _createPersonalInformations.apply(this, arguments);
4525
4530
  }
4526
4531
 
@@ -4590,7 +4595,7 @@ var OroClient = /*#__PURE__*/function () {
4590
4595
  }, _callee34, this);
4591
4596
  }));
4592
4597
 
4593
- function createUserPreference(_x89, _x90, _x91) {
4598
+ function createUserPreference(_x90, _x91, _x92) {
4594
4599
  return _createUserPreference.apply(this, arguments);
4595
4600
  }
4596
4601
 
@@ -4658,7 +4663,7 @@ var OroClient = /*#__PURE__*/function () {
4658
4663
  }, _callee35, this);
4659
4664
  }));
4660
4665
 
4661
- function getDataFromGrant(_x92, _x93) {
4666
+ function getDataFromGrant(_x93, _x94) {
4662
4667
  return _getDataFromGrant.apply(this, arguments);
4663
4668
  }
4664
4669
 
@@ -4707,7 +4712,7 @@ var OroClient = /*#__PURE__*/function () {
4707
4712
  }, _callee36, this);
4708
4713
  }));
4709
4714
 
4710
- function getUserPreferenceFromConsultId(_x94) {
4715
+ function getUserPreferenceFromConsultId(_x95) {
4711
4716
  return _getUserPreferenceFromConsultId.apply(this, arguments);
4712
4717
  }
4713
4718
 
@@ -4758,7 +4763,7 @@ var OroClient = /*#__PURE__*/function () {
4758
4763
  }, _callee37, this);
4759
4764
  }));
4760
4765
 
4761
- function getUserPreference(_x95) {
4766
+ function getUserPreference(_x96) {
4762
4767
  return _getUserPreference.apply(this, arguments);
4763
4768
  }
4764
4769
 
@@ -4807,7 +4812,7 @@ var OroClient = /*#__PURE__*/function () {
4807
4812
  }, _callee38, this);
4808
4813
  }));
4809
4814
 
4810
- function getRecoveryDataFromConsultId(_x96) {
4815
+ function getRecoveryDataFromConsultId(_x97) {
4811
4816
  return _getRecoveryDataFromConsultId.apply(this, arguments);
4812
4817
  }
4813
4818
 
@@ -4858,7 +4863,7 @@ var OroClient = /*#__PURE__*/function () {
4858
4863
  }, _callee39, this);
4859
4864
  }));
4860
4865
 
4861
- function getRecoveryData(_x97) {
4866
+ function getRecoveryData(_x98) {
4862
4867
  return _getRecoveryData.apply(this, arguments);
4863
4868
  }
4864
4869
 
@@ -4920,7 +4925,7 @@ var OroClient = /*#__PURE__*/function () {
4920
4925
  }, _callee40);
4921
4926
  }));
4922
4927
 
4923
- return function (_x100) {
4928
+ return function (_x101) {
4924
4929
  return _ref5.apply(this, arguments);
4925
4930
  };
4926
4931
  }())).then(function (promise) {
@@ -4940,7 +4945,7 @@ var OroClient = /*#__PURE__*/function () {
4940
4945
  }, _callee41, this);
4941
4946
  }));
4942
4947
 
4943
- function getAssignedConsultations(_x98, _x99) {
4948
+ function getAssignedConsultations(_x99, _x100) {
4944
4949
  return _getAssignedConsultations.apply(this, arguments);
4945
4950
  }
4946
4951
 
@@ -5018,7 +5023,7 @@ var OroClient = /*#__PURE__*/function () {
5018
5023
  }, _callee42);
5019
5024
  }));
5020
5025
 
5021
- return function (_x103) {
5026
+ return function (_x104) {
5022
5027
  return _ref6.apply(this, arguments);
5023
5028
  };
5024
5029
  }()));
@@ -5034,7 +5039,7 @@ var OroClient = /*#__PURE__*/function () {
5034
5039
  }, _callee43, this);
5035
5040
  }));
5036
5041
 
5037
- function getPastConsultationsFromConsultId(_x101, _x102) {
5042
+ function getPastConsultationsFromConsultId(_x102, _x103) {
5038
5043
  return _getPastConsultationsFromConsultId.apply(this, arguments);
5039
5044
  }
5040
5045
 
@@ -5092,7 +5097,7 @@ var OroClient = /*#__PURE__*/function () {
5092
5097
  }, _callee44, this);
5093
5098
  }));
5094
5099
 
5095
- function getPatientConsultationData(_x104, _x105) {
5100
+ function getPatientConsultationData(_x105, _x106) {
5096
5101
  return _getPatientConsultationData.apply(this, arguments);
5097
5102
  }
5098
5103
 
@@ -5126,7 +5131,7 @@ var OroClient = /*#__PURE__*/function () {
5126
5131
  }, _callee45, this);
5127
5132
  }));
5128
5133
 
5129
- function getPatientPrescriptionsList(_x106) {
5134
+ function getPatientPrescriptionsList(_x107) {
5130
5135
  return _getPatientPrescriptionsList.apply(this, arguments);
5131
5136
  }
5132
5137
 
@@ -5160,7 +5165,7 @@ var OroClient = /*#__PURE__*/function () {
5160
5165
  }, _callee46, this);
5161
5166
  }));
5162
5167
 
5163
- function getPatientResultsList(_x107) {
5168
+ function getPatientResultsList(_x108) {
5164
5169
  return _getPatientResultsList.apply(this, arguments);
5165
5170
  }
5166
5171
 
@@ -5194,7 +5199,7 @@ var OroClient = /*#__PURE__*/function () {
5194
5199
  }, _callee47, this);
5195
5200
  }));
5196
5201
 
5197
- function getPatientTreatmentPlans(_x108) {
5202
+ function getPatientTreatmentPlans(_x109) {
5198
5203
  return _getPatientTreatmentPlans.apply(this, arguments);
5199
5204
  }
5200
5205
 
@@ -5230,7 +5235,7 @@ var OroClient = /*#__PURE__*/function () {
5230
5235
  }, _callee48, this);
5231
5236
  }));
5232
5237
 
5233
- function getPatientTreatmentPlanByUuid(_x109, _x110) {
5238
+ function getPatientTreatmentPlanByUuid(_x110, _x111) {
5234
5239
  return _getPatientTreatmentPlanByUuid.apply(this, arguments);
5235
5240
  }
5236
5241
 
@@ -5287,7 +5292,7 @@ var OroClient = /*#__PURE__*/function () {
5287
5292
  }, _callee49);
5288
5293
  }));
5289
5294
 
5290
- return function (_x114) {
5295
+ return function (_x115) {
5291
5296
  return _ref7.apply(this, arguments);
5292
5297
  };
5293
5298
  }()));
@@ -5305,7 +5310,7 @@ var OroClient = /*#__PURE__*/function () {
5305
5310
  }, _callee50, this);
5306
5311
  }));
5307
5312
 
5308
- function getPatientDocumentsList(_x111, _x112, _x113) {
5313
+ function getPatientDocumentsList(_x112, _x113, _x114) {
5309
5314
  return _getPatientDocumentsList.apply(this, arguments);
5310
5315
  }
5311
5316
 
@@ -5367,7 +5372,7 @@ var OroClient = /*#__PURE__*/function () {
5367
5372
  }, _callee51, this);
5368
5373
  }));
5369
5374
 
5370
- function recoverPrivateKeyFromSecurityQuestions(_x115, _x116, _x117, _x118) {
5375
+ function recoverPrivateKeyFromSecurityQuestions(_x116, _x117, _x118, _x119) {
5371
5376
  return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
5372
5377
  }
5373
5378
 
@@ -5415,7 +5420,7 @@ var OroClient = /*#__PURE__*/function () {
5415
5420
  }, _callee52, this);
5416
5421
  }));
5417
5422
 
5418
- function recoverPrivateKeyFromPassword(_x119, _x120) {
5423
+ function recoverPrivateKeyFromPassword(_x120, _x121) {
5419
5424
  return _recoverPrivateKeyFromPassword.apply(this, arguments);
5420
5425
  }
5421
5426
 
@@ -5455,7 +5460,7 @@ var OroClient = /*#__PURE__*/function () {
5455
5460
  }, _callee53, this);
5456
5461
  }));
5457
5462
 
5458
- function recoverPrivateKeyFromMasterKey(_x121, _x122) {
5463
+ function recoverPrivateKeyFromMasterKey(_x122, _x123) {
5459
5464
  return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
5460
5465
  }
5461
5466
 
@@ -5506,7 +5511,7 @@ var OroClient = /*#__PURE__*/function () {
5506
5511
  }, _callee54, this);
5507
5512
  }));
5508
5513
 
5509
- function updateSecurityQuestions(_x123, _x124, _x125, _x126) {
5514
+ function updateSecurityQuestions(_x124, _x125, _x126, _x127) {
5510
5515
  return _updateSecurityQuestions.apply(this, arguments);
5511
5516
  }
5512
5517
 
@@ -5571,7 +5576,7 @@ var OroClient = /*#__PURE__*/function () {
5571
5576
  }, _callee55, this);
5572
5577
  }));
5573
5578
 
5574
- function updatePassword(_x127, _x128, _x129) {
5579
+ function updatePassword(_x128, _x129, _x130) {
5575
5580
  return _updatePassword.apply(this, arguments);
5576
5581
  }
5577
5582
 
@@ -5633,7 +5638,7 @@ var OroClient = /*#__PURE__*/function () {
5633
5638
  }, _callee56, this);
5634
5639
  }));
5635
5640
 
5636
- function updateMasterKey(_x130, _x131, _x132) {
5641
+ function updateMasterKey(_x131, _x132, _x133) {
5637
5642
  return _updateMasterKey.apply(this, arguments);
5638
5643
  }
5639
5644