oro-sdk 3.22.0 → 3.25.0-dev1
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 +2 -1
- package/dist/helpers/patient-registration.d.ts +5 -1
- package/dist/oro-sdk.cjs.development.js +775 -1158
- package/dist/oro-sdk.cjs.development.js.map +1 -1
- package/dist/oro-sdk.cjs.production.min.js +1 -1
- package/dist/oro-sdk.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk.esm.js +775 -1158
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +5 -3
- package/src/helpers/patient-registration.ts +63 -4
- package/LICENSE +0 -21
package/dist/oro-sdk.esm.js
CHANGED
@@ -5,1029 +5,612 @@ import * as oroToolbox from 'oro-toolbox';
|
|
5
5
|
export { oroToolbox as OroToolboxNamespace };
|
6
6
|
import { getMany } from 'idb-keyval';
|
7
7
|
|
8
|
-
function
|
9
|
-
|
10
|
-
return new BabelRegExp(re, void 0, groups);
|
11
|
-
};
|
12
|
-
|
13
|
-
var _super = RegExp.prototype,
|
14
|
-
_groups = new WeakMap();
|
15
|
-
|
16
|
-
function BabelRegExp(re, flags, groups) {
|
17
|
-
var _this = new RegExp(re, flags);
|
18
|
-
|
19
|
-
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
|
20
|
-
}
|
21
|
-
|
22
|
-
function buildGroups(result, re) {
|
23
|
-
var g = _groups.get(re);
|
24
|
-
|
25
|
-
return Object.keys(g).reduce(function (groups, name) {
|
26
|
-
return groups[name] = result[g[name]], groups;
|
27
|
-
}, Object.create(null));
|
28
|
-
}
|
29
|
-
|
30
|
-
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
31
|
-
var result = _super.exec.call(this, str);
|
32
|
-
|
33
|
-
return result && (result.groups = buildGroups(result, this)), result;
|
34
|
-
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
35
|
-
if ("string" == typeof substitution) {
|
36
|
-
var groups = _groups.get(this);
|
37
|
-
|
38
|
-
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
39
|
-
return "$" + groups[name];
|
40
|
-
}));
|
41
|
-
}
|
42
|
-
|
43
|
-
if ("function" == typeof substitution) {
|
44
|
-
var _this = this;
|
45
|
-
|
46
|
-
return _super[Symbol.replace].call(this, str, function () {
|
47
|
-
var args = arguments;
|
48
|
-
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
|
49
|
-
});
|
50
|
-
}
|
51
|
-
|
52
|
-
return _super[Symbol.replace].call(this, str, substitution);
|
53
|
-
}, _wrapRegExp.apply(this, arguments);
|
54
|
-
}
|
55
|
-
|
56
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
57
|
-
try {
|
58
|
-
var info = gen[key](arg);
|
59
|
-
var value = info.value;
|
60
|
-
} catch (error) {
|
61
|
-
reject(error);
|
62
|
-
return;
|
63
|
-
}
|
64
|
-
|
65
|
-
if (info.done) {
|
66
|
-
resolve(value);
|
67
|
-
} else {
|
68
|
-
Promise.resolve(value).then(_next, _throw);
|
69
|
-
}
|
70
|
-
}
|
71
|
-
|
72
|
-
function _asyncToGenerator(fn) {
|
73
|
-
return function () {
|
74
|
-
var self = this,
|
75
|
-
args = arguments;
|
76
|
-
return new Promise(function (resolve, reject) {
|
77
|
-
var gen = fn.apply(self, args);
|
78
|
-
|
79
|
-
function _next(value) {
|
80
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
81
|
-
}
|
82
|
-
|
83
|
-
function _throw(err) {
|
84
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
85
|
-
}
|
86
|
-
|
87
|
-
_next(undefined);
|
88
|
-
});
|
89
|
-
};
|
90
|
-
}
|
91
|
-
|
92
|
-
function _extends() {
|
93
|
-
_extends = Object.assign || function (target) {
|
94
|
-
for (var i = 1; i < arguments.length; i++) {
|
95
|
-
var source = arguments[i];
|
96
|
-
|
97
|
-
for (var key in source) {
|
98
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
99
|
-
target[key] = source[key];
|
100
|
-
}
|
101
|
-
}
|
102
|
-
}
|
8
|
+
function _regeneratorRuntime() {
|
9
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
103
10
|
|
104
|
-
|
11
|
+
_regeneratorRuntime = function () {
|
12
|
+
return exports;
|
105
13
|
};
|
106
14
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
function
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
116
|
-
constructor: {
|
117
|
-
value: subClass,
|
118
|
-
writable: true,
|
119
|
-
configurable: true
|
120
|
-
}
|
121
|
-
});
|
122
|
-
Object.defineProperty(subClass, "prototype", {
|
123
|
-
writable: false
|
124
|
-
});
|
125
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
126
|
-
}
|
127
|
-
|
128
|
-
function _inheritsLoose(subClass, superClass) {
|
129
|
-
subClass.prototype = Object.create(superClass.prototype);
|
130
|
-
subClass.prototype.constructor = subClass;
|
131
|
-
|
132
|
-
_setPrototypeOf(subClass, superClass);
|
133
|
-
}
|
134
|
-
|
135
|
-
function _getPrototypeOf(o) {
|
136
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
137
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
138
|
-
};
|
139
|
-
return _getPrototypeOf(o);
|
140
|
-
}
|
141
|
-
|
142
|
-
function _setPrototypeOf(o, p) {
|
143
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
144
|
-
o.__proto__ = p;
|
145
|
-
return o;
|
146
|
-
};
|
147
|
-
|
148
|
-
return _setPrototypeOf(o, p);
|
149
|
-
}
|
150
|
-
|
151
|
-
function _isNativeReflectConstruct() {
|
152
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
153
|
-
if (Reflect.construct.sham) return false;
|
154
|
-
if (typeof Proxy === "function") return true;
|
155
|
-
|
156
|
-
try {
|
157
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
158
|
-
return true;
|
159
|
-
} catch (e) {
|
160
|
-
return false;
|
161
|
-
}
|
162
|
-
}
|
163
|
-
|
164
|
-
function _construct(Parent, args, Class) {
|
165
|
-
if (_isNativeReflectConstruct()) {
|
166
|
-
_construct = Reflect.construct;
|
167
|
-
} else {
|
168
|
-
_construct = function _construct(Parent, args, Class) {
|
169
|
-
var a = [null];
|
170
|
-
a.push.apply(a, args);
|
171
|
-
var Constructor = Function.bind.apply(Parent, a);
|
172
|
-
var instance = new Constructor();
|
173
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
174
|
-
return instance;
|
175
|
-
};
|
176
|
-
}
|
177
|
-
|
178
|
-
return _construct.apply(null, arguments);
|
179
|
-
}
|
180
|
-
|
181
|
-
function _isNativeFunction(fn) {
|
182
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
183
|
-
}
|
184
|
-
|
185
|
-
function _wrapNativeSuper(Class) {
|
186
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
187
|
-
|
188
|
-
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
189
|
-
if (Class === null || !_isNativeFunction(Class)) return Class;
|
190
|
-
|
191
|
-
if (typeof Class !== "function") {
|
192
|
-
throw new TypeError("Super expression must either be null or a function");
|
193
|
-
}
|
194
|
-
|
195
|
-
if (typeof _cache !== "undefined") {
|
196
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
197
|
-
|
198
|
-
_cache.set(Class, Wrapper);
|
199
|
-
}
|
200
|
-
|
201
|
-
function Wrapper() {
|
202
|
-
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
203
|
-
}
|
204
|
-
|
205
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
206
|
-
constructor: {
|
207
|
-
value: Wrapper,
|
208
|
-
enumerable: false,
|
209
|
-
writable: true,
|
210
|
-
configurable: true
|
211
|
-
}
|
212
|
-
});
|
213
|
-
return _setPrototypeOf(Wrapper, Class);
|
214
|
-
};
|
215
|
-
|
216
|
-
return _wrapNativeSuper(Class);
|
217
|
-
}
|
218
|
-
|
219
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
220
|
-
if (source == null) return {};
|
221
|
-
var target = {};
|
222
|
-
var sourceKeys = Object.keys(source);
|
223
|
-
var key, i;
|
224
|
-
|
225
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
226
|
-
key = sourceKeys[i];
|
227
|
-
if (excluded.indexOf(key) >= 0) continue;
|
228
|
-
target[key] = source[key];
|
229
|
-
}
|
230
|
-
|
231
|
-
return target;
|
232
|
-
}
|
233
|
-
|
234
|
-
function _unsupportedIterableToArray(o, minLen) {
|
235
|
-
if (!o) return;
|
236
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
237
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
238
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
239
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
240
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
241
|
-
}
|
242
|
-
|
243
|
-
function _arrayLikeToArray(arr, len) {
|
244
|
-
if (len == null || len > arr.length) len = arr.length;
|
245
|
-
|
246
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
247
|
-
|
248
|
-
return arr2;
|
249
|
-
}
|
250
|
-
|
251
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
252
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
253
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
254
|
-
|
255
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
256
|
-
if (it) o = it;
|
257
|
-
var i = 0;
|
258
|
-
return function () {
|
259
|
-
if (i >= o.length) return {
|
260
|
-
done: true
|
261
|
-
};
|
262
|
-
return {
|
263
|
-
done: false,
|
264
|
-
value: o[i++]
|
265
|
-
};
|
266
|
-
};
|
267
|
-
}
|
268
|
-
|
269
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
270
|
-
}
|
271
|
-
|
272
|
-
function createCommonjsModule(fn, module) {
|
273
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
274
|
-
}
|
275
|
-
|
276
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
277
|
-
/**
|
278
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
279
|
-
*
|
280
|
-
* This source code is licensed under the MIT license found in the
|
281
|
-
* LICENSE file in the root directory of this source tree.
|
282
|
-
*/
|
283
|
-
|
284
|
-
var runtime = (function (exports) {
|
285
|
-
|
286
|
-
var Op = Object.prototype;
|
287
|
-
var hasOwn = Op.hasOwnProperty;
|
288
|
-
var undefined$1; // More compressible than void 0.
|
289
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
290
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
291
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
292
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
15
|
+
var exports = {},
|
16
|
+
Op = Object.prototype,
|
17
|
+
hasOwn = Op.hasOwnProperty,
|
18
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
19
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
20
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
21
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
293
22
|
|
294
23
|
function define(obj, key, value) {
|
295
|
-
Object.defineProperty(obj, key, {
|
24
|
+
return Object.defineProperty(obj, key, {
|
296
25
|
value: value,
|
297
|
-
enumerable:
|
298
|
-
configurable:
|
299
|
-
writable:
|
300
|
-
});
|
301
|
-
return obj[key];
|
26
|
+
enumerable: !0,
|
27
|
+
configurable: !0,
|
28
|
+
writable: !0
|
29
|
+
}), obj[key];
|
302
30
|
}
|
31
|
+
|
303
32
|
try {
|
304
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
305
33
|
define({}, "");
|
306
34
|
} catch (err) {
|
307
|
-
define = function(obj, key, value) {
|
35
|
+
define = function (obj, key, value) {
|
308
36
|
return obj[key] = value;
|
309
37
|
};
|
310
38
|
}
|
311
39
|
|
312
40
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
41
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
42
|
+
generator = Object.create(protoGenerator.prototype),
|
43
|
+
context = new Context(tryLocsList || []);
|
44
|
+
return generator._invoke = function (innerFn, self, context) {
|
45
|
+
var state = "suspendedStart";
|
46
|
+
return function (method, arg) {
|
47
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
48
|
+
|
49
|
+
if ("completed" === state) {
|
50
|
+
if ("throw" === method) throw arg;
|
51
|
+
return doneResult();
|
52
|
+
}
|
53
|
+
|
54
|
+
for (context.method = method, context.arg = arg;;) {
|
55
|
+
var delegate = context.delegate;
|
56
|
+
|
57
|
+
if (delegate) {
|
58
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
317
59
|
|
318
|
-
|
319
|
-
|
320
|
-
|
60
|
+
if (delegateResult) {
|
61
|
+
if (delegateResult === ContinueSentinel) continue;
|
62
|
+
return delegateResult;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
67
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
68
|
+
context.dispatchException(context.arg);
|
69
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
70
|
+
state = "executing";
|
71
|
+
var record = tryCatch(innerFn, self, context);
|
72
|
+
|
73
|
+
if ("normal" === record.type) {
|
74
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
75
|
+
return {
|
76
|
+
value: record.arg,
|
77
|
+
done: context.done
|
78
|
+
};
|
79
|
+
}
|
321
80
|
|
322
|
-
|
81
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
82
|
+
}
|
83
|
+
};
|
84
|
+
}(innerFn, self, context), generator;
|
323
85
|
}
|
324
|
-
exports.wrap = wrap;
|
325
86
|
|
326
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
327
|
-
// record like context.tryEntries[i].completion. This interface could
|
328
|
-
// have been (and was previously) designed to take a closure to be
|
329
|
-
// invoked without arguments, but in all the cases we care about we
|
330
|
-
// already have an existing method we want to call, so there's no need
|
331
|
-
// to create a new function object. We can even get away with assuming
|
332
|
-
// the method takes exactly one argument, since that happens to be true
|
333
|
-
// in every case, so we don't have to touch the arguments object. The
|
334
|
-
// only additional allocation required is the completion record, which
|
335
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
336
87
|
function tryCatch(fn, obj, arg) {
|
337
88
|
try {
|
338
|
-
return {
|
89
|
+
return {
|
90
|
+
type: "normal",
|
91
|
+
arg: fn.call(obj, arg)
|
92
|
+
};
|
339
93
|
} catch (err) {
|
340
|
-
return {
|
94
|
+
return {
|
95
|
+
type: "throw",
|
96
|
+
arg: err
|
97
|
+
};
|
341
98
|
}
|
342
99
|
}
|
343
100
|
|
344
|
-
|
345
|
-
var GenStateSuspendedYield = "suspendedYield";
|
346
|
-
var GenStateExecuting = "executing";
|
347
|
-
var GenStateCompleted = "completed";
|
348
|
-
|
349
|
-
// Returning this object from the innerFn has the same effect as
|
350
|
-
// breaking out of the dispatch switch statement.
|
101
|
+
exports.wrap = wrap;
|
351
102
|
var ContinueSentinel = {};
|
352
103
|
|
353
|
-
// Dummy constructor functions that we use as the .constructor and
|
354
|
-
// .constructor.prototype properties for functions that return Generator
|
355
|
-
// objects. For full spec compliance, you may wish to configure your
|
356
|
-
// minifier not to mangle the names of these two functions.
|
357
104
|
function Generator() {}
|
105
|
+
|
358
106
|
function GeneratorFunction() {}
|
107
|
+
|
359
108
|
function GeneratorFunctionPrototype() {}
|
360
109
|
|
361
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
362
|
-
// don't natively support it.
|
363
110
|
var IteratorPrototype = {};
|
364
111
|
define(IteratorPrototype, iteratorSymbol, function () {
|
365
112
|
return this;
|
366
113
|
});
|
114
|
+
var getProto = Object.getPrototypeOf,
|
115
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
116
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
117
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
367
118
|
|
368
|
-
var getProto = Object.getPrototypeOf;
|
369
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
370
|
-
if (NativeIteratorPrototype &&
|
371
|
-
NativeIteratorPrototype !== Op &&
|
372
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
373
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
374
|
-
// of the polyfill.
|
375
|
-
IteratorPrototype = NativeIteratorPrototype;
|
376
|
-
}
|
377
|
-
|
378
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
379
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
380
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
381
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
382
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
383
|
-
GeneratorFunction.displayName = define(
|
384
|
-
GeneratorFunctionPrototype,
|
385
|
-
toStringTagSymbol,
|
386
|
-
"GeneratorFunction"
|
387
|
-
);
|
388
|
-
|
389
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
390
|
-
// Iterator interface in terms of a single ._invoke method.
|
391
119
|
function defineIteratorMethods(prototype) {
|
392
|
-
["next", "throw", "return"].forEach(function(method) {
|
393
|
-
define(prototype, method, function(arg) {
|
120
|
+
["next", "throw", "return"].forEach(function (method) {
|
121
|
+
define(prototype, method, function (arg) {
|
394
122
|
return this._invoke(method, arg);
|
395
123
|
});
|
396
124
|
});
|
397
125
|
}
|
398
126
|
|
399
|
-
exports.isGeneratorFunction = function(genFun) {
|
400
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
401
|
-
return ctor
|
402
|
-
? ctor === GeneratorFunction ||
|
403
|
-
// For the native GeneratorFunction constructor, the best we can
|
404
|
-
// do is to check its .name property.
|
405
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
406
|
-
: false;
|
407
|
-
};
|
408
|
-
|
409
|
-
exports.mark = function(genFun) {
|
410
|
-
if (Object.setPrototypeOf) {
|
411
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
412
|
-
} else {
|
413
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
414
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
415
|
-
}
|
416
|
-
genFun.prototype = Object.create(Gp);
|
417
|
-
return genFun;
|
418
|
-
};
|
419
|
-
|
420
|
-
// Within the body of any async function, `await x` is transformed to
|
421
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
422
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
423
|
-
// meant to be awaited.
|
424
|
-
exports.awrap = function(arg) {
|
425
|
-
return { __await: arg };
|
426
|
-
};
|
427
|
-
|
428
127
|
function AsyncIterator(generator, PromiseImpl) {
|
429
128
|
function invoke(method, arg, resolve, reject) {
|
430
129
|
var record = tryCatch(generator[method], generator, arg);
|
431
|
-
if (record.type === "throw") {
|
432
|
-
reject(record.arg);
|
433
|
-
} else {
|
434
|
-
var result = record.arg;
|
435
|
-
var value = result.value;
|
436
|
-
if (value &&
|
437
|
-
typeof value === "object" &&
|
438
|
-
hasOwn.call(value, "__await")) {
|
439
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
440
|
-
invoke("next", value, resolve, reject);
|
441
|
-
}, function(err) {
|
442
|
-
invoke("throw", err, resolve, reject);
|
443
|
-
});
|
444
|
-
}
|
445
130
|
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
131
|
+
if ("throw" !== record.type) {
|
132
|
+
var result = record.arg,
|
133
|
+
value = result.value;
|
134
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
135
|
+
invoke("next", value, resolve, reject);
|
136
|
+
}, function (err) {
|
137
|
+
invoke("throw", err, resolve, reject);
|
138
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
139
|
+
result.value = unwrapped, resolve(result);
|
140
|
+
}, function (error) {
|
455
141
|
return invoke("throw", error, resolve, reject);
|
456
142
|
});
|
457
143
|
}
|
144
|
+
|
145
|
+
reject(record.arg);
|
458
146
|
}
|
459
147
|
|
460
148
|
var previousPromise;
|
461
149
|
|
462
|
-
function
|
150
|
+
this._invoke = function (method, arg) {
|
463
151
|
function callInvokeWithMethodAndArg() {
|
464
|
-
return new PromiseImpl(function(resolve, reject) {
|
152
|
+
return new PromiseImpl(function (resolve, reject) {
|
465
153
|
invoke(method, arg, resolve, reject);
|
466
154
|
});
|
467
155
|
}
|
468
156
|
|
469
|
-
return previousPromise =
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
callInvokeWithMethodAndArg,
|
484
|
-
// Avoid propagating failures to Promises returned by later
|
485
|
-
// invocations of the iterator.
|
486
|
-
callInvokeWithMethodAndArg
|
487
|
-
) : callInvokeWithMethodAndArg();
|
157
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
158
|
+
};
|
159
|
+
}
|
160
|
+
|
161
|
+
function maybeInvokeDelegate(delegate, context) {
|
162
|
+
var method = delegate.iterator[context.method];
|
163
|
+
|
164
|
+
if (undefined === method) {
|
165
|
+
if (context.delegate = null, "throw" === context.method) {
|
166
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
167
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
168
|
+
}
|
169
|
+
|
170
|
+
return ContinueSentinel;
|
488
171
|
}
|
489
172
|
|
490
|
-
|
491
|
-
|
492
|
-
|
173
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
174
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
175
|
+
var info = record.arg;
|
176
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
493
177
|
}
|
494
178
|
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
// Note that simple async functions are implemented on top of
|
502
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
503
|
-
// the final result produced by the iterator.
|
504
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
505
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
506
|
-
|
507
|
-
var iter = new AsyncIterator(
|
508
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
509
|
-
PromiseImpl
|
510
|
-
);
|
511
|
-
|
512
|
-
return exports.isGeneratorFunction(outerFn)
|
513
|
-
? iter // If outerFn is a generator, return the full iterator.
|
514
|
-
: iter.next().then(function(result) {
|
515
|
-
return result.done ? result.value : iter.next();
|
516
|
-
});
|
517
|
-
};
|
179
|
+
function pushTryEntry(locs) {
|
180
|
+
var entry = {
|
181
|
+
tryLoc: locs[0]
|
182
|
+
};
|
183
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
184
|
+
}
|
518
185
|
|
519
|
-
function
|
520
|
-
var
|
186
|
+
function resetTryEntry(entry) {
|
187
|
+
var record = entry.completion || {};
|
188
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
189
|
+
}
|
521
190
|
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
191
|
+
function Context(tryLocsList) {
|
192
|
+
this.tryEntries = [{
|
193
|
+
tryLoc: "root"
|
194
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
195
|
+
}
|
526
196
|
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
197
|
+
function values(iterable) {
|
198
|
+
if (iterable) {
|
199
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
200
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
201
|
+
if ("function" == typeof iterable.next) return iterable;
|
202
|
+
|
203
|
+
if (!isNaN(iterable.length)) {
|
204
|
+
var i = -1,
|
205
|
+
next = function next() {
|
206
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
531
207
|
|
532
|
-
|
533
|
-
|
534
|
-
|
208
|
+
return next.value = undefined, next.done = !0, next;
|
209
|
+
};
|
210
|
+
|
211
|
+
return next.next = next;
|
535
212
|
}
|
213
|
+
}
|
536
214
|
|
537
|
-
|
538
|
-
|
215
|
+
return {
|
216
|
+
next: doneResult
|
217
|
+
};
|
218
|
+
}
|
539
219
|
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
return delegateResult;
|
547
|
-
}
|
548
|
-
}
|
220
|
+
function doneResult() {
|
221
|
+
return {
|
222
|
+
value: undefined,
|
223
|
+
done: !0
|
224
|
+
};
|
225
|
+
}
|
549
226
|
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
227
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
228
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
229
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
230
|
+
}, exports.mark = function (genFun) {
|
231
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
232
|
+
}, exports.awrap = function (arg) {
|
233
|
+
return {
|
234
|
+
__await: arg
|
235
|
+
};
|
236
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
237
|
+
return this;
|
238
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
239
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
240
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
241
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
242
|
+
return result.done ? result.value : iter.next();
|
243
|
+
});
|
244
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
245
|
+
return this;
|
246
|
+
}), define(Gp, "toString", function () {
|
247
|
+
return "[object Generator]";
|
248
|
+
}), exports.keys = function (object) {
|
249
|
+
var keys = [];
|
554
250
|
|
555
|
-
|
556
|
-
if (state === GenStateSuspendedStart) {
|
557
|
-
state = GenStateCompleted;
|
558
|
-
throw context.arg;
|
559
|
-
}
|
251
|
+
for (var key in object) keys.push(key);
|
560
252
|
|
561
|
-
|
253
|
+
return keys.reverse(), function next() {
|
254
|
+
for (; keys.length;) {
|
255
|
+
var key = keys.pop();
|
256
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
257
|
+
}
|
562
258
|
|
563
|
-
|
564
|
-
|
565
|
-
|
259
|
+
return next.done = !0, next;
|
260
|
+
};
|
261
|
+
}, exports.values = values, Context.prototype = {
|
262
|
+
constructor: Context,
|
263
|
+
reset: function (skipTempReset) {
|
264
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
265
|
+
},
|
266
|
+
stop: function () {
|
267
|
+
this.done = !0;
|
268
|
+
var rootRecord = this.tryEntries[0].completion;
|
269
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
270
|
+
return this.rval;
|
271
|
+
},
|
272
|
+
dispatchException: function (exception) {
|
273
|
+
if (this.done) throw exception;
|
274
|
+
var context = this;
|
566
275
|
|
567
|
-
|
276
|
+
function handle(loc, caught) {
|
277
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
278
|
+
}
|
568
279
|
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
state = context.done
|
574
|
-
? GenStateCompleted
|
575
|
-
: GenStateSuspendedYield;
|
280
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
281
|
+
var entry = this.tryEntries[i],
|
282
|
+
record = entry.completion;
|
283
|
+
if ("root" === entry.tryLoc) return handle("end");
|
576
284
|
|
577
|
-
|
578
|
-
|
579
|
-
|
285
|
+
if (entry.tryLoc <= this.prev) {
|
286
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
287
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
580
288
|
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
}
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
context.method = "throw";
|
591
|
-
context.arg = record.arg;
|
289
|
+
if (hasCatch && hasFinally) {
|
290
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
291
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
292
|
+
} else if (hasCatch) {
|
293
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
294
|
+
} else {
|
295
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
296
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
297
|
+
}
|
592
298
|
}
|
593
299
|
}
|
594
|
-
}
|
595
|
-
|
300
|
+
},
|
301
|
+
abrupt: function (type, arg) {
|
302
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
303
|
+
var entry = this.tryEntries[i];
|
596
304
|
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
601
|
-
function maybeInvokeDelegate(delegate, context) {
|
602
|
-
var method = delegate.iterator[context.method];
|
603
|
-
if (method === undefined$1) {
|
604
|
-
// A .throw or .return when the delegate iterator has no .throw
|
605
|
-
// method always terminates the yield* loop.
|
606
|
-
context.delegate = null;
|
607
|
-
|
608
|
-
if (context.method === "throw") {
|
609
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
610
|
-
if (delegate.iterator["return"]) {
|
611
|
-
// If the delegate iterator has a return method, give it a
|
612
|
-
// chance to clean up.
|
613
|
-
context.method = "return";
|
614
|
-
context.arg = undefined$1;
|
615
|
-
maybeInvokeDelegate(delegate, context);
|
616
|
-
|
617
|
-
if (context.method === "throw") {
|
618
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
619
|
-
// "return" to "throw", let that override the TypeError below.
|
620
|
-
return ContinueSentinel;
|
621
|
-
}
|
305
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
306
|
+
var finallyEntry = entry;
|
307
|
+
break;
|
622
308
|
}
|
623
|
-
|
624
|
-
context.method = "throw";
|
625
|
-
context.arg = new TypeError(
|
626
|
-
"The iterator does not provide a 'throw' method");
|
627
309
|
}
|
628
310
|
|
629
|
-
|
630
|
-
|
311
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
312
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
313
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
314
|
+
},
|
315
|
+
complete: function (record, afterLoc) {
|
316
|
+
if ("throw" === record.type) throw record.arg;
|
317
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
318
|
+
},
|
319
|
+
finish: function (finallyLoc) {
|
320
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
321
|
+
var entry = this.tryEntries[i];
|
322
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
323
|
+
}
|
324
|
+
},
|
325
|
+
catch: function (tryLoc) {
|
326
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
327
|
+
var entry = this.tryEntries[i];
|
631
328
|
|
632
|
-
|
329
|
+
if (entry.tryLoc === tryLoc) {
|
330
|
+
var record = entry.completion;
|
633
331
|
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
return ContinueSentinel;
|
639
|
-
}
|
332
|
+
if ("throw" === record.type) {
|
333
|
+
var thrown = record.arg;
|
334
|
+
resetTryEntry(entry);
|
335
|
+
}
|
640
336
|
|
641
|
-
|
337
|
+
return thrown;
|
338
|
+
}
|
339
|
+
}
|
642
340
|
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
341
|
+
throw new Error("illegal catch attempt");
|
342
|
+
},
|
343
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
344
|
+
return this.delegate = {
|
345
|
+
iterator: values(iterable),
|
346
|
+
resultName: resultName,
|
347
|
+
nextLoc: nextLoc
|
348
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
648
349
|
}
|
350
|
+
}, exports;
|
351
|
+
}
|
649
352
|
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
// Resume execution at the desired location (see delegateYield).
|
656
|
-
context.next = delegate.nextLoc;
|
657
|
-
|
658
|
-
// If context.method was "throw" but the delegate handled the
|
659
|
-
// exception, let the outer generator proceed normally. If
|
660
|
-
// context.method was "next", forget context.arg since it has been
|
661
|
-
// "consumed" by the delegate iterator. If context.method was
|
662
|
-
// "return", allow the original .return call to continue in the
|
663
|
-
// outer generator.
|
664
|
-
if (context.method !== "return") {
|
665
|
-
context.method = "next";
|
666
|
-
context.arg = undefined$1;
|
667
|
-
}
|
353
|
+
function _wrapRegExp() {
|
354
|
+
_wrapRegExp = function (re, groups) {
|
355
|
+
return new BabelRegExp(re, void 0, groups);
|
356
|
+
};
|
668
357
|
|
669
|
-
|
670
|
-
|
671
|
-
return info;
|
672
|
-
}
|
358
|
+
var _super = RegExp.prototype,
|
359
|
+
_groups = new WeakMap();
|
673
360
|
|
674
|
-
|
675
|
-
|
676
|
-
context.delegate = null;
|
677
|
-
return ContinueSentinel;
|
678
|
-
}
|
361
|
+
function BabelRegExp(re, flags, groups) {
|
362
|
+
var _this = new RegExp(re, flags);
|
679
363
|
|
680
|
-
|
681
|
-
|
682
|
-
defineIteratorMethods(Gp);
|
364
|
+
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
|
365
|
+
}
|
683
366
|
|
684
|
-
|
367
|
+
function buildGroups(result, re) {
|
368
|
+
var g = _groups.get(re);
|
685
369
|
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
691
|
-
define(Gp, iteratorSymbol, function() {
|
692
|
-
return this;
|
693
|
-
});
|
370
|
+
return Object.keys(g).reduce(function (groups, name) {
|
371
|
+
return groups[name] = result[g[name]], groups;
|
372
|
+
}, Object.create(null));
|
373
|
+
}
|
694
374
|
|
695
|
-
|
696
|
-
|
697
|
-
});
|
375
|
+
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
376
|
+
var result = _super.exec.call(this, str);
|
698
377
|
|
699
|
-
|
700
|
-
|
378
|
+
return result && (result.groups = buildGroups(result, this)), result;
|
379
|
+
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
380
|
+
if ("string" == typeof substitution) {
|
381
|
+
var groups = _groups.get(this);
|
701
382
|
|
702
|
-
|
703
|
-
|
383
|
+
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
384
|
+
return "$" + groups[name];
|
385
|
+
}));
|
704
386
|
}
|
705
387
|
|
706
|
-
if (
|
707
|
-
|
708
|
-
|
388
|
+
if ("function" == typeof substitution) {
|
389
|
+
var _this = this;
|
390
|
+
|
391
|
+
return _super[Symbol.replace].call(this, str, function () {
|
392
|
+
var args = arguments;
|
393
|
+
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
|
394
|
+
});
|
709
395
|
}
|
710
396
|
|
711
|
-
|
712
|
-
}
|
397
|
+
return _super[Symbol.replace].call(this, str, substitution);
|
398
|
+
}, _wrapRegExp.apply(this, arguments);
|
399
|
+
}
|
713
400
|
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
401
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
402
|
+
try {
|
403
|
+
var info = gen[key](arg);
|
404
|
+
var value = info.value;
|
405
|
+
} catch (error) {
|
406
|
+
reject(error);
|
407
|
+
return;
|
719
408
|
}
|
720
409
|
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
726
|
-
tryLocsList.forEach(pushTryEntry, this);
|
727
|
-
this.reset(true);
|
410
|
+
if (info.done) {
|
411
|
+
resolve(value);
|
412
|
+
} else {
|
413
|
+
Promise.resolve(value).then(_next, _throw);
|
728
414
|
}
|
415
|
+
}
|
729
416
|
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
// Rather than returning an object with a next method, we keep
|
738
|
-
// things simple and return the next function itself.
|
739
|
-
return function next() {
|
740
|
-
while (keys.length) {
|
741
|
-
var key = keys.pop();
|
742
|
-
if (key in object) {
|
743
|
-
next.value = key;
|
744
|
-
next.done = false;
|
745
|
-
return next;
|
746
|
-
}
|
747
|
-
}
|
748
|
-
|
749
|
-
// To avoid creating an additional object, we just hang the .value
|
750
|
-
// and .done properties off the next function object itself. This
|
751
|
-
// also ensures that the minifier will not anonymize the function.
|
752
|
-
next.done = true;
|
753
|
-
return next;
|
754
|
-
};
|
755
|
-
};
|
417
|
+
function _asyncToGenerator(fn) {
|
418
|
+
return function () {
|
419
|
+
var self = this,
|
420
|
+
args = arguments;
|
421
|
+
return new Promise(function (resolve, reject) {
|
422
|
+
var gen = fn.apply(self, args);
|
756
423
|
|
757
|
-
|
758
|
-
|
759
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
760
|
-
if (iteratorMethod) {
|
761
|
-
return iteratorMethod.call(iterable);
|
424
|
+
function _next(value) {
|
425
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
762
426
|
}
|
763
427
|
|
764
|
-
|
765
|
-
|
428
|
+
function _throw(err) {
|
429
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
766
430
|
}
|
767
431
|
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
next.value = iterable[i];
|
773
|
-
next.done = false;
|
774
|
-
return next;
|
775
|
-
}
|
776
|
-
}
|
777
|
-
|
778
|
-
next.value = undefined$1;
|
779
|
-
next.done = true;
|
432
|
+
_next(undefined);
|
433
|
+
});
|
434
|
+
};
|
435
|
+
}
|
780
436
|
|
781
|
-
|
782
|
-
|
437
|
+
function _extends() {
|
438
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
439
|
+
for (var i = 1; i < arguments.length; i++) {
|
440
|
+
var source = arguments[i];
|
783
441
|
|
784
|
-
|
442
|
+
for (var key in source) {
|
443
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
444
|
+
target[key] = source[key];
|
445
|
+
}
|
785
446
|
}
|
786
447
|
}
|
787
448
|
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
449
|
+
return target;
|
450
|
+
};
|
451
|
+
return _extends.apply(this, arguments);
|
452
|
+
}
|
792
453
|
|
793
|
-
|
794
|
-
|
454
|
+
function _inherits(subClass, superClass) {
|
455
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
456
|
+
throw new TypeError("Super expression must either be null or a function");
|
795
457
|
}
|
796
458
|
|
797
|
-
|
798
|
-
constructor:
|
459
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
460
|
+
constructor: {
|
461
|
+
value: subClass,
|
462
|
+
writable: true,
|
463
|
+
configurable: true
|
464
|
+
}
|
465
|
+
});
|
466
|
+
Object.defineProperty(subClass, "prototype", {
|
467
|
+
writable: false
|
468
|
+
});
|
469
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
470
|
+
}
|
799
471
|
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
// Resetting context._sent for legacy support of Babel's
|
804
|
-
// function.sent implementation.
|
805
|
-
this.sent = this._sent = undefined$1;
|
806
|
-
this.done = false;
|
807
|
-
this.delegate = null;
|
808
|
-
|
809
|
-
this.method = "next";
|
810
|
-
this.arg = undefined$1;
|
811
|
-
|
812
|
-
this.tryEntries.forEach(resetTryEntry);
|
813
|
-
|
814
|
-
if (!skipTempReset) {
|
815
|
-
for (var name in this) {
|
816
|
-
// Not sure about the optimal order of these conditions:
|
817
|
-
if (name.charAt(0) === "t" &&
|
818
|
-
hasOwn.call(this, name) &&
|
819
|
-
!isNaN(+name.slice(1))) {
|
820
|
-
this[name] = undefined$1;
|
821
|
-
}
|
822
|
-
}
|
823
|
-
}
|
824
|
-
},
|
472
|
+
function _inheritsLoose(subClass, superClass) {
|
473
|
+
subClass.prototype = Object.create(superClass.prototype);
|
474
|
+
subClass.prototype.constructor = subClass;
|
825
475
|
|
826
|
-
|
827
|
-
|
476
|
+
_setPrototypeOf(subClass, superClass);
|
477
|
+
}
|
828
478
|
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
479
|
+
function _getPrototypeOf(o) {
|
480
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
481
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
482
|
+
};
|
483
|
+
return _getPrototypeOf(o);
|
484
|
+
}
|
834
485
|
|
835
|
-
|
836
|
-
|
486
|
+
function _setPrototypeOf(o, p) {
|
487
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
488
|
+
o.__proto__ = p;
|
489
|
+
return o;
|
490
|
+
};
|
491
|
+
return _setPrototypeOf(o, p);
|
492
|
+
}
|
837
493
|
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
494
|
+
function _isNativeReflectConstruct() {
|
495
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
496
|
+
if (Reflect.construct.sham) return false;
|
497
|
+
if (typeof Proxy === "function") return true;
|
842
498
|
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
// If the dispatched exception was caught by a catch block,
|
851
|
-
// then let that catch block handle the exception normally.
|
852
|
-
context.method = "next";
|
853
|
-
context.arg = undefined$1;
|
854
|
-
}
|
499
|
+
try {
|
500
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
501
|
+
return true;
|
502
|
+
} catch (e) {
|
503
|
+
return false;
|
504
|
+
}
|
505
|
+
}
|
855
506
|
|
856
|
-
|
857
|
-
|
507
|
+
function _construct(Parent, args, Class) {
|
508
|
+
if (_isNativeReflectConstruct()) {
|
509
|
+
_construct = Reflect.construct.bind();
|
510
|
+
} else {
|
511
|
+
_construct = function _construct(Parent, args, Class) {
|
512
|
+
var a = [null];
|
513
|
+
a.push.apply(a, args);
|
514
|
+
var Constructor = Function.bind.apply(Parent, a);
|
515
|
+
var instance = new Constructor();
|
516
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
517
|
+
return instance;
|
518
|
+
};
|
519
|
+
}
|
858
520
|
|
859
|
-
|
860
|
-
|
861
|
-
var record = entry.completion;
|
521
|
+
return _construct.apply(null, arguments);
|
522
|
+
}
|
862
523
|
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
// throw the exception.
|
867
|
-
return handle("end");
|
868
|
-
}
|
524
|
+
function _isNativeFunction(fn) {
|
525
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
526
|
+
}
|
869
527
|
|
870
|
-
|
871
|
-
|
872
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
528
|
+
function _wrapNativeSuper(Class) {
|
529
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
873
530
|
|
874
|
-
|
875
|
-
|
876
|
-
return handle(entry.catchLoc, true);
|
877
|
-
} else if (this.prev < entry.finallyLoc) {
|
878
|
-
return handle(entry.finallyLoc);
|
879
|
-
}
|
531
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
532
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
880
533
|
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
}
|
534
|
+
if (typeof Class !== "function") {
|
535
|
+
throw new TypeError("Super expression must either be null or a function");
|
536
|
+
}
|
885
537
|
|
886
|
-
|
887
|
-
|
888
|
-
return handle(entry.finallyLoc);
|
889
|
-
}
|
538
|
+
if (typeof _cache !== "undefined") {
|
539
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
890
540
|
|
891
|
-
|
892
|
-
|
893
|
-
}
|
894
|
-
}
|
895
|
-
}
|
896
|
-
},
|
541
|
+
_cache.set(Class, Wrapper);
|
542
|
+
}
|
897
543
|
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
if (entry.tryLoc <= this.prev &&
|
902
|
-
hasOwn.call(entry, "finallyLoc") &&
|
903
|
-
this.prev < entry.finallyLoc) {
|
904
|
-
var finallyEntry = entry;
|
905
|
-
break;
|
906
|
-
}
|
907
|
-
}
|
544
|
+
function Wrapper() {
|
545
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
546
|
+
}
|
908
547
|
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
// location outside the try/catch block.
|
916
|
-
finallyEntry = null;
|
548
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
549
|
+
constructor: {
|
550
|
+
value: Wrapper,
|
551
|
+
enumerable: false,
|
552
|
+
writable: true,
|
553
|
+
configurable: true
|
917
554
|
}
|
555
|
+
});
|
556
|
+
return _setPrototypeOf(Wrapper, Class);
|
557
|
+
};
|
918
558
|
|
919
|
-
|
920
|
-
|
921
|
-
record.arg = arg;
|
559
|
+
return _wrapNativeSuper(Class);
|
560
|
+
}
|
922
561
|
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
562
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
563
|
+
if (source == null) return {};
|
564
|
+
var target = {};
|
565
|
+
var sourceKeys = Object.keys(source);
|
566
|
+
var key, i;
|
928
567
|
|
929
|
-
|
930
|
-
|
568
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
569
|
+
key = sourceKeys[i];
|
570
|
+
if (excluded.indexOf(key) >= 0) continue;
|
571
|
+
target[key] = source[key];
|
572
|
+
}
|
931
573
|
|
932
|
-
|
933
|
-
|
934
|
-
throw record.arg;
|
935
|
-
}
|
574
|
+
return target;
|
575
|
+
}
|
936
576
|
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
this.next = afterLoc;
|
946
|
-
}
|
577
|
+
function _unsupportedIterableToArray(o, minLen) {
|
578
|
+
if (!o) return;
|
579
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
580
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
581
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
582
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
583
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
584
|
+
}
|
947
585
|
|
948
|
-
|
949
|
-
|
586
|
+
function _arrayLikeToArray(arr, len) {
|
587
|
+
if (len == null || len > arr.length) len = arr.length;
|
950
588
|
|
951
|
-
|
952
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
953
|
-
var entry = this.tryEntries[i];
|
954
|
-
if (entry.finallyLoc === finallyLoc) {
|
955
|
-
this.complete(entry.completion, entry.afterLoc);
|
956
|
-
resetTryEntry(entry);
|
957
|
-
return ContinueSentinel;
|
958
|
-
}
|
959
|
-
}
|
960
|
-
},
|
589
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
961
590
|
|
962
|
-
|
963
|
-
|
964
|
-
var entry = this.tryEntries[i];
|
965
|
-
if (entry.tryLoc === tryLoc) {
|
966
|
-
var record = entry.completion;
|
967
|
-
if (record.type === "throw") {
|
968
|
-
var thrown = record.arg;
|
969
|
-
resetTryEntry(entry);
|
970
|
-
}
|
971
|
-
return thrown;
|
972
|
-
}
|
973
|
-
}
|
591
|
+
return arr2;
|
592
|
+
}
|
974
593
|
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
},
|
594
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
595
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
596
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
979
597
|
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
598
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
599
|
+
if (it) o = it;
|
600
|
+
var i = 0;
|
601
|
+
return function () {
|
602
|
+
if (i >= o.length) return {
|
603
|
+
done: true
|
985
604
|
};
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
}
|
992
|
-
|
993
|
-
return ContinueSentinel;
|
994
|
-
}
|
995
|
-
};
|
996
|
-
|
997
|
-
// Regardless of whether this script is executing as a CommonJS module
|
998
|
-
// or not, return the runtime object so that we can declare the variable
|
999
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
1000
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
1001
|
-
return exports;
|
1002
|
-
|
1003
|
-
}(
|
1004
|
-
// If this script is executing as a CommonJS module, use module.exports
|
1005
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
1006
|
-
// object. Either way, the resulting object will be used to initialize
|
1007
|
-
// the regeneratorRuntime variable at the top of this file.
|
1008
|
-
module.exports
|
1009
|
-
));
|
1010
|
-
|
1011
|
-
try {
|
1012
|
-
regeneratorRuntime = runtime;
|
1013
|
-
} catch (accidentalStrictMode) {
|
1014
|
-
// This module should not be running in strict mode, so the above
|
1015
|
-
// assignment should always work unless something is misconfigured. Just
|
1016
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
1017
|
-
// we can explicitly access globalThis. In older engines we can escape
|
1018
|
-
// strict mode using a global Function call. This could conceivably fail
|
1019
|
-
// if a Content Security Policy forbids using Function, but in that case
|
1020
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
1021
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
1022
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
1023
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
1024
|
-
if (typeof globalThis === "object") {
|
1025
|
-
globalThis.regeneratorRuntime = runtime;
|
1026
|
-
} else {
|
1027
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
605
|
+
return {
|
606
|
+
done: false,
|
607
|
+
value: o[i++]
|
608
|
+
};
|
609
|
+
};
|
1028
610
|
}
|
611
|
+
|
612
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1029
613
|
}
|
1030
|
-
});
|
1031
614
|
|
1032
615
|
var _personalMetaToPrefix;
|
1033
616
|
var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[MetadataCategory.Personal] = 'you', _personalMetaToPrefix[MetadataCategory.ChildPersonal] = 'child', _personalMetaToPrefix[MetadataCategory.OtherPersonal] = 'other', _personalMetaToPrefix);
|
@@ -1038,7 +621,7 @@ var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[Me
|
|
1038
621
|
*/
|
1039
622
|
|
1040
623
|
function identificationToPersonalInformations(data, category) {
|
1041
|
-
var _data
|
624
|
+
var _data;
|
1042
625
|
|
1043
626
|
var prefix = personalMetaToPrefix[category];
|
1044
627
|
return {
|
@@ -1048,7 +631,7 @@ function identificationToPersonalInformations(data, category) {
|
|
1048
631
|
name: data[prefix + "Name"],
|
1049
632
|
phone: data[prefix + "Phone"],
|
1050
633
|
zip: data[prefix + "Zip"],
|
1051
|
-
hid: (_data
|
634
|
+
hid: (_data = data[prefix + "HID"]) != null ? _data : data[prefix + "ID"],
|
1052
635
|
pharmacy: data[prefix + "Pharmacy"],
|
1053
636
|
address: data[prefix + "Address"]
|
1054
637
|
};
|
@@ -1257,9 +840,9 @@ function filterTriggeredAnsweredWithKind(_x, _x2) {
|
|
1257
840
|
*/
|
1258
841
|
|
1259
842
|
function _filterTriggeredAnsweredWithKind() {
|
1260
|
-
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/
|
843
|
+
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workflowData, kind) {
|
1261
844
|
var flattenedAnswers, triggeredQuestionsWithKind, samePageAnswers, res;
|
1262
|
-
return
|
845
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1263
846
|
while (1) {
|
1264
847
|
switch (_context.prev = _context.next) {
|
1265
848
|
case 0:
|
@@ -1303,9 +886,9 @@ function getWorkflowDataByCategory(_x3, _x4) {
|
|
1303
886
|
}
|
1304
887
|
|
1305
888
|
function _getWorkflowDataByCategory() {
|
1306
|
-
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/
|
889
|
+
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(workflowData, category) {
|
1307
890
|
var flattenedAnswers, triggeredQuestions, fields;
|
1308
|
-
return
|
891
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1309
892
|
while (1) {
|
1310
893
|
switch (_context2.prev = _context2.next) {
|
1311
894
|
case 0:
|
@@ -1376,8 +959,8 @@ function getImagesFromIndexDb(_x5) {
|
|
1376
959
|
*/
|
1377
960
|
|
1378
961
|
function _getImagesFromIndexDb() {
|
1379
|
-
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/
|
1380
|
-
return
|
962
|
+
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(answer) {
|
963
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1381
964
|
while (1) {
|
1382
965
|
switch (_context3.prev = _context3.next) {
|
1383
966
|
case 0:
|
@@ -1453,9 +1036,9 @@ function populateWorkflowField(_x6, _x7) {
|
|
1453
1036
|
|
1454
1037
|
|
1455
1038
|
function _populateWorkflowField() {
|
1456
|
-
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/
|
1039
|
+
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
|
1457
1040
|
var answer, displayedAnswer;
|
1458
|
-
return
|
1041
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1459
1042
|
while (1) {
|
1460
1043
|
switch (_context4.prev = _context4.next) {
|
1461
1044
|
case 0:
|
@@ -1633,10 +1216,11 @@ var MAX_RETRIES = 15;
|
|
1633
1216
|
* @param masterKey
|
1634
1217
|
* @param recoveryQA
|
1635
1218
|
* @param indexSearch create search index for the consultation if true
|
1219
|
+
* @param onProgress callback that is called whenever a new step of patient registration is executed. Note: progress ranges from 0 to 1, and descriptionKey is a description of the progress as a key so the app would use it to translate the description
|
1636
1220
|
* @returns the successful registration
|
1637
1221
|
*/
|
1638
1222
|
|
1639
|
-
function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
1223
|
+
function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
1640
1224
|
return _registerPatient.apply(this, arguments);
|
1641
1225
|
}
|
1642
1226
|
/**
|
@@ -1647,10 +1231,10 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
|
1647
1231
|
*/
|
1648
1232
|
|
1649
1233
|
function _registerPatient() {
|
1650
|
-
_registerPatient = _asyncToGenerator( /*#__PURE__*/
|
1651
|
-
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, _ret;
|
1234
|
+
_registerPatient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch, onProgress) {
|
1235
|
+
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, stepsTotalNum, currentStep, _ret;
|
1652
1236
|
|
1653
|
-
return
|
1237
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1654
1238
|
while (1) {
|
1655
1239
|
switch (_context4.prev = _context4.next) {
|
1656
1240
|
case 0:
|
@@ -1664,107 +1248,115 @@ function _registerPatient() {
|
|
1664
1248
|
retry = MAX_RETRIES;
|
1665
1249
|
identity = undefined;
|
1666
1250
|
errorsThrown = [];
|
1251
|
+
stepsTotalNum = 9;
|
1667
1252
|
|
1668
|
-
case
|
1253
|
+
case 8:
|
1669
1254
|
if (!(retry > 0)) {
|
1670
|
-
_context4.next =
|
1255
|
+
_context4.next = 24;
|
1671
1256
|
break;
|
1672
1257
|
}
|
1673
1258
|
|
1674
|
-
_context4.prev =
|
1675
|
-
return _context4.delegateYield( /*#__PURE__*/
|
1259
|
+
_context4.prev = 9;
|
1260
|
+
return _context4.delegateYield( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
1676
1261
|
var _consultIndex, _identity, _identity2;
|
1677
1262
|
|
1678
1263
|
var practitioners, grantPromises, consultIndex, consultIndexPromises;
|
1679
|
-
return
|
1264
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1680
1265
|
while (1) {
|
1681
1266
|
switch (_context3.prev = _context3.next) {
|
1682
1267
|
case 0:
|
1683
|
-
|
1268
|
+
currentStep = 0;
|
1269
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'retrieve_practitioners'); // Wait a bit each retry (we also want the first one to wait)
|
1270
|
+
|
1271
|
+
_context3.next = 4;
|
1684
1272
|
return new Promise(function (resolve) {
|
1685
1273
|
return setTimeout(resolve, 2000);
|
1686
1274
|
});
|
1687
1275
|
|
1688
|
-
case
|
1276
|
+
case 4:
|
1689
1277
|
if (practitionerAdmin) {
|
1690
|
-
_context3.next =
|
1278
|
+
_context3.next = 8;
|
1691
1279
|
break;
|
1692
1280
|
}
|
1693
1281
|
|
1694
|
-
_context3.next =
|
1282
|
+
_context3.next = 7;
|
1695
1283
|
return oroClient.practiceClient.practiceGetFromUuid(consultRequest.uuidPractice);
|
1696
1284
|
|
1697
|
-
case
|
1285
|
+
case 7:
|
1698
1286
|
practitionerAdmin = _context3.sent.uuidAdmin;
|
1699
1287
|
|
1700
|
-
case
|
1701
|
-
_context3.next =
|
1288
|
+
case 8:
|
1289
|
+
_context3.next = 10;
|
1702
1290
|
return oroClient.practiceClient.practiceGetPractitioners(consultRequest.uuidPractice)["catch"](function (err) {
|
1703
1291
|
console.log("Error retrieving practitioners", err);
|
1704
1292
|
return [];
|
1705
1293
|
});
|
1706
1294
|
|
1707
|
-
case
|
1295
|
+
case 10:
|
1708
1296
|
practitioners = _context3.sent;
|
1297
|
+
// Creating consult
|
1298
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'create_consult');
|
1709
1299
|
|
1710
1300
|
if (consult) {
|
1711
|
-
_context3.next =
|
1301
|
+
_context3.next = 16;
|
1712
1302
|
break;
|
1713
1303
|
}
|
1714
1304
|
|
1715
|
-
_context3.next =
|
1305
|
+
_context3.next = 15;
|
1716
1306
|
return getOrCreatePatientConsultationUuid(consultRequest, oroClient);
|
1717
1307
|
|
1718
|
-
case
|
1308
|
+
case 15:
|
1719
1309
|
consult = _context3.sent;
|
1720
1310
|
|
1721
|
-
case
|
1311
|
+
case 16:
|
1312
|
+
// Creating lockbox
|
1313
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'create_lockbox');
|
1314
|
+
|
1722
1315
|
if (lockboxUuid) {
|
1723
|
-
_context3.next =
|
1316
|
+
_context3.next = 21;
|
1724
1317
|
break;
|
1725
1318
|
}
|
1726
1319
|
|
1727
|
-
_context3.next =
|
1320
|
+
_context3.next = 20;
|
1728
1321
|
return getOrCreatePatientLockbox(oroClient);
|
1729
1322
|
|
1730
|
-
case
|
1323
|
+
case 20:
|
1731
1324
|
lockboxUuid = _context3.sent;
|
1732
1325
|
|
1733
|
-
case
|
1326
|
+
case 21:
|
1734
1327
|
if (identity) {
|
1735
|
-
_context3.next =
|
1328
|
+
_context3.next = 25;
|
1736
1329
|
break;
|
1737
1330
|
}
|
1738
1331
|
|
1739
|
-
_context3.next =
|
1332
|
+
_context3.next = 24;
|
1740
1333
|
return oroClient.guardClient.identityGet(patientUuid);
|
1741
1334
|
|
1742
|
-
case
|
1335
|
+
case 24:
|
1743
1336
|
identity = _context3.sent;
|
1744
1337
|
|
1745
|
-
case
|
1746
|
-
_context3.next =
|
1338
|
+
case 25:
|
1339
|
+
_context3.next = 27;
|
1747
1340
|
return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
|
1748
1341
|
console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
|
1749
1342
|
|
1750
|
-
// if we cannot grant to the admin, then the registration will fail
|
1751
1343
|
errorsThrown.push(err);
|
1752
1344
|
});
|
1753
1345
|
|
1754
|
-
case
|
1346
|
+
case 27:
|
1755
1347
|
// Patient Grant to practice
|
1348
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'grant_patient');
|
1756
1349
|
grantPromises = practitioners.filter(function (practitioner) {
|
1757
1350
|
return practitioner.uuid !== practitionerAdmin;
|
1758
1351
|
}).map( /*#__PURE__*/function () {
|
1759
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
1760
|
-
return
|
1352
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(practitioner) {
|
1353
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1761
1354
|
while (1) {
|
1762
1355
|
switch (_context.prev = _context.next) {
|
1763
1356
|
case 0:
|
1764
1357
|
return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
|
1765
1358
|
console.error("Error while granting lockbox to practitioner", err); // Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
|
1766
1359
|
|
1767
|
-
// Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
|
1768
1360
|
if (retry <= 1) return;
|
1769
1361
|
errorsThrown.push(err);
|
1770
1362
|
}));
|
@@ -1777,7 +1369,7 @@ function _registerPatient() {
|
|
1777
1369
|
}, _callee);
|
1778
1370
|
}));
|
1779
1371
|
|
1780
|
-
return function (
|
1372
|
+
return function (_x31) {
|
1781
1373
|
return _ref.apply(this, arguments);
|
1782
1374
|
};
|
1783
1375
|
}());
|
@@ -1790,15 +1382,14 @@ function _registerPatient() {
|
|
1790
1382
|
}], _consultIndex); // the index will identify in which lockbox a consultation resides
|
1791
1383
|
|
1792
1384
|
consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
|
1793
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
1794
|
-
return
|
1385
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practitioner) {
|
1386
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1795
1387
|
while (1) {
|
1796
1388
|
switch (_context2.prev = _context2.next) {
|
1797
1389
|
case 0:
|
1798
1390
|
return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
|
1799
1391
|
console.error("[SDK: registration] Error while adding to the practitioner's index " + practitioner.uuid, err); // Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
|
1800
1392
|
|
1801
|
-
// Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
|
1802
1393
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1803
1394
|
}));
|
1804
1395
|
|
@@ -1810,171 +1401,181 @@ function _registerPatient() {
|
|
1810
1401
|
}, _callee2);
|
1811
1402
|
}));
|
1812
1403
|
|
1813
|
-
return function (
|
1404
|
+
return function (_x32) {
|
1814
1405
|
return _ref2.apply(this, arguments);
|
1815
1406
|
};
|
1816
1407
|
}());
|
1817
|
-
_context3.next =
|
1818
|
-
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient
|
1408
|
+
_context3.next = 33;
|
1409
|
+
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient, onProgress ? {
|
1410
|
+
onProgress: onProgress,
|
1411
|
+
currentStep: currentStep,
|
1412
|
+
stepsTotalNum: stepsTotalNum
|
1413
|
+
} : undefined)["catch"](function (err) {
|
1819
1414
|
console.error('[SDK: registration] Some errors happened during image upload', err); // Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
|
1820
1415
|
|
1821
|
-
// Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
|
1822
1416
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1823
1417
|
});
|
1824
1418
|
|
1825
|
-
case
|
1826
|
-
|
1419
|
+
case 33:
|
1420
|
+
++currentStep;
|
1421
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'store_patient_data');
|
1422
|
+
_context3.next = 37;
|
1827
1423
|
return storePatientData(consult.uuid, consultRequest.isoLanguageRequired, lockboxUuid, workflow, oroClient)["catch"](function (err) {
|
1828
1424
|
console.error('[SDK: registration] Some errors happened during patient data upload', err);
|
1829
1425
|
errorsThrown.push(err);
|
1830
1426
|
});
|
1831
1427
|
|
1832
|
-
case
|
1428
|
+
case 37:
|
1429
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'set_masterkey');
|
1430
|
+
|
1833
1431
|
if (!(masterKey && !((_identity = identity) != null && _identity.recoveryMasterKey))) {
|
1834
|
-
_context3.next =
|
1432
|
+
_context3.next = 44;
|
1835
1433
|
break;
|
1836
1434
|
}
|
1837
1435
|
|
1838
|
-
_context3.next =
|
1436
|
+
_context3.next = 41;
|
1839
1437
|
return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
|
1840
1438
|
console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
|
1841
1439
|
|
1842
|
-
/// it's acceptable to continue registration (return old identity)
|
1843
1440
|
if (retry <= 1) return;
|
1844
1441
|
errorsThrown.push(err);
|
1845
1442
|
return identity;
|
1846
1443
|
});
|
1847
1444
|
|
1848
|
-
case
|
1445
|
+
case 41:
|
1849
1446
|
identity = _context3.sent;
|
1850
|
-
_context3.next =
|
1447
|
+
_context3.next = 45;
|
1851
1448
|
break;
|
1852
1449
|
|
1853
|
-
case
|
1450
|
+
case 44:
|
1854
1451
|
// we did not set the master key so we do not return it
|
1855
1452
|
masterKey = undefined;
|
1856
1453
|
|
1857
|
-
case
|
1454
|
+
case 45:
|
1455
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'set_security_questions');
|
1456
|
+
|
1858
1457
|
if (!(recoveryQA && !((_identity2 = identity) != null && _identity2.recoverySecurityQuestions))) {
|
1859
|
-
_context3.next =
|
1458
|
+
_context3.next = 50;
|
1860
1459
|
break;
|
1861
1460
|
}
|
1862
1461
|
|
1863
|
-
_context3.next =
|
1462
|
+
_context3.next = 49;
|
1864
1463
|
return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
|
1865
1464
|
console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
|
1866
1465
|
|
1867
|
-
/// it's acceptable to continue registration (return old identity)
|
1868
1466
|
if (retry <= 1) return;
|
1869
1467
|
errorsThrown.push(err);
|
1870
1468
|
return identity;
|
1871
1469
|
});
|
1872
1470
|
|
1873
|
-
case
|
1471
|
+
case 49:
|
1874
1472
|
identity = _context3.sent;
|
1875
1473
|
|
1876
|
-
case
|
1877
|
-
_context3.next =
|
1474
|
+
case 50:
|
1475
|
+
_context3.next = 52;
|
1878
1476
|
return Promise.all([].concat(grantPromises, consultIndexPromises));
|
1879
1477
|
|
1880
|
-
case
|
1478
|
+
case 52:
|
1479
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'search_indexing');
|
1480
|
+
|
1881
1481
|
if (!indexSearch) {
|
1882
|
-
_context3.next =
|
1482
|
+
_context3.next = 56;
|
1883
1483
|
break;
|
1884
1484
|
}
|
1885
1485
|
|
1886
|
-
_context3.next =
|
1486
|
+
_context3.next = 56;
|
1887
1487
|
return buildConsultSearchIndex(consult, workflow, oroClient)["catch"](function (err) {
|
1888
1488
|
console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
|
1889
1489
|
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
|
1890
1490
|
|
1891
|
-
// this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
|
1892
1491
|
errorsThrown.push(err);
|
1893
1492
|
});
|
1894
1493
|
|
1895
|
-
case
|
1494
|
+
case 56:
|
1896
1495
|
if (!(errorsThrown.length > 0)) {
|
1897
|
-
_context3.next =
|
1496
|
+
_context3.next = 58;
|
1898
1497
|
break;
|
1899
1498
|
}
|
1900
1499
|
|
1901
1500
|
throw errorsThrown;
|
1902
1501
|
|
1903
|
-
case
|
1904
|
-
_context3.next =
|
1502
|
+
case 58:
|
1503
|
+
_context3.next = 60;
|
1905
1504
|
return oroClient.consultClient.updateConsultByUUID(consult.uuid, {
|
1906
1505
|
statusMedical: MedicalStatus.New
|
1907
1506
|
});
|
1908
1507
|
|
1909
|
-
case
|
1508
|
+
case 60:
|
1509
|
+
// if we got through the complete flow, the registration succeeded
|
1510
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'success');
|
1910
1511
|
return _context3.abrupt("return", "break");
|
1911
1512
|
|
1912
|
-
case
|
1513
|
+
case 62:
|
1913
1514
|
case "end":
|
1914
1515
|
return _context3.stop();
|
1915
1516
|
}
|
1916
1517
|
}
|
1917
1518
|
}, _callee3);
|
1918
|
-
})(), "t0",
|
1519
|
+
})(), "t0", 11);
|
1919
1520
|
|
1920
|
-
case
|
1521
|
+
case 11:
|
1921
1522
|
_ret = _context4.t0;
|
1922
1523
|
|
1923
1524
|
if (!(_ret === "break")) {
|
1924
|
-
_context4.next =
|
1525
|
+
_context4.next = 14;
|
1925
1526
|
break;
|
1926
1527
|
}
|
1927
1528
|
|
1928
|
-
return _context4.abrupt("break",
|
1529
|
+
return _context4.abrupt("break", 24);
|
1929
1530
|
|
1930
|
-
case
|
1931
|
-
_context4.next =
|
1531
|
+
case 14:
|
1532
|
+
_context4.next = 21;
|
1932
1533
|
break;
|
1933
1534
|
|
1934
|
-
case
|
1935
|
-
_context4.prev =
|
1936
|
-
_context4.t1 = _context4["catch"](
|
1535
|
+
case 16:
|
1536
|
+
_context4.prev = 16;
|
1537
|
+
_context4.t1 = _context4["catch"](9);
|
1937
1538
|
console.error("[SDK] Error occured during registration: " + _context4.t1 + ", retrying... Retries remaining: " + retry);
|
1938
1539
|
errorsThrown = [];
|
1939
|
-
return _context4.abrupt("continue",
|
1540
|
+
return _context4.abrupt("continue", 21);
|
1940
1541
|
|
1941
|
-
case
|
1542
|
+
case 21:
|
1942
1543
|
retry--;
|
1943
|
-
_context4.next =
|
1544
|
+
_context4.next = 8;
|
1944
1545
|
break;
|
1945
1546
|
|
1946
|
-
case
|
1547
|
+
case 24:
|
1947
1548
|
if (!(retry <= 0)) {
|
1948
|
-
_context4.next =
|
1549
|
+
_context4.next = 27;
|
1949
1550
|
break;
|
1950
1551
|
}
|
1951
1552
|
|
1952
1553
|
console.error('[SDK] registration failed: MAX_RETRIES reached');
|
1953
1554
|
throw 'RegistrationFailed';
|
1954
1555
|
|
1955
|
-
case
|
1556
|
+
case 27:
|
1956
1557
|
console.log('Successfully Registered');
|
1957
|
-
_context4.next =
|
1558
|
+
_context4.next = 30;
|
1958
1559
|
return oroClient.cleanIndex();
|
1959
1560
|
|
1960
|
-
case
|
1561
|
+
case 30:
|
1961
1562
|
return _context4.abrupt("return", {
|
1962
1563
|
masterKey: masterKey,
|
1963
1564
|
consultationId: consult.uuid,
|
1964
1565
|
lockboxUuid: lockboxUuid
|
1965
1566
|
});
|
1966
1567
|
|
1967
|
-
case
|
1568
|
+
case 31:
|
1968
1569
|
case "end":
|
1969
1570
|
return _context4.stop();
|
1970
1571
|
}
|
1971
1572
|
}
|
1972
|
-
}, _callee4, null, [[
|
1573
|
+
}, _callee4, null, [[9, 16]]);
|
1973
1574
|
}));
|
1974
1575
|
return _registerPatient.apply(this, arguments);
|
1975
1576
|
}
|
1976
1577
|
|
1977
|
-
function getOrCreatePatientConsultationUuid(
|
1578
|
+
function getOrCreatePatientConsultationUuid(_x9, _x10) {
|
1978
1579
|
return _getOrCreatePatientConsultationUuid.apply(this, arguments);
|
1979
1580
|
}
|
1980
1581
|
/**
|
@@ -1985,9 +1586,9 @@ function getOrCreatePatientConsultationUuid(_x8, _x9) {
|
|
1985
1586
|
|
1986
1587
|
|
1987
1588
|
function _getOrCreatePatientConsultationUuid() {
|
1988
|
-
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/
|
1589
|
+
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(consult, oroClient) {
|
1989
1590
|
var payment;
|
1990
|
-
return
|
1591
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
1991
1592
|
while (1) {
|
1992
1593
|
switch (_context5.prev = _context5.next) {
|
1993
1594
|
case 0:
|
@@ -2027,7 +1628,7 @@ function _getOrCreatePatientConsultationUuid() {
|
|
2027
1628
|
return _getOrCreatePatientConsultationUuid.apply(this, arguments);
|
2028
1629
|
}
|
2029
1630
|
|
2030
|
-
function getOrCreatePatientLockbox(
|
1631
|
+
function getOrCreatePatientLockbox(_x11) {
|
2031
1632
|
return _getOrCreatePatientLockbox.apply(this, arguments);
|
2032
1633
|
}
|
2033
1634
|
/**
|
@@ -2042,9 +1643,9 @@ function getOrCreatePatientLockbox(_x10) {
|
|
2042
1643
|
|
2043
1644
|
|
2044
1645
|
function _getOrCreatePatientLockbox() {
|
2045
|
-
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/
|
1646
|
+
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(oroClient) {
|
2046
1647
|
var grants, lockboxResponse, tokens;
|
2047
|
-
return
|
1648
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
2048
1649
|
while (1) {
|
2049
1650
|
switch (_context6.prev = _context6.next) {
|
2050
1651
|
case 0:
|
@@ -2099,13 +1700,13 @@ function _getOrCreatePatientLockbox() {
|
|
2099
1700
|
return _getOrCreatePatientLockbox.apply(this, arguments);
|
2100
1701
|
}
|
2101
1702
|
|
2102
|
-
function storePatientData(
|
1703
|
+
function storePatientData(_x12, _x13, _x14, _x15, _x16) {
|
2103
1704
|
return _storePatientData.apply(this, arguments);
|
2104
1705
|
}
|
2105
1706
|
|
2106
1707
|
function _storePatientData() {
|
2107
|
-
_storePatientData = _asyncToGenerator( /*#__PURE__*/
|
2108
|
-
return
|
1708
|
+
_storePatientData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
|
1709
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2109
1710
|
while (1) {
|
2110
1711
|
switch (_context7.prev = _context7.next) {
|
2111
1712
|
case 0:
|
@@ -2147,7 +1748,7 @@ function _storePatientData() {
|
|
2147
1748
|
return _storePatientData.apply(this, arguments);
|
2148
1749
|
}
|
2149
1750
|
|
2150
|
-
function storeImageAliases(
|
1751
|
+
function storeImageAliases(_x17, _x18, _x19, _x20, _x21) {
|
2151
1752
|
return _storeImageAliases.apply(this, arguments);
|
2152
1753
|
}
|
2153
1754
|
/**
|
@@ -2162,9 +1763,9 @@ function storeImageAliases(_x16, _x17, _x18, _x19) {
|
|
2162
1763
|
|
2163
1764
|
|
2164
1765
|
function _storeImageAliases() {
|
2165
|
-
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/
|
2166
|
-
var images, nonNullImages, promises;
|
2167
|
-
return
|
1766
|
+
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient, progress) {
|
1767
|
+
var images, nonNullImages, storedImagesNum, totalImagesNum, promises;
|
1768
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2168
1769
|
while (1) {
|
2169
1770
|
switch (_context8.prev = _context8.next) {
|
2170
1771
|
case 0:
|
@@ -2187,17 +1788,32 @@ function _storeImageAliases() {
|
|
2187
1788
|
console.error('[SDK] Some images have not been found, they have been skipped.');
|
2188
1789
|
}
|
2189
1790
|
|
1791
|
+
storedImagesNum = 0;
|
1792
|
+
totalImagesNum = nonNullImages.length;
|
1793
|
+
if (progress) progress.onProgress(progress.currentStep / progress.stepsTotalNum, 'store_images', {
|
1794
|
+
storedImagesNum: storedImagesNum,
|
1795
|
+
totalImagesNum: totalImagesNum
|
1796
|
+
});
|
2190
1797
|
promises = nonNullImages.map(function (image) {
|
2191
1798
|
return oroClient.getOrInsertJsonData(lockboxUuid, image, {
|
2192
1799
|
category: MetadataCategory.Consultation,
|
2193
1800
|
documentType: DocumentType.ImageAlias,
|
2194
1801
|
consultationId: consultationId,
|
2195
1802
|
idbId: image.idbId
|
2196
|
-
}, {})
|
1803
|
+
}, {}).then(function () {
|
1804
|
+
if (progress) {
|
1805
|
+
++storedImagesNum;
|
1806
|
+
var progressStepValue = Math.round(((progress.currentStep + 1) / progress.stepsTotalNum - progress.currentStep / progress.stepsTotalNum) * 100) / 100;
|
1807
|
+
progress.onProgress(progress.currentStep / progress.stepsTotalNum + progressStepValue * (storedImagesNum / totalImagesNum), 'store_images', {
|
1808
|
+
storedImagesNum: storedImagesNum,
|
1809
|
+
totalImagesNum: totalImagesNum
|
1810
|
+
});
|
1811
|
+
}
|
1812
|
+
});
|
2197
1813
|
});
|
2198
1814
|
return _context8.abrupt("return", Promise.all(promises));
|
2199
1815
|
|
2200
|
-
case
|
1816
|
+
case 14:
|
2201
1817
|
case "end":
|
2202
1818
|
return _context8.stop();
|
2203
1819
|
}
|
@@ -2207,7 +1823,7 @@ function _storeImageAliases() {
|
|
2207
1823
|
return _storeImageAliases.apply(this, arguments);
|
2208
1824
|
}
|
2209
1825
|
|
2210
|
-
function extractAndStorePersonalWorkflowData(
|
1826
|
+
function extractAndStorePersonalWorkflowData(_x22, _x23, _x24, _x25, _x26) {
|
2211
1827
|
return _extractAndStorePersonalWorkflowData.apply(this, arguments);
|
2212
1828
|
}
|
2213
1829
|
/**
|
@@ -2216,8 +1832,8 @@ function extractAndStorePersonalWorkflowData(_x20, _x21, _x22, _x23, _x24) {
|
|
2216
1832
|
*/
|
2217
1833
|
|
2218
1834
|
function _extractAndStorePersonalWorkflowData() {
|
2219
|
-
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2220
|
-
return
|
1835
|
+
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
|
1836
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2221
1837
|
while (1) {
|
2222
1838
|
switch (_context9.prev = _context9.next) {
|
2223
1839
|
case 0:
|
@@ -2240,7 +1856,7 @@ function _extractAndStorePersonalWorkflowData() {
|
|
2240
1856
|
return _extractAndStorePersonalWorkflowData.apply(this, arguments);
|
2241
1857
|
}
|
2242
1858
|
|
2243
|
-
function extractPersonalInfoFromWorkflowData(
|
1859
|
+
function extractPersonalInfoFromWorkflowData(_x27) {
|
2244
1860
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
2245
1861
|
}
|
2246
1862
|
/**
|
@@ -2251,8 +1867,8 @@ function extractPersonalInfoFromWorkflowData(_x25) {
|
|
2251
1867
|
*/
|
2252
1868
|
|
2253
1869
|
function _extractPersonalInfoFromWorkflowData() {
|
2254
|
-
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2255
|
-
return
|
1870
|
+
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(workflow) {
|
1871
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2256
1872
|
while (1) {
|
2257
1873
|
switch (_context10.prev = _context10.next) {
|
2258
1874
|
case 0:
|
@@ -2277,15 +1893,15 @@ function _extractPersonalInfoFromWorkflowData() {
|
|
2277
1893
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
2278
1894
|
}
|
2279
1895
|
|
2280
|
-
function buildConsultSearchIndex(
|
1896
|
+
function buildConsultSearchIndex(_x28, _x29, _x30) {
|
2281
1897
|
return _buildConsultSearchIndex.apply(this, arguments);
|
2282
1898
|
}
|
2283
1899
|
|
2284
1900
|
function _buildConsultSearchIndex() {
|
2285
|
-
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/
|
1901
|
+
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(consult, workflow, oroClient) {
|
2286
1902
|
var terms, _yield$extractPersona, personalInfoPopulatedWfData, childPersonalInfoPopulatedWfData, otherPersonalInfoPopulatedWfData, personalInfo, childPersonalInfo, otherPersonalInfo;
|
2287
1903
|
|
2288
|
-
return
|
1904
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
2289
1905
|
while (1) {
|
2290
1906
|
switch (_context11.prev = _context11.next) {
|
2291
1907
|
case 0:
|
@@ -2406,10 +2022,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2) {
|
|
2406
2022
|
}
|
2407
2023
|
|
2408
2024
|
function _filterGrantsWithLockboxMetadata() {
|
2409
|
-
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/
|
2025
|
+
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(oroClient, filter) {
|
2410
2026
|
var grants, filteredGrants, _iterator, _step, grant, consultationIdExistsInMetadata;
|
2411
2027
|
|
2412
|
-
return
|
2028
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2413
2029
|
while (1) {
|
2414
2030
|
switch (_context.prev = _context.next) {
|
2415
2031
|
case 0:
|
@@ -2482,8 +2098,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2482
2098
|
_proto.cleanIndex =
|
2483
2099
|
/*#__PURE__*/
|
2484
2100
|
function () {
|
2485
|
-
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2486
|
-
return
|
2101
|
+
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
2102
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2487
2103
|
while (1) {
|
2488
2104
|
switch (_context.prev = _context.next) {
|
2489
2105
|
case 0:
|
@@ -2520,9 +2136,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2520
2136
|
_proto.signUp =
|
2521
2137
|
/*#__PURE__*/
|
2522
2138
|
function () {
|
2523
|
-
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2139
|
+
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
|
2524
2140
|
var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
|
2525
|
-
return
|
2141
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
2526
2142
|
while (1) {
|
2527
2143
|
switch (_context2.prev = _context2.next) {
|
2528
2144
|
case 0:
|
@@ -2581,9 +2197,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2581
2197
|
_proto.confirmEmail =
|
2582
2198
|
/*#__PURE__*/
|
2583
2199
|
function () {
|
2584
|
-
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2200
|
+
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken) {
|
2585
2201
|
var claims;
|
2586
|
-
return
|
2202
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
2587
2203
|
while (1) {
|
2588
2204
|
switch (_context3.prev = _context3.next) {
|
2589
2205
|
case 0:
|
@@ -2628,9 +2244,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2628
2244
|
_proto.signIn =
|
2629
2245
|
/*#__PURE__*/
|
2630
2246
|
function () {
|
2631
|
-
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2247
|
+
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(practiceUuid, email, password, otp) {
|
2632
2248
|
var hashedPassword, tokenRequest, userUuid;
|
2633
|
-
return
|
2249
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
2634
2250
|
while (1) {
|
2635
2251
|
switch (_context4.prev = _context4.next) {
|
2636
2252
|
case 0:
|
@@ -2683,9 +2299,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2683
2299
|
_proto.resumeSession =
|
2684
2300
|
/*#__PURE__*/
|
2685
2301
|
function () {
|
2686
|
-
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2302
|
+
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
2687
2303
|
var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
|
2688
|
-
return
|
2304
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
2689
2305
|
while (1) {
|
2690
2306
|
switch (_context5.prev = _context5.next) {
|
2691
2307
|
case 0:
|
@@ -2786,8 +2402,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2786
2402
|
_proto.signOut =
|
2787
2403
|
/*#__PURE__*/
|
2788
2404
|
function () {
|
2789
|
-
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2790
|
-
return
|
2405
|
+
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
2406
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
2791
2407
|
while (1) {
|
2792
2408
|
switch (_context6.prev = _context6.next) {
|
2793
2409
|
case 0:
|
@@ -2830,6 +2446,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2830
2446
|
* @param workflow
|
2831
2447
|
* @param recoveryQA
|
2832
2448
|
* @param indexSearch create search index for the consultation if true
|
2449
|
+
* @param onProgress callback that is called whenever a new step of patient registration is executed. Note: progress ranges from 0 to 1, and descriptionKey is a description of the progress as a key so the app would use it to translate the description
|
2833
2450
|
* @returns
|
2834
2451
|
*/
|
2835
2452
|
;
|
@@ -2837,8 +2454,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2837
2454
|
_proto.registerPatient =
|
2838
2455
|
/*#__PURE__*/
|
2839
2456
|
function () {
|
2840
|
-
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2841
|
-
return
|
2457
|
+
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch, onProgress) {
|
2458
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2842
2459
|
while (1) {
|
2843
2460
|
switch (_context7.prev = _context7.next) {
|
2844
2461
|
case 0:
|
@@ -2854,7 +2471,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2854
2471
|
throw IncompleteAuthentication;
|
2855
2472
|
|
2856
2473
|
case 3:
|
2857
|
-
return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA, indexSearch));
|
2474
|
+
return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA, indexSearch, onProgress));
|
2858
2475
|
|
2859
2476
|
case 4:
|
2860
2477
|
case "end":
|
@@ -2864,7 +2481,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2864
2481
|
}, _callee7, this);
|
2865
2482
|
}));
|
2866
2483
|
|
2867
|
-
function registerPatient$1(_x13, _x14, _x15, _x16, _x17) {
|
2484
|
+
function registerPatient$1(_x13, _x14, _x15, _x16, _x17, _x18) {
|
2868
2485
|
return _registerPatient2.apply(this, arguments);
|
2869
2486
|
}
|
2870
2487
|
|
@@ -2879,12 +2496,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
2879
2496
|
_proto.forceUpdateIndexEntries =
|
2880
2497
|
/*#__PURE__*/
|
2881
2498
|
function () {
|
2882
|
-
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2499
|
+
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
2883
2500
|
var _this = this,
|
2884
2501
|
_this$vaultIndexAdd;
|
2885
2502
|
|
2886
2503
|
var grants, indexConsultLockbox;
|
2887
|
-
return
|
2504
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2888
2505
|
while (1) {
|
2889
2506
|
switch (_context9.prev = _context9.next) {
|
2890
2507
|
case 0:
|
@@ -2895,8 +2512,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2895
2512
|
grants = _context9.sent;
|
2896
2513
|
_context9.next = 5;
|
2897
2514
|
return Promise.all(grants.map( /*#__PURE__*/function () {
|
2898
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
2899
|
-
return
|
2515
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(grant) {
|
2516
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2900
2517
|
while (1) {
|
2901
2518
|
switch (_context8.prev = _context8.next) {
|
2902
2519
|
case 0:
|
@@ -2932,7 +2549,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2932
2549
|
}, _callee8);
|
2933
2550
|
}));
|
2934
2551
|
|
2935
|
-
return function (
|
2552
|
+
return function (_x19) {
|
2936
2553
|
return _ref2.apply(this, arguments);
|
2937
2554
|
};
|
2938
2555
|
}())).then(function (consults) {
|
@@ -2972,10 +2589,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
2972
2589
|
_proto.vaultIndexAdd =
|
2973
2590
|
/*#__PURE__*/
|
2974
2591
|
function () {
|
2975
|
-
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2592
|
+
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(entries, indexOwnerUuid) {
|
2976
2593
|
var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
|
2977
2594
|
|
2978
|
-
return
|
2595
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2979
2596
|
while (1) {
|
2980
2597
|
switch (_context10.prev = _context10.next) {
|
2981
2598
|
case 0:
|
@@ -3055,7 +2672,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3055
2672
|
}, _callee10, this);
|
3056
2673
|
}));
|
3057
2674
|
|
3058
|
-
function vaultIndexAdd(
|
2675
|
+
function vaultIndexAdd(_x20, _x21) {
|
3059
2676
|
return _vaultIndexAdd.apply(this, arguments);
|
3060
2677
|
}
|
3061
2678
|
|
@@ -3073,9 +2690,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3073
2690
|
_proto.grantLockbox =
|
3074
2691
|
/*#__PURE__*/
|
3075
2692
|
function () {
|
3076
|
-
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2693
|
+
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
|
3077
2694
|
var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
|
3078
|
-
return
|
2695
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
3079
2696
|
while (1) {
|
3080
2697
|
switch (_context11.prev = _context11.next) {
|
3081
2698
|
case 0:
|
@@ -3114,7 +2731,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3114
2731
|
}, _callee11, this);
|
3115
2732
|
}));
|
3116
2733
|
|
3117
|
-
function grantLockbox(
|
2734
|
+
function grantLockbox(_x22, _x23, _x24) {
|
3118
2735
|
return _grantLockbox.apply(this, arguments);
|
3119
2736
|
}
|
3120
2737
|
|
@@ -3135,9 +2752,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3135
2752
|
_proto.createMessageData =
|
3136
2753
|
/*#__PURE__*/
|
3137
2754
|
function () {
|
3138
|
-
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2755
|
+
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3139
2756
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3140
|
-
return
|
2757
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
3141
2758
|
while (1) {
|
3142
2759
|
switch (_context12.prev = _context12.next) {
|
3143
2760
|
case 0:
|
@@ -3186,7 +2803,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3186
2803
|
}, _callee12, this);
|
3187
2804
|
}));
|
3188
2805
|
|
3189
|
-
function createMessageData(
|
2806
|
+
function createMessageData(_x25, _x26, _x27, _x28, _x29) {
|
3190
2807
|
return _createMessageData.apply(this, arguments);
|
3191
2808
|
}
|
3192
2809
|
|
@@ -3207,9 +2824,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3207
2824
|
_proto.createMessageAttachmentData =
|
3208
2825
|
/*#__PURE__*/
|
3209
2826
|
function () {
|
3210
|
-
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2827
|
+
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3211
2828
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3212
|
-
return
|
2829
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
3213
2830
|
while (1) {
|
3214
2831
|
switch (_context13.prev = _context13.next) {
|
3215
2832
|
case 0:
|
@@ -3272,7 +2889,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3272
2889
|
}, _callee13, this);
|
3273
2890
|
}));
|
3274
2891
|
|
3275
|
-
function createMessageAttachmentData(
|
2892
|
+
function createMessageAttachmentData(_x30, _x31, _x32, _x33, _x34) {
|
3276
2893
|
return _createMessageAttachmentData.apply(this, arguments);
|
3277
2894
|
}
|
3278
2895
|
|
@@ -3294,8 +2911,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3294
2911
|
_proto.createConsultationAttachmentData =
|
3295
2912
|
/*#__PURE__*/
|
3296
2913
|
function () {
|
3297
|
-
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3298
|
-
return
|
2914
|
+
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
|
2915
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
3299
2916
|
while (1) {
|
3300
2917
|
switch (_context14.prev = _context14.next) {
|
3301
2918
|
case 0:
|
@@ -3344,7 +2961,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3344
2961
|
}, _callee14, this);
|
3345
2962
|
}));
|
3346
2963
|
|
3347
|
-
function createConsultationAttachmentData(
|
2964
|
+
function createConsultationAttachmentData(_x35, _x36, _x37, _x38, _x39, _x40) {
|
3348
2965
|
return _createConsultationAttachmentData.apply(this, arguments);
|
3349
2966
|
}
|
3350
2967
|
|
@@ -3366,9 +2983,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3366
2983
|
_proto.createJsonData =
|
3367
2984
|
/*#__PURE__*/
|
3368
2985
|
function () {
|
3369
|
-
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2986
|
+
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3370
2987
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3371
|
-
return
|
2988
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
3372
2989
|
while (1) {
|
3373
2990
|
switch (_context15.prev = _context15.next) {
|
3374
2991
|
case 0:
|
@@ -3402,7 +3019,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3402
3019
|
}, _callee15, this);
|
3403
3020
|
}));
|
3404
3021
|
|
3405
|
-
function createJsonData(
|
3022
|
+
function createJsonData(_x41, _x42, _x43, _x44, _x45, _x46) {
|
3406
3023
|
return _createJsonData.apply(this, arguments);
|
3407
3024
|
}
|
3408
3025
|
|
@@ -3422,9 +3039,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3422
3039
|
_proto.getOrInsertJsonData =
|
3423
3040
|
/*#__PURE__*/
|
3424
3041
|
function () {
|
3425
|
-
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3042
|
+
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
|
3426
3043
|
var manifest;
|
3427
|
-
return
|
3044
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
3428
3045
|
while (1) {
|
3429
3046
|
switch (_context16.prev = _context16.next) {
|
3430
3047
|
case 0:
|
@@ -3465,7 +3082,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3465
3082
|
}, _callee16, this);
|
3466
3083
|
}));
|
3467
3084
|
|
3468
|
-
function getOrInsertJsonData(
|
3085
|
+
function getOrInsertJsonData(_x47, _x48, _x49, _x50, _x51) {
|
3469
3086
|
return _getOrInsertJsonData.apply(this, arguments);
|
3470
3087
|
}
|
3471
3088
|
|
@@ -3487,9 +3104,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3487
3104
|
_proto.createBytesData =
|
3488
3105
|
/*#__PURE__*/
|
3489
3106
|
function () {
|
3490
|
-
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3107
|
+
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3491
3108
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3492
|
-
return
|
3109
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
3493
3110
|
while (1) {
|
3494
3111
|
switch (_context17.prev = _context17.next) {
|
3495
3112
|
case 0:
|
@@ -3523,7 +3140,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3523
3140
|
}, _callee17, this);
|
3524
3141
|
}));
|
3525
3142
|
|
3526
|
-
function createBytesData(
|
3143
|
+
function createBytesData(_x52, _x53, _x54, _x55, _x56, _x57) {
|
3527
3144
|
return _createBytesData.apply(this, arguments);
|
3528
3145
|
}
|
3529
3146
|
|
@@ -3545,10 +3162,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3545
3162
|
_proto.getJsonData =
|
3546
3163
|
/*#__PURE__*/
|
3547
3164
|
function () {
|
3548
|
-
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3165
|
+
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3549
3166
|
var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
|
3550
3167
|
|
3551
|
-
return
|
3168
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
3552
3169
|
while (1) {
|
3553
3170
|
switch (_context18.prev = _context18.next) {
|
3554
3171
|
case 0:
|
@@ -3577,7 +3194,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3577
3194
|
}, _callee18, this);
|
3578
3195
|
}));
|
3579
3196
|
|
3580
|
-
function getJsonData(
|
3197
|
+
function getJsonData(_x58, _x59, _x60) {
|
3581
3198
|
return _getJsonData.apply(this, arguments);
|
3582
3199
|
}
|
3583
3200
|
|
@@ -3595,10 +3212,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3595
3212
|
_proto.getBytesData =
|
3596
3213
|
/*#__PURE__*/
|
3597
3214
|
function () {
|
3598
|
-
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3215
|
+
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3599
3216
|
var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
|
3600
3217
|
|
3601
|
-
return
|
3218
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
3602
3219
|
while (1) {
|
3603
3220
|
switch (_context19.prev = _context19.next) {
|
3604
3221
|
case 0:
|
@@ -3627,7 +3244,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3627
3244
|
}, _callee19, this);
|
3628
3245
|
}));
|
3629
3246
|
|
3630
|
-
function getBytesData(
|
3247
|
+
function getBytesData(_x61, _x62, _x63) {
|
3631
3248
|
return _getBytesData.apply(this, arguments);
|
3632
3249
|
}
|
3633
3250
|
|
@@ -3648,9 +3265,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3648
3265
|
_proto.getGrants =
|
3649
3266
|
/*#__PURE__*/
|
3650
3267
|
function () {
|
3651
|
-
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3268
|
+
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(filter) {
|
3652
3269
|
var filterString, currentAccountRole, encryptedGrants, decryptedGrants, grantsByConsultLockbox, decryptedConsults;
|
3653
|
-
return
|
3270
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
3654
3271
|
while (1) {
|
3655
3272
|
switch (_context20.prev = _context20.next) {
|
3656
3273
|
case 0:
|
@@ -3765,7 +3382,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3765
3382
|
}, _callee20, this);
|
3766
3383
|
}));
|
3767
3384
|
|
3768
|
-
function getGrants(
|
3385
|
+
function getGrants(_x64) {
|
3769
3386
|
return _getGrants.apply(this, arguments);
|
3770
3387
|
}
|
3771
3388
|
|
@@ -3781,8 +3398,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3781
3398
|
_proto.getAccountRole =
|
3782
3399
|
/*#__PURE__*/
|
3783
3400
|
function () {
|
3784
|
-
var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3785
|
-
return
|
3401
|
+
var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
3402
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
3786
3403
|
while (1) {
|
3787
3404
|
switch (_context21.prev = _context21.next) {
|
3788
3405
|
case 0:
|
@@ -3818,9 +3435,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3818
3435
|
_proto.getCachedSecretCryptor =
|
3819
3436
|
/*#__PURE__*/
|
3820
3437
|
function () {
|
3821
|
-
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3438
|
+
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(lockboxUuid, lockboxOwnerUuid) {
|
3822
3439
|
var index, encryptedSecret, secret, cryptor;
|
3823
|
-
return
|
3440
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
3824
3441
|
while (1) {
|
3825
3442
|
switch (_context22.prev = _context22.next) {
|
3826
3443
|
case 0:
|
@@ -3865,7 +3482,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3865
3482
|
}, _callee22, this);
|
3866
3483
|
}));
|
3867
3484
|
|
3868
|
-
function getCachedSecretCryptor(
|
3485
|
+
function getCachedSecretCryptor(_x65, _x66) {
|
3869
3486
|
return _getCachedSecretCryptor.apply(this, arguments);
|
3870
3487
|
}
|
3871
3488
|
|
@@ -3885,8 +3502,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3885
3502
|
_proto.getPersonalInformationsFromConsultId =
|
3886
3503
|
/*#__PURE__*/
|
3887
3504
|
function () {
|
3888
|
-
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3889
|
-
return
|
3505
|
+
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(consultationId, category, forceRefresh) {
|
3506
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
3890
3507
|
while (1) {
|
3891
3508
|
switch (_context23.prev = _context23.next) {
|
3892
3509
|
case 0:
|
@@ -3904,7 +3521,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3904
3521
|
}, _callee23, this);
|
3905
3522
|
}));
|
3906
3523
|
|
3907
|
-
function getPersonalInformationsFromConsultId(
|
3524
|
+
function getPersonalInformationsFromConsultId(_x67, _x68, _x69) {
|
3908
3525
|
return _getPersonalInformationsFromConsultId.apply(this, arguments);
|
3909
3526
|
}
|
3910
3527
|
|
@@ -3923,8 +3540,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3923
3540
|
_proto.getMedicalDataFromConsultId =
|
3924
3541
|
/*#__PURE__*/
|
3925
3542
|
function () {
|
3926
|
-
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3927
|
-
return
|
3543
|
+
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(consultationId, forceRefresh) {
|
3544
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
3928
3545
|
while (1) {
|
3929
3546
|
switch (_context24.prev = _context24.next) {
|
3930
3547
|
case 0:
|
@@ -3942,7 +3559,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3942
3559
|
}, _callee24, this);
|
3943
3560
|
}));
|
3944
3561
|
|
3945
|
-
function getMedicalDataFromConsultId(
|
3562
|
+
function getMedicalDataFromConsultId(_x70, _x71) {
|
3946
3563
|
return _getMedicalDataFromConsultId.apply(this, arguments);
|
3947
3564
|
}
|
3948
3565
|
|
@@ -3950,12 +3567,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
3950
3567
|
}();
|
3951
3568
|
|
3952
3569
|
_proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
|
3953
|
-
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3570
|
+
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(consultationId, category, forceRefresh) {
|
3954
3571
|
var _this2 = this;
|
3955
3572
|
|
3956
3573
|
var grants, workflowData, _loop, _iterator, _step;
|
3957
3574
|
|
3958
|
-
return
|
3575
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context27) {
|
3959
3576
|
while (1) {
|
3960
3577
|
switch (_context27.prev = _context27.next) {
|
3961
3578
|
case 0:
|
@@ -3971,9 +3588,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3971
3588
|
case 3:
|
3972
3589
|
grants = _context27.sent;
|
3973
3590
|
workflowData = [];
|
3974
|
-
_loop = /*#__PURE__*/
|
3591
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
3975
3592
|
var grant, manifest, data;
|
3976
|
-
return
|
3593
|
+
return _regeneratorRuntime().wrap(function _loop$(_context26) {
|
3977
3594
|
while (1) {
|
3978
3595
|
switch (_context26.prev = _context26.next) {
|
3979
3596
|
case 0:
|
@@ -4007,8 +3624,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4007
3624
|
case 8:
|
4008
3625
|
_context26.next = 10;
|
4009
3626
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4010
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
4011
|
-
return
|
3627
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(entry) {
|
3628
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
4012
3629
|
while (1) {
|
4013
3630
|
switch (_context25.prev = _context25.next) {
|
4014
3631
|
case 0:
|
@@ -4035,7 +3652,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4035
3652
|
}, _callee25);
|
4036
3653
|
}));
|
4037
3654
|
|
4038
|
-
return function (
|
3655
|
+
return function (_x75) {
|
4039
3656
|
return _ref3.apply(this, arguments);
|
4040
3657
|
};
|
4041
3658
|
}()));
|
@@ -4076,7 +3693,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4076
3693
|
}, _callee26, this);
|
4077
3694
|
}));
|
4078
3695
|
|
4079
|
-
function getMetaCategoryFromConsultId(
|
3696
|
+
function getMetaCategoryFromConsultId(_x72, _x73, _x74) {
|
4080
3697
|
return _getMetaCategoryFromConsultId.apply(this, arguments);
|
4081
3698
|
}
|
4082
3699
|
|
@@ -4092,9 +3709,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4092
3709
|
_proto.getPersonalInformations =
|
4093
3710
|
/*#__PURE__*/
|
4094
3711
|
function () {
|
4095
|
-
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3712
|
+
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(userId) {
|
4096
3713
|
var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4097
|
-
return
|
3714
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context28) {
|
4098
3715
|
while (1) {
|
4099
3716
|
switch (_context28.prev = _context28.next) {
|
4100
3717
|
case 0:
|
@@ -4163,7 +3780,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4163
3780
|
}, _callee27, this);
|
4164
3781
|
}));
|
4165
3782
|
|
4166
|
-
function getPersonalInformations(
|
3783
|
+
function getPersonalInformations(_x76) {
|
4167
3784
|
return _getPersonalInformations.apply(this, arguments);
|
4168
3785
|
}
|
4169
3786
|
|
@@ -4180,9 +3797,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4180
3797
|
_proto.getGrantFromConsultId =
|
4181
3798
|
/*#__PURE__*/
|
4182
3799
|
function () {
|
4183
|
-
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3800
|
+
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(consultationId) {
|
4184
3801
|
var grants;
|
4185
|
-
return
|
3802
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context29) {
|
4186
3803
|
while (1) {
|
4187
3804
|
switch (_context29.prev = _context29.next) {
|
4188
3805
|
case 0:
|
@@ -4212,7 +3829,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4212
3829
|
}, _callee28, this);
|
4213
3830
|
}));
|
4214
3831
|
|
4215
|
-
function getGrantFromConsultId(
|
3832
|
+
function getGrantFromConsultId(_x77) {
|
4216
3833
|
return _getGrantFromConsultId.apply(this, arguments);
|
4217
3834
|
}
|
4218
3835
|
|
@@ -4228,9 +3845,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4228
3845
|
_proto.getIdentityFromConsultId =
|
4229
3846
|
/*#__PURE__*/
|
4230
3847
|
function () {
|
4231
|
-
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3848
|
+
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(consultationId) {
|
4232
3849
|
var grant;
|
4233
|
-
return
|
3850
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context30) {
|
4234
3851
|
while (1) {
|
4235
3852
|
switch (_context30.prev = _context30.next) {
|
4236
3853
|
case 0:
|
@@ -4262,7 +3879,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4262
3879
|
}, _callee29, this);
|
4263
3880
|
}));
|
4264
3881
|
|
4265
|
-
function getIdentityFromConsultId(
|
3882
|
+
function getIdentityFromConsultId(_x78) {
|
4266
3883
|
return _getIdentityFromConsultId.apply(this, arguments);
|
4267
3884
|
}
|
4268
3885
|
|
@@ -4283,11 +3900,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4283
3900
|
_proto.getLockboxManifest =
|
4284
3901
|
/*#__PURE__*/
|
4285
3902
|
function () {
|
4286
|
-
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3903
|
+
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
|
4287
3904
|
var _this3 = this;
|
4288
3905
|
|
4289
3906
|
var manifestKey;
|
4290
|
-
return
|
3907
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context32) {
|
4291
3908
|
while (1) {
|
4292
3909
|
switch (_context32.prev = _context32.next) {
|
4293
3910
|
case 0:
|
@@ -4312,9 +3929,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4312
3929
|
case 4:
|
4313
3930
|
return _context32.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
|
4314
3931
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4315
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
3932
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(entry) {
|
4316
3933
|
var privateMeta;
|
4317
|
-
return
|
3934
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context31) {
|
4318
3935
|
while (1) {
|
4319
3936
|
switch (_context31.prev = _context31.next) {
|
4320
3937
|
case 0:
|
@@ -4341,7 +3958,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4341
3958
|
}, _callee30);
|
4342
3959
|
}));
|
4343
3960
|
|
4344
|
-
return function (
|
3961
|
+
return function (_x84) {
|
4345
3962
|
return _ref4.apply(this, arguments);
|
4346
3963
|
};
|
4347
3964
|
}())).then(function (manifest) {
|
@@ -4357,7 +3974,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4357
3974
|
}, _callee31, this);
|
4358
3975
|
}));
|
4359
3976
|
|
4360
|
-
function getLockboxManifest(
|
3977
|
+
function getLockboxManifest(_x79, _x80, _x81, _x82, _x83) {
|
4361
3978
|
return _getLockboxManifest.apply(this, arguments);
|
4362
3979
|
}
|
4363
3980
|
|
@@ -4375,11 +3992,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4375
3992
|
_proto.createPersonalInformations =
|
4376
3993
|
/*#__PURE__*/
|
4377
3994
|
function () {
|
4378
|
-
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3995
|
+
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(identity, data, dataUuid) {
|
4379
3996
|
var _yield$this$getGrants;
|
4380
3997
|
|
4381
3998
|
var lockboxUuid;
|
4382
|
-
return
|
3999
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context33) {
|
4383
4000
|
while (1) {
|
4384
4001
|
switch (_context33.prev = _context33.next) {
|
4385
4002
|
case 0:
|
@@ -4427,7 +4044,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4427
4044
|
}, _callee32, this);
|
4428
4045
|
}));
|
4429
4046
|
|
4430
|
-
function createPersonalInformations(
|
4047
|
+
function createPersonalInformations(_x85, _x86, _x87) {
|
4431
4048
|
return _createPersonalInformations.apply(this, arguments);
|
4432
4049
|
}
|
4433
4050
|
|
@@ -4445,11 +4062,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4445
4062
|
_proto.createUserPreference =
|
4446
4063
|
/*#__PURE__*/
|
4447
4064
|
function () {
|
4448
|
-
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4065
|
+
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(identity, preference, dataUuid) {
|
4449
4066
|
var _yield$this$getGrants2;
|
4450
4067
|
|
4451
4068
|
var lockboxUuid;
|
4452
|
-
return
|
4069
|
+
return _regeneratorRuntime().wrap(function _callee33$(_context34) {
|
4453
4070
|
while (1) {
|
4454
4071
|
switch (_context34.prev = _context34.next) {
|
4455
4072
|
case 0:
|
@@ -4497,7 +4114,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4497
4114
|
}, _callee33, this);
|
4498
4115
|
}));
|
4499
4116
|
|
4500
|
-
function createUserPreference(
|
4117
|
+
function createUserPreference(_x88, _x89, _x90) {
|
4501
4118
|
return _createUserPreference.apply(this, arguments);
|
4502
4119
|
}
|
4503
4120
|
|
@@ -4513,9 +4130,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4513
4130
|
_proto.getDataFromGrant =
|
4514
4131
|
/*#__PURE__*/
|
4515
4132
|
function () {
|
4516
|
-
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4133
|
+
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(grant, filter) {
|
4517
4134
|
var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4518
|
-
return
|
4135
|
+
return _regeneratorRuntime().wrap(function _callee34$(_context35) {
|
4519
4136
|
while (1) {
|
4520
4137
|
switch (_context35.prev = _context35.next) {
|
4521
4138
|
case 0:
|
@@ -4565,7 +4182,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4565
4182
|
}, _callee34, this);
|
4566
4183
|
}));
|
4567
4184
|
|
4568
|
-
function getDataFromGrant(
|
4185
|
+
function getDataFromGrant(_x91, _x92) {
|
4569
4186
|
return _getDataFromGrant.apply(this, arguments);
|
4570
4187
|
}
|
4571
4188
|
|
@@ -4581,9 +4198,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4581
4198
|
_proto.getUserPreferenceFromConsultId =
|
4582
4199
|
/*#__PURE__*/
|
4583
4200
|
function () {
|
4584
|
-
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4201
|
+
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(consultationId) {
|
4585
4202
|
var grant;
|
4586
|
-
return
|
4203
|
+
return _regeneratorRuntime().wrap(function _callee35$(_context36) {
|
4587
4204
|
while (1) {
|
4588
4205
|
switch (_context36.prev = _context36.next) {
|
4589
4206
|
case 0:
|
@@ -4614,7 +4231,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4614
4231
|
}, _callee35, this);
|
4615
4232
|
}));
|
4616
4233
|
|
4617
|
-
function getUserPreferenceFromConsultId(
|
4234
|
+
function getUserPreferenceFromConsultId(_x93) {
|
4618
4235
|
return _getUserPreferenceFromConsultId.apply(this, arguments);
|
4619
4236
|
}
|
4620
4237
|
|
@@ -4630,9 +4247,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4630
4247
|
_proto.getUserPreference =
|
4631
4248
|
/*#__PURE__*/
|
4632
4249
|
function () {
|
4633
|
-
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4250
|
+
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(identity) {
|
4634
4251
|
var grant;
|
4635
|
-
return
|
4252
|
+
return _regeneratorRuntime().wrap(function _callee36$(_context37) {
|
4636
4253
|
while (1) {
|
4637
4254
|
switch (_context37.prev = _context37.next) {
|
4638
4255
|
case 0:
|
@@ -4665,7 +4282,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4665
4282
|
}, _callee36, this);
|
4666
4283
|
}));
|
4667
4284
|
|
4668
|
-
function getUserPreference(
|
4285
|
+
function getUserPreference(_x94) {
|
4669
4286
|
return _getUserPreference.apply(this, arguments);
|
4670
4287
|
}
|
4671
4288
|
|
@@ -4681,9 +4298,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4681
4298
|
_proto.getRecoveryDataFromConsultId =
|
4682
4299
|
/*#__PURE__*/
|
4683
4300
|
function () {
|
4684
|
-
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4301
|
+
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(consultationId) {
|
4685
4302
|
var grant;
|
4686
|
-
return
|
4303
|
+
return _regeneratorRuntime().wrap(function _callee37$(_context38) {
|
4687
4304
|
while (1) {
|
4688
4305
|
switch (_context38.prev = _context38.next) {
|
4689
4306
|
case 0:
|
@@ -4714,7 +4331,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4714
4331
|
}, _callee37, this);
|
4715
4332
|
}));
|
4716
4333
|
|
4717
|
-
function getRecoveryDataFromConsultId(
|
4334
|
+
function getRecoveryDataFromConsultId(_x95) {
|
4718
4335
|
return _getRecoveryDataFromConsultId.apply(this, arguments);
|
4719
4336
|
}
|
4720
4337
|
|
@@ -4730,9 +4347,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4730
4347
|
_proto.getRecoveryData =
|
4731
4348
|
/*#__PURE__*/
|
4732
4349
|
function () {
|
4733
|
-
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4350
|
+
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(identity) {
|
4734
4351
|
var grant;
|
4735
|
-
return
|
4352
|
+
return _regeneratorRuntime().wrap(function _callee38$(_context39) {
|
4736
4353
|
while (1) {
|
4737
4354
|
switch (_context39.prev = _context39.next) {
|
4738
4355
|
case 0:
|
@@ -4765,7 +4382,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4765
4382
|
}, _callee38, this);
|
4766
4383
|
}));
|
4767
4384
|
|
4768
|
-
function getRecoveryData(
|
4385
|
+
function getRecoveryData(_x96) {
|
4769
4386
|
return _getRecoveryData.apply(this, arguments);
|
4770
4387
|
}
|
4771
4388
|
|
@@ -4786,10 +4403,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4786
4403
|
_proto.getAssignedConsultations =
|
4787
4404
|
/*#__PURE__*/
|
4788
4405
|
function () {
|
4789
|
-
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4406
|
+
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(practiceUuid) {
|
4790
4407
|
var _this4 = this;
|
4791
4408
|
|
4792
|
-
return
|
4409
|
+
return _regeneratorRuntime().wrap(function _callee40$(_context41) {
|
4793
4410
|
while (1) {
|
4794
4411
|
switch (_context41.prev = _context41.next) {
|
4795
4412
|
case 0:
|
@@ -4804,8 +4421,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4804
4421
|
documentType: DocumentType.PopulatedWorkflowData
|
4805
4422
|
}, true, undefined).then(function (manifest) {
|
4806
4423
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4807
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
4808
|
-
return
|
4424
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(entry) {
|
4425
|
+
return _regeneratorRuntime().wrap(function _callee39$(_context40) {
|
4809
4426
|
while (1) {
|
4810
4427
|
switch (_context40.prev = _context40.next) {
|
4811
4428
|
case 0:
|
@@ -4823,7 +4440,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4823
4440
|
}, _callee39);
|
4824
4441
|
}));
|
4825
4442
|
|
4826
|
-
return function (
|
4443
|
+
return function (_x98) {
|
4827
4444
|
return _ref5.apply(this, arguments);
|
4828
4445
|
};
|
4829
4446
|
}())).then(function (promise) {
|
@@ -4843,7 +4460,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4843
4460
|
}, _callee40, this);
|
4844
4461
|
}));
|
4845
4462
|
|
4846
|
-
function getAssignedConsultations(
|
4463
|
+
function getAssignedConsultations(_x97) {
|
4847
4464
|
return _getAssignedConsultations.apply(this, arguments);
|
4848
4465
|
}
|
4849
4466
|
|
@@ -4859,11 +4476,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4859
4476
|
_proto.getPastConsultationsFromConsultId =
|
4860
4477
|
/*#__PURE__*/
|
4861
4478
|
function () {
|
4862
|
-
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4479
|
+
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(consultationId, practiceUuid) {
|
4863
4480
|
var _this5 = this;
|
4864
4481
|
|
4865
4482
|
var grant, consultationsInLockbox;
|
4866
|
-
return
|
4483
|
+
return _regeneratorRuntime().wrap(function _callee42$(_context43) {
|
4867
4484
|
while (1) {
|
4868
4485
|
switch (_context43.prev = _context43.next) {
|
4869
4486
|
case 0:
|
@@ -4902,8 +4519,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4902
4519
|
case 10:
|
4903
4520
|
_context43.next = 12;
|
4904
4521
|
return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
|
4905
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
4906
|
-
return
|
4522
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(consultId) {
|
4523
|
+
return _regeneratorRuntime().wrap(function _callee41$(_context42) {
|
4907
4524
|
while (1) {
|
4908
4525
|
switch (_context42.prev = _context42.next) {
|
4909
4526
|
case 0:
|
@@ -4921,7 +4538,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4921
4538
|
}, _callee41);
|
4922
4539
|
}));
|
4923
4540
|
|
4924
|
-
return function (
|
4541
|
+
return function (_x101) {
|
4925
4542
|
return _ref6.apply(this, arguments);
|
4926
4543
|
};
|
4927
4544
|
}()));
|
@@ -4937,7 +4554,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4937
4554
|
}, _callee42, this);
|
4938
4555
|
}));
|
4939
4556
|
|
4940
|
-
function getPastConsultationsFromConsultId(
|
4557
|
+
function getPastConsultationsFromConsultId(_x99, _x100) {
|
4941
4558
|
return _getPastConsultationsFromConsultId.apply(this, arguments);
|
4942
4559
|
}
|
4943
4560
|
|
@@ -4954,10 +4571,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4954
4571
|
_proto.getPatientConsultationData =
|
4955
4572
|
/*#__PURE__*/
|
4956
4573
|
function () {
|
4957
|
-
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4574
|
+
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(consultationId, forceRefresh) {
|
4958
4575
|
var _this6 = this;
|
4959
4576
|
|
4960
|
-
return
|
4577
|
+
return _regeneratorRuntime().wrap(function _callee43$(_context44) {
|
4961
4578
|
while (1) {
|
4962
4579
|
switch (_context44.prev = _context44.next) {
|
4963
4580
|
case 0:
|
@@ -4995,7 +4612,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4995
4612
|
}, _callee43, this);
|
4996
4613
|
}));
|
4997
4614
|
|
4998
|
-
function getPatientConsultationData(
|
4615
|
+
function getPatientConsultationData(_x102, _x103) {
|
4999
4616
|
return _getPatientConsultationData.apply(this, arguments);
|
5000
4617
|
}
|
5001
4618
|
|
@@ -5011,8 +4628,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5011
4628
|
_proto.getPatientPrescriptionsList =
|
5012
4629
|
/*#__PURE__*/
|
5013
4630
|
function () {
|
5014
|
-
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5015
|
-
return
|
4631
|
+
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(consultationId) {
|
4632
|
+
return _regeneratorRuntime().wrap(function _callee44$(_context45) {
|
5016
4633
|
while (1) {
|
5017
4634
|
switch (_context45.prev = _context45.next) {
|
5018
4635
|
case 0:
|
@@ -5029,7 +4646,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5029
4646
|
}, _callee44, this);
|
5030
4647
|
}));
|
5031
4648
|
|
5032
|
-
function getPatientPrescriptionsList(
|
4649
|
+
function getPatientPrescriptionsList(_x104) {
|
5033
4650
|
return _getPatientPrescriptionsList.apply(this, arguments);
|
5034
4651
|
}
|
5035
4652
|
|
@@ -5045,8 +4662,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5045
4662
|
_proto.getPatientResultsList =
|
5046
4663
|
/*#__PURE__*/
|
5047
4664
|
function () {
|
5048
|
-
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5049
|
-
return
|
4665
|
+
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(consultationId) {
|
4666
|
+
return _regeneratorRuntime().wrap(function _callee45$(_context46) {
|
5050
4667
|
while (1) {
|
5051
4668
|
switch (_context46.prev = _context46.next) {
|
5052
4669
|
case 0:
|
@@ -5063,7 +4680,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5063
4680
|
}, _callee45, this);
|
5064
4681
|
}));
|
5065
4682
|
|
5066
|
-
function getPatientResultsList(
|
4683
|
+
function getPatientResultsList(_x105) {
|
5067
4684
|
return _getPatientResultsList.apply(this, arguments);
|
5068
4685
|
}
|
5069
4686
|
|
@@ -5079,8 +4696,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5079
4696
|
_proto.getPatientTreatmentPlans =
|
5080
4697
|
/*#__PURE__*/
|
5081
4698
|
function () {
|
5082
|
-
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5083
|
-
return
|
4699
|
+
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(consultationId) {
|
4700
|
+
return _regeneratorRuntime().wrap(function _callee46$(_context47) {
|
5084
4701
|
while (1) {
|
5085
4702
|
switch (_context47.prev = _context47.next) {
|
5086
4703
|
case 0:
|
@@ -5097,7 +4714,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5097
4714
|
}, _callee46, this);
|
5098
4715
|
}));
|
5099
4716
|
|
5100
|
-
function getPatientTreatmentPlans(
|
4717
|
+
function getPatientTreatmentPlans(_x106) {
|
5101
4718
|
return _getPatientTreatmentPlans.apply(this, arguments);
|
5102
4719
|
}
|
5103
4720
|
|
@@ -5114,8 +4731,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5114
4731
|
_proto.getPatientTreatmentPlanByUuid =
|
5115
4732
|
/*#__PURE__*/
|
5116
4733
|
function () {
|
5117
|
-
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5118
|
-
return
|
4734
|
+
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(consultationId, treatmentPlanId) {
|
4735
|
+
return _regeneratorRuntime().wrap(function _callee47$(_context48) {
|
5119
4736
|
while (1) {
|
5120
4737
|
switch (_context48.prev = _context48.next) {
|
5121
4738
|
case 0:
|
@@ -5133,7 +4750,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5133
4750
|
}, _callee47, this);
|
5134
4751
|
}));
|
5135
4752
|
|
5136
|
-
function getPatientTreatmentPlanByUuid(
|
4753
|
+
function getPatientTreatmentPlanByUuid(_x107, _x108) {
|
5137
4754
|
return _getPatientTreatmentPlanByUuid.apply(this, arguments);
|
5138
4755
|
}
|
5139
4756
|
|
@@ -5153,10 +4770,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
5153
4770
|
_proto.getPatientDocumentsList =
|
5154
4771
|
/*#__PURE__*/
|
5155
4772
|
function () {
|
5156
|
-
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4773
|
+
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(filters, expandPrivateMetadata, consultationId) {
|
5157
4774
|
var _this7 = this;
|
5158
4775
|
|
5159
|
-
return
|
4776
|
+
return _regeneratorRuntime().wrap(function _callee49$(_context50) {
|
5160
4777
|
while (1) {
|
5161
4778
|
switch (_context50.prev = _context50.next) {
|
5162
4779
|
case 0:
|
@@ -5172,8 +4789,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5172
4789
|
consultationId: consultationId
|
5173
4790
|
}), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
|
5174
4791
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
5175
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
5176
|
-
return
|
4792
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(entry) {
|
4793
|
+
return _regeneratorRuntime().wrap(function _callee48$(_context49) {
|
5177
4794
|
while (1) {
|
5178
4795
|
switch (_context49.prev = _context49.next) {
|
5179
4796
|
case 0:
|
@@ -5190,7 +4807,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5190
4807
|
}, _callee48);
|
5191
4808
|
}));
|
5192
4809
|
|
5193
|
-
return function (
|
4810
|
+
return function (_x112) {
|
5194
4811
|
return _ref7.apply(this, arguments);
|
5195
4812
|
};
|
5196
4813
|
}()));
|
@@ -5208,7 +4825,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5208
4825
|
}, _callee49, this);
|
5209
4826
|
}));
|
5210
4827
|
|
5211
|
-
function getPatientDocumentsList(
|
4828
|
+
function getPatientDocumentsList(_x109, _x110, _x111) {
|
5212
4829
|
return _getPatientDocumentsList.apply(this, arguments);
|
5213
4830
|
}
|
5214
4831
|
|
@@ -5231,9 +4848,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5231
4848
|
_proto.recoverPrivateKeyFromSecurityQuestions =
|
5232
4849
|
/*#__PURE__*/
|
5233
4850
|
function () {
|
5234
|
-
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4851
|
+
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5235
4852
|
var shards, answeredShards, privateKey;
|
5236
|
-
return
|
4853
|
+
return _regeneratorRuntime().wrap(function _callee50$(_context51) {
|
5237
4854
|
while (1) {
|
5238
4855
|
switch (_context51.prev = _context51.next) {
|
5239
4856
|
case 0:
|
@@ -5270,7 +4887,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5270
4887
|
}, _callee50, this);
|
5271
4888
|
}));
|
5272
4889
|
|
5273
|
-
function recoverPrivateKeyFromSecurityQuestions(
|
4890
|
+
function recoverPrivateKeyFromSecurityQuestions(_x113, _x114, _x115, _x116) {
|
5274
4891
|
return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
|
5275
4892
|
}
|
5276
4893
|
|
@@ -5287,9 +4904,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5287
4904
|
_proto.recoverPrivateKeyFromPassword =
|
5288
4905
|
/*#__PURE__*/
|
5289
4906
|
function () {
|
5290
|
-
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4907
|
+
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(id, password) {
|
5291
4908
|
var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
|
5292
|
-
return
|
4909
|
+
return _regeneratorRuntime().wrap(function _callee51$(_context52) {
|
5293
4910
|
while (1) {
|
5294
4911
|
switch (_context52.prev = _context52.next) {
|
5295
4912
|
case 0:
|
@@ -5318,7 +4935,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5318
4935
|
}, _callee51, this);
|
5319
4936
|
}));
|
5320
4937
|
|
5321
|
-
function recoverPrivateKeyFromPassword(
|
4938
|
+
function recoverPrivateKeyFromPassword(_x117, _x118) {
|
5322
4939
|
return _recoverPrivateKeyFromPassword.apply(this, arguments);
|
5323
4940
|
}
|
5324
4941
|
|
@@ -5335,9 +4952,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5335
4952
|
_proto.recoverPrivateKeyFromMasterKey =
|
5336
4953
|
/*#__PURE__*/
|
5337
4954
|
function () {
|
5338
|
-
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4955
|
+
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(id, masterKey) {
|
5339
4956
|
var recoveryPayload, symmetricDecryptor, privateKey;
|
5340
|
-
return
|
4957
|
+
return _regeneratorRuntime().wrap(function _callee52$(_context53) {
|
5341
4958
|
while (1) {
|
5342
4959
|
switch (_context53.prev = _context53.next) {
|
5343
4960
|
case 0:
|
@@ -5358,7 +4975,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5358
4975
|
}, _callee52, this);
|
5359
4976
|
}));
|
5360
4977
|
|
5361
|
-
function recoverPrivateKeyFromMasterKey(
|
4978
|
+
function recoverPrivateKeyFromMasterKey(_x119, _x120) {
|
5362
4979
|
return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
|
5363
4980
|
}
|
5364
4981
|
|
@@ -5377,9 +4994,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5377
4994
|
_proto.updateSecurityQuestions =
|
5378
4995
|
/*#__PURE__*/
|
5379
4996
|
function () {
|
5380
|
-
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4997
|
+
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5381
4998
|
var securityQuestionPayload, updateRequest;
|
5382
|
-
return
|
4999
|
+
return _regeneratorRuntime().wrap(function _callee53$(_context54) {
|
5383
5000
|
while (1) {
|
5384
5001
|
switch (_context54.prev = _context54.next) {
|
5385
5002
|
case 0:
|
@@ -5409,7 +5026,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5409
5026
|
}, _callee53, this);
|
5410
5027
|
}));
|
5411
5028
|
|
5412
|
-
function updateSecurityQuestions(
|
5029
|
+
function updateSecurityQuestions(_x121, _x122, _x123, _x124) {
|
5413
5030
|
return _updateSecurityQuestions.apply(this, arguments);
|
5414
5031
|
}
|
5415
5032
|
|
@@ -5431,9 +5048,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5431
5048
|
_proto.updatePassword =
|
5432
5049
|
/*#__PURE__*/
|
5433
5050
|
function () {
|
5434
|
-
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5051
|
+
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(id, newPassword, oldPassword) {
|
5435
5052
|
var symmetricEncryptor, passwordPayload, updateRequest;
|
5436
|
-
return
|
5053
|
+
return _regeneratorRuntime().wrap(function _callee54$(_context55) {
|
5437
5054
|
while (1) {
|
5438
5055
|
switch (_context55.prev = _context55.next) {
|
5439
5056
|
case 0:
|
@@ -5474,7 +5091,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5474
5091
|
}, _callee54, this);
|
5475
5092
|
}));
|
5476
5093
|
|
5477
|
-
function updatePassword(
|
5094
|
+
function updatePassword(_x125, _x126, _x127) {
|
5478
5095
|
return _updatePassword.apply(this, arguments);
|
5479
5096
|
}
|
5480
5097
|
|
@@ -5493,9 +5110,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5493
5110
|
_proto.updateMasterKey =
|
5494
5111
|
/*#__PURE__*/
|
5495
5112
|
function () {
|
5496
|
-
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5113
|
+
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55(id, masterKey, lockboxUuid) {
|
5497
5114
|
var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
|
5498
|
-
return
|
5115
|
+
return _regeneratorRuntime().wrap(function _callee55$(_context56) {
|
5499
5116
|
while (1) {
|
5500
5117
|
switch (_context56.prev = _context56.next) {
|
5501
5118
|
case 0:
|
@@ -5536,7 +5153,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5536
5153
|
}, _callee55, this);
|
5537
5154
|
}));
|
5538
5155
|
|
5539
|
-
function updateMasterKey(
|
5156
|
+
function updateMasterKey(_x128, _x129, _x130) {
|
5540
5157
|
return _updateMasterKey.apply(this, arguments);
|
5541
5158
|
}
|
5542
5159
|
|