oro-sdk 3.22.0 → 3.25.0-dev1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/client.d.ts +2 -1
- package/dist/helpers/patient-registration.d.ts +5 -1
- package/dist/oro-sdk.cjs.development.js +775 -1158
- package/dist/oro-sdk.cjs.development.js.map +1 -1
- package/dist/oro-sdk.cjs.production.min.js +1 -1
- package/dist/oro-sdk.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk.esm.js +775 -1158
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +5 -3
- package/src/helpers/patient-registration.ts +63 -4
- package/LICENSE +0 -21
@@ -9,1029 +9,612 @@ var initApis__default = _interopDefault(initApis);
|
|
9
9
|
var oroToolbox = require('oro-toolbox');
|
10
10
|
var idbKeyval = require('idb-keyval');
|
11
11
|
|
12
|
-
function
|
13
|
-
|
14
|
-
return new BabelRegExp(re, void 0, groups);
|
15
|
-
};
|
16
|
-
|
17
|
-
var _super = RegExp.prototype,
|
18
|
-
_groups = new WeakMap();
|
19
|
-
|
20
|
-
function BabelRegExp(re, flags, groups) {
|
21
|
-
var _this = new RegExp(re, flags);
|
22
|
-
|
23
|
-
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
|
24
|
-
}
|
25
|
-
|
26
|
-
function buildGroups(result, re) {
|
27
|
-
var g = _groups.get(re);
|
28
|
-
|
29
|
-
return Object.keys(g).reduce(function (groups, name) {
|
30
|
-
return groups[name] = result[g[name]], groups;
|
31
|
-
}, Object.create(null));
|
32
|
-
}
|
33
|
-
|
34
|
-
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
35
|
-
var result = _super.exec.call(this, str);
|
36
|
-
|
37
|
-
return result && (result.groups = buildGroups(result, this)), result;
|
38
|
-
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
39
|
-
if ("string" == typeof substitution) {
|
40
|
-
var groups = _groups.get(this);
|
41
|
-
|
42
|
-
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
43
|
-
return "$" + groups[name];
|
44
|
-
}));
|
45
|
-
}
|
46
|
-
|
47
|
-
if ("function" == typeof substitution) {
|
48
|
-
var _this = this;
|
49
|
-
|
50
|
-
return _super[Symbol.replace].call(this, str, function () {
|
51
|
-
var args = arguments;
|
52
|
-
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
|
53
|
-
});
|
54
|
-
}
|
55
|
-
|
56
|
-
return _super[Symbol.replace].call(this, str, substitution);
|
57
|
-
}, _wrapRegExp.apply(this, arguments);
|
58
|
-
}
|
59
|
-
|
60
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
61
|
-
try {
|
62
|
-
var info = gen[key](arg);
|
63
|
-
var value = info.value;
|
64
|
-
} catch (error) {
|
65
|
-
reject(error);
|
66
|
-
return;
|
67
|
-
}
|
68
|
-
|
69
|
-
if (info.done) {
|
70
|
-
resolve(value);
|
71
|
-
} else {
|
72
|
-
Promise.resolve(value).then(_next, _throw);
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
function _asyncToGenerator(fn) {
|
77
|
-
return function () {
|
78
|
-
var self = this,
|
79
|
-
args = arguments;
|
80
|
-
return new Promise(function (resolve, reject) {
|
81
|
-
var gen = fn.apply(self, args);
|
82
|
-
|
83
|
-
function _next(value) {
|
84
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
85
|
-
}
|
86
|
-
|
87
|
-
function _throw(err) {
|
88
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
89
|
-
}
|
90
|
-
|
91
|
-
_next(undefined);
|
92
|
-
});
|
93
|
-
};
|
94
|
-
}
|
95
|
-
|
96
|
-
function _extends() {
|
97
|
-
_extends = Object.assign || function (target) {
|
98
|
-
for (var i = 1; i < arguments.length; i++) {
|
99
|
-
var source = arguments[i];
|
100
|
-
|
101
|
-
for (var key in source) {
|
102
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
103
|
-
target[key] = source[key];
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
12
|
+
function _regeneratorRuntime() {
|
13
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
107
14
|
|
108
|
-
|
15
|
+
_regeneratorRuntime = function () {
|
16
|
+
return exports;
|
109
17
|
};
|
110
18
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
function
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
120
|
-
constructor: {
|
121
|
-
value: subClass,
|
122
|
-
writable: true,
|
123
|
-
configurable: true
|
124
|
-
}
|
125
|
-
});
|
126
|
-
Object.defineProperty(subClass, "prototype", {
|
127
|
-
writable: false
|
128
|
-
});
|
129
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
130
|
-
}
|
131
|
-
|
132
|
-
function _inheritsLoose(subClass, superClass) {
|
133
|
-
subClass.prototype = Object.create(superClass.prototype);
|
134
|
-
subClass.prototype.constructor = subClass;
|
135
|
-
|
136
|
-
_setPrototypeOf(subClass, superClass);
|
137
|
-
}
|
138
|
-
|
139
|
-
function _getPrototypeOf(o) {
|
140
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
141
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
142
|
-
};
|
143
|
-
return _getPrototypeOf(o);
|
144
|
-
}
|
145
|
-
|
146
|
-
function _setPrototypeOf(o, p) {
|
147
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
148
|
-
o.__proto__ = p;
|
149
|
-
return o;
|
150
|
-
};
|
151
|
-
|
152
|
-
return _setPrototypeOf(o, p);
|
153
|
-
}
|
154
|
-
|
155
|
-
function _isNativeReflectConstruct() {
|
156
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
157
|
-
if (Reflect.construct.sham) return false;
|
158
|
-
if (typeof Proxy === "function") return true;
|
159
|
-
|
160
|
-
try {
|
161
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
162
|
-
return true;
|
163
|
-
} catch (e) {
|
164
|
-
return false;
|
165
|
-
}
|
166
|
-
}
|
167
|
-
|
168
|
-
function _construct(Parent, args, Class) {
|
169
|
-
if (_isNativeReflectConstruct()) {
|
170
|
-
_construct = Reflect.construct;
|
171
|
-
} else {
|
172
|
-
_construct = function _construct(Parent, args, Class) {
|
173
|
-
var a = [null];
|
174
|
-
a.push.apply(a, args);
|
175
|
-
var Constructor = Function.bind.apply(Parent, a);
|
176
|
-
var instance = new Constructor();
|
177
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
178
|
-
return instance;
|
179
|
-
};
|
180
|
-
}
|
181
|
-
|
182
|
-
return _construct.apply(null, arguments);
|
183
|
-
}
|
184
|
-
|
185
|
-
function _isNativeFunction(fn) {
|
186
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
187
|
-
}
|
188
|
-
|
189
|
-
function _wrapNativeSuper(Class) {
|
190
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
191
|
-
|
192
|
-
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
193
|
-
if (Class === null || !_isNativeFunction(Class)) return Class;
|
194
|
-
|
195
|
-
if (typeof Class !== "function") {
|
196
|
-
throw new TypeError("Super expression must either be null or a function");
|
197
|
-
}
|
198
|
-
|
199
|
-
if (typeof _cache !== "undefined") {
|
200
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
201
|
-
|
202
|
-
_cache.set(Class, Wrapper);
|
203
|
-
}
|
204
|
-
|
205
|
-
function Wrapper() {
|
206
|
-
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
207
|
-
}
|
208
|
-
|
209
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
210
|
-
constructor: {
|
211
|
-
value: Wrapper,
|
212
|
-
enumerable: false,
|
213
|
-
writable: true,
|
214
|
-
configurable: true
|
215
|
-
}
|
216
|
-
});
|
217
|
-
return _setPrototypeOf(Wrapper, Class);
|
218
|
-
};
|
219
|
-
|
220
|
-
return _wrapNativeSuper(Class);
|
221
|
-
}
|
222
|
-
|
223
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
224
|
-
if (source == null) return {};
|
225
|
-
var target = {};
|
226
|
-
var sourceKeys = Object.keys(source);
|
227
|
-
var key, i;
|
228
|
-
|
229
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
230
|
-
key = sourceKeys[i];
|
231
|
-
if (excluded.indexOf(key) >= 0) continue;
|
232
|
-
target[key] = source[key];
|
233
|
-
}
|
234
|
-
|
235
|
-
return target;
|
236
|
-
}
|
237
|
-
|
238
|
-
function _unsupportedIterableToArray(o, minLen) {
|
239
|
-
if (!o) return;
|
240
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
241
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
242
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
243
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
244
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
245
|
-
}
|
246
|
-
|
247
|
-
function _arrayLikeToArray(arr, len) {
|
248
|
-
if (len == null || len > arr.length) len = arr.length;
|
249
|
-
|
250
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
251
|
-
|
252
|
-
return arr2;
|
253
|
-
}
|
254
|
-
|
255
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
256
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
257
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
258
|
-
|
259
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
260
|
-
if (it) o = it;
|
261
|
-
var i = 0;
|
262
|
-
return function () {
|
263
|
-
if (i >= o.length) return {
|
264
|
-
done: true
|
265
|
-
};
|
266
|
-
return {
|
267
|
-
done: false,
|
268
|
-
value: o[i++]
|
269
|
-
};
|
270
|
-
};
|
271
|
-
}
|
272
|
-
|
273
|
-
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
|
-
}
|
275
|
-
|
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";
|
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";
|
297
26
|
|
298
27
|
function define(obj, key, value) {
|
299
|
-
Object.defineProperty(obj, key, {
|
28
|
+
return Object.defineProperty(obj, key, {
|
300
29
|
value: value,
|
301
|
-
enumerable:
|
302
|
-
configurable:
|
303
|
-
writable:
|
304
|
-
});
|
305
|
-
return obj[key];
|
30
|
+
enumerable: !0,
|
31
|
+
configurable: !0,
|
32
|
+
writable: !0
|
33
|
+
}), obj[key];
|
306
34
|
}
|
35
|
+
|
307
36
|
try {
|
308
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
309
37
|
define({}, "");
|
310
38
|
} catch (err) {
|
311
|
-
define = function(obj, key, value) {
|
39
|
+
define = function (obj, key, value) {
|
312
40
|
return obj[key] = value;
|
313
41
|
};
|
314
42
|
}
|
315
43
|
|
316
44
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
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);
|
321
63
|
|
322
|
-
|
323
|
-
|
324
|
-
|
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
|
+
}
|
325
84
|
|
326
|
-
|
85
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
86
|
+
}
|
87
|
+
};
|
88
|
+
}(innerFn, self, context), generator;
|
327
89
|
}
|
328
|
-
exports.wrap = wrap;
|
329
90
|
|
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
91
|
function tryCatch(fn, obj, arg) {
|
341
92
|
try {
|
342
|
-
return {
|
93
|
+
return {
|
94
|
+
type: "normal",
|
95
|
+
arg: fn.call(obj, arg)
|
96
|
+
};
|
343
97
|
} catch (err) {
|
344
|
-
return {
|
98
|
+
return {
|
99
|
+
type: "throw",
|
100
|
+
arg: err
|
101
|
+
};
|
345
102
|
}
|
346
103
|
}
|
347
104
|
|
348
|
-
|
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.
|
105
|
+
exports.wrap = wrap;
|
355
106
|
var ContinueSentinel = {};
|
356
107
|
|
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
108
|
function Generator() {}
|
109
|
+
|
362
110
|
function GeneratorFunction() {}
|
111
|
+
|
363
112
|
function GeneratorFunctionPrototype() {}
|
364
113
|
|
365
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
366
|
-
// don't natively support it.
|
367
114
|
var IteratorPrototype = {};
|
368
115
|
define(IteratorPrototype, iteratorSymbol, function () {
|
369
116
|
return this;
|
370
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);
|
371
122
|
|
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
123
|
function defineIteratorMethods(prototype) {
|
396
|
-
["next", "throw", "return"].forEach(function(method) {
|
397
|
-
define(prototype, method, function(arg) {
|
124
|
+
["next", "throw", "return"].forEach(function (method) {
|
125
|
+
define(prototype, method, function (arg) {
|
398
126
|
return this._invoke(method, arg);
|
399
127
|
});
|
400
128
|
});
|
401
129
|
}
|
402
130
|
|
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
131
|
function AsyncIterator(generator, PromiseImpl) {
|
433
132
|
function invoke(method, arg, resolve, reject) {
|
434
133
|
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
134
|
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
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) {
|
459
145
|
return invoke("throw", error, resolve, reject);
|
460
146
|
});
|
461
147
|
}
|
148
|
+
|
149
|
+
reject(record.arg);
|
462
150
|
}
|
463
151
|
|
464
152
|
var previousPromise;
|
465
153
|
|
466
|
-
function
|
154
|
+
this._invoke = function (method, arg) {
|
467
155
|
function callInvokeWithMethodAndArg() {
|
468
|
-
return new PromiseImpl(function(resolve, reject) {
|
156
|
+
return new PromiseImpl(function (resolve, reject) {
|
469
157
|
invoke(method, arg, resolve, reject);
|
470
158
|
});
|
471
159
|
}
|
472
160
|
|
473
|
-
return previousPromise =
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
callInvokeWithMethodAndArg,
|
488
|
-
// Avoid propagating failures to Promises returned by later
|
489
|
-
// invocations of the iterator.
|
490
|
-
callInvokeWithMethodAndArg
|
491
|
-
) : callInvokeWithMethodAndArg();
|
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;
|
492
175
|
}
|
493
176
|
|
494
|
-
|
495
|
-
|
496
|
-
|
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);
|
497
181
|
}
|
498
182
|
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
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
|
-
};
|
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
|
+
}
|
522
189
|
|
523
|
-
function
|
524
|
-
var
|
190
|
+
function resetTryEntry(entry) {
|
191
|
+
var record = entry.completion || {};
|
192
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
193
|
+
}
|
525
194
|
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
195
|
+
function Context(tryLocsList) {
|
196
|
+
this.tryEntries = [{
|
197
|
+
tryLoc: "root"
|
198
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
199
|
+
}
|
530
200
|
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
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;
|
535
211
|
|
536
|
-
|
537
|
-
|
538
|
-
|
212
|
+
return next.value = undefined, next.done = !0, next;
|
213
|
+
};
|
214
|
+
|
215
|
+
return next.next = next;
|
539
216
|
}
|
217
|
+
}
|
540
218
|
|
541
|
-
|
542
|
-
|
219
|
+
return {
|
220
|
+
next: doneResult
|
221
|
+
};
|
222
|
+
}
|
543
223
|
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
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 = [];
|
553
254
|
|
554
|
-
|
555
|
-
// Setting context._sent for legacy support of Babel's
|
556
|
-
// function.sent implementation.
|
557
|
-
context.sent = context._sent = context.arg;
|
255
|
+
for (var key in object) keys.push(key);
|
558
256
|
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
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
|
+
}
|
564
262
|
|
565
|
-
|
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;
|
566
279
|
|
567
|
-
|
568
|
-
|
569
|
-
|
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
|
+
}
|
570
283
|
|
571
|
-
|
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");
|
572
288
|
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
// GenStateExecuting and loop back for another invocation.
|
577
|
-
state = context.done
|
578
|
-
? GenStateCompleted
|
579
|
-
: GenStateSuspendedYield;
|
289
|
+
if (entry.tryLoc <= this.prev) {
|
290
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
291
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
580
292
|
|
581
|
-
if (
|
582
|
-
|
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);
|
583
301
|
}
|
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
302
|
}
|
597
303
|
}
|
598
|
-
}
|
599
|
-
|
304
|
+
},
|
305
|
+
abrupt: function (type, arg) {
|
306
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
307
|
+
var entry = this.tryEntries[i];
|
600
308
|
|
601
|
-
|
602
|
-
|
603
|
-
|
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
|
-
}
|
309
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
310
|
+
var finallyEntry = entry;
|
311
|
+
break;
|
626
312
|
}
|
627
|
-
|
628
|
-
context.method = "throw";
|
629
|
-
context.arg = new TypeError(
|
630
|
-
"The iterator does not provide a 'throw' method");
|
631
313
|
}
|
632
314
|
|
633
|
-
|
634
|
-
|
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];
|
635
332
|
|
636
|
-
|
333
|
+
if (entry.tryLoc === tryLoc) {
|
334
|
+
var record = entry.completion;
|
637
335
|
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
return ContinueSentinel;
|
643
|
-
}
|
336
|
+
if ("throw" === record.type) {
|
337
|
+
var thrown = record.arg;
|
338
|
+
resetTryEntry(entry);
|
339
|
+
}
|
644
340
|
|
645
|
-
|
341
|
+
return thrown;
|
342
|
+
}
|
343
|
+
}
|
646
344
|
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
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;
|
652
353
|
}
|
354
|
+
}, exports;
|
355
|
+
}
|
653
356
|
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
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
|
-
}
|
357
|
+
function _wrapRegExp() {
|
358
|
+
_wrapRegExp = function (re, groups) {
|
359
|
+
return new BabelRegExp(re, void 0, groups);
|
360
|
+
};
|
672
361
|
|
673
|
-
|
674
|
-
|
675
|
-
return info;
|
676
|
-
}
|
362
|
+
var _super = RegExp.prototype,
|
363
|
+
_groups = new WeakMap();
|
677
364
|
|
678
|
-
|
679
|
-
|
680
|
-
context.delegate = null;
|
681
|
-
return ContinueSentinel;
|
682
|
-
}
|
365
|
+
function BabelRegExp(re, flags, groups) {
|
366
|
+
var _this = new RegExp(re, flags);
|
683
367
|
|
684
|
-
|
685
|
-
|
686
|
-
defineIteratorMethods(Gp);
|
368
|
+
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
|
369
|
+
}
|
687
370
|
|
688
|
-
|
371
|
+
function buildGroups(result, re) {
|
372
|
+
var g = _groups.get(re);
|
689
373
|
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
695
|
-
define(Gp, iteratorSymbol, function() {
|
696
|
-
return this;
|
697
|
-
});
|
374
|
+
return Object.keys(g).reduce(function (groups, name) {
|
375
|
+
return groups[name] = result[g[name]], groups;
|
376
|
+
}, Object.create(null));
|
377
|
+
}
|
698
378
|
|
699
|
-
|
700
|
-
|
701
|
-
});
|
379
|
+
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
380
|
+
var result = _super.exec.call(this, str);
|
702
381
|
|
703
|
-
|
704
|
-
|
382
|
+
return result && (result.groups = buildGroups(result, this)), result;
|
383
|
+
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
384
|
+
if ("string" == typeof substitution) {
|
385
|
+
var groups = _groups.get(this);
|
705
386
|
|
706
|
-
|
707
|
-
|
387
|
+
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
388
|
+
return "$" + groups[name];
|
389
|
+
}));
|
708
390
|
}
|
709
391
|
|
710
|
-
if (
|
711
|
-
|
712
|
-
|
392
|
+
if ("function" == typeof substitution) {
|
393
|
+
var _this = this;
|
394
|
+
|
395
|
+
return _super[Symbol.replace].call(this, str, function () {
|
396
|
+
var args = arguments;
|
397
|
+
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
|
398
|
+
});
|
713
399
|
}
|
714
400
|
|
715
|
-
|
716
|
-
}
|
401
|
+
return _super[Symbol.replace].call(this, str, substitution);
|
402
|
+
}, _wrapRegExp.apply(this, arguments);
|
403
|
+
}
|
717
404
|
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
405
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
406
|
+
try {
|
407
|
+
var info = gen[key](arg);
|
408
|
+
var value = info.value;
|
409
|
+
} catch (error) {
|
410
|
+
reject(error);
|
411
|
+
return;
|
723
412
|
}
|
724
413
|
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
730
|
-
tryLocsList.forEach(pushTryEntry, this);
|
731
|
-
this.reset(true);
|
414
|
+
if (info.done) {
|
415
|
+
resolve(value);
|
416
|
+
} else {
|
417
|
+
Promise.resolve(value).then(_next, _throw);
|
732
418
|
}
|
419
|
+
}
|
733
420
|
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
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
|
-
};
|
421
|
+
function _asyncToGenerator(fn) {
|
422
|
+
return function () {
|
423
|
+
var self = this,
|
424
|
+
args = arguments;
|
425
|
+
return new Promise(function (resolve, reject) {
|
426
|
+
var gen = fn.apply(self, args);
|
760
427
|
|
761
|
-
|
762
|
-
|
763
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
764
|
-
if (iteratorMethod) {
|
765
|
-
return iteratorMethod.call(iterable);
|
428
|
+
function _next(value) {
|
429
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
766
430
|
}
|
767
431
|
|
768
|
-
|
769
|
-
|
432
|
+
function _throw(err) {
|
433
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
770
434
|
}
|
771
435
|
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
next.value = iterable[i];
|
777
|
-
next.done = false;
|
778
|
-
return next;
|
779
|
-
}
|
780
|
-
}
|
781
|
-
|
782
|
-
next.value = undefined$1;
|
783
|
-
next.done = true;
|
436
|
+
_next(undefined);
|
437
|
+
});
|
438
|
+
};
|
439
|
+
}
|
784
440
|
|
785
|
-
|
786
|
-
|
441
|
+
function _extends() {
|
442
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
443
|
+
for (var i = 1; i < arguments.length; i++) {
|
444
|
+
var source = arguments[i];
|
787
445
|
|
788
|
-
|
446
|
+
for (var key in source) {
|
447
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
448
|
+
target[key] = source[key];
|
449
|
+
}
|
789
450
|
}
|
790
451
|
}
|
791
452
|
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
453
|
+
return target;
|
454
|
+
};
|
455
|
+
return _extends.apply(this, arguments);
|
456
|
+
}
|
796
457
|
|
797
|
-
|
798
|
-
|
458
|
+
function _inherits(subClass, superClass) {
|
459
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
460
|
+
throw new TypeError("Super expression must either be null or a function");
|
799
461
|
}
|
800
462
|
|
801
|
-
|
802
|
-
constructor:
|
463
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
464
|
+
constructor: {
|
465
|
+
value: subClass,
|
466
|
+
writable: true,
|
467
|
+
configurable: true
|
468
|
+
}
|
469
|
+
});
|
470
|
+
Object.defineProperty(subClass, "prototype", {
|
471
|
+
writable: false
|
472
|
+
});
|
473
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
474
|
+
}
|
803
475
|
|
804
|
-
|
805
|
-
|
806
|
-
|
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
|
-
},
|
476
|
+
function _inheritsLoose(subClass, superClass) {
|
477
|
+
subClass.prototype = Object.create(superClass.prototype);
|
478
|
+
subClass.prototype.constructor = subClass;
|
829
479
|
|
830
|
-
|
831
|
-
|
480
|
+
_setPrototypeOf(subClass, superClass);
|
481
|
+
}
|
832
482
|
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
483
|
+
function _getPrototypeOf(o) {
|
484
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
485
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
486
|
+
};
|
487
|
+
return _getPrototypeOf(o);
|
488
|
+
}
|
838
489
|
|
839
|
-
|
840
|
-
|
490
|
+
function _setPrototypeOf(o, p) {
|
491
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
492
|
+
o.__proto__ = p;
|
493
|
+
return o;
|
494
|
+
};
|
495
|
+
return _setPrototypeOf(o, p);
|
496
|
+
}
|
841
497
|
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
498
|
+
function _isNativeReflectConstruct() {
|
499
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
500
|
+
if (Reflect.construct.sham) return false;
|
501
|
+
if (typeof Proxy === "function") return true;
|
846
502
|
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
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
|
-
}
|
503
|
+
try {
|
504
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
505
|
+
return true;
|
506
|
+
} catch (e) {
|
507
|
+
return false;
|
508
|
+
}
|
509
|
+
}
|
859
510
|
|
860
|
-
|
861
|
-
|
511
|
+
function _construct(Parent, args, Class) {
|
512
|
+
if (_isNativeReflectConstruct()) {
|
513
|
+
_construct = Reflect.construct.bind();
|
514
|
+
} else {
|
515
|
+
_construct = function _construct(Parent, args, Class) {
|
516
|
+
var a = [null];
|
517
|
+
a.push.apply(a, args);
|
518
|
+
var Constructor = Function.bind.apply(Parent, a);
|
519
|
+
var instance = new Constructor();
|
520
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
521
|
+
return instance;
|
522
|
+
};
|
523
|
+
}
|
862
524
|
|
863
|
-
|
864
|
-
|
865
|
-
var record = entry.completion;
|
525
|
+
return _construct.apply(null, arguments);
|
526
|
+
}
|
866
527
|
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
// throw the exception.
|
871
|
-
return handle("end");
|
872
|
-
}
|
528
|
+
function _isNativeFunction(fn) {
|
529
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
530
|
+
}
|
873
531
|
|
874
|
-
|
875
|
-
|
876
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
532
|
+
function _wrapNativeSuper(Class) {
|
533
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
877
534
|
|
878
|
-
|
879
|
-
|
880
|
-
return handle(entry.catchLoc, true);
|
881
|
-
} else if (this.prev < entry.finallyLoc) {
|
882
|
-
return handle(entry.finallyLoc);
|
883
|
-
}
|
535
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
536
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
884
537
|
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
}
|
538
|
+
if (typeof Class !== "function") {
|
539
|
+
throw new TypeError("Super expression must either be null or a function");
|
540
|
+
}
|
889
541
|
|
890
|
-
|
891
|
-
|
892
|
-
return handle(entry.finallyLoc);
|
893
|
-
}
|
542
|
+
if (typeof _cache !== "undefined") {
|
543
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
894
544
|
|
895
|
-
|
896
|
-
|
897
|
-
}
|
898
|
-
}
|
899
|
-
}
|
900
|
-
},
|
545
|
+
_cache.set(Class, Wrapper);
|
546
|
+
}
|
901
547
|
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
if (entry.tryLoc <= this.prev &&
|
906
|
-
hasOwn.call(entry, "finallyLoc") &&
|
907
|
-
this.prev < entry.finallyLoc) {
|
908
|
-
var finallyEntry = entry;
|
909
|
-
break;
|
910
|
-
}
|
911
|
-
}
|
548
|
+
function Wrapper() {
|
549
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
550
|
+
}
|
912
551
|
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
// location outside the try/catch block.
|
920
|
-
finallyEntry = null;
|
552
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
553
|
+
constructor: {
|
554
|
+
value: Wrapper,
|
555
|
+
enumerable: false,
|
556
|
+
writable: true,
|
557
|
+
configurable: true
|
921
558
|
}
|
559
|
+
});
|
560
|
+
return _setPrototypeOf(Wrapper, Class);
|
561
|
+
};
|
922
562
|
|
923
|
-
|
924
|
-
|
925
|
-
record.arg = arg;
|
563
|
+
return _wrapNativeSuper(Class);
|
564
|
+
}
|
926
565
|
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
566
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
567
|
+
if (source == null) return {};
|
568
|
+
var target = {};
|
569
|
+
var sourceKeys = Object.keys(source);
|
570
|
+
var key, i;
|
932
571
|
|
933
|
-
|
934
|
-
|
572
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
573
|
+
key = sourceKeys[i];
|
574
|
+
if (excluded.indexOf(key) >= 0) continue;
|
575
|
+
target[key] = source[key];
|
576
|
+
}
|
935
577
|
|
936
|
-
|
937
|
-
|
938
|
-
throw record.arg;
|
939
|
-
}
|
578
|
+
return target;
|
579
|
+
}
|
940
580
|
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
this.next = afterLoc;
|
950
|
-
}
|
581
|
+
function _unsupportedIterableToArray(o, minLen) {
|
582
|
+
if (!o) return;
|
583
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
584
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
585
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
586
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
587
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
588
|
+
}
|
951
589
|
|
952
|
-
|
953
|
-
|
590
|
+
function _arrayLikeToArray(arr, len) {
|
591
|
+
if (len == null || len > arr.length) len = arr.length;
|
954
592
|
|
955
|
-
|
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
|
-
},
|
593
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
965
594
|
|
966
|
-
|
967
|
-
|
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
|
-
}
|
595
|
+
return arr2;
|
596
|
+
}
|
978
597
|
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
},
|
598
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
599
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
600
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
983
601
|
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
602
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
603
|
+
if (it) o = it;
|
604
|
+
var i = 0;
|
605
|
+
return function () {
|
606
|
+
if (i >= o.length) return {
|
607
|
+
done: true
|
989
608
|
};
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
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);
|
609
|
+
return {
|
610
|
+
done: false,
|
611
|
+
value: o[i++]
|
612
|
+
};
|
613
|
+
};
|
1032
614
|
}
|
615
|
+
|
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.");
|
1033
617
|
}
|
1034
|
-
});
|
1035
618
|
|
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);
|
@@ -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:
|
@@ -1637,10 +1220,11 @@ var MAX_RETRIES = 15;
|
|
1637
1220
|
* @param masterKey
|
1638
1221
|
* @param recoveryQA
|
1639
1222
|
* @param indexSearch create search index for the consultation if true
|
1223
|
+
* @param onProgress callback that is called whenever a new step of patient registration is executed. Note: progress ranges from 0 to 1, and descriptionKey is a description of the progress as a key so the app would use it to translate the description
|
1640
1224
|
* @returns the successful registration
|
1641
1225
|
*/
|
1642
1226
|
|
1643
|
-
function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
1227
|
+
function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
1644
1228
|
return _registerPatient.apply(this, arguments);
|
1645
1229
|
}
|
1646
1230
|
/**
|
@@ -1651,10 +1235,10 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
|
1651
1235
|
*/
|
1652
1236
|
|
1653
1237
|
function _registerPatient() {
|
1654
|
-
_registerPatient = _asyncToGenerator( /*#__PURE__*/
|
1655
|
-
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, _ret;
|
1238
|
+
_registerPatient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch, onProgress) {
|
1239
|
+
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, stepsTotalNum, currentStep, _ret;
|
1656
1240
|
|
1657
|
-
return
|
1241
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1658
1242
|
while (1) {
|
1659
1243
|
switch (_context4.prev = _context4.next) {
|
1660
1244
|
case 0:
|
@@ -1668,107 +1252,115 @@ function _registerPatient() {
|
|
1668
1252
|
retry = MAX_RETRIES;
|
1669
1253
|
identity = undefined;
|
1670
1254
|
errorsThrown = [];
|
1255
|
+
stepsTotalNum = 9;
|
1671
1256
|
|
1672
|
-
case
|
1257
|
+
case 8:
|
1673
1258
|
if (!(retry > 0)) {
|
1674
|
-
_context4.next =
|
1259
|
+
_context4.next = 24;
|
1675
1260
|
break;
|
1676
1261
|
}
|
1677
1262
|
|
1678
|
-
_context4.prev =
|
1679
|
-
return _context4.delegateYield( /*#__PURE__*/
|
1263
|
+
_context4.prev = 9;
|
1264
|
+
return _context4.delegateYield( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
1680
1265
|
var _consultIndex, _identity, _identity2;
|
1681
1266
|
|
1682
1267
|
var practitioners, grantPromises, consultIndex, consultIndexPromises;
|
1683
|
-
return
|
1268
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1684
1269
|
while (1) {
|
1685
1270
|
switch (_context3.prev = _context3.next) {
|
1686
1271
|
case 0:
|
1687
|
-
|
1272
|
+
currentStep = 0;
|
1273
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'retrieve_practitioners'); // Wait a bit each retry (we also want the first one to wait)
|
1274
|
+
|
1275
|
+
_context3.next = 4;
|
1688
1276
|
return new Promise(function (resolve) {
|
1689
1277
|
return setTimeout(resolve, 2000);
|
1690
1278
|
});
|
1691
1279
|
|
1692
|
-
case
|
1280
|
+
case 4:
|
1693
1281
|
if (practitionerAdmin) {
|
1694
|
-
_context3.next =
|
1282
|
+
_context3.next = 8;
|
1695
1283
|
break;
|
1696
1284
|
}
|
1697
1285
|
|
1698
|
-
_context3.next =
|
1286
|
+
_context3.next = 7;
|
1699
1287
|
return oroClient.practiceClient.practiceGetFromUuid(consultRequest.uuidPractice);
|
1700
1288
|
|
1701
|
-
case
|
1289
|
+
case 7:
|
1702
1290
|
practitionerAdmin = _context3.sent.uuidAdmin;
|
1703
1291
|
|
1704
|
-
case
|
1705
|
-
_context3.next =
|
1292
|
+
case 8:
|
1293
|
+
_context3.next = 10;
|
1706
1294
|
return oroClient.practiceClient.practiceGetPractitioners(consultRequest.uuidPractice)["catch"](function (err) {
|
1707
1295
|
console.log("Error retrieving practitioners", err);
|
1708
1296
|
return [];
|
1709
1297
|
});
|
1710
1298
|
|
1711
|
-
case
|
1299
|
+
case 10:
|
1712
1300
|
practitioners = _context3.sent;
|
1301
|
+
// Creating consult
|
1302
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'create_consult');
|
1713
1303
|
|
1714
1304
|
if (consult) {
|
1715
|
-
_context3.next =
|
1305
|
+
_context3.next = 16;
|
1716
1306
|
break;
|
1717
1307
|
}
|
1718
1308
|
|
1719
|
-
_context3.next =
|
1309
|
+
_context3.next = 15;
|
1720
1310
|
return getOrCreatePatientConsultationUuid(consultRequest, oroClient);
|
1721
1311
|
|
1722
|
-
case
|
1312
|
+
case 15:
|
1723
1313
|
consult = _context3.sent;
|
1724
1314
|
|
1725
|
-
case
|
1315
|
+
case 16:
|
1316
|
+
// Creating lockbox
|
1317
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'create_lockbox');
|
1318
|
+
|
1726
1319
|
if (lockboxUuid) {
|
1727
|
-
_context3.next =
|
1320
|
+
_context3.next = 21;
|
1728
1321
|
break;
|
1729
1322
|
}
|
1730
1323
|
|
1731
|
-
_context3.next =
|
1324
|
+
_context3.next = 20;
|
1732
1325
|
return getOrCreatePatientLockbox(oroClient);
|
1733
1326
|
|
1734
|
-
case
|
1327
|
+
case 20:
|
1735
1328
|
lockboxUuid = _context3.sent;
|
1736
1329
|
|
1737
|
-
case
|
1330
|
+
case 21:
|
1738
1331
|
if (identity) {
|
1739
|
-
_context3.next =
|
1332
|
+
_context3.next = 25;
|
1740
1333
|
break;
|
1741
1334
|
}
|
1742
1335
|
|
1743
|
-
_context3.next =
|
1336
|
+
_context3.next = 24;
|
1744
1337
|
return oroClient.guardClient.identityGet(patientUuid);
|
1745
1338
|
|
1746
|
-
case
|
1339
|
+
case 24:
|
1747
1340
|
identity = _context3.sent;
|
1748
1341
|
|
1749
|
-
case
|
1750
|
-
_context3.next =
|
1342
|
+
case 25:
|
1343
|
+
_context3.next = 27;
|
1751
1344
|
return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
|
1752
1345
|
console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
|
1753
1346
|
|
1754
|
-
// if we cannot grant to the admin, then the registration will fail
|
1755
1347
|
errorsThrown.push(err);
|
1756
1348
|
});
|
1757
1349
|
|
1758
|
-
case
|
1350
|
+
case 27:
|
1759
1351
|
// Patient Grant to practice
|
1352
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'grant_patient');
|
1760
1353
|
grantPromises = practitioners.filter(function (practitioner) {
|
1761
1354
|
return practitioner.uuid !== practitionerAdmin;
|
1762
1355
|
}).map( /*#__PURE__*/function () {
|
1763
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
1764
|
-
return
|
1356
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(practitioner) {
|
1357
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1765
1358
|
while (1) {
|
1766
1359
|
switch (_context.prev = _context.next) {
|
1767
1360
|
case 0:
|
1768
1361
|
return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
|
1769
1362
|
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
1363
|
|
1771
|
-
// Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
|
1772
1364
|
if (retry <= 1) return;
|
1773
1365
|
errorsThrown.push(err);
|
1774
1366
|
}));
|
@@ -1781,7 +1373,7 @@ function _registerPatient() {
|
|
1781
1373
|
}, _callee);
|
1782
1374
|
}));
|
1783
1375
|
|
1784
|
-
return function (
|
1376
|
+
return function (_x31) {
|
1785
1377
|
return _ref.apply(this, arguments);
|
1786
1378
|
};
|
1787
1379
|
}());
|
@@ -1794,15 +1386,14 @@ function _registerPatient() {
|
|
1794
1386
|
}], _consultIndex); // the index will identify in which lockbox a consultation resides
|
1795
1387
|
|
1796
1388
|
consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
|
1797
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
1798
|
-
return
|
1389
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practitioner) {
|
1390
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1799
1391
|
while (1) {
|
1800
1392
|
switch (_context2.prev = _context2.next) {
|
1801
1393
|
case 0:
|
1802
1394
|
return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
|
1803
1395
|
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
1396
|
|
1805
|
-
// Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
|
1806
1397
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1807
1398
|
}));
|
1808
1399
|
|
@@ -1814,171 +1405,181 @@ function _registerPatient() {
|
|
1814
1405
|
}, _callee2);
|
1815
1406
|
}));
|
1816
1407
|
|
1817
|
-
return function (
|
1408
|
+
return function (_x32) {
|
1818
1409
|
return _ref2.apply(this, arguments);
|
1819
1410
|
};
|
1820
1411
|
}());
|
1821
|
-
_context3.next =
|
1822
|
-
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient
|
1412
|
+
_context3.next = 33;
|
1413
|
+
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient, onProgress ? {
|
1414
|
+
onProgress: onProgress,
|
1415
|
+
currentStep: currentStep,
|
1416
|
+
stepsTotalNum: stepsTotalNum
|
1417
|
+
} : undefined)["catch"](function (err) {
|
1823
1418
|
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
1419
|
|
1825
|
-
// Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
|
1826
1420
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1827
1421
|
});
|
1828
1422
|
|
1829
|
-
case
|
1830
|
-
|
1423
|
+
case 33:
|
1424
|
+
++currentStep;
|
1425
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'store_patient_data');
|
1426
|
+
_context3.next = 37;
|
1831
1427
|
return storePatientData(consult.uuid, consultRequest.isoLanguageRequired, lockboxUuid, workflow, oroClient)["catch"](function (err) {
|
1832
1428
|
console.error('[SDK: registration] Some errors happened during patient data upload', err);
|
1833
1429
|
errorsThrown.push(err);
|
1834
1430
|
});
|
1835
1431
|
|
1836
|
-
case
|
1432
|
+
case 37:
|
1433
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'set_masterkey');
|
1434
|
+
|
1837
1435
|
if (!(masterKey && !((_identity = identity) != null && _identity.recoveryMasterKey))) {
|
1838
|
-
_context3.next =
|
1436
|
+
_context3.next = 44;
|
1839
1437
|
break;
|
1840
1438
|
}
|
1841
1439
|
|
1842
|
-
_context3.next =
|
1440
|
+
_context3.next = 41;
|
1843
1441
|
return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
|
1844
1442
|
console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
|
1845
1443
|
|
1846
|
-
/// it's acceptable to continue registration (return old identity)
|
1847
1444
|
if (retry <= 1) return;
|
1848
1445
|
errorsThrown.push(err);
|
1849
1446
|
return identity;
|
1850
1447
|
});
|
1851
1448
|
|
1852
|
-
case
|
1449
|
+
case 41:
|
1853
1450
|
identity = _context3.sent;
|
1854
|
-
_context3.next =
|
1451
|
+
_context3.next = 45;
|
1855
1452
|
break;
|
1856
1453
|
|
1857
|
-
case
|
1454
|
+
case 44:
|
1858
1455
|
// we did not set the master key so we do not return it
|
1859
1456
|
masterKey = undefined;
|
1860
1457
|
|
1861
|
-
case
|
1458
|
+
case 45:
|
1459
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'set_security_questions');
|
1460
|
+
|
1862
1461
|
if (!(recoveryQA && !((_identity2 = identity) != null && _identity2.recoverySecurityQuestions))) {
|
1863
|
-
_context3.next =
|
1462
|
+
_context3.next = 50;
|
1864
1463
|
break;
|
1865
1464
|
}
|
1866
1465
|
|
1867
|
-
_context3.next =
|
1466
|
+
_context3.next = 49;
|
1868
1467
|
return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
|
1869
1468
|
console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
|
1870
1469
|
|
1871
|
-
/// it's acceptable to continue registration (return old identity)
|
1872
1470
|
if (retry <= 1) return;
|
1873
1471
|
errorsThrown.push(err);
|
1874
1472
|
return identity;
|
1875
1473
|
});
|
1876
1474
|
|
1877
|
-
case
|
1475
|
+
case 49:
|
1878
1476
|
identity = _context3.sent;
|
1879
1477
|
|
1880
|
-
case
|
1881
|
-
_context3.next =
|
1478
|
+
case 50:
|
1479
|
+
_context3.next = 52;
|
1882
1480
|
return Promise.all([].concat(grantPromises, consultIndexPromises));
|
1883
1481
|
|
1884
|
-
case
|
1482
|
+
case 52:
|
1483
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'search_indexing');
|
1484
|
+
|
1885
1485
|
if (!indexSearch) {
|
1886
|
-
_context3.next =
|
1486
|
+
_context3.next = 56;
|
1887
1487
|
break;
|
1888
1488
|
}
|
1889
1489
|
|
1890
|
-
_context3.next =
|
1490
|
+
_context3.next = 56;
|
1891
1491
|
return buildConsultSearchIndex(consult, workflow, oroClient)["catch"](function (err) {
|
1892
1492
|
console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
|
1893
1493
|
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
1494
|
|
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
1495
|
errorsThrown.push(err);
|
1897
1496
|
});
|
1898
1497
|
|
1899
|
-
case
|
1498
|
+
case 56:
|
1900
1499
|
if (!(errorsThrown.length > 0)) {
|
1901
|
-
_context3.next =
|
1500
|
+
_context3.next = 58;
|
1902
1501
|
break;
|
1903
1502
|
}
|
1904
1503
|
|
1905
1504
|
throw errorsThrown;
|
1906
1505
|
|
1907
|
-
case
|
1908
|
-
_context3.next =
|
1506
|
+
case 58:
|
1507
|
+
_context3.next = 60;
|
1909
1508
|
return oroClient.consultClient.updateConsultByUUID(consult.uuid, {
|
1910
1509
|
statusMedical: initApis.MedicalStatus.New
|
1911
1510
|
});
|
1912
1511
|
|
1913
|
-
case
|
1512
|
+
case 60:
|
1513
|
+
// if we got through the complete flow, the registration succeeded
|
1514
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'success');
|
1914
1515
|
return _context3.abrupt("return", "break");
|
1915
1516
|
|
1916
|
-
case
|
1517
|
+
case 62:
|
1917
1518
|
case "end":
|
1918
1519
|
return _context3.stop();
|
1919
1520
|
}
|
1920
1521
|
}
|
1921
1522
|
}, _callee3);
|
1922
|
-
})(), "t0",
|
1523
|
+
})(), "t0", 11);
|
1923
1524
|
|
1924
|
-
case
|
1525
|
+
case 11:
|
1925
1526
|
_ret = _context4.t0;
|
1926
1527
|
|
1927
1528
|
if (!(_ret === "break")) {
|
1928
|
-
_context4.next =
|
1529
|
+
_context4.next = 14;
|
1929
1530
|
break;
|
1930
1531
|
}
|
1931
1532
|
|
1932
|
-
return _context4.abrupt("break",
|
1533
|
+
return _context4.abrupt("break", 24);
|
1933
1534
|
|
1934
|
-
case
|
1935
|
-
_context4.next =
|
1535
|
+
case 14:
|
1536
|
+
_context4.next = 21;
|
1936
1537
|
break;
|
1937
1538
|
|
1938
|
-
case
|
1939
|
-
_context4.prev =
|
1940
|
-
_context4.t1 = _context4["catch"](
|
1539
|
+
case 16:
|
1540
|
+
_context4.prev = 16;
|
1541
|
+
_context4.t1 = _context4["catch"](9);
|
1941
1542
|
console.error("[SDK] Error occured during registration: " + _context4.t1 + ", retrying... Retries remaining: " + retry);
|
1942
1543
|
errorsThrown = [];
|
1943
|
-
return _context4.abrupt("continue",
|
1544
|
+
return _context4.abrupt("continue", 21);
|
1944
1545
|
|
1945
|
-
case
|
1546
|
+
case 21:
|
1946
1547
|
retry--;
|
1947
|
-
_context4.next =
|
1548
|
+
_context4.next = 8;
|
1948
1549
|
break;
|
1949
1550
|
|
1950
|
-
case
|
1551
|
+
case 24:
|
1951
1552
|
if (!(retry <= 0)) {
|
1952
|
-
_context4.next =
|
1553
|
+
_context4.next = 27;
|
1953
1554
|
break;
|
1954
1555
|
}
|
1955
1556
|
|
1956
1557
|
console.error('[SDK] registration failed: MAX_RETRIES reached');
|
1957
1558
|
throw 'RegistrationFailed';
|
1958
1559
|
|
1959
|
-
case
|
1560
|
+
case 27:
|
1960
1561
|
console.log('Successfully Registered');
|
1961
|
-
_context4.next =
|
1562
|
+
_context4.next = 30;
|
1962
1563
|
return oroClient.cleanIndex();
|
1963
1564
|
|
1964
|
-
case
|
1565
|
+
case 30:
|
1965
1566
|
return _context4.abrupt("return", {
|
1966
1567
|
masterKey: masterKey,
|
1967
1568
|
consultationId: consult.uuid,
|
1968
1569
|
lockboxUuid: lockboxUuid
|
1969
1570
|
});
|
1970
1571
|
|
1971
|
-
case
|
1572
|
+
case 31:
|
1972
1573
|
case "end":
|
1973
1574
|
return _context4.stop();
|
1974
1575
|
}
|
1975
1576
|
}
|
1976
|
-
}, _callee4, null, [[
|
1577
|
+
}, _callee4, null, [[9, 16]]);
|
1977
1578
|
}));
|
1978
1579
|
return _registerPatient.apply(this, arguments);
|
1979
1580
|
}
|
1980
1581
|
|
1981
|
-
function getOrCreatePatientConsultationUuid(
|
1582
|
+
function getOrCreatePatientConsultationUuid(_x9, _x10) {
|
1982
1583
|
return _getOrCreatePatientConsultationUuid.apply(this, arguments);
|
1983
1584
|
}
|
1984
1585
|
/**
|
@@ -1989,9 +1590,9 @@ function getOrCreatePatientConsultationUuid(_x8, _x9) {
|
|
1989
1590
|
|
1990
1591
|
|
1991
1592
|
function _getOrCreatePatientConsultationUuid() {
|
1992
|
-
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/
|
1593
|
+
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(consult, oroClient) {
|
1993
1594
|
var payment;
|
1994
|
-
return
|
1595
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
1995
1596
|
while (1) {
|
1996
1597
|
switch (_context5.prev = _context5.next) {
|
1997
1598
|
case 0:
|
@@ -2031,7 +1632,7 @@ function _getOrCreatePatientConsultationUuid() {
|
|
2031
1632
|
return _getOrCreatePatientConsultationUuid.apply(this, arguments);
|
2032
1633
|
}
|
2033
1634
|
|
2034
|
-
function getOrCreatePatientLockbox(
|
1635
|
+
function getOrCreatePatientLockbox(_x11) {
|
2035
1636
|
return _getOrCreatePatientLockbox.apply(this, arguments);
|
2036
1637
|
}
|
2037
1638
|
/**
|
@@ -2046,9 +1647,9 @@ function getOrCreatePatientLockbox(_x10) {
|
|
2046
1647
|
|
2047
1648
|
|
2048
1649
|
function _getOrCreatePatientLockbox() {
|
2049
|
-
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/
|
1650
|
+
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(oroClient) {
|
2050
1651
|
var grants, lockboxResponse, tokens;
|
2051
|
-
return
|
1652
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
2052
1653
|
while (1) {
|
2053
1654
|
switch (_context6.prev = _context6.next) {
|
2054
1655
|
case 0:
|
@@ -2103,13 +1704,13 @@ function _getOrCreatePatientLockbox() {
|
|
2103
1704
|
return _getOrCreatePatientLockbox.apply(this, arguments);
|
2104
1705
|
}
|
2105
1706
|
|
2106
|
-
function storePatientData(
|
1707
|
+
function storePatientData(_x12, _x13, _x14, _x15, _x16) {
|
2107
1708
|
return _storePatientData.apply(this, arguments);
|
2108
1709
|
}
|
2109
1710
|
|
2110
1711
|
function _storePatientData() {
|
2111
|
-
_storePatientData = _asyncToGenerator( /*#__PURE__*/
|
2112
|
-
return
|
1712
|
+
_storePatientData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
|
1713
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2113
1714
|
while (1) {
|
2114
1715
|
switch (_context7.prev = _context7.next) {
|
2115
1716
|
case 0:
|
@@ -2151,7 +1752,7 @@ function _storePatientData() {
|
|
2151
1752
|
return _storePatientData.apply(this, arguments);
|
2152
1753
|
}
|
2153
1754
|
|
2154
|
-
function storeImageAliases(
|
1755
|
+
function storeImageAliases(_x17, _x18, _x19, _x20, _x21) {
|
2155
1756
|
return _storeImageAliases.apply(this, arguments);
|
2156
1757
|
}
|
2157
1758
|
/**
|
@@ -2166,9 +1767,9 @@ function storeImageAliases(_x16, _x17, _x18, _x19) {
|
|
2166
1767
|
|
2167
1768
|
|
2168
1769
|
function _storeImageAliases() {
|
2169
|
-
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/
|
2170
|
-
var images, nonNullImages, promises;
|
2171
|
-
return
|
1770
|
+
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient, progress) {
|
1771
|
+
var images, nonNullImages, storedImagesNum, totalImagesNum, promises;
|
1772
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2172
1773
|
while (1) {
|
2173
1774
|
switch (_context8.prev = _context8.next) {
|
2174
1775
|
case 0:
|
@@ -2191,17 +1792,32 @@ function _storeImageAliases() {
|
|
2191
1792
|
console.error('[SDK] Some images have not been found, they have been skipped.');
|
2192
1793
|
}
|
2193
1794
|
|
1795
|
+
storedImagesNum = 0;
|
1796
|
+
totalImagesNum = nonNullImages.length;
|
1797
|
+
if (progress) progress.onProgress(progress.currentStep / progress.stepsTotalNum, 'store_images', {
|
1798
|
+
storedImagesNum: storedImagesNum,
|
1799
|
+
totalImagesNum: totalImagesNum
|
1800
|
+
});
|
2194
1801
|
promises = nonNullImages.map(function (image) {
|
2195
1802
|
return oroClient.getOrInsertJsonData(lockboxUuid, image, {
|
2196
1803
|
category: initApis.MetadataCategory.Consultation,
|
2197
1804
|
documentType: initApis.DocumentType.ImageAlias,
|
2198
1805
|
consultationId: consultationId,
|
2199
1806
|
idbId: image.idbId
|
2200
|
-
}, {})
|
1807
|
+
}, {}).then(function () {
|
1808
|
+
if (progress) {
|
1809
|
+
++storedImagesNum;
|
1810
|
+
var progressStepValue = Math.round(((progress.currentStep + 1) / progress.stepsTotalNum - progress.currentStep / progress.stepsTotalNum) * 100) / 100;
|
1811
|
+
progress.onProgress(progress.currentStep / progress.stepsTotalNum + progressStepValue * (storedImagesNum / totalImagesNum), 'store_images', {
|
1812
|
+
storedImagesNum: storedImagesNum,
|
1813
|
+
totalImagesNum: totalImagesNum
|
1814
|
+
});
|
1815
|
+
}
|
1816
|
+
});
|
2201
1817
|
});
|
2202
1818
|
return _context8.abrupt("return", Promise.all(promises));
|
2203
1819
|
|
2204
|
-
case
|
1820
|
+
case 14:
|
2205
1821
|
case "end":
|
2206
1822
|
return _context8.stop();
|
2207
1823
|
}
|
@@ -2211,7 +1827,7 @@ function _storeImageAliases() {
|
|
2211
1827
|
return _storeImageAliases.apply(this, arguments);
|
2212
1828
|
}
|
2213
1829
|
|
2214
|
-
function extractAndStorePersonalWorkflowData(
|
1830
|
+
function extractAndStorePersonalWorkflowData(_x22, _x23, _x24, _x25, _x26) {
|
2215
1831
|
return _extractAndStorePersonalWorkflowData.apply(this, arguments);
|
2216
1832
|
}
|
2217
1833
|
/**
|
@@ -2220,8 +1836,8 @@ function extractAndStorePersonalWorkflowData(_x20, _x21, _x22, _x23, _x24) {
|
|
2220
1836
|
*/
|
2221
1837
|
|
2222
1838
|
function _extractAndStorePersonalWorkflowData() {
|
2223
|
-
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2224
|
-
return
|
1839
|
+
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
|
1840
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2225
1841
|
while (1) {
|
2226
1842
|
switch (_context9.prev = _context9.next) {
|
2227
1843
|
case 0:
|
@@ -2244,7 +1860,7 @@ function _extractAndStorePersonalWorkflowData() {
|
|
2244
1860
|
return _extractAndStorePersonalWorkflowData.apply(this, arguments);
|
2245
1861
|
}
|
2246
1862
|
|
2247
|
-
function extractPersonalInfoFromWorkflowData(
|
1863
|
+
function extractPersonalInfoFromWorkflowData(_x27) {
|
2248
1864
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
2249
1865
|
}
|
2250
1866
|
/**
|
@@ -2255,8 +1871,8 @@ function extractPersonalInfoFromWorkflowData(_x25) {
|
|
2255
1871
|
*/
|
2256
1872
|
|
2257
1873
|
function _extractPersonalInfoFromWorkflowData() {
|
2258
|
-
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2259
|
-
return
|
1874
|
+
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(workflow) {
|
1875
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2260
1876
|
while (1) {
|
2261
1877
|
switch (_context10.prev = _context10.next) {
|
2262
1878
|
case 0:
|
@@ -2281,15 +1897,15 @@ function _extractPersonalInfoFromWorkflowData() {
|
|
2281
1897
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
2282
1898
|
}
|
2283
1899
|
|
2284
|
-
function buildConsultSearchIndex(
|
1900
|
+
function buildConsultSearchIndex(_x28, _x29, _x30) {
|
2285
1901
|
return _buildConsultSearchIndex.apply(this, arguments);
|
2286
1902
|
}
|
2287
1903
|
|
2288
1904
|
function _buildConsultSearchIndex() {
|
2289
|
-
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/
|
1905
|
+
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(consult, workflow, oroClient) {
|
2290
1906
|
var terms, _yield$extractPersona, personalInfoPopulatedWfData, childPersonalInfoPopulatedWfData, otherPersonalInfoPopulatedWfData, personalInfo, childPersonalInfo, otherPersonalInfo;
|
2291
1907
|
|
2292
|
-
return
|
1908
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
2293
1909
|
while (1) {
|
2294
1910
|
switch (_context11.prev = _context11.next) {
|
2295
1911
|
case 0:
|
@@ -2410,10 +2026,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2) {
|
|
2410
2026
|
}
|
2411
2027
|
|
2412
2028
|
function _filterGrantsWithLockboxMetadata() {
|
2413
|
-
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/
|
2029
|
+
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(oroClient, filter) {
|
2414
2030
|
var grants, filteredGrants, _iterator, _step, grant, consultationIdExistsInMetadata;
|
2415
2031
|
|
2416
|
-
return
|
2032
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2417
2033
|
while (1) {
|
2418
2034
|
switch (_context.prev = _context.next) {
|
2419
2035
|
case 0:
|
@@ -2486,8 +2102,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2486
2102
|
_proto.cleanIndex =
|
2487
2103
|
/*#__PURE__*/
|
2488
2104
|
function () {
|
2489
|
-
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2490
|
-
return
|
2105
|
+
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
2106
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2491
2107
|
while (1) {
|
2492
2108
|
switch (_context.prev = _context.next) {
|
2493
2109
|
case 0:
|
@@ -2524,9 +2140,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2524
2140
|
_proto.signUp =
|
2525
2141
|
/*#__PURE__*/
|
2526
2142
|
function () {
|
2527
|
-
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2143
|
+
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
|
2528
2144
|
var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
|
2529
|
-
return
|
2145
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
2530
2146
|
while (1) {
|
2531
2147
|
switch (_context2.prev = _context2.next) {
|
2532
2148
|
case 0:
|
@@ -2585,9 +2201,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2585
2201
|
_proto.confirmEmail =
|
2586
2202
|
/*#__PURE__*/
|
2587
2203
|
function () {
|
2588
|
-
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2204
|
+
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken) {
|
2589
2205
|
var claims;
|
2590
|
-
return
|
2206
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
2591
2207
|
while (1) {
|
2592
2208
|
switch (_context3.prev = _context3.next) {
|
2593
2209
|
case 0:
|
@@ -2632,9 +2248,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2632
2248
|
_proto.signIn =
|
2633
2249
|
/*#__PURE__*/
|
2634
2250
|
function () {
|
2635
|
-
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2251
|
+
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(practiceUuid, email, password, otp) {
|
2636
2252
|
var hashedPassword, tokenRequest, userUuid;
|
2637
|
-
return
|
2253
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
2638
2254
|
while (1) {
|
2639
2255
|
switch (_context4.prev = _context4.next) {
|
2640
2256
|
case 0:
|
@@ -2687,9 +2303,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2687
2303
|
_proto.resumeSession =
|
2688
2304
|
/*#__PURE__*/
|
2689
2305
|
function () {
|
2690
|
-
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2306
|
+
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
2691
2307
|
var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
|
2692
|
-
return
|
2308
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
2693
2309
|
while (1) {
|
2694
2310
|
switch (_context5.prev = _context5.next) {
|
2695
2311
|
case 0:
|
@@ -2790,8 +2406,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2790
2406
|
_proto.signOut =
|
2791
2407
|
/*#__PURE__*/
|
2792
2408
|
function () {
|
2793
|
-
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2794
|
-
return
|
2409
|
+
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
2410
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
2795
2411
|
while (1) {
|
2796
2412
|
switch (_context6.prev = _context6.next) {
|
2797
2413
|
case 0:
|
@@ -2834,6 +2450,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2834
2450
|
* @param workflow
|
2835
2451
|
* @param recoveryQA
|
2836
2452
|
* @param indexSearch create search index for the consultation if true
|
2453
|
+
* @param onProgress callback that is called whenever a new step of patient registration is executed. Note: progress ranges from 0 to 1, and descriptionKey is a description of the progress as a key so the app would use it to translate the description
|
2837
2454
|
* @returns
|
2838
2455
|
*/
|
2839
2456
|
;
|
@@ -2841,8 +2458,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2841
2458
|
_proto.registerPatient =
|
2842
2459
|
/*#__PURE__*/
|
2843
2460
|
function () {
|
2844
|
-
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2845
|
-
return
|
2461
|
+
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch, onProgress) {
|
2462
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2846
2463
|
while (1) {
|
2847
2464
|
switch (_context7.prev = _context7.next) {
|
2848
2465
|
case 0:
|
@@ -2858,7 +2475,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2858
2475
|
throw IncompleteAuthentication;
|
2859
2476
|
|
2860
2477
|
case 3:
|
2861
|
-
return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA, indexSearch));
|
2478
|
+
return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA, indexSearch, onProgress));
|
2862
2479
|
|
2863
2480
|
case 4:
|
2864
2481
|
case "end":
|
@@ -2868,7 +2485,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2868
2485
|
}, _callee7, this);
|
2869
2486
|
}));
|
2870
2487
|
|
2871
|
-
function registerPatient$1(_x13, _x14, _x15, _x16, _x17) {
|
2488
|
+
function registerPatient$1(_x13, _x14, _x15, _x16, _x17, _x18) {
|
2872
2489
|
return _registerPatient2.apply(this, arguments);
|
2873
2490
|
}
|
2874
2491
|
|
@@ -2883,12 +2500,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
2883
2500
|
_proto.forceUpdateIndexEntries =
|
2884
2501
|
/*#__PURE__*/
|
2885
2502
|
function () {
|
2886
|
-
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2503
|
+
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
2887
2504
|
var _this = this,
|
2888
2505
|
_this$vaultIndexAdd;
|
2889
2506
|
|
2890
2507
|
var grants, indexConsultLockbox;
|
2891
|
-
return
|
2508
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2892
2509
|
while (1) {
|
2893
2510
|
switch (_context9.prev = _context9.next) {
|
2894
2511
|
case 0:
|
@@ -2899,8 +2516,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2899
2516
|
grants = _context9.sent;
|
2900
2517
|
_context9.next = 5;
|
2901
2518
|
return Promise.all(grants.map( /*#__PURE__*/function () {
|
2902
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
2903
|
-
return
|
2519
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(grant) {
|
2520
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2904
2521
|
while (1) {
|
2905
2522
|
switch (_context8.prev = _context8.next) {
|
2906
2523
|
case 0:
|
@@ -2936,7 +2553,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2936
2553
|
}, _callee8);
|
2937
2554
|
}));
|
2938
2555
|
|
2939
|
-
return function (
|
2556
|
+
return function (_x19) {
|
2940
2557
|
return _ref2.apply(this, arguments);
|
2941
2558
|
};
|
2942
2559
|
}())).then(function (consults) {
|
@@ -2976,10 +2593,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
2976
2593
|
_proto.vaultIndexAdd =
|
2977
2594
|
/*#__PURE__*/
|
2978
2595
|
function () {
|
2979
|
-
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2596
|
+
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(entries, indexOwnerUuid) {
|
2980
2597
|
var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
|
2981
2598
|
|
2982
|
-
return
|
2599
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2983
2600
|
while (1) {
|
2984
2601
|
switch (_context10.prev = _context10.next) {
|
2985
2602
|
case 0:
|
@@ -3059,7 +2676,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3059
2676
|
}, _callee10, this);
|
3060
2677
|
}));
|
3061
2678
|
|
3062
|
-
function vaultIndexAdd(
|
2679
|
+
function vaultIndexAdd(_x20, _x21) {
|
3063
2680
|
return _vaultIndexAdd.apply(this, arguments);
|
3064
2681
|
}
|
3065
2682
|
|
@@ -3077,9 +2694,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3077
2694
|
_proto.grantLockbox =
|
3078
2695
|
/*#__PURE__*/
|
3079
2696
|
function () {
|
3080
|
-
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2697
|
+
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
|
3081
2698
|
var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
|
3082
|
-
return
|
2699
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
3083
2700
|
while (1) {
|
3084
2701
|
switch (_context11.prev = _context11.next) {
|
3085
2702
|
case 0:
|
@@ -3118,7 +2735,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3118
2735
|
}, _callee11, this);
|
3119
2736
|
}));
|
3120
2737
|
|
3121
|
-
function grantLockbox(
|
2738
|
+
function grantLockbox(_x22, _x23, _x24) {
|
3122
2739
|
return _grantLockbox.apply(this, arguments);
|
3123
2740
|
}
|
3124
2741
|
|
@@ -3139,9 +2756,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3139
2756
|
_proto.createMessageData =
|
3140
2757
|
/*#__PURE__*/
|
3141
2758
|
function () {
|
3142
|
-
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2759
|
+
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3143
2760
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3144
|
-
return
|
2761
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
3145
2762
|
while (1) {
|
3146
2763
|
switch (_context12.prev = _context12.next) {
|
3147
2764
|
case 0:
|
@@ -3190,7 +2807,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3190
2807
|
}, _callee12, this);
|
3191
2808
|
}));
|
3192
2809
|
|
3193
|
-
function createMessageData(
|
2810
|
+
function createMessageData(_x25, _x26, _x27, _x28, _x29) {
|
3194
2811
|
return _createMessageData.apply(this, arguments);
|
3195
2812
|
}
|
3196
2813
|
|
@@ -3211,9 +2828,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3211
2828
|
_proto.createMessageAttachmentData =
|
3212
2829
|
/*#__PURE__*/
|
3213
2830
|
function () {
|
3214
|
-
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2831
|
+
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3215
2832
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3216
|
-
return
|
2833
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
3217
2834
|
while (1) {
|
3218
2835
|
switch (_context13.prev = _context13.next) {
|
3219
2836
|
case 0:
|
@@ -3276,7 +2893,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3276
2893
|
}, _callee13, this);
|
3277
2894
|
}));
|
3278
2895
|
|
3279
|
-
function createMessageAttachmentData(
|
2896
|
+
function createMessageAttachmentData(_x30, _x31, _x32, _x33, _x34) {
|
3280
2897
|
return _createMessageAttachmentData.apply(this, arguments);
|
3281
2898
|
}
|
3282
2899
|
|
@@ -3298,8 +2915,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3298
2915
|
_proto.createConsultationAttachmentData =
|
3299
2916
|
/*#__PURE__*/
|
3300
2917
|
function () {
|
3301
|
-
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3302
|
-
return
|
2918
|
+
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
|
2919
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
3303
2920
|
while (1) {
|
3304
2921
|
switch (_context14.prev = _context14.next) {
|
3305
2922
|
case 0:
|
@@ -3348,7 +2965,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3348
2965
|
}, _callee14, this);
|
3349
2966
|
}));
|
3350
2967
|
|
3351
|
-
function createConsultationAttachmentData(
|
2968
|
+
function createConsultationAttachmentData(_x35, _x36, _x37, _x38, _x39, _x40) {
|
3352
2969
|
return _createConsultationAttachmentData.apply(this, arguments);
|
3353
2970
|
}
|
3354
2971
|
|
@@ -3370,9 +2987,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3370
2987
|
_proto.createJsonData =
|
3371
2988
|
/*#__PURE__*/
|
3372
2989
|
function () {
|
3373
|
-
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2990
|
+
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3374
2991
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3375
|
-
return
|
2992
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
3376
2993
|
while (1) {
|
3377
2994
|
switch (_context15.prev = _context15.next) {
|
3378
2995
|
case 0:
|
@@ -3406,7 +3023,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3406
3023
|
}, _callee15, this);
|
3407
3024
|
}));
|
3408
3025
|
|
3409
|
-
function createJsonData(
|
3026
|
+
function createJsonData(_x41, _x42, _x43, _x44, _x45, _x46) {
|
3410
3027
|
return _createJsonData.apply(this, arguments);
|
3411
3028
|
}
|
3412
3029
|
|
@@ -3426,9 +3043,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3426
3043
|
_proto.getOrInsertJsonData =
|
3427
3044
|
/*#__PURE__*/
|
3428
3045
|
function () {
|
3429
|
-
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3046
|
+
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
|
3430
3047
|
var manifest;
|
3431
|
-
return
|
3048
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
3432
3049
|
while (1) {
|
3433
3050
|
switch (_context16.prev = _context16.next) {
|
3434
3051
|
case 0:
|
@@ -3469,7 +3086,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3469
3086
|
}, _callee16, this);
|
3470
3087
|
}));
|
3471
3088
|
|
3472
|
-
function getOrInsertJsonData(
|
3089
|
+
function getOrInsertJsonData(_x47, _x48, _x49, _x50, _x51) {
|
3473
3090
|
return _getOrInsertJsonData.apply(this, arguments);
|
3474
3091
|
}
|
3475
3092
|
|
@@ -3491,9 +3108,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3491
3108
|
_proto.createBytesData =
|
3492
3109
|
/*#__PURE__*/
|
3493
3110
|
function () {
|
3494
|
-
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3111
|
+
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3495
3112
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3496
|
-
return
|
3113
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
3497
3114
|
while (1) {
|
3498
3115
|
switch (_context17.prev = _context17.next) {
|
3499
3116
|
case 0:
|
@@ -3527,7 +3144,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3527
3144
|
}, _callee17, this);
|
3528
3145
|
}));
|
3529
3146
|
|
3530
|
-
function createBytesData(
|
3147
|
+
function createBytesData(_x52, _x53, _x54, _x55, _x56, _x57) {
|
3531
3148
|
return _createBytesData.apply(this, arguments);
|
3532
3149
|
}
|
3533
3150
|
|
@@ -3549,10 +3166,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3549
3166
|
_proto.getJsonData =
|
3550
3167
|
/*#__PURE__*/
|
3551
3168
|
function () {
|
3552
|
-
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3169
|
+
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3553
3170
|
var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
|
3554
3171
|
|
3555
|
-
return
|
3172
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
3556
3173
|
while (1) {
|
3557
3174
|
switch (_context18.prev = _context18.next) {
|
3558
3175
|
case 0:
|
@@ -3581,7 +3198,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3581
3198
|
}, _callee18, this);
|
3582
3199
|
}));
|
3583
3200
|
|
3584
|
-
function getJsonData(
|
3201
|
+
function getJsonData(_x58, _x59, _x60) {
|
3585
3202
|
return _getJsonData.apply(this, arguments);
|
3586
3203
|
}
|
3587
3204
|
|
@@ -3599,10 +3216,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3599
3216
|
_proto.getBytesData =
|
3600
3217
|
/*#__PURE__*/
|
3601
3218
|
function () {
|
3602
|
-
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3219
|
+
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3603
3220
|
var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
|
3604
3221
|
|
3605
|
-
return
|
3222
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
3606
3223
|
while (1) {
|
3607
3224
|
switch (_context19.prev = _context19.next) {
|
3608
3225
|
case 0:
|
@@ -3631,7 +3248,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3631
3248
|
}, _callee19, this);
|
3632
3249
|
}));
|
3633
3250
|
|
3634
|
-
function getBytesData(
|
3251
|
+
function getBytesData(_x61, _x62, _x63) {
|
3635
3252
|
return _getBytesData.apply(this, arguments);
|
3636
3253
|
}
|
3637
3254
|
|
@@ -3652,9 +3269,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3652
3269
|
_proto.getGrants =
|
3653
3270
|
/*#__PURE__*/
|
3654
3271
|
function () {
|
3655
|
-
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3272
|
+
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(filter) {
|
3656
3273
|
var filterString, currentAccountRole, encryptedGrants, decryptedGrants, grantsByConsultLockbox, decryptedConsults;
|
3657
|
-
return
|
3274
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
3658
3275
|
while (1) {
|
3659
3276
|
switch (_context20.prev = _context20.next) {
|
3660
3277
|
case 0:
|
@@ -3769,7 +3386,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3769
3386
|
}, _callee20, this);
|
3770
3387
|
}));
|
3771
3388
|
|
3772
|
-
function getGrants(
|
3389
|
+
function getGrants(_x64) {
|
3773
3390
|
return _getGrants.apply(this, arguments);
|
3774
3391
|
}
|
3775
3392
|
|
@@ -3785,8 +3402,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3785
3402
|
_proto.getAccountRole =
|
3786
3403
|
/*#__PURE__*/
|
3787
3404
|
function () {
|
3788
|
-
var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3789
|
-
return
|
3405
|
+
var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
3406
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
3790
3407
|
while (1) {
|
3791
3408
|
switch (_context21.prev = _context21.next) {
|
3792
3409
|
case 0:
|
@@ -3822,9 +3439,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3822
3439
|
_proto.getCachedSecretCryptor =
|
3823
3440
|
/*#__PURE__*/
|
3824
3441
|
function () {
|
3825
|
-
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3442
|
+
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(lockboxUuid, lockboxOwnerUuid) {
|
3826
3443
|
var index, encryptedSecret, secret, cryptor;
|
3827
|
-
return
|
3444
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
3828
3445
|
while (1) {
|
3829
3446
|
switch (_context22.prev = _context22.next) {
|
3830
3447
|
case 0:
|
@@ -3869,7 +3486,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3869
3486
|
}, _callee22, this);
|
3870
3487
|
}));
|
3871
3488
|
|
3872
|
-
function getCachedSecretCryptor(
|
3489
|
+
function getCachedSecretCryptor(_x65, _x66) {
|
3873
3490
|
return _getCachedSecretCryptor.apply(this, arguments);
|
3874
3491
|
}
|
3875
3492
|
|
@@ -3889,8 +3506,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3889
3506
|
_proto.getPersonalInformationsFromConsultId =
|
3890
3507
|
/*#__PURE__*/
|
3891
3508
|
function () {
|
3892
|
-
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3893
|
-
return
|
3509
|
+
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(consultationId, category, forceRefresh) {
|
3510
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
3894
3511
|
while (1) {
|
3895
3512
|
switch (_context23.prev = _context23.next) {
|
3896
3513
|
case 0:
|
@@ -3908,7 +3525,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3908
3525
|
}, _callee23, this);
|
3909
3526
|
}));
|
3910
3527
|
|
3911
|
-
function getPersonalInformationsFromConsultId(
|
3528
|
+
function getPersonalInformationsFromConsultId(_x67, _x68, _x69) {
|
3912
3529
|
return _getPersonalInformationsFromConsultId.apply(this, arguments);
|
3913
3530
|
}
|
3914
3531
|
|
@@ -3927,8 +3544,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3927
3544
|
_proto.getMedicalDataFromConsultId =
|
3928
3545
|
/*#__PURE__*/
|
3929
3546
|
function () {
|
3930
|
-
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3931
|
-
return
|
3547
|
+
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(consultationId, forceRefresh) {
|
3548
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
3932
3549
|
while (1) {
|
3933
3550
|
switch (_context24.prev = _context24.next) {
|
3934
3551
|
case 0:
|
@@ -3946,7 +3563,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3946
3563
|
}, _callee24, this);
|
3947
3564
|
}));
|
3948
3565
|
|
3949
|
-
function getMedicalDataFromConsultId(
|
3566
|
+
function getMedicalDataFromConsultId(_x70, _x71) {
|
3950
3567
|
return _getMedicalDataFromConsultId.apply(this, arguments);
|
3951
3568
|
}
|
3952
3569
|
|
@@ -3954,12 +3571,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
3954
3571
|
}();
|
3955
3572
|
|
3956
3573
|
_proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
|
3957
|
-
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3574
|
+
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(consultationId, category, forceRefresh) {
|
3958
3575
|
var _this2 = this;
|
3959
3576
|
|
3960
3577
|
var grants, workflowData, _loop, _iterator, _step;
|
3961
3578
|
|
3962
|
-
return
|
3579
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context27) {
|
3963
3580
|
while (1) {
|
3964
3581
|
switch (_context27.prev = _context27.next) {
|
3965
3582
|
case 0:
|
@@ -3975,9 +3592,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3975
3592
|
case 3:
|
3976
3593
|
grants = _context27.sent;
|
3977
3594
|
workflowData = [];
|
3978
|
-
_loop = /*#__PURE__*/
|
3595
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
3979
3596
|
var grant, manifest, data;
|
3980
|
-
return
|
3597
|
+
return _regeneratorRuntime().wrap(function _loop$(_context26) {
|
3981
3598
|
while (1) {
|
3982
3599
|
switch (_context26.prev = _context26.next) {
|
3983
3600
|
case 0:
|
@@ -4011,8 +3628,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4011
3628
|
case 8:
|
4012
3629
|
_context26.next = 10;
|
4013
3630
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4014
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
4015
|
-
return
|
3631
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(entry) {
|
3632
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
4016
3633
|
while (1) {
|
4017
3634
|
switch (_context25.prev = _context25.next) {
|
4018
3635
|
case 0:
|
@@ -4039,7 +3656,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4039
3656
|
}, _callee25);
|
4040
3657
|
}));
|
4041
3658
|
|
4042
|
-
return function (
|
3659
|
+
return function (_x75) {
|
4043
3660
|
return _ref3.apply(this, arguments);
|
4044
3661
|
};
|
4045
3662
|
}()));
|
@@ -4080,7 +3697,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4080
3697
|
}, _callee26, this);
|
4081
3698
|
}));
|
4082
3699
|
|
4083
|
-
function getMetaCategoryFromConsultId(
|
3700
|
+
function getMetaCategoryFromConsultId(_x72, _x73, _x74) {
|
4084
3701
|
return _getMetaCategoryFromConsultId.apply(this, arguments);
|
4085
3702
|
}
|
4086
3703
|
|
@@ -4096,9 +3713,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4096
3713
|
_proto.getPersonalInformations =
|
4097
3714
|
/*#__PURE__*/
|
4098
3715
|
function () {
|
4099
|
-
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3716
|
+
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(userId) {
|
4100
3717
|
var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4101
|
-
return
|
3718
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context28) {
|
4102
3719
|
while (1) {
|
4103
3720
|
switch (_context28.prev = _context28.next) {
|
4104
3721
|
case 0:
|
@@ -4167,7 +3784,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4167
3784
|
}, _callee27, this);
|
4168
3785
|
}));
|
4169
3786
|
|
4170
|
-
function getPersonalInformations(
|
3787
|
+
function getPersonalInformations(_x76) {
|
4171
3788
|
return _getPersonalInformations.apply(this, arguments);
|
4172
3789
|
}
|
4173
3790
|
|
@@ -4184,9 +3801,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4184
3801
|
_proto.getGrantFromConsultId =
|
4185
3802
|
/*#__PURE__*/
|
4186
3803
|
function () {
|
4187
|
-
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3804
|
+
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(consultationId) {
|
4188
3805
|
var grants;
|
4189
|
-
return
|
3806
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context29) {
|
4190
3807
|
while (1) {
|
4191
3808
|
switch (_context29.prev = _context29.next) {
|
4192
3809
|
case 0:
|
@@ -4216,7 +3833,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4216
3833
|
}, _callee28, this);
|
4217
3834
|
}));
|
4218
3835
|
|
4219
|
-
function getGrantFromConsultId(
|
3836
|
+
function getGrantFromConsultId(_x77) {
|
4220
3837
|
return _getGrantFromConsultId.apply(this, arguments);
|
4221
3838
|
}
|
4222
3839
|
|
@@ -4232,9 +3849,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4232
3849
|
_proto.getIdentityFromConsultId =
|
4233
3850
|
/*#__PURE__*/
|
4234
3851
|
function () {
|
4235
|
-
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3852
|
+
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(consultationId) {
|
4236
3853
|
var grant;
|
4237
|
-
return
|
3854
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context30) {
|
4238
3855
|
while (1) {
|
4239
3856
|
switch (_context30.prev = _context30.next) {
|
4240
3857
|
case 0:
|
@@ -4266,7 +3883,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4266
3883
|
}, _callee29, this);
|
4267
3884
|
}));
|
4268
3885
|
|
4269
|
-
function getIdentityFromConsultId(
|
3886
|
+
function getIdentityFromConsultId(_x78) {
|
4270
3887
|
return _getIdentityFromConsultId.apply(this, arguments);
|
4271
3888
|
}
|
4272
3889
|
|
@@ -4287,11 +3904,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4287
3904
|
_proto.getLockboxManifest =
|
4288
3905
|
/*#__PURE__*/
|
4289
3906
|
function () {
|
4290
|
-
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3907
|
+
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
|
4291
3908
|
var _this3 = this;
|
4292
3909
|
|
4293
3910
|
var manifestKey;
|
4294
|
-
return
|
3911
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context32) {
|
4295
3912
|
while (1) {
|
4296
3913
|
switch (_context32.prev = _context32.next) {
|
4297
3914
|
case 0:
|
@@ -4316,9 +3933,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4316
3933
|
case 4:
|
4317
3934
|
return _context32.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
|
4318
3935
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4319
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
3936
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(entry) {
|
4320
3937
|
var privateMeta;
|
4321
|
-
return
|
3938
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context31) {
|
4322
3939
|
while (1) {
|
4323
3940
|
switch (_context31.prev = _context31.next) {
|
4324
3941
|
case 0:
|
@@ -4345,7 +3962,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4345
3962
|
}, _callee30);
|
4346
3963
|
}));
|
4347
3964
|
|
4348
|
-
return function (
|
3965
|
+
return function (_x84) {
|
4349
3966
|
return _ref4.apply(this, arguments);
|
4350
3967
|
};
|
4351
3968
|
}())).then(function (manifest) {
|
@@ -4361,7 +3978,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4361
3978
|
}, _callee31, this);
|
4362
3979
|
}));
|
4363
3980
|
|
4364
|
-
function getLockboxManifest(
|
3981
|
+
function getLockboxManifest(_x79, _x80, _x81, _x82, _x83) {
|
4365
3982
|
return _getLockboxManifest.apply(this, arguments);
|
4366
3983
|
}
|
4367
3984
|
|
@@ -4379,11 +3996,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4379
3996
|
_proto.createPersonalInformations =
|
4380
3997
|
/*#__PURE__*/
|
4381
3998
|
function () {
|
4382
|
-
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3999
|
+
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(identity, data, dataUuid) {
|
4383
4000
|
var _yield$this$getGrants;
|
4384
4001
|
|
4385
4002
|
var lockboxUuid;
|
4386
|
-
return
|
4003
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context33) {
|
4387
4004
|
while (1) {
|
4388
4005
|
switch (_context33.prev = _context33.next) {
|
4389
4006
|
case 0:
|
@@ -4431,7 +4048,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4431
4048
|
}, _callee32, this);
|
4432
4049
|
}));
|
4433
4050
|
|
4434
|
-
function createPersonalInformations(
|
4051
|
+
function createPersonalInformations(_x85, _x86, _x87) {
|
4435
4052
|
return _createPersonalInformations.apply(this, arguments);
|
4436
4053
|
}
|
4437
4054
|
|
@@ -4449,11 +4066,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4449
4066
|
_proto.createUserPreference =
|
4450
4067
|
/*#__PURE__*/
|
4451
4068
|
function () {
|
4452
|
-
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4069
|
+
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(identity, preference, dataUuid) {
|
4453
4070
|
var _yield$this$getGrants2;
|
4454
4071
|
|
4455
4072
|
var lockboxUuid;
|
4456
|
-
return
|
4073
|
+
return _regeneratorRuntime().wrap(function _callee33$(_context34) {
|
4457
4074
|
while (1) {
|
4458
4075
|
switch (_context34.prev = _context34.next) {
|
4459
4076
|
case 0:
|
@@ -4501,7 +4118,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4501
4118
|
}, _callee33, this);
|
4502
4119
|
}));
|
4503
4120
|
|
4504
|
-
function createUserPreference(
|
4121
|
+
function createUserPreference(_x88, _x89, _x90) {
|
4505
4122
|
return _createUserPreference.apply(this, arguments);
|
4506
4123
|
}
|
4507
4124
|
|
@@ -4517,9 +4134,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4517
4134
|
_proto.getDataFromGrant =
|
4518
4135
|
/*#__PURE__*/
|
4519
4136
|
function () {
|
4520
|
-
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4137
|
+
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(grant, filter) {
|
4521
4138
|
var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4522
|
-
return
|
4139
|
+
return _regeneratorRuntime().wrap(function _callee34$(_context35) {
|
4523
4140
|
while (1) {
|
4524
4141
|
switch (_context35.prev = _context35.next) {
|
4525
4142
|
case 0:
|
@@ -4569,7 +4186,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4569
4186
|
}, _callee34, this);
|
4570
4187
|
}));
|
4571
4188
|
|
4572
|
-
function getDataFromGrant(
|
4189
|
+
function getDataFromGrant(_x91, _x92) {
|
4573
4190
|
return _getDataFromGrant.apply(this, arguments);
|
4574
4191
|
}
|
4575
4192
|
|
@@ -4585,9 +4202,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4585
4202
|
_proto.getUserPreferenceFromConsultId =
|
4586
4203
|
/*#__PURE__*/
|
4587
4204
|
function () {
|
4588
|
-
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4205
|
+
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(consultationId) {
|
4589
4206
|
var grant;
|
4590
|
-
return
|
4207
|
+
return _regeneratorRuntime().wrap(function _callee35$(_context36) {
|
4591
4208
|
while (1) {
|
4592
4209
|
switch (_context36.prev = _context36.next) {
|
4593
4210
|
case 0:
|
@@ -4618,7 +4235,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4618
4235
|
}, _callee35, this);
|
4619
4236
|
}));
|
4620
4237
|
|
4621
|
-
function getUserPreferenceFromConsultId(
|
4238
|
+
function getUserPreferenceFromConsultId(_x93) {
|
4622
4239
|
return _getUserPreferenceFromConsultId.apply(this, arguments);
|
4623
4240
|
}
|
4624
4241
|
|
@@ -4634,9 +4251,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4634
4251
|
_proto.getUserPreference =
|
4635
4252
|
/*#__PURE__*/
|
4636
4253
|
function () {
|
4637
|
-
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4254
|
+
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(identity) {
|
4638
4255
|
var grant;
|
4639
|
-
return
|
4256
|
+
return _regeneratorRuntime().wrap(function _callee36$(_context37) {
|
4640
4257
|
while (1) {
|
4641
4258
|
switch (_context37.prev = _context37.next) {
|
4642
4259
|
case 0:
|
@@ -4669,7 +4286,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4669
4286
|
}, _callee36, this);
|
4670
4287
|
}));
|
4671
4288
|
|
4672
|
-
function getUserPreference(
|
4289
|
+
function getUserPreference(_x94) {
|
4673
4290
|
return _getUserPreference.apply(this, arguments);
|
4674
4291
|
}
|
4675
4292
|
|
@@ -4685,9 +4302,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4685
4302
|
_proto.getRecoveryDataFromConsultId =
|
4686
4303
|
/*#__PURE__*/
|
4687
4304
|
function () {
|
4688
|
-
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4305
|
+
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(consultationId) {
|
4689
4306
|
var grant;
|
4690
|
-
return
|
4307
|
+
return _regeneratorRuntime().wrap(function _callee37$(_context38) {
|
4691
4308
|
while (1) {
|
4692
4309
|
switch (_context38.prev = _context38.next) {
|
4693
4310
|
case 0:
|
@@ -4718,7 +4335,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4718
4335
|
}, _callee37, this);
|
4719
4336
|
}));
|
4720
4337
|
|
4721
|
-
function getRecoveryDataFromConsultId(
|
4338
|
+
function getRecoveryDataFromConsultId(_x95) {
|
4722
4339
|
return _getRecoveryDataFromConsultId.apply(this, arguments);
|
4723
4340
|
}
|
4724
4341
|
|
@@ -4734,9 +4351,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4734
4351
|
_proto.getRecoveryData =
|
4735
4352
|
/*#__PURE__*/
|
4736
4353
|
function () {
|
4737
|
-
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4354
|
+
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(identity) {
|
4738
4355
|
var grant;
|
4739
|
-
return
|
4356
|
+
return _regeneratorRuntime().wrap(function _callee38$(_context39) {
|
4740
4357
|
while (1) {
|
4741
4358
|
switch (_context39.prev = _context39.next) {
|
4742
4359
|
case 0:
|
@@ -4769,7 +4386,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4769
4386
|
}, _callee38, this);
|
4770
4387
|
}));
|
4771
4388
|
|
4772
|
-
function getRecoveryData(
|
4389
|
+
function getRecoveryData(_x96) {
|
4773
4390
|
return _getRecoveryData.apply(this, arguments);
|
4774
4391
|
}
|
4775
4392
|
|
@@ -4790,10 +4407,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4790
4407
|
_proto.getAssignedConsultations =
|
4791
4408
|
/*#__PURE__*/
|
4792
4409
|
function () {
|
4793
|
-
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4410
|
+
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(practiceUuid) {
|
4794
4411
|
var _this4 = this;
|
4795
4412
|
|
4796
|
-
return
|
4413
|
+
return _regeneratorRuntime().wrap(function _callee40$(_context41) {
|
4797
4414
|
while (1) {
|
4798
4415
|
switch (_context41.prev = _context41.next) {
|
4799
4416
|
case 0:
|
@@ -4808,8 +4425,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4808
4425
|
documentType: initApis.DocumentType.PopulatedWorkflowData
|
4809
4426
|
}, true, undefined).then(function (manifest) {
|
4810
4427
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4811
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
4812
|
-
return
|
4428
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(entry) {
|
4429
|
+
return _regeneratorRuntime().wrap(function _callee39$(_context40) {
|
4813
4430
|
while (1) {
|
4814
4431
|
switch (_context40.prev = _context40.next) {
|
4815
4432
|
case 0:
|
@@ -4827,7 +4444,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4827
4444
|
}, _callee39);
|
4828
4445
|
}));
|
4829
4446
|
|
4830
|
-
return function (
|
4447
|
+
return function (_x98) {
|
4831
4448
|
return _ref5.apply(this, arguments);
|
4832
4449
|
};
|
4833
4450
|
}())).then(function (promise) {
|
@@ -4847,7 +4464,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4847
4464
|
}, _callee40, this);
|
4848
4465
|
}));
|
4849
4466
|
|
4850
|
-
function getAssignedConsultations(
|
4467
|
+
function getAssignedConsultations(_x97) {
|
4851
4468
|
return _getAssignedConsultations.apply(this, arguments);
|
4852
4469
|
}
|
4853
4470
|
|
@@ -4863,11 +4480,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4863
4480
|
_proto.getPastConsultationsFromConsultId =
|
4864
4481
|
/*#__PURE__*/
|
4865
4482
|
function () {
|
4866
|
-
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4483
|
+
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(consultationId, practiceUuid) {
|
4867
4484
|
var _this5 = this;
|
4868
4485
|
|
4869
4486
|
var grant, consultationsInLockbox;
|
4870
|
-
return
|
4487
|
+
return _regeneratorRuntime().wrap(function _callee42$(_context43) {
|
4871
4488
|
while (1) {
|
4872
4489
|
switch (_context43.prev = _context43.next) {
|
4873
4490
|
case 0:
|
@@ -4906,8 +4523,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4906
4523
|
case 10:
|
4907
4524
|
_context43.next = 12;
|
4908
4525
|
return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
|
4909
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
4910
|
-
return
|
4526
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(consultId) {
|
4527
|
+
return _regeneratorRuntime().wrap(function _callee41$(_context42) {
|
4911
4528
|
while (1) {
|
4912
4529
|
switch (_context42.prev = _context42.next) {
|
4913
4530
|
case 0:
|
@@ -4925,7 +4542,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4925
4542
|
}, _callee41);
|
4926
4543
|
}));
|
4927
4544
|
|
4928
|
-
return function (
|
4545
|
+
return function (_x101) {
|
4929
4546
|
return _ref6.apply(this, arguments);
|
4930
4547
|
};
|
4931
4548
|
}()));
|
@@ -4941,7 +4558,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4941
4558
|
}, _callee42, this);
|
4942
4559
|
}));
|
4943
4560
|
|
4944
|
-
function getPastConsultationsFromConsultId(
|
4561
|
+
function getPastConsultationsFromConsultId(_x99, _x100) {
|
4945
4562
|
return _getPastConsultationsFromConsultId.apply(this, arguments);
|
4946
4563
|
}
|
4947
4564
|
|
@@ -4958,10 +4575,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4958
4575
|
_proto.getPatientConsultationData =
|
4959
4576
|
/*#__PURE__*/
|
4960
4577
|
function () {
|
4961
|
-
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4578
|
+
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(consultationId, forceRefresh) {
|
4962
4579
|
var _this6 = this;
|
4963
4580
|
|
4964
|
-
return
|
4581
|
+
return _regeneratorRuntime().wrap(function _callee43$(_context44) {
|
4965
4582
|
while (1) {
|
4966
4583
|
switch (_context44.prev = _context44.next) {
|
4967
4584
|
case 0:
|
@@ -4999,7 +4616,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4999
4616
|
}, _callee43, this);
|
5000
4617
|
}));
|
5001
4618
|
|
5002
|
-
function getPatientConsultationData(
|
4619
|
+
function getPatientConsultationData(_x102, _x103) {
|
5003
4620
|
return _getPatientConsultationData.apply(this, arguments);
|
5004
4621
|
}
|
5005
4622
|
|
@@ -5015,8 +4632,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5015
4632
|
_proto.getPatientPrescriptionsList =
|
5016
4633
|
/*#__PURE__*/
|
5017
4634
|
function () {
|
5018
|
-
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5019
|
-
return
|
4635
|
+
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(consultationId) {
|
4636
|
+
return _regeneratorRuntime().wrap(function _callee44$(_context45) {
|
5020
4637
|
while (1) {
|
5021
4638
|
switch (_context45.prev = _context45.next) {
|
5022
4639
|
case 0:
|
@@ -5033,7 +4650,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5033
4650
|
}, _callee44, this);
|
5034
4651
|
}));
|
5035
4652
|
|
5036
|
-
function getPatientPrescriptionsList(
|
4653
|
+
function getPatientPrescriptionsList(_x104) {
|
5037
4654
|
return _getPatientPrescriptionsList.apply(this, arguments);
|
5038
4655
|
}
|
5039
4656
|
|
@@ -5049,8 +4666,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5049
4666
|
_proto.getPatientResultsList =
|
5050
4667
|
/*#__PURE__*/
|
5051
4668
|
function () {
|
5052
|
-
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5053
|
-
return
|
4669
|
+
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(consultationId) {
|
4670
|
+
return _regeneratorRuntime().wrap(function _callee45$(_context46) {
|
5054
4671
|
while (1) {
|
5055
4672
|
switch (_context46.prev = _context46.next) {
|
5056
4673
|
case 0:
|
@@ -5067,7 +4684,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5067
4684
|
}, _callee45, this);
|
5068
4685
|
}));
|
5069
4686
|
|
5070
|
-
function getPatientResultsList(
|
4687
|
+
function getPatientResultsList(_x105) {
|
5071
4688
|
return _getPatientResultsList.apply(this, arguments);
|
5072
4689
|
}
|
5073
4690
|
|
@@ -5083,8 +4700,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5083
4700
|
_proto.getPatientTreatmentPlans =
|
5084
4701
|
/*#__PURE__*/
|
5085
4702
|
function () {
|
5086
|
-
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5087
|
-
return
|
4703
|
+
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(consultationId) {
|
4704
|
+
return _regeneratorRuntime().wrap(function _callee46$(_context47) {
|
5088
4705
|
while (1) {
|
5089
4706
|
switch (_context47.prev = _context47.next) {
|
5090
4707
|
case 0:
|
@@ -5101,7 +4718,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5101
4718
|
}, _callee46, this);
|
5102
4719
|
}));
|
5103
4720
|
|
5104
|
-
function getPatientTreatmentPlans(
|
4721
|
+
function getPatientTreatmentPlans(_x106) {
|
5105
4722
|
return _getPatientTreatmentPlans.apply(this, arguments);
|
5106
4723
|
}
|
5107
4724
|
|
@@ -5118,8 +4735,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5118
4735
|
_proto.getPatientTreatmentPlanByUuid =
|
5119
4736
|
/*#__PURE__*/
|
5120
4737
|
function () {
|
5121
|
-
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5122
|
-
return
|
4738
|
+
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(consultationId, treatmentPlanId) {
|
4739
|
+
return _regeneratorRuntime().wrap(function _callee47$(_context48) {
|
5123
4740
|
while (1) {
|
5124
4741
|
switch (_context48.prev = _context48.next) {
|
5125
4742
|
case 0:
|
@@ -5137,7 +4754,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5137
4754
|
}, _callee47, this);
|
5138
4755
|
}));
|
5139
4756
|
|
5140
|
-
function getPatientTreatmentPlanByUuid(
|
4757
|
+
function getPatientTreatmentPlanByUuid(_x107, _x108) {
|
5141
4758
|
return _getPatientTreatmentPlanByUuid.apply(this, arguments);
|
5142
4759
|
}
|
5143
4760
|
|
@@ -5157,10 +4774,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
5157
4774
|
_proto.getPatientDocumentsList =
|
5158
4775
|
/*#__PURE__*/
|
5159
4776
|
function () {
|
5160
|
-
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4777
|
+
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(filters, expandPrivateMetadata, consultationId) {
|
5161
4778
|
var _this7 = this;
|
5162
4779
|
|
5163
|
-
return
|
4780
|
+
return _regeneratorRuntime().wrap(function _callee49$(_context50) {
|
5164
4781
|
while (1) {
|
5165
4782
|
switch (_context50.prev = _context50.next) {
|
5166
4783
|
case 0:
|
@@ -5176,8 +4793,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5176
4793
|
consultationId: consultationId
|
5177
4794
|
}), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
|
5178
4795
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
5179
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
5180
|
-
return
|
4796
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(entry) {
|
4797
|
+
return _regeneratorRuntime().wrap(function _callee48$(_context49) {
|
5181
4798
|
while (1) {
|
5182
4799
|
switch (_context49.prev = _context49.next) {
|
5183
4800
|
case 0:
|
@@ -5194,7 +4811,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5194
4811
|
}, _callee48);
|
5195
4812
|
}));
|
5196
4813
|
|
5197
|
-
return function (
|
4814
|
+
return function (_x112) {
|
5198
4815
|
return _ref7.apply(this, arguments);
|
5199
4816
|
};
|
5200
4817
|
}()));
|
@@ -5212,7 +4829,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5212
4829
|
}, _callee49, this);
|
5213
4830
|
}));
|
5214
4831
|
|
5215
|
-
function getPatientDocumentsList(
|
4832
|
+
function getPatientDocumentsList(_x109, _x110, _x111) {
|
5216
4833
|
return _getPatientDocumentsList.apply(this, arguments);
|
5217
4834
|
}
|
5218
4835
|
|
@@ -5235,9 +4852,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5235
4852
|
_proto.recoverPrivateKeyFromSecurityQuestions =
|
5236
4853
|
/*#__PURE__*/
|
5237
4854
|
function () {
|
5238
|
-
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4855
|
+
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5239
4856
|
var shards, answeredShards, privateKey;
|
5240
|
-
return
|
4857
|
+
return _regeneratorRuntime().wrap(function _callee50$(_context51) {
|
5241
4858
|
while (1) {
|
5242
4859
|
switch (_context51.prev = _context51.next) {
|
5243
4860
|
case 0:
|
@@ -5274,7 +4891,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5274
4891
|
}, _callee50, this);
|
5275
4892
|
}));
|
5276
4893
|
|
5277
|
-
function recoverPrivateKeyFromSecurityQuestions(
|
4894
|
+
function recoverPrivateKeyFromSecurityQuestions(_x113, _x114, _x115, _x116) {
|
5278
4895
|
return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
|
5279
4896
|
}
|
5280
4897
|
|
@@ -5291,9 +4908,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5291
4908
|
_proto.recoverPrivateKeyFromPassword =
|
5292
4909
|
/*#__PURE__*/
|
5293
4910
|
function () {
|
5294
|
-
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4911
|
+
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(id, password) {
|
5295
4912
|
var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
|
5296
|
-
return
|
4913
|
+
return _regeneratorRuntime().wrap(function _callee51$(_context52) {
|
5297
4914
|
while (1) {
|
5298
4915
|
switch (_context52.prev = _context52.next) {
|
5299
4916
|
case 0:
|
@@ -5322,7 +4939,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5322
4939
|
}, _callee51, this);
|
5323
4940
|
}));
|
5324
4941
|
|
5325
|
-
function recoverPrivateKeyFromPassword(
|
4942
|
+
function recoverPrivateKeyFromPassword(_x117, _x118) {
|
5326
4943
|
return _recoverPrivateKeyFromPassword.apply(this, arguments);
|
5327
4944
|
}
|
5328
4945
|
|
@@ -5339,9 +4956,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5339
4956
|
_proto.recoverPrivateKeyFromMasterKey =
|
5340
4957
|
/*#__PURE__*/
|
5341
4958
|
function () {
|
5342
|
-
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4959
|
+
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(id, masterKey) {
|
5343
4960
|
var recoveryPayload, symmetricDecryptor, privateKey;
|
5344
|
-
return
|
4961
|
+
return _regeneratorRuntime().wrap(function _callee52$(_context53) {
|
5345
4962
|
while (1) {
|
5346
4963
|
switch (_context53.prev = _context53.next) {
|
5347
4964
|
case 0:
|
@@ -5362,7 +4979,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5362
4979
|
}, _callee52, this);
|
5363
4980
|
}));
|
5364
4981
|
|
5365
|
-
function recoverPrivateKeyFromMasterKey(
|
4982
|
+
function recoverPrivateKeyFromMasterKey(_x119, _x120) {
|
5366
4983
|
return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
|
5367
4984
|
}
|
5368
4985
|
|
@@ -5381,9 +4998,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5381
4998
|
_proto.updateSecurityQuestions =
|
5382
4999
|
/*#__PURE__*/
|
5383
5000
|
function () {
|
5384
|
-
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5001
|
+
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5385
5002
|
var securityQuestionPayload, updateRequest;
|
5386
|
-
return
|
5003
|
+
return _regeneratorRuntime().wrap(function _callee53$(_context54) {
|
5387
5004
|
while (1) {
|
5388
5005
|
switch (_context54.prev = _context54.next) {
|
5389
5006
|
case 0:
|
@@ -5413,7 +5030,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5413
5030
|
}, _callee53, this);
|
5414
5031
|
}));
|
5415
5032
|
|
5416
|
-
function updateSecurityQuestions(
|
5033
|
+
function updateSecurityQuestions(_x121, _x122, _x123, _x124) {
|
5417
5034
|
return _updateSecurityQuestions.apply(this, arguments);
|
5418
5035
|
}
|
5419
5036
|
|
@@ -5435,9 +5052,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5435
5052
|
_proto.updatePassword =
|
5436
5053
|
/*#__PURE__*/
|
5437
5054
|
function () {
|
5438
|
-
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5055
|
+
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(id, newPassword, oldPassword) {
|
5439
5056
|
var symmetricEncryptor, passwordPayload, updateRequest;
|
5440
|
-
return
|
5057
|
+
return _regeneratorRuntime().wrap(function _callee54$(_context55) {
|
5441
5058
|
while (1) {
|
5442
5059
|
switch (_context55.prev = _context55.next) {
|
5443
5060
|
case 0:
|
@@ -5478,7 +5095,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5478
5095
|
}, _callee54, this);
|
5479
5096
|
}));
|
5480
5097
|
|
5481
|
-
function updatePassword(
|
5098
|
+
function updatePassword(_x125, _x126, _x127) {
|
5482
5099
|
return _updatePassword.apply(this, arguments);
|
5483
5100
|
}
|
5484
5101
|
|
@@ -5497,9 +5114,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5497
5114
|
_proto.updateMasterKey =
|
5498
5115
|
/*#__PURE__*/
|
5499
5116
|
function () {
|
5500
|
-
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5117
|
+
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55(id, masterKey, lockboxUuid) {
|
5501
5118
|
var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
|
5502
|
-
return
|
5119
|
+
return _regeneratorRuntime().wrap(function _callee55$(_context56) {
|
5503
5120
|
while (1) {
|
5504
5121
|
switch (_context56.prev = _context56.next) {
|
5505
5122
|
case 0:
|
@@ -5540,7 +5157,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5540
5157
|
}, _callee55, this);
|
5541
5158
|
}));
|
5542
5159
|
|
5543
|
-
function updateMasterKey(
|
5160
|
+
function updateMasterKey(_x128, _x129, _x130) {
|
5544
5161
|
return _updateMasterKey.apply(this, arguments);
|
5545
5162
|
}
|
5546
5163
|
|