oro-sdk 5.0.2 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1724,7 +1724,8 @@ function _storePatientData() {
1724
1724
  consultationId: consultationId
1725
1725
  }, {
1726
1726
  consultationId: consultationId
1727
- });
1727
+ }, false, true // the only data that needs to include an email notification
1728
+ );
1728
1729
  }), getWorkflowDataByCategory(workflow, MetadataCategory.Medical).then(function (data) {
1729
1730
  return oroClient.getOrInsertJsonData(lockboxUuid, data, {
1730
1731
  category: MetadataCategory.Medical,
@@ -2906,6 +2907,7 @@ var OroClient = /*#__PURE__*/function () {
2906
2907
  * @param category the category for the attachment data
2907
2908
  * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2908
2909
  * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2910
+ * @param withNotification if the insertion of data requires notification
2909
2911
  * @returns the data uuid
2910
2912
  */
2911
2913
  ;
@@ -2913,26 +2915,30 @@ var OroClient = /*#__PURE__*/function () {
2913
2915
  _proto.createConsultationAttachmentData =
2914
2916
  /*#__PURE__*/
2915
2917
  function () {
2916
- var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
2918
+ var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid, withNotification) {
2917
2919
  return _regeneratorRuntime().wrap(function _callee14$(_context14) {
2918
2920
  while (1) {
2919
2921
  switch (_context14.prev = _context14.next) {
2920
2922
  case 0:
2923
+ if (withNotification === void 0) {
2924
+ withNotification = false;
2925
+ }
2926
+
2921
2927
  if (this.rsa) {
2922
- _context14.next = 2;
2928
+ _context14.next = 3;
2923
2929
  break;
2924
2930
  }
2925
2931
 
2926
2932
  throw IncompleteAuthentication;
2927
2933
 
2928
- case 2:
2934
+ case 3:
2929
2935
  _context14.t0 = this;
2930
2936
  _context14.t1 = lockboxUuid;
2931
2937
  _context14.t2 = Uint8Array;
2932
- _context14.next = 7;
2938
+ _context14.next = 8;
2933
2939
  return data.arrayBuffer();
2934
2940
 
2935
- case 7:
2941
+ case 8:
2936
2942
  _context14.t3 = _context14.sent;
2937
2943
  _context14.t4 = new _context14.t2(_context14.t3);
2938
2944
  _context14.t5 = {
@@ -2941,10 +2947,10 @@ var OroClient = /*#__PURE__*/function () {
2941
2947
  documentType: documentType,
2942
2948
  contentType: data.type
2943
2949
  };
2944
- _context14.next = 12;
2950
+ _context14.next = 13;
2945
2951
  return this.guardClient.whoAmI();
2946
2952
 
2947
- case 12:
2953
+ case 13:
2948
2954
  _context14.t6 = _context14.sent.sub;
2949
2955
  _context14.t7 = data.name;
2950
2956
  _context14.t8 = {
@@ -2953,9 +2959,10 @@ var OroClient = /*#__PURE__*/function () {
2953
2959
  };
2954
2960
  _context14.t9 = lockboxOwnerUuid;
2955
2961
  _context14.t10 = previousDataUuid;
2956
- return _context14.abrupt("return", _context14.t0.createBytesData.call(_context14.t0, _context14.t1, _context14.t4, _context14.t5, _context14.t8, _context14.t9, _context14.t10));
2962
+ _context14.t11 = withNotification;
2963
+ return _context14.abrupt("return", _context14.t0.createBytesData.call(_context14.t0, _context14.t1, _context14.t4, _context14.t5, _context14.t8, _context14.t9, _context14.t10, _context14.t11));
2957
2964
 
2958
- case 18:
2965
+ case 20:
2959
2966
  case "end":
2960
2967
  return _context14.stop();
2961
2968
  }
@@ -2963,7 +2970,7 @@ var OroClient = /*#__PURE__*/function () {
2963
2970
  }, _callee14, this);
2964
2971
  }));
2965
2972
 
2966
- function createConsultationAttachmentData(_x35, _x36, _x37, _x38, _x39, _x40) {
2973
+ function createConsultationAttachmentData(_x35, _x36, _x37, _x38, _x39, _x40, _x41) {
2967
2974
  return _createConsultationAttachmentData.apply(this, arguments);
2968
2975
  }
2969
2976
 
@@ -2978,6 +2985,7 @@ var OroClient = /*#__PURE__*/function () {
2978
2985
  * @param privateMeta the metadata that will be secured in the vault
2979
2986
  * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2980
2987
  * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
2988
+ * @param withNotification if the insertion of data requires notification
2981
2989
  * @returns the data uuid
2982
2990
  */
2983
2991
  ;
@@ -2985,24 +2993,28 @@ var OroClient = /*#__PURE__*/function () {
2985
2993
  _proto.createJsonData =
2986
2994
  /*#__PURE__*/
2987
2995
  function () {
2988
- var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
2996
+ var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid, withNotification) {
2989
2997
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
2990
2998
  return _regeneratorRuntime().wrap(function _callee15$(_context15) {
2991
2999
  while (1) {
2992
3000
  switch (_context15.prev = _context15.next) {
2993
3001
  case 0:
3002
+ if (withNotification === void 0) {
3003
+ withNotification = false;
3004
+ }
3005
+
2994
3006
  if (this.rsa) {
2995
- _context15.next = 2;
3007
+ _context15.next = 3;
2996
3008
  break;
2997
3009
  }
2998
3010
 
2999
3011
  throw IncompleteAuthentication;
3000
3012
 
3001
- case 2:
3002
- _context15.next = 4;
3013
+ case 3:
3014
+ _context15.next = 5;
3003
3015
  return this.getCachedSecretCryptor(lockboxUuid, lockboxOwnerUuid);
3004
3016
 
3005
- case 4:
3017
+ case 5:
3006
3018
  symmetricEncryptor = _context15.sent;
3007
3019
  encryptedData = symmetricEncryptor.jsonEncryptToBase64Payload(data);
3008
3020
  encryptedPrivateMeta = symmetricEncryptor.jsonEncryptToBase64Payload(privateMeta);
@@ -3011,9 +3023,18 @@ var OroClient = /*#__PURE__*/function () {
3011
3023
  publicMetadata: meta,
3012
3024
  privateMetadata: encryptedPrivateMeta
3013
3025
  };
3026
+
3027
+ if (!withNotification) {
3028
+ _context15.next = 13;
3029
+ break;
3030
+ }
3031
+
3014
3032
  return _context15.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
3015
3033
 
3016
- case 9:
3034
+ case 13:
3035
+ return _context15.abrupt("return", this.vaultClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
3036
+
3037
+ case 14:
3017
3038
  case "end":
3018
3039
  return _context15.stop();
3019
3040
  }
@@ -3021,7 +3042,7 @@ var OroClient = /*#__PURE__*/function () {
3021
3042
  }, _callee15, this);
3022
3043
  }));
3023
3044
 
3024
- function createJsonData(_x41, _x42, _x43, _x44, _x45, _x46) {
3045
+ function createJsonData(_x42, _x43, _x44, _x45, _x46, _x47, _x48) {
3025
3046
  return _createJsonData.apply(this, arguments);
3026
3047
  }
3027
3048
 
@@ -3034,6 +3055,7 @@ var OroClient = /*#__PURE__*/function () {
3034
3055
  * @param publicMetadata the public Metadata
3035
3056
  * @param privateMetadata the private Metadata
3036
3057
  * @param forceReplace set true when the insertion of data requires to replace the data when it exists already
3058
+ * @param withNotification if the insertion of data requires notification
3037
3059
  * @returns the data uuid
3038
3060
  */
3039
3061
  ;
@@ -3041,7 +3063,7 @@ var OroClient = /*#__PURE__*/function () {
3041
3063
  _proto.getOrInsertJsonData =
3042
3064
  /*#__PURE__*/
3043
3065
  function () {
3044
- var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
3066
+ var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace, withNotification) {
3045
3067
  var manifest;
3046
3068
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
3047
3069
  while (1) {
@@ -3051,32 +3073,36 @@ var OroClient = /*#__PURE__*/function () {
3051
3073
  forceReplace = false;
3052
3074
  }
3053
3075
 
3054
- _context16.next = 3;
3076
+ if (withNotification === void 0) {
3077
+ withNotification = false;
3078
+ }
3079
+
3080
+ _context16.next = 4;
3055
3081
  return this.vaultClient.lockboxManifestGet(lockboxUuid, publicMetadata);
3056
3082
 
3057
- case 3:
3083
+ case 4:
3058
3084
  manifest = _context16.sent;
3059
3085
 
3060
3086
  if (!(!forceReplace && manifest.length > 0)) {
3061
- _context16.next = 9;
3087
+ _context16.next = 10;
3062
3088
  break;
3063
3089
  }
3064
3090
 
3065
3091
  console.log("The data for " + JSON.stringify(publicMetadata) + " already exist");
3066
3092
  return _context16.abrupt("return", manifest[0].dataUuid);
3067
3093
 
3068
- case 9:
3069
- _context16.next = 11;
3070
- return this.createJsonData(lockboxUuid, data, publicMetadata, privateMetadata, undefined, forceReplace && manifest.length > 0 ? manifest[0].dataUuid : undefined // if forceReplace and data already exist, then replace data. Otherwise insert it
3071
- )["catch"](function (err) {
3094
+ case 10:
3095
+ _context16.next = 12;
3096
+ return this.createJsonData(lockboxUuid, data, publicMetadata, privateMetadata, undefined, forceReplace && manifest.length > 0 ? manifest[0].dataUuid : undefined, // if forceReplace and data already exist, then replace data. Otherwise insert it
3097
+ withNotification)["catch"](function (err) {
3072
3098
  console.error("Error while upserting data " + JSON.stringify(publicMetadata) + " data", err);
3073
3099
  throw err;
3074
3100
  });
3075
3101
 
3076
- case 11:
3102
+ case 12:
3077
3103
  return _context16.abrupt("return", _context16.sent.dataUuid);
3078
3104
 
3079
- case 12:
3105
+ case 13:
3080
3106
  case "end":
3081
3107
  return _context16.stop();
3082
3108
  }
@@ -3084,7 +3110,7 @@ var OroClient = /*#__PURE__*/function () {
3084
3110
  }, _callee16, this);
3085
3111
  }));
3086
3112
 
3087
- function getOrInsertJsonData(_x47, _x48, _x49, _x50, _x51) {
3113
+ function getOrInsertJsonData(_x49, _x50, _x51, _x52, _x53, _x54) {
3088
3114
  return _getOrInsertJsonData.apply(this, arguments);
3089
3115
  }
3090
3116
 
@@ -3099,6 +3125,7 @@ var OroClient = /*#__PURE__*/function () {
3099
3125
  * @param privateMeta the metadata that will be secured in the vault
3100
3126
  * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
3101
3127
  * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
3128
+ * @param withNotification if the insertion of data requires notification
3102
3129
  * @returns the data uuid
3103
3130
  */
3104
3131
  ;
@@ -3106,24 +3133,28 @@ var OroClient = /*#__PURE__*/function () {
3106
3133
  _proto.createBytesData =
3107
3134
  /*#__PURE__*/
3108
3135
  function () {
3109
- var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3136
+ var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid, withNotification) {
3110
3137
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
3111
3138
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
3112
3139
  while (1) {
3113
3140
  switch (_context17.prev = _context17.next) {
3114
3141
  case 0:
3142
+ if (withNotification === void 0) {
3143
+ withNotification = false;
3144
+ }
3145
+
3115
3146
  if (this.rsa) {
3116
- _context17.next = 2;
3147
+ _context17.next = 3;
3117
3148
  break;
3118
3149
  }
3119
3150
 
3120
3151
  throw IncompleteAuthentication;
3121
3152
 
3122
- case 2:
3123
- _context17.next = 4;
3153
+ case 3:
3154
+ _context17.next = 5;
3124
3155
  return this.getCachedSecretCryptor(lockboxUuid, lockboxOwnerUuid);
3125
3156
 
3126
- case 4:
3157
+ case 5:
3127
3158
  symmetricEncryptor = _context17.sent;
3128
3159
  encryptedData = symmetricEncryptor.bytesEncryptToBase64Payload(data);
3129
3160
  encryptedPrivateMeta = symmetricEncryptor.jsonEncryptToBase64Payload(privateMeta);
@@ -3132,9 +3163,18 @@ var OroClient = /*#__PURE__*/function () {
3132
3163
  publicMetadata: meta,
3133
3164
  privateMetadata: encryptedPrivateMeta
3134
3165
  };
3166
+
3167
+ if (!withNotification) {
3168
+ _context17.next = 13;
3169
+ break;
3170
+ }
3171
+
3135
3172
  return _context17.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
3136
3173
 
3137
- case 9:
3174
+ case 13:
3175
+ return _context17.abrupt("return", this.vaultClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
3176
+
3177
+ case 14:
3138
3178
  case "end":
3139
3179
  return _context17.stop();
3140
3180
  }
@@ -3142,7 +3182,7 @@ var OroClient = /*#__PURE__*/function () {
3142
3182
  }, _callee17, this);
3143
3183
  }));
3144
3184
 
3145
- function createBytesData(_x52, _x53, _x54, _x55, _x56, _x57) {
3185
+ function createBytesData(_x55, _x56, _x57, _x58, _x59, _x60, _x61) {
3146
3186
  return _createBytesData.apply(this, arguments);
3147
3187
  }
3148
3188
 
@@ -3196,7 +3236,7 @@ var OroClient = /*#__PURE__*/function () {
3196
3236
  }, _callee18, this);
3197
3237
  }));
3198
3238
 
3199
- function getJsonData(_x58, _x59, _x60) {
3239
+ function getJsonData(_x62, _x63, _x64) {
3200
3240
  return _getJsonData.apply(this, arguments);
3201
3241
  }
3202
3242
 
@@ -3246,7 +3286,7 @@ var OroClient = /*#__PURE__*/function () {
3246
3286
  }, _callee19, this);
3247
3287
  }));
3248
3288
 
3249
- function getBytesData(_x61, _x62, _x63) {
3289
+ function getBytesData(_x65, _x66, _x67) {
3250
3290
  return _getBytesData.apply(this, arguments);
3251
3291
  }
3252
3292
 
@@ -3384,7 +3424,7 @@ var OroClient = /*#__PURE__*/function () {
3384
3424
  }, _callee20, this);
3385
3425
  }));
3386
3426
 
3387
- function getGrants(_x64) {
3427
+ function getGrants(_x68) {
3388
3428
  return _getGrants.apply(this, arguments);
3389
3429
  }
3390
3430
 
@@ -3484,7 +3524,7 @@ var OroClient = /*#__PURE__*/function () {
3484
3524
  }, _callee22, this);
3485
3525
  }));
3486
3526
 
3487
- function getCachedSecretCryptor(_x65, _x66) {
3527
+ function getCachedSecretCryptor(_x69, _x70) {
3488
3528
  return _getCachedSecretCryptor.apply(this, arguments);
3489
3529
  }
3490
3530
 
@@ -3523,7 +3563,7 @@ var OroClient = /*#__PURE__*/function () {
3523
3563
  }, _callee23, this);
3524
3564
  }));
3525
3565
 
3526
- function getPersonalInformationsFromConsultId(_x67, _x68, _x69) {
3566
+ function getPersonalInformationsFromConsultId(_x71, _x72, _x73) {
3527
3567
  return _getPersonalInformationsFromConsultId.apply(this, arguments);
3528
3568
  }
3529
3569
 
@@ -3561,7 +3601,7 @@ var OroClient = /*#__PURE__*/function () {
3561
3601
  }, _callee24, this);
3562
3602
  }));
3563
3603
 
3564
- function getMedicalDataFromConsultId(_x70, _x71) {
3604
+ function getMedicalDataFromConsultId(_x74, _x75) {
3565
3605
  return _getMedicalDataFromConsultId.apply(this, arguments);
3566
3606
  }
3567
3607
 
@@ -3654,7 +3694,7 @@ var OroClient = /*#__PURE__*/function () {
3654
3694
  }, _callee25);
3655
3695
  }));
3656
3696
 
3657
- return function (_x75) {
3697
+ return function (_x79) {
3658
3698
  return _ref3.apply(this, arguments);
3659
3699
  };
3660
3700
  }()));
@@ -3695,7 +3735,7 @@ var OroClient = /*#__PURE__*/function () {
3695
3735
  }, _callee26, this);
3696
3736
  }));
3697
3737
 
3698
- function getMetaCategoryFromConsultId(_x72, _x73, _x74) {
3738
+ function getMetaCategoryFromConsultId(_x76, _x77, _x78) {
3699
3739
  return _getMetaCategoryFromConsultId.apply(this, arguments);
3700
3740
  }
3701
3741
 
@@ -3782,7 +3822,7 @@ var OroClient = /*#__PURE__*/function () {
3782
3822
  }, _callee27, this);
3783
3823
  }));
3784
3824
 
3785
- function getPersonalInformations(_x76) {
3825
+ function getPersonalInformations(_x80) {
3786
3826
  return _getPersonalInformations.apply(this, arguments);
3787
3827
  }
3788
3828
 
@@ -3831,7 +3871,7 @@ var OroClient = /*#__PURE__*/function () {
3831
3871
  }, _callee28, this);
3832
3872
  }));
3833
3873
 
3834
- function getGrantFromConsultId(_x77) {
3874
+ function getGrantFromConsultId(_x81) {
3835
3875
  return _getGrantFromConsultId.apply(this, arguments);
3836
3876
  }
3837
3877
 
@@ -3881,7 +3921,7 @@ var OroClient = /*#__PURE__*/function () {
3881
3921
  }, _callee29, this);
3882
3922
  }));
3883
3923
 
3884
- function getIdentityFromConsultId(_x78) {
3924
+ function getIdentityFromConsultId(_x82) {
3885
3925
  return _getIdentityFromConsultId.apply(this, arguments);
3886
3926
  }
3887
3927
 
@@ -3960,7 +4000,7 @@ var OroClient = /*#__PURE__*/function () {
3960
4000
  }, _callee30);
3961
4001
  }));
3962
4002
 
3963
- return function (_x84) {
4003
+ return function (_x88) {
3964
4004
  return _ref4.apply(this, arguments);
3965
4005
  };
3966
4006
  }())).then(function (manifest) {
@@ -3976,7 +4016,7 @@ var OroClient = /*#__PURE__*/function () {
3976
4016
  }, _callee31, this);
3977
4017
  }));
3978
4018
 
3979
- function getLockboxManifest(_x79, _x80, _x81, _x82, _x83) {
4019
+ function getLockboxManifest(_x83, _x84, _x85, _x86, _x87) {
3980
4020
  return _getLockboxManifest.apply(this, arguments);
3981
4021
  }
3982
4022
 
@@ -4046,7 +4086,7 @@ var OroClient = /*#__PURE__*/function () {
4046
4086
  }, _callee32, this);
4047
4087
  }));
4048
4088
 
4049
- function createPersonalInformations(_x85, _x86, _x87) {
4089
+ function createPersonalInformations(_x89, _x90, _x91) {
4050
4090
  return _createPersonalInformations.apply(this, arguments);
4051
4091
  }
4052
4092
 
@@ -4116,7 +4156,7 @@ var OroClient = /*#__PURE__*/function () {
4116
4156
  }, _callee33, this);
4117
4157
  }));
4118
4158
 
4119
- function createUserPreference(_x88, _x89, _x90) {
4159
+ function createUserPreference(_x92, _x93, _x94) {
4120
4160
  return _createUserPreference.apply(this, arguments);
4121
4161
  }
4122
4162
 
@@ -4184,7 +4224,7 @@ var OroClient = /*#__PURE__*/function () {
4184
4224
  }, _callee34, this);
4185
4225
  }));
4186
4226
 
4187
- function getDataFromGrant(_x91, _x92) {
4227
+ function getDataFromGrant(_x95, _x96) {
4188
4228
  return _getDataFromGrant.apply(this, arguments);
4189
4229
  }
4190
4230
 
@@ -4233,7 +4273,7 @@ var OroClient = /*#__PURE__*/function () {
4233
4273
  }, _callee35, this);
4234
4274
  }));
4235
4275
 
4236
- function getUserPreferenceFromConsultId(_x93) {
4276
+ function getUserPreferenceFromConsultId(_x97) {
4237
4277
  return _getUserPreferenceFromConsultId.apply(this, arguments);
4238
4278
  }
4239
4279
 
@@ -4284,7 +4324,7 @@ var OroClient = /*#__PURE__*/function () {
4284
4324
  }, _callee36, this);
4285
4325
  }));
4286
4326
 
4287
- function getUserPreference(_x94) {
4327
+ function getUserPreference(_x98) {
4288
4328
  return _getUserPreference.apply(this, arguments);
4289
4329
  }
4290
4330
 
@@ -4333,7 +4373,7 @@ var OroClient = /*#__PURE__*/function () {
4333
4373
  }, _callee37, this);
4334
4374
  }));
4335
4375
 
4336
- function getRecoveryDataFromConsultId(_x95) {
4376
+ function getRecoveryDataFromConsultId(_x99) {
4337
4377
  return _getRecoveryDataFromConsultId.apply(this, arguments);
4338
4378
  }
4339
4379
 
@@ -4384,7 +4424,7 @@ var OroClient = /*#__PURE__*/function () {
4384
4424
  }, _callee38, this);
4385
4425
  }));
4386
4426
 
4387
- function getRecoveryData(_x96) {
4427
+ function getRecoveryData(_x100) {
4388
4428
  return _getRecoveryData.apply(this, arguments);
4389
4429
  }
4390
4430
 
@@ -4442,7 +4482,7 @@ var OroClient = /*#__PURE__*/function () {
4442
4482
  }, _callee39);
4443
4483
  }));
4444
4484
 
4445
- return function (_x98) {
4485
+ return function (_x102) {
4446
4486
  return _ref5.apply(this, arguments);
4447
4487
  };
4448
4488
  }())).then(function (promise) {
@@ -4462,7 +4502,7 @@ var OroClient = /*#__PURE__*/function () {
4462
4502
  }, _callee40, this);
4463
4503
  }));
4464
4504
 
4465
- function getAssignedConsultations(_x97) {
4505
+ function getAssignedConsultations(_x101) {
4466
4506
  return _getAssignedConsultations.apply(this, arguments);
4467
4507
  }
4468
4508
 
@@ -4540,7 +4580,7 @@ var OroClient = /*#__PURE__*/function () {
4540
4580
  }, _callee41);
4541
4581
  }));
4542
4582
 
4543
- return function (_x101) {
4583
+ return function (_x105) {
4544
4584
  return _ref6.apply(this, arguments);
4545
4585
  };
4546
4586
  }()));
@@ -4556,7 +4596,7 @@ var OroClient = /*#__PURE__*/function () {
4556
4596
  }, _callee42, this);
4557
4597
  }));
4558
4598
 
4559
- function getPastConsultationsFromConsultId(_x99, _x100) {
4599
+ function getPastConsultationsFromConsultId(_x103, _x104) {
4560
4600
  return _getPastConsultationsFromConsultId.apply(this, arguments);
4561
4601
  }
4562
4602
 
@@ -4614,7 +4654,7 @@ var OroClient = /*#__PURE__*/function () {
4614
4654
  }, _callee43, this);
4615
4655
  }));
4616
4656
 
4617
- function getPatientConsultationData(_x102, _x103) {
4657
+ function getPatientConsultationData(_x106, _x107) {
4618
4658
  return _getPatientConsultationData.apply(this, arguments);
4619
4659
  }
4620
4660
 
@@ -4648,7 +4688,7 @@ var OroClient = /*#__PURE__*/function () {
4648
4688
  }, _callee44, this);
4649
4689
  }));
4650
4690
 
4651
- function getPatientPrescriptionsList(_x104) {
4691
+ function getPatientPrescriptionsList(_x108) {
4652
4692
  return _getPatientPrescriptionsList.apply(this, arguments);
4653
4693
  }
4654
4694
 
@@ -4682,7 +4722,7 @@ var OroClient = /*#__PURE__*/function () {
4682
4722
  }, _callee45, this);
4683
4723
  }));
4684
4724
 
4685
- function getPatientResultsList(_x105) {
4725
+ function getPatientResultsList(_x109) {
4686
4726
  return _getPatientResultsList.apply(this, arguments);
4687
4727
  }
4688
4728
 
@@ -4716,7 +4756,7 @@ var OroClient = /*#__PURE__*/function () {
4716
4756
  }, _callee46, this);
4717
4757
  }));
4718
4758
 
4719
- function getPatientTreatmentPlans(_x106) {
4759
+ function getPatientTreatmentPlans(_x110) {
4720
4760
  return _getPatientTreatmentPlans.apply(this, arguments);
4721
4761
  }
4722
4762
 
@@ -4752,7 +4792,7 @@ var OroClient = /*#__PURE__*/function () {
4752
4792
  }, _callee47, this);
4753
4793
  }));
4754
4794
 
4755
- function getPatientTreatmentPlanByUuid(_x107, _x108) {
4795
+ function getPatientTreatmentPlanByUuid(_x111, _x112) {
4756
4796
  return _getPatientTreatmentPlanByUuid.apply(this, arguments);
4757
4797
  }
4758
4798
 
@@ -4809,7 +4849,7 @@ var OroClient = /*#__PURE__*/function () {
4809
4849
  }, _callee48);
4810
4850
  }));
4811
4851
 
4812
- return function (_x112) {
4852
+ return function (_x116) {
4813
4853
  return _ref7.apply(this, arguments);
4814
4854
  };
4815
4855
  }()));
@@ -4827,7 +4867,7 @@ var OroClient = /*#__PURE__*/function () {
4827
4867
  }, _callee49, this);
4828
4868
  }));
4829
4869
 
4830
- function getPatientDocumentsList(_x109, _x110, _x111) {
4870
+ function getPatientDocumentsList(_x113, _x114, _x115) {
4831
4871
  return _getPatientDocumentsList.apply(this, arguments);
4832
4872
  }
4833
4873
 
@@ -4889,7 +4929,7 @@ var OroClient = /*#__PURE__*/function () {
4889
4929
  }, _callee50, this);
4890
4930
  }));
4891
4931
 
4892
- function recoverPrivateKeyFromSecurityQuestions(_x113, _x114, _x115, _x116) {
4932
+ function recoverPrivateKeyFromSecurityQuestions(_x117, _x118, _x119, _x120) {
4893
4933
  return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
4894
4934
  }
4895
4935
 
@@ -4937,7 +4977,7 @@ var OroClient = /*#__PURE__*/function () {
4937
4977
  }, _callee51, this);
4938
4978
  }));
4939
4979
 
4940
- function recoverPrivateKeyFromPassword(_x117, _x118) {
4980
+ function recoverPrivateKeyFromPassword(_x121, _x122) {
4941
4981
  return _recoverPrivateKeyFromPassword.apply(this, arguments);
4942
4982
  }
4943
4983
 
@@ -4977,7 +5017,7 @@ var OroClient = /*#__PURE__*/function () {
4977
5017
  }, _callee52, this);
4978
5018
  }));
4979
5019
 
4980
- function recoverPrivateKeyFromMasterKey(_x119, _x120) {
5020
+ function recoverPrivateKeyFromMasterKey(_x123, _x124) {
4981
5021
  return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
4982
5022
  }
4983
5023
 
@@ -5028,7 +5068,7 @@ var OroClient = /*#__PURE__*/function () {
5028
5068
  }, _callee53, this);
5029
5069
  }));
5030
5070
 
5031
- function updateSecurityQuestions(_x121, _x122, _x123, _x124) {
5071
+ function updateSecurityQuestions(_x125, _x126, _x127, _x128) {
5032
5072
  return _updateSecurityQuestions.apply(this, arguments);
5033
5073
  }
5034
5074
 
@@ -5093,7 +5133,7 @@ var OroClient = /*#__PURE__*/function () {
5093
5133
  }, _callee54, this);
5094
5134
  }));
5095
5135
 
5096
- function updatePassword(_x125, _x126, _x127) {
5136
+ function updatePassword(_x129, _x130, _x131) {
5097
5137
  return _updatePassword.apply(this, arguments);
5098
5138
  }
5099
5139
 
@@ -5155,7 +5195,7 @@ var OroClient = /*#__PURE__*/function () {
5155
5195
  }, _callee55, this);
5156
5196
  }));
5157
5197
 
5158
- function updateMasterKey(_x128, _x129, _x130) {
5198
+ function updateMasterKey(_x132, _x133, _x134) {
5159
5199
  return _updateMasterKey.apply(this, arguments);
5160
5200
  }
5161
5201