oro-sdk 3.5.0 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/client.d.ts +2 -1
- package/dist/helpers/patient-registration.d.ts +2 -1
- package/dist/oro-sdk.cjs.development.js +717 -1126
- 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 +608 -1017
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +38 -35
- package/src/helpers/patient-registration.ts +15 -10
- package/LICENSE +0 -21
package/dist/oro-sdk.esm.js
CHANGED
@@ -5,6 +5,351 @@ import * as oroToolbox from 'oro-toolbox';
|
|
5
5
|
export { oroToolbox as OroToolboxNamespace };
|
6
6
|
import { getMany } from 'idb-keyval';
|
7
7
|
|
8
|
+
function _regeneratorRuntime() {
|
9
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
10
|
+
|
11
|
+
_regeneratorRuntime = function () {
|
12
|
+
return exports;
|
13
|
+
};
|
14
|
+
|
15
|
+
var exports = {},
|
16
|
+
Op = Object.prototype,
|
17
|
+
hasOwn = Op.hasOwnProperty,
|
18
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
19
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
20
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
21
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
22
|
+
|
23
|
+
function define(obj, key, value) {
|
24
|
+
return Object.defineProperty(obj, key, {
|
25
|
+
value: value,
|
26
|
+
enumerable: !0,
|
27
|
+
configurable: !0,
|
28
|
+
writable: !0
|
29
|
+
}), obj[key];
|
30
|
+
}
|
31
|
+
|
32
|
+
try {
|
33
|
+
define({}, "");
|
34
|
+
} catch (err) {
|
35
|
+
define = function (obj, key, value) {
|
36
|
+
return obj[key] = value;
|
37
|
+
};
|
38
|
+
}
|
39
|
+
|
40
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
41
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
42
|
+
generator = Object.create(protoGenerator.prototype),
|
43
|
+
context = new Context(tryLocsList || []);
|
44
|
+
return generator._invoke = function (innerFn, self, context) {
|
45
|
+
var state = "suspendedStart";
|
46
|
+
return function (method, arg) {
|
47
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
48
|
+
|
49
|
+
if ("completed" === state) {
|
50
|
+
if ("throw" === method) throw arg;
|
51
|
+
return doneResult();
|
52
|
+
}
|
53
|
+
|
54
|
+
for (context.method = method, context.arg = arg;;) {
|
55
|
+
var delegate = context.delegate;
|
56
|
+
|
57
|
+
if (delegate) {
|
58
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
59
|
+
|
60
|
+
if (delegateResult) {
|
61
|
+
if (delegateResult === ContinueSentinel) continue;
|
62
|
+
return delegateResult;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
67
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
68
|
+
context.dispatchException(context.arg);
|
69
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
70
|
+
state = "executing";
|
71
|
+
var record = tryCatch(innerFn, self, context);
|
72
|
+
|
73
|
+
if ("normal" === record.type) {
|
74
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
75
|
+
return {
|
76
|
+
value: record.arg,
|
77
|
+
done: context.done
|
78
|
+
};
|
79
|
+
}
|
80
|
+
|
81
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
82
|
+
}
|
83
|
+
};
|
84
|
+
}(innerFn, self, context), generator;
|
85
|
+
}
|
86
|
+
|
87
|
+
function tryCatch(fn, obj, arg) {
|
88
|
+
try {
|
89
|
+
return {
|
90
|
+
type: "normal",
|
91
|
+
arg: fn.call(obj, arg)
|
92
|
+
};
|
93
|
+
} catch (err) {
|
94
|
+
return {
|
95
|
+
type: "throw",
|
96
|
+
arg: err
|
97
|
+
};
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
exports.wrap = wrap;
|
102
|
+
var ContinueSentinel = {};
|
103
|
+
|
104
|
+
function Generator() {}
|
105
|
+
|
106
|
+
function GeneratorFunction() {}
|
107
|
+
|
108
|
+
function GeneratorFunctionPrototype() {}
|
109
|
+
|
110
|
+
var IteratorPrototype = {};
|
111
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
112
|
+
return this;
|
113
|
+
});
|
114
|
+
var getProto = Object.getPrototypeOf,
|
115
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
116
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
117
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
118
|
+
|
119
|
+
function defineIteratorMethods(prototype) {
|
120
|
+
["next", "throw", "return"].forEach(function (method) {
|
121
|
+
define(prototype, method, function (arg) {
|
122
|
+
return this._invoke(method, arg);
|
123
|
+
});
|
124
|
+
});
|
125
|
+
}
|
126
|
+
|
127
|
+
function AsyncIterator(generator, PromiseImpl) {
|
128
|
+
function invoke(method, arg, resolve, reject) {
|
129
|
+
var record = tryCatch(generator[method], generator, arg);
|
130
|
+
|
131
|
+
if ("throw" !== record.type) {
|
132
|
+
var result = record.arg,
|
133
|
+
value = result.value;
|
134
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
135
|
+
invoke("next", value, resolve, reject);
|
136
|
+
}, function (err) {
|
137
|
+
invoke("throw", err, resolve, reject);
|
138
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
139
|
+
result.value = unwrapped, resolve(result);
|
140
|
+
}, function (error) {
|
141
|
+
return invoke("throw", error, resolve, reject);
|
142
|
+
});
|
143
|
+
}
|
144
|
+
|
145
|
+
reject(record.arg);
|
146
|
+
}
|
147
|
+
|
148
|
+
var previousPromise;
|
149
|
+
|
150
|
+
this._invoke = function (method, arg) {
|
151
|
+
function callInvokeWithMethodAndArg() {
|
152
|
+
return new PromiseImpl(function (resolve, reject) {
|
153
|
+
invoke(method, arg, resolve, reject);
|
154
|
+
});
|
155
|
+
}
|
156
|
+
|
157
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
158
|
+
};
|
159
|
+
}
|
160
|
+
|
161
|
+
function maybeInvokeDelegate(delegate, context) {
|
162
|
+
var method = delegate.iterator[context.method];
|
163
|
+
|
164
|
+
if (undefined === method) {
|
165
|
+
if (context.delegate = null, "throw" === context.method) {
|
166
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
167
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
168
|
+
}
|
169
|
+
|
170
|
+
return ContinueSentinel;
|
171
|
+
}
|
172
|
+
|
173
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
174
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
175
|
+
var info = record.arg;
|
176
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
177
|
+
}
|
178
|
+
|
179
|
+
function pushTryEntry(locs) {
|
180
|
+
var entry = {
|
181
|
+
tryLoc: locs[0]
|
182
|
+
};
|
183
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
184
|
+
}
|
185
|
+
|
186
|
+
function resetTryEntry(entry) {
|
187
|
+
var record = entry.completion || {};
|
188
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
189
|
+
}
|
190
|
+
|
191
|
+
function Context(tryLocsList) {
|
192
|
+
this.tryEntries = [{
|
193
|
+
tryLoc: "root"
|
194
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
195
|
+
}
|
196
|
+
|
197
|
+
function values(iterable) {
|
198
|
+
if (iterable) {
|
199
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
200
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
201
|
+
if ("function" == typeof iterable.next) return iterable;
|
202
|
+
|
203
|
+
if (!isNaN(iterable.length)) {
|
204
|
+
var i = -1,
|
205
|
+
next = function next() {
|
206
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
207
|
+
|
208
|
+
return next.value = undefined, next.done = !0, next;
|
209
|
+
};
|
210
|
+
|
211
|
+
return next.next = next;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
return {
|
216
|
+
next: doneResult
|
217
|
+
};
|
218
|
+
}
|
219
|
+
|
220
|
+
function doneResult() {
|
221
|
+
return {
|
222
|
+
value: undefined,
|
223
|
+
done: !0
|
224
|
+
};
|
225
|
+
}
|
226
|
+
|
227
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
228
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
229
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
230
|
+
}, exports.mark = function (genFun) {
|
231
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
232
|
+
}, exports.awrap = function (arg) {
|
233
|
+
return {
|
234
|
+
__await: arg
|
235
|
+
};
|
236
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
237
|
+
return this;
|
238
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
239
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
240
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
241
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
242
|
+
return result.done ? result.value : iter.next();
|
243
|
+
});
|
244
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
245
|
+
return this;
|
246
|
+
}), define(Gp, "toString", function () {
|
247
|
+
return "[object Generator]";
|
248
|
+
}), exports.keys = function (object) {
|
249
|
+
var keys = [];
|
250
|
+
|
251
|
+
for (var key in object) keys.push(key);
|
252
|
+
|
253
|
+
return keys.reverse(), function next() {
|
254
|
+
for (; keys.length;) {
|
255
|
+
var key = keys.pop();
|
256
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
257
|
+
}
|
258
|
+
|
259
|
+
return next.done = !0, next;
|
260
|
+
};
|
261
|
+
}, exports.values = values, Context.prototype = {
|
262
|
+
constructor: Context,
|
263
|
+
reset: function (skipTempReset) {
|
264
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
265
|
+
},
|
266
|
+
stop: function () {
|
267
|
+
this.done = !0;
|
268
|
+
var rootRecord = this.tryEntries[0].completion;
|
269
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
270
|
+
return this.rval;
|
271
|
+
},
|
272
|
+
dispatchException: function (exception) {
|
273
|
+
if (this.done) throw exception;
|
274
|
+
var context = this;
|
275
|
+
|
276
|
+
function handle(loc, caught) {
|
277
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
278
|
+
}
|
279
|
+
|
280
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
281
|
+
var entry = this.tryEntries[i],
|
282
|
+
record = entry.completion;
|
283
|
+
if ("root" === entry.tryLoc) return handle("end");
|
284
|
+
|
285
|
+
if (entry.tryLoc <= this.prev) {
|
286
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
287
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
288
|
+
|
289
|
+
if (hasCatch && hasFinally) {
|
290
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
291
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
292
|
+
} else if (hasCatch) {
|
293
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
294
|
+
} else {
|
295
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
296
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
297
|
+
}
|
298
|
+
}
|
299
|
+
}
|
300
|
+
},
|
301
|
+
abrupt: function (type, arg) {
|
302
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
303
|
+
var entry = this.tryEntries[i];
|
304
|
+
|
305
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
306
|
+
var finallyEntry = entry;
|
307
|
+
break;
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
311
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
312
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
313
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
314
|
+
},
|
315
|
+
complete: function (record, afterLoc) {
|
316
|
+
if ("throw" === record.type) throw record.arg;
|
317
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
318
|
+
},
|
319
|
+
finish: function (finallyLoc) {
|
320
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
321
|
+
var entry = this.tryEntries[i];
|
322
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
323
|
+
}
|
324
|
+
},
|
325
|
+
catch: function (tryLoc) {
|
326
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
327
|
+
var entry = this.tryEntries[i];
|
328
|
+
|
329
|
+
if (entry.tryLoc === tryLoc) {
|
330
|
+
var record = entry.completion;
|
331
|
+
|
332
|
+
if ("throw" === record.type) {
|
333
|
+
var thrown = record.arg;
|
334
|
+
resetTryEntry(entry);
|
335
|
+
}
|
336
|
+
|
337
|
+
return thrown;
|
338
|
+
}
|
339
|
+
}
|
340
|
+
|
341
|
+
throw new Error("illegal catch attempt");
|
342
|
+
},
|
343
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
344
|
+
return this.delegate = {
|
345
|
+
iterator: values(iterable),
|
346
|
+
resultName: resultName,
|
347
|
+
nextLoc: nextLoc
|
348
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
349
|
+
}
|
350
|
+
}, exports;
|
351
|
+
}
|
352
|
+
|
8
353
|
function _wrapRegExp() {
|
9
354
|
_wrapRegExp = function (re, groups) {
|
10
355
|
return new BabelRegExp(re, void 0, groups);
|
@@ -90,7 +435,7 @@ function _asyncToGenerator(fn) {
|
|
90
435
|
}
|
91
436
|
|
92
437
|
function _extends() {
|
93
|
-
_extends = Object.assign
|
438
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
94
439
|
for (var i = 1; i < arguments.length; i++) {
|
95
440
|
var source = arguments[i];
|
96
441
|
|
@@ -103,7 +448,6 @@ function _extends() {
|
|
103
448
|
|
104
449
|
return target;
|
105
450
|
};
|
106
|
-
|
107
451
|
return _extends.apply(this, arguments);
|
108
452
|
}
|
109
453
|
|
@@ -133,18 +477,17 @@ function _inheritsLoose(subClass, superClass) {
|
|
133
477
|
}
|
134
478
|
|
135
479
|
function _getPrototypeOf(o) {
|
136
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
480
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
137
481
|
return o.__proto__ || Object.getPrototypeOf(o);
|
138
482
|
};
|
139
483
|
return _getPrototypeOf(o);
|
140
484
|
}
|
141
485
|
|
142
486
|
function _setPrototypeOf(o, p) {
|
143
|
-
_setPrototypeOf = Object.setPrototypeOf
|
487
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
144
488
|
o.__proto__ = p;
|
145
489
|
return o;
|
146
490
|
};
|
147
|
-
|
148
491
|
return _setPrototypeOf(o, p);
|
149
492
|
}
|
150
493
|
|
@@ -163,7 +506,7 @@ function _isNativeReflectConstruct() {
|
|
163
506
|
|
164
507
|
function _construct(Parent, args, Class) {
|
165
508
|
if (_isNativeReflectConstruct()) {
|
166
|
-
_construct = Reflect.construct;
|
509
|
+
_construct = Reflect.construct.bind();
|
167
510
|
} else {
|
168
511
|
_construct = function _construct(Parent, args, Class) {
|
169
512
|
var a = [null];
|
@@ -269,766 +612,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
269
612
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
270
613
|
}
|
271
614
|
|
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";
|
293
|
-
|
294
|
-
function define(obj, key, value) {
|
295
|
-
Object.defineProperty(obj, key, {
|
296
|
-
value: value,
|
297
|
-
enumerable: true,
|
298
|
-
configurable: true,
|
299
|
-
writable: true
|
300
|
-
});
|
301
|
-
return obj[key];
|
302
|
-
}
|
303
|
-
try {
|
304
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
305
|
-
define({}, "");
|
306
|
-
} catch (err) {
|
307
|
-
define = function(obj, key, value) {
|
308
|
-
return obj[key] = value;
|
309
|
-
};
|
310
|
-
}
|
311
|
-
|
312
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
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 || []);
|
317
|
-
|
318
|
-
// The ._invoke method unifies the implementations of the .next,
|
319
|
-
// .throw, and .return methods.
|
320
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
321
|
-
|
322
|
-
return generator;
|
323
|
-
}
|
324
|
-
exports.wrap = wrap;
|
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.
|
336
|
-
function tryCatch(fn, obj, arg) {
|
337
|
-
try {
|
338
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
339
|
-
} catch (err) {
|
340
|
-
return { type: "throw", arg: err };
|
341
|
-
}
|
342
|
-
}
|
343
|
-
|
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.
|
351
|
-
var ContinueSentinel = {};
|
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.
|
357
|
-
function Generator() {}
|
358
|
-
function GeneratorFunction() {}
|
359
|
-
function GeneratorFunctionPrototype() {}
|
360
|
-
|
361
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
362
|
-
// don't natively support it.
|
363
|
-
var IteratorPrototype = {};
|
364
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
365
|
-
return this;
|
366
|
-
});
|
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.
|
391
|
-
function defineIteratorMethods(prototype) {
|
392
|
-
["next", "throw", "return"].forEach(function(method) {
|
393
|
-
define(prototype, method, function(arg) {
|
394
|
-
return this._invoke(method, arg);
|
395
|
-
});
|
396
|
-
});
|
397
|
-
}
|
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
|
-
|
428
|
-
function AsyncIterator(generator, PromiseImpl) {
|
429
|
-
function invoke(method, arg, resolve, reject) {
|
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
|
-
}
|
445
|
-
|
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.
|
455
|
-
return invoke("throw", error, resolve, reject);
|
456
|
-
});
|
457
|
-
}
|
458
|
-
}
|
459
|
-
|
460
|
-
var previousPromise;
|
461
|
-
|
462
|
-
function enqueue(method, arg) {
|
463
|
-
function callInvokeWithMethodAndArg() {
|
464
|
-
return new PromiseImpl(function(resolve, reject) {
|
465
|
-
invoke(method, arg, resolve, reject);
|
466
|
-
});
|
467
|
-
}
|
468
|
-
|
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();
|
488
|
-
}
|
489
|
-
|
490
|
-
// Define the unified helper method that is used to implement .next,
|
491
|
-
// .throw, and .return (see defineIteratorMethods).
|
492
|
-
this._invoke = enqueue;
|
493
|
-
}
|
494
|
-
|
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
|
-
};
|
518
|
-
|
519
|
-
function makeInvokeMethod(innerFn, self, context) {
|
520
|
-
var state = GenStateSuspendedStart;
|
521
|
-
|
522
|
-
return function invoke(method, arg) {
|
523
|
-
if (state === GenStateExecuting) {
|
524
|
-
throw new Error("Generator is already running");
|
525
|
-
}
|
526
|
-
|
527
|
-
if (state === GenStateCompleted) {
|
528
|
-
if (method === "throw") {
|
529
|
-
throw arg;
|
530
|
-
}
|
531
|
-
|
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();
|
535
|
-
}
|
536
|
-
|
537
|
-
context.method = method;
|
538
|
-
context.arg = arg;
|
539
|
-
|
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
|
-
}
|
549
|
-
|
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;
|
554
|
-
|
555
|
-
} else if (context.method === "throw") {
|
556
|
-
if (state === GenStateSuspendedStart) {
|
557
|
-
state = GenStateCompleted;
|
558
|
-
throw context.arg;
|
559
|
-
}
|
560
|
-
|
561
|
-
context.dispatchException(context.arg);
|
562
|
-
|
563
|
-
} else if (context.method === "return") {
|
564
|
-
context.abrupt("return", context.arg);
|
565
|
-
}
|
566
|
-
|
567
|
-
state = GenStateExecuting;
|
568
|
-
|
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;
|
576
|
-
|
577
|
-
if (record.arg === ContinueSentinel) {
|
578
|
-
continue;
|
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;
|
592
|
-
}
|
593
|
-
}
|
594
|
-
};
|
595
|
-
}
|
596
|
-
|
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
|
-
}
|
622
|
-
}
|
623
|
-
|
624
|
-
context.method = "throw";
|
625
|
-
context.arg = new TypeError(
|
626
|
-
"The iterator does not provide a 'throw' method");
|
627
|
-
}
|
628
|
-
|
629
|
-
return ContinueSentinel;
|
630
|
-
}
|
631
|
-
|
632
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
633
|
-
|
634
|
-
if (record.type === "throw") {
|
635
|
-
context.method = "throw";
|
636
|
-
context.arg = record.arg;
|
637
|
-
context.delegate = null;
|
638
|
-
return ContinueSentinel;
|
639
|
-
}
|
640
|
-
|
641
|
-
var info = record.arg;
|
642
|
-
|
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
|
-
}
|
649
|
-
|
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
|
-
}
|
668
|
-
|
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;
|
678
|
-
}
|
679
|
-
|
680
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
681
|
-
// unified ._invoke helper method.
|
682
|
-
defineIteratorMethods(Gp);
|
683
|
-
|
684
|
-
define(Gp, toStringTagSymbol, "Generator");
|
685
|
-
|
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
|
-
});
|
694
|
-
|
695
|
-
define(Gp, "toString", function() {
|
696
|
-
return "[object Generator]";
|
697
|
-
});
|
698
|
-
|
699
|
-
function pushTryEntry(locs) {
|
700
|
-
var entry = { tryLoc: locs[0] };
|
701
|
-
|
702
|
-
if (1 in locs) {
|
703
|
-
entry.catchLoc = locs[1];
|
704
|
-
}
|
705
|
-
|
706
|
-
if (2 in locs) {
|
707
|
-
entry.finallyLoc = locs[2];
|
708
|
-
entry.afterLoc = locs[3];
|
709
|
-
}
|
710
|
-
|
711
|
-
this.tryEntries.push(entry);
|
712
|
-
}
|
713
|
-
|
714
|
-
function resetTryEntry(entry) {
|
715
|
-
var record = entry.completion || {};
|
716
|
-
record.type = "normal";
|
717
|
-
delete record.arg;
|
718
|
-
entry.completion = record;
|
719
|
-
}
|
720
|
-
|
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);
|
728
|
-
}
|
729
|
-
|
730
|
-
exports.keys = function(object) {
|
731
|
-
var keys = [];
|
732
|
-
for (var key in object) {
|
733
|
-
keys.push(key);
|
734
|
-
}
|
735
|
-
keys.reverse();
|
736
|
-
|
737
|
-
// Rather than returning an object with a next method, we keep
|
738
|
-
// things simple and return the next function itself.
|
739
|
-
return function next() {
|
740
|
-
while (keys.length) {
|
741
|
-
var key = keys.pop();
|
742
|
-
if (key in object) {
|
743
|
-
next.value = key;
|
744
|
-
next.done = false;
|
745
|
-
return next;
|
746
|
-
}
|
747
|
-
}
|
748
|
-
|
749
|
-
// To avoid creating an additional object, we just hang the .value
|
750
|
-
// and .done properties off the next function object itself. This
|
751
|
-
// also ensures that the minifier will not anonymize the function.
|
752
|
-
next.done = true;
|
753
|
-
return next;
|
754
|
-
};
|
755
|
-
};
|
756
|
-
|
757
|
-
function values(iterable) {
|
758
|
-
if (iterable) {
|
759
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
760
|
-
if (iteratorMethod) {
|
761
|
-
return iteratorMethod.call(iterable);
|
762
|
-
}
|
763
|
-
|
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
|
-
}
|
777
|
-
|
778
|
-
next.value = undefined$1;
|
779
|
-
next.done = true;
|
780
|
-
|
781
|
-
return next;
|
782
|
-
};
|
783
|
-
|
784
|
-
return next.next = next;
|
785
|
-
}
|
786
|
-
}
|
787
|
-
|
788
|
-
// Return an iterator with no values.
|
789
|
-
return { next: doneResult };
|
790
|
-
}
|
791
|
-
exports.values = values;
|
792
|
-
|
793
|
-
function doneResult() {
|
794
|
-
return { value: undefined$1, done: true };
|
795
|
-
}
|
796
|
-
|
797
|
-
Context.prototype = {
|
798
|
-
constructor: Context,
|
799
|
-
|
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
|
-
},
|
825
|
-
|
826
|
-
stop: function() {
|
827
|
-
this.done = true;
|
828
|
-
|
829
|
-
var rootEntry = this.tryEntries[0];
|
830
|
-
var rootRecord = rootEntry.completion;
|
831
|
-
if (rootRecord.type === "throw") {
|
832
|
-
throw rootRecord.arg;
|
833
|
-
}
|
834
|
-
|
835
|
-
return this.rval;
|
836
|
-
},
|
837
|
-
|
838
|
-
dispatchException: function(exception) {
|
839
|
-
if (this.done) {
|
840
|
-
throw exception;
|
841
|
-
}
|
842
|
-
|
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
|
-
}
|
855
|
-
|
856
|
-
return !! caught;
|
857
|
-
}
|
858
|
-
|
859
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
860
|
-
var entry = this.tryEntries[i];
|
861
|
-
var record = entry.completion;
|
862
|
-
|
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
|
-
}
|
869
|
-
|
870
|
-
if (entry.tryLoc <= this.prev) {
|
871
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
872
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
873
|
-
|
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
|
-
}
|
880
|
-
|
881
|
-
} else if (hasCatch) {
|
882
|
-
if (this.prev < entry.catchLoc) {
|
883
|
-
return handle(entry.catchLoc, true);
|
884
|
-
}
|
885
|
-
|
886
|
-
} else if (hasFinally) {
|
887
|
-
if (this.prev < entry.finallyLoc) {
|
888
|
-
return handle(entry.finallyLoc);
|
889
|
-
}
|
890
|
-
|
891
|
-
} else {
|
892
|
-
throw new Error("try statement without catch or finally");
|
893
|
-
}
|
894
|
-
}
|
895
|
-
}
|
896
|
-
},
|
897
|
-
|
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
|
-
}
|
908
|
-
|
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;
|
917
|
-
}
|
918
|
-
|
919
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
920
|
-
record.type = type;
|
921
|
-
record.arg = arg;
|
922
|
-
|
923
|
-
if (finallyEntry) {
|
924
|
-
this.method = "next";
|
925
|
-
this.next = finallyEntry.finallyLoc;
|
926
|
-
return ContinueSentinel;
|
927
|
-
}
|
928
|
-
|
929
|
-
return this.complete(record);
|
930
|
-
},
|
931
|
-
|
932
|
-
complete: function(record, afterLoc) {
|
933
|
-
if (record.type === "throw") {
|
934
|
-
throw record.arg;
|
935
|
-
}
|
936
|
-
|
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
|
-
}
|
947
|
-
|
948
|
-
return ContinueSentinel;
|
949
|
-
},
|
950
|
-
|
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
|
-
},
|
961
|
-
|
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
|
-
}
|
974
|
-
|
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
|
-
},
|
979
|
-
|
980
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
981
|
-
this.delegate = {
|
982
|
-
iterator: values(iterable),
|
983
|
-
resultName: resultName,
|
984
|
-
nextLoc: nextLoc
|
985
|
-
};
|
986
|
-
|
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
|
-
}
|
1029
|
-
}
|
1030
|
-
});
|
1031
|
-
|
1032
615
|
var _personalMetaToPrefix;
|
1033
616
|
var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[MetadataCategory.Personal] = 'you', _personalMetaToPrefix[MetadataCategory.ChildPersonal] = 'child', _personalMetaToPrefix[MetadataCategory.OtherPersonal] = 'other', _personalMetaToPrefix);
|
1034
617
|
/**
|
@@ -1038,7 +621,7 @@ var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[Me
|
|
1038
621
|
*/
|
1039
622
|
|
1040
623
|
function identificationToPersonalInformations(data, category) {
|
1041
|
-
var _data
|
624
|
+
var _data;
|
1042
625
|
|
1043
626
|
var prefix = personalMetaToPrefix[category];
|
1044
627
|
return {
|
@@ -1048,7 +631,7 @@ function identificationToPersonalInformations(data, category) {
|
|
1048
631
|
name: data[prefix + "Name"],
|
1049
632
|
phone: data[prefix + "Phone"],
|
1050
633
|
zip: data[prefix + "Zip"],
|
1051
|
-
hid: (_data
|
634
|
+
hid: (_data = data[prefix + "HID"]) != null ? _data : data[prefix + "ID"],
|
1052
635
|
pharmacy: data[prefix + "Pharmacy"],
|
1053
636
|
address: data[prefix + "Address"]
|
1054
637
|
};
|
@@ -1248,9 +831,9 @@ function filterTriggeredAnsweredWithKind(_x, _x2) {
|
|
1248
831
|
*/
|
1249
832
|
|
1250
833
|
function _filterTriggeredAnsweredWithKind() {
|
1251
|
-
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/
|
834
|
+
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workflowData, kind) {
|
1252
835
|
var flattenedAnswers, triggeredQuestionsWithKind, samePageAnswers, res;
|
1253
|
-
return
|
836
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1254
837
|
while (1) {
|
1255
838
|
switch (_context.prev = _context.next) {
|
1256
839
|
case 0:
|
@@ -1294,9 +877,9 @@ function getWorkflowDataByCategory(_x3, _x4) {
|
|
1294
877
|
}
|
1295
878
|
|
1296
879
|
function _getWorkflowDataByCategory() {
|
1297
|
-
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/
|
880
|
+
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(workflowData, category) {
|
1298
881
|
var flattenedAnswers, triggeredQuestions, fields;
|
1299
|
-
return
|
882
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1300
883
|
while (1) {
|
1301
884
|
switch (_context2.prev = _context2.next) {
|
1302
885
|
case 0:
|
@@ -1367,8 +950,8 @@ function getImagesFromIndexDb(_x5) {
|
|
1367
950
|
*/
|
1368
951
|
|
1369
952
|
function _getImagesFromIndexDb() {
|
1370
|
-
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/
|
1371
|
-
return
|
953
|
+
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(answer) {
|
954
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1372
955
|
while (1) {
|
1373
956
|
switch (_context3.prev = _context3.next) {
|
1374
957
|
case 0:
|
@@ -1397,9 +980,9 @@ function populateWorkflowField(_x6, _x7) {
|
|
1397
980
|
}
|
1398
981
|
|
1399
982
|
function _populateWorkflowField() {
|
1400
|
-
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/
|
983
|
+
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
|
1401
984
|
var answer, displayedAnswer;
|
1402
|
-
return
|
985
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1403
986
|
while (1) {
|
1404
987
|
switch (_context4.prev = _context4.next) {
|
1405
988
|
case 0:
|
@@ -1563,10 +1146,11 @@ var MAX_RETRIES = 15;
|
|
1563
1146
|
* @param oroClient
|
1564
1147
|
* @param masterKey
|
1565
1148
|
* @param recoveryQA
|
1149
|
+
* @param indexSearch create search index for the consultation if true
|
1566
1150
|
* @returns the successful registration
|
1567
1151
|
*/
|
1568
1152
|
|
1569
|
-
function registerPatient(_x, _x2, _x3, _x4, _x5, _x6) {
|
1153
|
+
function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
1570
1154
|
return _registerPatient.apply(this, arguments);
|
1571
1155
|
}
|
1572
1156
|
/**
|
@@ -1577,13 +1161,17 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
1577
1161
|
*/
|
1578
1162
|
|
1579
1163
|
function _registerPatient() {
|
1580
|
-
_registerPatient = _asyncToGenerator( /*#__PURE__*/
|
1164
|
+
_registerPatient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch) {
|
1581
1165
|
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, _ret;
|
1582
1166
|
|
1583
|
-
return
|
1167
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1584
1168
|
while (1) {
|
1585
1169
|
switch (_context4.prev = _context4.next) {
|
1586
1170
|
case 0:
|
1171
|
+
if (indexSearch === void 0) {
|
1172
|
+
indexSearch = true;
|
1173
|
+
}
|
1174
|
+
|
1587
1175
|
consult = undefined;
|
1588
1176
|
lockboxUuid = undefined;
|
1589
1177
|
practitionerAdmin = undefined;
|
@@ -1591,18 +1179,18 @@ function _registerPatient() {
|
|
1591
1179
|
identity = undefined;
|
1592
1180
|
errorsThrown = [];
|
1593
1181
|
|
1594
|
-
case
|
1182
|
+
case 7:
|
1595
1183
|
if (!(retry > 0)) {
|
1596
|
-
_context4.next =
|
1184
|
+
_context4.next = 23;
|
1597
1185
|
break;
|
1598
1186
|
}
|
1599
1187
|
|
1600
|
-
_context4.prev =
|
1601
|
-
return _context4.delegateYield( /*#__PURE__*/
|
1188
|
+
_context4.prev = 8;
|
1189
|
+
return _context4.delegateYield( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
1602
1190
|
var _consultIndex, _identity, _identity2;
|
1603
1191
|
|
1604
1192
|
var practitioners, grantPromises, consultIndex, consultIndexPromises;
|
1605
|
-
return
|
1193
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1606
1194
|
while (1) {
|
1607
1195
|
switch (_context3.prev = _context3.next) {
|
1608
1196
|
case 0:
|
@@ -1673,7 +1261,6 @@ function _registerPatient() {
|
|
1673
1261
|
return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
|
1674
1262
|
console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
|
1675
1263
|
|
1676
|
-
// if we cannot grant to the admin, then the registration will fail
|
1677
1264
|
errorsThrown.push(err);
|
1678
1265
|
});
|
1679
1266
|
|
@@ -1682,15 +1269,14 @@ function _registerPatient() {
|
|
1682
1269
|
grantPromises = practitioners.filter(function (practitioner) {
|
1683
1270
|
return practitioner.uuid !== practitionerAdmin;
|
1684
1271
|
}).map( /*#__PURE__*/function () {
|
1685
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
1686
|
-
return
|
1272
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(practitioner) {
|
1273
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1687
1274
|
while (1) {
|
1688
1275
|
switch (_context.prev = _context.next) {
|
1689
1276
|
case 0:
|
1690
1277
|
return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
|
1691
1278
|
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
|
1692
1279
|
|
1693
|
-
// Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
|
1694
1280
|
if (retry <= 1) return;
|
1695
1281
|
errorsThrown.push(err);
|
1696
1282
|
}));
|
@@ -1703,7 +1289,7 @@ function _registerPatient() {
|
|
1703
1289
|
}, _callee);
|
1704
1290
|
}));
|
1705
1291
|
|
1706
|
-
return function (
|
1292
|
+
return function (_x29) {
|
1707
1293
|
return _ref.apply(this, arguments);
|
1708
1294
|
};
|
1709
1295
|
}());
|
@@ -1716,15 +1302,14 @@ function _registerPatient() {
|
|
1716
1302
|
}], _consultIndex); // the index will identify in which lockbox a consultation resides
|
1717
1303
|
|
1718
1304
|
consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
|
1719
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
1720
|
-
return
|
1305
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practitioner) {
|
1306
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1721
1307
|
while (1) {
|
1722
1308
|
switch (_context2.prev = _context2.next) {
|
1723
1309
|
case 0:
|
1724
1310
|
return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
|
1725
1311
|
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
|
1726
1312
|
|
1727
|
-
// Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
|
1728
1313
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1729
1314
|
}));
|
1730
1315
|
|
@@ -1736,7 +1321,7 @@ function _registerPatient() {
|
|
1736
1321
|
}, _callee2);
|
1737
1322
|
}));
|
1738
1323
|
|
1739
|
-
return function (
|
1324
|
+
return function (_x30) {
|
1740
1325
|
return _ref2.apply(this, arguments);
|
1741
1326
|
};
|
1742
1327
|
}());
|
@@ -1744,7 +1329,6 @@ function _registerPatient() {
|
|
1744
1329
|
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient)["catch"](function (err) {
|
1745
1330
|
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
|
1746
1331
|
|
1747
|
-
// Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
|
1748
1332
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1749
1333
|
});
|
1750
1334
|
|
@@ -1765,7 +1349,6 @@ function _registerPatient() {
|
|
1765
1349
|
return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
|
1766
1350
|
console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
|
1767
1351
|
|
1768
|
-
/// it's acceptable to continue registration (return old identity)
|
1769
1352
|
if (retry <= 1) return;
|
1770
1353
|
errorsThrown.push(err);
|
1771
1354
|
return identity;
|
@@ -1790,7 +1373,6 @@ function _registerPatient() {
|
|
1790
1373
|
return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
|
1791
1374
|
console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
|
1792
1375
|
|
1793
|
-
/// it's acceptable to continue registration (return old identity)
|
1794
1376
|
if (retry <= 1) return;
|
1795
1377
|
errorsThrown.push(err);
|
1796
1378
|
return identity;
|
@@ -1804,98 +1386,102 @@ function _registerPatient() {
|
|
1804
1386
|
return Promise.all([].concat(grantPromises, consultIndexPromises));
|
1805
1387
|
|
1806
1388
|
case 43:
|
1807
|
-
|
1389
|
+
if (!indexSearch) {
|
1390
|
+
_context3.next = 46;
|
1391
|
+
break;
|
1392
|
+
}
|
1393
|
+
|
1394
|
+
_context3.next = 46;
|
1808
1395
|
return buildConsultSearchIndex(consult, workflow, oroClient)["catch"](function (err) {
|
1809
1396
|
console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
|
1810
1397
|
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
|
1811
1398
|
|
1812
|
-
// this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
|
1813
1399
|
errorsThrown.push(err);
|
1814
1400
|
});
|
1815
1401
|
|
1816
|
-
case
|
1402
|
+
case 46:
|
1817
1403
|
if (!(errorsThrown.length > 0)) {
|
1818
|
-
_context3.next =
|
1404
|
+
_context3.next = 48;
|
1819
1405
|
break;
|
1820
1406
|
}
|
1821
1407
|
|
1822
1408
|
throw errorsThrown;
|
1823
1409
|
|
1824
|
-
case
|
1825
|
-
_context3.next =
|
1410
|
+
case 48:
|
1411
|
+
_context3.next = 50;
|
1826
1412
|
return oroClient.consultClient.updateConsultByUUID(consult.uuid, {
|
1827
1413
|
statusMedical: MedicalStatus.New
|
1828
1414
|
});
|
1829
1415
|
|
1830
|
-
case
|
1416
|
+
case 50:
|
1831
1417
|
return _context3.abrupt("return", "break");
|
1832
1418
|
|
1833
|
-
case
|
1419
|
+
case 51:
|
1834
1420
|
case "end":
|
1835
1421
|
return _context3.stop();
|
1836
1422
|
}
|
1837
1423
|
}
|
1838
1424
|
}, _callee3);
|
1839
|
-
})(), "t0",
|
1425
|
+
})(), "t0", 10);
|
1840
1426
|
|
1841
|
-
case
|
1427
|
+
case 10:
|
1842
1428
|
_ret = _context4.t0;
|
1843
1429
|
|
1844
1430
|
if (!(_ret === "break")) {
|
1845
|
-
_context4.next =
|
1431
|
+
_context4.next = 13;
|
1846
1432
|
break;
|
1847
1433
|
}
|
1848
1434
|
|
1849
|
-
return _context4.abrupt("break",
|
1435
|
+
return _context4.abrupt("break", 23);
|
1850
1436
|
|
1851
|
-
case
|
1852
|
-
_context4.next =
|
1437
|
+
case 13:
|
1438
|
+
_context4.next = 20;
|
1853
1439
|
break;
|
1854
1440
|
|
1855
|
-
case
|
1856
|
-
_context4.prev =
|
1857
|
-
_context4.t1 = _context4["catch"](
|
1441
|
+
case 15:
|
1442
|
+
_context4.prev = 15;
|
1443
|
+
_context4.t1 = _context4["catch"](8);
|
1858
1444
|
console.error("[SDK] Error occured during registration: " + _context4.t1 + ", retrying... Retries remaining: " + retry);
|
1859
1445
|
errorsThrown = [];
|
1860
|
-
return _context4.abrupt("continue",
|
1446
|
+
return _context4.abrupt("continue", 20);
|
1861
1447
|
|
1862
|
-
case
|
1448
|
+
case 20:
|
1863
1449
|
retry--;
|
1864
|
-
_context4.next =
|
1450
|
+
_context4.next = 7;
|
1865
1451
|
break;
|
1866
1452
|
|
1867
|
-
case
|
1453
|
+
case 23:
|
1868
1454
|
if (!(retry <= 0)) {
|
1869
|
-
_context4.next =
|
1455
|
+
_context4.next = 26;
|
1870
1456
|
break;
|
1871
1457
|
}
|
1872
1458
|
|
1873
1459
|
console.error('[SDK] registration failed: MAX_RETRIES reached');
|
1874
1460
|
throw 'RegistrationFailed';
|
1875
1461
|
|
1876
|
-
case
|
1462
|
+
case 26:
|
1877
1463
|
console.log('Successfully Registered');
|
1878
|
-
_context4.next =
|
1464
|
+
_context4.next = 29;
|
1879
1465
|
return oroClient.cleanIndex();
|
1880
1466
|
|
1881
|
-
case
|
1467
|
+
case 29:
|
1882
1468
|
return _context4.abrupt("return", {
|
1883
1469
|
masterKey: masterKey,
|
1884
1470
|
consultationId: consult.uuid,
|
1885
1471
|
lockboxUuid: lockboxUuid
|
1886
1472
|
});
|
1887
1473
|
|
1888
|
-
case
|
1474
|
+
case 30:
|
1889
1475
|
case "end":
|
1890
1476
|
return _context4.stop();
|
1891
1477
|
}
|
1892
1478
|
}
|
1893
|
-
}, _callee4, null, [[
|
1479
|
+
}, _callee4, null, [[8, 15]]);
|
1894
1480
|
}));
|
1895
1481
|
return _registerPatient.apply(this, arguments);
|
1896
1482
|
}
|
1897
1483
|
|
1898
|
-
function getOrCreatePatientConsultationUuid(
|
1484
|
+
function getOrCreatePatientConsultationUuid(_x8, _x9) {
|
1899
1485
|
return _getOrCreatePatientConsultationUuid.apply(this, arguments);
|
1900
1486
|
}
|
1901
1487
|
/**
|
@@ -1906,9 +1492,9 @@ function getOrCreatePatientConsultationUuid(_x7, _x8) {
|
|
1906
1492
|
|
1907
1493
|
|
1908
1494
|
function _getOrCreatePatientConsultationUuid() {
|
1909
|
-
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/
|
1495
|
+
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(consult, oroClient) {
|
1910
1496
|
var payment;
|
1911
|
-
return
|
1497
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
1912
1498
|
while (1) {
|
1913
1499
|
switch (_context5.prev = _context5.next) {
|
1914
1500
|
case 0:
|
@@ -1948,7 +1534,7 @@ function _getOrCreatePatientConsultationUuid() {
|
|
1948
1534
|
return _getOrCreatePatientConsultationUuid.apply(this, arguments);
|
1949
1535
|
}
|
1950
1536
|
|
1951
|
-
function getOrCreatePatientLockbox(
|
1537
|
+
function getOrCreatePatientLockbox(_x10) {
|
1952
1538
|
return _getOrCreatePatientLockbox.apply(this, arguments);
|
1953
1539
|
}
|
1954
1540
|
/**
|
@@ -1963,9 +1549,9 @@ function getOrCreatePatientLockbox(_x9) {
|
|
1963
1549
|
|
1964
1550
|
|
1965
1551
|
function _getOrCreatePatientLockbox() {
|
1966
|
-
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/
|
1552
|
+
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(oroClient) {
|
1967
1553
|
var grants;
|
1968
|
-
return
|
1554
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
1969
1555
|
while (1) {
|
1970
1556
|
switch (_context6.prev = _context6.next) {
|
1971
1557
|
case 0:
|
@@ -2003,13 +1589,13 @@ function _getOrCreatePatientLockbox() {
|
|
2003
1589
|
return _getOrCreatePatientLockbox.apply(this, arguments);
|
2004
1590
|
}
|
2005
1591
|
|
2006
|
-
function storePatientData(
|
1592
|
+
function storePatientData(_x11, _x12, _x13, _x14, _x15) {
|
2007
1593
|
return _storePatientData.apply(this, arguments);
|
2008
1594
|
}
|
2009
1595
|
|
2010
1596
|
function _storePatientData() {
|
2011
|
-
_storePatientData = _asyncToGenerator( /*#__PURE__*/
|
2012
|
-
return
|
1597
|
+
_storePatientData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
|
1598
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2013
1599
|
while (1) {
|
2014
1600
|
switch (_context7.prev = _context7.next) {
|
2015
1601
|
case 0:
|
@@ -2051,7 +1637,7 @@ function _storePatientData() {
|
|
2051
1637
|
return _storePatientData.apply(this, arguments);
|
2052
1638
|
}
|
2053
1639
|
|
2054
|
-
function storeImageAliases(
|
1640
|
+
function storeImageAliases(_x16, _x17, _x18, _x19) {
|
2055
1641
|
return _storeImageAliases.apply(this, arguments);
|
2056
1642
|
}
|
2057
1643
|
/**
|
@@ -2066,9 +1652,9 @@ function storeImageAliases(_x15, _x16, _x17, _x18) {
|
|
2066
1652
|
|
2067
1653
|
|
2068
1654
|
function _storeImageAliases() {
|
2069
|
-
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/
|
1655
|
+
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient) {
|
2070
1656
|
var images, nonNullImages, promises;
|
2071
|
-
return
|
1657
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2072
1658
|
while (1) {
|
2073
1659
|
switch (_context8.prev = _context8.next) {
|
2074
1660
|
case 0:
|
@@ -2111,7 +1697,7 @@ function _storeImageAliases() {
|
|
2111
1697
|
return _storeImageAliases.apply(this, arguments);
|
2112
1698
|
}
|
2113
1699
|
|
2114
|
-
function extractAndStorePersonalWorkflowData(
|
1700
|
+
function extractAndStorePersonalWorkflowData(_x20, _x21, _x22, _x23, _x24) {
|
2115
1701
|
return _extractAndStorePersonalWorkflowData.apply(this, arguments);
|
2116
1702
|
}
|
2117
1703
|
/**
|
@@ -2120,8 +1706,8 @@ function extractAndStorePersonalWorkflowData(_x19, _x20, _x21, _x22, _x23) {
|
|
2120
1706
|
*/
|
2121
1707
|
|
2122
1708
|
function _extractAndStorePersonalWorkflowData() {
|
2123
|
-
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2124
|
-
return
|
1709
|
+
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
|
1710
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2125
1711
|
while (1) {
|
2126
1712
|
switch (_context9.prev = _context9.next) {
|
2127
1713
|
case 0:
|
@@ -2144,7 +1730,7 @@ function _extractAndStorePersonalWorkflowData() {
|
|
2144
1730
|
return _extractAndStorePersonalWorkflowData.apply(this, arguments);
|
2145
1731
|
}
|
2146
1732
|
|
2147
|
-
function extractPersonalInfoFromWorkflowData(
|
1733
|
+
function extractPersonalInfoFromWorkflowData(_x25) {
|
2148
1734
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
2149
1735
|
}
|
2150
1736
|
/**
|
@@ -2155,8 +1741,8 @@ function extractPersonalInfoFromWorkflowData(_x24) {
|
|
2155
1741
|
*/
|
2156
1742
|
|
2157
1743
|
function _extractPersonalInfoFromWorkflowData() {
|
2158
|
-
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2159
|
-
return
|
1744
|
+
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(workflow) {
|
1745
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2160
1746
|
while (1) {
|
2161
1747
|
switch (_context10.prev = _context10.next) {
|
2162
1748
|
case 0:
|
@@ -2181,15 +1767,15 @@ function _extractPersonalInfoFromWorkflowData() {
|
|
2181
1767
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
2182
1768
|
}
|
2183
1769
|
|
2184
|
-
function buildConsultSearchIndex(
|
1770
|
+
function buildConsultSearchIndex(_x26, _x27, _x28) {
|
2185
1771
|
return _buildConsultSearchIndex.apply(this, arguments);
|
2186
1772
|
}
|
2187
1773
|
|
2188
1774
|
function _buildConsultSearchIndex() {
|
2189
|
-
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/
|
1775
|
+
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(consult, workflow, oroClient) {
|
2190
1776
|
var terms, _yield$extractPersona, personalInfoPopulatedWfData, childPersonalInfoPopulatedWfData, otherPersonalInfoPopulatedWfData, personalInfo, childPersonalInfo, otherPersonalInfo;
|
2191
1777
|
|
2192
|
-
return
|
1778
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
2193
1779
|
while (1) {
|
2194
1780
|
switch (_context11.prev = _context11.next) {
|
2195
1781
|
case 0:
|
@@ -2318,10 +1904,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2, _x3, _x4) {
|
|
2318
1904
|
*/
|
2319
1905
|
|
2320
1906
|
function _filterGrantsWithLockboxMetadata() {
|
2321
|
-
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/
|
1907
|
+
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(oroClient, filter, vaultIndex, forceRefresh) {
|
2322
1908
|
var _vaultIndex$IndexKey$, indexConsults;
|
2323
1909
|
|
2324
|
-
return
|
1910
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2325
1911
|
while (1) {
|
2326
1912
|
switch (_context.prev = _context.next) {
|
2327
1913
|
case 0:
|
@@ -2371,12 +1957,12 @@ function buildLegacyVaultIndex(_x5) {
|
|
2371
1957
|
}
|
2372
1958
|
|
2373
1959
|
function _buildLegacyVaultIndex() {
|
2374
|
-
_buildLegacyVaultIndex = _asyncToGenerator( /*#__PURE__*/
|
1960
|
+
_buildLegacyVaultIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(oroClient) {
|
2375
1961
|
var _vaultIndex;
|
2376
1962
|
|
2377
1963
|
var grants, consultGrants, _loop, _iterator, _step, vaultIndex;
|
2378
1964
|
|
2379
|
-
return
|
1965
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context3) {
|
2380
1966
|
while (1) {
|
2381
1967
|
switch (_context3.prev = _context3.next) {
|
2382
1968
|
case 0:
|
@@ -2386,9 +1972,9 @@ function _buildLegacyVaultIndex() {
|
|
2386
1972
|
case 2:
|
2387
1973
|
grants = _context3.sent;
|
2388
1974
|
consultGrants = [];
|
2389
|
-
_loop = /*#__PURE__*/
|
1975
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
2390
1976
|
var grant, consults;
|
2391
|
-
return
|
1977
|
+
return _regeneratorRuntime().wrap(function _loop$(_context2) {
|
2392
1978
|
while (1) {
|
2393
1979
|
switch (_context2.prev = _context2.next) {
|
2394
1980
|
case 0:
|
@@ -2472,8 +2058,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2472
2058
|
_proto.cleanIndex =
|
2473
2059
|
/*#__PURE__*/
|
2474
2060
|
function () {
|
2475
|
-
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2476
|
-
return
|
2061
|
+
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
2062
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2477
2063
|
while (1) {
|
2478
2064
|
switch (_context.prev = _context.next) {
|
2479
2065
|
case 0:
|
@@ -2511,9 +2097,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2511
2097
|
_proto.signUp =
|
2512
2098
|
/*#__PURE__*/
|
2513
2099
|
function () {
|
2514
|
-
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2100
|
+
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
|
2515
2101
|
var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
|
2516
|
-
return
|
2102
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
2517
2103
|
while (1) {
|
2518
2104
|
switch (_context2.prev = _context2.next) {
|
2519
2105
|
case 0:
|
@@ -2572,9 +2158,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2572
2158
|
_proto.confirmEmail =
|
2573
2159
|
/*#__PURE__*/
|
2574
2160
|
function () {
|
2575
|
-
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2161
|
+
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken) {
|
2576
2162
|
var claims;
|
2577
|
-
return
|
2163
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
2578
2164
|
while (1) {
|
2579
2165
|
switch (_context3.prev = _context3.next) {
|
2580
2166
|
case 0:
|
@@ -2619,9 +2205,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2619
2205
|
_proto.signIn =
|
2620
2206
|
/*#__PURE__*/
|
2621
2207
|
function () {
|
2622
|
-
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2208
|
+
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(practiceUuid, email, password, otp) {
|
2623
2209
|
var hashedPassword, tokenRequest, userUuid;
|
2624
|
-
return
|
2210
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
2625
2211
|
while (1) {
|
2626
2212
|
switch (_context4.prev = _context4.next) {
|
2627
2213
|
case 0:
|
@@ -2674,9 +2260,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2674
2260
|
_proto.resumeSession =
|
2675
2261
|
/*#__PURE__*/
|
2676
2262
|
function () {
|
2677
|
-
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2263
|
+
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
2678
2264
|
var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
|
2679
|
-
return
|
2265
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
2680
2266
|
while (1) {
|
2681
2267
|
switch (_context5.prev = _context5.next) {
|
2682
2268
|
case 0:
|
@@ -2777,8 +2363,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2777
2363
|
_proto.signOut =
|
2778
2364
|
/*#__PURE__*/
|
2779
2365
|
function () {
|
2780
|
-
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2781
|
-
return
|
2366
|
+
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
2367
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
2782
2368
|
while (1) {
|
2783
2369
|
switch (_context6.prev = _context6.next) {
|
2784
2370
|
case 0:
|
@@ -2820,6 +2406,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2820
2406
|
* @param consult
|
2821
2407
|
* @param workflow
|
2822
2408
|
* @param recoveryQA
|
2409
|
+
* @param indexSearch create search index for the consultation if true
|
2823
2410
|
* @returns
|
2824
2411
|
*/
|
2825
2412
|
;
|
@@ -2827,22 +2414,26 @@ var OroClient = /*#__PURE__*/function () {
|
|
2827
2414
|
_proto.registerPatient =
|
2828
2415
|
/*#__PURE__*/
|
2829
2416
|
function () {
|
2830
|
-
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2831
|
-
return
|
2417
|
+
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch) {
|
2418
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2832
2419
|
while (1) {
|
2833
2420
|
switch (_context7.prev = _context7.next) {
|
2834
2421
|
case 0:
|
2422
|
+
if (indexSearch === void 0) {
|
2423
|
+
indexSearch = true;
|
2424
|
+
}
|
2425
|
+
|
2835
2426
|
if (this.rsa) {
|
2836
|
-
_context7.next =
|
2427
|
+
_context7.next = 3;
|
2837
2428
|
break;
|
2838
2429
|
}
|
2839
2430
|
|
2840
2431
|
throw IncompleteAuthentication;
|
2841
2432
|
|
2842
|
-
case 2:
|
2843
|
-
return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA));
|
2844
|
-
|
2845
2433
|
case 3:
|
2434
|
+
return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA, indexSearch));
|
2435
|
+
|
2436
|
+
case 4:
|
2846
2437
|
case "end":
|
2847
2438
|
return _context7.stop();
|
2848
2439
|
}
|
@@ -2850,7 +2441,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2850
2441
|
}, _callee7, this);
|
2851
2442
|
}));
|
2852
2443
|
|
2853
|
-
function registerPatient$1(_x13, _x14, _x15, _x16) {
|
2444
|
+
function registerPatient$1(_x13, _x14, _x15, _x16, _x17) {
|
2854
2445
|
return _registerPatient2.apply(this, arguments);
|
2855
2446
|
}
|
2856
2447
|
|
@@ -2871,8 +2462,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2871
2462
|
_proto.buildVaultIndex =
|
2872
2463
|
/*#__PURE__*/
|
2873
2464
|
function () {
|
2874
|
-
var _buildVaultIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2875
|
-
return
|
2465
|
+
var _buildVaultIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(forceRefresh) {
|
2466
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2876
2467
|
while (1) {
|
2877
2468
|
switch (_context8.prev = _context8.next) {
|
2878
2469
|
case 0:
|
@@ -2896,7 +2487,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2896
2487
|
}, _callee8, this);
|
2897
2488
|
}));
|
2898
2489
|
|
2899
|
-
function buildVaultIndex(
|
2490
|
+
function buildVaultIndex(_x18) {
|
2900
2491
|
return _buildVaultIndex.apply(this, arguments);
|
2901
2492
|
}
|
2902
2493
|
|
@@ -2920,12 +2511,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
2920
2511
|
_proto.forceUpdateIndexEntries =
|
2921
2512
|
/*#__PURE__*/
|
2922
2513
|
function () {
|
2923
|
-
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2514
|
+
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
2924
2515
|
var _this = this,
|
2925
2516
|
_this$vaultIndexAdd;
|
2926
2517
|
|
2927
2518
|
var grants, indexConsultLockbox;
|
2928
|
-
return
|
2519
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2929
2520
|
while (1) {
|
2930
2521
|
switch (_context10.prev = _context10.next) {
|
2931
2522
|
case 0:
|
@@ -2936,8 +2527,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2936
2527
|
grants = _context10.sent;
|
2937
2528
|
_context10.next = 5;
|
2938
2529
|
return Promise.all(grants.map( /*#__PURE__*/function () {
|
2939
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
2940
|
-
return
|
2530
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(grant) {
|
2531
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2941
2532
|
while (1) {
|
2942
2533
|
switch (_context9.prev = _context9.next) {
|
2943
2534
|
case 0:
|
@@ -2973,7 +2564,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2973
2564
|
}, _callee9);
|
2974
2565
|
}));
|
2975
2566
|
|
2976
|
-
return function (
|
2567
|
+
return function (_x19) {
|
2977
2568
|
return _ref2.apply(this, arguments);
|
2978
2569
|
};
|
2979
2570
|
}())).then(function (consults) {
|
@@ -3013,12 +2604,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
3013
2604
|
_proto.vaultIndexAdd =
|
3014
2605
|
/*#__PURE__*/
|
3015
2606
|
function () {
|
3016
|
-
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2607
|
+
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(entries, indexOwnerUuid) {
|
3017
2608
|
var _this2 = this;
|
3018
2609
|
|
3019
2610
|
var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
|
3020
2611
|
|
3021
|
-
return
|
2612
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
3022
2613
|
while (1) {
|
3023
2614
|
switch (_context11.prev = _context11.next) {
|
3024
2615
|
case 0:
|
@@ -3125,7 +2716,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3125
2716
|
}, _callee11, this);
|
3126
2717
|
}));
|
3127
2718
|
|
3128
|
-
function vaultIndexAdd(
|
2719
|
+
function vaultIndexAdd(_x20, _x21) {
|
3129
2720
|
return _vaultIndexAdd.apply(this, arguments);
|
3130
2721
|
}
|
3131
2722
|
|
@@ -3140,11 +2731,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
3140
2731
|
_proto.indexSnapshotAdd =
|
3141
2732
|
/*#__PURE__*/
|
3142
2733
|
function () {
|
3143
|
-
var _indexSnapshotAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2734
|
+
var _indexSnapshotAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(index) {
|
3144
2735
|
var _index$IndexKey$Consu, _cleanedIndex;
|
3145
2736
|
|
3146
2737
|
var rsaPub, cleanedIndex, encryptedIndexEntry, encryptedIndex;
|
3147
|
-
return
|
2738
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
3148
2739
|
while (1) {
|
3149
2740
|
switch (_context12.prev = _context12.next) {
|
3150
2741
|
case 0:
|
@@ -3184,7 +2775,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3184
2775
|
}, _callee12, this);
|
3185
2776
|
}));
|
3186
2777
|
|
3187
|
-
function indexSnapshotAdd(
|
2778
|
+
function indexSnapshotAdd(_x22) {
|
3188
2779
|
return _indexSnapshotAdd.apply(this, arguments);
|
3189
2780
|
}
|
3190
2781
|
|
@@ -3202,9 +2793,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3202
2793
|
_proto.grantLockbox =
|
3203
2794
|
/*#__PURE__*/
|
3204
2795
|
function () {
|
3205
|
-
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2796
|
+
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
|
3206
2797
|
var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
|
3207
|
-
return
|
2798
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
3208
2799
|
while (1) {
|
3209
2800
|
switch (_context13.prev = _context13.next) {
|
3210
2801
|
case 0:
|
@@ -3243,7 +2834,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3243
2834
|
}, _callee13, this);
|
3244
2835
|
}));
|
3245
2836
|
|
3246
|
-
function grantLockbox(
|
2837
|
+
function grantLockbox(_x23, _x24, _x25) {
|
3247
2838
|
return _grantLockbox.apply(this, arguments);
|
3248
2839
|
}
|
3249
2840
|
|
@@ -3264,9 +2855,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3264
2855
|
_proto.createMessageData =
|
3265
2856
|
/*#__PURE__*/
|
3266
2857
|
function () {
|
3267
|
-
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2858
|
+
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3268
2859
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3269
|
-
return
|
2860
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
3270
2861
|
while (1) {
|
3271
2862
|
switch (_context14.prev = _context14.next) {
|
3272
2863
|
case 0:
|
@@ -3315,7 +2906,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3315
2906
|
}, _callee14, this);
|
3316
2907
|
}));
|
3317
2908
|
|
3318
|
-
function createMessageData(
|
2909
|
+
function createMessageData(_x26, _x27, _x28, _x29, _x30) {
|
3319
2910
|
return _createMessageData.apply(this, arguments);
|
3320
2911
|
}
|
3321
2912
|
|
@@ -3336,9 +2927,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3336
2927
|
_proto.createMessageAttachmentData =
|
3337
2928
|
/*#__PURE__*/
|
3338
2929
|
function () {
|
3339
|
-
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2930
|
+
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3340
2931
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3341
|
-
return
|
2932
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
3342
2933
|
while (1) {
|
3343
2934
|
switch (_context15.prev = _context15.next) {
|
3344
2935
|
case 0:
|
@@ -3401,7 +2992,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3401
2992
|
}, _callee15, this);
|
3402
2993
|
}));
|
3403
2994
|
|
3404
|
-
function createMessageAttachmentData(
|
2995
|
+
function createMessageAttachmentData(_x31, _x32, _x33, _x34, _x35) {
|
3405
2996
|
return _createMessageAttachmentData.apply(this, arguments);
|
3406
2997
|
}
|
3407
2998
|
|
@@ -3423,8 +3014,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3423
3014
|
_proto.createConsultationAttachmentData =
|
3424
3015
|
/*#__PURE__*/
|
3425
3016
|
function () {
|
3426
|
-
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3427
|
-
return
|
3017
|
+
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
|
3018
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
3428
3019
|
while (1) {
|
3429
3020
|
switch (_context16.prev = _context16.next) {
|
3430
3021
|
case 0:
|
@@ -3473,7 +3064,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3473
3064
|
}, _callee16, this);
|
3474
3065
|
}));
|
3475
3066
|
|
3476
|
-
function createConsultationAttachmentData(
|
3067
|
+
function createConsultationAttachmentData(_x36, _x37, _x38, _x39, _x40, _x41) {
|
3477
3068
|
return _createConsultationAttachmentData.apply(this, arguments);
|
3478
3069
|
}
|
3479
3070
|
|
@@ -3495,9 +3086,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3495
3086
|
_proto.createJsonData =
|
3496
3087
|
/*#__PURE__*/
|
3497
3088
|
function () {
|
3498
|
-
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3089
|
+
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3499
3090
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3500
|
-
return
|
3091
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
3501
3092
|
while (1) {
|
3502
3093
|
switch (_context17.prev = _context17.next) {
|
3503
3094
|
case 0:
|
@@ -3531,7 +3122,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3531
3122
|
}, _callee17, this);
|
3532
3123
|
}));
|
3533
3124
|
|
3534
|
-
function createJsonData(
|
3125
|
+
function createJsonData(_x42, _x43, _x44, _x45, _x46, _x47) {
|
3535
3126
|
return _createJsonData.apply(this, arguments);
|
3536
3127
|
}
|
3537
3128
|
|
@@ -3551,9 +3142,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3551
3142
|
_proto.getOrInsertJsonData =
|
3552
3143
|
/*#__PURE__*/
|
3553
3144
|
function () {
|
3554
|
-
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3145
|
+
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
|
3555
3146
|
var manifest;
|
3556
|
-
return
|
3147
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
3557
3148
|
while (1) {
|
3558
3149
|
switch (_context18.prev = _context18.next) {
|
3559
3150
|
case 0:
|
@@ -3594,7 +3185,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3594
3185
|
}, _callee18, this);
|
3595
3186
|
}));
|
3596
3187
|
|
3597
|
-
function getOrInsertJsonData(
|
3188
|
+
function getOrInsertJsonData(_x48, _x49, _x50, _x51, _x52) {
|
3598
3189
|
return _getOrInsertJsonData.apply(this, arguments);
|
3599
3190
|
}
|
3600
3191
|
|
@@ -3616,9 +3207,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3616
3207
|
_proto.createBytesData =
|
3617
3208
|
/*#__PURE__*/
|
3618
3209
|
function () {
|
3619
|
-
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3210
|
+
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3620
3211
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3621
|
-
return
|
3212
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
3622
3213
|
while (1) {
|
3623
3214
|
switch (_context19.prev = _context19.next) {
|
3624
3215
|
case 0:
|
@@ -3652,7 +3243,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3652
3243
|
}, _callee19, this);
|
3653
3244
|
}));
|
3654
3245
|
|
3655
|
-
function createBytesData(
|
3246
|
+
function createBytesData(_x53, _x54, _x55, _x56, _x57, _x58) {
|
3656
3247
|
return _createBytesData.apply(this, arguments);
|
3657
3248
|
}
|
3658
3249
|
|
@@ -3674,10 +3265,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3674
3265
|
_proto.getJsonData =
|
3675
3266
|
/*#__PURE__*/
|
3676
3267
|
function () {
|
3677
|
-
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3268
|
+
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3678
3269
|
var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
|
3679
3270
|
|
3680
|
-
return
|
3271
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
3681
3272
|
while (1) {
|
3682
3273
|
switch (_context20.prev = _context20.next) {
|
3683
3274
|
case 0:
|
@@ -3706,7 +3297,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3706
3297
|
}, _callee20, this);
|
3707
3298
|
}));
|
3708
3299
|
|
3709
|
-
function getJsonData(
|
3300
|
+
function getJsonData(_x59, _x60, _x61) {
|
3710
3301
|
return _getJsonData.apply(this, arguments);
|
3711
3302
|
}
|
3712
3303
|
|
@@ -3724,10 +3315,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3724
3315
|
_proto.getBytesData =
|
3725
3316
|
/*#__PURE__*/
|
3726
3317
|
function () {
|
3727
|
-
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3318
|
+
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3728
3319
|
var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
|
3729
3320
|
|
3730
|
-
return
|
3321
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
3731
3322
|
while (1) {
|
3732
3323
|
switch (_context21.prev = _context21.next) {
|
3733
3324
|
case 0:
|
@@ -3756,7 +3347,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3756
3347
|
}, _callee21, this);
|
3757
3348
|
}));
|
3758
3349
|
|
3759
|
-
function getBytesData(
|
3350
|
+
function getBytesData(_x62, _x63, _x64) {
|
3760
3351
|
return _getBytesData.apply(this, arguments);
|
3761
3352
|
}
|
3762
3353
|
|
@@ -3777,9 +3368,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3777
3368
|
_proto.getGrants =
|
3778
3369
|
/*#__PURE__*/
|
3779
3370
|
function () {
|
3780
|
-
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3371
|
+
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(filter, forceRefresh) {
|
3781
3372
|
var filterString, grantsByConsultLockbox, decryptedConsults, encryptedGrants, decryptedGrants;
|
3782
|
-
return
|
3373
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
3783
3374
|
while (1) {
|
3784
3375
|
switch (_context22.prev = _context22.next) {
|
3785
3376
|
case 0:
|
@@ -3879,7 +3470,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3879
3470
|
}, _callee22, this);
|
3880
3471
|
}));
|
3881
3472
|
|
3882
|
-
function getGrants(
|
3473
|
+
function getGrants(_x65, _x66) {
|
3883
3474
|
return _getGrants.apply(this, arguments);
|
3884
3475
|
}
|
3885
3476
|
|
@@ -3897,9 +3488,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3897
3488
|
_proto.getCachedSecretCryptor =
|
3898
3489
|
/*#__PURE__*/
|
3899
3490
|
function () {
|
3900
|
-
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3491
|
+
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(lockboxUuid, lockboxOwnerUuid) {
|
3901
3492
|
var index, encryptedSecret, secret, cryptor;
|
3902
|
-
return
|
3493
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
3903
3494
|
while (1) {
|
3904
3495
|
switch (_context23.prev = _context23.next) {
|
3905
3496
|
case 0:
|
@@ -3944,7 +3535,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3944
3535
|
}, _callee23, this);
|
3945
3536
|
}));
|
3946
3537
|
|
3947
|
-
function getCachedSecretCryptor(
|
3538
|
+
function getCachedSecretCryptor(_x67, _x68) {
|
3948
3539
|
return _getCachedSecretCryptor.apply(this, arguments);
|
3949
3540
|
}
|
3950
3541
|
|
@@ -3964,8 +3555,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3964
3555
|
_proto.getPersonalInformationsFromConsultId =
|
3965
3556
|
/*#__PURE__*/
|
3966
3557
|
function () {
|
3967
|
-
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3968
|
-
return
|
3558
|
+
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(consultationId, category, forceRefresh) {
|
3559
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
3969
3560
|
while (1) {
|
3970
3561
|
switch (_context24.prev = _context24.next) {
|
3971
3562
|
case 0:
|
@@ -3983,7 +3574,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3983
3574
|
}, _callee24, this);
|
3984
3575
|
}));
|
3985
3576
|
|
3986
|
-
function getPersonalInformationsFromConsultId(
|
3577
|
+
function getPersonalInformationsFromConsultId(_x69, _x70, _x71) {
|
3987
3578
|
return _getPersonalInformationsFromConsultId.apply(this, arguments);
|
3988
3579
|
}
|
3989
3580
|
|
@@ -4002,8 +3593,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4002
3593
|
_proto.getMedicalDataFromConsultId =
|
4003
3594
|
/*#__PURE__*/
|
4004
3595
|
function () {
|
4005
|
-
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4006
|
-
return
|
3596
|
+
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(consultationId, forceRefresh) {
|
3597
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
4007
3598
|
while (1) {
|
4008
3599
|
switch (_context25.prev = _context25.next) {
|
4009
3600
|
case 0:
|
@@ -4021,7 +3612,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4021
3612
|
}, _callee25, this);
|
4022
3613
|
}));
|
4023
3614
|
|
4024
|
-
function getMedicalDataFromConsultId(
|
3615
|
+
function getMedicalDataFromConsultId(_x72, _x73) {
|
4025
3616
|
return _getMedicalDataFromConsultId.apply(this, arguments);
|
4026
3617
|
}
|
4027
3618
|
|
@@ -4029,12 +3620,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
4029
3620
|
}();
|
4030
3621
|
|
4031
3622
|
_proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
|
4032
|
-
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3623
|
+
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(consultationId, category, forceRefresh) {
|
4033
3624
|
var _this3 = this;
|
4034
3625
|
|
4035
3626
|
var grants, workflowData, _loop, _iterator, _step;
|
4036
3627
|
|
4037
|
-
return
|
3628
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context28) {
|
4038
3629
|
while (1) {
|
4039
3630
|
switch (_context28.prev = _context28.next) {
|
4040
3631
|
case 0:
|
@@ -4050,9 +3641,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4050
3641
|
case 3:
|
4051
3642
|
grants = _context28.sent;
|
4052
3643
|
workflowData = [];
|
4053
|
-
_loop = /*#__PURE__*/
|
3644
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
4054
3645
|
var grant, manifest, data;
|
4055
|
-
return
|
3646
|
+
return _regeneratorRuntime().wrap(function _loop$(_context27) {
|
4056
3647
|
while (1) {
|
4057
3648
|
switch (_context27.prev = _context27.next) {
|
4058
3649
|
case 0:
|
@@ -4086,8 +3677,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4086
3677
|
case 8:
|
4087
3678
|
_context27.next = 10;
|
4088
3679
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4089
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
4090
|
-
return
|
3680
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(entry) {
|
3681
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
4091
3682
|
while (1) {
|
4092
3683
|
switch (_context26.prev = _context26.next) {
|
4093
3684
|
case 0:
|
@@ -4114,7 +3705,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4114
3705
|
}, _callee26);
|
4115
3706
|
}));
|
4116
3707
|
|
4117
|
-
return function (
|
3708
|
+
return function (_x77) {
|
4118
3709
|
return _ref3.apply(this, arguments);
|
4119
3710
|
};
|
4120
3711
|
}()));
|
@@ -4155,7 +3746,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4155
3746
|
}, _callee27, this);
|
4156
3747
|
}));
|
4157
3748
|
|
4158
|
-
function getMetaCategoryFromConsultId(
|
3749
|
+
function getMetaCategoryFromConsultId(_x74, _x75, _x76) {
|
4159
3750
|
return _getMetaCategoryFromConsultId.apply(this, arguments);
|
4160
3751
|
}
|
4161
3752
|
|
@@ -4171,9 +3762,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4171
3762
|
_proto.getPersonalInformations =
|
4172
3763
|
/*#__PURE__*/
|
4173
3764
|
function () {
|
4174
|
-
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3765
|
+
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(userId) {
|
4175
3766
|
var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4176
|
-
return
|
3767
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context29) {
|
4177
3768
|
while (1) {
|
4178
3769
|
switch (_context29.prev = _context29.next) {
|
4179
3770
|
case 0:
|
@@ -4242,7 +3833,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4242
3833
|
}, _callee28, this);
|
4243
3834
|
}));
|
4244
3835
|
|
4245
|
-
function getPersonalInformations(
|
3836
|
+
function getPersonalInformations(_x78) {
|
4246
3837
|
return _getPersonalInformations.apply(this, arguments);
|
4247
3838
|
}
|
4248
3839
|
|
@@ -4259,9 +3850,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4259
3850
|
_proto.getGrantFromConsultId =
|
4260
3851
|
/*#__PURE__*/
|
4261
3852
|
function () {
|
4262
|
-
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3853
|
+
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(consultationId) {
|
4263
3854
|
var grants;
|
4264
|
-
return
|
3855
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context30) {
|
4265
3856
|
while (1) {
|
4266
3857
|
switch (_context30.prev = _context30.next) {
|
4267
3858
|
case 0:
|
@@ -4291,7 +3882,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4291
3882
|
}, _callee29, this);
|
4292
3883
|
}));
|
4293
3884
|
|
4294
|
-
function getGrantFromConsultId(
|
3885
|
+
function getGrantFromConsultId(_x79) {
|
4295
3886
|
return _getGrantFromConsultId.apply(this, arguments);
|
4296
3887
|
}
|
4297
3888
|
|
@@ -4307,9 +3898,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4307
3898
|
_proto.getIdentityFromConsultId =
|
4308
3899
|
/*#__PURE__*/
|
4309
3900
|
function () {
|
4310
|
-
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3901
|
+
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(consultationId) {
|
4311
3902
|
var grant;
|
4312
|
-
return
|
3903
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context31) {
|
4313
3904
|
while (1) {
|
4314
3905
|
switch (_context31.prev = _context31.next) {
|
4315
3906
|
case 0:
|
@@ -4341,7 +3932,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4341
3932
|
}, _callee30, this);
|
4342
3933
|
}));
|
4343
3934
|
|
4344
|
-
function getIdentityFromConsultId(
|
3935
|
+
function getIdentityFromConsultId(_x80) {
|
4345
3936
|
return _getIdentityFromConsultId.apply(this, arguments);
|
4346
3937
|
}
|
4347
3938
|
|
@@ -4362,11 +3953,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4362
3953
|
_proto.getLockboxManifest =
|
4363
3954
|
/*#__PURE__*/
|
4364
3955
|
function () {
|
4365
|
-
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3956
|
+
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
|
4366
3957
|
var _this4 = this;
|
4367
3958
|
|
4368
3959
|
var manifestKey;
|
4369
|
-
return
|
3960
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context33) {
|
4370
3961
|
while (1) {
|
4371
3962
|
switch (_context33.prev = _context33.next) {
|
4372
3963
|
case 0:
|
@@ -4391,9 +3982,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4391
3982
|
case 4:
|
4392
3983
|
return _context33.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
|
4393
3984
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4394
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
3985
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(entry) {
|
4395
3986
|
var privateMeta;
|
4396
|
-
return
|
3987
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context32) {
|
4397
3988
|
while (1) {
|
4398
3989
|
switch (_context32.prev = _context32.next) {
|
4399
3990
|
case 0:
|
@@ -4420,7 +4011,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4420
4011
|
}, _callee31);
|
4421
4012
|
}));
|
4422
4013
|
|
4423
|
-
return function (
|
4014
|
+
return function (_x86) {
|
4424
4015
|
return _ref4.apply(this, arguments);
|
4425
4016
|
};
|
4426
4017
|
}())).then(function (manifest) {
|
@@ -4436,7 +4027,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4436
4027
|
}, _callee32, this);
|
4437
4028
|
}));
|
4438
4029
|
|
4439
|
-
function getLockboxManifest(
|
4030
|
+
function getLockboxManifest(_x81, _x82, _x83, _x84, _x85) {
|
4440
4031
|
return _getLockboxManifest.apply(this, arguments);
|
4441
4032
|
}
|
4442
4033
|
|
@@ -4454,11 +4045,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4454
4045
|
_proto.createPersonalInformations =
|
4455
4046
|
/*#__PURE__*/
|
4456
4047
|
function () {
|
4457
|
-
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4048
|
+
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(identity, data, dataUuid) {
|
4458
4049
|
var _yield$this$getGrants;
|
4459
4050
|
|
4460
4051
|
var lockboxUuid;
|
4461
|
-
return
|
4052
|
+
return _regeneratorRuntime().wrap(function _callee33$(_context34) {
|
4462
4053
|
while (1) {
|
4463
4054
|
switch (_context34.prev = _context34.next) {
|
4464
4055
|
case 0:
|
@@ -4506,7 +4097,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4506
4097
|
}, _callee33, this);
|
4507
4098
|
}));
|
4508
4099
|
|
4509
|
-
function createPersonalInformations(
|
4100
|
+
function createPersonalInformations(_x87, _x88, _x89) {
|
4510
4101
|
return _createPersonalInformations.apply(this, arguments);
|
4511
4102
|
}
|
4512
4103
|
|
@@ -4524,11 +4115,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4524
4115
|
_proto.createUserPreference =
|
4525
4116
|
/*#__PURE__*/
|
4526
4117
|
function () {
|
4527
|
-
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4118
|
+
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(identity, preference, dataUuid) {
|
4528
4119
|
var _yield$this$getGrants2;
|
4529
4120
|
|
4530
4121
|
var lockboxUuid;
|
4531
|
-
return
|
4122
|
+
return _regeneratorRuntime().wrap(function _callee34$(_context35) {
|
4532
4123
|
while (1) {
|
4533
4124
|
switch (_context35.prev = _context35.next) {
|
4534
4125
|
case 0:
|
@@ -4576,7 +4167,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4576
4167
|
}, _callee34, this);
|
4577
4168
|
}));
|
4578
4169
|
|
4579
|
-
function createUserPreference(
|
4170
|
+
function createUserPreference(_x90, _x91, _x92) {
|
4580
4171
|
return _createUserPreference.apply(this, arguments);
|
4581
4172
|
}
|
4582
4173
|
|
@@ -4592,9 +4183,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4592
4183
|
_proto.getDataFromGrant =
|
4593
4184
|
/*#__PURE__*/
|
4594
4185
|
function () {
|
4595
|
-
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4186
|
+
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(grant, filter) {
|
4596
4187
|
var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4597
|
-
return
|
4188
|
+
return _regeneratorRuntime().wrap(function _callee35$(_context36) {
|
4598
4189
|
while (1) {
|
4599
4190
|
switch (_context36.prev = _context36.next) {
|
4600
4191
|
case 0:
|
@@ -4644,7 +4235,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4644
4235
|
}, _callee35, this);
|
4645
4236
|
}));
|
4646
4237
|
|
4647
|
-
function getDataFromGrant(
|
4238
|
+
function getDataFromGrant(_x93, _x94) {
|
4648
4239
|
return _getDataFromGrant.apply(this, arguments);
|
4649
4240
|
}
|
4650
4241
|
|
@@ -4660,9 +4251,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4660
4251
|
_proto.getUserPreferenceFromConsultId =
|
4661
4252
|
/*#__PURE__*/
|
4662
4253
|
function () {
|
4663
|
-
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4254
|
+
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(consultationId) {
|
4664
4255
|
var grant;
|
4665
|
-
return
|
4256
|
+
return _regeneratorRuntime().wrap(function _callee36$(_context37) {
|
4666
4257
|
while (1) {
|
4667
4258
|
switch (_context37.prev = _context37.next) {
|
4668
4259
|
case 0:
|
@@ -4693,7 +4284,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4693
4284
|
}, _callee36, this);
|
4694
4285
|
}));
|
4695
4286
|
|
4696
|
-
function getUserPreferenceFromConsultId(
|
4287
|
+
function getUserPreferenceFromConsultId(_x95) {
|
4697
4288
|
return _getUserPreferenceFromConsultId.apply(this, arguments);
|
4698
4289
|
}
|
4699
4290
|
|
@@ -4709,9 +4300,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4709
4300
|
_proto.getUserPreference =
|
4710
4301
|
/*#__PURE__*/
|
4711
4302
|
function () {
|
4712
|
-
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4303
|
+
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(identity) {
|
4713
4304
|
var grant;
|
4714
|
-
return
|
4305
|
+
return _regeneratorRuntime().wrap(function _callee37$(_context38) {
|
4715
4306
|
while (1) {
|
4716
4307
|
switch (_context38.prev = _context38.next) {
|
4717
4308
|
case 0:
|
@@ -4744,7 +4335,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4744
4335
|
}, _callee37, this);
|
4745
4336
|
}));
|
4746
4337
|
|
4747
|
-
function getUserPreference(
|
4338
|
+
function getUserPreference(_x96) {
|
4748
4339
|
return _getUserPreference.apply(this, arguments);
|
4749
4340
|
}
|
4750
4341
|
|
@@ -4760,9 +4351,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4760
4351
|
_proto.getRecoveryDataFromConsultId =
|
4761
4352
|
/*#__PURE__*/
|
4762
4353
|
function () {
|
4763
|
-
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4354
|
+
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(consultationId) {
|
4764
4355
|
var grant;
|
4765
|
-
return
|
4356
|
+
return _regeneratorRuntime().wrap(function _callee38$(_context39) {
|
4766
4357
|
while (1) {
|
4767
4358
|
switch (_context39.prev = _context39.next) {
|
4768
4359
|
case 0:
|
@@ -4793,7 +4384,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4793
4384
|
}, _callee38, this);
|
4794
4385
|
}));
|
4795
4386
|
|
4796
|
-
function getRecoveryDataFromConsultId(
|
4387
|
+
function getRecoveryDataFromConsultId(_x97) {
|
4797
4388
|
return _getRecoveryDataFromConsultId.apply(this, arguments);
|
4798
4389
|
}
|
4799
4390
|
|
@@ -4809,9 +4400,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4809
4400
|
_proto.getRecoveryData =
|
4810
4401
|
/*#__PURE__*/
|
4811
4402
|
function () {
|
4812
|
-
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4403
|
+
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(identity) {
|
4813
4404
|
var grant;
|
4814
|
-
return
|
4405
|
+
return _regeneratorRuntime().wrap(function _callee39$(_context40) {
|
4815
4406
|
while (1) {
|
4816
4407
|
switch (_context40.prev = _context40.next) {
|
4817
4408
|
case 0:
|
@@ -4844,7 +4435,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4844
4435
|
}, _callee39, this);
|
4845
4436
|
}));
|
4846
4437
|
|
4847
|
-
function getRecoveryData(
|
4438
|
+
function getRecoveryData(_x98) {
|
4848
4439
|
return _getRecoveryData.apply(this, arguments);
|
4849
4440
|
}
|
4850
4441
|
|
@@ -4865,10 +4456,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4865
4456
|
_proto.getAssignedConsultations =
|
4866
4457
|
/*#__PURE__*/
|
4867
4458
|
function () {
|
4868
|
-
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4459
|
+
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(practiceUuid, forceRefresh) {
|
4869
4460
|
var _this5 = this;
|
4870
4461
|
|
4871
|
-
return
|
4462
|
+
return _regeneratorRuntime().wrap(function _callee41$(_context42) {
|
4872
4463
|
while (1) {
|
4873
4464
|
switch (_context42.prev = _context42.next) {
|
4874
4465
|
case 0:
|
@@ -4887,8 +4478,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4887
4478
|
documentType: DocumentType.PopulatedWorkflowData
|
4888
4479
|
}, true, undefined, forceRefresh).then(function (manifest) {
|
4889
4480
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4890
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
4891
|
-
return
|
4481
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(entry) {
|
4482
|
+
return _regeneratorRuntime().wrap(function _callee40$(_context41) {
|
4892
4483
|
while (1) {
|
4893
4484
|
switch (_context41.prev = _context41.next) {
|
4894
4485
|
case 0:
|
@@ -4906,7 +4497,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4906
4497
|
}, _callee40);
|
4907
4498
|
}));
|
4908
4499
|
|
4909
|
-
return function (
|
4500
|
+
return function (_x101) {
|
4910
4501
|
return _ref5.apply(this, arguments);
|
4911
4502
|
};
|
4912
4503
|
}())).then(function (promise) {
|
@@ -4926,7 +4517,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4926
4517
|
}, _callee41, this);
|
4927
4518
|
}));
|
4928
4519
|
|
4929
|
-
function getAssignedConsultations(
|
4520
|
+
function getAssignedConsultations(_x99, _x100) {
|
4930
4521
|
return _getAssignedConsultations.apply(this, arguments);
|
4931
4522
|
}
|
4932
4523
|
|
@@ -4942,11 +4533,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4942
4533
|
_proto.getPastConsultationsFromConsultId =
|
4943
4534
|
/*#__PURE__*/
|
4944
4535
|
function () {
|
4945
|
-
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4536
|
+
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(consultationId, practiceUuid) {
|
4946
4537
|
var _this6 = this;
|
4947
4538
|
|
4948
4539
|
var grant, consultationsInLockbox;
|
4949
|
-
return
|
4540
|
+
return _regeneratorRuntime().wrap(function _callee43$(_context44) {
|
4950
4541
|
while (1) {
|
4951
4542
|
switch (_context44.prev = _context44.next) {
|
4952
4543
|
case 0:
|
@@ -4985,8 +4576,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4985
4576
|
case 10:
|
4986
4577
|
_context44.next = 12;
|
4987
4578
|
return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
|
4988
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
4989
|
-
return
|
4579
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(consultId) {
|
4580
|
+
return _regeneratorRuntime().wrap(function _callee42$(_context43) {
|
4990
4581
|
while (1) {
|
4991
4582
|
switch (_context43.prev = _context43.next) {
|
4992
4583
|
case 0:
|
@@ -5004,7 +4595,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5004
4595
|
}, _callee42);
|
5005
4596
|
}));
|
5006
4597
|
|
5007
|
-
return function (
|
4598
|
+
return function (_x104) {
|
5008
4599
|
return _ref6.apply(this, arguments);
|
5009
4600
|
};
|
5010
4601
|
}()));
|
@@ -5020,7 +4611,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5020
4611
|
}, _callee43, this);
|
5021
4612
|
}));
|
5022
4613
|
|
5023
|
-
function getPastConsultationsFromConsultId(
|
4614
|
+
function getPastConsultationsFromConsultId(_x102, _x103) {
|
5024
4615
|
return _getPastConsultationsFromConsultId.apply(this, arguments);
|
5025
4616
|
}
|
5026
4617
|
|
@@ -5037,10 +4628,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
5037
4628
|
_proto.getPatientConsultationData =
|
5038
4629
|
/*#__PURE__*/
|
5039
4630
|
function () {
|
5040
|
-
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4631
|
+
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(consultationId, forceRefresh) {
|
5041
4632
|
var _this7 = this;
|
5042
4633
|
|
5043
|
-
return
|
4634
|
+
return _regeneratorRuntime().wrap(function _callee44$(_context45) {
|
5044
4635
|
while (1) {
|
5045
4636
|
switch (_context45.prev = _context45.next) {
|
5046
4637
|
case 0:
|
@@ -5078,7 +4669,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5078
4669
|
}, _callee44, this);
|
5079
4670
|
}));
|
5080
4671
|
|
5081
|
-
function getPatientConsultationData(
|
4672
|
+
function getPatientConsultationData(_x105, _x106) {
|
5082
4673
|
return _getPatientConsultationData.apply(this, arguments);
|
5083
4674
|
}
|
5084
4675
|
|
@@ -5094,8 +4685,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5094
4685
|
_proto.getPatientPrescriptionsList =
|
5095
4686
|
/*#__PURE__*/
|
5096
4687
|
function () {
|
5097
|
-
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5098
|
-
return
|
4688
|
+
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(consultationId) {
|
4689
|
+
return _regeneratorRuntime().wrap(function _callee45$(_context46) {
|
5099
4690
|
while (1) {
|
5100
4691
|
switch (_context46.prev = _context46.next) {
|
5101
4692
|
case 0:
|
@@ -5112,7 +4703,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5112
4703
|
}, _callee45, this);
|
5113
4704
|
}));
|
5114
4705
|
|
5115
|
-
function getPatientPrescriptionsList(
|
4706
|
+
function getPatientPrescriptionsList(_x107) {
|
5116
4707
|
return _getPatientPrescriptionsList.apply(this, arguments);
|
5117
4708
|
}
|
5118
4709
|
|
@@ -5128,8 +4719,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5128
4719
|
_proto.getPatientResultsList =
|
5129
4720
|
/*#__PURE__*/
|
5130
4721
|
function () {
|
5131
|
-
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5132
|
-
return
|
4722
|
+
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(consultationId) {
|
4723
|
+
return _regeneratorRuntime().wrap(function _callee46$(_context47) {
|
5133
4724
|
while (1) {
|
5134
4725
|
switch (_context47.prev = _context47.next) {
|
5135
4726
|
case 0:
|
@@ -5146,7 +4737,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5146
4737
|
}, _callee46, this);
|
5147
4738
|
}));
|
5148
4739
|
|
5149
|
-
function getPatientResultsList(
|
4740
|
+
function getPatientResultsList(_x108) {
|
5150
4741
|
return _getPatientResultsList.apply(this, arguments);
|
5151
4742
|
}
|
5152
4743
|
|
@@ -5162,8 +4753,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5162
4753
|
_proto.getPatientTreatmentPlans =
|
5163
4754
|
/*#__PURE__*/
|
5164
4755
|
function () {
|
5165
|
-
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5166
|
-
return
|
4756
|
+
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(consultationId) {
|
4757
|
+
return _regeneratorRuntime().wrap(function _callee47$(_context48) {
|
5167
4758
|
while (1) {
|
5168
4759
|
switch (_context48.prev = _context48.next) {
|
5169
4760
|
case 0:
|
@@ -5180,7 +4771,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5180
4771
|
}, _callee47, this);
|
5181
4772
|
}));
|
5182
4773
|
|
5183
|
-
function getPatientTreatmentPlans(
|
4774
|
+
function getPatientTreatmentPlans(_x109) {
|
5184
4775
|
return _getPatientTreatmentPlans.apply(this, arguments);
|
5185
4776
|
}
|
5186
4777
|
|
@@ -5197,8 +4788,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5197
4788
|
_proto.getPatientTreatmentPlanByUuid =
|
5198
4789
|
/*#__PURE__*/
|
5199
4790
|
function () {
|
5200
|
-
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5201
|
-
return
|
4791
|
+
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(consultationId, treatmentPlanId) {
|
4792
|
+
return _regeneratorRuntime().wrap(function _callee48$(_context49) {
|
5202
4793
|
while (1) {
|
5203
4794
|
switch (_context49.prev = _context49.next) {
|
5204
4795
|
case 0:
|
@@ -5216,7 +4807,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5216
4807
|
}, _callee48, this);
|
5217
4808
|
}));
|
5218
4809
|
|
5219
|
-
function getPatientTreatmentPlanByUuid(
|
4810
|
+
function getPatientTreatmentPlanByUuid(_x110, _x111) {
|
5220
4811
|
return _getPatientTreatmentPlanByUuid.apply(this, arguments);
|
5221
4812
|
}
|
5222
4813
|
|
@@ -5236,10 +4827,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
5236
4827
|
_proto.getPatientDocumentsList =
|
5237
4828
|
/*#__PURE__*/
|
5238
4829
|
function () {
|
5239
|
-
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4830
|
+
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(filters, expandPrivateMetadata, consultationId) {
|
5240
4831
|
var _this8 = this;
|
5241
4832
|
|
5242
|
-
return
|
4833
|
+
return _regeneratorRuntime().wrap(function _callee50$(_context51) {
|
5243
4834
|
while (1) {
|
5244
4835
|
switch (_context51.prev = _context51.next) {
|
5245
4836
|
case 0:
|
@@ -5255,8 +4846,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5255
4846
|
consultationId: consultationId
|
5256
4847
|
}), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
|
5257
4848
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
5258
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
5259
|
-
return
|
4849
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(entry) {
|
4850
|
+
return _regeneratorRuntime().wrap(function _callee49$(_context50) {
|
5260
4851
|
while (1) {
|
5261
4852
|
switch (_context50.prev = _context50.next) {
|
5262
4853
|
case 0:
|
@@ -5273,7 +4864,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5273
4864
|
}, _callee49);
|
5274
4865
|
}));
|
5275
4866
|
|
5276
|
-
return function (
|
4867
|
+
return function (_x115) {
|
5277
4868
|
return _ref7.apply(this, arguments);
|
5278
4869
|
};
|
5279
4870
|
}()));
|
@@ -5291,7 +4882,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5291
4882
|
}, _callee50, this);
|
5292
4883
|
}));
|
5293
4884
|
|
5294
|
-
function getPatientDocumentsList(
|
4885
|
+
function getPatientDocumentsList(_x112, _x113, _x114) {
|
5295
4886
|
return _getPatientDocumentsList.apply(this, arguments);
|
5296
4887
|
}
|
5297
4888
|
|
@@ -5314,9 +4905,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5314
4905
|
_proto.recoverPrivateKeyFromSecurityQuestions =
|
5315
4906
|
/*#__PURE__*/
|
5316
4907
|
function () {
|
5317
|
-
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4908
|
+
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5318
4909
|
var shards, answeredShards, privateKey;
|
5319
|
-
return
|
4910
|
+
return _regeneratorRuntime().wrap(function _callee51$(_context52) {
|
5320
4911
|
while (1) {
|
5321
4912
|
switch (_context52.prev = _context52.next) {
|
5322
4913
|
case 0:
|
@@ -5353,7 +4944,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5353
4944
|
}, _callee51, this);
|
5354
4945
|
}));
|
5355
4946
|
|
5356
|
-
function recoverPrivateKeyFromSecurityQuestions(
|
4947
|
+
function recoverPrivateKeyFromSecurityQuestions(_x116, _x117, _x118, _x119) {
|
5357
4948
|
return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
|
5358
4949
|
}
|
5359
4950
|
|
@@ -5370,9 +4961,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5370
4961
|
_proto.recoverPrivateKeyFromPassword =
|
5371
4962
|
/*#__PURE__*/
|
5372
4963
|
function () {
|
5373
|
-
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4964
|
+
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(id, password) {
|
5374
4965
|
var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
|
5375
|
-
return
|
4966
|
+
return _regeneratorRuntime().wrap(function _callee52$(_context53) {
|
5376
4967
|
while (1) {
|
5377
4968
|
switch (_context53.prev = _context53.next) {
|
5378
4969
|
case 0:
|
@@ -5401,7 +4992,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5401
4992
|
}, _callee52, this);
|
5402
4993
|
}));
|
5403
4994
|
|
5404
|
-
function recoverPrivateKeyFromPassword(
|
4995
|
+
function recoverPrivateKeyFromPassword(_x120, _x121) {
|
5405
4996
|
return _recoverPrivateKeyFromPassword.apply(this, arguments);
|
5406
4997
|
}
|
5407
4998
|
|
@@ -5418,9 +5009,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5418
5009
|
_proto.recoverPrivateKeyFromMasterKey =
|
5419
5010
|
/*#__PURE__*/
|
5420
5011
|
function () {
|
5421
|
-
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5012
|
+
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(id, masterKey) {
|
5422
5013
|
var recoveryPayload, symmetricDecryptor, privateKey;
|
5423
|
-
return
|
5014
|
+
return _regeneratorRuntime().wrap(function _callee53$(_context54) {
|
5424
5015
|
while (1) {
|
5425
5016
|
switch (_context54.prev = _context54.next) {
|
5426
5017
|
case 0:
|
@@ -5441,7 +5032,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5441
5032
|
}, _callee53, this);
|
5442
5033
|
}));
|
5443
5034
|
|
5444
|
-
function recoverPrivateKeyFromMasterKey(
|
5035
|
+
function recoverPrivateKeyFromMasterKey(_x122, _x123) {
|
5445
5036
|
return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
|
5446
5037
|
}
|
5447
5038
|
|
@@ -5460,9 +5051,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5460
5051
|
_proto.updateSecurityQuestions =
|
5461
5052
|
/*#__PURE__*/
|
5462
5053
|
function () {
|
5463
|
-
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5054
|
+
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5464
5055
|
var securityQuestionPayload, updateRequest;
|
5465
|
-
return
|
5056
|
+
return _regeneratorRuntime().wrap(function _callee54$(_context55) {
|
5466
5057
|
while (1) {
|
5467
5058
|
switch (_context55.prev = _context55.next) {
|
5468
5059
|
case 0:
|
@@ -5492,7 +5083,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5492
5083
|
}, _callee54, this);
|
5493
5084
|
}));
|
5494
5085
|
|
5495
|
-
function updateSecurityQuestions(
|
5086
|
+
function updateSecurityQuestions(_x124, _x125, _x126, _x127) {
|
5496
5087
|
return _updateSecurityQuestions.apply(this, arguments);
|
5497
5088
|
}
|
5498
5089
|
|
@@ -5514,9 +5105,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5514
5105
|
_proto.updatePassword =
|
5515
5106
|
/*#__PURE__*/
|
5516
5107
|
function () {
|
5517
|
-
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5108
|
+
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55(id, newPassword, oldPassword) {
|
5518
5109
|
var symmetricEncryptor, passwordPayload, updateRequest;
|
5519
|
-
return
|
5110
|
+
return _regeneratorRuntime().wrap(function _callee55$(_context56) {
|
5520
5111
|
while (1) {
|
5521
5112
|
switch (_context56.prev = _context56.next) {
|
5522
5113
|
case 0:
|
@@ -5557,7 +5148,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5557
5148
|
}, _callee55, this);
|
5558
5149
|
}));
|
5559
5150
|
|
5560
|
-
function updatePassword(
|
5151
|
+
function updatePassword(_x128, _x129, _x130) {
|
5561
5152
|
return _updatePassword.apply(this, arguments);
|
5562
5153
|
}
|
5563
5154
|
|
@@ -5576,9 +5167,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5576
5167
|
_proto.updateMasterKey =
|
5577
5168
|
/*#__PURE__*/
|
5578
5169
|
function () {
|
5579
|
-
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5170
|
+
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee56(id, masterKey, lockboxUuid) {
|
5580
5171
|
var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
|
5581
|
-
return
|
5172
|
+
return _regeneratorRuntime().wrap(function _callee56$(_context57) {
|
5582
5173
|
while (1) {
|
5583
5174
|
switch (_context57.prev = _context57.next) {
|
5584
5175
|
case 0:
|
@@ -5619,7 +5210,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5619
5210
|
}, _callee56, this);
|
5620
5211
|
}));
|
5621
5212
|
|
5622
|
-
function updateMasterKey(
|
5213
|
+
function updateMasterKey(_x131, _x132, _x133) {
|
5623
5214
|
return _updateMasterKey.apply(this, arguments);
|
5624
5215
|
}
|
5625
5216
|
|