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
@@ -9,1029 +9,612 @@ var initApis__default = _interopDefault(initApis);
|
|
9
9
|
var oroToolbox = require('oro-toolbox');
|
10
10
|
var idbKeyval = require('idb-keyval');
|
11
11
|
|
12
|
-
function
|
13
|
-
|
14
|
-
return new BabelRegExp(re, void 0, groups);
|
15
|
-
};
|
16
|
-
|
17
|
-
var _super = RegExp.prototype,
|
18
|
-
_groups = new WeakMap();
|
19
|
-
|
20
|
-
function BabelRegExp(re, flags, groups) {
|
21
|
-
var _this = new RegExp(re, flags);
|
22
|
-
|
23
|
-
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
|
24
|
-
}
|
25
|
-
|
26
|
-
function buildGroups(result, re) {
|
27
|
-
var g = _groups.get(re);
|
28
|
-
|
29
|
-
return Object.keys(g).reduce(function (groups, name) {
|
30
|
-
return groups[name] = result[g[name]], groups;
|
31
|
-
}, Object.create(null));
|
32
|
-
}
|
33
|
-
|
34
|
-
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
35
|
-
var result = _super.exec.call(this, str);
|
36
|
-
|
37
|
-
return result && (result.groups = buildGroups(result, this)), result;
|
38
|
-
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
39
|
-
if ("string" == typeof substitution) {
|
40
|
-
var groups = _groups.get(this);
|
41
|
-
|
42
|
-
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
43
|
-
return "$" + groups[name];
|
44
|
-
}));
|
45
|
-
}
|
46
|
-
|
47
|
-
if ("function" == typeof substitution) {
|
48
|
-
var _this = this;
|
49
|
-
|
50
|
-
return _super[Symbol.replace].call(this, str, function () {
|
51
|
-
var args = arguments;
|
52
|
-
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
|
53
|
-
});
|
54
|
-
}
|
55
|
-
|
56
|
-
return _super[Symbol.replace].call(this, str, substitution);
|
57
|
-
}, _wrapRegExp.apply(this, arguments);
|
58
|
-
}
|
59
|
-
|
60
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
61
|
-
try {
|
62
|
-
var info = gen[key](arg);
|
63
|
-
var value = info.value;
|
64
|
-
} catch (error) {
|
65
|
-
reject(error);
|
66
|
-
return;
|
67
|
-
}
|
68
|
-
|
69
|
-
if (info.done) {
|
70
|
-
resolve(value);
|
71
|
-
} else {
|
72
|
-
Promise.resolve(value).then(_next, _throw);
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
function _asyncToGenerator(fn) {
|
77
|
-
return function () {
|
78
|
-
var self = this,
|
79
|
-
args = arguments;
|
80
|
-
return new Promise(function (resolve, reject) {
|
81
|
-
var gen = fn.apply(self, args);
|
82
|
-
|
83
|
-
function _next(value) {
|
84
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
85
|
-
}
|
86
|
-
|
87
|
-
function _throw(err) {
|
88
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
89
|
-
}
|
90
|
-
|
91
|
-
_next(undefined);
|
92
|
-
});
|
93
|
-
};
|
94
|
-
}
|
95
|
-
|
96
|
-
function _extends() {
|
97
|
-
_extends = Object.assign || function (target) {
|
98
|
-
for (var i = 1; i < arguments.length; i++) {
|
99
|
-
var source = arguments[i];
|
100
|
-
|
101
|
-
for (var key in source) {
|
102
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
103
|
-
target[key] = source[key];
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
return target;
|
109
|
-
};
|
110
|
-
|
111
|
-
return _extends.apply(this, arguments);
|
112
|
-
}
|
113
|
-
|
114
|
-
function _inherits(subClass, superClass) {
|
115
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
116
|
-
throw new TypeError("Super expression must either be null or a function");
|
117
|
-
}
|
118
|
-
|
119
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
120
|
-
constructor: {
|
121
|
-
value: subClass,
|
122
|
-
writable: true,
|
123
|
-
configurable: true
|
124
|
-
}
|
125
|
-
});
|
126
|
-
Object.defineProperty(subClass, "prototype", {
|
127
|
-
writable: false
|
128
|
-
});
|
129
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
130
|
-
}
|
131
|
-
|
132
|
-
function _inheritsLoose(subClass, superClass) {
|
133
|
-
subClass.prototype = Object.create(superClass.prototype);
|
134
|
-
subClass.prototype.constructor = subClass;
|
135
|
-
|
136
|
-
_setPrototypeOf(subClass, superClass);
|
137
|
-
}
|
12
|
+
function _regeneratorRuntime() {
|
13
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
138
14
|
|
139
|
-
function
|
140
|
-
|
141
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
142
|
-
};
|
143
|
-
return _getPrototypeOf(o);
|
144
|
-
}
|
145
|
-
|
146
|
-
function _setPrototypeOf(o, p) {
|
147
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
148
|
-
o.__proto__ = p;
|
149
|
-
return o;
|
15
|
+
_regeneratorRuntime = function () {
|
16
|
+
return exports;
|
150
17
|
};
|
151
18
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
function
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
try {
|
161
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
162
|
-
return true;
|
163
|
-
} catch (e) {
|
164
|
-
return false;
|
165
|
-
}
|
166
|
-
}
|
167
|
-
|
168
|
-
function _construct(Parent, args, Class) {
|
169
|
-
if (_isNativeReflectConstruct()) {
|
170
|
-
_construct = Reflect.construct;
|
171
|
-
} else {
|
172
|
-
_construct = function _construct(Parent, args, Class) {
|
173
|
-
var a = [null];
|
174
|
-
a.push.apply(a, args);
|
175
|
-
var Constructor = Function.bind.apply(Parent, a);
|
176
|
-
var instance = new Constructor();
|
177
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
178
|
-
return instance;
|
179
|
-
};
|
180
|
-
}
|
181
|
-
|
182
|
-
return _construct.apply(null, arguments);
|
183
|
-
}
|
184
|
-
|
185
|
-
function _isNativeFunction(fn) {
|
186
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
187
|
-
}
|
188
|
-
|
189
|
-
function _wrapNativeSuper(Class) {
|
190
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
191
|
-
|
192
|
-
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
193
|
-
if (Class === null || !_isNativeFunction(Class)) return Class;
|
194
|
-
|
195
|
-
if (typeof Class !== "function") {
|
196
|
-
throw new TypeError("Super expression must either be null or a function");
|
197
|
-
}
|
198
|
-
|
199
|
-
if (typeof _cache !== "undefined") {
|
200
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
201
|
-
|
202
|
-
_cache.set(Class, Wrapper);
|
203
|
-
}
|
204
|
-
|
205
|
-
function Wrapper() {
|
206
|
-
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
207
|
-
}
|
208
|
-
|
209
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
210
|
-
constructor: {
|
211
|
-
value: Wrapper,
|
212
|
-
enumerable: false,
|
213
|
-
writable: true,
|
214
|
-
configurable: true
|
215
|
-
}
|
216
|
-
});
|
217
|
-
return _setPrototypeOf(Wrapper, Class);
|
218
|
-
};
|
219
|
-
|
220
|
-
return _wrapNativeSuper(Class);
|
221
|
-
}
|
222
|
-
|
223
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
224
|
-
if (source == null) return {};
|
225
|
-
var target = {};
|
226
|
-
var sourceKeys = Object.keys(source);
|
227
|
-
var key, i;
|
228
|
-
|
229
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
230
|
-
key = sourceKeys[i];
|
231
|
-
if (excluded.indexOf(key) >= 0) continue;
|
232
|
-
target[key] = source[key];
|
233
|
-
}
|
234
|
-
|
235
|
-
return target;
|
236
|
-
}
|
237
|
-
|
238
|
-
function _unsupportedIterableToArray(o, minLen) {
|
239
|
-
if (!o) return;
|
240
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
241
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
242
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
243
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
244
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
245
|
-
}
|
246
|
-
|
247
|
-
function _arrayLikeToArray(arr, len) {
|
248
|
-
if (len == null || len > arr.length) len = arr.length;
|
249
|
-
|
250
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
251
|
-
|
252
|
-
return arr2;
|
253
|
-
}
|
254
|
-
|
255
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
256
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
257
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
258
|
-
|
259
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
260
|
-
if (it) o = it;
|
261
|
-
var i = 0;
|
262
|
-
return function () {
|
263
|
-
if (i >= o.length) return {
|
264
|
-
done: true
|
265
|
-
};
|
266
|
-
return {
|
267
|
-
done: false,
|
268
|
-
value: o[i++]
|
269
|
-
};
|
270
|
-
};
|
271
|
-
}
|
272
|
-
|
273
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
274
|
-
}
|
275
|
-
|
276
|
-
function createCommonjsModule(fn, module) {
|
277
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
278
|
-
}
|
279
|
-
|
280
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
281
|
-
/**
|
282
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
283
|
-
*
|
284
|
-
* This source code is licensed under the MIT license found in the
|
285
|
-
* LICENSE file in the root directory of this source tree.
|
286
|
-
*/
|
287
|
-
|
288
|
-
var runtime = (function (exports) {
|
289
|
-
|
290
|
-
var Op = Object.prototype;
|
291
|
-
var hasOwn = Op.hasOwnProperty;
|
292
|
-
var undefined$1; // More compressible than void 0.
|
293
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
294
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
295
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
296
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
19
|
+
var exports = {},
|
20
|
+
Op = Object.prototype,
|
21
|
+
hasOwn = Op.hasOwnProperty,
|
22
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
23
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
24
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
25
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
297
26
|
|
298
27
|
function define(obj, key, value) {
|
299
|
-
Object.defineProperty(obj, key, {
|
28
|
+
return Object.defineProperty(obj, key, {
|
300
29
|
value: value,
|
301
|
-
enumerable:
|
302
|
-
configurable:
|
303
|
-
writable:
|
304
|
-
});
|
305
|
-
return obj[key];
|
30
|
+
enumerable: !0,
|
31
|
+
configurable: !0,
|
32
|
+
writable: !0
|
33
|
+
}), obj[key];
|
306
34
|
}
|
35
|
+
|
307
36
|
try {
|
308
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
309
37
|
define({}, "");
|
310
38
|
} catch (err) {
|
311
|
-
define = function(obj, key, value) {
|
39
|
+
define = function (obj, key, value) {
|
312
40
|
return obj[key] = value;
|
313
41
|
};
|
314
42
|
}
|
315
43
|
|
316
44
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
45
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
46
|
+
generator = Object.create(protoGenerator.prototype),
|
47
|
+
context = new Context(tryLocsList || []);
|
48
|
+
return generator._invoke = function (innerFn, self, context) {
|
49
|
+
var state = "suspendedStart";
|
50
|
+
return function (method, arg) {
|
51
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
52
|
+
|
53
|
+
if ("completed" === state) {
|
54
|
+
if ("throw" === method) throw arg;
|
55
|
+
return doneResult();
|
56
|
+
}
|
57
|
+
|
58
|
+
for (context.method = method, context.arg = arg;;) {
|
59
|
+
var delegate = context.delegate;
|
60
|
+
|
61
|
+
if (delegate) {
|
62
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
63
|
+
|
64
|
+
if (delegateResult) {
|
65
|
+
if (delegateResult === ContinueSentinel) continue;
|
66
|
+
return delegateResult;
|
67
|
+
}
|
68
|
+
}
|
321
69
|
|
322
|
-
|
323
|
-
|
324
|
-
|
70
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
71
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
72
|
+
context.dispatchException(context.arg);
|
73
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
74
|
+
state = "executing";
|
75
|
+
var record = tryCatch(innerFn, self, context);
|
76
|
+
|
77
|
+
if ("normal" === record.type) {
|
78
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
79
|
+
return {
|
80
|
+
value: record.arg,
|
81
|
+
done: context.done
|
82
|
+
};
|
83
|
+
}
|
325
84
|
|
326
|
-
|
85
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
86
|
+
}
|
87
|
+
};
|
88
|
+
}(innerFn, self, context), generator;
|
327
89
|
}
|
328
|
-
exports.wrap = wrap;
|
329
90
|
|
330
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
331
|
-
// record like context.tryEntries[i].completion. This interface could
|
332
|
-
// have been (and was previously) designed to take a closure to be
|
333
|
-
// invoked without arguments, but in all the cases we care about we
|
334
|
-
// already have an existing method we want to call, so there's no need
|
335
|
-
// to create a new function object. We can even get away with assuming
|
336
|
-
// the method takes exactly one argument, since that happens to be true
|
337
|
-
// in every case, so we don't have to touch the arguments object. The
|
338
|
-
// only additional allocation required is the completion record, which
|
339
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
340
91
|
function tryCatch(fn, obj, arg) {
|
341
92
|
try {
|
342
|
-
return {
|
93
|
+
return {
|
94
|
+
type: "normal",
|
95
|
+
arg: fn.call(obj, arg)
|
96
|
+
};
|
343
97
|
} catch (err) {
|
344
|
-
return {
|
98
|
+
return {
|
99
|
+
type: "throw",
|
100
|
+
arg: err
|
101
|
+
};
|
345
102
|
}
|
346
103
|
}
|
347
104
|
|
348
|
-
|
349
|
-
var GenStateSuspendedYield = "suspendedYield";
|
350
|
-
var GenStateExecuting = "executing";
|
351
|
-
var GenStateCompleted = "completed";
|
352
|
-
|
353
|
-
// Returning this object from the innerFn has the same effect as
|
354
|
-
// breaking out of the dispatch switch statement.
|
105
|
+
exports.wrap = wrap;
|
355
106
|
var ContinueSentinel = {};
|
356
107
|
|
357
|
-
// Dummy constructor functions that we use as the .constructor and
|
358
|
-
// .constructor.prototype properties for functions that return Generator
|
359
|
-
// objects. For full spec compliance, you may wish to configure your
|
360
|
-
// minifier not to mangle the names of these two functions.
|
361
108
|
function Generator() {}
|
109
|
+
|
362
110
|
function GeneratorFunction() {}
|
111
|
+
|
363
112
|
function GeneratorFunctionPrototype() {}
|
364
113
|
|
365
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
366
|
-
// don't natively support it.
|
367
114
|
var IteratorPrototype = {};
|
368
115
|
define(IteratorPrototype, iteratorSymbol, function () {
|
369
116
|
return this;
|
370
117
|
});
|
118
|
+
var getProto = Object.getPrototypeOf,
|
119
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
120
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
121
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
371
122
|
|
372
|
-
var getProto = Object.getPrototypeOf;
|
373
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
374
|
-
if (NativeIteratorPrototype &&
|
375
|
-
NativeIteratorPrototype !== Op &&
|
376
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
377
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
378
|
-
// of the polyfill.
|
379
|
-
IteratorPrototype = NativeIteratorPrototype;
|
380
|
-
}
|
381
|
-
|
382
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
383
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
384
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
385
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
386
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
387
|
-
GeneratorFunction.displayName = define(
|
388
|
-
GeneratorFunctionPrototype,
|
389
|
-
toStringTagSymbol,
|
390
|
-
"GeneratorFunction"
|
391
|
-
);
|
392
|
-
|
393
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
394
|
-
// Iterator interface in terms of a single ._invoke method.
|
395
123
|
function defineIteratorMethods(prototype) {
|
396
|
-
["next", "throw", "return"].forEach(function(method) {
|
397
|
-
define(prototype, method, function(arg) {
|
124
|
+
["next", "throw", "return"].forEach(function (method) {
|
125
|
+
define(prototype, method, function (arg) {
|
398
126
|
return this._invoke(method, arg);
|
399
127
|
});
|
400
128
|
});
|
401
129
|
}
|
402
130
|
|
403
|
-
exports.isGeneratorFunction = function(genFun) {
|
404
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
405
|
-
return ctor
|
406
|
-
? ctor === GeneratorFunction ||
|
407
|
-
// For the native GeneratorFunction constructor, the best we can
|
408
|
-
// do is to check its .name property.
|
409
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
410
|
-
: false;
|
411
|
-
};
|
412
|
-
|
413
|
-
exports.mark = function(genFun) {
|
414
|
-
if (Object.setPrototypeOf) {
|
415
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
416
|
-
} else {
|
417
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
418
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
419
|
-
}
|
420
|
-
genFun.prototype = Object.create(Gp);
|
421
|
-
return genFun;
|
422
|
-
};
|
423
|
-
|
424
|
-
// Within the body of any async function, `await x` is transformed to
|
425
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
426
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
427
|
-
// meant to be awaited.
|
428
|
-
exports.awrap = function(arg) {
|
429
|
-
return { __await: arg };
|
430
|
-
};
|
431
|
-
|
432
131
|
function AsyncIterator(generator, PromiseImpl) {
|
433
132
|
function invoke(method, arg, resolve, reject) {
|
434
133
|
var record = tryCatch(generator[method], generator, arg);
|
435
|
-
if (record.type === "throw") {
|
436
|
-
reject(record.arg);
|
437
|
-
} else {
|
438
|
-
var result = record.arg;
|
439
|
-
var value = result.value;
|
440
|
-
if (value &&
|
441
|
-
typeof value === "object" &&
|
442
|
-
hasOwn.call(value, "__await")) {
|
443
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
444
|
-
invoke("next", value, resolve, reject);
|
445
|
-
}, function(err) {
|
446
|
-
invoke("throw", err, resolve, reject);
|
447
|
-
});
|
448
|
-
}
|
449
134
|
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
135
|
+
if ("throw" !== record.type) {
|
136
|
+
var result = record.arg,
|
137
|
+
value = result.value;
|
138
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
139
|
+
invoke("next", value, resolve, reject);
|
140
|
+
}, function (err) {
|
141
|
+
invoke("throw", err, resolve, reject);
|
142
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
143
|
+
result.value = unwrapped, resolve(result);
|
144
|
+
}, function (error) {
|
459
145
|
return invoke("throw", error, resolve, reject);
|
460
146
|
});
|
461
147
|
}
|
148
|
+
|
149
|
+
reject(record.arg);
|
462
150
|
}
|
463
151
|
|
464
152
|
var previousPromise;
|
465
153
|
|
466
|
-
function
|
154
|
+
this._invoke = function (method, arg) {
|
467
155
|
function callInvokeWithMethodAndArg() {
|
468
|
-
return new PromiseImpl(function(resolve, reject) {
|
156
|
+
return new PromiseImpl(function (resolve, reject) {
|
469
157
|
invoke(method, arg, resolve, reject);
|
470
158
|
});
|
471
159
|
}
|
472
160
|
|
473
|
-
return previousPromise =
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
callInvokeWithMethodAndArg,
|
488
|
-
// Avoid propagating failures to Promises returned by later
|
489
|
-
// invocations of the iterator.
|
490
|
-
callInvokeWithMethodAndArg
|
491
|
-
) : callInvokeWithMethodAndArg();
|
161
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
162
|
+
};
|
163
|
+
}
|
164
|
+
|
165
|
+
function maybeInvokeDelegate(delegate, context) {
|
166
|
+
var method = delegate.iterator[context.method];
|
167
|
+
|
168
|
+
if (undefined === method) {
|
169
|
+
if (context.delegate = null, "throw" === context.method) {
|
170
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
171
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
172
|
+
}
|
173
|
+
|
174
|
+
return ContinueSentinel;
|
492
175
|
}
|
493
176
|
|
494
|
-
|
495
|
-
|
496
|
-
|
177
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
178
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
179
|
+
var info = record.arg;
|
180
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
497
181
|
}
|
498
182
|
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
// Note that simple async functions are implemented on top of
|
506
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
507
|
-
// the final result produced by the iterator.
|
508
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
509
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
510
|
-
|
511
|
-
var iter = new AsyncIterator(
|
512
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
513
|
-
PromiseImpl
|
514
|
-
);
|
515
|
-
|
516
|
-
return exports.isGeneratorFunction(outerFn)
|
517
|
-
? iter // If outerFn is a generator, return the full iterator.
|
518
|
-
: iter.next().then(function(result) {
|
519
|
-
return result.done ? result.value : iter.next();
|
520
|
-
});
|
521
|
-
};
|
183
|
+
function pushTryEntry(locs) {
|
184
|
+
var entry = {
|
185
|
+
tryLoc: locs[0]
|
186
|
+
};
|
187
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
188
|
+
}
|
522
189
|
|
523
|
-
function
|
524
|
-
var
|
190
|
+
function resetTryEntry(entry) {
|
191
|
+
var record = entry.completion || {};
|
192
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
193
|
+
}
|
525
194
|
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
195
|
+
function Context(tryLocsList) {
|
196
|
+
this.tryEntries = [{
|
197
|
+
tryLoc: "root"
|
198
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
199
|
+
}
|
530
200
|
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
201
|
+
function values(iterable) {
|
202
|
+
if (iterable) {
|
203
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
204
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
205
|
+
if ("function" == typeof iterable.next) return iterable;
|
206
|
+
|
207
|
+
if (!isNaN(iterable.length)) {
|
208
|
+
var i = -1,
|
209
|
+
next = function next() {
|
210
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
535
211
|
|
536
|
-
|
537
|
-
|
538
|
-
|
212
|
+
return next.value = undefined, next.done = !0, next;
|
213
|
+
};
|
214
|
+
|
215
|
+
return next.next = next;
|
539
216
|
}
|
217
|
+
}
|
540
218
|
|
541
|
-
|
542
|
-
|
219
|
+
return {
|
220
|
+
next: doneResult
|
221
|
+
};
|
222
|
+
}
|
543
223
|
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
return delegateResult;
|
551
|
-
}
|
552
|
-
}
|
224
|
+
function doneResult() {
|
225
|
+
return {
|
226
|
+
value: undefined,
|
227
|
+
done: !0
|
228
|
+
};
|
229
|
+
}
|
553
230
|
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
231
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
232
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
233
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
234
|
+
}, exports.mark = function (genFun) {
|
235
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
236
|
+
}, exports.awrap = function (arg) {
|
237
|
+
return {
|
238
|
+
__await: arg
|
239
|
+
};
|
240
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
241
|
+
return this;
|
242
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
243
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
244
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
245
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
246
|
+
return result.done ? result.value : iter.next();
|
247
|
+
});
|
248
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
249
|
+
return this;
|
250
|
+
}), define(Gp, "toString", function () {
|
251
|
+
return "[object Generator]";
|
252
|
+
}), exports.keys = function (object) {
|
253
|
+
var keys = [];
|
558
254
|
|
559
|
-
|
560
|
-
if (state === GenStateSuspendedStart) {
|
561
|
-
state = GenStateCompleted;
|
562
|
-
throw context.arg;
|
563
|
-
}
|
255
|
+
for (var key in object) keys.push(key);
|
564
256
|
|
565
|
-
|
257
|
+
return keys.reverse(), function next() {
|
258
|
+
for (; keys.length;) {
|
259
|
+
var key = keys.pop();
|
260
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
261
|
+
}
|
566
262
|
|
567
|
-
|
568
|
-
|
569
|
-
|
263
|
+
return next.done = !0, next;
|
264
|
+
};
|
265
|
+
}, exports.values = values, Context.prototype = {
|
266
|
+
constructor: Context,
|
267
|
+
reset: function (skipTempReset) {
|
268
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
269
|
+
},
|
270
|
+
stop: function () {
|
271
|
+
this.done = !0;
|
272
|
+
var rootRecord = this.tryEntries[0].completion;
|
273
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
274
|
+
return this.rval;
|
275
|
+
},
|
276
|
+
dispatchException: function (exception) {
|
277
|
+
if (this.done) throw exception;
|
278
|
+
var context = this;
|
570
279
|
|
571
|
-
|
280
|
+
function handle(loc, caught) {
|
281
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
282
|
+
}
|
572
283
|
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
state = context.done
|
578
|
-
? GenStateCompleted
|
579
|
-
: GenStateSuspendedYield;
|
284
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
285
|
+
var entry = this.tryEntries[i],
|
286
|
+
record = entry.completion;
|
287
|
+
if ("root" === entry.tryLoc) return handle("end");
|
580
288
|
|
581
|
-
|
582
|
-
|
583
|
-
|
289
|
+
if (entry.tryLoc <= this.prev) {
|
290
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
291
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
584
292
|
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
}
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
context.method = "throw";
|
595
|
-
context.arg = record.arg;
|
293
|
+
if (hasCatch && hasFinally) {
|
294
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
295
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
296
|
+
} else if (hasCatch) {
|
297
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
298
|
+
} else {
|
299
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
300
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
301
|
+
}
|
596
302
|
}
|
597
303
|
}
|
598
|
-
}
|
599
|
-
|
304
|
+
},
|
305
|
+
abrupt: function (type, arg) {
|
306
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
307
|
+
var entry = this.tryEntries[i];
|
600
308
|
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
605
|
-
function maybeInvokeDelegate(delegate, context) {
|
606
|
-
var method = delegate.iterator[context.method];
|
607
|
-
if (method === undefined$1) {
|
608
|
-
// A .throw or .return when the delegate iterator has no .throw
|
609
|
-
// method always terminates the yield* loop.
|
610
|
-
context.delegate = null;
|
611
|
-
|
612
|
-
if (context.method === "throw") {
|
613
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
614
|
-
if (delegate.iterator["return"]) {
|
615
|
-
// If the delegate iterator has a return method, give it a
|
616
|
-
// chance to clean up.
|
617
|
-
context.method = "return";
|
618
|
-
context.arg = undefined$1;
|
619
|
-
maybeInvokeDelegate(delegate, context);
|
620
|
-
|
621
|
-
if (context.method === "throw") {
|
622
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
623
|
-
// "return" to "throw", let that override the TypeError below.
|
624
|
-
return ContinueSentinel;
|
625
|
-
}
|
309
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
310
|
+
var finallyEntry = entry;
|
311
|
+
break;
|
626
312
|
}
|
627
|
-
|
628
|
-
context.method = "throw";
|
629
|
-
context.arg = new TypeError(
|
630
|
-
"The iterator does not provide a 'throw' method");
|
631
313
|
}
|
632
314
|
|
633
|
-
|
634
|
-
|
315
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
316
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
317
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
318
|
+
},
|
319
|
+
complete: function (record, afterLoc) {
|
320
|
+
if ("throw" === record.type) throw record.arg;
|
321
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
322
|
+
},
|
323
|
+
finish: function (finallyLoc) {
|
324
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
325
|
+
var entry = this.tryEntries[i];
|
326
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
327
|
+
}
|
328
|
+
},
|
329
|
+
catch: function (tryLoc) {
|
330
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
331
|
+
var entry = this.tryEntries[i];
|
635
332
|
|
636
|
-
|
333
|
+
if (entry.tryLoc === tryLoc) {
|
334
|
+
var record = entry.completion;
|
637
335
|
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
return ContinueSentinel;
|
643
|
-
}
|
336
|
+
if ("throw" === record.type) {
|
337
|
+
var thrown = record.arg;
|
338
|
+
resetTryEntry(entry);
|
339
|
+
}
|
644
340
|
|
645
|
-
|
341
|
+
return thrown;
|
342
|
+
}
|
343
|
+
}
|
646
344
|
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
345
|
+
throw new Error("illegal catch attempt");
|
346
|
+
},
|
347
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
348
|
+
return this.delegate = {
|
349
|
+
iterator: values(iterable),
|
350
|
+
resultName: resultName,
|
351
|
+
nextLoc: nextLoc
|
352
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
652
353
|
}
|
354
|
+
}, exports;
|
355
|
+
}
|
653
356
|
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
// Resume execution at the desired location (see delegateYield).
|
660
|
-
context.next = delegate.nextLoc;
|
661
|
-
|
662
|
-
// If context.method was "throw" but the delegate handled the
|
663
|
-
// exception, let the outer generator proceed normally. If
|
664
|
-
// context.method was "next", forget context.arg since it has been
|
665
|
-
// "consumed" by the delegate iterator. If context.method was
|
666
|
-
// "return", allow the original .return call to continue in the
|
667
|
-
// outer generator.
|
668
|
-
if (context.method !== "return") {
|
669
|
-
context.method = "next";
|
670
|
-
context.arg = undefined$1;
|
671
|
-
}
|
357
|
+
function _wrapRegExp() {
|
358
|
+
_wrapRegExp = function (re, groups) {
|
359
|
+
return new BabelRegExp(re, void 0, groups);
|
360
|
+
};
|
672
361
|
|
673
|
-
|
674
|
-
|
675
|
-
return info;
|
676
|
-
}
|
362
|
+
var _super = RegExp.prototype,
|
363
|
+
_groups = new WeakMap();
|
677
364
|
|
678
|
-
|
679
|
-
|
680
|
-
context.delegate = null;
|
681
|
-
return ContinueSentinel;
|
682
|
-
}
|
365
|
+
function BabelRegExp(re, flags, groups) {
|
366
|
+
var _this = new RegExp(re, flags);
|
683
367
|
|
684
|
-
|
685
|
-
|
686
|
-
defineIteratorMethods(Gp);
|
368
|
+
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
|
369
|
+
}
|
687
370
|
|
688
|
-
|
371
|
+
function buildGroups(result, re) {
|
372
|
+
var g = _groups.get(re);
|
689
373
|
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
695
|
-
define(Gp, iteratorSymbol, function() {
|
696
|
-
return this;
|
697
|
-
});
|
374
|
+
return Object.keys(g).reduce(function (groups, name) {
|
375
|
+
return groups[name] = result[g[name]], groups;
|
376
|
+
}, Object.create(null));
|
377
|
+
}
|
698
378
|
|
699
|
-
|
700
|
-
|
701
|
-
});
|
379
|
+
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
380
|
+
var result = _super.exec.call(this, str);
|
702
381
|
|
703
|
-
|
704
|
-
|
382
|
+
return result && (result.groups = buildGroups(result, this)), result;
|
383
|
+
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
384
|
+
if ("string" == typeof substitution) {
|
385
|
+
var groups = _groups.get(this);
|
705
386
|
|
706
|
-
|
707
|
-
|
387
|
+
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
388
|
+
return "$" + groups[name];
|
389
|
+
}));
|
708
390
|
}
|
709
391
|
|
710
|
-
if (
|
711
|
-
|
712
|
-
|
392
|
+
if ("function" == typeof substitution) {
|
393
|
+
var _this = this;
|
394
|
+
|
395
|
+
return _super[Symbol.replace].call(this, str, function () {
|
396
|
+
var args = arguments;
|
397
|
+
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
|
398
|
+
});
|
713
399
|
}
|
714
400
|
|
715
|
-
|
716
|
-
}
|
401
|
+
return _super[Symbol.replace].call(this, str, substitution);
|
402
|
+
}, _wrapRegExp.apply(this, arguments);
|
403
|
+
}
|
717
404
|
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
405
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
406
|
+
try {
|
407
|
+
var info = gen[key](arg);
|
408
|
+
var value = info.value;
|
409
|
+
} catch (error) {
|
410
|
+
reject(error);
|
411
|
+
return;
|
723
412
|
}
|
724
413
|
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
730
|
-
tryLocsList.forEach(pushTryEntry, this);
|
731
|
-
this.reset(true);
|
414
|
+
if (info.done) {
|
415
|
+
resolve(value);
|
416
|
+
} else {
|
417
|
+
Promise.resolve(value).then(_next, _throw);
|
732
418
|
}
|
419
|
+
}
|
733
420
|
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
// Rather than returning an object with a next method, we keep
|
742
|
-
// things simple and return the next function itself.
|
743
|
-
return function next() {
|
744
|
-
while (keys.length) {
|
745
|
-
var key = keys.pop();
|
746
|
-
if (key in object) {
|
747
|
-
next.value = key;
|
748
|
-
next.done = false;
|
749
|
-
return next;
|
750
|
-
}
|
751
|
-
}
|
752
|
-
|
753
|
-
// To avoid creating an additional object, we just hang the .value
|
754
|
-
// and .done properties off the next function object itself. This
|
755
|
-
// also ensures that the minifier will not anonymize the function.
|
756
|
-
next.done = true;
|
757
|
-
return next;
|
758
|
-
};
|
759
|
-
};
|
760
|
-
|
761
|
-
function values(iterable) {
|
762
|
-
if (iterable) {
|
763
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
764
|
-
if (iteratorMethod) {
|
765
|
-
return iteratorMethod.call(iterable);
|
766
|
-
}
|
421
|
+
function _asyncToGenerator(fn) {
|
422
|
+
return function () {
|
423
|
+
var self = this,
|
424
|
+
args = arguments;
|
425
|
+
return new Promise(function (resolve, reject) {
|
426
|
+
var gen = fn.apply(self, args);
|
767
427
|
|
768
|
-
|
769
|
-
|
428
|
+
function _next(value) {
|
429
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
770
430
|
}
|
771
431
|
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
if (hasOwn.call(iterable, i)) {
|
776
|
-
next.value = iterable[i];
|
777
|
-
next.done = false;
|
778
|
-
return next;
|
779
|
-
}
|
780
|
-
}
|
432
|
+
function _throw(err) {
|
433
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
434
|
+
}
|
781
435
|
|
782
|
-
|
783
|
-
|
436
|
+
_next(undefined);
|
437
|
+
});
|
438
|
+
};
|
439
|
+
}
|
784
440
|
|
785
|
-
|
786
|
-
|
441
|
+
function _extends() {
|
442
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
443
|
+
for (var i = 1; i < arguments.length; i++) {
|
444
|
+
var source = arguments[i];
|
787
445
|
|
788
|
-
|
446
|
+
for (var key in source) {
|
447
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
448
|
+
target[key] = source[key];
|
449
|
+
}
|
789
450
|
}
|
790
451
|
}
|
791
452
|
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
453
|
+
return target;
|
454
|
+
};
|
455
|
+
return _extends.apply(this, arguments);
|
456
|
+
}
|
796
457
|
|
797
|
-
|
798
|
-
|
458
|
+
function _inherits(subClass, superClass) {
|
459
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
460
|
+
throw new TypeError("Super expression must either be null or a function");
|
799
461
|
}
|
800
462
|
|
801
|
-
|
802
|
-
constructor:
|
463
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
464
|
+
constructor: {
|
465
|
+
value: subClass,
|
466
|
+
writable: true,
|
467
|
+
configurable: true
|
468
|
+
}
|
469
|
+
});
|
470
|
+
Object.defineProperty(subClass, "prototype", {
|
471
|
+
writable: false
|
472
|
+
});
|
473
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
474
|
+
}
|
803
475
|
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
// Resetting context._sent for legacy support of Babel's
|
808
|
-
// function.sent implementation.
|
809
|
-
this.sent = this._sent = undefined$1;
|
810
|
-
this.done = false;
|
811
|
-
this.delegate = null;
|
812
|
-
|
813
|
-
this.method = "next";
|
814
|
-
this.arg = undefined$1;
|
815
|
-
|
816
|
-
this.tryEntries.forEach(resetTryEntry);
|
817
|
-
|
818
|
-
if (!skipTempReset) {
|
819
|
-
for (var name in this) {
|
820
|
-
// Not sure about the optimal order of these conditions:
|
821
|
-
if (name.charAt(0) === "t" &&
|
822
|
-
hasOwn.call(this, name) &&
|
823
|
-
!isNaN(+name.slice(1))) {
|
824
|
-
this[name] = undefined$1;
|
825
|
-
}
|
826
|
-
}
|
827
|
-
}
|
828
|
-
},
|
476
|
+
function _inheritsLoose(subClass, superClass) {
|
477
|
+
subClass.prototype = Object.create(superClass.prototype);
|
478
|
+
subClass.prototype.constructor = subClass;
|
829
479
|
|
830
|
-
|
831
|
-
|
480
|
+
_setPrototypeOf(subClass, superClass);
|
481
|
+
}
|
832
482
|
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
483
|
+
function _getPrototypeOf(o) {
|
484
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
485
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
486
|
+
};
|
487
|
+
return _getPrototypeOf(o);
|
488
|
+
}
|
838
489
|
|
839
|
-
|
840
|
-
|
490
|
+
function _setPrototypeOf(o, p) {
|
491
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
492
|
+
o.__proto__ = p;
|
493
|
+
return o;
|
494
|
+
};
|
495
|
+
return _setPrototypeOf(o, p);
|
496
|
+
}
|
841
497
|
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
498
|
+
function _isNativeReflectConstruct() {
|
499
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
500
|
+
if (Reflect.construct.sham) return false;
|
501
|
+
if (typeof Proxy === "function") return true;
|
846
502
|
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
// If the dispatched exception was caught by a catch block,
|
855
|
-
// then let that catch block handle the exception normally.
|
856
|
-
context.method = "next";
|
857
|
-
context.arg = undefined$1;
|
858
|
-
}
|
503
|
+
try {
|
504
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
505
|
+
return true;
|
506
|
+
} catch (e) {
|
507
|
+
return false;
|
508
|
+
}
|
509
|
+
}
|
859
510
|
|
860
|
-
|
861
|
-
|
511
|
+
function _construct(Parent, args, Class) {
|
512
|
+
if (_isNativeReflectConstruct()) {
|
513
|
+
_construct = Reflect.construct.bind();
|
514
|
+
} else {
|
515
|
+
_construct = function _construct(Parent, args, Class) {
|
516
|
+
var a = [null];
|
517
|
+
a.push.apply(a, args);
|
518
|
+
var Constructor = Function.bind.apply(Parent, a);
|
519
|
+
var instance = new Constructor();
|
520
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
521
|
+
return instance;
|
522
|
+
};
|
523
|
+
}
|
862
524
|
|
863
|
-
|
864
|
-
|
865
|
-
var record = entry.completion;
|
525
|
+
return _construct.apply(null, arguments);
|
526
|
+
}
|
866
527
|
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
// throw the exception.
|
871
|
-
return handle("end");
|
872
|
-
}
|
528
|
+
function _isNativeFunction(fn) {
|
529
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
530
|
+
}
|
873
531
|
|
874
|
-
|
875
|
-
|
876
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
532
|
+
function _wrapNativeSuper(Class) {
|
533
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
877
534
|
|
878
|
-
|
879
|
-
|
880
|
-
return handle(entry.catchLoc, true);
|
881
|
-
} else if (this.prev < entry.finallyLoc) {
|
882
|
-
return handle(entry.finallyLoc);
|
883
|
-
}
|
535
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
536
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
884
537
|
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
}
|
538
|
+
if (typeof Class !== "function") {
|
539
|
+
throw new TypeError("Super expression must either be null or a function");
|
540
|
+
}
|
889
541
|
|
890
|
-
|
891
|
-
|
892
|
-
return handle(entry.finallyLoc);
|
893
|
-
}
|
542
|
+
if (typeof _cache !== "undefined") {
|
543
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
894
544
|
|
895
|
-
|
896
|
-
|
897
|
-
}
|
898
|
-
}
|
899
|
-
}
|
900
|
-
},
|
545
|
+
_cache.set(Class, Wrapper);
|
546
|
+
}
|
901
547
|
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
if (entry.tryLoc <= this.prev &&
|
906
|
-
hasOwn.call(entry, "finallyLoc") &&
|
907
|
-
this.prev < entry.finallyLoc) {
|
908
|
-
var finallyEntry = entry;
|
909
|
-
break;
|
910
|
-
}
|
911
|
-
}
|
548
|
+
function Wrapper() {
|
549
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
550
|
+
}
|
912
551
|
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
// location outside the try/catch block.
|
920
|
-
finallyEntry = null;
|
552
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
553
|
+
constructor: {
|
554
|
+
value: Wrapper,
|
555
|
+
enumerable: false,
|
556
|
+
writable: true,
|
557
|
+
configurable: true
|
921
558
|
}
|
559
|
+
});
|
560
|
+
return _setPrototypeOf(Wrapper, Class);
|
561
|
+
};
|
922
562
|
|
923
|
-
|
924
|
-
|
925
|
-
record.arg = arg;
|
563
|
+
return _wrapNativeSuper(Class);
|
564
|
+
}
|
926
565
|
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
566
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
567
|
+
if (source == null) return {};
|
568
|
+
var target = {};
|
569
|
+
var sourceKeys = Object.keys(source);
|
570
|
+
var key, i;
|
932
571
|
|
933
|
-
|
934
|
-
|
572
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
573
|
+
key = sourceKeys[i];
|
574
|
+
if (excluded.indexOf(key) >= 0) continue;
|
575
|
+
target[key] = source[key];
|
576
|
+
}
|
935
577
|
|
936
|
-
|
937
|
-
|
938
|
-
throw record.arg;
|
939
|
-
}
|
578
|
+
return target;
|
579
|
+
}
|
940
580
|
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
this.next = afterLoc;
|
950
|
-
}
|
581
|
+
function _unsupportedIterableToArray(o, minLen) {
|
582
|
+
if (!o) return;
|
583
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
584
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
585
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
586
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
587
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
588
|
+
}
|
951
589
|
|
952
|
-
|
953
|
-
|
590
|
+
function _arrayLikeToArray(arr, len) {
|
591
|
+
if (len == null || len > arr.length) len = arr.length;
|
954
592
|
|
955
|
-
|
956
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
957
|
-
var entry = this.tryEntries[i];
|
958
|
-
if (entry.finallyLoc === finallyLoc) {
|
959
|
-
this.complete(entry.completion, entry.afterLoc);
|
960
|
-
resetTryEntry(entry);
|
961
|
-
return ContinueSentinel;
|
962
|
-
}
|
963
|
-
}
|
964
|
-
},
|
593
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
965
594
|
|
966
|
-
|
967
|
-
|
968
|
-
var entry = this.tryEntries[i];
|
969
|
-
if (entry.tryLoc === tryLoc) {
|
970
|
-
var record = entry.completion;
|
971
|
-
if (record.type === "throw") {
|
972
|
-
var thrown = record.arg;
|
973
|
-
resetTryEntry(entry);
|
974
|
-
}
|
975
|
-
return thrown;
|
976
|
-
}
|
977
|
-
}
|
595
|
+
return arr2;
|
596
|
+
}
|
978
597
|
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
},
|
598
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
599
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
600
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
983
601
|
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
602
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
603
|
+
if (it) o = it;
|
604
|
+
var i = 0;
|
605
|
+
return function () {
|
606
|
+
if (i >= o.length) return {
|
607
|
+
done: true
|
989
608
|
};
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
}
|
996
|
-
|
997
|
-
return ContinueSentinel;
|
998
|
-
}
|
999
|
-
};
|
1000
|
-
|
1001
|
-
// Regardless of whether this script is executing as a CommonJS module
|
1002
|
-
// or not, return the runtime object so that we can declare the variable
|
1003
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
1004
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
1005
|
-
return exports;
|
1006
|
-
|
1007
|
-
}(
|
1008
|
-
// If this script is executing as a CommonJS module, use module.exports
|
1009
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
1010
|
-
// object. Either way, the resulting object will be used to initialize
|
1011
|
-
// the regeneratorRuntime variable at the top of this file.
|
1012
|
-
module.exports
|
1013
|
-
));
|
1014
|
-
|
1015
|
-
try {
|
1016
|
-
regeneratorRuntime = runtime;
|
1017
|
-
} catch (accidentalStrictMode) {
|
1018
|
-
// This module should not be running in strict mode, so the above
|
1019
|
-
// assignment should always work unless something is misconfigured. Just
|
1020
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
1021
|
-
// we can explicitly access globalThis. In older engines we can escape
|
1022
|
-
// strict mode using a global Function call. This could conceivably fail
|
1023
|
-
// if a Content Security Policy forbids using Function, but in that case
|
1024
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
1025
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
1026
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
1027
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
1028
|
-
if (typeof globalThis === "object") {
|
1029
|
-
globalThis.regeneratorRuntime = runtime;
|
1030
|
-
} else {
|
1031
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
609
|
+
return {
|
610
|
+
done: false,
|
611
|
+
value: o[i++]
|
612
|
+
};
|
613
|
+
};
|
1032
614
|
}
|
615
|
+
|
616
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1033
617
|
}
|
1034
|
-
});
|
1035
618
|
|
1036
619
|
var _personalMetaToPrefix;
|
1037
620
|
var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[initApis.MetadataCategory.Personal] = 'you', _personalMetaToPrefix[initApis.MetadataCategory.ChildPersonal] = 'child', _personalMetaToPrefix[initApis.MetadataCategory.OtherPersonal] = 'other', _personalMetaToPrefix);
|
@@ -1042,7 +625,7 @@ var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[in
|
|
1042
625
|
*/
|
1043
626
|
|
1044
627
|
function identificationToPersonalInformations(data, category) {
|
1045
|
-
var _data
|
628
|
+
var _data;
|
1046
629
|
|
1047
630
|
var prefix = personalMetaToPrefix[category];
|
1048
631
|
return {
|
@@ -1052,7 +635,7 @@ function identificationToPersonalInformations(data, category) {
|
|
1052
635
|
name: data[prefix + "Name"],
|
1053
636
|
phone: data[prefix + "Phone"],
|
1054
637
|
zip: data[prefix + "Zip"],
|
1055
|
-
hid: (_data
|
638
|
+
hid: (_data = data[prefix + "HID"]) != null ? _data : data[prefix + "ID"],
|
1056
639
|
pharmacy: data[prefix + "Pharmacy"],
|
1057
640
|
address: data[prefix + "Address"]
|
1058
641
|
};
|
@@ -1252,9 +835,9 @@ function filterTriggeredAnsweredWithKind(_x, _x2) {
|
|
1252
835
|
*/
|
1253
836
|
|
1254
837
|
function _filterTriggeredAnsweredWithKind() {
|
1255
|
-
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/
|
838
|
+
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workflowData, kind) {
|
1256
839
|
var flattenedAnswers, triggeredQuestionsWithKind, samePageAnswers, res;
|
1257
|
-
return
|
840
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1258
841
|
while (1) {
|
1259
842
|
switch (_context.prev = _context.next) {
|
1260
843
|
case 0:
|
@@ -1298,9 +881,9 @@ function getWorkflowDataByCategory(_x3, _x4) {
|
|
1298
881
|
}
|
1299
882
|
|
1300
883
|
function _getWorkflowDataByCategory() {
|
1301
|
-
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/
|
884
|
+
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(workflowData, category) {
|
1302
885
|
var flattenedAnswers, triggeredQuestions, fields;
|
1303
|
-
return
|
886
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1304
887
|
while (1) {
|
1305
888
|
switch (_context2.prev = _context2.next) {
|
1306
889
|
case 0:
|
@@ -1371,8 +954,8 @@ function getImagesFromIndexDb(_x5) {
|
|
1371
954
|
*/
|
1372
955
|
|
1373
956
|
function _getImagesFromIndexDb() {
|
1374
|
-
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/
|
1375
|
-
return
|
957
|
+
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(answer) {
|
958
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1376
959
|
while (1) {
|
1377
960
|
switch (_context3.prev = _context3.next) {
|
1378
961
|
case 0:
|
@@ -1401,9 +984,9 @@ function populateWorkflowField(_x6, _x7) {
|
|
1401
984
|
}
|
1402
985
|
|
1403
986
|
function _populateWorkflowField() {
|
1404
|
-
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/
|
987
|
+
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
|
1405
988
|
var answer, displayedAnswer;
|
1406
|
-
return
|
989
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1407
990
|
while (1) {
|
1408
991
|
switch (_context4.prev = _context4.next) {
|
1409
992
|
case 0:
|
@@ -1567,10 +1150,11 @@ var MAX_RETRIES = 15;
|
|
1567
1150
|
* @param oroClient
|
1568
1151
|
* @param masterKey
|
1569
1152
|
* @param recoveryQA
|
1153
|
+
* @param indexSearch create search index for the consultation if true
|
1570
1154
|
* @returns the successful registration
|
1571
1155
|
*/
|
1572
1156
|
|
1573
|
-
function registerPatient(_x, _x2, _x3, _x4, _x5, _x6) {
|
1157
|
+
function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
1574
1158
|
return _registerPatient.apply(this, arguments);
|
1575
1159
|
}
|
1576
1160
|
/**
|
@@ -1581,13 +1165,17 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
1581
1165
|
*/
|
1582
1166
|
|
1583
1167
|
function _registerPatient() {
|
1584
|
-
_registerPatient = _asyncToGenerator( /*#__PURE__*/
|
1168
|
+
_registerPatient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch) {
|
1585
1169
|
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, _ret;
|
1586
1170
|
|
1587
|
-
return
|
1171
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1588
1172
|
while (1) {
|
1589
1173
|
switch (_context4.prev = _context4.next) {
|
1590
1174
|
case 0:
|
1175
|
+
if (indexSearch === void 0) {
|
1176
|
+
indexSearch = true;
|
1177
|
+
}
|
1178
|
+
|
1591
1179
|
consult = undefined;
|
1592
1180
|
lockboxUuid = undefined;
|
1593
1181
|
practitionerAdmin = undefined;
|
@@ -1595,18 +1183,18 @@ function _registerPatient() {
|
|
1595
1183
|
identity = undefined;
|
1596
1184
|
errorsThrown = [];
|
1597
1185
|
|
1598
|
-
case
|
1186
|
+
case 7:
|
1599
1187
|
if (!(retry > 0)) {
|
1600
|
-
_context4.next =
|
1188
|
+
_context4.next = 23;
|
1601
1189
|
break;
|
1602
1190
|
}
|
1603
1191
|
|
1604
|
-
_context4.prev =
|
1605
|
-
return _context4.delegateYield( /*#__PURE__*/
|
1192
|
+
_context4.prev = 8;
|
1193
|
+
return _context4.delegateYield( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
1606
1194
|
var _consultIndex, _identity, _identity2;
|
1607
1195
|
|
1608
1196
|
var practitioners, grantPromises, consultIndex, consultIndexPromises;
|
1609
|
-
return
|
1197
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1610
1198
|
while (1) {
|
1611
1199
|
switch (_context3.prev = _context3.next) {
|
1612
1200
|
case 0:
|
@@ -1677,7 +1265,6 @@ function _registerPatient() {
|
|
1677
1265
|
return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
|
1678
1266
|
console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
|
1679
1267
|
|
1680
|
-
// if we cannot grant to the admin, then the registration will fail
|
1681
1268
|
errorsThrown.push(err);
|
1682
1269
|
});
|
1683
1270
|
|
@@ -1686,15 +1273,14 @@ function _registerPatient() {
|
|
1686
1273
|
grantPromises = practitioners.filter(function (practitioner) {
|
1687
1274
|
return practitioner.uuid !== practitionerAdmin;
|
1688
1275
|
}).map( /*#__PURE__*/function () {
|
1689
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
1690
|
-
return
|
1276
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(practitioner) {
|
1277
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1691
1278
|
while (1) {
|
1692
1279
|
switch (_context.prev = _context.next) {
|
1693
1280
|
case 0:
|
1694
1281
|
return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
|
1695
1282
|
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
|
1696
1283
|
|
1697
|
-
// Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
|
1698
1284
|
if (retry <= 1) return;
|
1699
1285
|
errorsThrown.push(err);
|
1700
1286
|
}));
|
@@ -1707,7 +1293,7 @@ function _registerPatient() {
|
|
1707
1293
|
}, _callee);
|
1708
1294
|
}));
|
1709
1295
|
|
1710
|
-
return function (
|
1296
|
+
return function (_x29) {
|
1711
1297
|
return _ref.apply(this, arguments);
|
1712
1298
|
};
|
1713
1299
|
}());
|
@@ -1720,15 +1306,14 @@ function _registerPatient() {
|
|
1720
1306
|
}], _consultIndex); // the index will identify in which lockbox a consultation resides
|
1721
1307
|
|
1722
1308
|
consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
|
1723
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
1724
|
-
return
|
1309
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practitioner) {
|
1310
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1725
1311
|
while (1) {
|
1726
1312
|
switch (_context2.prev = _context2.next) {
|
1727
1313
|
case 0:
|
1728
1314
|
return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
|
1729
1315
|
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
|
1730
1316
|
|
1731
|
-
// Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
|
1732
1317
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1733
1318
|
}));
|
1734
1319
|
|
@@ -1740,7 +1325,7 @@ function _registerPatient() {
|
|
1740
1325
|
}, _callee2);
|
1741
1326
|
}));
|
1742
1327
|
|
1743
|
-
return function (
|
1328
|
+
return function (_x30) {
|
1744
1329
|
return _ref2.apply(this, arguments);
|
1745
1330
|
};
|
1746
1331
|
}());
|
@@ -1748,7 +1333,6 @@ function _registerPatient() {
|
|
1748
1333
|
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient)["catch"](function (err) {
|
1749
1334
|
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
|
1750
1335
|
|
1751
|
-
// Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
|
1752
1336
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1753
1337
|
});
|
1754
1338
|
|
@@ -1769,7 +1353,6 @@ function _registerPatient() {
|
|
1769
1353
|
return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
|
1770
1354
|
console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
|
1771
1355
|
|
1772
|
-
/// it's acceptable to continue registration (return old identity)
|
1773
1356
|
if (retry <= 1) return;
|
1774
1357
|
errorsThrown.push(err);
|
1775
1358
|
return identity;
|
@@ -1794,7 +1377,6 @@ function _registerPatient() {
|
|
1794
1377
|
return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
|
1795
1378
|
console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
|
1796
1379
|
|
1797
|
-
/// it's acceptable to continue registration (return old identity)
|
1798
1380
|
if (retry <= 1) return;
|
1799
1381
|
errorsThrown.push(err);
|
1800
1382
|
return identity;
|
@@ -1808,98 +1390,102 @@ function _registerPatient() {
|
|
1808
1390
|
return Promise.all([].concat(grantPromises, consultIndexPromises));
|
1809
1391
|
|
1810
1392
|
case 43:
|
1811
|
-
|
1393
|
+
if (!indexSearch) {
|
1394
|
+
_context3.next = 46;
|
1395
|
+
break;
|
1396
|
+
}
|
1397
|
+
|
1398
|
+
_context3.next = 46;
|
1812
1399
|
return buildConsultSearchIndex(consult, workflow, oroClient)["catch"](function (err) {
|
1813
1400
|
console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
|
1814
1401
|
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
|
1815
1402
|
|
1816
|
-
// this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
|
1817
1403
|
errorsThrown.push(err);
|
1818
1404
|
});
|
1819
1405
|
|
1820
|
-
case
|
1406
|
+
case 46:
|
1821
1407
|
if (!(errorsThrown.length > 0)) {
|
1822
|
-
_context3.next =
|
1408
|
+
_context3.next = 48;
|
1823
1409
|
break;
|
1824
1410
|
}
|
1825
1411
|
|
1826
1412
|
throw errorsThrown;
|
1827
1413
|
|
1828
|
-
case
|
1829
|
-
_context3.next =
|
1414
|
+
case 48:
|
1415
|
+
_context3.next = 50;
|
1830
1416
|
return oroClient.consultClient.updateConsultByUUID(consult.uuid, {
|
1831
1417
|
statusMedical: initApis.MedicalStatus.New
|
1832
1418
|
});
|
1833
1419
|
|
1834
|
-
case
|
1420
|
+
case 50:
|
1835
1421
|
return _context3.abrupt("return", "break");
|
1836
1422
|
|
1837
|
-
case
|
1423
|
+
case 51:
|
1838
1424
|
case "end":
|
1839
1425
|
return _context3.stop();
|
1840
1426
|
}
|
1841
1427
|
}
|
1842
1428
|
}, _callee3);
|
1843
|
-
})(), "t0",
|
1429
|
+
})(), "t0", 10);
|
1844
1430
|
|
1845
|
-
case
|
1431
|
+
case 10:
|
1846
1432
|
_ret = _context4.t0;
|
1847
1433
|
|
1848
1434
|
if (!(_ret === "break")) {
|
1849
|
-
_context4.next =
|
1435
|
+
_context4.next = 13;
|
1850
1436
|
break;
|
1851
1437
|
}
|
1852
1438
|
|
1853
|
-
return _context4.abrupt("break",
|
1439
|
+
return _context4.abrupt("break", 23);
|
1854
1440
|
|
1855
|
-
case
|
1856
|
-
_context4.next =
|
1441
|
+
case 13:
|
1442
|
+
_context4.next = 20;
|
1857
1443
|
break;
|
1858
1444
|
|
1859
|
-
case
|
1860
|
-
_context4.prev =
|
1861
|
-
_context4.t1 = _context4["catch"](
|
1445
|
+
case 15:
|
1446
|
+
_context4.prev = 15;
|
1447
|
+
_context4.t1 = _context4["catch"](8);
|
1862
1448
|
console.error("[SDK] Error occured during registration: " + _context4.t1 + ", retrying... Retries remaining: " + retry);
|
1863
1449
|
errorsThrown = [];
|
1864
|
-
return _context4.abrupt("continue",
|
1450
|
+
return _context4.abrupt("continue", 20);
|
1865
1451
|
|
1866
|
-
case
|
1452
|
+
case 20:
|
1867
1453
|
retry--;
|
1868
|
-
_context4.next =
|
1454
|
+
_context4.next = 7;
|
1869
1455
|
break;
|
1870
1456
|
|
1871
|
-
case
|
1457
|
+
case 23:
|
1872
1458
|
if (!(retry <= 0)) {
|
1873
|
-
_context4.next =
|
1459
|
+
_context4.next = 26;
|
1874
1460
|
break;
|
1875
1461
|
}
|
1876
1462
|
|
1877
1463
|
console.error('[SDK] registration failed: MAX_RETRIES reached');
|
1878
1464
|
throw 'RegistrationFailed';
|
1879
1465
|
|
1880
|
-
case
|
1466
|
+
case 26:
|
1881
1467
|
console.log('Successfully Registered');
|
1882
|
-
_context4.next =
|
1468
|
+
_context4.next = 29;
|
1883
1469
|
return oroClient.cleanIndex();
|
1884
1470
|
|
1885
|
-
case
|
1471
|
+
case 29:
|
1886
1472
|
return _context4.abrupt("return", {
|
1887
1473
|
masterKey: masterKey,
|
1888
1474
|
consultationId: consult.uuid,
|
1889
1475
|
lockboxUuid: lockboxUuid
|
1890
1476
|
});
|
1891
1477
|
|
1892
|
-
case
|
1478
|
+
case 30:
|
1893
1479
|
case "end":
|
1894
1480
|
return _context4.stop();
|
1895
1481
|
}
|
1896
1482
|
}
|
1897
|
-
}, _callee4, null, [[
|
1483
|
+
}, _callee4, null, [[8, 15]]);
|
1898
1484
|
}));
|
1899
1485
|
return _registerPatient.apply(this, arguments);
|
1900
1486
|
}
|
1901
1487
|
|
1902
|
-
function getOrCreatePatientConsultationUuid(
|
1488
|
+
function getOrCreatePatientConsultationUuid(_x8, _x9) {
|
1903
1489
|
return _getOrCreatePatientConsultationUuid.apply(this, arguments);
|
1904
1490
|
}
|
1905
1491
|
/**
|
@@ -1910,9 +1496,9 @@ function getOrCreatePatientConsultationUuid(_x7, _x8) {
|
|
1910
1496
|
|
1911
1497
|
|
1912
1498
|
function _getOrCreatePatientConsultationUuid() {
|
1913
|
-
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/
|
1499
|
+
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(consult, oroClient) {
|
1914
1500
|
var payment;
|
1915
|
-
return
|
1501
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
1916
1502
|
while (1) {
|
1917
1503
|
switch (_context5.prev = _context5.next) {
|
1918
1504
|
case 0:
|
@@ -1952,7 +1538,7 @@ function _getOrCreatePatientConsultationUuid() {
|
|
1952
1538
|
return _getOrCreatePatientConsultationUuid.apply(this, arguments);
|
1953
1539
|
}
|
1954
1540
|
|
1955
|
-
function getOrCreatePatientLockbox(
|
1541
|
+
function getOrCreatePatientLockbox(_x10) {
|
1956
1542
|
return _getOrCreatePatientLockbox.apply(this, arguments);
|
1957
1543
|
}
|
1958
1544
|
/**
|
@@ -1967,9 +1553,9 @@ function getOrCreatePatientLockbox(_x9) {
|
|
1967
1553
|
|
1968
1554
|
|
1969
1555
|
function _getOrCreatePatientLockbox() {
|
1970
|
-
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/
|
1556
|
+
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(oroClient) {
|
1971
1557
|
var grants;
|
1972
|
-
return
|
1558
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
1973
1559
|
while (1) {
|
1974
1560
|
switch (_context6.prev = _context6.next) {
|
1975
1561
|
case 0:
|
@@ -2007,13 +1593,13 @@ function _getOrCreatePatientLockbox() {
|
|
2007
1593
|
return _getOrCreatePatientLockbox.apply(this, arguments);
|
2008
1594
|
}
|
2009
1595
|
|
2010
|
-
function storePatientData(
|
1596
|
+
function storePatientData(_x11, _x12, _x13, _x14, _x15) {
|
2011
1597
|
return _storePatientData.apply(this, arguments);
|
2012
1598
|
}
|
2013
1599
|
|
2014
1600
|
function _storePatientData() {
|
2015
|
-
_storePatientData = _asyncToGenerator( /*#__PURE__*/
|
2016
|
-
return
|
1601
|
+
_storePatientData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
|
1602
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2017
1603
|
while (1) {
|
2018
1604
|
switch (_context7.prev = _context7.next) {
|
2019
1605
|
case 0:
|
@@ -2055,7 +1641,7 @@ function _storePatientData() {
|
|
2055
1641
|
return _storePatientData.apply(this, arguments);
|
2056
1642
|
}
|
2057
1643
|
|
2058
|
-
function storeImageAliases(
|
1644
|
+
function storeImageAliases(_x16, _x17, _x18, _x19) {
|
2059
1645
|
return _storeImageAliases.apply(this, arguments);
|
2060
1646
|
}
|
2061
1647
|
/**
|
@@ -2070,9 +1656,9 @@ function storeImageAliases(_x15, _x16, _x17, _x18) {
|
|
2070
1656
|
|
2071
1657
|
|
2072
1658
|
function _storeImageAliases() {
|
2073
|
-
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/
|
1659
|
+
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient) {
|
2074
1660
|
var images, nonNullImages, promises;
|
2075
|
-
return
|
1661
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2076
1662
|
while (1) {
|
2077
1663
|
switch (_context8.prev = _context8.next) {
|
2078
1664
|
case 0:
|
@@ -2115,7 +1701,7 @@ function _storeImageAliases() {
|
|
2115
1701
|
return _storeImageAliases.apply(this, arguments);
|
2116
1702
|
}
|
2117
1703
|
|
2118
|
-
function extractAndStorePersonalWorkflowData(
|
1704
|
+
function extractAndStorePersonalWorkflowData(_x20, _x21, _x22, _x23, _x24) {
|
2119
1705
|
return _extractAndStorePersonalWorkflowData.apply(this, arguments);
|
2120
1706
|
}
|
2121
1707
|
/**
|
@@ -2124,8 +1710,8 @@ function extractAndStorePersonalWorkflowData(_x19, _x20, _x21, _x22, _x23) {
|
|
2124
1710
|
*/
|
2125
1711
|
|
2126
1712
|
function _extractAndStorePersonalWorkflowData() {
|
2127
|
-
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2128
|
-
return
|
1713
|
+
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
|
1714
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2129
1715
|
while (1) {
|
2130
1716
|
switch (_context9.prev = _context9.next) {
|
2131
1717
|
case 0:
|
@@ -2148,7 +1734,7 @@ function _extractAndStorePersonalWorkflowData() {
|
|
2148
1734
|
return _extractAndStorePersonalWorkflowData.apply(this, arguments);
|
2149
1735
|
}
|
2150
1736
|
|
2151
|
-
function extractPersonalInfoFromWorkflowData(
|
1737
|
+
function extractPersonalInfoFromWorkflowData(_x25) {
|
2152
1738
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
2153
1739
|
}
|
2154
1740
|
/**
|
@@ -2159,8 +1745,8 @@ function extractPersonalInfoFromWorkflowData(_x24) {
|
|
2159
1745
|
*/
|
2160
1746
|
|
2161
1747
|
function _extractPersonalInfoFromWorkflowData() {
|
2162
|
-
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2163
|
-
return
|
1748
|
+
_extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(workflow) {
|
1749
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2164
1750
|
while (1) {
|
2165
1751
|
switch (_context10.prev = _context10.next) {
|
2166
1752
|
case 0:
|
@@ -2185,15 +1771,15 @@ function _extractPersonalInfoFromWorkflowData() {
|
|
2185
1771
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
2186
1772
|
}
|
2187
1773
|
|
2188
|
-
function buildConsultSearchIndex(
|
1774
|
+
function buildConsultSearchIndex(_x26, _x27, _x28) {
|
2189
1775
|
return _buildConsultSearchIndex.apply(this, arguments);
|
2190
1776
|
}
|
2191
1777
|
|
2192
1778
|
function _buildConsultSearchIndex() {
|
2193
|
-
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/
|
1779
|
+
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(consult, workflow, oroClient) {
|
2194
1780
|
var terms, _yield$extractPersona, personalInfoPopulatedWfData, childPersonalInfoPopulatedWfData, otherPersonalInfoPopulatedWfData, personalInfo, childPersonalInfo, otherPersonalInfo;
|
2195
1781
|
|
2196
|
-
return
|
1782
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
2197
1783
|
while (1) {
|
2198
1784
|
switch (_context11.prev = _context11.next) {
|
2199
1785
|
case 0:
|
@@ -2322,10 +1908,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2, _x3, _x4) {
|
|
2322
1908
|
*/
|
2323
1909
|
|
2324
1910
|
function _filterGrantsWithLockboxMetadata() {
|
2325
|
-
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/
|
1911
|
+
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(oroClient, filter, vaultIndex, forceRefresh) {
|
2326
1912
|
var _vaultIndex$IndexKey$, indexConsults;
|
2327
1913
|
|
2328
|
-
return
|
1914
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2329
1915
|
while (1) {
|
2330
1916
|
switch (_context.prev = _context.next) {
|
2331
1917
|
case 0:
|
@@ -2375,12 +1961,12 @@ function buildLegacyVaultIndex(_x5) {
|
|
2375
1961
|
}
|
2376
1962
|
|
2377
1963
|
function _buildLegacyVaultIndex() {
|
2378
|
-
_buildLegacyVaultIndex = _asyncToGenerator( /*#__PURE__*/
|
1964
|
+
_buildLegacyVaultIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(oroClient) {
|
2379
1965
|
var _vaultIndex;
|
2380
1966
|
|
2381
1967
|
var grants, consultGrants, _loop, _iterator, _step, vaultIndex;
|
2382
1968
|
|
2383
|
-
return
|
1969
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context3) {
|
2384
1970
|
while (1) {
|
2385
1971
|
switch (_context3.prev = _context3.next) {
|
2386
1972
|
case 0:
|
@@ -2390,9 +1976,9 @@ function _buildLegacyVaultIndex() {
|
|
2390
1976
|
case 2:
|
2391
1977
|
grants = _context3.sent;
|
2392
1978
|
consultGrants = [];
|
2393
|
-
_loop = /*#__PURE__*/
|
1979
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
2394
1980
|
var grant, consults;
|
2395
|
-
return
|
1981
|
+
return _regeneratorRuntime().wrap(function _loop$(_context2) {
|
2396
1982
|
while (1) {
|
2397
1983
|
switch (_context2.prev = _context2.next) {
|
2398
1984
|
case 0:
|
@@ -2476,8 +2062,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2476
2062
|
_proto.cleanIndex =
|
2477
2063
|
/*#__PURE__*/
|
2478
2064
|
function () {
|
2479
|
-
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2480
|
-
return
|
2065
|
+
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
2066
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2481
2067
|
while (1) {
|
2482
2068
|
switch (_context.prev = _context.next) {
|
2483
2069
|
case 0:
|
@@ -2515,9 +2101,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2515
2101
|
_proto.signUp =
|
2516
2102
|
/*#__PURE__*/
|
2517
2103
|
function () {
|
2518
|
-
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2104
|
+
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
|
2519
2105
|
var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
|
2520
|
-
return
|
2106
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
2521
2107
|
while (1) {
|
2522
2108
|
switch (_context2.prev = _context2.next) {
|
2523
2109
|
case 0:
|
@@ -2576,9 +2162,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2576
2162
|
_proto.confirmEmail =
|
2577
2163
|
/*#__PURE__*/
|
2578
2164
|
function () {
|
2579
|
-
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2165
|
+
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken) {
|
2580
2166
|
var claims;
|
2581
|
-
return
|
2167
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
2582
2168
|
while (1) {
|
2583
2169
|
switch (_context3.prev = _context3.next) {
|
2584
2170
|
case 0:
|
@@ -2623,9 +2209,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2623
2209
|
_proto.signIn =
|
2624
2210
|
/*#__PURE__*/
|
2625
2211
|
function () {
|
2626
|
-
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2212
|
+
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(practiceUuid, email, password, otp) {
|
2627
2213
|
var hashedPassword, tokenRequest, userUuid;
|
2628
|
-
return
|
2214
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
2629
2215
|
while (1) {
|
2630
2216
|
switch (_context4.prev = _context4.next) {
|
2631
2217
|
case 0:
|
@@ -2678,9 +2264,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2678
2264
|
_proto.resumeSession =
|
2679
2265
|
/*#__PURE__*/
|
2680
2266
|
function () {
|
2681
|
-
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2267
|
+
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
2682
2268
|
var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
|
2683
|
-
return
|
2269
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
2684
2270
|
while (1) {
|
2685
2271
|
switch (_context5.prev = _context5.next) {
|
2686
2272
|
case 0:
|
@@ -2781,8 +2367,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2781
2367
|
_proto.signOut =
|
2782
2368
|
/*#__PURE__*/
|
2783
2369
|
function () {
|
2784
|
-
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2785
|
-
return
|
2370
|
+
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
2371
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
2786
2372
|
while (1) {
|
2787
2373
|
switch (_context6.prev = _context6.next) {
|
2788
2374
|
case 0:
|
@@ -2824,6 +2410,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2824
2410
|
* @param consult
|
2825
2411
|
* @param workflow
|
2826
2412
|
* @param recoveryQA
|
2413
|
+
* @param indexSearch create search index for the consultation if true
|
2827
2414
|
* @returns
|
2828
2415
|
*/
|
2829
2416
|
;
|
@@ -2831,22 +2418,26 @@ var OroClient = /*#__PURE__*/function () {
|
|
2831
2418
|
_proto.registerPatient =
|
2832
2419
|
/*#__PURE__*/
|
2833
2420
|
function () {
|
2834
|
-
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2835
|
-
return
|
2421
|
+
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch) {
|
2422
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2836
2423
|
while (1) {
|
2837
2424
|
switch (_context7.prev = _context7.next) {
|
2838
2425
|
case 0:
|
2426
|
+
if (indexSearch === void 0) {
|
2427
|
+
indexSearch = true;
|
2428
|
+
}
|
2429
|
+
|
2839
2430
|
if (this.rsa) {
|
2840
|
-
_context7.next =
|
2431
|
+
_context7.next = 3;
|
2841
2432
|
break;
|
2842
2433
|
}
|
2843
2434
|
|
2844
2435
|
throw IncompleteAuthentication;
|
2845
2436
|
|
2846
|
-
case 2:
|
2847
|
-
return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA));
|
2848
|
-
|
2849
2437
|
case 3:
|
2438
|
+
return _context7.abrupt("return", registerPatient(patientUuid, consult, workflow, this, this.toolbox.uuid(), recoveryQA, indexSearch));
|
2439
|
+
|
2440
|
+
case 4:
|
2850
2441
|
case "end":
|
2851
2442
|
return _context7.stop();
|
2852
2443
|
}
|
@@ -2854,7 +2445,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2854
2445
|
}, _callee7, this);
|
2855
2446
|
}));
|
2856
2447
|
|
2857
|
-
function registerPatient$1(_x13, _x14, _x15, _x16) {
|
2448
|
+
function registerPatient$1(_x13, _x14, _x15, _x16, _x17) {
|
2858
2449
|
return _registerPatient2.apply(this, arguments);
|
2859
2450
|
}
|
2860
2451
|
|
@@ -2875,8 +2466,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2875
2466
|
_proto.buildVaultIndex =
|
2876
2467
|
/*#__PURE__*/
|
2877
2468
|
function () {
|
2878
|
-
var _buildVaultIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2879
|
-
return
|
2469
|
+
var _buildVaultIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(forceRefresh) {
|
2470
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2880
2471
|
while (1) {
|
2881
2472
|
switch (_context8.prev = _context8.next) {
|
2882
2473
|
case 0:
|
@@ -2900,7 +2491,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2900
2491
|
}, _callee8, this);
|
2901
2492
|
}));
|
2902
2493
|
|
2903
|
-
function buildVaultIndex(
|
2494
|
+
function buildVaultIndex(_x18) {
|
2904
2495
|
return _buildVaultIndex.apply(this, arguments);
|
2905
2496
|
}
|
2906
2497
|
|
@@ -2924,12 +2515,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
2924
2515
|
_proto.forceUpdateIndexEntries =
|
2925
2516
|
/*#__PURE__*/
|
2926
2517
|
function () {
|
2927
|
-
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2518
|
+
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
2928
2519
|
var _this = this,
|
2929
2520
|
_this$vaultIndexAdd;
|
2930
2521
|
|
2931
2522
|
var grants, indexConsultLockbox;
|
2932
|
-
return
|
2523
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2933
2524
|
while (1) {
|
2934
2525
|
switch (_context10.prev = _context10.next) {
|
2935
2526
|
case 0:
|
@@ -2940,8 +2531,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2940
2531
|
grants = _context10.sent;
|
2941
2532
|
_context10.next = 5;
|
2942
2533
|
return Promise.all(grants.map( /*#__PURE__*/function () {
|
2943
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
2944
|
-
return
|
2534
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(grant) {
|
2535
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2945
2536
|
while (1) {
|
2946
2537
|
switch (_context9.prev = _context9.next) {
|
2947
2538
|
case 0:
|
@@ -2977,7 +2568,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
2977
2568
|
}, _callee9);
|
2978
2569
|
}));
|
2979
2570
|
|
2980
|
-
return function (
|
2571
|
+
return function (_x19) {
|
2981
2572
|
return _ref2.apply(this, arguments);
|
2982
2573
|
};
|
2983
2574
|
}())).then(function (consults) {
|
@@ -3017,12 +2608,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
3017
2608
|
_proto.vaultIndexAdd =
|
3018
2609
|
/*#__PURE__*/
|
3019
2610
|
function () {
|
3020
|
-
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2611
|
+
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(entries, indexOwnerUuid) {
|
3021
2612
|
var _this2 = this;
|
3022
2613
|
|
3023
2614
|
var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
|
3024
2615
|
|
3025
|
-
return
|
2616
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
3026
2617
|
while (1) {
|
3027
2618
|
switch (_context11.prev = _context11.next) {
|
3028
2619
|
case 0:
|
@@ -3129,7 +2720,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3129
2720
|
}, _callee11, this);
|
3130
2721
|
}));
|
3131
2722
|
|
3132
|
-
function vaultIndexAdd(
|
2723
|
+
function vaultIndexAdd(_x20, _x21) {
|
3133
2724
|
return _vaultIndexAdd.apply(this, arguments);
|
3134
2725
|
}
|
3135
2726
|
|
@@ -3144,11 +2735,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
3144
2735
|
_proto.indexSnapshotAdd =
|
3145
2736
|
/*#__PURE__*/
|
3146
2737
|
function () {
|
3147
|
-
var _indexSnapshotAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2738
|
+
var _indexSnapshotAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(index) {
|
3148
2739
|
var _index$IndexKey$Consu, _cleanedIndex;
|
3149
2740
|
|
3150
2741
|
var rsaPub, cleanedIndex, encryptedIndexEntry, encryptedIndex;
|
3151
|
-
return
|
2742
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
3152
2743
|
while (1) {
|
3153
2744
|
switch (_context12.prev = _context12.next) {
|
3154
2745
|
case 0:
|
@@ -3188,7 +2779,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3188
2779
|
}, _callee12, this);
|
3189
2780
|
}));
|
3190
2781
|
|
3191
|
-
function indexSnapshotAdd(
|
2782
|
+
function indexSnapshotAdd(_x22) {
|
3192
2783
|
return _indexSnapshotAdd.apply(this, arguments);
|
3193
2784
|
}
|
3194
2785
|
|
@@ -3206,9 +2797,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3206
2797
|
_proto.grantLockbox =
|
3207
2798
|
/*#__PURE__*/
|
3208
2799
|
function () {
|
3209
|
-
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2800
|
+
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
|
3210
2801
|
var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
|
3211
|
-
return
|
2802
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
3212
2803
|
while (1) {
|
3213
2804
|
switch (_context13.prev = _context13.next) {
|
3214
2805
|
case 0:
|
@@ -3247,7 +2838,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3247
2838
|
}, _callee13, this);
|
3248
2839
|
}));
|
3249
2840
|
|
3250
|
-
function grantLockbox(
|
2841
|
+
function grantLockbox(_x23, _x24, _x25) {
|
3251
2842
|
return _grantLockbox.apply(this, arguments);
|
3252
2843
|
}
|
3253
2844
|
|
@@ -3268,9 +2859,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3268
2859
|
_proto.createMessageData =
|
3269
2860
|
/*#__PURE__*/
|
3270
2861
|
function () {
|
3271
|
-
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2862
|
+
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3272
2863
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3273
|
-
return
|
2864
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
3274
2865
|
while (1) {
|
3275
2866
|
switch (_context14.prev = _context14.next) {
|
3276
2867
|
case 0:
|
@@ -3319,7 +2910,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3319
2910
|
}, _callee14, this);
|
3320
2911
|
}));
|
3321
2912
|
|
3322
|
-
function createMessageData(
|
2913
|
+
function createMessageData(_x26, _x27, _x28, _x29, _x30) {
|
3323
2914
|
return _createMessageData.apply(this, arguments);
|
3324
2915
|
}
|
3325
2916
|
|
@@ -3340,9 +2931,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3340
2931
|
_proto.createMessageAttachmentData =
|
3341
2932
|
/*#__PURE__*/
|
3342
2933
|
function () {
|
3343
|
-
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2934
|
+
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3344
2935
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3345
|
-
return
|
2936
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
3346
2937
|
while (1) {
|
3347
2938
|
switch (_context15.prev = _context15.next) {
|
3348
2939
|
case 0:
|
@@ -3405,7 +2996,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3405
2996
|
}, _callee15, this);
|
3406
2997
|
}));
|
3407
2998
|
|
3408
|
-
function createMessageAttachmentData(
|
2999
|
+
function createMessageAttachmentData(_x31, _x32, _x33, _x34, _x35) {
|
3409
3000
|
return _createMessageAttachmentData.apply(this, arguments);
|
3410
3001
|
}
|
3411
3002
|
|
@@ -3427,8 +3018,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3427
3018
|
_proto.createConsultationAttachmentData =
|
3428
3019
|
/*#__PURE__*/
|
3429
3020
|
function () {
|
3430
|
-
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3431
|
-
return
|
3021
|
+
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
|
3022
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
3432
3023
|
while (1) {
|
3433
3024
|
switch (_context16.prev = _context16.next) {
|
3434
3025
|
case 0:
|
@@ -3477,7 +3068,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3477
3068
|
}, _callee16, this);
|
3478
3069
|
}));
|
3479
3070
|
|
3480
|
-
function createConsultationAttachmentData(
|
3071
|
+
function createConsultationAttachmentData(_x36, _x37, _x38, _x39, _x40, _x41) {
|
3481
3072
|
return _createConsultationAttachmentData.apply(this, arguments);
|
3482
3073
|
}
|
3483
3074
|
|
@@ -3499,9 +3090,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3499
3090
|
_proto.createJsonData =
|
3500
3091
|
/*#__PURE__*/
|
3501
3092
|
function () {
|
3502
|
-
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3093
|
+
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3503
3094
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3504
|
-
return
|
3095
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
3505
3096
|
while (1) {
|
3506
3097
|
switch (_context17.prev = _context17.next) {
|
3507
3098
|
case 0:
|
@@ -3535,7 +3126,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3535
3126
|
}, _callee17, this);
|
3536
3127
|
}));
|
3537
3128
|
|
3538
|
-
function createJsonData(
|
3129
|
+
function createJsonData(_x42, _x43, _x44, _x45, _x46, _x47) {
|
3539
3130
|
return _createJsonData.apply(this, arguments);
|
3540
3131
|
}
|
3541
3132
|
|
@@ -3555,9 +3146,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3555
3146
|
_proto.getOrInsertJsonData =
|
3556
3147
|
/*#__PURE__*/
|
3557
3148
|
function () {
|
3558
|
-
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3149
|
+
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
|
3559
3150
|
var manifest;
|
3560
|
-
return
|
3151
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
3561
3152
|
while (1) {
|
3562
3153
|
switch (_context18.prev = _context18.next) {
|
3563
3154
|
case 0:
|
@@ -3598,7 +3189,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3598
3189
|
}, _callee18, this);
|
3599
3190
|
}));
|
3600
3191
|
|
3601
|
-
function getOrInsertJsonData(
|
3192
|
+
function getOrInsertJsonData(_x48, _x49, _x50, _x51, _x52) {
|
3602
3193
|
return _getOrInsertJsonData.apply(this, arguments);
|
3603
3194
|
}
|
3604
3195
|
|
@@ -3620,9 +3211,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3620
3211
|
_proto.createBytesData =
|
3621
3212
|
/*#__PURE__*/
|
3622
3213
|
function () {
|
3623
|
-
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3214
|
+
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3624
3215
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3625
|
-
return
|
3216
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
3626
3217
|
while (1) {
|
3627
3218
|
switch (_context19.prev = _context19.next) {
|
3628
3219
|
case 0:
|
@@ -3656,7 +3247,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3656
3247
|
}, _callee19, this);
|
3657
3248
|
}));
|
3658
3249
|
|
3659
|
-
function createBytesData(
|
3250
|
+
function createBytesData(_x53, _x54, _x55, _x56, _x57, _x58) {
|
3660
3251
|
return _createBytesData.apply(this, arguments);
|
3661
3252
|
}
|
3662
3253
|
|
@@ -3678,10 +3269,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3678
3269
|
_proto.getJsonData =
|
3679
3270
|
/*#__PURE__*/
|
3680
3271
|
function () {
|
3681
|
-
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3272
|
+
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3682
3273
|
var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
|
3683
3274
|
|
3684
|
-
return
|
3275
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
3685
3276
|
while (1) {
|
3686
3277
|
switch (_context20.prev = _context20.next) {
|
3687
3278
|
case 0:
|
@@ -3710,7 +3301,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3710
3301
|
}, _callee20, this);
|
3711
3302
|
}));
|
3712
3303
|
|
3713
|
-
function getJsonData(
|
3304
|
+
function getJsonData(_x59, _x60, _x61) {
|
3714
3305
|
return _getJsonData.apply(this, arguments);
|
3715
3306
|
}
|
3716
3307
|
|
@@ -3728,10 +3319,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3728
3319
|
_proto.getBytesData =
|
3729
3320
|
/*#__PURE__*/
|
3730
3321
|
function () {
|
3731
|
-
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3322
|
+
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3732
3323
|
var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
|
3733
3324
|
|
3734
|
-
return
|
3325
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
3735
3326
|
while (1) {
|
3736
3327
|
switch (_context21.prev = _context21.next) {
|
3737
3328
|
case 0:
|
@@ -3760,7 +3351,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3760
3351
|
}, _callee21, this);
|
3761
3352
|
}));
|
3762
3353
|
|
3763
|
-
function getBytesData(
|
3354
|
+
function getBytesData(_x62, _x63, _x64) {
|
3764
3355
|
return _getBytesData.apply(this, arguments);
|
3765
3356
|
}
|
3766
3357
|
|
@@ -3781,9 +3372,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3781
3372
|
_proto.getGrants =
|
3782
3373
|
/*#__PURE__*/
|
3783
3374
|
function () {
|
3784
|
-
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3375
|
+
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(filter, forceRefresh) {
|
3785
3376
|
var filterString, grantsByConsultLockbox, decryptedConsults, encryptedGrants, decryptedGrants;
|
3786
|
-
return
|
3377
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
3787
3378
|
while (1) {
|
3788
3379
|
switch (_context22.prev = _context22.next) {
|
3789
3380
|
case 0:
|
@@ -3883,7 +3474,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3883
3474
|
}, _callee22, this);
|
3884
3475
|
}));
|
3885
3476
|
|
3886
|
-
function getGrants(
|
3477
|
+
function getGrants(_x65, _x66) {
|
3887
3478
|
return _getGrants.apply(this, arguments);
|
3888
3479
|
}
|
3889
3480
|
|
@@ -3901,9 +3492,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3901
3492
|
_proto.getCachedSecretCryptor =
|
3902
3493
|
/*#__PURE__*/
|
3903
3494
|
function () {
|
3904
|
-
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3495
|
+
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(lockboxUuid, lockboxOwnerUuid) {
|
3905
3496
|
var index, encryptedSecret, secret, cryptor;
|
3906
|
-
return
|
3497
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
3907
3498
|
while (1) {
|
3908
3499
|
switch (_context23.prev = _context23.next) {
|
3909
3500
|
case 0:
|
@@ -3948,7 +3539,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3948
3539
|
}, _callee23, this);
|
3949
3540
|
}));
|
3950
3541
|
|
3951
|
-
function getCachedSecretCryptor(
|
3542
|
+
function getCachedSecretCryptor(_x67, _x68) {
|
3952
3543
|
return _getCachedSecretCryptor.apply(this, arguments);
|
3953
3544
|
}
|
3954
3545
|
|
@@ -3968,8 +3559,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3968
3559
|
_proto.getPersonalInformationsFromConsultId =
|
3969
3560
|
/*#__PURE__*/
|
3970
3561
|
function () {
|
3971
|
-
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3972
|
-
return
|
3562
|
+
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(consultationId, category, forceRefresh) {
|
3563
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
3973
3564
|
while (1) {
|
3974
3565
|
switch (_context24.prev = _context24.next) {
|
3975
3566
|
case 0:
|
@@ -3987,7 +3578,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
3987
3578
|
}, _callee24, this);
|
3988
3579
|
}));
|
3989
3580
|
|
3990
|
-
function getPersonalInformationsFromConsultId(
|
3581
|
+
function getPersonalInformationsFromConsultId(_x69, _x70, _x71) {
|
3991
3582
|
return _getPersonalInformationsFromConsultId.apply(this, arguments);
|
3992
3583
|
}
|
3993
3584
|
|
@@ -4006,8 +3597,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4006
3597
|
_proto.getMedicalDataFromConsultId =
|
4007
3598
|
/*#__PURE__*/
|
4008
3599
|
function () {
|
4009
|
-
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4010
|
-
return
|
3600
|
+
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(consultationId, forceRefresh) {
|
3601
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
4011
3602
|
while (1) {
|
4012
3603
|
switch (_context25.prev = _context25.next) {
|
4013
3604
|
case 0:
|
@@ -4025,7 +3616,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4025
3616
|
}, _callee25, this);
|
4026
3617
|
}));
|
4027
3618
|
|
4028
|
-
function getMedicalDataFromConsultId(
|
3619
|
+
function getMedicalDataFromConsultId(_x72, _x73) {
|
4029
3620
|
return _getMedicalDataFromConsultId.apply(this, arguments);
|
4030
3621
|
}
|
4031
3622
|
|
@@ -4033,12 +3624,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
4033
3624
|
}();
|
4034
3625
|
|
4035
3626
|
_proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
|
4036
|
-
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3627
|
+
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(consultationId, category, forceRefresh) {
|
4037
3628
|
var _this3 = this;
|
4038
3629
|
|
4039
3630
|
var grants, workflowData, _loop, _iterator, _step;
|
4040
3631
|
|
4041
|
-
return
|
3632
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context28) {
|
4042
3633
|
while (1) {
|
4043
3634
|
switch (_context28.prev = _context28.next) {
|
4044
3635
|
case 0:
|
@@ -4054,9 +3645,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4054
3645
|
case 3:
|
4055
3646
|
grants = _context28.sent;
|
4056
3647
|
workflowData = [];
|
4057
|
-
_loop = /*#__PURE__*/
|
3648
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
4058
3649
|
var grant, manifest, data;
|
4059
|
-
return
|
3650
|
+
return _regeneratorRuntime().wrap(function _loop$(_context27) {
|
4060
3651
|
while (1) {
|
4061
3652
|
switch (_context27.prev = _context27.next) {
|
4062
3653
|
case 0:
|
@@ -4090,8 +3681,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4090
3681
|
case 8:
|
4091
3682
|
_context27.next = 10;
|
4092
3683
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4093
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
4094
|
-
return
|
3684
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(entry) {
|
3685
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
4095
3686
|
while (1) {
|
4096
3687
|
switch (_context26.prev = _context26.next) {
|
4097
3688
|
case 0:
|
@@ -4118,7 +3709,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4118
3709
|
}, _callee26);
|
4119
3710
|
}));
|
4120
3711
|
|
4121
|
-
return function (
|
3712
|
+
return function (_x77) {
|
4122
3713
|
return _ref3.apply(this, arguments);
|
4123
3714
|
};
|
4124
3715
|
}()));
|
@@ -4159,7 +3750,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4159
3750
|
}, _callee27, this);
|
4160
3751
|
}));
|
4161
3752
|
|
4162
|
-
function getMetaCategoryFromConsultId(
|
3753
|
+
function getMetaCategoryFromConsultId(_x74, _x75, _x76) {
|
4163
3754
|
return _getMetaCategoryFromConsultId.apply(this, arguments);
|
4164
3755
|
}
|
4165
3756
|
|
@@ -4175,9 +3766,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4175
3766
|
_proto.getPersonalInformations =
|
4176
3767
|
/*#__PURE__*/
|
4177
3768
|
function () {
|
4178
|
-
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3769
|
+
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(userId) {
|
4179
3770
|
var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4180
|
-
return
|
3771
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context29) {
|
4181
3772
|
while (1) {
|
4182
3773
|
switch (_context29.prev = _context29.next) {
|
4183
3774
|
case 0:
|
@@ -4246,7 +3837,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4246
3837
|
}, _callee28, this);
|
4247
3838
|
}));
|
4248
3839
|
|
4249
|
-
function getPersonalInformations(
|
3840
|
+
function getPersonalInformations(_x78) {
|
4250
3841
|
return _getPersonalInformations.apply(this, arguments);
|
4251
3842
|
}
|
4252
3843
|
|
@@ -4263,9 +3854,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4263
3854
|
_proto.getGrantFromConsultId =
|
4264
3855
|
/*#__PURE__*/
|
4265
3856
|
function () {
|
4266
|
-
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3857
|
+
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(consultationId) {
|
4267
3858
|
var grants;
|
4268
|
-
return
|
3859
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context30) {
|
4269
3860
|
while (1) {
|
4270
3861
|
switch (_context30.prev = _context30.next) {
|
4271
3862
|
case 0:
|
@@ -4295,7 +3886,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4295
3886
|
}, _callee29, this);
|
4296
3887
|
}));
|
4297
3888
|
|
4298
|
-
function getGrantFromConsultId(
|
3889
|
+
function getGrantFromConsultId(_x79) {
|
4299
3890
|
return _getGrantFromConsultId.apply(this, arguments);
|
4300
3891
|
}
|
4301
3892
|
|
@@ -4311,9 +3902,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4311
3902
|
_proto.getIdentityFromConsultId =
|
4312
3903
|
/*#__PURE__*/
|
4313
3904
|
function () {
|
4314
|
-
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3905
|
+
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(consultationId) {
|
4315
3906
|
var grant;
|
4316
|
-
return
|
3907
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context31) {
|
4317
3908
|
while (1) {
|
4318
3909
|
switch (_context31.prev = _context31.next) {
|
4319
3910
|
case 0:
|
@@ -4345,7 +3936,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4345
3936
|
}, _callee30, this);
|
4346
3937
|
}));
|
4347
3938
|
|
4348
|
-
function getIdentityFromConsultId(
|
3939
|
+
function getIdentityFromConsultId(_x80) {
|
4349
3940
|
return _getIdentityFromConsultId.apply(this, arguments);
|
4350
3941
|
}
|
4351
3942
|
|
@@ -4366,11 +3957,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4366
3957
|
_proto.getLockboxManifest =
|
4367
3958
|
/*#__PURE__*/
|
4368
3959
|
function () {
|
4369
|
-
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3960
|
+
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
|
4370
3961
|
var _this4 = this;
|
4371
3962
|
|
4372
3963
|
var manifestKey;
|
4373
|
-
return
|
3964
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context33) {
|
4374
3965
|
while (1) {
|
4375
3966
|
switch (_context33.prev = _context33.next) {
|
4376
3967
|
case 0:
|
@@ -4395,9 +3986,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4395
3986
|
case 4:
|
4396
3987
|
return _context33.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
|
4397
3988
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4398
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
3989
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(entry) {
|
4399
3990
|
var privateMeta;
|
4400
|
-
return
|
3991
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context32) {
|
4401
3992
|
while (1) {
|
4402
3993
|
switch (_context32.prev = _context32.next) {
|
4403
3994
|
case 0:
|
@@ -4424,7 +4015,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4424
4015
|
}, _callee31);
|
4425
4016
|
}));
|
4426
4017
|
|
4427
|
-
return function (
|
4018
|
+
return function (_x86) {
|
4428
4019
|
return _ref4.apply(this, arguments);
|
4429
4020
|
};
|
4430
4021
|
}())).then(function (manifest) {
|
@@ -4440,7 +4031,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4440
4031
|
}, _callee32, this);
|
4441
4032
|
}));
|
4442
4033
|
|
4443
|
-
function getLockboxManifest(
|
4034
|
+
function getLockboxManifest(_x81, _x82, _x83, _x84, _x85) {
|
4444
4035
|
return _getLockboxManifest.apply(this, arguments);
|
4445
4036
|
}
|
4446
4037
|
|
@@ -4458,11 +4049,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4458
4049
|
_proto.createPersonalInformations =
|
4459
4050
|
/*#__PURE__*/
|
4460
4051
|
function () {
|
4461
|
-
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4052
|
+
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(identity, data, dataUuid) {
|
4462
4053
|
var _yield$this$getGrants;
|
4463
4054
|
|
4464
4055
|
var lockboxUuid;
|
4465
|
-
return
|
4056
|
+
return _regeneratorRuntime().wrap(function _callee33$(_context34) {
|
4466
4057
|
while (1) {
|
4467
4058
|
switch (_context34.prev = _context34.next) {
|
4468
4059
|
case 0:
|
@@ -4510,7 +4101,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4510
4101
|
}, _callee33, this);
|
4511
4102
|
}));
|
4512
4103
|
|
4513
|
-
function createPersonalInformations(
|
4104
|
+
function createPersonalInformations(_x87, _x88, _x89) {
|
4514
4105
|
return _createPersonalInformations.apply(this, arguments);
|
4515
4106
|
}
|
4516
4107
|
|
@@ -4528,11 +4119,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4528
4119
|
_proto.createUserPreference =
|
4529
4120
|
/*#__PURE__*/
|
4530
4121
|
function () {
|
4531
|
-
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4122
|
+
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(identity, preference, dataUuid) {
|
4532
4123
|
var _yield$this$getGrants2;
|
4533
4124
|
|
4534
4125
|
var lockboxUuid;
|
4535
|
-
return
|
4126
|
+
return _regeneratorRuntime().wrap(function _callee34$(_context35) {
|
4536
4127
|
while (1) {
|
4537
4128
|
switch (_context35.prev = _context35.next) {
|
4538
4129
|
case 0:
|
@@ -4580,7 +4171,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4580
4171
|
}, _callee34, this);
|
4581
4172
|
}));
|
4582
4173
|
|
4583
|
-
function createUserPreference(
|
4174
|
+
function createUserPreference(_x90, _x91, _x92) {
|
4584
4175
|
return _createUserPreference.apply(this, arguments);
|
4585
4176
|
}
|
4586
4177
|
|
@@ -4596,9 +4187,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4596
4187
|
_proto.getDataFromGrant =
|
4597
4188
|
/*#__PURE__*/
|
4598
4189
|
function () {
|
4599
|
-
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4190
|
+
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(grant, filter) {
|
4600
4191
|
var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4601
|
-
return
|
4192
|
+
return _regeneratorRuntime().wrap(function _callee35$(_context36) {
|
4602
4193
|
while (1) {
|
4603
4194
|
switch (_context36.prev = _context36.next) {
|
4604
4195
|
case 0:
|
@@ -4648,7 +4239,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4648
4239
|
}, _callee35, this);
|
4649
4240
|
}));
|
4650
4241
|
|
4651
|
-
function getDataFromGrant(
|
4242
|
+
function getDataFromGrant(_x93, _x94) {
|
4652
4243
|
return _getDataFromGrant.apply(this, arguments);
|
4653
4244
|
}
|
4654
4245
|
|
@@ -4664,9 +4255,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4664
4255
|
_proto.getUserPreferenceFromConsultId =
|
4665
4256
|
/*#__PURE__*/
|
4666
4257
|
function () {
|
4667
|
-
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4258
|
+
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(consultationId) {
|
4668
4259
|
var grant;
|
4669
|
-
return
|
4260
|
+
return _regeneratorRuntime().wrap(function _callee36$(_context37) {
|
4670
4261
|
while (1) {
|
4671
4262
|
switch (_context37.prev = _context37.next) {
|
4672
4263
|
case 0:
|
@@ -4697,7 +4288,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4697
4288
|
}, _callee36, this);
|
4698
4289
|
}));
|
4699
4290
|
|
4700
|
-
function getUserPreferenceFromConsultId(
|
4291
|
+
function getUserPreferenceFromConsultId(_x95) {
|
4701
4292
|
return _getUserPreferenceFromConsultId.apply(this, arguments);
|
4702
4293
|
}
|
4703
4294
|
|
@@ -4713,9 +4304,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4713
4304
|
_proto.getUserPreference =
|
4714
4305
|
/*#__PURE__*/
|
4715
4306
|
function () {
|
4716
|
-
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4307
|
+
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(identity) {
|
4717
4308
|
var grant;
|
4718
|
-
return
|
4309
|
+
return _regeneratorRuntime().wrap(function _callee37$(_context38) {
|
4719
4310
|
while (1) {
|
4720
4311
|
switch (_context38.prev = _context38.next) {
|
4721
4312
|
case 0:
|
@@ -4748,7 +4339,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4748
4339
|
}, _callee37, this);
|
4749
4340
|
}));
|
4750
4341
|
|
4751
|
-
function getUserPreference(
|
4342
|
+
function getUserPreference(_x96) {
|
4752
4343
|
return _getUserPreference.apply(this, arguments);
|
4753
4344
|
}
|
4754
4345
|
|
@@ -4764,9 +4355,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4764
4355
|
_proto.getRecoveryDataFromConsultId =
|
4765
4356
|
/*#__PURE__*/
|
4766
4357
|
function () {
|
4767
|
-
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4358
|
+
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(consultationId) {
|
4768
4359
|
var grant;
|
4769
|
-
return
|
4360
|
+
return _regeneratorRuntime().wrap(function _callee38$(_context39) {
|
4770
4361
|
while (1) {
|
4771
4362
|
switch (_context39.prev = _context39.next) {
|
4772
4363
|
case 0:
|
@@ -4797,7 +4388,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4797
4388
|
}, _callee38, this);
|
4798
4389
|
}));
|
4799
4390
|
|
4800
|
-
function getRecoveryDataFromConsultId(
|
4391
|
+
function getRecoveryDataFromConsultId(_x97) {
|
4801
4392
|
return _getRecoveryDataFromConsultId.apply(this, arguments);
|
4802
4393
|
}
|
4803
4394
|
|
@@ -4813,9 +4404,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4813
4404
|
_proto.getRecoveryData =
|
4814
4405
|
/*#__PURE__*/
|
4815
4406
|
function () {
|
4816
|
-
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4407
|
+
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(identity) {
|
4817
4408
|
var grant;
|
4818
|
-
return
|
4409
|
+
return _regeneratorRuntime().wrap(function _callee39$(_context40) {
|
4819
4410
|
while (1) {
|
4820
4411
|
switch (_context40.prev = _context40.next) {
|
4821
4412
|
case 0:
|
@@ -4848,7 +4439,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4848
4439
|
}, _callee39, this);
|
4849
4440
|
}));
|
4850
4441
|
|
4851
|
-
function getRecoveryData(
|
4442
|
+
function getRecoveryData(_x98) {
|
4852
4443
|
return _getRecoveryData.apply(this, arguments);
|
4853
4444
|
}
|
4854
4445
|
|
@@ -4869,10 +4460,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4869
4460
|
_proto.getAssignedConsultations =
|
4870
4461
|
/*#__PURE__*/
|
4871
4462
|
function () {
|
4872
|
-
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4463
|
+
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(practiceUuid, forceRefresh) {
|
4873
4464
|
var _this5 = this;
|
4874
4465
|
|
4875
|
-
return
|
4466
|
+
return _regeneratorRuntime().wrap(function _callee41$(_context42) {
|
4876
4467
|
while (1) {
|
4877
4468
|
switch (_context42.prev = _context42.next) {
|
4878
4469
|
case 0:
|
@@ -4891,8 +4482,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4891
4482
|
documentType: initApis.DocumentType.PopulatedWorkflowData
|
4892
4483
|
}, true, undefined, forceRefresh).then(function (manifest) {
|
4893
4484
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4894
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
4895
|
-
return
|
4485
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(entry) {
|
4486
|
+
return _regeneratorRuntime().wrap(function _callee40$(_context41) {
|
4896
4487
|
while (1) {
|
4897
4488
|
switch (_context41.prev = _context41.next) {
|
4898
4489
|
case 0:
|
@@ -4910,7 +4501,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4910
4501
|
}, _callee40);
|
4911
4502
|
}));
|
4912
4503
|
|
4913
|
-
return function (
|
4504
|
+
return function (_x101) {
|
4914
4505
|
return _ref5.apply(this, arguments);
|
4915
4506
|
};
|
4916
4507
|
}())).then(function (promise) {
|
@@ -4930,7 +4521,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
4930
4521
|
}, _callee41, this);
|
4931
4522
|
}));
|
4932
4523
|
|
4933
|
-
function getAssignedConsultations(
|
4524
|
+
function getAssignedConsultations(_x99, _x100) {
|
4934
4525
|
return _getAssignedConsultations.apply(this, arguments);
|
4935
4526
|
}
|
4936
4527
|
|
@@ -4946,11 +4537,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4946
4537
|
_proto.getPastConsultationsFromConsultId =
|
4947
4538
|
/*#__PURE__*/
|
4948
4539
|
function () {
|
4949
|
-
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4540
|
+
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(consultationId, practiceUuid) {
|
4950
4541
|
var _this6 = this;
|
4951
4542
|
|
4952
4543
|
var grant, consultationsInLockbox;
|
4953
|
-
return
|
4544
|
+
return _regeneratorRuntime().wrap(function _callee43$(_context44) {
|
4954
4545
|
while (1) {
|
4955
4546
|
switch (_context44.prev = _context44.next) {
|
4956
4547
|
case 0:
|
@@ -4989,8 +4580,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4989
4580
|
case 10:
|
4990
4581
|
_context44.next = 12;
|
4991
4582
|
return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
|
4992
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
4993
|
-
return
|
4583
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(consultId) {
|
4584
|
+
return _regeneratorRuntime().wrap(function _callee42$(_context43) {
|
4994
4585
|
while (1) {
|
4995
4586
|
switch (_context43.prev = _context43.next) {
|
4996
4587
|
case 0:
|
@@ -5008,7 +4599,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5008
4599
|
}, _callee42);
|
5009
4600
|
}));
|
5010
4601
|
|
5011
|
-
return function (
|
4602
|
+
return function (_x104) {
|
5012
4603
|
return _ref6.apply(this, arguments);
|
5013
4604
|
};
|
5014
4605
|
}()));
|
@@ -5024,7 +4615,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5024
4615
|
}, _callee43, this);
|
5025
4616
|
}));
|
5026
4617
|
|
5027
|
-
function getPastConsultationsFromConsultId(
|
4618
|
+
function getPastConsultationsFromConsultId(_x102, _x103) {
|
5028
4619
|
return _getPastConsultationsFromConsultId.apply(this, arguments);
|
5029
4620
|
}
|
5030
4621
|
|
@@ -5041,10 +4632,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
5041
4632
|
_proto.getPatientConsultationData =
|
5042
4633
|
/*#__PURE__*/
|
5043
4634
|
function () {
|
5044
|
-
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4635
|
+
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(consultationId, forceRefresh) {
|
5045
4636
|
var _this7 = this;
|
5046
4637
|
|
5047
|
-
return
|
4638
|
+
return _regeneratorRuntime().wrap(function _callee44$(_context45) {
|
5048
4639
|
while (1) {
|
5049
4640
|
switch (_context45.prev = _context45.next) {
|
5050
4641
|
case 0:
|
@@ -5082,7 +4673,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5082
4673
|
}, _callee44, this);
|
5083
4674
|
}));
|
5084
4675
|
|
5085
|
-
function getPatientConsultationData(
|
4676
|
+
function getPatientConsultationData(_x105, _x106) {
|
5086
4677
|
return _getPatientConsultationData.apply(this, arguments);
|
5087
4678
|
}
|
5088
4679
|
|
@@ -5098,8 +4689,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5098
4689
|
_proto.getPatientPrescriptionsList =
|
5099
4690
|
/*#__PURE__*/
|
5100
4691
|
function () {
|
5101
|
-
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5102
|
-
return
|
4692
|
+
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(consultationId) {
|
4693
|
+
return _regeneratorRuntime().wrap(function _callee45$(_context46) {
|
5103
4694
|
while (1) {
|
5104
4695
|
switch (_context46.prev = _context46.next) {
|
5105
4696
|
case 0:
|
@@ -5116,7 +4707,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5116
4707
|
}, _callee45, this);
|
5117
4708
|
}));
|
5118
4709
|
|
5119
|
-
function getPatientPrescriptionsList(
|
4710
|
+
function getPatientPrescriptionsList(_x107) {
|
5120
4711
|
return _getPatientPrescriptionsList.apply(this, arguments);
|
5121
4712
|
}
|
5122
4713
|
|
@@ -5132,8 +4723,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5132
4723
|
_proto.getPatientResultsList =
|
5133
4724
|
/*#__PURE__*/
|
5134
4725
|
function () {
|
5135
|
-
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5136
|
-
return
|
4726
|
+
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(consultationId) {
|
4727
|
+
return _regeneratorRuntime().wrap(function _callee46$(_context47) {
|
5137
4728
|
while (1) {
|
5138
4729
|
switch (_context47.prev = _context47.next) {
|
5139
4730
|
case 0:
|
@@ -5150,7 +4741,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5150
4741
|
}, _callee46, this);
|
5151
4742
|
}));
|
5152
4743
|
|
5153
|
-
function getPatientResultsList(
|
4744
|
+
function getPatientResultsList(_x108) {
|
5154
4745
|
return _getPatientResultsList.apply(this, arguments);
|
5155
4746
|
}
|
5156
4747
|
|
@@ -5166,8 +4757,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5166
4757
|
_proto.getPatientTreatmentPlans =
|
5167
4758
|
/*#__PURE__*/
|
5168
4759
|
function () {
|
5169
|
-
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5170
|
-
return
|
4760
|
+
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(consultationId) {
|
4761
|
+
return _regeneratorRuntime().wrap(function _callee47$(_context48) {
|
5171
4762
|
while (1) {
|
5172
4763
|
switch (_context48.prev = _context48.next) {
|
5173
4764
|
case 0:
|
@@ -5184,7 +4775,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5184
4775
|
}, _callee47, this);
|
5185
4776
|
}));
|
5186
4777
|
|
5187
|
-
function getPatientTreatmentPlans(
|
4778
|
+
function getPatientTreatmentPlans(_x109) {
|
5188
4779
|
return _getPatientTreatmentPlans.apply(this, arguments);
|
5189
4780
|
}
|
5190
4781
|
|
@@ -5201,8 +4792,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5201
4792
|
_proto.getPatientTreatmentPlanByUuid =
|
5202
4793
|
/*#__PURE__*/
|
5203
4794
|
function () {
|
5204
|
-
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5205
|
-
return
|
4795
|
+
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(consultationId, treatmentPlanId) {
|
4796
|
+
return _regeneratorRuntime().wrap(function _callee48$(_context49) {
|
5206
4797
|
while (1) {
|
5207
4798
|
switch (_context49.prev = _context49.next) {
|
5208
4799
|
case 0:
|
@@ -5220,7 +4811,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5220
4811
|
}, _callee48, this);
|
5221
4812
|
}));
|
5222
4813
|
|
5223
|
-
function getPatientTreatmentPlanByUuid(
|
4814
|
+
function getPatientTreatmentPlanByUuid(_x110, _x111) {
|
5224
4815
|
return _getPatientTreatmentPlanByUuid.apply(this, arguments);
|
5225
4816
|
}
|
5226
4817
|
|
@@ -5240,10 +4831,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
5240
4831
|
_proto.getPatientDocumentsList =
|
5241
4832
|
/*#__PURE__*/
|
5242
4833
|
function () {
|
5243
|
-
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4834
|
+
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(filters, expandPrivateMetadata, consultationId) {
|
5244
4835
|
var _this8 = this;
|
5245
4836
|
|
5246
|
-
return
|
4837
|
+
return _regeneratorRuntime().wrap(function _callee50$(_context51) {
|
5247
4838
|
while (1) {
|
5248
4839
|
switch (_context51.prev = _context51.next) {
|
5249
4840
|
case 0:
|
@@ -5259,8 +4850,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5259
4850
|
consultationId: consultationId
|
5260
4851
|
}), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
|
5261
4852
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
5262
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
5263
|
-
return
|
4853
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(entry) {
|
4854
|
+
return _regeneratorRuntime().wrap(function _callee49$(_context50) {
|
5264
4855
|
while (1) {
|
5265
4856
|
switch (_context50.prev = _context50.next) {
|
5266
4857
|
case 0:
|
@@ -5277,7 +4868,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5277
4868
|
}, _callee49);
|
5278
4869
|
}));
|
5279
4870
|
|
5280
|
-
return function (
|
4871
|
+
return function (_x115) {
|
5281
4872
|
return _ref7.apply(this, arguments);
|
5282
4873
|
};
|
5283
4874
|
}()));
|
@@ -5295,7 +4886,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5295
4886
|
}, _callee50, this);
|
5296
4887
|
}));
|
5297
4888
|
|
5298
|
-
function getPatientDocumentsList(
|
4889
|
+
function getPatientDocumentsList(_x112, _x113, _x114) {
|
5299
4890
|
return _getPatientDocumentsList.apply(this, arguments);
|
5300
4891
|
}
|
5301
4892
|
|
@@ -5318,9 +4909,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5318
4909
|
_proto.recoverPrivateKeyFromSecurityQuestions =
|
5319
4910
|
/*#__PURE__*/
|
5320
4911
|
function () {
|
5321
|
-
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4912
|
+
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5322
4913
|
var shards, answeredShards, privateKey;
|
5323
|
-
return
|
4914
|
+
return _regeneratorRuntime().wrap(function _callee51$(_context52) {
|
5324
4915
|
while (1) {
|
5325
4916
|
switch (_context52.prev = _context52.next) {
|
5326
4917
|
case 0:
|
@@ -5357,7 +4948,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5357
4948
|
}, _callee51, this);
|
5358
4949
|
}));
|
5359
4950
|
|
5360
|
-
function recoverPrivateKeyFromSecurityQuestions(
|
4951
|
+
function recoverPrivateKeyFromSecurityQuestions(_x116, _x117, _x118, _x119) {
|
5361
4952
|
return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
|
5362
4953
|
}
|
5363
4954
|
|
@@ -5374,9 +4965,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5374
4965
|
_proto.recoverPrivateKeyFromPassword =
|
5375
4966
|
/*#__PURE__*/
|
5376
4967
|
function () {
|
5377
|
-
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4968
|
+
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(id, password) {
|
5378
4969
|
var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
|
5379
|
-
return
|
4970
|
+
return _regeneratorRuntime().wrap(function _callee52$(_context53) {
|
5380
4971
|
while (1) {
|
5381
4972
|
switch (_context53.prev = _context53.next) {
|
5382
4973
|
case 0:
|
@@ -5405,7 +4996,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5405
4996
|
}, _callee52, this);
|
5406
4997
|
}));
|
5407
4998
|
|
5408
|
-
function recoverPrivateKeyFromPassword(
|
4999
|
+
function recoverPrivateKeyFromPassword(_x120, _x121) {
|
5409
5000
|
return _recoverPrivateKeyFromPassword.apply(this, arguments);
|
5410
5001
|
}
|
5411
5002
|
|
@@ -5422,9 +5013,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5422
5013
|
_proto.recoverPrivateKeyFromMasterKey =
|
5423
5014
|
/*#__PURE__*/
|
5424
5015
|
function () {
|
5425
|
-
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5016
|
+
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(id, masterKey) {
|
5426
5017
|
var recoveryPayload, symmetricDecryptor, privateKey;
|
5427
|
-
return
|
5018
|
+
return _regeneratorRuntime().wrap(function _callee53$(_context54) {
|
5428
5019
|
while (1) {
|
5429
5020
|
switch (_context54.prev = _context54.next) {
|
5430
5021
|
case 0:
|
@@ -5445,7 +5036,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5445
5036
|
}, _callee53, this);
|
5446
5037
|
}));
|
5447
5038
|
|
5448
|
-
function recoverPrivateKeyFromMasterKey(
|
5039
|
+
function recoverPrivateKeyFromMasterKey(_x122, _x123) {
|
5449
5040
|
return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
|
5450
5041
|
}
|
5451
5042
|
|
@@ -5464,9 +5055,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5464
5055
|
_proto.updateSecurityQuestions =
|
5465
5056
|
/*#__PURE__*/
|
5466
5057
|
function () {
|
5467
|
-
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5058
|
+
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5468
5059
|
var securityQuestionPayload, updateRequest;
|
5469
|
-
return
|
5060
|
+
return _regeneratorRuntime().wrap(function _callee54$(_context55) {
|
5470
5061
|
while (1) {
|
5471
5062
|
switch (_context55.prev = _context55.next) {
|
5472
5063
|
case 0:
|
@@ -5496,7 +5087,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5496
5087
|
}, _callee54, this);
|
5497
5088
|
}));
|
5498
5089
|
|
5499
|
-
function updateSecurityQuestions(
|
5090
|
+
function updateSecurityQuestions(_x124, _x125, _x126, _x127) {
|
5500
5091
|
return _updateSecurityQuestions.apply(this, arguments);
|
5501
5092
|
}
|
5502
5093
|
|
@@ -5518,9 +5109,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5518
5109
|
_proto.updatePassword =
|
5519
5110
|
/*#__PURE__*/
|
5520
5111
|
function () {
|
5521
|
-
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5112
|
+
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55(id, newPassword, oldPassword) {
|
5522
5113
|
var symmetricEncryptor, passwordPayload, updateRequest;
|
5523
|
-
return
|
5114
|
+
return _regeneratorRuntime().wrap(function _callee55$(_context56) {
|
5524
5115
|
while (1) {
|
5525
5116
|
switch (_context56.prev = _context56.next) {
|
5526
5117
|
case 0:
|
@@ -5561,7 +5152,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5561
5152
|
}, _callee55, this);
|
5562
5153
|
}));
|
5563
5154
|
|
5564
|
-
function updatePassword(
|
5155
|
+
function updatePassword(_x128, _x129, _x130) {
|
5565
5156
|
return _updatePassword.apply(this, arguments);
|
5566
5157
|
}
|
5567
5158
|
|
@@ -5580,9 +5171,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5580
5171
|
_proto.updateMasterKey =
|
5581
5172
|
/*#__PURE__*/
|
5582
5173
|
function () {
|
5583
|
-
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5174
|
+
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee56(id, masterKey, lockboxUuid) {
|
5584
5175
|
var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
|
5585
|
-
return
|
5176
|
+
return _regeneratorRuntime().wrap(function _callee56$(_context57) {
|
5586
5177
|
while (1) {
|
5587
5178
|
switch (_context57.prev = _context57.next) {
|
5588
5179
|
case 0:
|
@@ -5623,7 +5214,7 @@ var OroClient = /*#__PURE__*/function () {
|
|
5623
5214
|
}, _callee56, this);
|
5624
5215
|
}));
|
5625
5216
|
|
5626
|
-
function updateMasterKey(
|
5217
|
+
function updateMasterKey(_x131, _x132, _x133) {
|
5627
5218
|
return _updateMasterKey.apply(this, arguments);
|
5628
5219
|
}
|
5629
5220
|
|