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.
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Consult, ConsultRequest, ConsultService, DataCreateResponse, DiagnosisService, Document, DocumentType, Grant, GuardService, IdentityResponse, LocalizedData, LockboxManifest, Meta, Metadata, MetadataCategory, PopulatedWorkflowData, Practice, PracticeService, RoleBasedScopes, SearchService, TellerService, TokenData, TosAndCpAcceptanceRequest, Uuid, VaultIndex, VaultService, WorkflowData, WorkflowService } from 'oro-sdk-apis';
1
+ import { Consult, ConsultRequest, ConsultService, DataCreateResponse, DiagnosisService, Document, DocumentType, Grant, GuardService, IdentityResponse, LocalizedData, LockboxManifest, Metadata, MetadataCategory, PopulatedWorkflowData, Practice, PracticeService, RoleBasedScopes, SearchService, TellerService, TokenData, TosAndCpAcceptanceRequest, Uuid, VaultIndex, VaultService, WorkflowData, WorkflowService } from 'oro-sdk-apis';
2
2
  import * as OroToolbox from 'oro-toolbox';
3
3
  import { LocalEncryptedData, RecoveryData, RegisterPatientOutput, UserPreference } from './models';
4
4
  export declare class OroClient {
@@ -150,9 +150,10 @@ export declare class OroClient {
150
150
  * @param category the category for the attachment data
151
151
  * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
152
152
  * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
153
+ * @param withNotification if the insertion of data requires notification
153
154
  * @returns the data uuid
154
155
  */
155
- createConsultationAttachmentData(lockboxUuid: Uuid, data: File, consultationId: string, documentType: DocumentType, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid): Promise<DataCreateResponse>;
156
+ createConsultationAttachmentData(lockboxUuid: Uuid, data: File, consultationId: string, documentType: DocumentType, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, withNotification?: boolean): Promise<DataCreateResponse>;
156
157
  /**
157
158
  * @name createJsonData
158
159
  * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a JSON
@@ -162,11 +163,12 @@ export declare class OroClient {
162
163
  * @param privateMeta the metadata that will be secured in the vault
163
164
  * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
164
165
  * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
166
+ * @param withNotification if the insertion of data requires notification
165
167
  * @returns the data uuid
166
168
  */
167
- createJsonData<T = Meta>(lockboxUuid: Uuid, data: any, meta?: T, privateMeta?: {
169
+ createJsonData<T extends Metadata>(lockboxUuid: Uuid, data: any, meta?: T, privateMeta?: {
168
170
  [val: string]: any;
169
- }, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid): Promise<DataCreateResponse>;
171
+ }, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, withNotification?: boolean): Promise<DataCreateResponse>;
170
172
  /**
171
173
  * Get or upsert a data in lockbox
172
174
  * @param lockboxUuid the lockbox uuid
@@ -174,9 +176,10 @@ export declare class OroClient {
174
176
  * @param publicMetadata the public Metadata
175
177
  * @param privateMetadata the private Metadata
176
178
  * @param forceReplace set true when the insertion of data requires to replace the data when it exists already
179
+ * @param withNotification if the insertion of data requires notification
177
180
  * @returns the data uuid
178
181
  */
179
- getOrInsertJsonData<M = Metadata>(lockboxUuid: Uuid, data: any, publicMetadata: M, privateMetadata: Metadata, forceReplace?: boolean): Promise<Uuid>;
182
+ getOrInsertJsonData<M extends Metadata>(lockboxUuid: Uuid, data: any, publicMetadata: M, privateMetadata: Metadata, forceReplace?: boolean, withNotification?: boolean): Promise<Uuid>;
180
183
  /**
181
184
  * @name createBytesData
182
185
  * @description Creates a Base64 encrypted Payload to send and store in the vault. With the data input as a Bytes
@@ -186,11 +189,12 @@ export declare class OroClient {
186
189
  * @param privateMeta the metadata that will be secured in the vault
187
190
  * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
188
191
  * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
192
+ * @param withNotification if the insertion of data requires notification
189
193
  * @returns the data uuid
190
194
  */
191
- createBytesData<T = Meta>(lockboxUuid: Uuid, data: Uint8Array, meta: T, privateMeta: {
195
+ createBytesData<T extends Metadata>(lockboxUuid: Uuid, data: Uint8Array, meta: T, privateMeta: {
192
196
  [val: string]: any;
193
- }, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid): Promise<DataCreateResponse>;
197
+ }, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, withNotification?: boolean): Promise<DataCreateResponse>;
194
198
  /**
195
199
  * @name getJsonData
196
200
  * @description Fetches and decrypts the lockbox data with the cached shared secret.
@@ -1728,7 +1728,8 @@ function _storePatientData() {
1728
1728
  consultationId: consultationId
1729
1729
  }, {
1730
1730
  consultationId: consultationId
1731
- });
1731
+ }, false, true // the only data that needs to include an email notification
1732
+ );
1732
1733
  }), getWorkflowDataByCategory(workflow, initApis.MetadataCategory.Medical).then(function (data) {
1733
1734
  return oroClient.getOrInsertJsonData(lockboxUuid, data, {
1734
1735
  category: initApis.MetadataCategory.Medical,
@@ -2910,6 +2911,7 @@ var OroClient = /*#__PURE__*/function () {
2910
2911
  * @param category the category for the attachment data
2911
2912
  * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2912
2913
  * @param previousDataUuid if it's a revision of existing file, specify the previous data uuid
2914
+ * @param withNotification if the insertion of data requires notification
2913
2915
  * @returns the data uuid
2914
2916
  */
2915
2917
  ;
@@ -2917,26 +2919,30 @@ var OroClient = /*#__PURE__*/function () {
2917
2919
  _proto.createConsultationAttachmentData =
2918
2920
  /*#__PURE__*/
2919
2921
  function () {
2920
- var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
2922
+ var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid, withNotification) {
2921
2923
  return _regeneratorRuntime().wrap(function _callee14$(_context14) {
2922
2924
  while (1) {
2923
2925
  switch (_context14.prev = _context14.next) {
2924
2926
  case 0:
2927
+ if (withNotification === void 0) {
2928
+ withNotification = false;
2929
+ }
2930
+
2925
2931
  if (this.rsa) {
2926
- _context14.next = 2;
2932
+ _context14.next = 3;
2927
2933
  break;
2928
2934
  }
2929
2935
 
2930
2936
  throw IncompleteAuthentication;
2931
2937
 
2932
- case 2:
2938
+ case 3:
2933
2939
  _context14.t0 = this;
2934
2940
  _context14.t1 = lockboxUuid;
2935
2941
  _context14.t2 = Uint8Array;
2936
- _context14.next = 7;
2942
+ _context14.next = 8;
2937
2943
  return data.arrayBuffer();
2938
2944
 
2939
- case 7:
2945
+ case 8:
2940
2946
  _context14.t3 = _context14.sent;
2941
2947
  _context14.t4 = new _context14.t2(_context14.t3);
2942
2948
  _context14.t5 = {
@@ -2945,10 +2951,10 @@ var OroClient = /*#__PURE__*/function () {
2945
2951
  documentType: documentType,
2946
2952
  contentType: data.type
2947
2953
  };
2948
- _context14.next = 12;
2954
+ _context14.next = 13;
2949
2955
  return this.guardClient.whoAmI();
2950
2956
 
2951
- case 12:
2957
+ case 13:
2952
2958
  _context14.t6 = _context14.sent.sub;
2953
2959
  _context14.t7 = data.name;
2954
2960
  _context14.t8 = {
@@ -2957,9 +2963,10 @@ var OroClient = /*#__PURE__*/function () {
2957
2963
  };
2958
2964
  _context14.t9 = lockboxOwnerUuid;
2959
2965
  _context14.t10 = previousDataUuid;
2960
- return _context14.abrupt("return", _context14.t0.createBytesData.call(_context14.t0, _context14.t1, _context14.t4, _context14.t5, _context14.t8, _context14.t9, _context14.t10));
2966
+ _context14.t11 = withNotification;
2967
+ return _context14.abrupt("return", _context14.t0.createBytesData.call(_context14.t0, _context14.t1, _context14.t4, _context14.t5, _context14.t8, _context14.t9, _context14.t10, _context14.t11));
2961
2968
 
2962
- case 18:
2969
+ case 20:
2963
2970
  case "end":
2964
2971
  return _context14.stop();
2965
2972
  }
@@ -2967,7 +2974,7 @@ var OroClient = /*#__PURE__*/function () {
2967
2974
  }, _callee14, this);
2968
2975
  }));
2969
2976
 
2970
- function createConsultationAttachmentData(_x35, _x36, _x37, _x38, _x39, _x40) {
2977
+ function createConsultationAttachmentData(_x35, _x36, _x37, _x38, _x39, _x40, _x41) {
2971
2978
  return _createConsultationAttachmentData.apply(this, arguments);
2972
2979
  }
2973
2980
 
@@ -2982,6 +2989,7 @@ var OroClient = /*#__PURE__*/function () {
2982
2989
  * @param privateMeta the metadata that will be secured in the vault
2983
2990
  * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
2984
2991
  * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
2992
+ * @param withNotification if the insertion of data requires notification
2985
2993
  * @returns the data uuid
2986
2994
  */
2987
2995
  ;
@@ -2989,24 +2997,28 @@ var OroClient = /*#__PURE__*/function () {
2989
2997
  _proto.createJsonData =
2990
2998
  /*#__PURE__*/
2991
2999
  function () {
2992
- var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3000
+ var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid, withNotification) {
2993
3001
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
2994
3002
  return _regeneratorRuntime().wrap(function _callee15$(_context15) {
2995
3003
  while (1) {
2996
3004
  switch (_context15.prev = _context15.next) {
2997
3005
  case 0:
3006
+ if (withNotification === void 0) {
3007
+ withNotification = false;
3008
+ }
3009
+
2998
3010
  if (this.rsa) {
2999
- _context15.next = 2;
3011
+ _context15.next = 3;
3000
3012
  break;
3001
3013
  }
3002
3014
 
3003
3015
  throw IncompleteAuthentication;
3004
3016
 
3005
- case 2:
3006
- _context15.next = 4;
3017
+ case 3:
3018
+ _context15.next = 5;
3007
3019
  return this.getCachedSecretCryptor(lockboxUuid, lockboxOwnerUuid);
3008
3020
 
3009
- case 4:
3021
+ case 5:
3010
3022
  symmetricEncryptor = _context15.sent;
3011
3023
  encryptedData = symmetricEncryptor.jsonEncryptToBase64Payload(data);
3012
3024
  encryptedPrivateMeta = symmetricEncryptor.jsonEncryptToBase64Payload(privateMeta);
@@ -3015,9 +3027,18 @@ var OroClient = /*#__PURE__*/function () {
3015
3027
  publicMetadata: meta,
3016
3028
  privateMetadata: encryptedPrivateMeta
3017
3029
  };
3030
+
3031
+ if (!withNotification) {
3032
+ _context15.next = 13;
3033
+ break;
3034
+ }
3035
+
3018
3036
  return _context15.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
3019
3037
 
3020
- case 9:
3038
+ case 13:
3039
+ return _context15.abrupt("return", this.vaultClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
3040
+
3041
+ case 14:
3021
3042
  case "end":
3022
3043
  return _context15.stop();
3023
3044
  }
@@ -3025,7 +3046,7 @@ var OroClient = /*#__PURE__*/function () {
3025
3046
  }, _callee15, this);
3026
3047
  }));
3027
3048
 
3028
- function createJsonData(_x41, _x42, _x43, _x44, _x45, _x46) {
3049
+ function createJsonData(_x42, _x43, _x44, _x45, _x46, _x47, _x48) {
3029
3050
  return _createJsonData.apply(this, arguments);
3030
3051
  }
3031
3052
 
@@ -3038,6 +3059,7 @@ var OroClient = /*#__PURE__*/function () {
3038
3059
  * @param publicMetadata the public Metadata
3039
3060
  * @param privateMetadata the private Metadata
3040
3061
  * @param forceReplace set true when the insertion of data requires to replace the data when it exists already
3062
+ * @param withNotification if the insertion of data requires notification
3041
3063
  * @returns the data uuid
3042
3064
  */
3043
3065
  ;
@@ -3045,7 +3067,7 @@ var OroClient = /*#__PURE__*/function () {
3045
3067
  _proto.getOrInsertJsonData =
3046
3068
  /*#__PURE__*/
3047
3069
  function () {
3048
- var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
3070
+ var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace, withNotification) {
3049
3071
  var manifest;
3050
3072
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
3051
3073
  while (1) {
@@ -3055,32 +3077,36 @@ var OroClient = /*#__PURE__*/function () {
3055
3077
  forceReplace = false;
3056
3078
  }
3057
3079
 
3058
- _context16.next = 3;
3080
+ if (withNotification === void 0) {
3081
+ withNotification = false;
3082
+ }
3083
+
3084
+ _context16.next = 4;
3059
3085
  return this.vaultClient.lockboxManifestGet(lockboxUuid, publicMetadata);
3060
3086
 
3061
- case 3:
3087
+ case 4:
3062
3088
  manifest = _context16.sent;
3063
3089
 
3064
3090
  if (!(!forceReplace && manifest.length > 0)) {
3065
- _context16.next = 9;
3091
+ _context16.next = 10;
3066
3092
  break;
3067
3093
  }
3068
3094
 
3069
3095
  console.log("The data for " + JSON.stringify(publicMetadata) + " already exist");
3070
3096
  return _context16.abrupt("return", manifest[0].dataUuid);
3071
3097
 
3072
- case 9:
3073
- _context16.next = 11;
3074
- 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
3075
- )["catch"](function (err) {
3098
+ case 10:
3099
+ _context16.next = 12;
3100
+ 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
3101
+ withNotification)["catch"](function (err) {
3076
3102
  console.error("Error while upserting data " + JSON.stringify(publicMetadata) + " data", err);
3077
3103
  throw err;
3078
3104
  });
3079
3105
 
3080
- case 11:
3106
+ case 12:
3081
3107
  return _context16.abrupt("return", _context16.sent.dataUuid);
3082
3108
 
3083
- case 12:
3109
+ case 13:
3084
3110
  case "end":
3085
3111
  return _context16.stop();
3086
3112
  }
@@ -3088,7 +3114,7 @@ var OroClient = /*#__PURE__*/function () {
3088
3114
  }, _callee16, this);
3089
3115
  }));
3090
3116
 
3091
- function getOrInsertJsonData(_x47, _x48, _x49, _x50, _x51) {
3117
+ function getOrInsertJsonData(_x49, _x50, _x51, _x52, _x53, _x54) {
3092
3118
  return _getOrInsertJsonData.apply(this, arguments);
3093
3119
  }
3094
3120
 
@@ -3103,6 +3129,7 @@ var OroClient = /*#__PURE__*/function () {
3103
3129
  * @param privateMeta the metadata that will be secured in the vault
3104
3130
  * @param lockboxOwnerUuid the lockbox owner (ignored if lockbox is owned by self)
3105
3131
  * @param previousDataUuid if it's a revision of existing data, specify the previous data uuid
3132
+ * @param withNotification if the insertion of data requires notification
3106
3133
  * @returns the data uuid
3107
3134
  */
3108
3135
  ;
@@ -3110,24 +3137,28 @@ var OroClient = /*#__PURE__*/function () {
3110
3137
  _proto.createBytesData =
3111
3138
  /*#__PURE__*/
3112
3139
  function () {
3113
- var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3140
+ var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid, withNotification) {
3114
3141
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
3115
3142
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
3116
3143
  while (1) {
3117
3144
  switch (_context17.prev = _context17.next) {
3118
3145
  case 0:
3146
+ if (withNotification === void 0) {
3147
+ withNotification = false;
3148
+ }
3149
+
3119
3150
  if (this.rsa) {
3120
- _context17.next = 2;
3151
+ _context17.next = 3;
3121
3152
  break;
3122
3153
  }
3123
3154
 
3124
3155
  throw IncompleteAuthentication;
3125
3156
 
3126
- case 2:
3127
- _context17.next = 4;
3157
+ case 3:
3158
+ _context17.next = 5;
3128
3159
  return this.getCachedSecretCryptor(lockboxUuid, lockboxOwnerUuid);
3129
3160
 
3130
- case 4:
3161
+ case 5:
3131
3162
  symmetricEncryptor = _context17.sent;
3132
3163
  encryptedData = symmetricEncryptor.bytesEncryptToBase64Payload(data);
3133
3164
  encryptedPrivateMeta = symmetricEncryptor.jsonEncryptToBase64Payload(privateMeta);
@@ -3136,9 +3167,18 @@ var OroClient = /*#__PURE__*/function () {
3136
3167
  publicMetadata: meta,
3137
3168
  privateMetadata: encryptedPrivateMeta
3138
3169
  };
3170
+
3171
+ if (!withNotification) {
3172
+ _context17.next = 13;
3173
+ break;
3174
+ }
3175
+
3139
3176
  return _context17.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
3140
3177
 
3141
- case 9:
3178
+ case 13:
3179
+ return _context17.abrupt("return", this.vaultClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
3180
+
3181
+ case 14:
3142
3182
  case "end":
3143
3183
  return _context17.stop();
3144
3184
  }
@@ -3146,7 +3186,7 @@ var OroClient = /*#__PURE__*/function () {
3146
3186
  }, _callee17, this);
3147
3187
  }));
3148
3188
 
3149
- function createBytesData(_x52, _x53, _x54, _x55, _x56, _x57) {
3189
+ function createBytesData(_x55, _x56, _x57, _x58, _x59, _x60, _x61) {
3150
3190
  return _createBytesData.apply(this, arguments);
3151
3191
  }
3152
3192
 
@@ -3200,7 +3240,7 @@ var OroClient = /*#__PURE__*/function () {
3200
3240
  }, _callee18, this);
3201
3241
  }));
3202
3242
 
3203
- function getJsonData(_x58, _x59, _x60) {
3243
+ function getJsonData(_x62, _x63, _x64) {
3204
3244
  return _getJsonData.apply(this, arguments);
3205
3245
  }
3206
3246
 
@@ -3250,7 +3290,7 @@ var OroClient = /*#__PURE__*/function () {
3250
3290
  }, _callee19, this);
3251
3291
  }));
3252
3292
 
3253
- function getBytesData(_x61, _x62, _x63) {
3293
+ function getBytesData(_x65, _x66, _x67) {
3254
3294
  return _getBytesData.apply(this, arguments);
3255
3295
  }
3256
3296
 
@@ -3388,7 +3428,7 @@ var OroClient = /*#__PURE__*/function () {
3388
3428
  }, _callee20, this);
3389
3429
  }));
3390
3430
 
3391
- function getGrants(_x64) {
3431
+ function getGrants(_x68) {
3392
3432
  return _getGrants.apply(this, arguments);
3393
3433
  }
3394
3434
 
@@ -3488,7 +3528,7 @@ var OroClient = /*#__PURE__*/function () {
3488
3528
  }, _callee22, this);
3489
3529
  }));
3490
3530
 
3491
- function getCachedSecretCryptor(_x65, _x66) {
3531
+ function getCachedSecretCryptor(_x69, _x70) {
3492
3532
  return _getCachedSecretCryptor.apply(this, arguments);
3493
3533
  }
3494
3534
 
@@ -3527,7 +3567,7 @@ var OroClient = /*#__PURE__*/function () {
3527
3567
  }, _callee23, this);
3528
3568
  }));
3529
3569
 
3530
- function getPersonalInformationsFromConsultId(_x67, _x68, _x69) {
3570
+ function getPersonalInformationsFromConsultId(_x71, _x72, _x73) {
3531
3571
  return _getPersonalInformationsFromConsultId.apply(this, arguments);
3532
3572
  }
3533
3573
 
@@ -3565,7 +3605,7 @@ var OroClient = /*#__PURE__*/function () {
3565
3605
  }, _callee24, this);
3566
3606
  }));
3567
3607
 
3568
- function getMedicalDataFromConsultId(_x70, _x71) {
3608
+ function getMedicalDataFromConsultId(_x74, _x75) {
3569
3609
  return _getMedicalDataFromConsultId.apply(this, arguments);
3570
3610
  }
3571
3611
 
@@ -3658,7 +3698,7 @@ var OroClient = /*#__PURE__*/function () {
3658
3698
  }, _callee25);
3659
3699
  }));
3660
3700
 
3661
- return function (_x75) {
3701
+ return function (_x79) {
3662
3702
  return _ref3.apply(this, arguments);
3663
3703
  };
3664
3704
  }()));
@@ -3699,7 +3739,7 @@ var OroClient = /*#__PURE__*/function () {
3699
3739
  }, _callee26, this);
3700
3740
  }));
3701
3741
 
3702
- function getMetaCategoryFromConsultId(_x72, _x73, _x74) {
3742
+ function getMetaCategoryFromConsultId(_x76, _x77, _x78) {
3703
3743
  return _getMetaCategoryFromConsultId.apply(this, arguments);
3704
3744
  }
3705
3745
 
@@ -3786,7 +3826,7 @@ var OroClient = /*#__PURE__*/function () {
3786
3826
  }, _callee27, this);
3787
3827
  }));
3788
3828
 
3789
- function getPersonalInformations(_x76) {
3829
+ function getPersonalInformations(_x80) {
3790
3830
  return _getPersonalInformations.apply(this, arguments);
3791
3831
  }
3792
3832
 
@@ -3835,7 +3875,7 @@ var OroClient = /*#__PURE__*/function () {
3835
3875
  }, _callee28, this);
3836
3876
  }));
3837
3877
 
3838
- function getGrantFromConsultId(_x77) {
3878
+ function getGrantFromConsultId(_x81) {
3839
3879
  return _getGrantFromConsultId.apply(this, arguments);
3840
3880
  }
3841
3881
 
@@ -3885,7 +3925,7 @@ var OroClient = /*#__PURE__*/function () {
3885
3925
  }, _callee29, this);
3886
3926
  }));
3887
3927
 
3888
- function getIdentityFromConsultId(_x78) {
3928
+ function getIdentityFromConsultId(_x82) {
3889
3929
  return _getIdentityFromConsultId.apply(this, arguments);
3890
3930
  }
3891
3931
 
@@ -3964,7 +4004,7 @@ var OroClient = /*#__PURE__*/function () {
3964
4004
  }, _callee30);
3965
4005
  }));
3966
4006
 
3967
- return function (_x84) {
4007
+ return function (_x88) {
3968
4008
  return _ref4.apply(this, arguments);
3969
4009
  };
3970
4010
  }())).then(function (manifest) {
@@ -3980,7 +4020,7 @@ var OroClient = /*#__PURE__*/function () {
3980
4020
  }, _callee31, this);
3981
4021
  }));
3982
4022
 
3983
- function getLockboxManifest(_x79, _x80, _x81, _x82, _x83) {
4023
+ function getLockboxManifest(_x83, _x84, _x85, _x86, _x87) {
3984
4024
  return _getLockboxManifest.apply(this, arguments);
3985
4025
  }
3986
4026
 
@@ -4050,7 +4090,7 @@ var OroClient = /*#__PURE__*/function () {
4050
4090
  }, _callee32, this);
4051
4091
  }));
4052
4092
 
4053
- function createPersonalInformations(_x85, _x86, _x87) {
4093
+ function createPersonalInformations(_x89, _x90, _x91) {
4054
4094
  return _createPersonalInformations.apply(this, arguments);
4055
4095
  }
4056
4096
 
@@ -4120,7 +4160,7 @@ var OroClient = /*#__PURE__*/function () {
4120
4160
  }, _callee33, this);
4121
4161
  }));
4122
4162
 
4123
- function createUserPreference(_x88, _x89, _x90) {
4163
+ function createUserPreference(_x92, _x93, _x94) {
4124
4164
  return _createUserPreference.apply(this, arguments);
4125
4165
  }
4126
4166
 
@@ -4188,7 +4228,7 @@ var OroClient = /*#__PURE__*/function () {
4188
4228
  }, _callee34, this);
4189
4229
  }));
4190
4230
 
4191
- function getDataFromGrant(_x91, _x92) {
4231
+ function getDataFromGrant(_x95, _x96) {
4192
4232
  return _getDataFromGrant.apply(this, arguments);
4193
4233
  }
4194
4234
 
@@ -4237,7 +4277,7 @@ var OroClient = /*#__PURE__*/function () {
4237
4277
  }, _callee35, this);
4238
4278
  }));
4239
4279
 
4240
- function getUserPreferenceFromConsultId(_x93) {
4280
+ function getUserPreferenceFromConsultId(_x97) {
4241
4281
  return _getUserPreferenceFromConsultId.apply(this, arguments);
4242
4282
  }
4243
4283
 
@@ -4288,7 +4328,7 @@ var OroClient = /*#__PURE__*/function () {
4288
4328
  }, _callee36, this);
4289
4329
  }));
4290
4330
 
4291
- function getUserPreference(_x94) {
4331
+ function getUserPreference(_x98) {
4292
4332
  return _getUserPreference.apply(this, arguments);
4293
4333
  }
4294
4334
 
@@ -4337,7 +4377,7 @@ var OroClient = /*#__PURE__*/function () {
4337
4377
  }, _callee37, this);
4338
4378
  }));
4339
4379
 
4340
- function getRecoveryDataFromConsultId(_x95) {
4380
+ function getRecoveryDataFromConsultId(_x99) {
4341
4381
  return _getRecoveryDataFromConsultId.apply(this, arguments);
4342
4382
  }
4343
4383
 
@@ -4388,7 +4428,7 @@ var OroClient = /*#__PURE__*/function () {
4388
4428
  }, _callee38, this);
4389
4429
  }));
4390
4430
 
4391
- function getRecoveryData(_x96) {
4431
+ function getRecoveryData(_x100) {
4392
4432
  return _getRecoveryData.apply(this, arguments);
4393
4433
  }
4394
4434
 
@@ -4446,7 +4486,7 @@ var OroClient = /*#__PURE__*/function () {
4446
4486
  }, _callee39);
4447
4487
  }));
4448
4488
 
4449
- return function (_x98) {
4489
+ return function (_x102) {
4450
4490
  return _ref5.apply(this, arguments);
4451
4491
  };
4452
4492
  }())).then(function (promise) {
@@ -4466,7 +4506,7 @@ var OroClient = /*#__PURE__*/function () {
4466
4506
  }, _callee40, this);
4467
4507
  }));
4468
4508
 
4469
- function getAssignedConsultations(_x97) {
4509
+ function getAssignedConsultations(_x101) {
4470
4510
  return _getAssignedConsultations.apply(this, arguments);
4471
4511
  }
4472
4512
 
@@ -4544,7 +4584,7 @@ var OroClient = /*#__PURE__*/function () {
4544
4584
  }, _callee41);
4545
4585
  }));
4546
4586
 
4547
- return function (_x101) {
4587
+ return function (_x105) {
4548
4588
  return _ref6.apply(this, arguments);
4549
4589
  };
4550
4590
  }()));
@@ -4560,7 +4600,7 @@ var OroClient = /*#__PURE__*/function () {
4560
4600
  }, _callee42, this);
4561
4601
  }));
4562
4602
 
4563
- function getPastConsultationsFromConsultId(_x99, _x100) {
4603
+ function getPastConsultationsFromConsultId(_x103, _x104) {
4564
4604
  return _getPastConsultationsFromConsultId.apply(this, arguments);
4565
4605
  }
4566
4606
 
@@ -4618,7 +4658,7 @@ var OroClient = /*#__PURE__*/function () {
4618
4658
  }, _callee43, this);
4619
4659
  }));
4620
4660
 
4621
- function getPatientConsultationData(_x102, _x103) {
4661
+ function getPatientConsultationData(_x106, _x107) {
4622
4662
  return _getPatientConsultationData.apply(this, arguments);
4623
4663
  }
4624
4664
 
@@ -4652,7 +4692,7 @@ var OroClient = /*#__PURE__*/function () {
4652
4692
  }, _callee44, this);
4653
4693
  }));
4654
4694
 
4655
- function getPatientPrescriptionsList(_x104) {
4695
+ function getPatientPrescriptionsList(_x108) {
4656
4696
  return _getPatientPrescriptionsList.apply(this, arguments);
4657
4697
  }
4658
4698
 
@@ -4686,7 +4726,7 @@ var OroClient = /*#__PURE__*/function () {
4686
4726
  }, _callee45, this);
4687
4727
  }));
4688
4728
 
4689
- function getPatientResultsList(_x105) {
4729
+ function getPatientResultsList(_x109) {
4690
4730
  return _getPatientResultsList.apply(this, arguments);
4691
4731
  }
4692
4732
 
@@ -4720,7 +4760,7 @@ var OroClient = /*#__PURE__*/function () {
4720
4760
  }, _callee46, this);
4721
4761
  }));
4722
4762
 
4723
- function getPatientTreatmentPlans(_x106) {
4763
+ function getPatientTreatmentPlans(_x110) {
4724
4764
  return _getPatientTreatmentPlans.apply(this, arguments);
4725
4765
  }
4726
4766
 
@@ -4756,7 +4796,7 @@ var OroClient = /*#__PURE__*/function () {
4756
4796
  }, _callee47, this);
4757
4797
  }));
4758
4798
 
4759
- function getPatientTreatmentPlanByUuid(_x107, _x108) {
4799
+ function getPatientTreatmentPlanByUuid(_x111, _x112) {
4760
4800
  return _getPatientTreatmentPlanByUuid.apply(this, arguments);
4761
4801
  }
4762
4802
 
@@ -4813,7 +4853,7 @@ var OroClient = /*#__PURE__*/function () {
4813
4853
  }, _callee48);
4814
4854
  }));
4815
4855
 
4816
- return function (_x112) {
4856
+ return function (_x116) {
4817
4857
  return _ref7.apply(this, arguments);
4818
4858
  };
4819
4859
  }()));
@@ -4831,7 +4871,7 @@ var OroClient = /*#__PURE__*/function () {
4831
4871
  }, _callee49, this);
4832
4872
  }));
4833
4873
 
4834
- function getPatientDocumentsList(_x109, _x110, _x111) {
4874
+ function getPatientDocumentsList(_x113, _x114, _x115) {
4835
4875
  return _getPatientDocumentsList.apply(this, arguments);
4836
4876
  }
4837
4877
 
@@ -4893,7 +4933,7 @@ var OroClient = /*#__PURE__*/function () {
4893
4933
  }, _callee50, this);
4894
4934
  }));
4895
4935
 
4896
- function recoverPrivateKeyFromSecurityQuestions(_x113, _x114, _x115, _x116) {
4936
+ function recoverPrivateKeyFromSecurityQuestions(_x117, _x118, _x119, _x120) {
4897
4937
  return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
4898
4938
  }
4899
4939
 
@@ -4941,7 +4981,7 @@ var OroClient = /*#__PURE__*/function () {
4941
4981
  }, _callee51, this);
4942
4982
  }));
4943
4983
 
4944
- function recoverPrivateKeyFromPassword(_x117, _x118) {
4984
+ function recoverPrivateKeyFromPassword(_x121, _x122) {
4945
4985
  return _recoverPrivateKeyFromPassword.apply(this, arguments);
4946
4986
  }
4947
4987
 
@@ -4981,7 +5021,7 @@ var OroClient = /*#__PURE__*/function () {
4981
5021
  }, _callee52, this);
4982
5022
  }));
4983
5023
 
4984
- function recoverPrivateKeyFromMasterKey(_x119, _x120) {
5024
+ function recoverPrivateKeyFromMasterKey(_x123, _x124) {
4985
5025
  return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
4986
5026
  }
4987
5027
 
@@ -5032,7 +5072,7 @@ var OroClient = /*#__PURE__*/function () {
5032
5072
  }, _callee53, this);
5033
5073
  }));
5034
5074
 
5035
- function updateSecurityQuestions(_x121, _x122, _x123, _x124) {
5075
+ function updateSecurityQuestions(_x125, _x126, _x127, _x128) {
5036
5076
  return _updateSecurityQuestions.apply(this, arguments);
5037
5077
  }
5038
5078
 
@@ -5097,7 +5137,7 @@ var OroClient = /*#__PURE__*/function () {
5097
5137
  }, _callee54, this);
5098
5138
  }));
5099
5139
 
5100
- function updatePassword(_x125, _x126, _x127) {
5140
+ function updatePassword(_x129, _x130, _x131) {
5101
5141
  return _updatePassword.apply(this, arguments);
5102
5142
  }
5103
5143
 
@@ -5159,7 +5199,7 @@ var OroClient = /*#__PURE__*/function () {
5159
5199
  }, _callee55, this);
5160
5200
  }));
5161
5201
 
5162
- function updateMasterKey(_x128, _x129, _x130) {
5202
+ function updateMasterKey(_x132, _x133, _x134) {
5163
5203
  return _updateMasterKey.apply(this, arguments);
5164
5204
  }
5165
5205