oro-sdk 3.21.2 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/client.d.ts +2 -1
- package/dist/helpers/patient-registration.d.ts +5 -1
- package/dist/oro-sdk.cjs.development.js +1199 -734
- 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 +1199 -734
- 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/dist/oro-sdk.esm.js
CHANGED
@@ -5,612 +5,1029 @@ import * as oroToolbox from 'oro-toolbox';
|
|
5
5
|
export { oroToolbox as OroToolboxNamespace };
|
6
6
|
import { getMany } from 'idb-keyval';
|
7
7
|
|
8
|
-
function
|
9
|
-
|
8
|
+
function _wrapRegExp() {
|
9
|
+
_wrapRegExp = function (re, groups) {
|
10
|
+
return new BabelRegExp(re, void 0, groups);
|
11
|
+
};
|
12
|
+
|
13
|
+
var _super = RegExp.prototype,
|
14
|
+
_groups = new WeakMap();
|
15
|
+
|
16
|
+
function BabelRegExp(re, flags, groups) {
|
17
|
+
var _this = new RegExp(re, flags);
|
18
|
+
|
19
|
+
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
|
20
|
+
}
|
21
|
+
|
22
|
+
function buildGroups(result, re) {
|
23
|
+
var g = _groups.get(re);
|
24
|
+
|
25
|
+
return Object.keys(g).reduce(function (groups, name) {
|
26
|
+
return groups[name] = result[g[name]], groups;
|
27
|
+
}, Object.create(null));
|
28
|
+
}
|
29
|
+
|
30
|
+
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
31
|
+
var result = _super.exec.call(this, str);
|
32
|
+
|
33
|
+
return result && (result.groups = buildGroups(result, this)), result;
|
34
|
+
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
35
|
+
if ("string" == typeof substitution) {
|
36
|
+
var groups = _groups.get(this);
|
37
|
+
|
38
|
+
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
39
|
+
return "$" + groups[name];
|
40
|
+
}));
|
41
|
+
}
|
42
|
+
|
43
|
+
if ("function" == typeof substitution) {
|
44
|
+
var _this = this;
|
45
|
+
|
46
|
+
return _super[Symbol.replace].call(this, str, function () {
|
47
|
+
var args = arguments;
|
48
|
+
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
|
49
|
+
});
|
50
|
+
}
|
51
|
+
|
52
|
+
return _super[Symbol.replace].call(this, str, substitution);
|
53
|
+
}, _wrapRegExp.apply(this, arguments);
|
54
|
+
}
|
55
|
+
|
56
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
57
|
+
try {
|
58
|
+
var info = gen[key](arg);
|
59
|
+
var value = info.value;
|
60
|
+
} catch (error) {
|
61
|
+
reject(error);
|
62
|
+
return;
|
63
|
+
}
|
64
|
+
|
65
|
+
if (info.done) {
|
66
|
+
resolve(value);
|
67
|
+
} else {
|
68
|
+
Promise.resolve(value).then(_next, _throw);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
function _asyncToGenerator(fn) {
|
73
|
+
return function () {
|
74
|
+
var self = this,
|
75
|
+
args = arguments;
|
76
|
+
return new Promise(function (resolve, reject) {
|
77
|
+
var gen = fn.apply(self, args);
|
78
|
+
|
79
|
+
function _next(value) {
|
80
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
81
|
+
}
|
82
|
+
|
83
|
+
function _throw(err) {
|
84
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
85
|
+
}
|
86
|
+
|
87
|
+
_next(undefined);
|
88
|
+
});
|
89
|
+
};
|
90
|
+
}
|
91
|
+
|
92
|
+
function _extends() {
|
93
|
+
_extends = Object.assign || function (target) {
|
94
|
+
for (var i = 1; i < arguments.length; i++) {
|
95
|
+
var source = arguments[i];
|
96
|
+
|
97
|
+
for (var key in source) {
|
98
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
99
|
+
target[key] = source[key];
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
10
103
|
|
11
|
-
|
12
|
-
return exports;
|
104
|
+
return target;
|
13
105
|
};
|
14
106
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
107
|
+
return _extends.apply(this, arguments);
|
108
|
+
}
|
109
|
+
|
110
|
+
function _inherits(subClass, superClass) {
|
111
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
112
|
+
throw new TypeError("Super expression must either be null or a function");
|
113
|
+
}
|
114
|
+
|
115
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
116
|
+
constructor: {
|
117
|
+
value: subClass,
|
118
|
+
writable: true,
|
119
|
+
configurable: true
|
120
|
+
}
|
121
|
+
});
|
122
|
+
Object.defineProperty(subClass, "prototype", {
|
123
|
+
writable: false
|
124
|
+
});
|
125
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
126
|
+
}
|
127
|
+
|
128
|
+
function _inheritsLoose(subClass, superClass) {
|
129
|
+
subClass.prototype = Object.create(superClass.prototype);
|
130
|
+
subClass.prototype.constructor = subClass;
|
131
|
+
|
132
|
+
_setPrototypeOf(subClass, superClass);
|
133
|
+
}
|
134
|
+
|
135
|
+
function _getPrototypeOf(o) {
|
136
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
137
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
138
|
+
};
|
139
|
+
return _getPrototypeOf(o);
|
140
|
+
}
|
141
|
+
|
142
|
+
function _setPrototypeOf(o, p) {
|
143
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
144
|
+
o.__proto__ = p;
|
145
|
+
return o;
|
146
|
+
};
|
147
|
+
|
148
|
+
return _setPrototypeOf(o, p);
|
149
|
+
}
|
150
|
+
|
151
|
+
function _isNativeReflectConstruct() {
|
152
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
153
|
+
if (Reflect.construct.sham) return false;
|
154
|
+
if (typeof Proxy === "function") return true;
|
155
|
+
|
156
|
+
try {
|
157
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
158
|
+
return true;
|
159
|
+
} catch (e) {
|
160
|
+
return false;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
function _construct(Parent, args, Class) {
|
165
|
+
if (_isNativeReflectConstruct()) {
|
166
|
+
_construct = Reflect.construct;
|
167
|
+
} else {
|
168
|
+
_construct = function _construct(Parent, args, Class) {
|
169
|
+
var a = [null];
|
170
|
+
a.push.apply(a, args);
|
171
|
+
var Constructor = Function.bind.apply(Parent, a);
|
172
|
+
var instance = new Constructor();
|
173
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
174
|
+
return instance;
|
175
|
+
};
|
176
|
+
}
|
177
|
+
|
178
|
+
return _construct.apply(null, arguments);
|
179
|
+
}
|
180
|
+
|
181
|
+
function _isNativeFunction(fn) {
|
182
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
183
|
+
}
|
184
|
+
|
185
|
+
function _wrapNativeSuper(Class) {
|
186
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
187
|
+
|
188
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
189
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
190
|
+
|
191
|
+
if (typeof Class !== "function") {
|
192
|
+
throw new TypeError("Super expression must either be null or a function");
|
193
|
+
}
|
194
|
+
|
195
|
+
if (typeof _cache !== "undefined") {
|
196
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
197
|
+
|
198
|
+
_cache.set(Class, Wrapper);
|
199
|
+
}
|
200
|
+
|
201
|
+
function Wrapper() {
|
202
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
203
|
+
}
|
204
|
+
|
205
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
206
|
+
constructor: {
|
207
|
+
value: Wrapper,
|
208
|
+
enumerable: false,
|
209
|
+
writable: true,
|
210
|
+
configurable: true
|
211
|
+
}
|
212
|
+
});
|
213
|
+
return _setPrototypeOf(Wrapper, Class);
|
214
|
+
};
|
215
|
+
|
216
|
+
return _wrapNativeSuper(Class);
|
217
|
+
}
|
218
|
+
|
219
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
220
|
+
if (source == null) return {};
|
221
|
+
var target = {};
|
222
|
+
var sourceKeys = Object.keys(source);
|
223
|
+
var key, i;
|
224
|
+
|
225
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
226
|
+
key = sourceKeys[i];
|
227
|
+
if (excluded.indexOf(key) >= 0) continue;
|
228
|
+
target[key] = source[key];
|
229
|
+
}
|
230
|
+
|
231
|
+
return target;
|
232
|
+
}
|
233
|
+
|
234
|
+
function _unsupportedIterableToArray(o, minLen) {
|
235
|
+
if (!o) return;
|
236
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
237
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
238
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
239
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
240
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
241
|
+
}
|
242
|
+
|
243
|
+
function _arrayLikeToArray(arr, len) {
|
244
|
+
if (len == null || len > arr.length) len = arr.length;
|
245
|
+
|
246
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
247
|
+
|
248
|
+
return arr2;
|
249
|
+
}
|
250
|
+
|
251
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
252
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
253
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
254
|
+
|
255
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
256
|
+
if (it) o = it;
|
257
|
+
var i = 0;
|
258
|
+
return function () {
|
259
|
+
if (i >= o.length) return {
|
260
|
+
done: true
|
261
|
+
};
|
262
|
+
return {
|
263
|
+
done: false,
|
264
|
+
value: o[i++]
|
265
|
+
};
|
266
|
+
};
|
267
|
+
}
|
268
|
+
|
269
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
270
|
+
}
|
271
|
+
|
272
|
+
function createCommonjsModule(fn, module) {
|
273
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
274
|
+
}
|
275
|
+
|
276
|
+
var runtime_1 = createCommonjsModule(function (module) {
|
277
|
+
/**
|
278
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
279
|
+
*
|
280
|
+
* This source code is licensed under the MIT license found in the
|
281
|
+
* LICENSE file in the root directory of this source tree.
|
282
|
+
*/
|
283
|
+
|
284
|
+
var runtime = (function (exports) {
|
285
|
+
|
286
|
+
var Op = Object.prototype;
|
287
|
+
var hasOwn = Op.hasOwnProperty;
|
288
|
+
var undefined$1; // More compressible than void 0.
|
289
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
290
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
291
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
292
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
22
293
|
|
23
294
|
function define(obj, key, value) {
|
24
|
-
|
295
|
+
Object.defineProperty(obj, key, {
|
25
296
|
value: value,
|
26
|
-
enumerable:
|
27
|
-
configurable:
|
28
|
-
writable:
|
29
|
-
})
|
297
|
+
enumerable: true,
|
298
|
+
configurable: true,
|
299
|
+
writable: true
|
300
|
+
});
|
301
|
+
return obj[key];
|
30
302
|
}
|
31
|
-
|
32
303
|
try {
|
304
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
33
305
|
define({}, "");
|
34
306
|
} catch (err) {
|
35
|
-
define = function
|
307
|
+
define = function(obj, key, value) {
|
36
308
|
return obj[key] = value;
|
37
309
|
};
|
38
310
|
}
|
39
311
|
|
40
312
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
var state = "suspendedStart";
|
46
|
-
return function (method, arg) {
|
47
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
48
|
-
|
49
|
-
if ("completed" === state) {
|
50
|
-
if ("throw" === method) throw arg;
|
51
|
-
return doneResult();
|
52
|
-
}
|
53
|
-
|
54
|
-
for (context.method = method, context.arg = arg;;) {
|
55
|
-
var delegate = context.delegate;
|
56
|
-
|
57
|
-
if (delegate) {
|
58
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
313
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
314
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
315
|
+
var generator = Object.create(protoGenerator.prototype);
|
316
|
+
var context = new Context(tryLocsList || []);
|
59
317
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
67
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
68
|
-
context.dispatchException(context.arg);
|
69
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
70
|
-
state = "executing";
|
71
|
-
var record = tryCatch(innerFn, self, context);
|
72
|
-
|
73
|
-
if ("normal" === record.type) {
|
74
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
75
|
-
return {
|
76
|
-
value: record.arg,
|
77
|
-
done: context.done
|
78
|
-
};
|
79
|
-
}
|
318
|
+
// The ._invoke method unifies the implementations of the .next,
|
319
|
+
// .throw, and .return methods.
|
320
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
80
321
|
|
81
|
-
|
82
|
-
}
|
83
|
-
};
|
84
|
-
}(innerFn, self, context), generator;
|
322
|
+
return generator;
|
85
323
|
}
|
324
|
+
exports.wrap = wrap;
|
86
325
|
|
326
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
327
|
+
// record like context.tryEntries[i].completion. This interface could
|
328
|
+
// have been (and was previously) designed to take a closure to be
|
329
|
+
// invoked without arguments, but in all the cases we care about we
|
330
|
+
// already have an existing method we want to call, so there's no need
|
331
|
+
// to create a new function object. We can even get away with assuming
|
332
|
+
// the method takes exactly one argument, since that happens to be true
|
333
|
+
// in every case, so we don't have to touch the arguments object. The
|
334
|
+
// only additional allocation required is the completion record, which
|
335
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
87
336
|
function tryCatch(fn, obj, arg) {
|
88
337
|
try {
|
89
|
-
return {
|
90
|
-
type: "normal",
|
91
|
-
arg: fn.call(obj, arg)
|
92
|
-
};
|
338
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
93
339
|
} catch (err) {
|
94
|
-
return {
|
95
|
-
type: "throw",
|
96
|
-
arg: err
|
97
|
-
};
|
340
|
+
return { type: "throw", arg: err };
|
98
341
|
}
|
99
342
|
}
|
100
343
|
|
101
|
-
|
344
|
+
var GenStateSuspendedStart = "suspendedStart";
|
345
|
+
var GenStateSuspendedYield = "suspendedYield";
|
346
|
+
var GenStateExecuting = "executing";
|
347
|
+
var GenStateCompleted = "completed";
|
348
|
+
|
349
|
+
// Returning this object from the innerFn has the same effect as
|
350
|
+
// breaking out of the dispatch switch statement.
|
102
351
|
var ContinueSentinel = {};
|
103
352
|
|
353
|
+
// Dummy constructor functions that we use as the .constructor and
|
354
|
+
// .constructor.prototype properties for functions that return Generator
|
355
|
+
// objects. For full spec compliance, you may wish to configure your
|
356
|
+
// minifier not to mangle the names of these two functions.
|
104
357
|
function Generator() {}
|
105
|
-
|
106
358
|
function GeneratorFunction() {}
|
107
|
-
|
108
359
|
function GeneratorFunctionPrototype() {}
|
109
360
|
|
361
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
362
|
+
// don't natively support it.
|
110
363
|
var IteratorPrototype = {};
|
111
364
|
define(IteratorPrototype, iteratorSymbol, function () {
|
112
365
|
return this;
|
113
366
|
});
|
114
|
-
var getProto = Object.getPrototypeOf,
|
115
|
-
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
116
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
117
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
118
367
|
|
368
|
+
var getProto = Object.getPrototypeOf;
|
369
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
370
|
+
if (NativeIteratorPrototype &&
|
371
|
+
NativeIteratorPrototype !== Op &&
|
372
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
373
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
374
|
+
// of the polyfill.
|
375
|
+
IteratorPrototype = NativeIteratorPrototype;
|
376
|
+
}
|
377
|
+
|
378
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
379
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
380
|
+
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
381
|
+
define(Gp, "constructor", GeneratorFunctionPrototype);
|
382
|
+
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
383
|
+
GeneratorFunction.displayName = define(
|
384
|
+
GeneratorFunctionPrototype,
|
385
|
+
toStringTagSymbol,
|
386
|
+
"GeneratorFunction"
|
387
|
+
);
|
388
|
+
|
389
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
390
|
+
// Iterator interface in terms of a single ._invoke method.
|
119
391
|
function defineIteratorMethods(prototype) {
|
120
|
-
["next", "throw", "return"].forEach(function
|
121
|
-
define(prototype, method, function
|
392
|
+
["next", "throw", "return"].forEach(function(method) {
|
393
|
+
define(prototype, method, function(arg) {
|
122
394
|
return this._invoke(method, arg);
|
123
395
|
});
|
124
396
|
});
|
125
397
|
}
|
126
398
|
|
399
|
+
exports.isGeneratorFunction = function(genFun) {
|
400
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
401
|
+
return ctor
|
402
|
+
? ctor === GeneratorFunction ||
|
403
|
+
// For the native GeneratorFunction constructor, the best we can
|
404
|
+
// do is to check its .name property.
|
405
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
406
|
+
: false;
|
407
|
+
};
|
408
|
+
|
409
|
+
exports.mark = function(genFun) {
|
410
|
+
if (Object.setPrototypeOf) {
|
411
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
412
|
+
} else {
|
413
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
414
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
415
|
+
}
|
416
|
+
genFun.prototype = Object.create(Gp);
|
417
|
+
return genFun;
|
418
|
+
};
|
419
|
+
|
420
|
+
// Within the body of any async function, `await x` is transformed to
|
421
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
422
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
423
|
+
// meant to be awaited.
|
424
|
+
exports.awrap = function(arg) {
|
425
|
+
return { __await: arg };
|
426
|
+
};
|
427
|
+
|
127
428
|
function AsyncIterator(generator, PromiseImpl) {
|
128
429
|
function invoke(method, arg, resolve, reject) {
|
129
430
|
var record = tryCatch(generator[method], generator, arg);
|
431
|
+
if (record.type === "throw") {
|
432
|
+
reject(record.arg);
|
433
|
+
} else {
|
434
|
+
var result = record.arg;
|
435
|
+
var value = result.value;
|
436
|
+
if (value &&
|
437
|
+
typeof value === "object" &&
|
438
|
+
hasOwn.call(value, "__await")) {
|
439
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
440
|
+
invoke("next", value, resolve, reject);
|
441
|
+
}, function(err) {
|
442
|
+
invoke("throw", err, resolve, reject);
|
443
|
+
});
|
444
|
+
}
|
130
445
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
}, function (error) {
|
446
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
447
|
+
// When a yielded Promise is resolved, its final value becomes
|
448
|
+
// the .value of the Promise<{value,done}> result for the
|
449
|
+
// current iteration.
|
450
|
+
result.value = unwrapped;
|
451
|
+
resolve(result);
|
452
|
+
}, function(error) {
|
453
|
+
// If a rejected Promise was yielded, throw the rejection back
|
454
|
+
// into the async generator function so it can be handled there.
|
141
455
|
return invoke("throw", error, resolve, reject);
|
142
456
|
});
|
143
457
|
}
|
144
|
-
|
145
|
-
reject(record.arg);
|
146
458
|
}
|
147
459
|
|
148
460
|
var previousPromise;
|
149
461
|
|
150
|
-
|
462
|
+
function enqueue(method, arg) {
|
151
463
|
function callInvokeWithMethodAndArg() {
|
152
|
-
return new PromiseImpl(function
|
464
|
+
return new PromiseImpl(function(resolve, reject) {
|
153
465
|
invoke(method, arg, resolve, reject);
|
154
466
|
});
|
155
467
|
}
|
156
468
|
|
157
|
-
return previousPromise =
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
469
|
+
return previousPromise =
|
470
|
+
// If enqueue has been called before, then we want to wait until
|
471
|
+
// all previous Promises have been resolved before calling invoke,
|
472
|
+
// so that results are always delivered in the correct order. If
|
473
|
+
// enqueue has not been called before, then it is important to
|
474
|
+
// call invoke immediately, without waiting on a callback to fire,
|
475
|
+
// so that the async generator function has the opportunity to do
|
476
|
+
// any necessary setup in a predictable way. This predictability
|
477
|
+
// is why the Promise constructor synchronously invokes its
|
478
|
+
// executor callback, and why async functions synchronously
|
479
|
+
// execute code before the first await. Since we implement simple
|
480
|
+
// async functions in terms of async generators, it is especially
|
481
|
+
// important to get this right, even though it requires care.
|
482
|
+
previousPromise ? previousPromise.then(
|
483
|
+
callInvokeWithMethodAndArg,
|
484
|
+
// Avoid propagating failures to Promises returned by later
|
485
|
+
// invocations of the iterator.
|
486
|
+
callInvokeWithMethodAndArg
|
487
|
+
) : callInvokeWithMethodAndArg();
|
171
488
|
}
|
172
489
|
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
490
|
+
// Define the unified helper method that is used to implement .next,
|
491
|
+
// .throw, and .return (see defineIteratorMethods).
|
492
|
+
this._invoke = enqueue;
|
177
493
|
}
|
178
494
|
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
495
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
496
|
+
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
497
|
+
return this;
|
498
|
+
});
|
499
|
+
exports.AsyncIterator = AsyncIterator;
|
500
|
+
|
501
|
+
// Note that simple async functions are implemented on top of
|
502
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
503
|
+
// the final result produced by the iterator.
|
504
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
505
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
506
|
+
|
507
|
+
var iter = new AsyncIterator(
|
508
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
509
|
+
PromiseImpl
|
510
|
+
);
|
511
|
+
|
512
|
+
return exports.isGeneratorFunction(outerFn)
|
513
|
+
? iter // If outerFn is a generator, return the full iterator.
|
514
|
+
: iter.next().then(function(result) {
|
515
|
+
return result.done ? result.value : iter.next();
|
516
|
+
});
|
517
|
+
};
|
196
518
|
|
197
|
-
function
|
198
|
-
|
199
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
200
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
201
|
-
if ("function" == typeof iterable.next) return iterable;
|
519
|
+
function makeInvokeMethod(innerFn, self, context) {
|
520
|
+
var state = GenStateSuspendedStart;
|
202
521
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
522
|
+
return function invoke(method, arg) {
|
523
|
+
if (state === GenStateExecuting) {
|
524
|
+
throw new Error("Generator is already running");
|
525
|
+
}
|
207
526
|
|
208
|
-
|
209
|
-
|
527
|
+
if (state === GenStateCompleted) {
|
528
|
+
if (method === "throw") {
|
529
|
+
throw arg;
|
530
|
+
}
|
210
531
|
|
211
|
-
|
532
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
533
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
534
|
+
return doneResult();
|
212
535
|
}
|
213
|
-
}
|
214
536
|
|
215
|
-
|
216
|
-
|
217
|
-
};
|
218
|
-
}
|
537
|
+
context.method = method;
|
538
|
+
context.arg = arg;
|
219
539
|
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
230
|
-
}, exports.mark = function (genFun) {
|
231
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
232
|
-
}, exports.awrap = function (arg) {
|
233
|
-
return {
|
234
|
-
__await: arg
|
235
|
-
};
|
236
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
237
|
-
return this;
|
238
|
-
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
239
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
240
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
241
|
-
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
242
|
-
return result.done ? result.value : iter.next();
|
243
|
-
});
|
244
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
245
|
-
return this;
|
246
|
-
}), define(Gp, "toString", function () {
|
247
|
-
return "[object Generator]";
|
248
|
-
}), exports.keys = function (object) {
|
249
|
-
var keys = [];
|
540
|
+
while (true) {
|
541
|
+
var delegate = context.delegate;
|
542
|
+
if (delegate) {
|
543
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
544
|
+
if (delegateResult) {
|
545
|
+
if (delegateResult === ContinueSentinel) continue;
|
546
|
+
return delegateResult;
|
547
|
+
}
|
548
|
+
}
|
250
549
|
|
251
|
-
|
550
|
+
if (context.method === "next") {
|
551
|
+
// Setting context._sent for legacy support of Babel's
|
552
|
+
// function.sent implementation.
|
553
|
+
context.sent = context._sent = context.arg;
|
252
554
|
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
555
|
+
} else if (context.method === "throw") {
|
556
|
+
if (state === GenStateSuspendedStart) {
|
557
|
+
state = GenStateCompleted;
|
558
|
+
throw context.arg;
|
559
|
+
}
|
258
560
|
|
259
|
-
|
260
|
-
};
|
261
|
-
}, exports.values = values, Context.prototype = {
|
262
|
-
constructor: Context,
|
263
|
-
reset: function (skipTempReset) {
|
264
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
265
|
-
},
|
266
|
-
stop: function () {
|
267
|
-
this.done = !0;
|
268
|
-
var rootRecord = this.tryEntries[0].completion;
|
269
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
270
|
-
return this.rval;
|
271
|
-
},
|
272
|
-
dispatchException: function (exception) {
|
273
|
-
if (this.done) throw exception;
|
274
|
-
var context = this;
|
561
|
+
context.dispatchException(context.arg);
|
275
562
|
|
276
|
-
|
277
|
-
|
278
|
-
|
563
|
+
} else if (context.method === "return") {
|
564
|
+
context.abrupt("return", context.arg);
|
565
|
+
}
|
279
566
|
|
280
|
-
|
281
|
-
var entry = this.tryEntries[i],
|
282
|
-
record = entry.completion;
|
283
|
-
if ("root" === entry.tryLoc) return handle("end");
|
567
|
+
state = GenStateExecuting;
|
284
568
|
|
285
|
-
|
286
|
-
|
287
|
-
|
569
|
+
var record = tryCatch(innerFn, self, context);
|
570
|
+
if (record.type === "normal") {
|
571
|
+
// If an exception is thrown from innerFn, we leave state ===
|
572
|
+
// GenStateExecuting and loop back for another invocation.
|
573
|
+
state = context.done
|
574
|
+
? GenStateCompleted
|
575
|
+
: GenStateSuspendedYield;
|
288
576
|
|
289
|
-
if (
|
290
|
-
|
291
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
292
|
-
} else if (hasCatch) {
|
293
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
294
|
-
} else {
|
295
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
296
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
577
|
+
if (record.arg === ContinueSentinel) {
|
578
|
+
continue;
|
297
579
|
}
|
580
|
+
|
581
|
+
return {
|
582
|
+
value: record.arg,
|
583
|
+
done: context.done
|
584
|
+
};
|
585
|
+
|
586
|
+
} else if (record.type === "throw") {
|
587
|
+
state = GenStateCompleted;
|
588
|
+
// Dispatch the exception by looping back around to the
|
589
|
+
// context.dispatchException(context.arg) call above.
|
590
|
+
context.method = "throw";
|
591
|
+
context.arg = record.arg;
|
298
592
|
}
|
299
593
|
}
|
300
|
-
}
|
301
|
-
|
302
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
303
|
-
var entry = this.tryEntries[i];
|
594
|
+
};
|
595
|
+
}
|
304
596
|
|
305
|
-
|
306
|
-
|
307
|
-
|
597
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
598
|
+
// result, either by returning a { value, done } result from the
|
599
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
600
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
601
|
+
function maybeInvokeDelegate(delegate, context) {
|
602
|
+
var method = delegate.iterator[context.method];
|
603
|
+
if (method === undefined$1) {
|
604
|
+
// A .throw or .return when the delegate iterator has no .throw
|
605
|
+
// method always terminates the yield* loop.
|
606
|
+
context.delegate = null;
|
607
|
+
|
608
|
+
if (context.method === "throw") {
|
609
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
610
|
+
if (delegate.iterator["return"]) {
|
611
|
+
// If the delegate iterator has a return method, give it a
|
612
|
+
// chance to clean up.
|
613
|
+
context.method = "return";
|
614
|
+
context.arg = undefined$1;
|
615
|
+
maybeInvokeDelegate(delegate, context);
|
616
|
+
|
617
|
+
if (context.method === "throw") {
|
618
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
619
|
+
// "return" to "throw", let that override the TypeError below.
|
620
|
+
return ContinueSentinel;
|
621
|
+
}
|
308
622
|
}
|
309
|
-
}
|
310
623
|
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
},
|
315
|
-
complete: function (record, afterLoc) {
|
316
|
-
if ("throw" === record.type) throw record.arg;
|
317
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
318
|
-
},
|
319
|
-
finish: function (finallyLoc) {
|
320
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
321
|
-
var entry = this.tryEntries[i];
|
322
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
624
|
+
context.method = "throw";
|
625
|
+
context.arg = new TypeError(
|
626
|
+
"The iterator does not provide a 'throw' method");
|
323
627
|
}
|
324
|
-
},
|
325
|
-
catch: function (tryLoc) {
|
326
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
327
|
-
var entry = this.tryEntries[i];
|
328
|
-
|
329
|
-
if (entry.tryLoc === tryLoc) {
|
330
|
-
var record = entry.completion;
|
331
628
|
|
332
|
-
|
333
|
-
|
334
|
-
resetTryEntry(entry);
|
335
|
-
}
|
629
|
+
return ContinueSentinel;
|
630
|
+
}
|
336
631
|
|
337
|
-
|
338
|
-
}
|
339
|
-
}
|
632
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
340
633
|
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
resultName: resultName,
|
347
|
-
nextLoc: nextLoc
|
348
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
634
|
+
if (record.type === "throw") {
|
635
|
+
context.method = "throw";
|
636
|
+
context.arg = record.arg;
|
637
|
+
context.delegate = null;
|
638
|
+
return ContinueSentinel;
|
349
639
|
}
|
350
|
-
}, exports;
|
351
|
-
}
|
352
640
|
|
353
|
-
|
354
|
-
_wrapRegExp = function (re, groups) {
|
355
|
-
return new BabelRegExp(re, void 0, groups);
|
356
|
-
};
|
641
|
+
var info = record.arg;
|
357
642
|
|
358
|
-
|
359
|
-
|
643
|
+
if (! info) {
|
644
|
+
context.method = "throw";
|
645
|
+
context.arg = new TypeError("iterator result is not an object");
|
646
|
+
context.delegate = null;
|
647
|
+
return ContinueSentinel;
|
648
|
+
}
|
360
649
|
|
361
|
-
|
362
|
-
|
650
|
+
if (info.done) {
|
651
|
+
// Assign the result of the finished delegate to the temporary
|
652
|
+
// variable specified by delegate.resultName (see delegateYield).
|
653
|
+
context[delegate.resultName] = info.value;
|
654
|
+
|
655
|
+
// Resume execution at the desired location (see delegateYield).
|
656
|
+
context.next = delegate.nextLoc;
|
657
|
+
|
658
|
+
// If context.method was "throw" but the delegate handled the
|
659
|
+
// exception, let the outer generator proceed normally. If
|
660
|
+
// context.method was "next", forget context.arg since it has been
|
661
|
+
// "consumed" by the delegate iterator. If context.method was
|
662
|
+
// "return", allow the original .return call to continue in the
|
663
|
+
// outer generator.
|
664
|
+
if (context.method !== "return") {
|
665
|
+
context.method = "next";
|
666
|
+
context.arg = undefined$1;
|
667
|
+
}
|
363
668
|
|
364
|
-
|
669
|
+
} else {
|
670
|
+
// Re-yield the result returned by the delegate method.
|
671
|
+
return info;
|
672
|
+
}
|
673
|
+
|
674
|
+
// The delegate iterator is finished, so forget it and continue with
|
675
|
+
// the outer generator.
|
676
|
+
context.delegate = null;
|
677
|
+
return ContinueSentinel;
|
365
678
|
}
|
366
679
|
|
367
|
-
|
368
|
-
|
680
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
681
|
+
// unified ._invoke helper method.
|
682
|
+
defineIteratorMethods(Gp);
|
369
683
|
|
370
|
-
|
371
|
-
return groups[name] = result[g[name]], groups;
|
372
|
-
}, Object.create(null));
|
373
|
-
}
|
684
|
+
define(Gp, toStringTagSymbol, "Generator");
|
374
685
|
|
375
|
-
return
|
376
|
-
|
686
|
+
// A Generator should always return itself as the iterator object when the
|
687
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
688
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
689
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
690
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
691
|
+
define(Gp, iteratorSymbol, function() {
|
692
|
+
return this;
|
693
|
+
});
|
377
694
|
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
var groups = _groups.get(this);
|
695
|
+
define(Gp, "toString", function() {
|
696
|
+
return "[object Generator]";
|
697
|
+
});
|
382
698
|
|
383
|
-
|
384
|
-
|
385
|
-
}));
|
386
|
-
}
|
699
|
+
function pushTryEntry(locs) {
|
700
|
+
var entry = { tryLoc: locs[0] };
|
387
701
|
|
388
|
-
if (
|
389
|
-
|
702
|
+
if (1 in locs) {
|
703
|
+
entry.catchLoc = locs[1];
|
704
|
+
}
|
390
705
|
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
});
|
706
|
+
if (2 in locs) {
|
707
|
+
entry.finallyLoc = locs[2];
|
708
|
+
entry.afterLoc = locs[3];
|
395
709
|
}
|
396
710
|
|
397
|
-
|
398
|
-
}
|
399
|
-
}
|
711
|
+
this.tryEntries.push(entry);
|
712
|
+
}
|
400
713
|
|
401
|
-
function
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
reject(error);
|
407
|
-
return;
|
714
|
+
function resetTryEntry(entry) {
|
715
|
+
var record = entry.completion || {};
|
716
|
+
record.type = "normal";
|
717
|
+
delete record.arg;
|
718
|
+
entry.completion = record;
|
408
719
|
}
|
409
720
|
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
721
|
+
function Context(tryLocsList) {
|
722
|
+
// The root entry object (effectively a try statement without a catch
|
723
|
+
// or a finally block) gives us a place to store values thrown from
|
724
|
+
// locations where there is no enclosing try statement.
|
725
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
726
|
+
tryLocsList.forEach(pushTryEntry, this);
|
727
|
+
this.reset(true);
|
414
728
|
}
|
415
|
-
}
|
416
729
|
|
417
|
-
function
|
418
|
-
|
419
|
-
var
|
420
|
-
|
421
|
-
|
422
|
-
|
730
|
+
exports.keys = function(object) {
|
731
|
+
var keys = [];
|
732
|
+
for (var key in object) {
|
733
|
+
keys.push(key);
|
734
|
+
}
|
735
|
+
keys.reverse();
|
423
736
|
|
424
|
-
|
425
|
-
|
737
|
+
// Rather than returning an object with a next method, we keep
|
738
|
+
// things simple and return the next function itself.
|
739
|
+
return function next() {
|
740
|
+
while (keys.length) {
|
741
|
+
var key = keys.pop();
|
742
|
+
if (key in object) {
|
743
|
+
next.value = key;
|
744
|
+
next.done = false;
|
745
|
+
return next;
|
746
|
+
}
|
426
747
|
}
|
427
748
|
|
428
|
-
|
429
|
-
|
749
|
+
// To avoid creating an additional object, we just hang the .value
|
750
|
+
// and .done properties off the next function object itself. This
|
751
|
+
// also ensures that the minifier will not anonymize the function.
|
752
|
+
next.done = true;
|
753
|
+
return next;
|
754
|
+
};
|
755
|
+
};
|
756
|
+
|
757
|
+
function values(iterable) {
|
758
|
+
if (iterable) {
|
759
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
760
|
+
if (iteratorMethod) {
|
761
|
+
return iteratorMethod.call(iterable);
|
430
762
|
}
|
431
763
|
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
764
|
+
if (typeof iterable.next === "function") {
|
765
|
+
return iterable;
|
766
|
+
}
|
767
|
+
|
768
|
+
if (!isNaN(iterable.length)) {
|
769
|
+
var i = -1, next = function next() {
|
770
|
+
while (++i < iterable.length) {
|
771
|
+
if (hasOwn.call(iterable, i)) {
|
772
|
+
next.value = iterable[i];
|
773
|
+
next.done = false;
|
774
|
+
return next;
|
775
|
+
}
|
776
|
+
}
|
436
777
|
|
437
|
-
|
438
|
-
|
439
|
-
for (var i = 1; i < arguments.length; i++) {
|
440
|
-
var source = arguments[i];
|
778
|
+
next.value = undefined$1;
|
779
|
+
next.done = true;
|
441
780
|
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
781
|
+
return next;
|
782
|
+
};
|
783
|
+
|
784
|
+
return next.next = next;
|
446
785
|
}
|
447
786
|
}
|
448
787
|
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
788
|
+
// Return an iterator with no values.
|
789
|
+
return { next: doneResult };
|
790
|
+
}
|
791
|
+
exports.values = values;
|
453
792
|
|
454
|
-
function
|
455
|
-
|
456
|
-
throw new TypeError("Super expression must either be null or a function");
|
793
|
+
function doneResult() {
|
794
|
+
return { value: undefined$1, done: true };
|
457
795
|
}
|
458
796
|
|
459
|
-
|
460
|
-
constructor:
|
461
|
-
value: subClass,
|
462
|
-
writable: true,
|
463
|
-
configurable: true
|
464
|
-
}
|
465
|
-
});
|
466
|
-
Object.defineProperty(subClass, "prototype", {
|
467
|
-
writable: false
|
468
|
-
});
|
469
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
470
|
-
}
|
797
|
+
Context.prototype = {
|
798
|
+
constructor: Context,
|
471
799
|
|
472
|
-
function
|
473
|
-
|
474
|
-
|
800
|
+
reset: function(skipTempReset) {
|
801
|
+
this.prev = 0;
|
802
|
+
this.next = 0;
|
803
|
+
// Resetting context._sent for legacy support of Babel's
|
804
|
+
// function.sent implementation.
|
805
|
+
this.sent = this._sent = undefined$1;
|
806
|
+
this.done = false;
|
807
|
+
this.delegate = null;
|
808
|
+
|
809
|
+
this.method = "next";
|
810
|
+
this.arg = undefined$1;
|
811
|
+
|
812
|
+
this.tryEntries.forEach(resetTryEntry);
|
813
|
+
|
814
|
+
if (!skipTempReset) {
|
815
|
+
for (var name in this) {
|
816
|
+
// Not sure about the optimal order of these conditions:
|
817
|
+
if (name.charAt(0) === "t" &&
|
818
|
+
hasOwn.call(this, name) &&
|
819
|
+
!isNaN(+name.slice(1))) {
|
820
|
+
this[name] = undefined$1;
|
821
|
+
}
|
822
|
+
}
|
823
|
+
}
|
824
|
+
},
|
475
825
|
|
476
|
-
|
477
|
-
|
826
|
+
stop: function() {
|
827
|
+
this.done = true;
|
478
828
|
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
}
|
829
|
+
var rootEntry = this.tryEntries[0];
|
830
|
+
var rootRecord = rootEntry.completion;
|
831
|
+
if (rootRecord.type === "throw") {
|
832
|
+
throw rootRecord.arg;
|
833
|
+
}
|
485
834
|
|
486
|
-
|
487
|
-
|
488
|
-
o.__proto__ = p;
|
489
|
-
return o;
|
490
|
-
};
|
491
|
-
return _setPrototypeOf(o, p);
|
492
|
-
}
|
835
|
+
return this.rval;
|
836
|
+
},
|
493
837
|
|
494
|
-
function
|
495
|
-
|
496
|
-
|
497
|
-
|
838
|
+
dispatchException: function(exception) {
|
839
|
+
if (this.done) {
|
840
|
+
throw exception;
|
841
|
+
}
|
498
842
|
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
843
|
+
var context = this;
|
844
|
+
function handle(loc, caught) {
|
845
|
+
record.type = "throw";
|
846
|
+
record.arg = exception;
|
847
|
+
context.next = loc;
|
848
|
+
|
849
|
+
if (caught) {
|
850
|
+
// If the dispatched exception was caught by a catch block,
|
851
|
+
// then let that catch block handle the exception normally.
|
852
|
+
context.method = "next";
|
853
|
+
context.arg = undefined$1;
|
854
|
+
}
|
506
855
|
|
507
|
-
|
508
|
-
|
509
|
-
_construct = Reflect.construct.bind();
|
510
|
-
} else {
|
511
|
-
_construct = function _construct(Parent, args, Class) {
|
512
|
-
var a = [null];
|
513
|
-
a.push.apply(a, args);
|
514
|
-
var Constructor = Function.bind.apply(Parent, a);
|
515
|
-
var instance = new Constructor();
|
516
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
517
|
-
return instance;
|
518
|
-
};
|
519
|
-
}
|
856
|
+
return !! caught;
|
857
|
+
}
|
520
858
|
|
521
|
-
|
522
|
-
|
859
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
860
|
+
var entry = this.tryEntries[i];
|
861
|
+
var record = entry.completion;
|
523
862
|
|
524
|
-
|
525
|
-
|
526
|
-
|
863
|
+
if (entry.tryLoc === "root") {
|
864
|
+
// Exception thrown outside of any try block that could handle
|
865
|
+
// it, so set the completion value of the entire function to
|
866
|
+
// throw the exception.
|
867
|
+
return handle("end");
|
868
|
+
}
|
527
869
|
|
528
|
-
|
529
|
-
|
870
|
+
if (entry.tryLoc <= this.prev) {
|
871
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
872
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
530
873
|
|
531
|
-
|
532
|
-
|
874
|
+
if (hasCatch && hasFinally) {
|
875
|
+
if (this.prev < entry.catchLoc) {
|
876
|
+
return handle(entry.catchLoc, true);
|
877
|
+
} else if (this.prev < entry.finallyLoc) {
|
878
|
+
return handle(entry.finallyLoc);
|
879
|
+
}
|
533
880
|
|
534
|
-
|
535
|
-
|
536
|
-
|
881
|
+
} else if (hasCatch) {
|
882
|
+
if (this.prev < entry.catchLoc) {
|
883
|
+
return handle(entry.catchLoc, true);
|
884
|
+
}
|
537
885
|
|
538
|
-
|
539
|
-
|
886
|
+
} else if (hasFinally) {
|
887
|
+
if (this.prev < entry.finallyLoc) {
|
888
|
+
return handle(entry.finallyLoc);
|
889
|
+
}
|
540
890
|
|
541
|
-
|
542
|
-
|
891
|
+
} else {
|
892
|
+
throw new Error("try statement without catch or finally");
|
893
|
+
}
|
894
|
+
}
|
895
|
+
}
|
896
|
+
},
|
543
897
|
|
544
|
-
function
|
545
|
-
|
546
|
-
|
898
|
+
abrupt: function(type, arg) {
|
899
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
900
|
+
var entry = this.tryEntries[i];
|
901
|
+
if (entry.tryLoc <= this.prev &&
|
902
|
+
hasOwn.call(entry, "finallyLoc") &&
|
903
|
+
this.prev < entry.finallyLoc) {
|
904
|
+
var finallyEntry = entry;
|
905
|
+
break;
|
906
|
+
}
|
907
|
+
}
|
547
908
|
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
909
|
+
if (finallyEntry &&
|
910
|
+
(type === "break" ||
|
911
|
+
type === "continue") &&
|
912
|
+
finallyEntry.tryLoc <= arg &&
|
913
|
+
arg <= finallyEntry.finallyLoc) {
|
914
|
+
// Ignore the finally entry if control is not jumping to a
|
915
|
+
// location outside the try/catch block.
|
916
|
+
finallyEntry = null;
|
554
917
|
}
|
555
|
-
});
|
556
|
-
return _setPrototypeOf(Wrapper, Class);
|
557
|
-
};
|
558
918
|
|
559
|
-
|
560
|
-
|
919
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
920
|
+
record.type = type;
|
921
|
+
record.arg = arg;
|
561
922
|
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
923
|
+
if (finallyEntry) {
|
924
|
+
this.method = "next";
|
925
|
+
this.next = finallyEntry.finallyLoc;
|
926
|
+
return ContinueSentinel;
|
927
|
+
}
|
567
928
|
|
568
|
-
|
569
|
-
|
570
|
-
if (excluded.indexOf(key) >= 0) continue;
|
571
|
-
target[key] = source[key];
|
572
|
-
}
|
929
|
+
return this.complete(record);
|
930
|
+
},
|
573
931
|
|
574
|
-
|
575
|
-
|
932
|
+
complete: function(record, afterLoc) {
|
933
|
+
if (record.type === "throw") {
|
934
|
+
throw record.arg;
|
935
|
+
}
|
576
936
|
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
}
|
937
|
+
if (record.type === "break" ||
|
938
|
+
record.type === "continue") {
|
939
|
+
this.next = record.arg;
|
940
|
+
} else if (record.type === "return") {
|
941
|
+
this.rval = this.arg = record.arg;
|
942
|
+
this.method = "return";
|
943
|
+
this.next = "end";
|
944
|
+
} else if (record.type === "normal" && afterLoc) {
|
945
|
+
this.next = afterLoc;
|
946
|
+
}
|
585
947
|
|
586
|
-
|
587
|
-
|
948
|
+
return ContinueSentinel;
|
949
|
+
},
|
588
950
|
|
589
|
-
|
951
|
+
finish: function(finallyLoc) {
|
952
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
953
|
+
var entry = this.tryEntries[i];
|
954
|
+
if (entry.finallyLoc === finallyLoc) {
|
955
|
+
this.complete(entry.completion, entry.afterLoc);
|
956
|
+
resetTryEntry(entry);
|
957
|
+
return ContinueSentinel;
|
958
|
+
}
|
959
|
+
}
|
960
|
+
},
|
590
961
|
|
591
|
-
|
592
|
-
|
962
|
+
"catch": function(tryLoc) {
|
963
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
964
|
+
var entry = this.tryEntries[i];
|
965
|
+
if (entry.tryLoc === tryLoc) {
|
966
|
+
var record = entry.completion;
|
967
|
+
if (record.type === "throw") {
|
968
|
+
var thrown = record.arg;
|
969
|
+
resetTryEntry(entry);
|
970
|
+
}
|
971
|
+
return thrown;
|
972
|
+
}
|
973
|
+
}
|
593
974
|
|
594
|
-
|
595
|
-
|
596
|
-
|
975
|
+
// The context.catch method must only be called with a location
|
976
|
+
// argument that corresponds to a known catch block.
|
977
|
+
throw new Error("illegal catch attempt");
|
978
|
+
},
|
597
979
|
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
done: true
|
604
|
-
};
|
605
|
-
return {
|
606
|
-
done: false,
|
607
|
-
value: o[i++]
|
980
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
981
|
+
this.delegate = {
|
982
|
+
iterator: values(iterable),
|
983
|
+
resultName: resultName,
|
984
|
+
nextLoc: nextLoc
|
608
985
|
};
|
609
|
-
};
|
610
|
-
}
|
611
986
|
|
612
|
-
|
987
|
+
if (this.method === "next") {
|
988
|
+
// Deliberately forget the last sent value so that we don't
|
989
|
+
// accidentally pass it on to the delegate.
|
990
|
+
this.arg = undefined$1;
|
991
|
+
}
|
992
|
+
|
993
|
+
return ContinueSentinel;
|
994
|
+
}
|
995
|
+
};
|
996
|
+
|
997
|
+
// Regardless of whether this script is executing as a CommonJS module
|
998
|
+
// or not, return the runtime object so that we can declare the variable
|
999
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
1000
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
1001
|
+
return exports;
|
1002
|
+
|
1003
|
+
}(
|
1004
|
+
// If this script is executing as a CommonJS module, use module.exports
|
1005
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
1006
|
+
// object. Either way, the resulting object will be used to initialize
|
1007
|
+
// the regeneratorRuntime variable at the top of this file.
|
1008
|
+
module.exports
|
1009
|
+
));
|
1010
|
+
|
1011
|
+
try {
|
1012
|
+
regeneratorRuntime = runtime;
|
1013
|
+
} catch (accidentalStrictMode) {
|
1014
|
+
// This module should not be running in strict mode, so the above
|
1015
|
+
// assignment should always work unless something is misconfigured. Just
|
1016
|
+
// in case runtime.js accidentally runs in strict mode, in modern engines
|
1017
|
+
// we can explicitly access globalThis. In older engines we can escape
|
1018
|
+
// strict mode using a global Function call. This could conceivably fail
|
1019
|
+
// if a Content Security Policy forbids using Function, but in that case
|
1020
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
1021
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
1022
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
1023
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
1024
|
+
if (typeof globalThis === "object") {
|
1025
|
+
globalThis.regeneratorRuntime = runtime;
|
1026
|
+
} else {
|
1027
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
1028
|
+
}
|
613
1029
|
}
|
1030
|
+
});
|
614
1031
|
|
615
1032
|
var _personalMetaToPrefix;
|
616
1033
|
var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[MetadataCategory.Personal] = 'you', _personalMetaToPrefix[MetadataCategory.ChildPersonal] = 'child', _personalMetaToPrefix[MetadataCategory.OtherPersonal] = 'other', _personalMetaToPrefix);
|
@@ -621,7 +1038,7 @@ var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[Me
|
|
621
1038
|
*/
|
622
1039
|
|
623
1040
|
function identificationToPersonalInformations(data, category) {
|
624
|
-
var _data
|
1041
|
+
var _data$;
|
625
1042
|
|
626
1043
|
var prefix = personalMetaToPrefix[category];
|
627
1044
|
return {
|
@@ -631,7 +1048,7 @@ function identificationToPersonalInformations(data, category) {
|
|
631
1048
|
name: data[prefix + "Name"],
|
632
1049
|
phone: data[prefix + "Phone"],
|
633
1050
|
zip: data[prefix + "Zip"],
|
634
|
-
hid: (_data = data[prefix + "HID"]) != null ? _data : data[prefix + "ID"],
|
1051
|
+
hid: (_data$ = data[prefix + "HID"]) != null ? _data$ : data[prefix + "ID"],
|
635
1052
|
pharmacy: data[prefix + "Pharmacy"],
|
636
1053
|
address: data[prefix + "Address"]
|
637
1054
|
};
|
@@ -840,9 +1257,9 @@ function filterTriggeredAnsweredWithKind(_x, _x2) {
|
|
840
1257
|
*/
|
841
1258
|
|
842
1259
|
function _filterTriggeredAnsweredWithKind() {
|
843
|
-
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/
|
1260
|
+
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(workflowData, kind) {
|
844
1261
|
var flattenedAnswers, triggeredQuestionsWithKind, samePageAnswers, res;
|
845
|
-
return
|
1262
|
+
return runtime_1.wrap(function _callee$(_context) {
|
846
1263
|
while (1) {
|
847
1264
|
switch (_context.prev = _context.next) {
|
848
1265
|
case 0:
|
@@ -886,9 +1303,9 @@ function getWorkflowDataByCategory(_x3, _x4) {
|
|
886
1303
|
}
|
887
1304
|
|
888
1305
|
function _getWorkflowDataByCategory() {
|
889
|
-
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/
|
1306
|
+
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(workflowData, category) {
|
890
1307
|
var flattenedAnswers, triggeredQuestions, fields;
|
891
|
-
return
|
1308
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
892
1309
|
while (1) {
|
893
1310
|
switch (_context2.prev = _context2.next) {
|
894
1311
|
case 0:
|
@@ -959,8 +1376,8 @@ function getImagesFromIndexDb(_x5) {
|
|
959
1376
|
*/
|
960
1377
|
|
961
1378
|
function _getImagesFromIndexDb() {
|
962
|
-
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/
|
963
|
-
return
|
1379
|
+
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(answer) {
|
1380
|
+
return runtime_1.wrap(function _callee3$(_context3) {
|
964
1381
|
while (1) {
|
965
1382
|
switch (_context3.prev = _context3.next) {
|
966
1383
|
case 0:
|
@@ -1036,9 +1453,9 @@ function populateWorkflowField(_x6, _x7) {
|
|
1036
1453
|
|
1037
1454
|
|
1038
1455
|
function _populateWorkflowField() {
|
1039
|
-
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/
|
1456
|
+
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(question, answerValue) {
|
1040
1457
|
var answer, displayedAnswer;
|
1041
|
-
return
|
1458
|
+
return runtime_1.wrap(function _callee4$(_context4) {
|
1042
1459
|
while (1) {
|
1043
1460
|
switch (_context4.prev = _context4.next) {
|
1044
1461
|
case 0:
|
@@ -1216,10 +1633,11 @@ var MAX_RETRIES = 15;
|
|
1216
1633
|
* @param masterKey
|
1217
1634
|
* @param recoveryQA
|
1218
1635
|
* @param indexSearch create search index for the consultation if true
|
1636
|
+
* @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
|
1219
1637
|
* @returns the successful registration
|
1220
1638
|
*/
|
1221
1639
|
|
1222
|
-
function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
1640
|
+
function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
1223
1641
|
return _registerPatient.apply(this, arguments);
|
1224
1642
|
}
|
1225
1643
|
/**
|
@@ -1230,10 +1648,10 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
|
1230
1648
|
*/
|
1231
1649
|
|
1232
1650
|
function _registerPatient() {
|
1233
|
-
_registerPatient = _asyncToGenerator( /*#__PURE__*/
|
1234
|
-
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, _ret;
|
1651
|
+
_registerPatient = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch, onProgress) {
|
1652
|
+
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, stepsTotalNum, currentStep, _ret;
|
1235
1653
|
|
1236
|
-
return
|
1654
|
+
return runtime_1.wrap(function _callee4$(_context4) {
|
1237
1655
|
while (1) {
|
1238
1656
|
switch (_context4.prev = _context4.next) {
|
1239
1657
|
case 0:
|
@@ -1247,105 +1665,117 @@ function _registerPatient() {
|
|
1247
1665
|
retry = MAX_RETRIES;
|
1248
1666
|
identity = undefined;
|
1249
1667
|
errorsThrown = [];
|
1668
|
+
stepsTotalNum = 9;
|
1250
1669
|
|
1251
|
-
case
|
1670
|
+
case 8:
|
1252
1671
|
if (!(retry > 0)) {
|
1253
|
-
_context4.next =
|
1672
|
+
_context4.next = 24;
|
1254
1673
|
break;
|
1255
1674
|
}
|
1256
1675
|
|
1257
|
-
_context4.prev =
|
1258
|
-
return _context4.delegateYield( /*#__PURE__*/
|
1676
|
+
_context4.prev = 9;
|
1677
|
+
return _context4.delegateYield( /*#__PURE__*/runtime_1.mark(function _callee3() {
|
1259
1678
|
var _consultIndex, _identity, _identity2;
|
1260
1679
|
|
1261
1680
|
var practitioners, grantPromises, consultIndex, consultIndexPromises;
|
1262
|
-
return
|
1681
|
+
return runtime_1.wrap(function _callee3$(_context3) {
|
1263
1682
|
while (1) {
|
1264
1683
|
switch (_context3.prev = _context3.next) {
|
1265
1684
|
case 0:
|
1266
|
-
|
1685
|
+
currentStep = 0;
|
1686
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'retrieve_practitioners'); // Wait a bit each retry (we also want the first one to wait)
|
1687
|
+
|
1688
|
+
_context3.next = 4;
|
1267
1689
|
return new Promise(function (resolve) {
|
1268
1690
|
return setTimeout(resolve, 2000);
|
1269
1691
|
});
|
1270
1692
|
|
1271
|
-
case
|
1693
|
+
case 4:
|
1272
1694
|
if (practitionerAdmin) {
|
1273
|
-
_context3.next =
|
1695
|
+
_context3.next = 8;
|
1274
1696
|
break;
|
1275
1697
|
}
|
1276
1698
|
|
1277
|
-
_context3.next =
|
1699
|
+
_context3.next = 7;
|
1278
1700
|
return oroClient.practiceClient.practiceGetFromUuid(consultRequest.uuidPractice);
|
1279
1701
|
|
1280
|
-
case
|
1702
|
+
case 7:
|
1281
1703
|
practitionerAdmin = _context3.sent.uuidAdmin;
|
1282
1704
|
|
1283
|
-
case
|
1284
|
-
_context3.next =
|
1705
|
+
case 8:
|
1706
|
+
_context3.next = 10;
|
1285
1707
|
return oroClient.practiceClient.practiceGetPractitioners(consultRequest.uuidPractice)["catch"](function (err) {
|
1286
1708
|
console.log("Error retrieving practitioners", err);
|
1287
1709
|
return [];
|
1288
1710
|
});
|
1289
1711
|
|
1290
|
-
case
|
1712
|
+
case 10:
|
1291
1713
|
practitioners = _context3.sent;
|
1714
|
+
// Creating consult
|
1715
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'create_consult');
|
1292
1716
|
|
1293
1717
|
if (consult) {
|
1294
|
-
_context3.next =
|
1718
|
+
_context3.next = 16;
|
1295
1719
|
break;
|
1296
1720
|
}
|
1297
1721
|
|
1298
|
-
_context3.next =
|
1722
|
+
_context3.next = 15;
|
1299
1723
|
return getOrCreatePatientConsultationUuid(consultRequest, oroClient);
|
1300
1724
|
|
1301
|
-
case
|
1725
|
+
case 15:
|
1302
1726
|
consult = _context3.sent;
|
1303
1727
|
|
1304
|
-
case
|
1728
|
+
case 16:
|
1729
|
+
// Creating lockbox
|
1730
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'create_lockbox');
|
1731
|
+
|
1305
1732
|
if (lockboxUuid) {
|
1306
|
-
_context3.next =
|
1733
|
+
_context3.next = 21;
|
1307
1734
|
break;
|
1308
1735
|
}
|
1309
1736
|
|
1310
|
-
_context3.next =
|
1737
|
+
_context3.next = 20;
|
1311
1738
|
return getOrCreatePatientLockbox(oroClient);
|
1312
1739
|
|
1313
|
-
case
|
1740
|
+
case 20:
|
1314
1741
|
lockboxUuid = _context3.sent;
|
1315
1742
|
|
1316
|
-
case
|
1743
|
+
case 21:
|
1317
1744
|
if (identity) {
|
1318
|
-
_context3.next =
|
1745
|
+
_context3.next = 25;
|
1319
1746
|
break;
|
1320
1747
|
}
|
1321
1748
|
|
1322
|
-
_context3.next =
|
1749
|
+
_context3.next = 24;
|
1323
1750
|
return oroClient.guardClient.identityGet(patientUuid);
|
1324
1751
|
|
1325
|
-
case
|
1752
|
+
case 24:
|
1326
1753
|
identity = _context3.sent;
|
1327
1754
|
|
1328
|
-
case
|
1329
|
-
_context3.next =
|
1755
|
+
case 25:
|
1756
|
+
_context3.next = 27;
|
1330
1757
|
return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
|
1331
1758
|
console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
|
1332
1759
|
|
1760
|
+
// if we cannot grant to the admin, then the registration will fail
|
1333
1761
|
errorsThrown.push(err);
|
1334
1762
|
});
|
1335
1763
|
|
1336
|
-
case
|
1764
|
+
case 27:
|
1337
1765
|
// Patient Grant to practice
|
1766
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'grant_patient');
|
1338
1767
|
grantPromises = practitioners.filter(function (practitioner) {
|
1339
1768
|
return practitioner.uuid !== practitionerAdmin;
|
1340
1769
|
}).map( /*#__PURE__*/function () {
|
1341
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
1342
|
-
return
|
1770
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(practitioner) {
|
1771
|
+
return runtime_1.wrap(function _callee$(_context) {
|
1343
1772
|
while (1) {
|
1344
1773
|
switch (_context.prev = _context.next) {
|
1345
1774
|
case 0:
|
1346
1775
|
return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
|
1347
1776
|
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
|
1348
1777
|
|
1778
|
+
// Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
|
1349
1779
|
if (retry <= 1) return;
|
1350
1780
|
errorsThrown.push(err);
|
1351
1781
|
}));
|
@@ -1358,7 +1788,7 @@ function _registerPatient() {
|
|
1358
1788
|
}, _callee);
|
1359
1789
|
}));
|
1360
1790
|
|
1361
|
-
return function (
|
1791
|
+
return function (_x31) {
|
1362
1792
|
return _ref.apply(this, arguments);
|
1363
1793
|
};
|
1364
1794
|
}());
|
@@ -1371,14 +1801,15 @@ function _registerPatient() {
|
|
1371
1801
|
}], _consultIndex); // the index will identify in which lockbox a consultation resides
|
1372
1802
|
|
1373
1803
|
consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
|
1374
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
1375
|
-
return
|
1804
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(practitioner) {
|
1805
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
1376
1806
|
while (1) {
|
1377
1807
|
switch (_context2.prev = _context2.next) {
|
1378
1808
|
case 0:
|
1379
1809
|
return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
|
1380
1810
|
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
|
1381
1811
|
|
1812
|
+
// Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
|
1382
1813
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1383
1814
|
}));
|
1384
1815
|
|
@@ -1390,167 +1821,185 @@ function _registerPatient() {
|
|
1390
1821
|
}, _callee2);
|
1391
1822
|
}));
|
1392
1823
|
|
1393
|
-
return function (
|
1824
|
+
return function (_x32) {
|
1394
1825
|
return _ref2.apply(this, arguments);
|
1395
1826
|
};
|
1396
1827
|
}());
|
1397
|
-
_context3.next =
|
1398
|
-
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient
|
1828
|
+
_context3.next = 33;
|
1829
|
+
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient, onProgress ? {
|
1830
|
+
onProgress: onProgress,
|
1831
|
+
currentStep: currentStep,
|
1832
|
+
stepsTotalNum: stepsTotalNum
|
1833
|
+
} : undefined)["catch"](function (err) {
|
1399
1834
|
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
|
1400
1835
|
|
1836
|
+
// Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
|
1401
1837
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1402
1838
|
});
|
1403
1839
|
|
1404
|
-
case
|
1405
|
-
|
1840
|
+
case 33:
|
1841
|
+
++currentStep;
|
1842
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'store_patient_data');
|
1843
|
+
_context3.next = 37;
|
1406
1844
|
return storePatientData(consult.uuid, consultRequest.isoLanguageRequired, lockboxUuid, workflow, oroClient)["catch"](function (err) {
|
1407
1845
|
console.error('[SDK: registration] Some errors happened during patient data upload', err);
|
1408
1846
|
errorsThrown.push(err);
|
1409
1847
|
});
|
1410
1848
|
|
1411
|
-
case
|
1849
|
+
case 37:
|
1850
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'set_masterkey');
|
1851
|
+
|
1412
1852
|
if (!(masterKey && !((_identity = identity) != null && _identity.recoveryMasterKey))) {
|
1413
|
-
_context3.next =
|
1853
|
+
_context3.next = 44;
|
1414
1854
|
break;
|
1415
1855
|
}
|
1416
1856
|
|
1417
|
-
_context3.next =
|
1857
|
+
_context3.next = 41;
|
1418
1858
|
return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
|
1419
1859
|
console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
|
1420
1860
|
|
1861
|
+
/// it's acceptable to continue registration (return old identity)
|
1421
1862
|
if (retry <= 1) return;
|
1422
1863
|
errorsThrown.push(err);
|
1423
1864
|
return identity;
|
1424
1865
|
});
|
1425
1866
|
|
1426
|
-
case
|
1867
|
+
case 41:
|
1427
1868
|
identity = _context3.sent;
|
1428
|
-
_context3.next =
|
1869
|
+
_context3.next = 45;
|
1429
1870
|
break;
|
1430
1871
|
|
1431
|
-
case
|
1872
|
+
case 44:
|
1432
1873
|
// we did not set the master key so we do not return it
|
1433
1874
|
masterKey = undefined;
|
1434
1875
|
|
1435
|
-
case
|
1876
|
+
case 45:
|
1877
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'set_security_questions');
|
1878
|
+
|
1436
1879
|
if (!(recoveryQA && !((_identity2 = identity) != null && _identity2.recoverySecurityQuestions))) {
|
1437
|
-
_context3.next =
|
1880
|
+
_context3.next = 50;
|
1438
1881
|
break;
|
1439
1882
|
}
|
1440
1883
|
|
1441
|
-
_context3.next =
|
1884
|
+
_context3.next = 49;
|
1442
1885
|
return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
|
1443
1886
|
console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
|
1444
1887
|
|
1888
|
+
/// it's acceptable to continue registration (return old identity)
|
1445
1889
|
if (retry <= 1) return;
|
1446
1890
|
errorsThrown.push(err);
|
1447
1891
|
return identity;
|
1448
1892
|
});
|
1449
1893
|
|
1450
|
-
case
|
1894
|
+
case 49:
|
1451
1895
|
identity = _context3.sent;
|
1452
1896
|
|
1453
|
-
case
|
1454
|
-
_context3.next =
|
1897
|
+
case 50:
|
1898
|
+
_context3.next = 52;
|
1455
1899
|
return Promise.all([].concat(grantPromises, consultIndexPromises));
|
1456
1900
|
|
1457
|
-
case
|
1901
|
+
case 52:
|
1902
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'search_indexing');
|
1903
|
+
|
1458
1904
|
if (!indexSearch) {
|
1459
|
-
_context3.next =
|
1905
|
+
_context3.next = 56;
|
1460
1906
|
break;
|
1461
1907
|
}
|
1462
1908
|
|
1463
|
-
_context3.next =
|
1909
|
+
_context3.next = 56;
|
1464
1910
|
return buildConsultSearchIndex(consult, workflow, oroClient)["catch"](function (err) {
|
1465
1911
|
console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
|
1466
1912
|
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
|
1467
1913
|
|
1914
|
+
// this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
|
1468
1915
|
errorsThrown.push(err);
|
1469
1916
|
});
|
1470
1917
|
|
1471
|
-
case
|
1918
|
+
case 56:
|
1472
1919
|
if (!(errorsThrown.length > 0)) {
|
1473
|
-
_context3.next =
|
1920
|
+
_context3.next = 58;
|
1474
1921
|
break;
|
1475
1922
|
}
|
1476
1923
|
|
1477
1924
|
throw errorsThrown;
|
1478
1925
|
|
1479
|
-
case
|
1480
|
-
_context3.next =
|
1926
|
+
case 58:
|
1927
|
+
_context3.next = 60;
|
1481
1928
|
return oroClient.consultClient.updateConsultByUUID(consult.uuid, {
|
1482
1929
|
statusMedical: MedicalStatus.New
|
1483
1930
|
});
|
1484
1931
|
|
1485
|
-
case
|
1932
|
+
case 60:
|
1933
|
+
// if we got through the complete flow, the registration succeeded
|
1934
|
+
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'success');
|
1486
1935
|
return _context3.abrupt("return", "break");
|
1487
1936
|
|
1488
|
-
case
|
1937
|
+
case 62:
|
1489
1938
|
case "end":
|
1490
1939
|
return _context3.stop();
|
1491
1940
|
}
|
1492
1941
|
}
|
1493
1942
|
}, _callee3);
|
1494
|
-
})(), "t0",
|
1943
|
+
})(), "t0", 11);
|
1495
1944
|
|
1496
|
-
case
|
1945
|
+
case 11:
|
1497
1946
|
_ret = _context4.t0;
|
1498
1947
|
|
1499
1948
|
if (!(_ret === "break")) {
|
1500
|
-
_context4.next =
|
1949
|
+
_context4.next = 14;
|
1501
1950
|
break;
|
1502
1951
|
}
|
1503
1952
|
|
1504
|
-
return _context4.abrupt("break",
|
1953
|
+
return _context4.abrupt("break", 24);
|
1505
1954
|
|
1506
|
-
case
|
1507
|
-
_context4.next =
|
1955
|
+
case 14:
|
1956
|
+
_context4.next = 21;
|
1508
1957
|
break;
|
1509
1958
|
|
1510
|
-
case
|
1511
|
-
_context4.prev =
|
1512
|
-
_context4.t1 = _context4["catch"](
|
1959
|
+
case 16:
|
1960
|
+
_context4.prev = 16;
|
1961
|
+
_context4.t1 = _context4["catch"](9);
|
1513
1962
|
console.error("[SDK] Error occured during registration: " + _context4.t1 + ", retrying... Retries remaining: " + retry);
|
1514
1963
|
errorsThrown = [];
|
1515
|
-
return _context4.abrupt("continue",
|
1964
|
+
return _context4.abrupt("continue", 21);
|
1516
1965
|
|
1517
|
-
case
|
1966
|
+
case 21:
|
1518
1967
|
retry--;
|
1519
|
-
_context4.next =
|
1968
|
+
_context4.next = 8;
|
1520
1969
|
break;
|
1521
1970
|
|
1522
|
-
case
|
1971
|
+
case 24:
|
1523
1972
|
if (!(retry <= 0)) {
|
1524
|
-
_context4.next =
|
1973
|
+
_context4.next = 27;
|
1525
1974
|
break;
|
1526
1975
|
}
|
1527
1976
|
|
1528
1977
|
console.error('[SDK] registration failed: MAX_RETRIES reached');
|
1529
1978
|
throw 'RegistrationFailed';
|
1530
1979
|
|
1531
|
-
case
|
1980
|
+
case 27:
|
1532
1981
|
console.log('Successfully Registered');
|
1533
|
-
_context4.next =
|
1982
|
+
_context4.next = 30;
|
1534
1983
|
return oroClient.cleanIndex();
|
1535
1984
|
|
1536
|
-
case
|
1985
|
+
case 30:
|
1537
1986
|
return _context4.abrupt("return", {
|
1538
1987
|
masterKey: masterKey,
|
1539
1988
|
consultationId: consult.uuid,
|
1540
1989
|
lockboxUuid: lockboxUuid
|
1541
1990
|
});
|
1542
1991
|
|
1543
|
-
case
|
1992
|
+
case 31:
|
1544
1993
|
case "end":
|
1545
1994
|
return _context4.stop();
|
1546
1995
|
}
|
1547
1996
|
}
|
1548
|
-
}, _callee4, null, [[
|
1997
|
+
}, _callee4, null, [[9, 16]]);
|
1549
1998
|
}));
|
1550
1999
|
return _registerPatient.apply(this, arguments);
|
1551
2000
|
}
|
1552
2001
|
|
1553
|
-
function getOrCreatePatientConsultationUuid(
|
2002
|
+
function getOrCreatePatientConsultationUuid(_x9, _x10) {
|
1554
2003
|
return _getOrCreatePatientConsultationUuid.apply(this, arguments);
|
1555
2004
|
}
|
1556
2005
|
/**
|
@@ -1561,9 +2010,9 @@ function getOrCreatePatientConsultationUuid(_x8, _x9) {
|
|
1561
2010
|
|
1562
2011
|
|
1563
2012
|
function _getOrCreatePatientConsultationUuid() {
|
1564
|
-
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/
|
2013
|
+
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(consult, oroClient) {
|
1565
2014
|
var payment;
|
1566
|
-
return
|
2015
|
+
return runtime_1.wrap(function _callee5$(_context5) {
|
1567
2016
|
while (1) {
|
1568
2017
|
switch (_context5.prev = _context5.next) {
|
1569
2018
|
case 0:
|
@@ -1603,7 +2052,7 @@ function _getOrCreatePatientConsultationUuid() {
|
|
1603
2052
|
return _getOrCreatePatientConsultationUuid.apply(this, arguments);
|
1604
2053
|
}
|
1605
2054
|
|
1606
|
-
function getOrCreatePatientLockbox(
|
2055
|
+
function getOrCreatePatientLockbox(_x11) {
|
1607
2056
|
return _getOrCreatePatientLockbox.apply(this, arguments);
|
1608
2057
|
}
|
1609
2058
|
/**
|
@@ -1618,9 +2067,9 @@ function getOrCreatePatientLockbox(_x10) {
|
|
1618
2067
|
|
1619
2068
|
|
1620
2069
|
function _getOrCreatePatientLockbox() {
|
1621
|
-
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/
|
2070
|
+
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(oroClient) {
|
1622
2071
|
var grants, lockboxResponse, tokens;
|
1623
|
-
return
|
2072
|
+
return runtime_1.wrap(function _callee6$(_context6) {
|
1624
2073
|
while (1) {
|
1625
2074
|
switch (_context6.prev = _context6.next) {
|
1626
2075
|
case 0:
|
@@ -1675,13 +2124,13 @@ function _getOrCreatePatientLockbox() {
|
|
1675
2124
|
return _getOrCreatePatientLockbox.apply(this, arguments);
|
1676
2125
|
}
|
1677
2126
|
|
1678
|
-
function storePatientData(
|
2127
|
+
function storePatientData(_x12, _x13, _x14, _x15, _x16) {
|
1679
2128
|
return _storePatientData.apply(this, arguments);
|
1680
2129
|
}
|
1681
2130
|
|
1682
2131
|
function _storePatientData() {
|
1683
|
-
_storePatientData = _asyncToGenerator( /*#__PURE__*/
|
1684
|
-
return
|
2132
|
+
_storePatientData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
|
2133
|
+
return runtime_1.wrap(function _callee7$(_context7) {
|
1685
2134
|
while (1) {
|
1686
2135
|
switch (_context7.prev = _context7.next) {
|
1687
2136
|
case 0:
|
@@ -1723,7 +2172,7 @@ function _storePatientData() {
|
|
1723
2172
|
return _storePatientData.apply(this, arguments);
|
1724
2173
|
}
|
1725
2174
|
|
1726
|
-
function storeImageAliases(
|
2175
|
+
function storeImageAliases(_x17, _x18, _x19, _x20, _x21) {
|
1727
2176
|
return _storeImageAliases.apply(this, arguments);
|
1728
2177
|
}
|
1729
2178
|
/**
|
@@ -1738,9 +2187,9 @@ function storeImageAliases(_x16, _x17, _x18, _x19) {
|
|
1738
2187
|
|
1739
2188
|
|
1740
2189
|
function _storeImageAliases() {
|
1741
|
-
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/
|
1742
|
-
var images, nonNullImages, promises;
|
1743
|
-
return
|
2190
|
+
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient, progress) {
|
2191
|
+
var images, nonNullImages, storedImagesNum, totalImagesNum, promises;
|
2192
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
1744
2193
|
while (1) {
|
1745
2194
|
switch (_context8.prev = _context8.next) {
|
1746
2195
|
case 0:
|
@@ -1763,17 +2212,32 @@ function _storeImageAliases() {
|
|
1763
2212
|
console.error('[SDK] Some images have not been found, they have been skipped.');
|
1764
2213
|
}
|
1765
2214
|
|
2215
|
+
storedImagesNum = 0;
|
2216
|
+
totalImagesNum = nonNullImages.length;
|
2217
|
+
if (progress) progress.onProgress(progress.currentStep / progress.stepsTotalNum, 'store_images', {
|
2218
|
+
storedImagesNum: storedImagesNum,
|
2219
|
+
totalImagesNum: totalImagesNum
|
2220
|
+
});
|
1766
2221
|
promises = nonNullImages.map(function (image) {
|
1767
2222
|
return oroClient.getOrInsertJsonData(lockboxUuid, image, {
|
1768
2223
|
category: MetadataCategory.Consultation,
|
1769
2224
|
documentType: DocumentType.ImageAlias,
|
1770
2225
|
consultationId: consultationId,
|
1771
2226
|
idbId: image.idbId
|
1772
|
-
}, {})
|
2227
|
+
}, {}).then(function () {
|
2228
|
+
if (progress) {
|
2229
|
+
++storedImagesNum;
|
2230
|
+
var progressStepValue = Math.round(((progress.currentStep + 1) / progress.stepsTotalNum - progress.currentStep / progress.stepsTotalNum) * 100) / 100;
|
2231
|
+
progress.onProgress(progress.currentStep / progress.stepsTotalNum + progressStepValue * (storedImagesNum / totalImagesNum), 'store_images', {
|
2232
|
+
storedImagesNum: storedImagesNum,
|
2233
|
+
totalImagesNum: totalImagesNum
|
2234
|
+
});
|
2235
|
+
}
|
2236
|
+
});
|
1773
2237
|
});
|
1774
2238
|
return _context8.abrupt("return", Promise.all(promises));
|
1775
2239
|
|
1776
|
-
case
|
2240
|
+
case 14:
|
1777
2241
|
case "end":
|
1778
2242
|
return _context8.stop();
|
1779
2243
|
}
|
@@ -1783,7 +2247,7 @@ function _storeImageAliases() {
|
|
1783
2247
|
return _storeImageAliases.apply(this, arguments);
|
1784
2248
|
}
|
1785
2249
|
|
1786
|
-
function extractAndStorePersonalWorkflowData(
|
2250
|
+
function extractAndStorePersonalWorkflowData(_x22, _x23, _x24, _x25, _x26) {
|
1787
2251
|
return _extractAndStorePersonalWorkflowData.apply(this, arguments);
|
1788
2252
|
}
|
1789
2253
|
/**
|
@@ -1792,8 +2256,8 @@ function extractAndStorePersonalWorkflowData(_x20, _x21, _x22, _x23, _x24) {
|
|
1792
2256
|
*/
|
1793
2257
|
|
1794
2258
|
function _extractAndStorePersonalWorkflowData() {
|
1795
|
-
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
1796
|
-
return
|
2259
|
+
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
|
2260
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
1797
2261
|
while (1) {
|
1798
2262
|
switch (_context9.prev = _context9.next) {
|
1799
2263
|
case 0:
|
@@ -1816,7 +2280,7 @@ function _extractAndStorePersonalWorkflowData() {
|
|
1816
2280
|
return _extractAndStorePersonalWorkflowData.apply(this, arguments);
|
1817
2281
|
}
|
1818
2282
|
|
1819
|
-
function extractPersonalInfoFromWorkflowData(
|
2283
|
+
function extractPersonalInfoFromWorkflowData(_x27) {
|
1820
2284
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
1821
2285
|
}
|
1822
2286
|
/**
|
@@ -1827,8 +2291,8 @@ function extractPersonalInfoFromWorkflowData(_x25) {
|
|
1827
2291
|
*/
|
1828
2292
|
|
1829
2293
|
function _extractPersonalInfoFromWorkflowData() {
|
1830
|
-
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
1831
|
-
return
|
2294
|
+
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(workflow) {
|
2295
|
+
return runtime_1.wrap(function _callee10$(_context10) {
|
1832
2296
|
while (1) {
|
1833
2297
|
switch (_context10.prev = _context10.next) {
|
1834
2298
|
case 0:
|
@@ -1853,15 +2317,15 @@ function _extractPersonalInfoFromWorkflowData() {
|
|
1853
2317
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
1854
2318
|
}
|
1855
2319
|
|
1856
|
-
function buildConsultSearchIndex(
|
2320
|
+
function buildConsultSearchIndex(_x28, _x29, _x30) {
|
1857
2321
|
return _buildConsultSearchIndex.apply(this, arguments);
|
1858
2322
|
}
|
1859
2323
|
|
1860
2324
|
function _buildConsultSearchIndex() {
|
1861
|
-
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/
|
2325
|
+
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(consult, workflow, oroClient) {
|
1862
2326
|
var terms, _yield$extractPersona, personalInfoPopulatedWfData, childPersonalInfoPopulatedWfData, otherPersonalInfoPopulatedWfData, personalInfo, childPersonalInfo, otherPersonalInfo;
|
1863
2327
|
|
1864
|
-
return
|
2328
|
+
return runtime_1.wrap(function _callee11$(_context11) {
|
1865
2329
|
while (1) {
|
1866
2330
|
switch (_context11.prev = _context11.next) {
|
1867
2331
|
case 0:
|
@@ -1982,10 +2446,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2) {
|
|
1982
2446
|
}
|
1983
2447
|
|
1984
2448
|
function _filterGrantsWithLockboxMetadata() {
|
1985
|
-
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/
|
2449
|
+
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(oroClient, filter) {
|
1986
2450
|
var grants, filteredGrants, _iterator, _step, grant, consultationIdExistsInMetadata;
|
1987
2451
|
|
1988
|
-
return
|
2452
|
+
return runtime_1.wrap(function _callee$(_context) {
|
1989
2453
|
while (1) {
|
1990
2454
|
switch (_context.prev = _context.next) {
|
1991
2455
|
case 0:
|
@@ -2058,8 +2522,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2058
2522
|
_proto.cleanIndex =
|
2059
2523
|
/*#__PURE__*/
|
2060
2524
|
function () {
|
2061
|
-
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2062
|
-
return
|
2525
|
+
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
|
2526
|
+
return runtime_1.wrap(function _callee$(_context) {
|
2063
2527
|
while (1) {
|
2064
2528
|
switch (_context.prev = _context.next) {
|
2065
2529
|
case 0:
|
@@ -2096,9 +2560,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2096
2560
|
_proto.signUp =
|
2097
2561
|
/*#__PURE__*/
|
2098
2562
|
function () {
|
2099
|
-
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2563
|
+
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
|
2100
2564
|
var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
|
2101
|
-
return
|
2565
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
2102
2566
|
while (1) {
|
2103
2567
|
switch (_context2.prev = _context2.next) {
|
2104
2568
|
case 0:
|
@@ -2157,9 +2621,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2157
2621
|
_proto.confirmEmail =
|
2158
2622
|
/*#__PURE__*/
|
2159
2623
|
function () {
|
2160
|
-
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2624
|
+
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(accessToken) {
|
2161
2625
|
var claims;
|
2162
|
-
return
|
2626
|
+
return runtime_1.wrap(function _callee3$(_context3) {
|
2163
2627
|
while (1) {
|
2164
2628
|
switch (_context3.prev = _context3.next) {
|
2165
2629
|
case 0:
|
@@ -2204,9 +2668,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2204
2668
|
_proto.signIn =
|
2205
2669
|
/*#__PURE__*/
|
2206
2670
|
function () {
|
2207
|
-
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2671
|
+
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(practiceUuid, email, password, otp) {
|
2208
2672
|
var hashedPassword, tokenRequest, userUuid;
|
2209
|
-
return
|
2673
|
+
return runtime_1.wrap(function _callee4$(_context4) {
|
2210
2674
|
while (1) {
|
2211
2675
|
switch (_context4.prev = _context4.next) {
|
2212
2676
|
case 0:
|
@@ -2259,9 +2723,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2259
2723
|
_proto.resumeSession =
|
2260
2724
|
/*#__PURE__*/
|
2261
2725
|
function () {
|
2262
|
-
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2726
|
+
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5() {
|
2263
2727
|
var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
|
2264
|
-
return
|
2728
|
+
return runtime_1.wrap(function _callee5$(_context5) {
|
2265
2729
|
while (1) {
|
2266
2730
|
switch (_context5.prev = _context5.next) {
|
2267
2731
|
case 0:
|
@@ -2362,8 +2826,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2362
2826
|
_proto.signOut =
|
2363
2827
|
/*#__PURE__*/
|
2364
2828
|
function () {
|
2365
|
-
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2366
|
-
return
|
2829
|
+
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6() {
|
2830
|
+
return runtime_1.wrap(function _callee6$(_context6) {
|
2367
2831
|
while (1) {
|
2368
2832
|
switch (_context6.prev = _context6.next) {
|
2369
2833
|
case 0:
|
@@ -2406,6 +2870,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2406
2870
|
* @param workflow
|
2407
2871
|
* @param recoveryQA
|
2408
2872
|
* @param indexSearch create search index for the consultation if true
|
2873
|
+
* @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
|
2409
2874
|
* @returns
|
2410
2875
|
*/
|
2411
2876
|
;
|
@@ -2413,8 +2878,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2413
2878
|
_proto.registerPatient =
|
2414
2879
|
/*#__PURE__*/
|
2415
2880
|
function () {
|
2416
|
-
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2417
|
-
return
|
2881
|
+
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch, onProgress) {
|
2882
|
+
return runtime_1.wrap(function _callee7$(_context7) {
|
2418
2883
|
while (1) {
|
2419
2884
|
switch (_context7.prev = _context7.next) {
|
2420
2885
|
case 0:
|
@@ -2430,7 +2895,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2430
2895
|
throw IncompleteAuthentication;
|
2431
2896
|
|
2432
2897
|
case 3:
|
2433
|
-
return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA, indexSearch));
|
2898
|
+
return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA, indexSearch, onProgress));
|
2434
2899
|
|
2435
2900
|
case 4:
|
2436
2901
|
case "end":
|
@@ -2440,7 +2905,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2440
2905
|
}, _callee7, this);
|
2441
2906
|
}));
|
2442
2907
|
|
2443
|
-
function registerPatient$1(_x13, _x14, _x15, _x16, _x17) {
|
2908
|
+
function registerPatient$1(_x13, _x14, _x15, _x16, _x17, _x18) {
|
2444
2909
|
return _registerPatient2.apply(this, arguments);
|
2445
2910
|
}
|
2446
2911
|
|
@@ -2455,12 +2920,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
2455
2920
|
_proto.forceUpdateIndexEntries =
|
2456
2921
|
/*#__PURE__*/
|
2457
2922
|
function () {
|
2458
|
-
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2923
|
+
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9() {
|
2459
2924
|
var _this = this,
|
2460
2925
|
_this$vaultIndexAdd;
|
2461
2926
|
|
2462
2927
|
var grants, indexConsultLockbox;
|
2463
|
-
return
|
2928
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
2464
2929
|
while (1) {
|
2465
2930
|
switch (_context9.prev = _context9.next) {
|
2466
2931
|
case 0:
|
@@ -2471,8 +2936,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2471
2936
|
grants = _context9.sent;
|
2472
2937
|
_context9.next = 5;
|
2473
2938
|
return Promise.all(grants.map( /*#__PURE__*/function () {
|
2474
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
2475
|
-
return
|
2939
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(grant) {
|
2940
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
2476
2941
|
while (1) {
|
2477
2942
|
switch (_context8.prev = _context8.next) {
|
2478
2943
|
case 0:
|
@@ -2508,7 +2973,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2508
2973
|
}, _callee8);
|
2509
2974
|
}));
|
2510
2975
|
|
2511
|
-
return function (
|
2976
|
+
return function (_x19) {
|
2512
2977
|
return _ref2.apply(this, arguments);
|
2513
2978
|
};
|
2514
2979
|
}())).then(function (consults) {
|
@@ -2548,10 +3013,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
2548
3013
|
_proto.vaultIndexAdd =
|
2549
3014
|
/*#__PURE__*/
|
2550
3015
|
function () {
|
2551
|
-
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3016
|
+
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(entries, indexOwnerUuid) {
|
2552
3017
|
var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
|
2553
3018
|
|
2554
|
-
return
|
3019
|
+
return runtime_1.wrap(function _callee10$(_context10) {
|
2555
3020
|
while (1) {
|
2556
3021
|
switch (_context10.prev = _context10.next) {
|
2557
3022
|
case 0:
|
@@ -2631,7 +3096,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2631
3096
|
}, _callee10, this);
|
2632
3097
|
}));
|
2633
3098
|
|
2634
|
-
function vaultIndexAdd(
|
3099
|
+
function vaultIndexAdd(_x20, _x21) {
|
2635
3100
|
return _vaultIndexAdd.apply(this, arguments);
|
2636
3101
|
}
|
2637
3102
|
|
@@ -2649,9 +3114,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2649
3114
|
_proto.grantLockbox =
|
2650
3115
|
/*#__PURE__*/
|
2651
3116
|
function () {
|
2652
|
-
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3117
|
+
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
|
2653
3118
|
var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
|
2654
|
-
return
|
3119
|
+
return runtime_1.wrap(function _callee11$(_context11) {
|
2655
3120
|
while (1) {
|
2656
3121
|
switch (_context11.prev = _context11.next) {
|
2657
3122
|
case 0:
|
@@ -2690,7 +3155,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2690
3155
|
}, _callee11, this);
|
2691
3156
|
}));
|
2692
3157
|
|
2693
|
-
function grantLockbox(
|
3158
|
+
function grantLockbox(_x22, _x23, _x24) {
|
2694
3159
|
return _grantLockbox.apply(this, arguments);
|
2695
3160
|
}
|
2696
3161
|
|
@@ -2711,9 +3176,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2711
3176
|
_proto.createMessageData =
|
2712
3177
|
/*#__PURE__*/
|
2713
3178
|
function () {
|
2714
|
-
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3179
|
+
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
2715
3180
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
2716
|
-
return
|
3181
|
+
return runtime_1.wrap(function _callee12$(_context12) {
|
2717
3182
|
while (1) {
|
2718
3183
|
switch (_context12.prev = _context12.next) {
|
2719
3184
|
case 0:
|
@@ -2762,7 +3227,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2762
3227
|
}, _callee12, this);
|
2763
3228
|
}));
|
2764
3229
|
|
2765
|
-
function createMessageData(
|
3230
|
+
function createMessageData(_x25, _x26, _x27, _x28, _x29) {
|
2766
3231
|
return _createMessageData.apply(this, arguments);
|
2767
3232
|
}
|
2768
3233
|
|
@@ -2783,9 +3248,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2783
3248
|
_proto.createMessageAttachmentData =
|
2784
3249
|
/*#__PURE__*/
|
2785
3250
|
function () {
|
2786
|
-
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3251
|
+
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
2787
3252
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
2788
|
-
return
|
3253
|
+
return runtime_1.wrap(function _callee13$(_context13) {
|
2789
3254
|
while (1) {
|
2790
3255
|
switch (_context13.prev = _context13.next) {
|
2791
3256
|
case 0:
|
@@ -2848,7 +3313,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2848
3313
|
}, _callee13, this);
|
2849
3314
|
}));
|
2850
3315
|
|
2851
|
-
function createMessageAttachmentData(
|
3316
|
+
function createMessageAttachmentData(_x30, _x31, _x32, _x33, _x34) {
|
2852
3317
|
return _createMessageAttachmentData.apply(this, arguments);
|
2853
3318
|
}
|
2854
3319
|
|
@@ -2870,8 +3335,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2870
3335
|
_proto.createConsultationAttachmentData =
|
2871
3336
|
/*#__PURE__*/
|
2872
3337
|
function () {
|
2873
|
-
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2874
|
-
return
|
3338
|
+
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
|
3339
|
+
return runtime_1.wrap(function _callee14$(_context14) {
|
2875
3340
|
while (1) {
|
2876
3341
|
switch (_context14.prev = _context14.next) {
|
2877
3342
|
case 0:
|
@@ -2920,7 +3385,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2920
3385
|
}, _callee14, this);
|
2921
3386
|
}));
|
2922
3387
|
|
2923
|
-
function createConsultationAttachmentData(
|
3388
|
+
function createConsultationAttachmentData(_x35, _x36, _x37, _x38, _x39, _x40) {
|
2924
3389
|
return _createConsultationAttachmentData.apply(this, arguments);
|
2925
3390
|
}
|
2926
3391
|
|
@@ -2942,9 +3407,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2942
3407
|
_proto.createJsonData =
|
2943
3408
|
/*#__PURE__*/
|
2944
3409
|
function () {
|
2945
|
-
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3410
|
+
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
2946
3411
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
2947
|
-
return
|
3412
|
+
return runtime_1.wrap(function _callee15$(_context15) {
|
2948
3413
|
while (1) {
|
2949
3414
|
switch (_context15.prev = _context15.next) {
|
2950
3415
|
case 0:
|
@@ -2978,7 +3443,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2978
3443
|
}, _callee15, this);
|
2979
3444
|
}));
|
2980
3445
|
|
2981
|
-
function createJsonData(
|
3446
|
+
function createJsonData(_x41, _x42, _x43, _x44, _x45, _x46) {
|
2982
3447
|
return _createJsonData.apply(this, arguments);
|
2983
3448
|
}
|
2984
3449
|
|
@@ -2998,9 +3463,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2998
3463
|
_proto.getOrInsertJsonData =
|
2999
3464
|
/*#__PURE__*/
|
3000
3465
|
function () {
|
3001
|
-
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3466
|
+
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
|
3002
3467
|
var manifest;
|
3003
|
-
return
|
3468
|
+
return runtime_1.wrap(function _callee16$(_context16) {
|
3004
3469
|
while (1) {
|
3005
3470
|
switch (_context16.prev = _context16.next) {
|
3006
3471
|
case 0:
|
@@ -3041,7 +3506,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3041
3506
|
}, _callee16, this);
|
3042
3507
|
}));
|
3043
3508
|
|
3044
|
-
function getOrInsertJsonData(
|
3509
|
+
function getOrInsertJsonData(_x47, _x48, _x49, _x50, _x51) {
|
3045
3510
|
return _getOrInsertJsonData.apply(this, arguments);
|
3046
3511
|
}
|
3047
3512
|
|
@@ -3063,9 +3528,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3063
3528
|
_proto.createBytesData =
|
3064
3529
|
/*#__PURE__*/
|
3065
3530
|
function () {
|
3066
|
-
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3531
|
+
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3067
3532
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3068
|
-
return
|
3533
|
+
return runtime_1.wrap(function _callee17$(_context17) {
|
3069
3534
|
while (1) {
|
3070
3535
|
switch (_context17.prev = _context17.next) {
|
3071
3536
|
case 0:
|
@@ -3099,7 +3564,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3099
3564
|
}, _callee17, this);
|
3100
3565
|
}));
|
3101
3566
|
|
3102
|
-
function createBytesData(
|
3567
|
+
function createBytesData(_x52, _x53, _x54, _x55, _x56, _x57) {
|
3103
3568
|
return _createBytesData.apply(this, arguments);
|
3104
3569
|
}
|
3105
3570
|
|
@@ -3121,10 +3586,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3121
3586
|
_proto.getJsonData =
|
3122
3587
|
/*#__PURE__*/
|
3123
3588
|
function () {
|
3124
|
-
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3589
|
+
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee18(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3125
3590
|
var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
|
3126
3591
|
|
3127
|
-
return
|
3592
|
+
return runtime_1.wrap(function _callee18$(_context18) {
|
3128
3593
|
while (1) {
|
3129
3594
|
switch (_context18.prev = _context18.next) {
|
3130
3595
|
case 0:
|
@@ -3153,7 +3618,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3153
3618
|
}, _callee18, this);
|
3154
3619
|
}));
|
3155
3620
|
|
3156
|
-
function getJsonData(
|
3621
|
+
function getJsonData(_x58, _x59, _x60) {
|
3157
3622
|
return _getJsonData.apply(this, arguments);
|
3158
3623
|
}
|
3159
3624
|
|
@@ -3171,10 +3636,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3171
3636
|
_proto.getBytesData =
|
3172
3637
|
/*#__PURE__*/
|
3173
3638
|
function () {
|
3174
|
-
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3639
|
+
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee19(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3175
3640
|
var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
|
3176
3641
|
|
3177
|
-
return
|
3642
|
+
return runtime_1.wrap(function _callee19$(_context19) {
|
3178
3643
|
while (1) {
|
3179
3644
|
switch (_context19.prev = _context19.next) {
|
3180
3645
|
case 0:
|
@@ -3203,7 +3668,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3203
3668
|
}, _callee19, this);
|
3204
3669
|
}));
|
3205
3670
|
|
3206
|
-
function getBytesData(
|
3671
|
+
function getBytesData(_x61, _x62, _x63) {
|
3207
3672
|
return _getBytesData.apply(this, arguments);
|
3208
3673
|
}
|
3209
3674
|
|
@@ -3224,9 +3689,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3224
3689
|
_proto.getGrants =
|
3225
3690
|
/*#__PURE__*/
|
3226
3691
|
function () {
|
3227
|
-
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3692
|
+
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee20(filter) {
|
3228
3693
|
var filterString, currentAccountRole, encryptedGrants, decryptedGrants, grantsByConsultLockbox, decryptedConsults;
|
3229
|
-
return
|
3694
|
+
return runtime_1.wrap(function _callee20$(_context20) {
|
3230
3695
|
while (1) {
|
3231
3696
|
switch (_context20.prev = _context20.next) {
|
3232
3697
|
case 0:
|
@@ -3341,7 +3806,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3341
3806
|
}, _callee20, this);
|
3342
3807
|
}));
|
3343
3808
|
|
3344
|
-
function getGrants(
|
3809
|
+
function getGrants(_x64) {
|
3345
3810
|
return _getGrants.apply(this, arguments);
|
3346
3811
|
}
|
3347
3812
|
|
@@ -3357,8 +3822,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3357
3822
|
_proto.getAccountRole =
|
3358
3823
|
/*#__PURE__*/
|
3359
3824
|
function () {
|
3360
|
-
var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3361
|
-
return
|
3825
|
+
var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee21() {
|
3826
|
+
return runtime_1.wrap(function _callee21$(_context21) {
|
3362
3827
|
while (1) {
|
3363
3828
|
switch (_context21.prev = _context21.next) {
|
3364
3829
|
case 0:
|
@@ -3394,9 +3859,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3394
3859
|
_proto.getCachedSecretCryptor =
|
3395
3860
|
/*#__PURE__*/
|
3396
3861
|
function () {
|
3397
|
-
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3862
|
+
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee22(lockboxUuid, lockboxOwnerUuid) {
|
3398
3863
|
var index, encryptedSecret, secret, cryptor;
|
3399
|
-
return
|
3864
|
+
return runtime_1.wrap(function _callee22$(_context22) {
|
3400
3865
|
while (1) {
|
3401
3866
|
switch (_context22.prev = _context22.next) {
|
3402
3867
|
case 0:
|
@@ -3441,7 +3906,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3441
3906
|
}, _callee22, this);
|
3442
3907
|
}));
|
3443
3908
|
|
3444
|
-
function getCachedSecretCryptor(
|
3909
|
+
function getCachedSecretCryptor(_x65, _x66) {
|
3445
3910
|
return _getCachedSecretCryptor.apply(this, arguments);
|
3446
3911
|
}
|
3447
3912
|
|
@@ -3461,8 +3926,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3461
3926
|
_proto.getPersonalInformationsFromConsultId =
|
3462
3927
|
/*#__PURE__*/
|
3463
3928
|
function () {
|
3464
|
-
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3465
|
-
return
|
3929
|
+
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee23(consultationId, category, forceRefresh) {
|
3930
|
+
return runtime_1.wrap(function _callee23$(_context23) {
|
3466
3931
|
while (1) {
|
3467
3932
|
switch (_context23.prev = _context23.next) {
|
3468
3933
|
case 0:
|
@@ -3480,7 +3945,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3480
3945
|
}, _callee23, this);
|
3481
3946
|
}));
|
3482
3947
|
|
3483
|
-
function getPersonalInformationsFromConsultId(
|
3948
|
+
function getPersonalInformationsFromConsultId(_x67, _x68, _x69) {
|
3484
3949
|
return _getPersonalInformationsFromConsultId.apply(this, arguments);
|
3485
3950
|
}
|
3486
3951
|
|
@@ -3499,8 +3964,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3499
3964
|
_proto.getMedicalDataFromConsultId =
|
3500
3965
|
/*#__PURE__*/
|
3501
3966
|
function () {
|
3502
|
-
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3503
|
-
return
|
3967
|
+
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee24(consultationId, forceRefresh) {
|
3968
|
+
return runtime_1.wrap(function _callee24$(_context24) {
|
3504
3969
|
while (1) {
|
3505
3970
|
switch (_context24.prev = _context24.next) {
|
3506
3971
|
case 0:
|
@@ -3518,7 +3983,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3518
3983
|
}, _callee24, this);
|
3519
3984
|
}));
|
3520
3985
|
|
3521
|
-
function getMedicalDataFromConsultId(
|
3986
|
+
function getMedicalDataFromConsultId(_x70, _x71) {
|
3522
3987
|
return _getMedicalDataFromConsultId.apply(this, arguments);
|
3523
3988
|
}
|
3524
3989
|
|
@@ -3526,12 +3991,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
3526
3991
|
}();
|
3527
3992
|
|
3528
3993
|
_proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
|
3529
|
-
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3994
|
+
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee26(consultationId, category, forceRefresh) {
|
3530
3995
|
var _this2 = this;
|
3531
3996
|
|
3532
3997
|
var grants, workflowData, _loop, _iterator, _step;
|
3533
3998
|
|
3534
|
-
return
|
3999
|
+
return runtime_1.wrap(function _callee26$(_context27) {
|
3535
4000
|
while (1) {
|
3536
4001
|
switch (_context27.prev = _context27.next) {
|
3537
4002
|
case 0:
|
@@ -3547,9 +4012,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3547
4012
|
case 3:
|
3548
4013
|
grants = _context27.sent;
|
3549
4014
|
workflowData = [];
|
3550
|
-
_loop = /*#__PURE__*/
|
4015
|
+
_loop = /*#__PURE__*/runtime_1.mark(function _loop() {
|
3551
4016
|
var grant, manifest, data;
|
3552
|
-
return
|
4017
|
+
return runtime_1.wrap(function _loop$(_context26) {
|
3553
4018
|
while (1) {
|
3554
4019
|
switch (_context26.prev = _context26.next) {
|
3555
4020
|
case 0:
|
@@ -3583,8 +4048,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3583
4048
|
case 8:
|
3584
4049
|
_context26.next = 10;
|
3585
4050
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
3586
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
3587
|
-
return
|
4051
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee25(entry) {
|
4052
|
+
return runtime_1.wrap(function _callee25$(_context25) {
|
3588
4053
|
while (1) {
|
3589
4054
|
switch (_context25.prev = _context25.next) {
|
3590
4055
|
case 0:
|
@@ -3611,7 +4076,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3611
4076
|
}, _callee25);
|
3612
4077
|
}));
|
3613
4078
|
|
3614
|
-
return function (
|
4079
|
+
return function (_x75) {
|
3615
4080
|
return _ref3.apply(this, arguments);
|
3616
4081
|
};
|
3617
4082
|
}()));
|
@@ -3652,7 +4117,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3652
4117
|
}, _callee26, this);
|
3653
4118
|
}));
|
3654
4119
|
|
3655
|
-
function getMetaCategoryFromConsultId(
|
4120
|
+
function getMetaCategoryFromConsultId(_x72, _x73, _x74) {
|
3656
4121
|
return _getMetaCategoryFromConsultId.apply(this, arguments);
|
3657
4122
|
}
|
3658
4123
|
|
@@ -3668,9 +4133,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3668
4133
|
_proto.getPersonalInformations =
|
3669
4134
|
/*#__PURE__*/
|
3670
4135
|
function () {
|
3671
|
-
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4136
|
+
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee27(userId) {
|
3672
4137
|
var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
3673
|
-
return
|
4138
|
+
return runtime_1.wrap(function _callee27$(_context28) {
|
3674
4139
|
while (1) {
|
3675
4140
|
switch (_context28.prev = _context28.next) {
|
3676
4141
|
case 0:
|
@@ -3739,7 +4204,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3739
4204
|
}, _callee27, this);
|
3740
4205
|
}));
|
3741
4206
|
|
3742
|
-
function getPersonalInformations(
|
4207
|
+
function getPersonalInformations(_x76) {
|
3743
4208
|
return _getPersonalInformations.apply(this, arguments);
|
3744
4209
|
}
|
3745
4210
|
|
@@ -3756,9 +4221,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3756
4221
|
_proto.getGrantFromConsultId =
|
3757
4222
|
/*#__PURE__*/
|
3758
4223
|
function () {
|
3759
|
-
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4224
|
+
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee28(consultationId) {
|
3760
4225
|
var grants;
|
3761
|
-
return
|
4226
|
+
return runtime_1.wrap(function _callee28$(_context29) {
|
3762
4227
|
while (1) {
|
3763
4228
|
switch (_context29.prev = _context29.next) {
|
3764
4229
|
case 0:
|
@@ -3788,7 +4253,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3788
4253
|
}, _callee28, this);
|
3789
4254
|
}));
|
3790
4255
|
|
3791
|
-
function getGrantFromConsultId(
|
4256
|
+
function getGrantFromConsultId(_x77) {
|
3792
4257
|
return _getGrantFromConsultId.apply(this, arguments);
|
3793
4258
|
}
|
3794
4259
|
|
@@ -3804,9 +4269,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3804
4269
|
_proto.getIdentityFromConsultId =
|
3805
4270
|
/*#__PURE__*/
|
3806
4271
|
function () {
|
3807
|
-
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4272
|
+
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee29(consultationId) {
|
3808
4273
|
var grant;
|
3809
|
-
return
|
4274
|
+
return runtime_1.wrap(function _callee29$(_context30) {
|
3810
4275
|
while (1) {
|
3811
4276
|
switch (_context30.prev = _context30.next) {
|
3812
4277
|
case 0:
|
@@ -3838,7 +4303,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3838
4303
|
}, _callee29, this);
|
3839
4304
|
}));
|
3840
4305
|
|
3841
|
-
function getIdentityFromConsultId(
|
4306
|
+
function getIdentityFromConsultId(_x78) {
|
3842
4307
|
return _getIdentityFromConsultId.apply(this, arguments);
|
3843
4308
|
}
|
3844
4309
|
|
@@ -3859,11 +4324,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
3859
4324
|
_proto.getLockboxManifest =
|
3860
4325
|
/*#__PURE__*/
|
3861
4326
|
function () {
|
3862
|
-
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4327
|
+
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee31(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
|
3863
4328
|
var _this3 = this;
|
3864
4329
|
|
3865
4330
|
var manifestKey;
|
3866
|
-
return
|
4331
|
+
return runtime_1.wrap(function _callee31$(_context32) {
|
3867
4332
|
while (1) {
|
3868
4333
|
switch (_context32.prev = _context32.next) {
|
3869
4334
|
case 0:
|
@@ -3888,9 +4353,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3888
4353
|
case 4:
|
3889
4354
|
return _context32.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
|
3890
4355
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
3891
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
4356
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee30(entry) {
|
3892
4357
|
var privateMeta;
|
3893
|
-
return
|
4358
|
+
return runtime_1.wrap(function _callee30$(_context31) {
|
3894
4359
|
while (1) {
|
3895
4360
|
switch (_context31.prev = _context31.next) {
|
3896
4361
|
case 0:
|
@@ -3917,7 +4382,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3917
4382
|
}, _callee30);
|
3918
4383
|
}));
|
3919
4384
|
|
3920
|
-
return function (
|
4385
|
+
return function (_x84) {
|
3921
4386
|
return _ref4.apply(this, arguments);
|
3922
4387
|
};
|
3923
4388
|
}())).then(function (manifest) {
|
@@ -3933,7 +4398,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3933
4398
|
}, _callee31, this);
|
3934
4399
|
}));
|
3935
4400
|
|
3936
|
-
function getLockboxManifest(
|
4401
|
+
function getLockboxManifest(_x79, _x80, _x81, _x82, _x83) {
|
3937
4402
|
return _getLockboxManifest.apply(this, arguments);
|
3938
4403
|
}
|
3939
4404
|
|
@@ -3951,11 +4416,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
3951
4416
|
_proto.createPersonalInformations =
|
3952
4417
|
/*#__PURE__*/
|
3953
4418
|
function () {
|
3954
|
-
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4419
|
+
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee32(identity, data, dataUuid) {
|
3955
4420
|
var _yield$this$getGrants;
|
3956
4421
|
|
3957
4422
|
var lockboxUuid;
|
3958
|
-
return
|
4423
|
+
return runtime_1.wrap(function _callee32$(_context33) {
|
3959
4424
|
while (1) {
|
3960
4425
|
switch (_context33.prev = _context33.next) {
|
3961
4426
|
case 0:
|
@@ -4003,7 +4468,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4003
4468
|
}, _callee32, this);
|
4004
4469
|
}));
|
4005
4470
|
|
4006
|
-
function createPersonalInformations(
|
4471
|
+
function createPersonalInformations(_x85, _x86, _x87) {
|
4007
4472
|
return _createPersonalInformations.apply(this, arguments);
|
4008
4473
|
}
|
4009
4474
|
|
@@ -4021,11 +4486,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4021
4486
|
_proto.createUserPreference =
|
4022
4487
|
/*#__PURE__*/
|
4023
4488
|
function () {
|
4024
|
-
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4489
|
+
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee33(identity, preference, dataUuid) {
|
4025
4490
|
var _yield$this$getGrants2;
|
4026
4491
|
|
4027
4492
|
var lockboxUuid;
|
4028
|
-
return
|
4493
|
+
return runtime_1.wrap(function _callee33$(_context34) {
|
4029
4494
|
while (1) {
|
4030
4495
|
switch (_context34.prev = _context34.next) {
|
4031
4496
|
case 0:
|
@@ -4073,7 +4538,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4073
4538
|
}, _callee33, this);
|
4074
4539
|
}));
|
4075
4540
|
|
4076
|
-
function createUserPreference(
|
4541
|
+
function createUserPreference(_x88, _x89, _x90) {
|
4077
4542
|
return _createUserPreference.apply(this, arguments);
|
4078
4543
|
}
|
4079
4544
|
|
@@ -4089,9 +4554,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4089
4554
|
_proto.getDataFromGrant =
|
4090
4555
|
/*#__PURE__*/
|
4091
4556
|
function () {
|
4092
|
-
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4557
|
+
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee34(grant, filter) {
|
4093
4558
|
var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4094
|
-
return
|
4559
|
+
return runtime_1.wrap(function _callee34$(_context35) {
|
4095
4560
|
while (1) {
|
4096
4561
|
switch (_context35.prev = _context35.next) {
|
4097
4562
|
case 0:
|
@@ -4141,7 +4606,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4141
4606
|
}, _callee34, this);
|
4142
4607
|
}));
|
4143
4608
|
|
4144
|
-
function getDataFromGrant(
|
4609
|
+
function getDataFromGrant(_x91, _x92) {
|
4145
4610
|
return _getDataFromGrant.apply(this, arguments);
|
4146
4611
|
}
|
4147
4612
|
|
@@ -4157,9 +4622,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4157
4622
|
_proto.getUserPreferenceFromConsultId =
|
4158
4623
|
/*#__PURE__*/
|
4159
4624
|
function () {
|
4160
|
-
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4625
|
+
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee35(consultationId) {
|
4161
4626
|
var grant;
|
4162
|
-
return
|
4627
|
+
return runtime_1.wrap(function _callee35$(_context36) {
|
4163
4628
|
while (1) {
|
4164
4629
|
switch (_context36.prev = _context36.next) {
|
4165
4630
|
case 0:
|
@@ -4190,7 +4655,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4190
4655
|
}, _callee35, this);
|
4191
4656
|
}));
|
4192
4657
|
|
4193
|
-
function getUserPreferenceFromConsultId(
|
4658
|
+
function getUserPreferenceFromConsultId(_x93) {
|
4194
4659
|
return _getUserPreferenceFromConsultId.apply(this, arguments);
|
4195
4660
|
}
|
4196
4661
|
|
@@ -4206,9 +4671,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4206
4671
|
_proto.getUserPreference =
|
4207
4672
|
/*#__PURE__*/
|
4208
4673
|
function () {
|
4209
|
-
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4674
|
+
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee36(identity) {
|
4210
4675
|
var grant;
|
4211
|
-
return
|
4676
|
+
return runtime_1.wrap(function _callee36$(_context37) {
|
4212
4677
|
while (1) {
|
4213
4678
|
switch (_context37.prev = _context37.next) {
|
4214
4679
|
case 0:
|
@@ -4241,7 +4706,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4241
4706
|
}, _callee36, this);
|
4242
4707
|
}));
|
4243
4708
|
|
4244
|
-
function getUserPreference(
|
4709
|
+
function getUserPreference(_x94) {
|
4245
4710
|
return _getUserPreference.apply(this, arguments);
|
4246
4711
|
}
|
4247
4712
|
|
@@ -4257,9 +4722,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4257
4722
|
_proto.getRecoveryDataFromConsultId =
|
4258
4723
|
/*#__PURE__*/
|
4259
4724
|
function () {
|
4260
|
-
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4725
|
+
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee37(consultationId) {
|
4261
4726
|
var grant;
|
4262
|
-
return
|
4727
|
+
return runtime_1.wrap(function _callee37$(_context38) {
|
4263
4728
|
while (1) {
|
4264
4729
|
switch (_context38.prev = _context38.next) {
|
4265
4730
|
case 0:
|
@@ -4290,7 +4755,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4290
4755
|
}, _callee37, this);
|
4291
4756
|
}));
|
4292
4757
|
|
4293
|
-
function getRecoveryDataFromConsultId(
|
4758
|
+
function getRecoveryDataFromConsultId(_x95) {
|
4294
4759
|
return _getRecoveryDataFromConsultId.apply(this, arguments);
|
4295
4760
|
}
|
4296
4761
|
|
@@ -4306,9 +4771,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4306
4771
|
_proto.getRecoveryData =
|
4307
4772
|
/*#__PURE__*/
|
4308
4773
|
function () {
|
4309
|
-
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4774
|
+
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee38(identity) {
|
4310
4775
|
var grant;
|
4311
|
-
return
|
4776
|
+
return runtime_1.wrap(function _callee38$(_context39) {
|
4312
4777
|
while (1) {
|
4313
4778
|
switch (_context39.prev = _context39.next) {
|
4314
4779
|
case 0:
|
@@ -4341,7 +4806,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4341
4806
|
}, _callee38, this);
|
4342
4807
|
}));
|
4343
4808
|
|
4344
|
-
function getRecoveryData(
|
4809
|
+
function getRecoveryData(_x96) {
|
4345
4810
|
return _getRecoveryData.apply(this, arguments);
|
4346
4811
|
}
|
4347
4812
|
|
@@ -4362,10 +4827,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4362
4827
|
_proto.getAssignedConsultations =
|
4363
4828
|
/*#__PURE__*/
|
4364
4829
|
function () {
|
4365
|
-
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4830
|
+
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee40(practiceUuid) {
|
4366
4831
|
var _this4 = this;
|
4367
4832
|
|
4368
|
-
return
|
4833
|
+
return runtime_1.wrap(function _callee40$(_context41) {
|
4369
4834
|
while (1) {
|
4370
4835
|
switch (_context41.prev = _context41.next) {
|
4371
4836
|
case 0:
|
@@ -4380,8 +4845,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4380
4845
|
documentType: DocumentType.PopulatedWorkflowData
|
4381
4846
|
}, true, undefined).then(function (manifest) {
|
4382
4847
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4383
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
4384
|
-
return
|
4848
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee39(entry) {
|
4849
|
+
return runtime_1.wrap(function _callee39$(_context40) {
|
4385
4850
|
while (1) {
|
4386
4851
|
switch (_context40.prev = _context40.next) {
|
4387
4852
|
case 0:
|
@@ -4399,7 +4864,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4399
4864
|
}, _callee39);
|
4400
4865
|
}));
|
4401
4866
|
|
4402
|
-
return function (
|
4867
|
+
return function (_x98) {
|
4403
4868
|
return _ref5.apply(this, arguments);
|
4404
4869
|
};
|
4405
4870
|
}())).then(function (promise) {
|
@@ -4419,7 +4884,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4419
4884
|
}, _callee40, this);
|
4420
4885
|
}));
|
4421
4886
|
|
4422
|
-
function getAssignedConsultations(
|
4887
|
+
function getAssignedConsultations(_x97) {
|
4423
4888
|
return _getAssignedConsultations.apply(this, arguments);
|
4424
4889
|
}
|
4425
4890
|
|
@@ -4435,11 +4900,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4435
4900
|
_proto.getPastConsultationsFromConsultId =
|
4436
4901
|
/*#__PURE__*/
|
4437
4902
|
function () {
|
4438
|
-
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4903
|
+
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee42(consultationId, practiceUuid) {
|
4439
4904
|
var _this5 = this;
|
4440
4905
|
|
4441
4906
|
var grant, consultationsInLockbox;
|
4442
|
-
return
|
4907
|
+
return runtime_1.wrap(function _callee42$(_context43) {
|
4443
4908
|
while (1) {
|
4444
4909
|
switch (_context43.prev = _context43.next) {
|
4445
4910
|
case 0:
|
@@ -4478,8 +4943,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4478
4943
|
case 10:
|
4479
4944
|
_context43.next = 12;
|
4480
4945
|
return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
|
4481
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
4482
|
-
return
|
4946
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee41(consultId) {
|
4947
|
+
return runtime_1.wrap(function _callee41$(_context42) {
|
4483
4948
|
while (1) {
|
4484
4949
|
switch (_context42.prev = _context42.next) {
|
4485
4950
|
case 0:
|
@@ -4497,7 +4962,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4497
4962
|
}, _callee41);
|
4498
4963
|
}));
|
4499
4964
|
|
4500
|
-
return function (
|
4965
|
+
return function (_x101) {
|
4501
4966
|
return _ref6.apply(this, arguments);
|
4502
4967
|
};
|
4503
4968
|
}()));
|
@@ -4513,7 +4978,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4513
4978
|
}, _callee42, this);
|
4514
4979
|
}));
|
4515
4980
|
|
4516
|
-
function getPastConsultationsFromConsultId(
|
4981
|
+
function getPastConsultationsFromConsultId(_x99, _x100) {
|
4517
4982
|
return _getPastConsultationsFromConsultId.apply(this, arguments);
|
4518
4983
|
}
|
4519
4984
|
|
@@ -4530,10 +4995,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4530
4995
|
_proto.getPatientConsultationData =
|
4531
4996
|
/*#__PURE__*/
|
4532
4997
|
function () {
|
4533
|
-
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4998
|
+
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee43(consultationId, forceRefresh) {
|
4534
4999
|
var _this6 = this;
|
4535
5000
|
|
4536
|
-
return
|
5001
|
+
return runtime_1.wrap(function _callee43$(_context44) {
|
4537
5002
|
while (1) {
|
4538
5003
|
switch (_context44.prev = _context44.next) {
|
4539
5004
|
case 0:
|
@@ -4571,7 +5036,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4571
5036
|
}, _callee43, this);
|
4572
5037
|
}));
|
4573
5038
|
|
4574
|
-
function getPatientConsultationData(
|
5039
|
+
function getPatientConsultationData(_x102, _x103) {
|
4575
5040
|
return _getPatientConsultationData.apply(this, arguments);
|
4576
5041
|
}
|
4577
5042
|
|
@@ -4587,8 +5052,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4587
5052
|
_proto.getPatientPrescriptionsList =
|
4588
5053
|
/*#__PURE__*/
|
4589
5054
|
function () {
|
4590
|
-
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4591
|
-
return
|
5055
|
+
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee44(consultationId) {
|
5056
|
+
return runtime_1.wrap(function _callee44$(_context45) {
|
4592
5057
|
while (1) {
|
4593
5058
|
switch (_context45.prev = _context45.next) {
|
4594
5059
|
case 0:
|
@@ -4605,7 +5070,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4605
5070
|
}, _callee44, this);
|
4606
5071
|
}));
|
4607
5072
|
|
4608
|
-
function getPatientPrescriptionsList(
|
5073
|
+
function getPatientPrescriptionsList(_x104) {
|
4609
5074
|
return _getPatientPrescriptionsList.apply(this, arguments);
|
4610
5075
|
}
|
4611
5076
|
|
@@ -4621,8 +5086,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4621
5086
|
_proto.getPatientResultsList =
|
4622
5087
|
/*#__PURE__*/
|
4623
5088
|
function () {
|
4624
|
-
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4625
|
-
return
|
5089
|
+
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee45(consultationId) {
|
5090
|
+
return runtime_1.wrap(function _callee45$(_context46) {
|
4626
5091
|
while (1) {
|
4627
5092
|
switch (_context46.prev = _context46.next) {
|
4628
5093
|
case 0:
|
@@ -4639,7 +5104,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4639
5104
|
}, _callee45, this);
|
4640
5105
|
}));
|
4641
5106
|
|
4642
|
-
function getPatientResultsList(
|
5107
|
+
function getPatientResultsList(_x105) {
|
4643
5108
|
return _getPatientResultsList.apply(this, arguments);
|
4644
5109
|
}
|
4645
5110
|
|
@@ -4655,8 +5120,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4655
5120
|
_proto.getPatientTreatmentPlans =
|
4656
5121
|
/*#__PURE__*/
|
4657
5122
|
function () {
|
4658
|
-
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4659
|
-
return
|
5123
|
+
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee46(consultationId) {
|
5124
|
+
return runtime_1.wrap(function _callee46$(_context47) {
|
4660
5125
|
while (1) {
|
4661
5126
|
switch (_context47.prev = _context47.next) {
|
4662
5127
|
case 0:
|
@@ -4673,7 +5138,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4673
5138
|
}, _callee46, this);
|
4674
5139
|
}));
|
4675
5140
|
|
4676
|
-
function getPatientTreatmentPlans(
|
5141
|
+
function getPatientTreatmentPlans(_x106) {
|
4677
5142
|
return _getPatientTreatmentPlans.apply(this, arguments);
|
4678
5143
|
}
|
4679
5144
|
|
@@ -4690,8 +5155,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4690
5155
|
_proto.getPatientTreatmentPlanByUuid =
|
4691
5156
|
/*#__PURE__*/
|
4692
5157
|
function () {
|
4693
|
-
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4694
|
-
return
|
5158
|
+
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee47(consultationId, treatmentPlanId) {
|
5159
|
+
return runtime_1.wrap(function _callee47$(_context48) {
|
4695
5160
|
while (1) {
|
4696
5161
|
switch (_context48.prev = _context48.next) {
|
4697
5162
|
case 0:
|
@@ -4709,7 +5174,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4709
5174
|
}, _callee47, this);
|
4710
5175
|
}));
|
4711
5176
|
|
4712
|
-
function getPatientTreatmentPlanByUuid(
|
5177
|
+
function getPatientTreatmentPlanByUuid(_x107, _x108) {
|
4713
5178
|
return _getPatientTreatmentPlanByUuid.apply(this, arguments);
|
4714
5179
|
}
|
4715
5180
|
|
@@ -4729,10 +5194,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4729
5194
|
_proto.getPatientDocumentsList =
|
4730
5195
|
/*#__PURE__*/
|
4731
5196
|
function () {
|
4732
|
-
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5197
|
+
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee49(filters, expandPrivateMetadata, consultationId) {
|
4733
5198
|
var _this7 = this;
|
4734
5199
|
|
4735
|
-
return
|
5200
|
+
return runtime_1.wrap(function _callee49$(_context50) {
|
4736
5201
|
while (1) {
|
4737
5202
|
switch (_context50.prev = _context50.next) {
|
4738
5203
|
case 0:
|
@@ -4748,8 +5213,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4748
5213
|
consultationId: consultationId
|
4749
5214
|
}), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
|
4750
5215
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4751
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
4752
|
-
return
|
5216
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee48(entry) {
|
5217
|
+
return runtime_1.wrap(function _callee48$(_context49) {
|
4753
5218
|
while (1) {
|
4754
5219
|
switch (_context49.prev = _context49.next) {
|
4755
5220
|
case 0:
|
@@ -4766,7 +5231,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4766
5231
|
}, _callee48);
|
4767
5232
|
}));
|
4768
5233
|
|
4769
|
-
return function (
|
5234
|
+
return function (_x112) {
|
4770
5235
|
return _ref7.apply(this, arguments);
|
4771
5236
|
};
|
4772
5237
|
}()));
|
@@ -4784,7 +5249,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4784
5249
|
}, _callee49, this);
|
4785
5250
|
}));
|
4786
5251
|
|
4787
|
-
function getPatientDocumentsList(
|
5252
|
+
function getPatientDocumentsList(_x109, _x110, _x111) {
|
4788
5253
|
return _getPatientDocumentsList.apply(this, arguments);
|
4789
5254
|
}
|
4790
5255
|
|
@@ -4807,9 +5272,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4807
5272
|
_proto.recoverPrivateKeyFromSecurityQuestions =
|
4808
5273
|
/*#__PURE__*/
|
4809
5274
|
function () {
|
4810
|
-
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5275
|
+
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee50(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
4811
5276
|
var shards, answeredShards, privateKey;
|
4812
|
-
return
|
5277
|
+
return runtime_1.wrap(function _callee50$(_context51) {
|
4813
5278
|
while (1) {
|
4814
5279
|
switch (_context51.prev = _context51.next) {
|
4815
5280
|
case 0:
|
@@ -4846,7 +5311,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4846
5311
|
}, _callee50, this);
|
4847
5312
|
}));
|
4848
5313
|
|
4849
|
-
function recoverPrivateKeyFromSecurityQuestions(
|
5314
|
+
function recoverPrivateKeyFromSecurityQuestions(_x113, _x114, _x115, _x116) {
|
4850
5315
|
return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
|
4851
5316
|
}
|
4852
5317
|
|
@@ -4863,9 +5328,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4863
5328
|
_proto.recoverPrivateKeyFromPassword =
|
4864
5329
|
/*#__PURE__*/
|
4865
5330
|
function () {
|
4866
|
-
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5331
|
+
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee51(id, password) {
|
4867
5332
|
var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
|
4868
|
-
return
|
5333
|
+
return runtime_1.wrap(function _callee51$(_context52) {
|
4869
5334
|
while (1) {
|
4870
5335
|
switch (_context52.prev = _context52.next) {
|
4871
5336
|
case 0:
|
@@ -4894,7 +5359,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4894
5359
|
}, _callee51, this);
|
4895
5360
|
}));
|
4896
5361
|
|
4897
|
-
function recoverPrivateKeyFromPassword(
|
5362
|
+
function recoverPrivateKeyFromPassword(_x117, _x118) {
|
4898
5363
|
return _recoverPrivateKeyFromPassword.apply(this, arguments);
|
4899
5364
|
}
|
4900
5365
|
|
@@ -4911,9 +5376,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4911
5376
|
_proto.recoverPrivateKeyFromMasterKey =
|
4912
5377
|
/*#__PURE__*/
|
4913
5378
|
function () {
|
4914
|
-
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5379
|
+
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee52(id, masterKey) {
|
4915
5380
|
var recoveryPayload, symmetricDecryptor, privateKey;
|
4916
|
-
return
|
5381
|
+
return runtime_1.wrap(function _callee52$(_context53) {
|
4917
5382
|
while (1) {
|
4918
5383
|
switch (_context53.prev = _context53.next) {
|
4919
5384
|
case 0:
|
@@ -4934,7 +5399,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4934
5399
|
}, _callee52, this);
|
4935
5400
|
}));
|
4936
5401
|
|
4937
|
-
function recoverPrivateKeyFromMasterKey(
|
5402
|
+
function recoverPrivateKeyFromMasterKey(_x119, _x120) {
|
4938
5403
|
return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
|
4939
5404
|
}
|
4940
5405
|
|
@@ -4953,9 +5418,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4953
5418
|
_proto.updateSecurityQuestions =
|
4954
5419
|
/*#__PURE__*/
|
4955
5420
|
function () {
|
4956
|
-
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5421
|
+
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee53(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
4957
5422
|
var securityQuestionPayload, updateRequest;
|
4958
|
-
return
|
5423
|
+
return runtime_1.wrap(function _callee53$(_context54) {
|
4959
5424
|
while (1) {
|
4960
5425
|
switch (_context54.prev = _context54.next) {
|
4961
5426
|
case 0:
|
@@ -4985,7 +5450,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4985
5450
|
}, _callee53, this);
|
4986
5451
|
}));
|
4987
5452
|
|
4988
|
-
function updateSecurityQuestions(
|
5453
|
+
function updateSecurityQuestions(_x121, _x122, _x123, _x124) {
|
4989
5454
|
return _updateSecurityQuestions.apply(this, arguments);
|
4990
5455
|
}
|
4991
5456
|
|
@@ -5007,9 +5472,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5007
5472
|
_proto.updatePassword =
|
5008
5473
|
/*#__PURE__*/
|
5009
5474
|
function () {
|
5010
|
-
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5475
|
+
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee54(id, newPassword, oldPassword) {
|
5011
5476
|
var symmetricEncryptor, passwordPayload, updateRequest;
|
5012
|
-
return
|
5477
|
+
return runtime_1.wrap(function _callee54$(_context55) {
|
5013
5478
|
while (1) {
|
5014
5479
|
switch (_context55.prev = _context55.next) {
|
5015
5480
|
case 0:
|
@@ -5050,7 +5515,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5050
5515
|
}, _callee54, this);
|
5051
5516
|
}));
|
5052
5517
|
|
5053
|
-
function updatePassword(
|
5518
|
+
function updatePassword(_x125, _x126, _x127) {
|
5054
5519
|
return _updatePassword.apply(this, arguments);
|
5055
5520
|
}
|
5056
5521
|
|
@@ -5069,9 +5534,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5069
5534
|
_proto.updateMasterKey =
|
5070
5535
|
/*#__PURE__*/
|
5071
5536
|
function () {
|
5072
|
-
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5537
|
+
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee55(id, masterKey, lockboxUuid) {
|
5073
5538
|
var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
|
5074
|
-
return
|
5539
|
+
return runtime_1.wrap(function _callee55$(_context56) {
|
5075
5540
|
while (1) {
|
5076
5541
|
switch (_context56.prev = _context56.next) {
|
5077
5542
|
case 0:
|
@@ -5112,7 +5577,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5112
5577
|
}, _callee55, this);
|
5113
5578
|
}));
|
5114
5579
|
|
5115
|
-
function updateMasterKey(
|
5580
|
+
function updateMasterKey(_x128, _x129, _x130) {
|
5116
5581
|
return _updateMasterKey.apply(this, arguments);
|
5117
5582
|
}
|
5118
5583
|
|