oro-sdk 3.20.0 → 3.21.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/oro-sdk.cjs.development.js +495 -919
- 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 +495 -919
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/LICENSE +0 -21
@@ -9,6 +9,351 @@ var initApis__default = _interopDefault(initApis);
|
|
9
9
|
var oroToolbox = require('oro-toolbox');
|
10
10
|
var idbKeyval = require('idb-keyval');
|
11
11
|
|
12
|
+
function _regeneratorRuntime() {
|
13
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
14
|
+
|
15
|
+
_regeneratorRuntime = function () {
|
16
|
+
return exports;
|
17
|
+
};
|
18
|
+
|
19
|
+
var exports = {},
|
20
|
+
Op = Object.prototype,
|
21
|
+
hasOwn = Op.hasOwnProperty,
|
22
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
23
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
24
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
25
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
26
|
+
|
27
|
+
function define(obj, key, value) {
|
28
|
+
return Object.defineProperty(obj, key, {
|
29
|
+
value: value,
|
30
|
+
enumerable: !0,
|
31
|
+
configurable: !0,
|
32
|
+
writable: !0
|
33
|
+
}), obj[key];
|
34
|
+
}
|
35
|
+
|
36
|
+
try {
|
37
|
+
define({}, "");
|
38
|
+
} catch (err) {
|
39
|
+
define = function (obj, key, value) {
|
40
|
+
return obj[key] = value;
|
41
|
+
};
|
42
|
+
}
|
43
|
+
|
44
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
45
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
46
|
+
generator = Object.create(protoGenerator.prototype),
|
47
|
+
context = new Context(tryLocsList || []);
|
48
|
+
return generator._invoke = function (innerFn, self, context) {
|
49
|
+
var state = "suspendedStart";
|
50
|
+
return function (method, arg) {
|
51
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
52
|
+
|
53
|
+
if ("completed" === state) {
|
54
|
+
if ("throw" === method) throw arg;
|
55
|
+
return doneResult();
|
56
|
+
}
|
57
|
+
|
58
|
+
for (context.method = method, context.arg = arg;;) {
|
59
|
+
var delegate = context.delegate;
|
60
|
+
|
61
|
+
if (delegate) {
|
62
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
63
|
+
|
64
|
+
if (delegateResult) {
|
65
|
+
if (delegateResult === ContinueSentinel) continue;
|
66
|
+
return delegateResult;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
71
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
72
|
+
context.dispatchException(context.arg);
|
73
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
74
|
+
state = "executing";
|
75
|
+
var record = tryCatch(innerFn, self, context);
|
76
|
+
|
77
|
+
if ("normal" === record.type) {
|
78
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
79
|
+
return {
|
80
|
+
value: record.arg,
|
81
|
+
done: context.done
|
82
|
+
};
|
83
|
+
}
|
84
|
+
|
85
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
86
|
+
}
|
87
|
+
};
|
88
|
+
}(innerFn, self, context), generator;
|
89
|
+
}
|
90
|
+
|
91
|
+
function tryCatch(fn, obj, arg) {
|
92
|
+
try {
|
93
|
+
return {
|
94
|
+
type: "normal",
|
95
|
+
arg: fn.call(obj, arg)
|
96
|
+
};
|
97
|
+
} catch (err) {
|
98
|
+
return {
|
99
|
+
type: "throw",
|
100
|
+
arg: err
|
101
|
+
};
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
exports.wrap = wrap;
|
106
|
+
var ContinueSentinel = {};
|
107
|
+
|
108
|
+
function Generator() {}
|
109
|
+
|
110
|
+
function GeneratorFunction() {}
|
111
|
+
|
112
|
+
function GeneratorFunctionPrototype() {}
|
113
|
+
|
114
|
+
var IteratorPrototype = {};
|
115
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
116
|
+
return this;
|
117
|
+
});
|
118
|
+
var getProto = Object.getPrototypeOf,
|
119
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
120
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
121
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
122
|
+
|
123
|
+
function defineIteratorMethods(prototype) {
|
124
|
+
["next", "throw", "return"].forEach(function (method) {
|
125
|
+
define(prototype, method, function (arg) {
|
126
|
+
return this._invoke(method, arg);
|
127
|
+
});
|
128
|
+
});
|
129
|
+
}
|
130
|
+
|
131
|
+
function AsyncIterator(generator, PromiseImpl) {
|
132
|
+
function invoke(method, arg, resolve, reject) {
|
133
|
+
var record = tryCatch(generator[method], generator, arg);
|
134
|
+
|
135
|
+
if ("throw" !== record.type) {
|
136
|
+
var result = record.arg,
|
137
|
+
value = result.value;
|
138
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
139
|
+
invoke("next", value, resolve, reject);
|
140
|
+
}, function (err) {
|
141
|
+
invoke("throw", err, resolve, reject);
|
142
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
143
|
+
result.value = unwrapped, resolve(result);
|
144
|
+
}, function (error) {
|
145
|
+
return invoke("throw", error, resolve, reject);
|
146
|
+
});
|
147
|
+
}
|
148
|
+
|
149
|
+
reject(record.arg);
|
150
|
+
}
|
151
|
+
|
152
|
+
var previousPromise;
|
153
|
+
|
154
|
+
this._invoke = function (method, arg) {
|
155
|
+
function callInvokeWithMethodAndArg() {
|
156
|
+
return new PromiseImpl(function (resolve, reject) {
|
157
|
+
invoke(method, arg, resolve, reject);
|
158
|
+
});
|
159
|
+
}
|
160
|
+
|
161
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
162
|
+
};
|
163
|
+
}
|
164
|
+
|
165
|
+
function maybeInvokeDelegate(delegate, context) {
|
166
|
+
var method = delegate.iterator[context.method];
|
167
|
+
|
168
|
+
if (undefined === method) {
|
169
|
+
if (context.delegate = null, "throw" === context.method) {
|
170
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
171
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
172
|
+
}
|
173
|
+
|
174
|
+
return ContinueSentinel;
|
175
|
+
}
|
176
|
+
|
177
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
178
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
179
|
+
var info = record.arg;
|
180
|
+
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);
|
181
|
+
}
|
182
|
+
|
183
|
+
function pushTryEntry(locs) {
|
184
|
+
var entry = {
|
185
|
+
tryLoc: locs[0]
|
186
|
+
};
|
187
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
188
|
+
}
|
189
|
+
|
190
|
+
function resetTryEntry(entry) {
|
191
|
+
var record = entry.completion || {};
|
192
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
193
|
+
}
|
194
|
+
|
195
|
+
function Context(tryLocsList) {
|
196
|
+
this.tryEntries = [{
|
197
|
+
tryLoc: "root"
|
198
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
199
|
+
}
|
200
|
+
|
201
|
+
function values(iterable) {
|
202
|
+
if (iterable) {
|
203
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
204
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
205
|
+
if ("function" == typeof iterable.next) return iterable;
|
206
|
+
|
207
|
+
if (!isNaN(iterable.length)) {
|
208
|
+
var i = -1,
|
209
|
+
next = function next() {
|
210
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
211
|
+
|
212
|
+
return next.value = undefined, next.done = !0, next;
|
213
|
+
};
|
214
|
+
|
215
|
+
return next.next = next;
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
return {
|
220
|
+
next: doneResult
|
221
|
+
};
|
222
|
+
}
|
223
|
+
|
224
|
+
function doneResult() {
|
225
|
+
return {
|
226
|
+
value: undefined,
|
227
|
+
done: !0
|
228
|
+
};
|
229
|
+
}
|
230
|
+
|
231
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
232
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
233
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
234
|
+
}, exports.mark = function (genFun) {
|
235
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
236
|
+
}, exports.awrap = function (arg) {
|
237
|
+
return {
|
238
|
+
__await: arg
|
239
|
+
};
|
240
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
241
|
+
return this;
|
242
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
243
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
244
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
245
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
246
|
+
return result.done ? result.value : iter.next();
|
247
|
+
});
|
248
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
249
|
+
return this;
|
250
|
+
}), define(Gp, "toString", function () {
|
251
|
+
return "[object Generator]";
|
252
|
+
}), exports.keys = function (object) {
|
253
|
+
var keys = [];
|
254
|
+
|
255
|
+
for (var key in object) keys.push(key);
|
256
|
+
|
257
|
+
return keys.reverse(), function next() {
|
258
|
+
for (; keys.length;) {
|
259
|
+
var key = keys.pop();
|
260
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
261
|
+
}
|
262
|
+
|
263
|
+
return next.done = !0, next;
|
264
|
+
};
|
265
|
+
}, exports.values = values, Context.prototype = {
|
266
|
+
constructor: Context,
|
267
|
+
reset: function (skipTempReset) {
|
268
|
+
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);
|
269
|
+
},
|
270
|
+
stop: function () {
|
271
|
+
this.done = !0;
|
272
|
+
var rootRecord = this.tryEntries[0].completion;
|
273
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
274
|
+
return this.rval;
|
275
|
+
},
|
276
|
+
dispatchException: function (exception) {
|
277
|
+
if (this.done) throw exception;
|
278
|
+
var context = this;
|
279
|
+
|
280
|
+
function handle(loc, caught) {
|
281
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
282
|
+
}
|
283
|
+
|
284
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
285
|
+
var entry = this.tryEntries[i],
|
286
|
+
record = entry.completion;
|
287
|
+
if ("root" === entry.tryLoc) return handle("end");
|
288
|
+
|
289
|
+
if (entry.tryLoc <= this.prev) {
|
290
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
291
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
292
|
+
|
293
|
+
if (hasCatch && hasFinally) {
|
294
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
295
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
296
|
+
} else if (hasCatch) {
|
297
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
298
|
+
} else {
|
299
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
300
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
301
|
+
}
|
302
|
+
}
|
303
|
+
}
|
304
|
+
},
|
305
|
+
abrupt: function (type, arg) {
|
306
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
307
|
+
var entry = this.tryEntries[i];
|
308
|
+
|
309
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
310
|
+
var finallyEntry = entry;
|
311
|
+
break;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
|
315
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
316
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
317
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
318
|
+
},
|
319
|
+
complete: function (record, afterLoc) {
|
320
|
+
if ("throw" === record.type) throw record.arg;
|
321
|
+
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;
|
322
|
+
},
|
323
|
+
finish: function (finallyLoc) {
|
324
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
325
|
+
var entry = this.tryEntries[i];
|
326
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
327
|
+
}
|
328
|
+
},
|
329
|
+
catch: function (tryLoc) {
|
330
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
331
|
+
var entry = this.tryEntries[i];
|
332
|
+
|
333
|
+
if (entry.tryLoc === tryLoc) {
|
334
|
+
var record = entry.completion;
|
335
|
+
|
336
|
+
if ("throw" === record.type) {
|
337
|
+
var thrown = record.arg;
|
338
|
+
resetTryEntry(entry);
|
339
|
+
}
|
340
|
+
|
341
|
+
return thrown;
|
342
|
+
}
|
343
|
+
}
|
344
|
+
|
345
|
+
throw new Error("illegal catch attempt");
|
346
|
+
},
|
347
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
348
|
+
return this.delegate = {
|
349
|
+
iterator: values(iterable),
|
350
|
+
resultName: resultName,
|
351
|
+
nextLoc: nextLoc
|
352
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
353
|
+
}
|
354
|
+
}, exports;
|
355
|
+
}
|
356
|
+
|
12
357
|
function _wrapRegExp() {
|
13
358
|
_wrapRegExp = function (re, groups) {
|
14
359
|
return new BabelRegExp(re, void 0, groups);
|
@@ -94,7 +439,7 @@ function _asyncToGenerator(fn) {
|
|
94
439
|
}
|
95
440
|
|
96
441
|
function _extends() {
|
97
|
-
_extends = Object.assign
|
442
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
98
443
|
for (var i = 1; i < arguments.length; i++) {
|
99
444
|
var source = arguments[i];
|
100
445
|
|
@@ -107,7 +452,6 @@ function _extends() {
|
|
107
452
|
|
108
453
|
return target;
|
109
454
|
};
|
110
|
-
|
111
455
|
return _extends.apply(this, arguments);
|
112
456
|
}
|
113
457
|
|
@@ -137,18 +481,17 @@ function _inheritsLoose(subClass, superClass) {
|
|
137
481
|
}
|
138
482
|
|
139
483
|
function _getPrototypeOf(o) {
|
140
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
484
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
141
485
|
return o.__proto__ || Object.getPrototypeOf(o);
|
142
486
|
};
|
143
487
|
return _getPrototypeOf(o);
|
144
488
|
}
|
145
489
|
|
146
490
|
function _setPrototypeOf(o, p) {
|
147
|
-
_setPrototypeOf = Object.setPrototypeOf
|
491
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
148
492
|
o.__proto__ = p;
|
149
493
|
return o;
|
150
494
|
};
|
151
|
-
|
152
495
|
return _setPrototypeOf(o, p);
|
153
496
|
}
|
154
497
|
|
@@ -167,7 +510,7 @@ function _isNativeReflectConstruct() {
|
|
167
510
|
|
168
511
|
function _construct(Parent, args, Class) {
|
169
512
|
if (_isNativeReflectConstruct()) {
|
170
|
-
_construct = Reflect.construct;
|
513
|
+
_construct = Reflect.construct.bind();
|
171
514
|
} else {
|
172
515
|
_construct = function _construct(Parent, args, Class) {
|
173
516
|
var a = [null];
|
@@ -273,766 +616,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
273
616
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
274
617
|
}
|
275
618
|
|
276
|
-
function createCommonjsModule(fn, module) {
|
277
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
278
|
-
}
|
279
|
-
|
280
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
281
|
-
/**
|
282
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
283
|
-
*
|
284
|
-
* This source code is licensed under the MIT license found in the
|
285
|
-
* LICENSE file in the root directory of this source tree.
|
286
|
-
*/
|
287
|
-
|
288
|
-
var runtime = (function (exports) {
|
289
|
-
|
290
|
-
var Op = Object.prototype;
|
291
|
-
var hasOwn = Op.hasOwnProperty;
|
292
|
-
var undefined$1; // More compressible than void 0.
|
293
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
294
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
295
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
296
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
297
|
-
|
298
|
-
function define(obj, key, value) {
|
299
|
-
Object.defineProperty(obj, key, {
|
300
|
-
value: value,
|
301
|
-
enumerable: true,
|
302
|
-
configurable: true,
|
303
|
-
writable: true
|
304
|
-
});
|
305
|
-
return obj[key];
|
306
|
-
}
|
307
|
-
try {
|
308
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
309
|
-
define({}, "");
|
310
|
-
} catch (err) {
|
311
|
-
define = function(obj, key, value) {
|
312
|
-
return obj[key] = value;
|
313
|
-
};
|
314
|
-
}
|
315
|
-
|
316
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
317
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
318
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
319
|
-
var generator = Object.create(protoGenerator.prototype);
|
320
|
-
var context = new Context(tryLocsList || []);
|
321
|
-
|
322
|
-
// The ._invoke method unifies the implementations of the .next,
|
323
|
-
// .throw, and .return methods.
|
324
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
325
|
-
|
326
|
-
return generator;
|
327
|
-
}
|
328
|
-
exports.wrap = wrap;
|
329
|
-
|
330
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
331
|
-
// record like context.tryEntries[i].completion. This interface could
|
332
|
-
// have been (and was previously) designed to take a closure to be
|
333
|
-
// invoked without arguments, but in all the cases we care about we
|
334
|
-
// already have an existing method we want to call, so there's no need
|
335
|
-
// to create a new function object. We can even get away with assuming
|
336
|
-
// the method takes exactly one argument, since that happens to be true
|
337
|
-
// in every case, so we don't have to touch the arguments object. The
|
338
|
-
// only additional allocation required is the completion record, which
|
339
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
340
|
-
function tryCatch(fn, obj, arg) {
|
341
|
-
try {
|
342
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
343
|
-
} catch (err) {
|
344
|
-
return { type: "throw", arg: err };
|
345
|
-
}
|
346
|
-
}
|
347
|
-
|
348
|
-
var GenStateSuspendedStart = "suspendedStart";
|
349
|
-
var GenStateSuspendedYield = "suspendedYield";
|
350
|
-
var GenStateExecuting = "executing";
|
351
|
-
var GenStateCompleted = "completed";
|
352
|
-
|
353
|
-
// Returning this object from the innerFn has the same effect as
|
354
|
-
// breaking out of the dispatch switch statement.
|
355
|
-
var ContinueSentinel = {};
|
356
|
-
|
357
|
-
// Dummy constructor functions that we use as the .constructor and
|
358
|
-
// .constructor.prototype properties for functions that return Generator
|
359
|
-
// objects. For full spec compliance, you may wish to configure your
|
360
|
-
// minifier not to mangle the names of these two functions.
|
361
|
-
function Generator() {}
|
362
|
-
function GeneratorFunction() {}
|
363
|
-
function GeneratorFunctionPrototype() {}
|
364
|
-
|
365
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
366
|
-
// don't natively support it.
|
367
|
-
var IteratorPrototype = {};
|
368
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
369
|
-
return this;
|
370
|
-
});
|
371
|
-
|
372
|
-
var getProto = Object.getPrototypeOf;
|
373
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
374
|
-
if (NativeIteratorPrototype &&
|
375
|
-
NativeIteratorPrototype !== Op &&
|
376
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
377
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
378
|
-
// of the polyfill.
|
379
|
-
IteratorPrototype = NativeIteratorPrototype;
|
380
|
-
}
|
381
|
-
|
382
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
383
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
384
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
385
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
386
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
387
|
-
GeneratorFunction.displayName = define(
|
388
|
-
GeneratorFunctionPrototype,
|
389
|
-
toStringTagSymbol,
|
390
|
-
"GeneratorFunction"
|
391
|
-
);
|
392
|
-
|
393
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
394
|
-
// Iterator interface in terms of a single ._invoke method.
|
395
|
-
function defineIteratorMethods(prototype) {
|
396
|
-
["next", "throw", "return"].forEach(function(method) {
|
397
|
-
define(prototype, method, function(arg) {
|
398
|
-
return this._invoke(method, arg);
|
399
|
-
});
|
400
|
-
});
|
401
|
-
}
|
402
|
-
|
403
|
-
exports.isGeneratorFunction = function(genFun) {
|
404
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
405
|
-
return ctor
|
406
|
-
? ctor === GeneratorFunction ||
|
407
|
-
// For the native GeneratorFunction constructor, the best we can
|
408
|
-
// do is to check its .name property.
|
409
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
410
|
-
: false;
|
411
|
-
};
|
412
|
-
|
413
|
-
exports.mark = function(genFun) {
|
414
|
-
if (Object.setPrototypeOf) {
|
415
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
416
|
-
} else {
|
417
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
418
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
419
|
-
}
|
420
|
-
genFun.prototype = Object.create(Gp);
|
421
|
-
return genFun;
|
422
|
-
};
|
423
|
-
|
424
|
-
// Within the body of any async function, `await x` is transformed to
|
425
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
426
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
427
|
-
// meant to be awaited.
|
428
|
-
exports.awrap = function(arg) {
|
429
|
-
return { __await: arg };
|
430
|
-
};
|
431
|
-
|
432
|
-
function AsyncIterator(generator, PromiseImpl) {
|
433
|
-
function invoke(method, arg, resolve, reject) {
|
434
|
-
var record = tryCatch(generator[method], generator, arg);
|
435
|
-
if (record.type === "throw") {
|
436
|
-
reject(record.arg);
|
437
|
-
} else {
|
438
|
-
var result = record.arg;
|
439
|
-
var value = result.value;
|
440
|
-
if (value &&
|
441
|
-
typeof value === "object" &&
|
442
|
-
hasOwn.call(value, "__await")) {
|
443
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
444
|
-
invoke("next", value, resolve, reject);
|
445
|
-
}, function(err) {
|
446
|
-
invoke("throw", err, resolve, reject);
|
447
|
-
});
|
448
|
-
}
|
449
|
-
|
450
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
451
|
-
// When a yielded Promise is resolved, its final value becomes
|
452
|
-
// the .value of the Promise<{value,done}> result for the
|
453
|
-
// current iteration.
|
454
|
-
result.value = unwrapped;
|
455
|
-
resolve(result);
|
456
|
-
}, function(error) {
|
457
|
-
// If a rejected Promise was yielded, throw the rejection back
|
458
|
-
// into the async generator function so it can be handled there.
|
459
|
-
return invoke("throw", error, resolve, reject);
|
460
|
-
});
|
461
|
-
}
|
462
|
-
}
|
463
|
-
|
464
|
-
var previousPromise;
|
465
|
-
|
466
|
-
function enqueue(method, arg) {
|
467
|
-
function callInvokeWithMethodAndArg() {
|
468
|
-
return new PromiseImpl(function(resolve, reject) {
|
469
|
-
invoke(method, arg, resolve, reject);
|
470
|
-
});
|
471
|
-
}
|
472
|
-
|
473
|
-
return previousPromise =
|
474
|
-
// If enqueue has been called before, then we want to wait until
|
475
|
-
// all previous Promises have been resolved before calling invoke,
|
476
|
-
// so that results are always delivered in the correct order. If
|
477
|
-
// enqueue has not been called before, then it is important to
|
478
|
-
// call invoke immediately, without waiting on a callback to fire,
|
479
|
-
// so that the async generator function has the opportunity to do
|
480
|
-
// any necessary setup in a predictable way. This predictability
|
481
|
-
// is why the Promise constructor synchronously invokes its
|
482
|
-
// executor callback, and why async functions synchronously
|
483
|
-
// execute code before the first await. Since we implement simple
|
484
|
-
// async functions in terms of async generators, it is especially
|
485
|
-
// important to get this right, even though it requires care.
|
486
|
-
previousPromise ? previousPromise.then(
|
487
|
-
callInvokeWithMethodAndArg,
|
488
|
-
// Avoid propagating failures to Promises returned by later
|
489
|
-
// invocations of the iterator.
|
490
|
-
callInvokeWithMethodAndArg
|
491
|
-
) : callInvokeWithMethodAndArg();
|
492
|
-
}
|
493
|
-
|
494
|
-
// Define the unified helper method that is used to implement .next,
|
495
|
-
// .throw, and .return (see defineIteratorMethods).
|
496
|
-
this._invoke = enqueue;
|
497
|
-
}
|
498
|
-
|
499
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
500
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
501
|
-
return this;
|
502
|
-
});
|
503
|
-
exports.AsyncIterator = AsyncIterator;
|
504
|
-
|
505
|
-
// Note that simple async functions are implemented on top of
|
506
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
507
|
-
// the final result produced by the iterator.
|
508
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
509
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
510
|
-
|
511
|
-
var iter = new AsyncIterator(
|
512
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
513
|
-
PromiseImpl
|
514
|
-
);
|
515
|
-
|
516
|
-
return exports.isGeneratorFunction(outerFn)
|
517
|
-
? iter // If outerFn is a generator, return the full iterator.
|
518
|
-
: iter.next().then(function(result) {
|
519
|
-
return result.done ? result.value : iter.next();
|
520
|
-
});
|
521
|
-
};
|
522
|
-
|
523
|
-
function makeInvokeMethod(innerFn, self, context) {
|
524
|
-
var state = GenStateSuspendedStart;
|
525
|
-
|
526
|
-
return function invoke(method, arg) {
|
527
|
-
if (state === GenStateExecuting) {
|
528
|
-
throw new Error("Generator is already running");
|
529
|
-
}
|
530
|
-
|
531
|
-
if (state === GenStateCompleted) {
|
532
|
-
if (method === "throw") {
|
533
|
-
throw arg;
|
534
|
-
}
|
535
|
-
|
536
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
537
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
538
|
-
return doneResult();
|
539
|
-
}
|
540
|
-
|
541
|
-
context.method = method;
|
542
|
-
context.arg = arg;
|
543
|
-
|
544
|
-
while (true) {
|
545
|
-
var delegate = context.delegate;
|
546
|
-
if (delegate) {
|
547
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
548
|
-
if (delegateResult) {
|
549
|
-
if (delegateResult === ContinueSentinel) continue;
|
550
|
-
return delegateResult;
|
551
|
-
}
|
552
|
-
}
|
553
|
-
|
554
|
-
if (context.method === "next") {
|
555
|
-
// Setting context._sent for legacy support of Babel's
|
556
|
-
// function.sent implementation.
|
557
|
-
context.sent = context._sent = context.arg;
|
558
|
-
|
559
|
-
} else if (context.method === "throw") {
|
560
|
-
if (state === GenStateSuspendedStart) {
|
561
|
-
state = GenStateCompleted;
|
562
|
-
throw context.arg;
|
563
|
-
}
|
564
|
-
|
565
|
-
context.dispatchException(context.arg);
|
566
|
-
|
567
|
-
} else if (context.method === "return") {
|
568
|
-
context.abrupt("return", context.arg);
|
569
|
-
}
|
570
|
-
|
571
|
-
state = GenStateExecuting;
|
572
|
-
|
573
|
-
var record = tryCatch(innerFn, self, context);
|
574
|
-
if (record.type === "normal") {
|
575
|
-
// If an exception is thrown from innerFn, we leave state ===
|
576
|
-
// GenStateExecuting and loop back for another invocation.
|
577
|
-
state = context.done
|
578
|
-
? GenStateCompleted
|
579
|
-
: GenStateSuspendedYield;
|
580
|
-
|
581
|
-
if (record.arg === ContinueSentinel) {
|
582
|
-
continue;
|
583
|
-
}
|
584
|
-
|
585
|
-
return {
|
586
|
-
value: record.arg,
|
587
|
-
done: context.done
|
588
|
-
};
|
589
|
-
|
590
|
-
} else if (record.type === "throw") {
|
591
|
-
state = GenStateCompleted;
|
592
|
-
// Dispatch the exception by looping back around to the
|
593
|
-
// context.dispatchException(context.arg) call above.
|
594
|
-
context.method = "throw";
|
595
|
-
context.arg = record.arg;
|
596
|
-
}
|
597
|
-
}
|
598
|
-
};
|
599
|
-
}
|
600
|
-
|
601
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
602
|
-
// result, either by returning a { value, done } result from the
|
603
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
604
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
605
|
-
function maybeInvokeDelegate(delegate, context) {
|
606
|
-
var method = delegate.iterator[context.method];
|
607
|
-
if (method === undefined$1) {
|
608
|
-
// A .throw or .return when the delegate iterator has no .throw
|
609
|
-
// method always terminates the yield* loop.
|
610
|
-
context.delegate = null;
|
611
|
-
|
612
|
-
if (context.method === "throw") {
|
613
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
614
|
-
if (delegate.iterator["return"]) {
|
615
|
-
// If the delegate iterator has a return method, give it a
|
616
|
-
// chance to clean up.
|
617
|
-
context.method = "return";
|
618
|
-
context.arg = undefined$1;
|
619
|
-
maybeInvokeDelegate(delegate, context);
|
620
|
-
|
621
|
-
if (context.method === "throw") {
|
622
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
623
|
-
// "return" to "throw", let that override the TypeError below.
|
624
|
-
return ContinueSentinel;
|
625
|
-
}
|
626
|
-
}
|
627
|
-
|
628
|
-
context.method = "throw";
|
629
|
-
context.arg = new TypeError(
|
630
|
-
"The iterator does not provide a 'throw' method");
|
631
|
-
}
|
632
|
-
|
633
|
-
return ContinueSentinel;
|
634
|
-
}
|
635
|
-
|
636
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
637
|
-
|
638
|
-
if (record.type === "throw") {
|
639
|
-
context.method = "throw";
|
640
|
-
context.arg = record.arg;
|
641
|
-
context.delegate = null;
|
642
|
-
return ContinueSentinel;
|
643
|
-
}
|
644
|
-
|
645
|
-
var info = record.arg;
|
646
|
-
|
647
|
-
if (! info) {
|
648
|
-
context.method = "throw";
|
649
|
-
context.arg = new TypeError("iterator result is not an object");
|
650
|
-
context.delegate = null;
|
651
|
-
return ContinueSentinel;
|
652
|
-
}
|
653
|
-
|
654
|
-
if (info.done) {
|
655
|
-
// Assign the result of the finished delegate to the temporary
|
656
|
-
// variable specified by delegate.resultName (see delegateYield).
|
657
|
-
context[delegate.resultName] = info.value;
|
658
|
-
|
659
|
-
// Resume execution at the desired location (see delegateYield).
|
660
|
-
context.next = delegate.nextLoc;
|
661
|
-
|
662
|
-
// If context.method was "throw" but the delegate handled the
|
663
|
-
// exception, let the outer generator proceed normally. If
|
664
|
-
// context.method was "next", forget context.arg since it has been
|
665
|
-
// "consumed" by the delegate iterator. If context.method was
|
666
|
-
// "return", allow the original .return call to continue in the
|
667
|
-
// outer generator.
|
668
|
-
if (context.method !== "return") {
|
669
|
-
context.method = "next";
|
670
|
-
context.arg = undefined$1;
|
671
|
-
}
|
672
|
-
|
673
|
-
} else {
|
674
|
-
// Re-yield the result returned by the delegate method.
|
675
|
-
return info;
|
676
|
-
}
|
677
|
-
|
678
|
-
// The delegate iterator is finished, so forget it and continue with
|
679
|
-
// the outer generator.
|
680
|
-
context.delegate = null;
|
681
|
-
return ContinueSentinel;
|
682
|
-
}
|
683
|
-
|
684
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
685
|
-
// unified ._invoke helper method.
|
686
|
-
defineIteratorMethods(Gp);
|
687
|
-
|
688
|
-
define(Gp, toStringTagSymbol, "Generator");
|
689
|
-
|
690
|
-
// A Generator should always return itself as the iterator object when the
|
691
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
692
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
693
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
694
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
695
|
-
define(Gp, iteratorSymbol, function() {
|
696
|
-
return this;
|
697
|
-
});
|
698
|
-
|
699
|
-
define(Gp, "toString", function() {
|
700
|
-
return "[object Generator]";
|
701
|
-
});
|
702
|
-
|
703
|
-
function pushTryEntry(locs) {
|
704
|
-
var entry = { tryLoc: locs[0] };
|
705
|
-
|
706
|
-
if (1 in locs) {
|
707
|
-
entry.catchLoc = locs[1];
|
708
|
-
}
|
709
|
-
|
710
|
-
if (2 in locs) {
|
711
|
-
entry.finallyLoc = locs[2];
|
712
|
-
entry.afterLoc = locs[3];
|
713
|
-
}
|
714
|
-
|
715
|
-
this.tryEntries.push(entry);
|
716
|
-
}
|
717
|
-
|
718
|
-
function resetTryEntry(entry) {
|
719
|
-
var record = entry.completion || {};
|
720
|
-
record.type = "normal";
|
721
|
-
delete record.arg;
|
722
|
-
entry.completion = record;
|
723
|
-
}
|
724
|
-
|
725
|
-
function Context(tryLocsList) {
|
726
|
-
// The root entry object (effectively a try statement without a catch
|
727
|
-
// or a finally block) gives us a place to store values thrown from
|
728
|
-
// locations where there is no enclosing try statement.
|
729
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
730
|
-
tryLocsList.forEach(pushTryEntry, this);
|
731
|
-
this.reset(true);
|
732
|
-
}
|
733
|
-
|
734
|
-
exports.keys = function(object) {
|
735
|
-
var keys = [];
|
736
|
-
for (var key in object) {
|
737
|
-
keys.push(key);
|
738
|
-
}
|
739
|
-
keys.reverse();
|
740
|
-
|
741
|
-
// Rather than returning an object with a next method, we keep
|
742
|
-
// things simple and return the next function itself.
|
743
|
-
return function next() {
|
744
|
-
while (keys.length) {
|
745
|
-
var key = keys.pop();
|
746
|
-
if (key in object) {
|
747
|
-
next.value = key;
|
748
|
-
next.done = false;
|
749
|
-
return next;
|
750
|
-
}
|
751
|
-
}
|
752
|
-
|
753
|
-
// To avoid creating an additional object, we just hang the .value
|
754
|
-
// and .done properties off the next function object itself. This
|
755
|
-
// also ensures that the minifier will not anonymize the function.
|
756
|
-
next.done = true;
|
757
|
-
return next;
|
758
|
-
};
|
759
|
-
};
|
760
|
-
|
761
|
-
function values(iterable) {
|
762
|
-
if (iterable) {
|
763
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
764
|
-
if (iteratorMethod) {
|
765
|
-
return iteratorMethod.call(iterable);
|
766
|
-
}
|
767
|
-
|
768
|
-
if (typeof iterable.next === "function") {
|
769
|
-
return iterable;
|
770
|
-
}
|
771
|
-
|
772
|
-
if (!isNaN(iterable.length)) {
|
773
|
-
var i = -1, next = function next() {
|
774
|
-
while (++i < iterable.length) {
|
775
|
-
if (hasOwn.call(iterable, i)) {
|
776
|
-
next.value = iterable[i];
|
777
|
-
next.done = false;
|
778
|
-
return next;
|
779
|
-
}
|
780
|
-
}
|
781
|
-
|
782
|
-
next.value = undefined$1;
|
783
|
-
next.done = true;
|
784
|
-
|
785
|
-
return next;
|
786
|
-
};
|
787
|
-
|
788
|
-
return next.next = next;
|
789
|
-
}
|
790
|
-
}
|
791
|
-
|
792
|
-
// Return an iterator with no values.
|
793
|
-
return { next: doneResult };
|
794
|
-
}
|
795
|
-
exports.values = values;
|
796
|
-
|
797
|
-
function doneResult() {
|
798
|
-
return { value: undefined$1, done: true };
|
799
|
-
}
|
800
|
-
|
801
|
-
Context.prototype = {
|
802
|
-
constructor: Context,
|
803
|
-
|
804
|
-
reset: function(skipTempReset) {
|
805
|
-
this.prev = 0;
|
806
|
-
this.next = 0;
|
807
|
-
// Resetting context._sent for legacy support of Babel's
|
808
|
-
// function.sent implementation.
|
809
|
-
this.sent = this._sent = undefined$1;
|
810
|
-
this.done = false;
|
811
|
-
this.delegate = null;
|
812
|
-
|
813
|
-
this.method = "next";
|
814
|
-
this.arg = undefined$1;
|
815
|
-
|
816
|
-
this.tryEntries.forEach(resetTryEntry);
|
817
|
-
|
818
|
-
if (!skipTempReset) {
|
819
|
-
for (var name in this) {
|
820
|
-
// Not sure about the optimal order of these conditions:
|
821
|
-
if (name.charAt(0) === "t" &&
|
822
|
-
hasOwn.call(this, name) &&
|
823
|
-
!isNaN(+name.slice(1))) {
|
824
|
-
this[name] = undefined$1;
|
825
|
-
}
|
826
|
-
}
|
827
|
-
}
|
828
|
-
},
|
829
|
-
|
830
|
-
stop: function() {
|
831
|
-
this.done = true;
|
832
|
-
|
833
|
-
var rootEntry = this.tryEntries[0];
|
834
|
-
var rootRecord = rootEntry.completion;
|
835
|
-
if (rootRecord.type === "throw") {
|
836
|
-
throw rootRecord.arg;
|
837
|
-
}
|
838
|
-
|
839
|
-
return this.rval;
|
840
|
-
},
|
841
|
-
|
842
|
-
dispatchException: function(exception) {
|
843
|
-
if (this.done) {
|
844
|
-
throw exception;
|
845
|
-
}
|
846
|
-
|
847
|
-
var context = this;
|
848
|
-
function handle(loc, caught) {
|
849
|
-
record.type = "throw";
|
850
|
-
record.arg = exception;
|
851
|
-
context.next = loc;
|
852
|
-
|
853
|
-
if (caught) {
|
854
|
-
// If the dispatched exception was caught by a catch block,
|
855
|
-
// then let that catch block handle the exception normally.
|
856
|
-
context.method = "next";
|
857
|
-
context.arg = undefined$1;
|
858
|
-
}
|
859
|
-
|
860
|
-
return !! caught;
|
861
|
-
}
|
862
|
-
|
863
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
864
|
-
var entry = this.tryEntries[i];
|
865
|
-
var record = entry.completion;
|
866
|
-
|
867
|
-
if (entry.tryLoc === "root") {
|
868
|
-
// Exception thrown outside of any try block that could handle
|
869
|
-
// it, so set the completion value of the entire function to
|
870
|
-
// throw the exception.
|
871
|
-
return handle("end");
|
872
|
-
}
|
873
|
-
|
874
|
-
if (entry.tryLoc <= this.prev) {
|
875
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
876
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
877
|
-
|
878
|
-
if (hasCatch && hasFinally) {
|
879
|
-
if (this.prev < entry.catchLoc) {
|
880
|
-
return handle(entry.catchLoc, true);
|
881
|
-
} else if (this.prev < entry.finallyLoc) {
|
882
|
-
return handle(entry.finallyLoc);
|
883
|
-
}
|
884
|
-
|
885
|
-
} else if (hasCatch) {
|
886
|
-
if (this.prev < entry.catchLoc) {
|
887
|
-
return handle(entry.catchLoc, true);
|
888
|
-
}
|
889
|
-
|
890
|
-
} else if (hasFinally) {
|
891
|
-
if (this.prev < entry.finallyLoc) {
|
892
|
-
return handle(entry.finallyLoc);
|
893
|
-
}
|
894
|
-
|
895
|
-
} else {
|
896
|
-
throw new Error("try statement without catch or finally");
|
897
|
-
}
|
898
|
-
}
|
899
|
-
}
|
900
|
-
},
|
901
|
-
|
902
|
-
abrupt: function(type, arg) {
|
903
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
904
|
-
var entry = this.tryEntries[i];
|
905
|
-
if (entry.tryLoc <= this.prev &&
|
906
|
-
hasOwn.call(entry, "finallyLoc") &&
|
907
|
-
this.prev < entry.finallyLoc) {
|
908
|
-
var finallyEntry = entry;
|
909
|
-
break;
|
910
|
-
}
|
911
|
-
}
|
912
|
-
|
913
|
-
if (finallyEntry &&
|
914
|
-
(type === "break" ||
|
915
|
-
type === "continue") &&
|
916
|
-
finallyEntry.tryLoc <= arg &&
|
917
|
-
arg <= finallyEntry.finallyLoc) {
|
918
|
-
// Ignore the finally entry if control is not jumping to a
|
919
|
-
// location outside the try/catch block.
|
920
|
-
finallyEntry = null;
|
921
|
-
}
|
922
|
-
|
923
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
924
|
-
record.type = type;
|
925
|
-
record.arg = arg;
|
926
|
-
|
927
|
-
if (finallyEntry) {
|
928
|
-
this.method = "next";
|
929
|
-
this.next = finallyEntry.finallyLoc;
|
930
|
-
return ContinueSentinel;
|
931
|
-
}
|
932
|
-
|
933
|
-
return this.complete(record);
|
934
|
-
},
|
935
|
-
|
936
|
-
complete: function(record, afterLoc) {
|
937
|
-
if (record.type === "throw") {
|
938
|
-
throw record.arg;
|
939
|
-
}
|
940
|
-
|
941
|
-
if (record.type === "break" ||
|
942
|
-
record.type === "continue") {
|
943
|
-
this.next = record.arg;
|
944
|
-
} else if (record.type === "return") {
|
945
|
-
this.rval = this.arg = record.arg;
|
946
|
-
this.method = "return";
|
947
|
-
this.next = "end";
|
948
|
-
} else if (record.type === "normal" && afterLoc) {
|
949
|
-
this.next = afterLoc;
|
950
|
-
}
|
951
|
-
|
952
|
-
return ContinueSentinel;
|
953
|
-
},
|
954
|
-
|
955
|
-
finish: function(finallyLoc) {
|
956
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
957
|
-
var entry = this.tryEntries[i];
|
958
|
-
if (entry.finallyLoc === finallyLoc) {
|
959
|
-
this.complete(entry.completion, entry.afterLoc);
|
960
|
-
resetTryEntry(entry);
|
961
|
-
return ContinueSentinel;
|
962
|
-
}
|
963
|
-
}
|
964
|
-
},
|
965
|
-
|
966
|
-
"catch": function(tryLoc) {
|
967
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
968
|
-
var entry = this.tryEntries[i];
|
969
|
-
if (entry.tryLoc === tryLoc) {
|
970
|
-
var record = entry.completion;
|
971
|
-
if (record.type === "throw") {
|
972
|
-
var thrown = record.arg;
|
973
|
-
resetTryEntry(entry);
|
974
|
-
}
|
975
|
-
return thrown;
|
976
|
-
}
|
977
|
-
}
|
978
|
-
|
979
|
-
// The context.catch method must only be called with a location
|
980
|
-
// argument that corresponds to a known catch block.
|
981
|
-
throw new Error("illegal catch attempt");
|
982
|
-
},
|
983
|
-
|
984
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
985
|
-
this.delegate = {
|
986
|
-
iterator: values(iterable),
|
987
|
-
resultName: resultName,
|
988
|
-
nextLoc: nextLoc
|
989
|
-
};
|
990
|
-
|
991
|
-
if (this.method === "next") {
|
992
|
-
// Deliberately forget the last sent value so that we don't
|
993
|
-
// accidentally pass it on to the delegate.
|
994
|
-
this.arg = undefined$1;
|
995
|
-
}
|
996
|
-
|
997
|
-
return ContinueSentinel;
|
998
|
-
}
|
999
|
-
};
|
1000
|
-
|
1001
|
-
// Regardless of whether this script is executing as a CommonJS module
|
1002
|
-
// or not, return the runtime object so that we can declare the variable
|
1003
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
1004
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
1005
|
-
return exports;
|
1006
|
-
|
1007
|
-
}(
|
1008
|
-
// If this script is executing as a CommonJS module, use module.exports
|
1009
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
1010
|
-
// object. Either way, the resulting object will be used to initialize
|
1011
|
-
// the regeneratorRuntime variable at the top of this file.
|
1012
|
-
module.exports
|
1013
|
-
));
|
1014
|
-
|
1015
|
-
try {
|
1016
|
-
regeneratorRuntime = runtime;
|
1017
|
-
} catch (accidentalStrictMode) {
|
1018
|
-
// This module should not be running in strict mode, so the above
|
1019
|
-
// assignment should always work unless something is misconfigured. Just
|
1020
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
1021
|
-
// we can explicitly access globalThis. In older engines we can escape
|
1022
|
-
// strict mode using a global Function call. This could conceivably fail
|
1023
|
-
// if a Content Security Policy forbids using Function, but in that case
|
1024
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
1025
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
1026
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
1027
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
1028
|
-
if (typeof globalThis === "object") {
|
1029
|
-
globalThis.regeneratorRuntime = runtime;
|
1030
|
-
} else {
|
1031
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
1032
|
-
}
|
1033
|
-
}
|
1034
|
-
});
|
1035
|
-
|
1036
619
|
var _personalMetaToPrefix;
|
1037
620
|
var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[initApis.MetadataCategory.Personal] = 'you', _personalMetaToPrefix[initApis.MetadataCategory.ChildPersonal] = 'child', _personalMetaToPrefix[initApis.MetadataCategory.OtherPersonal] = 'other', _personalMetaToPrefix);
|
1038
621
|
/**
|
@@ -1042,7 +625,7 @@ var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[in
|
|
1042
625
|
*/
|
1043
626
|
|
1044
627
|
function identificationToPersonalInformations(data, category) {
|
1045
|
-
var _data
|
628
|
+
var _data;
|
1046
629
|
|
1047
630
|
var prefix = personalMetaToPrefix[category];
|
1048
631
|
return {
|
@@ -1052,7 +635,7 @@ function identificationToPersonalInformations(data, category) {
|
|
1052
635
|
name: data[prefix + "Name"],
|
1053
636
|
phone: data[prefix + "Phone"],
|
1054
637
|
zip: data[prefix + "Zip"],
|
1055
|
-
hid: (_data
|
638
|
+
hid: (_data = data[prefix + "HID"]) != null ? _data : data[prefix + "ID"],
|
1056
639
|
pharmacy: data[prefix + "Pharmacy"],
|
1057
640
|
address: data[prefix + "Address"]
|
1058
641
|
};
|
@@ -1261,9 +844,9 @@ function filterTriggeredAnsweredWithKind(_x, _x2) {
|
|
1261
844
|
*/
|
1262
845
|
|
1263
846
|
function _filterTriggeredAnsweredWithKind() {
|
1264
|
-
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/
|
847
|
+
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workflowData, kind) {
|
1265
848
|
var flattenedAnswers, triggeredQuestionsWithKind, samePageAnswers, res;
|
1266
|
-
return
|
849
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1267
850
|
while (1) {
|
1268
851
|
switch (_context.prev = _context.next) {
|
1269
852
|
case 0:
|
@@ -1307,9 +890,9 @@ function getWorkflowDataByCategory(_x3, _x4) {
|
|
1307
890
|
}
|
1308
891
|
|
1309
892
|
function _getWorkflowDataByCategory() {
|
1310
|
-
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/
|
893
|
+
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(workflowData, category) {
|
1311
894
|
var flattenedAnswers, triggeredQuestions, fields;
|
1312
|
-
return
|
895
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1313
896
|
while (1) {
|
1314
897
|
switch (_context2.prev = _context2.next) {
|
1315
898
|
case 0:
|
@@ -1380,8 +963,8 @@ function getImagesFromIndexDb(_x5) {
|
|
1380
963
|
*/
|
1381
964
|
|
1382
965
|
function _getImagesFromIndexDb() {
|
1383
|
-
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/
|
1384
|
-
return
|
966
|
+
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(answer) {
|
967
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1385
968
|
while (1) {
|
1386
969
|
switch (_context3.prev = _context3.next) {
|
1387
970
|
case 0:
|
@@ -1457,9 +1040,9 @@ function populateWorkflowField(_x6, _x7) {
|
|
1457
1040
|
|
1458
1041
|
|
1459
1042
|
function _populateWorkflowField() {
|
1460
|
-
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/
|
1043
|
+
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
|
1461
1044
|
var answer, displayedAnswer;
|
1462
|
-
return
|
1045
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1463
1046
|
while (1) {
|
1464
1047
|
switch (_context4.prev = _context4.next) {
|
1465
1048
|
case 0:
|
@@ -1651,10 +1234,10 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
|
1651
1234
|
*/
|
1652
1235
|
|
1653
1236
|
function _registerPatient() {
|
1654
|
-
_registerPatient = _asyncToGenerator( /*#__PURE__*/
|
1237
|
+
_registerPatient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch) {
|
1655
1238
|
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, _ret;
|
1656
1239
|
|
1657
|
-
return
|
1240
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1658
1241
|
while (1) {
|
1659
1242
|
switch (_context4.prev = _context4.next) {
|
1660
1243
|
case 0:
|
@@ -1676,11 +1259,11 @@ function _registerPatient() {
|
|
1676
1259
|
}
|
1677
1260
|
|
1678
1261
|
_context4.prev = 8;
|
1679
|
-
return _context4.delegateYield( /*#__PURE__*/
|
1262
|
+
return _context4.delegateYield( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
1680
1263
|
var _consultIndex, _identity, _identity2;
|
1681
1264
|
|
1682
1265
|
var practitioners, grantPromises, consultIndex, consultIndexPromises;
|
1683
|
-
return
|
1266
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1684
1267
|
while (1) {
|
1685
1268
|
switch (_context3.prev = _context3.next) {
|
1686
1269
|
case 0:
|
@@ -1751,7 +1334,6 @@ function _registerPatient() {
|
|
1751
1334
|
return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
|
1752
1335
|
console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
|
1753
1336
|
|
1754
|
-
// if we cannot grant to the admin, then the registration will fail
|
1755
1337
|
errorsThrown.push(err);
|
1756
1338
|
});
|
1757
1339
|
|
@@ -1760,15 +1342,14 @@ function _registerPatient() {
|
|
1760
1342
|
grantPromises = practitioners.filter(function (practitioner) {
|
1761
1343
|
return practitioner.uuid !== practitionerAdmin;
|
1762
1344
|
}).map( /*#__PURE__*/function () {
|
1763
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
1764
|
-
return
|
1345
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(practitioner) {
|
1346
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1765
1347
|
while (1) {
|
1766
1348
|
switch (_context.prev = _context.next) {
|
1767
1349
|
case 0:
|
1768
1350
|
return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
|
1769
1351
|
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
|
1770
1352
|
|
1771
|
-
// Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
|
1772
1353
|
if (retry <= 1) return;
|
1773
1354
|
errorsThrown.push(err);
|
1774
1355
|
}));
|
@@ -1794,15 +1375,14 @@ function _registerPatient() {
|
|
1794
1375
|
}], _consultIndex); // the index will identify in which lockbox a consultation resides
|
1795
1376
|
|
1796
1377
|
consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
|
1797
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
1798
|
-
return
|
1378
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practitioner) {
|
1379
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1799
1380
|
while (1) {
|
1800
1381
|
switch (_context2.prev = _context2.next) {
|
1801
1382
|
case 0:
|
1802
1383
|
return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
|
1803
1384
|
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
|
1804
1385
|
|
1805
|
-
// Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
|
1806
1386
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1807
1387
|
}));
|
1808
1388
|
|
@@ -1822,7 +1402,6 @@ function _registerPatient() {
|
|
1822
1402
|
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient)["catch"](function (err) {
|
1823
1403
|
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
|
1824
1404
|
|
1825
|
-
// Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
|
1826
1405
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1827
1406
|
});
|
1828
1407
|
|
@@ -1843,7 +1422,6 @@ function _registerPatient() {
|
|
1843
1422
|
return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
|
1844
1423
|
console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
|
1845
1424
|
|
1846
|
-
/// it's acceptable to continue registration (return old identity)
|
1847
1425
|
if (retry <= 1) return;
|
1848
1426
|
errorsThrown.push(err);
|
1849
1427
|
return identity;
|
@@ -1868,7 +1446,6 @@ function _registerPatient() {
|
|
1868
1446
|
return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
|
1869
1447
|
console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
|
1870
1448
|
|
1871
|
-
/// it's acceptable to continue registration (return old identity)
|
1872
1449
|
if (retry <= 1) return;
|
1873
1450
|
errorsThrown.push(err);
|
1874
1451
|
return identity;
|
@@ -1892,7 +1469,6 @@ function _registerPatient() {
|
|
1892
1469
|
console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
|
1893
1470
|
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
|
1894
1471
|
|
1895
|
-
// this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
|
1896
1472
|
errorsThrown.push(err);
|
1897
1473
|
});
|
1898
1474
|
|
@@ -1989,9 +1565,9 @@ function getOrCreatePatientConsultationUuid(_x8, _x9) {
|
|
1989
1565
|
|
1990
1566
|
|
1991
1567
|
function _getOrCreatePatientConsultationUuid() {
|
1992
|
-
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/
|
1568
|
+
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(consult, oroClient) {
|
1993
1569
|
var payment;
|
1994
|
-
return
|
1570
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
1995
1571
|
while (1) {
|
1996
1572
|
switch (_context5.prev = _context5.next) {
|
1997
1573
|
case 0:
|
@@ -2046,9 +1622,9 @@ function getOrCreatePatientLockbox(_x10) {
|
|
2046
1622
|
|
2047
1623
|
|
2048
1624
|
function _getOrCreatePatientLockbox() {
|
2049
|
-
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/
|
1625
|
+
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(oroClient) {
|
2050
1626
|
var grants, lockboxResponse, tokens;
|
2051
|
-
return
|
1627
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
2052
1628
|
while (1) {
|
2053
1629
|
switch (_context6.prev = _context6.next) {
|
2054
1630
|
case 0:
|
@@ -2108,8 +1684,8 @@ function storePatientData(_x11, _x12, _x13, _x14, _x15) {
|
|
2108
1684
|
}
|
2109
1685
|
|
2110
1686
|
function _storePatientData() {
|
2111
|
-
_storePatientData = _asyncToGenerator( /*#__PURE__*/
|
2112
|
-
return
|
1687
|
+
_storePatientData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
|
1688
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2113
1689
|
while (1) {
|
2114
1690
|
switch (_context7.prev = _context7.next) {
|
2115
1691
|
case 0:
|
@@ -2166,9 +1742,9 @@ function storeImageAliases(_x16, _x17, _x18, _x19) {
|
|
2166
1742
|
|
2167
1743
|
|
2168
1744
|
function _storeImageAliases() {
|
2169
|
-
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/
|
1745
|
+
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient) {
|
2170
1746
|
var images, nonNullImages, promises;
|
2171
|
-
return
|
1747
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2172
1748
|
while (1) {
|
2173
1749
|
switch (_context8.prev = _context8.next) {
|
2174
1750
|
case 0:
|
@@ -2220,8 +1796,8 @@ function extractAndStorePersonalWorkflowData(_x20, _x21, _x22, _x23, _x24) {
|
|
2220
1796
|
*/
|
2221
1797
|
|
2222
1798
|
function _extractAndStorePersonalWorkflowData() {
|
2223
|
-
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2224
|
-
return
|
1799
|
+
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
|
1800
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2225
1801
|
while (1) {
|
2226
1802
|
switch (_context9.prev = _context9.next) {
|
2227
1803
|
case 0:
|
@@ -2255,8 +1831,8 @@ function extractPersonalInfoFromWorkflowData(_x25) {
|
|
2255
1831
|
*/
|
2256
1832
|
|
2257
1833
|
function _extractPersonalInfoFromWorkflowData() {
|
2258
|
-
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2259
|
-
return
|
1834
|
+
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(workflow) {
|
1835
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2260
1836
|
while (1) {
|
2261
1837
|
switch (_context10.prev = _context10.next) {
|
2262
1838
|
case 0:
|
@@ -2286,10 +1862,10 @@ function buildConsultSearchIndex(_x26, _x27, _x28) {
|
|
2286
1862
|
}
|
2287
1863
|
|
2288
1864
|
function _buildConsultSearchIndex() {
|
2289
|
-
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/
|
1865
|
+
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(consult, workflow, oroClient) {
|
2290
1866
|
var terms, _yield$extractPersona, personalInfoPopulatedWfData, childPersonalInfoPopulatedWfData, otherPersonalInfoPopulatedWfData, personalInfo, childPersonalInfo, otherPersonalInfo;
|
2291
1867
|
|
2292
|
-
return
|
1868
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
2293
1869
|
while (1) {
|
2294
1870
|
switch (_context11.prev = _context11.next) {
|
2295
1871
|
case 0:
|
@@ -2410,10 +1986,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2) {
|
|
2410
1986
|
}
|
2411
1987
|
|
2412
1988
|
function _filterGrantsWithLockboxMetadata() {
|
2413
|
-
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/
|
1989
|
+
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(oroClient, filter) {
|
2414
1990
|
var grants, filteredGrants, _iterator, _step, grant, consultationIdExistsInMetadata;
|
2415
1991
|
|
2416
|
-
return
|
1992
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2417
1993
|
while (1) {
|
2418
1994
|
switch (_context.prev = _context.next) {
|
2419
1995
|
case 0:
|
@@ -2486,8 +2062,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2486
2062
|
_proto.cleanIndex =
|
2487
2063
|
/*#__PURE__*/
|
2488
2064
|
function () {
|
2489
|
-
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2490
|
-
return
|
2065
|
+
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
2066
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2491
2067
|
while (1) {
|
2492
2068
|
switch (_context.prev = _context.next) {
|
2493
2069
|
case 0:
|
@@ -2524,9 +2100,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2524
2100
|
_proto.signUp =
|
2525
2101
|
/*#__PURE__*/
|
2526
2102
|
function () {
|
2527
|
-
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2103
|
+
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
|
2528
2104
|
var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
|
2529
|
-
return
|
2105
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
2530
2106
|
while (1) {
|
2531
2107
|
switch (_context2.prev = _context2.next) {
|
2532
2108
|
case 0:
|
@@ -2585,9 +2161,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2585
2161
|
_proto.confirmEmail =
|
2586
2162
|
/*#__PURE__*/
|
2587
2163
|
function () {
|
2588
|
-
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2164
|
+
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken) {
|
2589
2165
|
var claims;
|
2590
|
-
return
|
2166
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
2591
2167
|
while (1) {
|
2592
2168
|
switch (_context3.prev = _context3.next) {
|
2593
2169
|
case 0:
|
@@ -2632,9 +2208,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2632
2208
|
_proto.signIn =
|
2633
2209
|
/*#__PURE__*/
|
2634
2210
|
function () {
|
2635
|
-
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2211
|
+
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(practiceUuid, email, password, otp) {
|
2636
2212
|
var hashedPassword, tokenRequest, userUuid;
|
2637
|
-
return
|
2213
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
2638
2214
|
while (1) {
|
2639
2215
|
switch (_context4.prev = _context4.next) {
|
2640
2216
|
case 0:
|
@@ -2687,9 +2263,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2687
2263
|
_proto.resumeSession =
|
2688
2264
|
/*#__PURE__*/
|
2689
2265
|
function () {
|
2690
|
-
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2266
|
+
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
2691
2267
|
var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
|
2692
|
-
return
|
2268
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
2693
2269
|
while (1) {
|
2694
2270
|
switch (_context5.prev = _context5.next) {
|
2695
2271
|
case 0:
|
@@ -2790,8 +2366,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2790
2366
|
_proto.signOut =
|
2791
2367
|
/*#__PURE__*/
|
2792
2368
|
function () {
|
2793
|
-
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2794
|
-
return
|
2369
|
+
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
2370
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
2795
2371
|
while (1) {
|
2796
2372
|
switch (_context6.prev = _context6.next) {
|
2797
2373
|
case 0:
|
@@ -2841,8 +2417,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2841
2417
|
_proto.registerPatient =
|
2842
2418
|
/*#__PURE__*/
|
2843
2419
|
function () {
|
2844
|
-
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2845
|
-
return
|
2420
|
+
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch) {
|
2421
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2846
2422
|
while (1) {
|
2847
2423
|
switch (_context7.prev = _context7.next) {
|
2848
2424
|
case 0:
|
@@ -2883,12 +2459,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
2883
2459
|
_proto.forceUpdateIndexEntries =
|
2884
2460
|
/*#__PURE__*/
|
2885
2461
|
function () {
|
2886
|
-
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2462
|
+
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
2887
2463
|
var _this = this,
|
2888
2464
|
_this$vaultIndexAdd;
|
2889
2465
|
|
2890
2466
|
var grants, indexConsultLockbox;
|
2891
|
-
return
|
2467
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2892
2468
|
while (1) {
|
2893
2469
|
switch (_context9.prev = _context9.next) {
|
2894
2470
|
case 0:
|
@@ -2899,8 +2475,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2899
2475
|
grants = _context9.sent;
|
2900
2476
|
_context9.next = 5;
|
2901
2477
|
return Promise.all(grants.map( /*#__PURE__*/function () {
|
2902
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
2903
|
-
return
|
2478
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(grant) {
|
2479
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2904
2480
|
while (1) {
|
2905
2481
|
switch (_context8.prev = _context8.next) {
|
2906
2482
|
case 0:
|
@@ -2976,10 +2552,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
2976
2552
|
_proto.vaultIndexAdd =
|
2977
2553
|
/*#__PURE__*/
|
2978
2554
|
function () {
|
2979
|
-
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2555
|
+
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(entries, indexOwnerUuid) {
|
2980
2556
|
var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
|
2981
2557
|
|
2982
|
-
return
|
2558
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2983
2559
|
while (1) {
|
2984
2560
|
switch (_context10.prev = _context10.next) {
|
2985
2561
|
case 0:
|
@@ -3077,9 +2653,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3077
2653
|
_proto.grantLockbox =
|
3078
2654
|
/*#__PURE__*/
|
3079
2655
|
function () {
|
3080
|
-
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2656
|
+
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
|
3081
2657
|
var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
|
3082
|
-
return
|
2658
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
3083
2659
|
while (1) {
|
3084
2660
|
switch (_context11.prev = _context11.next) {
|
3085
2661
|
case 0:
|
@@ -3139,9 +2715,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3139
2715
|
_proto.createMessageData =
|
3140
2716
|
/*#__PURE__*/
|
3141
2717
|
function () {
|
3142
|
-
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2718
|
+
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3143
2719
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3144
|
-
return
|
2720
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
3145
2721
|
while (1) {
|
3146
2722
|
switch (_context12.prev = _context12.next) {
|
3147
2723
|
case 0:
|
@@ -3211,9 +2787,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3211
2787
|
_proto.createMessageAttachmentData =
|
3212
2788
|
/*#__PURE__*/
|
3213
2789
|
function () {
|
3214
|
-
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2790
|
+
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3215
2791
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3216
|
-
return
|
2792
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
3217
2793
|
while (1) {
|
3218
2794
|
switch (_context13.prev = _context13.next) {
|
3219
2795
|
case 0:
|
@@ -3298,8 +2874,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3298
2874
|
_proto.createConsultationAttachmentData =
|
3299
2875
|
/*#__PURE__*/
|
3300
2876
|
function () {
|
3301
|
-
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3302
|
-
return
|
2877
|
+
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
|
2878
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
3303
2879
|
while (1) {
|
3304
2880
|
switch (_context14.prev = _context14.next) {
|
3305
2881
|
case 0:
|
@@ -3370,9 +2946,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3370
2946
|
_proto.createJsonData =
|
3371
2947
|
/*#__PURE__*/
|
3372
2948
|
function () {
|
3373
|
-
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2949
|
+
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3374
2950
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3375
|
-
return
|
2951
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
3376
2952
|
while (1) {
|
3377
2953
|
switch (_context15.prev = _context15.next) {
|
3378
2954
|
case 0:
|
@@ -3426,9 +3002,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3426
3002
|
_proto.getOrInsertJsonData =
|
3427
3003
|
/*#__PURE__*/
|
3428
3004
|
function () {
|
3429
|
-
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3005
|
+
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
|
3430
3006
|
var manifest;
|
3431
|
-
return
|
3007
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
3432
3008
|
while (1) {
|
3433
3009
|
switch (_context16.prev = _context16.next) {
|
3434
3010
|
case 0:
|
@@ -3491,9 +3067,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3491
3067
|
_proto.createBytesData =
|
3492
3068
|
/*#__PURE__*/
|
3493
3069
|
function () {
|
3494
|
-
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3070
|
+
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3495
3071
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3496
|
-
return
|
3072
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
3497
3073
|
while (1) {
|
3498
3074
|
switch (_context17.prev = _context17.next) {
|
3499
3075
|
case 0:
|
@@ -3549,10 +3125,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3549
3125
|
_proto.getJsonData =
|
3550
3126
|
/*#__PURE__*/
|
3551
3127
|
function () {
|
3552
|
-
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3128
|
+
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3553
3129
|
var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
|
3554
3130
|
|
3555
|
-
return
|
3131
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
3556
3132
|
while (1) {
|
3557
3133
|
switch (_context18.prev = _context18.next) {
|
3558
3134
|
case 0:
|
@@ -3599,10 +3175,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3599
3175
|
_proto.getBytesData =
|
3600
3176
|
/*#__PURE__*/
|
3601
3177
|
function () {
|
3602
|
-
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3178
|
+
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3603
3179
|
var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
|
3604
3180
|
|
3605
|
-
return
|
3181
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
3606
3182
|
while (1) {
|
3607
3183
|
switch (_context19.prev = _context19.next) {
|
3608
3184
|
case 0:
|
@@ -3652,9 +3228,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3652
3228
|
_proto.getGrants =
|
3653
3229
|
/*#__PURE__*/
|
3654
3230
|
function () {
|
3655
|
-
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3231
|
+
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(filter) {
|
3656
3232
|
var filterString, currentAccountRole, encryptedGrants, decryptedGrants, grantsByConsultLockbox, decryptedConsults;
|
3657
|
-
return
|
3233
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
3658
3234
|
while (1) {
|
3659
3235
|
switch (_context20.prev = _context20.next) {
|
3660
3236
|
case 0:
|
@@ -3785,8 +3361,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3785
3361
|
_proto.getAccountRole =
|
3786
3362
|
/*#__PURE__*/
|
3787
3363
|
function () {
|
3788
|
-
var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3789
|
-
return
|
3364
|
+
var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
3365
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
3790
3366
|
while (1) {
|
3791
3367
|
switch (_context21.prev = _context21.next) {
|
3792
3368
|
case 0:
|
@@ -3822,9 +3398,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3822
3398
|
_proto.getCachedSecretCryptor =
|
3823
3399
|
/*#__PURE__*/
|
3824
3400
|
function () {
|
3825
|
-
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3401
|
+
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(lockboxUuid, lockboxOwnerUuid) {
|
3826
3402
|
var index, encryptedSecret, secret, cryptor;
|
3827
|
-
return
|
3403
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
3828
3404
|
while (1) {
|
3829
3405
|
switch (_context22.prev = _context22.next) {
|
3830
3406
|
case 0:
|
@@ -3889,8 +3465,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3889
3465
|
_proto.getPersonalInformationsFromConsultId =
|
3890
3466
|
/*#__PURE__*/
|
3891
3467
|
function () {
|
3892
|
-
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3893
|
-
return
|
3468
|
+
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(consultationId, category, forceRefresh) {
|
3469
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
3894
3470
|
while (1) {
|
3895
3471
|
switch (_context23.prev = _context23.next) {
|
3896
3472
|
case 0:
|
@@ -3927,8 +3503,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3927
3503
|
_proto.getMedicalDataFromConsultId =
|
3928
3504
|
/*#__PURE__*/
|
3929
3505
|
function () {
|
3930
|
-
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3931
|
-
return
|
3506
|
+
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(consultationId, forceRefresh) {
|
3507
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
3932
3508
|
while (1) {
|
3933
3509
|
switch (_context24.prev = _context24.next) {
|
3934
3510
|
case 0:
|
@@ -3954,12 +3530,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
3954
3530
|
}();
|
3955
3531
|
|
3956
3532
|
_proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
|
3957
|
-
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3533
|
+
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(consultationId, category, forceRefresh) {
|
3958
3534
|
var _this2 = this;
|
3959
3535
|
|
3960
3536
|
var grants, workflowData, _loop, _iterator, _step;
|
3961
3537
|
|
3962
|
-
return
|
3538
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context27) {
|
3963
3539
|
while (1) {
|
3964
3540
|
switch (_context27.prev = _context27.next) {
|
3965
3541
|
case 0:
|
@@ -3975,9 +3551,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3975
3551
|
case 3:
|
3976
3552
|
grants = _context27.sent;
|
3977
3553
|
workflowData = [];
|
3978
|
-
_loop = /*#__PURE__*/
|
3554
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
3979
3555
|
var grant, manifest, data;
|
3980
|
-
return
|
3556
|
+
return _regeneratorRuntime().wrap(function _loop$(_context26) {
|
3981
3557
|
while (1) {
|
3982
3558
|
switch (_context26.prev = _context26.next) {
|
3983
3559
|
case 0:
|
@@ -4011,8 +3587,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4011
3587
|
case 8:
|
4012
3588
|
_context26.next = 10;
|
4013
3589
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4014
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
4015
|
-
return
|
3590
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(entry) {
|
3591
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
4016
3592
|
while (1) {
|
4017
3593
|
switch (_context25.prev = _context25.next) {
|
4018
3594
|
case 0:
|
@@ -4096,9 +3672,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4096
3672
|
_proto.getPersonalInformations =
|
4097
3673
|
/*#__PURE__*/
|
4098
3674
|
function () {
|
4099
|
-
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3675
|
+
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(userId) {
|
4100
3676
|
var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4101
|
-
return
|
3677
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context28) {
|
4102
3678
|
while (1) {
|
4103
3679
|
switch (_context28.prev = _context28.next) {
|
4104
3680
|
case 0:
|
@@ -4184,9 +3760,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4184
3760
|
_proto.getGrantFromConsultId =
|
4185
3761
|
/*#__PURE__*/
|
4186
3762
|
function () {
|
4187
|
-
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3763
|
+
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(consultationId) {
|
4188
3764
|
var grants;
|
4189
|
-
return
|
3765
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context29) {
|
4190
3766
|
while (1) {
|
4191
3767
|
switch (_context29.prev = _context29.next) {
|
4192
3768
|
case 0:
|
@@ -4232,9 +3808,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4232
3808
|
_proto.getIdentityFromConsultId =
|
4233
3809
|
/*#__PURE__*/
|
4234
3810
|
function () {
|
4235
|
-
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3811
|
+
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(consultationId) {
|
4236
3812
|
var grant;
|
4237
|
-
return
|
3813
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context30) {
|
4238
3814
|
while (1) {
|
4239
3815
|
switch (_context30.prev = _context30.next) {
|
4240
3816
|
case 0:
|
@@ -4287,11 +3863,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4287
3863
|
_proto.getLockboxManifest =
|
4288
3864
|
/*#__PURE__*/
|
4289
3865
|
function () {
|
4290
|
-
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3866
|
+
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
|
4291
3867
|
var _this3 = this;
|
4292
3868
|
|
4293
3869
|
var manifestKey;
|
4294
|
-
return
|
3870
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context32) {
|
4295
3871
|
while (1) {
|
4296
3872
|
switch (_context32.prev = _context32.next) {
|
4297
3873
|
case 0:
|
@@ -4316,9 +3892,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4316
3892
|
case 4:
|
4317
3893
|
return _context32.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
|
4318
3894
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4319
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
3895
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(entry) {
|
4320
3896
|
var privateMeta;
|
4321
|
-
return
|
3897
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context31) {
|
4322
3898
|
while (1) {
|
4323
3899
|
switch (_context31.prev = _context31.next) {
|
4324
3900
|
case 0:
|
@@ -4379,11 +3955,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4379
3955
|
_proto.createPersonalInformations =
|
4380
3956
|
/*#__PURE__*/
|
4381
3957
|
function () {
|
4382
|
-
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3958
|
+
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(identity, data, dataUuid) {
|
4383
3959
|
var _yield$this$getGrants;
|
4384
3960
|
|
4385
3961
|
var lockboxUuid;
|
4386
|
-
return
|
3962
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context33) {
|
4387
3963
|
while (1) {
|
4388
3964
|
switch (_context33.prev = _context33.next) {
|
4389
3965
|
case 0:
|
@@ -4449,11 +4025,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4449
4025
|
_proto.createUserPreference =
|
4450
4026
|
/*#__PURE__*/
|
4451
4027
|
function () {
|
4452
|
-
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4028
|
+
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(identity, preference, dataUuid) {
|
4453
4029
|
var _yield$this$getGrants2;
|
4454
4030
|
|
4455
4031
|
var lockboxUuid;
|
4456
|
-
return
|
4032
|
+
return _regeneratorRuntime().wrap(function _callee33$(_context34) {
|
4457
4033
|
while (1) {
|
4458
4034
|
switch (_context34.prev = _context34.next) {
|
4459
4035
|
case 0:
|
@@ -4517,9 +4093,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4517
4093
|
_proto.getDataFromGrant =
|
4518
4094
|
/*#__PURE__*/
|
4519
4095
|
function () {
|
4520
|
-
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4096
|
+
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(grant, filter) {
|
4521
4097
|
var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4522
|
-
return
|
4098
|
+
return _regeneratorRuntime().wrap(function _callee34$(_context35) {
|
4523
4099
|
while (1) {
|
4524
4100
|
switch (_context35.prev = _context35.next) {
|
4525
4101
|
case 0:
|
@@ -4585,9 +4161,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4585
4161
|
_proto.getUserPreferenceFromConsultId =
|
4586
4162
|
/*#__PURE__*/
|
4587
4163
|
function () {
|
4588
|
-
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4164
|
+
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(consultationId) {
|
4589
4165
|
var grant;
|
4590
|
-
return
|
4166
|
+
return _regeneratorRuntime().wrap(function _callee35$(_context36) {
|
4591
4167
|
while (1) {
|
4592
4168
|
switch (_context36.prev = _context36.next) {
|
4593
4169
|
case 0:
|
@@ -4634,9 +4210,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4634
4210
|
_proto.getUserPreference =
|
4635
4211
|
/*#__PURE__*/
|
4636
4212
|
function () {
|
4637
|
-
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4213
|
+
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(identity) {
|
4638
4214
|
var grant;
|
4639
|
-
return
|
4215
|
+
return _regeneratorRuntime().wrap(function _callee36$(_context37) {
|
4640
4216
|
while (1) {
|
4641
4217
|
switch (_context37.prev = _context37.next) {
|
4642
4218
|
case 0:
|
@@ -4685,9 +4261,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4685
4261
|
_proto.getRecoveryDataFromConsultId =
|
4686
4262
|
/*#__PURE__*/
|
4687
4263
|
function () {
|
4688
|
-
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4264
|
+
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(consultationId) {
|
4689
4265
|
var grant;
|
4690
|
-
return
|
4266
|
+
return _regeneratorRuntime().wrap(function _callee37$(_context38) {
|
4691
4267
|
while (1) {
|
4692
4268
|
switch (_context38.prev = _context38.next) {
|
4693
4269
|
case 0:
|
@@ -4734,9 +4310,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4734
4310
|
_proto.getRecoveryData =
|
4735
4311
|
/*#__PURE__*/
|
4736
4312
|
function () {
|
4737
|
-
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4313
|
+
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(identity) {
|
4738
4314
|
var grant;
|
4739
|
-
return
|
4315
|
+
return _regeneratorRuntime().wrap(function _callee38$(_context39) {
|
4740
4316
|
while (1) {
|
4741
4317
|
switch (_context39.prev = _context39.next) {
|
4742
4318
|
case 0:
|
@@ -4790,10 +4366,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4790
4366
|
_proto.getAssignedConsultations =
|
4791
4367
|
/*#__PURE__*/
|
4792
4368
|
function () {
|
4793
|
-
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4369
|
+
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(practiceUuid) {
|
4794
4370
|
var _this4 = this;
|
4795
4371
|
|
4796
|
-
return
|
4372
|
+
return _regeneratorRuntime().wrap(function _callee40$(_context41) {
|
4797
4373
|
while (1) {
|
4798
4374
|
switch (_context41.prev = _context41.next) {
|
4799
4375
|
case 0:
|
@@ -4808,8 +4384,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4808
4384
|
documentType: initApis.DocumentType.PopulatedWorkflowData
|
4809
4385
|
}, true, undefined).then(function (manifest) {
|
4810
4386
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4811
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
4812
|
-
return
|
4387
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(entry) {
|
4388
|
+
return _regeneratorRuntime().wrap(function _callee39$(_context40) {
|
4813
4389
|
while (1) {
|
4814
4390
|
switch (_context40.prev = _context40.next) {
|
4815
4391
|
case 0:
|
@@ -4863,11 +4439,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4863
4439
|
_proto.getPastConsultationsFromConsultId =
|
4864
4440
|
/*#__PURE__*/
|
4865
4441
|
function () {
|
4866
|
-
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4442
|
+
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(consultationId, practiceUuid) {
|
4867
4443
|
var _this5 = this;
|
4868
4444
|
|
4869
4445
|
var grant, consultationsInLockbox;
|
4870
|
-
return
|
4446
|
+
return _regeneratorRuntime().wrap(function _callee42$(_context43) {
|
4871
4447
|
while (1) {
|
4872
4448
|
switch (_context43.prev = _context43.next) {
|
4873
4449
|
case 0:
|
@@ -4906,8 +4482,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4906
4482
|
case 10:
|
4907
4483
|
_context43.next = 12;
|
4908
4484
|
return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
|
4909
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
4910
|
-
return
|
4485
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(consultId) {
|
4486
|
+
return _regeneratorRuntime().wrap(function _callee41$(_context42) {
|
4911
4487
|
while (1) {
|
4912
4488
|
switch (_context42.prev = _context42.next) {
|
4913
4489
|
case 0:
|
@@ -4958,10 +4534,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4958
4534
|
_proto.getPatientConsultationData =
|
4959
4535
|
/*#__PURE__*/
|
4960
4536
|
function () {
|
4961
|
-
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4537
|
+
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(consultationId, forceRefresh) {
|
4962
4538
|
var _this6 = this;
|
4963
4539
|
|
4964
|
-
return
|
4540
|
+
return _regeneratorRuntime().wrap(function _callee43$(_context44) {
|
4965
4541
|
while (1) {
|
4966
4542
|
switch (_context44.prev = _context44.next) {
|
4967
4543
|
case 0:
|
@@ -5015,8 +4591,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5015
4591
|
_proto.getPatientPrescriptionsList =
|
5016
4592
|
/*#__PURE__*/
|
5017
4593
|
function () {
|
5018
|
-
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5019
|
-
return
|
4594
|
+
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(consultationId) {
|
4595
|
+
return _regeneratorRuntime().wrap(function _callee44$(_context45) {
|
5020
4596
|
while (1) {
|
5021
4597
|
switch (_context45.prev = _context45.next) {
|
5022
4598
|
case 0:
|
@@ -5049,8 +4625,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5049
4625
|
_proto.getPatientResultsList =
|
5050
4626
|
/*#__PURE__*/
|
5051
4627
|
function () {
|
5052
|
-
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5053
|
-
return
|
4628
|
+
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(consultationId) {
|
4629
|
+
return _regeneratorRuntime().wrap(function _callee45$(_context46) {
|
5054
4630
|
while (1) {
|
5055
4631
|
switch (_context46.prev = _context46.next) {
|
5056
4632
|
case 0:
|
@@ -5083,8 +4659,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5083
4659
|
_proto.getPatientTreatmentPlans =
|
5084
4660
|
/*#__PURE__*/
|
5085
4661
|
function () {
|
5086
|
-
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5087
|
-
return
|
4662
|
+
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(consultationId) {
|
4663
|
+
return _regeneratorRuntime().wrap(function _callee46$(_context47) {
|
5088
4664
|
while (1) {
|
5089
4665
|
switch (_context47.prev = _context47.next) {
|
5090
4666
|
case 0:
|
@@ -5118,8 +4694,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5118
4694
|
_proto.getPatientTreatmentPlanByUuid =
|
5119
4695
|
/*#__PURE__*/
|
5120
4696
|
function () {
|
5121
|
-
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5122
|
-
return
|
4697
|
+
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(consultationId, treatmentPlanId) {
|
4698
|
+
return _regeneratorRuntime().wrap(function _callee47$(_context48) {
|
5123
4699
|
while (1) {
|
5124
4700
|
switch (_context48.prev = _context48.next) {
|
5125
4701
|
case 0:
|
@@ -5157,10 +4733,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
5157
4733
|
_proto.getPatientDocumentsList =
|
5158
4734
|
/*#__PURE__*/
|
5159
4735
|
function () {
|
5160
|
-
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4736
|
+
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(filters, expandPrivateMetadata, consultationId) {
|
5161
4737
|
var _this7 = this;
|
5162
4738
|
|
5163
|
-
return
|
4739
|
+
return _regeneratorRuntime().wrap(function _callee49$(_context50) {
|
5164
4740
|
while (1) {
|
5165
4741
|
switch (_context50.prev = _context50.next) {
|
5166
4742
|
case 0:
|
@@ -5176,8 +4752,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5176
4752
|
consultationId: consultationId
|
5177
4753
|
}), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
|
5178
4754
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
5179
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
5180
|
-
return
|
4755
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(entry) {
|
4756
|
+
return _regeneratorRuntime().wrap(function _callee48$(_context49) {
|
5181
4757
|
while (1) {
|
5182
4758
|
switch (_context49.prev = _context49.next) {
|
5183
4759
|
case 0:
|
@@ -5235,9 +4811,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5235
4811
|
_proto.recoverPrivateKeyFromSecurityQuestions =
|
5236
4812
|
/*#__PURE__*/
|
5237
4813
|
function () {
|
5238
|
-
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4814
|
+
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5239
4815
|
var shards, answeredShards, privateKey;
|
5240
|
-
return
|
4816
|
+
return _regeneratorRuntime().wrap(function _callee50$(_context51) {
|
5241
4817
|
while (1) {
|
5242
4818
|
switch (_context51.prev = _context51.next) {
|
5243
4819
|
case 0:
|
@@ -5291,9 +4867,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5291
4867
|
_proto.recoverPrivateKeyFromPassword =
|
5292
4868
|
/*#__PURE__*/
|
5293
4869
|
function () {
|
5294
|
-
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4870
|
+
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(id, password) {
|
5295
4871
|
var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
|
5296
|
-
return
|
4872
|
+
return _regeneratorRuntime().wrap(function _callee51$(_context52) {
|
5297
4873
|
while (1) {
|
5298
4874
|
switch (_context52.prev = _context52.next) {
|
5299
4875
|
case 0:
|
@@ -5339,9 +4915,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5339
4915
|
_proto.recoverPrivateKeyFromMasterKey =
|
5340
4916
|
/*#__PURE__*/
|
5341
4917
|
function () {
|
5342
|
-
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4918
|
+
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(id, masterKey) {
|
5343
4919
|
var recoveryPayload, symmetricDecryptor, privateKey;
|
5344
|
-
return
|
4920
|
+
return _regeneratorRuntime().wrap(function _callee52$(_context53) {
|
5345
4921
|
while (1) {
|
5346
4922
|
switch (_context53.prev = _context53.next) {
|
5347
4923
|
case 0:
|
@@ -5381,9 +4957,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5381
4957
|
_proto.updateSecurityQuestions =
|
5382
4958
|
/*#__PURE__*/
|
5383
4959
|
function () {
|
5384
|
-
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4960
|
+
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5385
4961
|
var securityQuestionPayload, updateRequest;
|
5386
|
-
return
|
4962
|
+
return _regeneratorRuntime().wrap(function _callee53$(_context54) {
|
5387
4963
|
while (1) {
|
5388
4964
|
switch (_context54.prev = _context54.next) {
|
5389
4965
|
case 0:
|
@@ -5435,9 +5011,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5435
5011
|
_proto.updatePassword =
|
5436
5012
|
/*#__PURE__*/
|
5437
5013
|
function () {
|
5438
|
-
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5014
|
+
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(id, newPassword, oldPassword) {
|
5439
5015
|
var symmetricEncryptor, passwordPayload, updateRequest;
|
5440
|
-
return
|
5016
|
+
return _regeneratorRuntime().wrap(function _callee54$(_context55) {
|
5441
5017
|
while (1) {
|
5442
5018
|
switch (_context55.prev = _context55.next) {
|
5443
5019
|
case 0:
|
@@ -5497,9 +5073,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5497
5073
|
_proto.updateMasterKey =
|
5498
5074
|
/*#__PURE__*/
|
5499
5075
|
function () {
|
5500
|
-
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5076
|
+
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55(id, masterKey, lockboxUuid) {
|
5501
5077
|
var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
|
5502
|
-
return
|
5078
|
+
return _regeneratorRuntime().wrap(function _callee55$(_context56) {
|
5503
5079
|
while (1) {
|
5504
5080
|
switch (_context56.prev = _context56.next) {
|
5505
5081
|
case 0:
|