oro-sdk-apis 1.29.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/models/practice.d.ts +7 -3
- package/dist/models/workflow.d.ts +1 -0
- package/dist/oro-sdk-apis.cjs.development.js +816 -401
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +816 -401
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/models/practice.ts +7 -3
- package/src/models/workflow.ts +3 -1
|
@@ -19,503 +19,918 @@ function hashToBase64String(value) {
|
|
|
19
19
|
return _.Buffer.from(hash_js.sha256().update(value).digest('hex'), 'hex').toString('base64');
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
function
|
|
23
|
-
|
|
22
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
23
|
+
try {
|
|
24
|
+
var info = gen[key](arg);
|
|
25
|
+
var value = info.value;
|
|
26
|
+
} catch (error) {
|
|
27
|
+
reject(error);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (info.done) {
|
|
32
|
+
resolve(value);
|
|
33
|
+
} else {
|
|
34
|
+
Promise.resolve(value).then(_next, _throw);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function _asyncToGenerator(fn) {
|
|
39
|
+
return function () {
|
|
40
|
+
var self = this,
|
|
41
|
+
args = arguments;
|
|
42
|
+
return new Promise(function (resolve, reject) {
|
|
43
|
+
var gen = fn.apply(self, args);
|
|
44
|
+
|
|
45
|
+
function _next(value) {
|
|
46
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _throw(err) {
|
|
50
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
_next(undefined);
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function _extends() {
|
|
59
|
+
_extends = Object.assign || function (target) {
|
|
60
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
61
|
+
var source = arguments[i];
|
|
62
|
+
|
|
63
|
+
for (var key in source) {
|
|
64
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
65
|
+
target[key] = source[key];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return target;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
return _extends.apply(this, arguments);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function _inheritsLoose(subClass, superClass) {
|
|
77
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
78
|
+
subClass.prototype.constructor = subClass;
|
|
79
|
+
|
|
80
|
+
_setPrototypeOf(subClass, superClass);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function _getPrototypeOf(o) {
|
|
84
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
85
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
86
|
+
};
|
|
87
|
+
return _getPrototypeOf(o);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function _setPrototypeOf(o, p) {
|
|
91
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
92
|
+
o.__proto__ = p;
|
|
93
|
+
return o;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
return _setPrototypeOf(o, p);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function _isNativeReflectConstruct() {
|
|
100
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
101
|
+
if (Reflect.construct.sham) return false;
|
|
102
|
+
if (typeof Proxy === "function") return true;
|
|
103
|
+
|
|
104
|
+
try {
|
|
105
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
106
|
+
return true;
|
|
107
|
+
} catch (e) {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function _construct(Parent, args, Class) {
|
|
113
|
+
if (_isNativeReflectConstruct()) {
|
|
114
|
+
_construct = Reflect.construct;
|
|
115
|
+
} else {
|
|
116
|
+
_construct = function _construct(Parent, args, Class) {
|
|
117
|
+
var a = [null];
|
|
118
|
+
a.push.apply(a, args);
|
|
119
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
120
|
+
var instance = new Constructor();
|
|
121
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
122
|
+
return instance;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return _construct.apply(null, arguments);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function _isNativeFunction(fn) {
|
|
130
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function _wrapNativeSuper(Class) {
|
|
134
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
135
|
+
|
|
136
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
137
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
24
138
|
|
|
25
|
-
|
|
26
|
-
|
|
139
|
+
if (typeof Class !== "function") {
|
|
140
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (typeof _cache !== "undefined") {
|
|
144
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
145
|
+
|
|
146
|
+
_cache.set(Class, Wrapper);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function Wrapper() {
|
|
150
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
154
|
+
constructor: {
|
|
155
|
+
value: Wrapper,
|
|
156
|
+
enumerable: false,
|
|
157
|
+
writable: true,
|
|
158
|
+
configurable: true
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
return _setPrototypeOf(Wrapper, Class);
|
|
27
162
|
};
|
|
28
163
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
164
|
+
return _wrapNativeSuper(Class);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function _assertThisInitialized(self) {
|
|
168
|
+
if (self === void 0) {
|
|
169
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return self;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function createCommonjsModule(fn, module) {
|
|
176
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
var runtime_1 = createCommonjsModule(function (module) {
|
|
180
|
+
/**
|
|
181
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the MIT license found in the
|
|
184
|
+
* LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
var runtime = (function (exports) {
|
|
188
|
+
|
|
189
|
+
var Op = Object.prototype;
|
|
190
|
+
var hasOwn = Op.hasOwnProperty;
|
|
191
|
+
var undefined$1; // More compressible than void 0.
|
|
192
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
193
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
194
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
195
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
36
196
|
|
|
37
197
|
function define(obj, key, value) {
|
|
38
|
-
|
|
198
|
+
Object.defineProperty(obj, key, {
|
|
39
199
|
value: value,
|
|
40
|
-
enumerable:
|
|
41
|
-
configurable:
|
|
42
|
-
writable:
|
|
43
|
-
})
|
|
200
|
+
enumerable: true,
|
|
201
|
+
configurable: true,
|
|
202
|
+
writable: true
|
|
203
|
+
});
|
|
204
|
+
return obj[key];
|
|
44
205
|
}
|
|
45
|
-
|
|
46
206
|
try {
|
|
207
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
47
208
|
define({}, "");
|
|
48
209
|
} catch (err) {
|
|
49
|
-
define = function
|
|
210
|
+
define = function(obj, key, value) {
|
|
50
211
|
return obj[key] = value;
|
|
51
212
|
};
|
|
52
213
|
}
|
|
53
214
|
|
|
54
215
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var state = "suspendedStart";
|
|
60
|
-
return function (method, arg) {
|
|
61
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
62
|
-
|
|
63
|
-
if ("completed" === state) {
|
|
64
|
-
if ("throw" === method) throw arg;
|
|
65
|
-
return doneResult();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
for (context.method = method, context.arg = arg;;) {
|
|
69
|
-
var delegate = context.delegate;
|
|
216
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
217
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
218
|
+
var generator = Object.create(protoGenerator.prototype);
|
|
219
|
+
var context = new Context(tryLocsList || []);
|
|
70
220
|
|
|
71
|
-
|
|
72
|
-
|
|
221
|
+
// The ._invoke method unifies the implementations of the .next,
|
|
222
|
+
// .throw, and .return methods.
|
|
223
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
73
224
|
|
|
74
|
-
|
|
75
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
76
|
-
return delegateResult;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
81
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
82
|
-
context.dispatchException(context.arg);
|
|
83
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
84
|
-
state = "executing";
|
|
85
|
-
var record = tryCatch(innerFn, self, context);
|
|
86
|
-
|
|
87
|
-
if ("normal" === record.type) {
|
|
88
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
89
|
-
return {
|
|
90
|
-
value: record.arg,
|
|
91
|
-
done: context.done
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}(innerFn, self, context), generator;
|
|
225
|
+
return generator;
|
|
99
226
|
}
|
|
227
|
+
exports.wrap = wrap;
|
|
100
228
|
|
|
229
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
230
|
+
// record like context.tryEntries[i].completion. This interface could
|
|
231
|
+
// have been (and was previously) designed to take a closure to be
|
|
232
|
+
// invoked without arguments, but in all the cases we care about we
|
|
233
|
+
// already have an existing method we want to call, so there's no need
|
|
234
|
+
// to create a new function object. We can even get away with assuming
|
|
235
|
+
// the method takes exactly one argument, since that happens to be true
|
|
236
|
+
// in every case, so we don't have to touch the arguments object. The
|
|
237
|
+
// only additional allocation required is the completion record, which
|
|
238
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
|
101
239
|
function tryCatch(fn, obj, arg) {
|
|
102
240
|
try {
|
|
103
|
-
return {
|
|
104
|
-
type: "normal",
|
|
105
|
-
arg: fn.call(obj, arg)
|
|
106
|
-
};
|
|
241
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
|
107
242
|
} catch (err) {
|
|
108
|
-
return {
|
|
109
|
-
type: "throw",
|
|
110
|
-
arg: err
|
|
111
|
-
};
|
|
243
|
+
return { type: "throw", arg: err };
|
|
112
244
|
}
|
|
113
245
|
}
|
|
114
246
|
|
|
115
|
-
|
|
247
|
+
var GenStateSuspendedStart = "suspendedStart";
|
|
248
|
+
var GenStateSuspendedYield = "suspendedYield";
|
|
249
|
+
var GenStateExecuting = "executing";
|
|
250
|
+
var GenStateCompleted = "completed";
|
|
251
|
+
|
|
252
|
+
// Returning this object from the innerFn has the same effect as
|
|
253
|
+
// breaking out of the dispatch switch statement.
|
|
116
254
|
var ContinueSentinel = {};
|
|
117
255
|
|
|
256
|
+
// Dummy constructor functions that we use as the .constructor and
|
|
257
|
+
// .constructor.prototype properties for functions that return Generator
|
|
258
|
+
// objects. For full spec compliance, you may wish to configure your
|
|
259
|
+
// minifier not to mangle the names of these two functions.
|
|
118
260
|
function Generator() {}
|
|
119
|
-
|
|
120
261
|
function GeneratorFunction() {}
|
|
121
|
-
|
|
122
262
|
function GeneratorFunctionPrototype() {}
|
|
123
263
|
|
|
264
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
|
265
|
+
// don't natively support it.
|
|
124
266
|
var IteratorPrototype = {};
|
|
125
267
|
define(IteratorPrototype, iteratorSymbol, function () {
|
|
126
268
|
return this;
|
|
127
269
|
});
|
|
128
|
-
var getProto = Object.getPrototypeOf,
|
|
129
|
-
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
130
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
131
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
132
270
|
|
|
271
|
+
var getProto = Object.getPrototypeOf;
|
|
272
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
273
|
+
if (NativeIteratorPrototype &&
|
|
274
|
+
NativeIteratorPrototype !== Op &&
|
|
275
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
276
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
|
277
|
+
// of the polyfill.
|
|
278
|
+
IteratorPrototype = NativeIteratorPrototype;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
|
282
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
|
283
|
+
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
284
|
+
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
285
|
+
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
286
|
+
GeneratorFunction.displayName = define(
|
|
287
|
+
GeneratorFunctionPrototype,
|
|
288
|
+
toStringTagSymbol,
|
|
289
|
+
"GeneratorFunction"
|
|
290
|
+
);
|
|
291
|
+
|
|
292
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
|
293
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
133
294
|
function defineIteratorMethods(prototype) {
|
|
134
|
-
["next", "throw", "return"].forEach(function
|
|
135
|
-
define(prototype, method, function
|
|
295
|
+
["next", "throw", "return"].forEach(function(method) {
|
|
296
|
+
define(prototype, method, function(arg) {
|
|
136
297
|
return this._invoke(method, arg);
|
|
137
298
|
});
|
|
138
299
|
});
|
|
139
300
|
}
|
|
140
301
|
|
|
302
|
+
exports.isGeneratorFunction = function(genFun) {
|
|
303
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
304
|
+
return ctor
|
|
305
|
+
? ctor === GeneratorFunction ||
|
|
306
|
+
// For the native GeneratorFunction constructor, the best we can
|
|
307
|
+
// do is to check its .name property.
|
|
308
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
309
|
+
: false;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
exports.mark = function(genFun) {
|
|
313
|
+
if (Object.setPrototypeOf) {
|
|
314
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
315
|
+
} else {
|
|
316
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
317
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
318
|
+
}
|
|
319
|
+
genFun.prototype = Object.create(Gp);
|
|
320
|
+
return genFun;
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
// Within the body of any async function, `await x` is transformed to
|
|
324
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
325
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
326
|
+
// meant to be awaited.
|
|
327
|
+
exports.awrap = function(arg) {
|
|
328
|
+
return { __await: arg };
|
|
329
|
+
};
|
|
330
|
+
|
|
141
331
|
function AsyncIterator(generator, PromiseImpl) {
|
|
142
332
|
function invoke(method, arg, resolve, reject) {
|
|
143
333
|
var record = tryCatch(generator[method], generator, arg);
|
|
334
|
+
if (record.type === "throw") {
|
|
335
|
+
reject(record.arg);
|
|
336
|
+
} else {
|
|
337
|
+
var result = record.arg;
|
|
338
|
+
var value = result.value;
|
|
339
|
+
if (value &&
|
|
340
|
+
typeof value === "object" &&
|
|
341
|
+
hasOwn.call(value, "__await")) {
|
|
342
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
343
|
+
invoke("next", value, resolve, reject);
|
|
344
|
+
}, function(err) {
|
|
345
|
+
invoke("throw", err, resolve, reject);
|
|
346
|
+
});
|
|
347
|
+
}
|
|
144
348
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}, function (error) {
|
|
349
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
350
|
+
// When a yielded Promise is resolved, its final value becomes
|
|
351
|
+
// the .value of the Promise<{value,done}> result for the
|
|
352
|
+
// current iteration.
|
|
353
|
+
result.value = unwrapped;
|
|
354
|
+
resolve(result);
|
|
355
|
+
}, function(error) {
|
|
356
|
+
// If a rejected Promise was yielded, throw the rejection back
|
|
357
|
+
// into the async generator function so it can be handled there.
|
|
155
358
|
return invoke("throw", error, resolve, reject);
|
|
156
359
|
});
|
|
157
360
|
}
|
|
158
|
-
|
|
159
|
-
reject(record.arg);
|
|
160
361
|
}
|
|
161
362
|
|
|
162
363
|
var previousPromise;
|
|
163
364
|
|
|
164
|
-
|
|
365
|
+
function enqueue(method, arg) {
|
|
165
366
|
function callInvokeWithMethodAndArg() {
|
|
166
|
-
return new PromiseImpl(function
|
|
367
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
167
368
|
invoke(method, arg, resolve, reject);
|
|
168
369
|
});
|
|
169
370
|
}
|
|
170
371
|
|
|
171
|
-
return previousPromise =
|
|
372
|
+
return previousPromise =
|
|
373
|
+
// If enqueue has been called before, then we want to wait until
|
|
374
|
+
// all previous Promises have been resolved before calling invoke,
|
|
375
|
+
// so that results are always delivered in the correct order. If
|
|
376
|
+
// enqueue has not been called before, then it is important to
|
|
377
|
+
// call invoke immediately, without waiting on a callback to fire,
|
|
378
|
+
// so that the async generator function has the opportunity to do
|
|
379
|
+
// any necessary setup in a predictable way. This predictability
|
|
380
|
+
// is why the Promise constructor synchronously invokes its
|
|
381
|
+
// executor callback, and why async functions synchronously
|
|
382
|
+
// execute code before the first await. Since we implement simple
|
|
383
|
+
// async functions in terms of async generators, it is especially
|
|
384
|
+
// important to get this right, even though it requires care.
|
|
385
|
+
previousPromise ? previousPromise.then(
|
|
386
|
+
callInvokeWithMethodAndArg,
|
|
387
|
+
// Avoid propagating failures to Promises returned by later
|
|
388
|
+
// invocations of the iterator.
|
|
389
|
+
callInvokeWithMethodAndArg
|
|
390
|
+
) : callInvokeWithMethodAndArg();
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// Define the unified helper method that is used to implement .next,
|
|
394
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
395
|
+
this._invoke = enqueue;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
|
399
|
+
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
400
|
+
return this;
|
|
401
|
+
});
|
|
402
|
+
exports.AsyncIterator = AsyncIterator;
|
|
403
|
+
|
|
404
|
+
// Note that simple async functions are implemented on top of
|
|
405
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
|
406
|
+
// the final result produced by the iterator.
|
|
407
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
408
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
409
|
+
|
|
410
|
+
var iter = new AsyncIterator(
|
|
411
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
|
412
|
+
PromiseImpl
|
|
413
|
+
);
|
|
414
|
+
|
|
415
|
+
return exports.isGeneratorFunction(outerFn)
|
|
416
|
+
? iter // If outerFn is a generator, return the full iterator.
|
|
417
|
+
: iter.next().then(function(result) {
|
|
418
|
+
return result.done ? result.value : iter.next();
|
|
419
|
+
});
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
423
|
+
var state = GenStateSuspendedStart;
|
|
424
|
+
|
|
425
|
+
return function invoke(method, arg) {
|
|
426
|
+
if (state === GenStateExecuting) {
|
|
427
|
+
throw new Error("Generator is already running");
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
if (state === GenStateCompleted) {
|
|
431
|
+
if (method === "throw") {
|
|
432
|
+
throw arg;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
436
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
437
|
+
return doneResult();
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
context.method = method;
|
|
441
|
+
context.arg = arg;
|
|
442
|
+
|
|
443
|
+
while (true) {
|
|
444
|
+
var delegate = context.delegate;
|
|
445
|
+
if (delegate) {
|
|
446
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
447
|
+
if (delegateResult) {
|
|
448
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
449
|
+
return delegateResult;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
if (context.method === "next") {
|
|
454
|
+
// Setting context._sent for legacy support of Babel's
|
|
455
|
+
// function.sent implementation.
|
|
456
|
+
context.sent = context._sent = context.arg;
|
|
457
|
+
|
|
458
|
+
} else if (context.method === "throw") {
|
|
459
|
+
if (state === GenStateSuspendedStart) {
|
|
460
|
+
state = GenStateCompleted;
|
|
461
|
+
throw context.arg;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
context.dispatchException(context.arg);
|
|
465
|
+
|
|
466
|
+
} else if (context.method === "return") {
|
|
467
|
+
context.abrupt("return", context.arg);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
state = GenStateExecuting;
|
|
471
|
+
|
|
472
|
+
var record = tryCatch(innerFn, self, context);
|
|
473
|
+
if (record.type === "normal") {
|
|
474
|
+
// If an exception is thrown from innerFn, we leave state ===
|
|
475
|
+
// GenStateExecuting and loop back for another invocation.
|
|
476
|
+
state = context.done
|
|
477
|
+
? GenStateCompleted
|
|
478
|
+
: GenStateSuspendedYield;
|
|
479
|
+
|
|
480
|
+
if (record.arg === ContinueSentinel) {
|
|
481
|
+
continue;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
return {
|
|
485
|
+
value: record.arg,
|
|
486
|
+
done: context.done
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
} else if (record.type === "throw") {
|
|
490
|
+
state = GenStateCompleted;
|
|
491
|
+
// Dispatch the exception by looping back around to the
|
|
492
|
+
// context.dispatchException(context.arg) call above.
|
|
493
|
+
context.method = "throw";
|
|
494
|
+
context.arg = record.arg;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
172
497
|
};
|
|
173
498
|
}
|
|
174
499
|
|
|
500
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
501
|
+
// result, either by returning a { value, done } result from the
|
|
502
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
|
503
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
175
504
|
function maybeInvokeDelegate(delegate, context) {
|
|
176
505
|
var method = delegate.iterator[context.method];
|
|
506
|
+
if (method === undefined$1) {
|
|
507
|
+
// A .throw or .return when the delegate iterator has no .throw
|
|
508
|
+
// method always terminates the yield* loop.
|
|
509
|
+
context.delegate = null;
|
|
510
|
+
|
|
511
|
+
if (context.method === "throw") {
|
|
512
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
513
|
+
if (delegate.iterator["return"]) {
|
|
514
|
+
// If the delegate iterator has a return method, give it a
|
|
515
|
+
// chance to clean up.
|
|
516
|
+
context.method = "return";
|
|
517
|
+
context.arg = undefined$1;
|
|
518
|
+
maybeInvokeDelegate(delegate, context);
|
|
519
|
+
|
|
520
|
+
if (context.method === "throw") {
|
|
521
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
|
522
|
+
// "return" to "throw", let that override the TypeError below.
|
|
523
|
+
return ContinueSentinel;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
177
526
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
527
|
+
context.method = "throw";
|
|
528
|
+
context.arg = new TypeError(
|
|
529
|
+
"The iterator does not provide a 'throw' method");
|
|
182
530
|
}
|
|
183
531
|
|
|
184
532
|
return ContinueSentinel;
|
|
185
533
|
}
|
|
186
534
|
|
|
187
535
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
188
|
-
|
|
536
|
+
|
|
537
|
+
if (record.type === "throw") {
|
|
538
|
+
context.method = "throw";
|
|
539
|
+
context.arg = record.arg;
|
|
540
|
+
context.delegate = null;
|
|
541
|
+
return ContinueSentinel;
|
|
542
|
+
}
|
|
543
|
+
|
|
189
544
|
var info = record.arg;
|
|
190
|
-
|
|
545
|
+
|
|
546
|
+
if (! info) {
|
|
547
|
+
context.method = "throw";
|
|
548
|
+
context.arg = new TypeError("iterator result is not an object");
|
|
549
|
+
context.delegate = null;
|
|
550
|
+
return ContinueSentinel;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
if (info.done) {
|
|
554
|
+
// Assign the result of the finished delegate to the temporary
|
|
555
|
+
// variable specified by delegate.resultName (see delegateYield).
|
|
556
|
+
context[delegate.resultName] = info.value;
|
|
557
|
+
|
|
558
|
+
// Resume execution at the desired location (see delegateYield).
|
|
559
|
+
context.next = delegate.nextLoc;
|
|
560
|
+
|
|
561
|
+
// If context.method was "throw" but the delegate handled the
|
|
562
|
+
// exception, let the outer generator proceed normally. If
|
|
563
|
+
// context.method was "next", forget context.arg since it has been
|
|
564
|
+
// "consumed" by the delegate iterator. If context.method was
|
|
565
|
+
// "return", allow the original .return call to continue in the
|
|
566
|
+
// outer generator.
|
|
567
|
+
if (context.method !== "return") {
|
|
568
|
+
context.method = "next";
|
|
569
|
+
context.arg = undefined$1;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
} else {
|
|
573
|
+
// Re-yield the result returned by the delegate method.
|
|
574
|
+
return info;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
// The delegate iterator is finished, so forget it and continue with
|
|
578
|
+
// the outer generator.
|
|
579
|
+
context.delegate = null;
|
|
580
|
+
return ContinueSentinel;
|
|
191
581
|
}
|
|
192
582
|
|
|
583
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
584
|
+
// unified ._invoke helper method.
|
|
585
|
+
defineIteratorMethods(Gp);
|
|
586
|
+
|
|
587
|
+
define(Gp, toStringTagSymbol, "Generator");
|
|
588
|
+
|
|
589
|
+
// A Generator should always return itself as the iterator object when the
|
|
590
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
|
591
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
592
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
|
593
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
594
|
+
define(Gp, iteratorSymbol, function() {
|
|
595
|
+
return this;
|
|
596
|
+
});
|
|
597
|
+
|
|
598
|
+
define(Gp, "toString", function() {
|
|
599
|
+
return "[object Generator]";
|
|
600
|
+
});
|
|
601
|
+
|
|
193
602
|
function pushTryEntry(locs) {
|
|
194
|
-
var entry = {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
603
|
+
var entry = { tryLoc: locs[0] };
|
|
604
|
+
|
|
605
|
+
if (1 in locs) {
|
|
606
|
+
entry.catchLoc = locs[1];
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
if (2 in locs) {
|
|
610
|
+
entry.finallyLoc = locs[2];
|
|
611
|
+
entry.afterLoc = locs[3];
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
this.tryEntries.push(entry);
|
|
198
615
|
}
|
|
199
616
|
|
|
200
617
|
function resetTryEntry(entry) {
|
|
201
618
|
var record = entry.completion || {};
|
|
202
|
-
record.type = "normal"
|
|
619
|
+
record.type = "normal";
|
|
620
|
+
delete record.arg;
|
|
621
|
+
entry.completion = record;
|
|
203
622
|
}
|
|
204
623
|
|
|
205
624
|
function Context(tryLocsList) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
625
|
+
// The root entry object (effectively a try statement without a catch
|
|
626
|
+
// or a finally block) gives us a place to store values thrown from
|
|
627
|
+
// locations where there is no enclosing try statement.
|
|
628
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
|
629
|
+
tryLocsList.forEach(pushTryEntry, this);
|
|
630
|
+
this.reset(true);
|
|
209
631
|
}
|
|
210
632
|
|
|
633
|
+
exports.keys = function(object) {
|
|
634
|
+
var keys = [];
|
|
635
|
+
for (var key in object) {
|
|
636
|
+
keys.push(key);
|
|
637
|
+
}
|
|
638
|
+
keys.reverse();
|
|
639
|
+
|
|
640
|
+
// Rather than returning an object with a next method, we keep
|
|
641
|
+
// things simple and return the next function itself.
|
|
642
|
+
return function next() {
|
|
643
|
+
while (keys.length) {
|
|
644
|
+
var key = keys.pop();
|
|
645
|
+
if (key in object) {
|
|
646
|
+
next.value = key;
|
|
647
|
+
next.done = false;
|
|
648
|
+
return next;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// To avoid creating an additional object, we just hang the .value
|
|
653
|
+
// and .done properties off the next function object itself. This
|
|
654
|
+
// also ensures that the minifier will not anonymize the function.
|
|
655
|
+
next.done = true;
|
|
656
|
+
return next;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
|
|
211
660
|
function values(iterable) {
|
|
212
661
|
if (iterable) {
|
|
213
662
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
214
|
-
if (iteratorMethod)
|
|
215
|
-
|
|
663
|
+
if (iteratorMethod) {
|
|
664
|
+
return iteratorMethod.call(iterable);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
if (typeof iterable.next === "function") {
|
|
668
|
+
return iterable;
|
|
669
|
+
}
|
|
216
670
|
|
|
217
671
|
if (!isNaN(iterable.length)) {
|
|
218
|
-
var i = -1,
|
|
219
|
-
|
|
220
|
-
|
|
672
|
+
var i = -1, next = function next() {
|
|
673
|
+
while (++i < iterable.length) {
|
|
674
|
+
if (hasOwn.call(iterable, i)) {
|
|
675
|
+
next.value = iterable[i];
|
|
676
|
+
next.done = false;
|
|
677
|
+
return next;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
221
680
|
|
|
222
|
-
|
|
681
|
+
next.value = undefined$1;
|
|
682
|
+
next.done = true;
|
|
683
|
+
|
|
684
|
+
return next;
|
|
223
685
|
};
|
|
224
686
|
|
|
225
687
|
return next.next = next;
|
|
226
688
|
}
|
|
227
689
|
}
|
|
228
690
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
};
|
|
691
|
+
// Return an iterator with no values.
|
|
692
|
+
return { next: doneResult };
|
|
232
693
|
}
|
|
694
|
+
exports.values = values;
|
|
233
695
|
|
|
234
696
|
function doneResult() {
|
|
235
|
-
return {
|
|
236
|
-
value: undefined,
|
|
237
|
-
done: !0
|
|
238
|
-
};
|
|
697
|
+
return { value: undefined$1, done: true };
|
|
239
698
|
}
|
|
240
699
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
244
|
-
}, exports.mark = function (genFun) {
|
|
245
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
246
|
-
}, exports.awrap = function (arg) {
|
|
247
|
-
return {
|
|
248
|
-
__await: arg
|
|
249
|
-
};
|
|
250
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
251
|
-
return this;
|
|
252
|
-
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
253
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
254
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
255
|
-
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
256
|
-
return result.done ? result.value : iter.next();
|
|
257
|
-
});
|
|
258
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
259
|
-
return this;
|
|
260
|
-
}), define(Gp, "toString", function () {
|
|
261
|
-
return "[object Generator]";
|
|
262
|
-
}), exports.keys = function (object) {
|
|
263
|
-
var keys = [];
|
|
700
|
+
Context.prototype = {
|
|
701
|
+
constructor: Context,
|
|
264
702
|
|
|
265
|
-
|
|
703
|
+
reset: function(skipTempReset) {
|
|
704
|
+
this.prev = 0;
|
|
705
|
+
this.next = 0;
|
|
706
|
+
// Resetting context._sent for legacy support of Babel's
|
|
707
|
+
// function.sent implementation.
|
|
708
|
+
this.sent = this._sent = undefined$1;
|
|
709
|
+
this.done = false;
|
|
710
|
+
this.delegate = null;
|
|
711
|
+
|
|
712
|
+
this.method = "next";
|
|
713
|
+
this.arg = undefined$1;
|
|
714
|
+
|
|
715
|
+
this.tryEntries.forEach(resetTryEntry);
|
|
716
|
+
|
|
717
|
+
if (!skipTempReset) {
|
|
718
|
+
for (var name in this) {
|
|
719
|
+
// Not sure about the optimal order of these conditions:
|
|
720
|
+
if (name.charAt(0) === "t" &&
|
|
721
|
+
hasOwn.call(this, name) &&
|
|
722
|
+
!isNaN(+name.slice(1))) {
|
|
723
|
+
this[name] = undefined$1;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
},
|
|
266
728
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
729
|
+
stop: function() {
|
|
730
|
+
this.done = true;
|
|
731
|
+
|
|
732
|
+
var rootEntry = this.tryEntries[0];
|
|
733
|
+
var rootRecord = rootEntry.completion;
|
|
734
|
+
if (rootRecord.type === "throw") {
|
|
735
|
+
throw rootRecord.arg;
|
|
271
736
|
}
|
|
272
737
|
|
|
273
|
-
return next.done = !0, next;
|
|
274
|
-
};
|
|
275
|
-
}, exports.values = values, Context.prototype = {
|
|
276
|
-
constructor: Context,
|
|
277
|
-
reset: function (skipTempReset) {
|
|
278
|
-
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);
|
|
279
|
-
},
|
|
280
|
-
stop: function () {
|
|
281
|
-
this.done = !0;
|
|
282
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
283
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
284
738
|
return this.rval;
|
|
285
739
|
},
|
|
286
|
-
dispatchException: function (exception) {
|
|
287
|
-
if (this.done) throw exception;
|
|
288
|
-
var context = this;
|
|
289
740
|
|
|
741
|
+
dispatchException: function(exception) {
|
|
742
|
+
if (this.done) {
|
|
743
|
+
throw exception;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
var context = this;
|
|
290
747
|
function handle(loc, caught) {
|
|
291
|
-
|
|
748
|
+
record.type = "throw";
|
|
749
|
+
record.arg = exception;
|
|
750
|
+
context.next = loc;
|
|
751
|
+
|
|
752
|
+
if (caught) {
|
|
753
|
+
// If the dispatched exception was caught by a catch block,
|
|
754
|
+
// then let that catch block handle the exception normally.
|
|
755
|
+
context.method = "next";
|
|
756
|
+
context.arg = undefined$1;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
return !! caught;
|
|
292
760
|
}
|
|
293
761
|
|
|
294
762
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
295
|
-
var entry = this.tryEntries[i]
|
|
296
|
-
|
|
297
|
-
|
|
763
|
+
var entry = this.tryEntries[i];
|
|
764
|
+
var record = entry.completion;
|
|
765
|
+
|
|
766
|
+
if (entry.tryLoc === "root") {
|
|
767
|
+
// Exception thrown outside of any try block that could handle
|
|
768
|
+
// it, so set the completion value of the entire function to
|
|
769
|
+
// throw the exception.
|
|
770
|
+
return handle("end");
|
|
771
|
+
}
|
|
298
772
|
|
|
299
773
|
if (entry.tryLoc <= this.prev) {
|
|
300
|
-
var hasCatch = hasOwn.call(entry, "catchLoc")
|
|
301
|
-
|
|
774
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
775
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
302
776
|
|
|
303
777
|
if (hasCatch && hasFinally) {
|
|
304
|
-
if (this.prev < entry.catchLoc)
|
|
305
|
-
|
|
778
|
+
if (this.prev < entry.catchLoc) {
|
|
779
|
+
return handle(entry.catchLoc, true);
|
|
780
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
781
|
+
return handle(entry.finallyLoc);
|
|
782
|
+
}
|
|
783
|
+
|
|
306
784
|
} else if (hasCatch) {
|
|
307
|
-
if (this.prev < entry.catchLoc)
|
|
785
|
+
if (this.prev < entry.catchLoc) {
|
|
786
|
+
return handle(entry.catchLoc, true);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
} else if (hasFinally) {
|
|
790
|
+
if (this.prev < entry.finallyLoc) {
|
|
791
|
+
return handle(entry.finallyLoc);
|
|
792
|
+
}
|
|
793
|
+
|
|
308
794
|
} else {
|
|
309
|
-
|
|
310
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
795
|
+
throw new Error("try statement without catch or finally");
|
|
311
796
|
}
|
|
312
797
|
}
|
|
313
798
|
}
|
|
314
799
|
},
|
|
315
|
-
|
|
800
|
+
|
|
801
|
+
abrupt: function(type, arg) {
|
|
316
802
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
317
803
|
var entry = this.tryEntries[i];
|
|
318
|
-
|
|
319
|
-
|
|
804
|
+
if (entry.tryLoc <= this.prev &&
|
|
805
|
+
hasOwn.call(entry, "finallyLoc") &&
|
|
806
|
+
this.prev < entry.finallyLoc) {
|
|
320
807
|
var finallyEntry = entry;
|
|
321
808
|
break;
|
|
322
809
|
}
|
|
323
810
|
}
|
|
324
811
|
|
|
325
|
-
|
|
812
|
+
if (finallyEntry &&
|
|
813
|
+
(type === "break" ||
|
|
814
|
+
type === "continue") &&
|
|
815
|
+
finallyEntry.tryLoc <= arg &&
|
|
816
|
+
arg <= finallyEntry.finallyLoc) {
|
|
817
|
+
// Ignore the finally entry if control is not jumping to a
|
|
818
|
+
// location outside the try/catch block.
|
|
819
|
+
finallyEntry = null;
|
|
820
|
+
}
|
|
821
|
+
|
|
326
822
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
327
|
-
|
|
823
|
+
record.type = type;
|
|
824
|
+
record.arg = arg;
|
|
825
|
+
|
|
826
|
+
if (finallyEntry) {
|
|
827
|
+
this.method = "next";
|
|
828
|
+
this.next = finallyEntry.finallyLoc;
|
|
829
|
+
return ContinueSentinel;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
return this.complete(record);
|
|
328
833
|
},
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
834
|
+
|
|
835
|
+
complete: function(record, afterLoc) {
|
|
836
|
+
if (record.type === "throw") {
|
|
837
|
+
throw record.arg;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
if (record.type === "break" ||
|
|
841
|
+
record.type === "continue") {
|
|
842
|
+
this.next = record.arg;
|
|
843
|
+
} else if (record.type === "return") {
|
|
844
|
+
this.rval = this.arg = record.arg;
|
|
845
|
+
this.method = "return";
|
|
846
|
+
this.next = "end";
|
|
847
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
848
|
+
this.next = afterLoc;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
return ContinueSentinel;
|
|
332
852
|
},
|
|
333
|
-
|
|
853
|
+
|
|
854
|
+
finish: function(finallyLoc) {
|
|
334
855
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
335
856
|
var entry = this.tryEntries[i];
|
|
336
|
-
if (entry.finallyLoc === finallyLoc)
|
|
857
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
858
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
859
|
+
resetTryEntry(entry);
|
|
860
|
+
return ContinueSentinel;
|
|
861
|
+
}
|
|
337
862
|
}
|
|
338
863
|
},
|
|
339
|
-
|
|
864
|
+
|
|
865
|
+
"catch": function(tryLoc) {
|
|
340
866
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
341
867
|
var entry = this.tryEntries[i];
|
|
342
|
-
|
|
343
868
|
if (entry.tryLoc === tryLoc) {
|
|
344
869
|
var record = entry.completion;
|
|
345
|
-
|
|
346
|
-
if ("throw" === record.type) {
|
|
870
|
+
if (record.type === "throw") {
|
|
347
871
|
var thrown = record.arg;
|
|
348
872
|
resetTryEntry(entry);
|
|
349
873
|
}
|
|
350
|
-
|
|
351
874
|
return thrown;
|
|
352
875
|
}
|
|
353
876
|
}
|
|
354
877
|
|
|
878
|
+
// The context.catch method must only be called with a location
|
|
879
|
+
// argument that corresponds to a known catch block.
|
|
355
880
|
throw new Error("illegal catch attempt");
|
|
356
881
|
},
|
|
357
|
-
|
|
358
|
-
|
|
882
|
+
|
|
883
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
|
884
|
+
this.delegate = {
|
|
359
885
|
iterator: values(iterable),
|
|
360
886
|
resultName: resultName,
|
|
361
887
|
nextLoc: nextLoc
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}, exports;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
368
|
-
try {
|
|
369
|
-
var info = gen[key](arg);
|
|
370
|
-
var value = info.value;
|
|
371
|
-
} catch (error) {
|
|
372
|
-
reject(error);
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
if (info.done) {
|
|
377
|
-
resolve(value);
|
|
378
|
-
} else {
|
|
379
|
-
Promise.resolve(value).then(_next, _throw);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
function _asyncToGenerator(fn) {
|
|
384
|
-
return function () {
|
|
385
|
-
var self = this,
|
|
386
|
-
args = arguments;
|
|
387
|
-
return new Promise(function (resolve, reject) {
|
|
388
|
-
var gen = fn.apply(self, args);
|
|
389
|
-
|
|
390
|
-
function _next(value) {
|
|
391
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
392
|
-
}
|
|
888
|
+
};
|
|
393
889
|
|
|
394
|
-
|
|
395
|
-
|
|
890
|
+
if (this.method === "next") {
|
|
891
|
+
// Deliberately forget the last sent value so that we don't
|
|
892
|
+
// accidentally pass it on to the delegate.
|
|
893
|
+
this.arg = undefined$1;
|
|
396
894
|
}
|
|
397
895
|
|
|
398
|
-
|
|
399
|
-
});
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
function _extends() {
|
|
404
|
-
_extends = Object.assign || function (target) {
|
|
405
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
406
|
-
var source = arguments[i];
|
|
407
|
-
|
|
408
|
-
for (var key in source) {
|
|
409
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
410
|
-
target[key] = source[key];
|
|
411
|
-
}
|
|
412
|
-
}
|
|
896
|
+
return ContinueSentinel;
|
|
413
897
|
}
|
|
414
|
-
|
|
415
|
-
return target;
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
return _extends.apply(this, arguments);
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
function _inheritsLoose(subClass, superClass) {
|
|
422
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
423
|
-
subClass.prototype.constructor = subClass;
|
|
424
|
-
|
|
425
|
-
_setPrototypeOf(subClass, superClass);
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
function _getPrototypeOf(o) {
|
|
429
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
430
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
431
898
|
};
|
|
432
|
-
return _getPrototypeOf(o);
|
|
433
|
-
}
|
|
434
899
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
900
|
+
// Regardless of whether this script is executing as a CommonJS module
|
|
901
|
+
// or not, return the runtime object so that we can declare the variable
|
|
902
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
903
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
904
|
+
return exports;
|
|
905
|
+
|
|
906
|
+
}(
|
|
907
|
+
// If this script is executing as a CommonJS module, use module.exports
|
|
908
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
909
|
+
// object. Either way, the resulting object will be used to initialize
|
|
910
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
911
|
+
module.exports
|
|
912
|
+
));
|
|
913
|
+
|
|
914
|
+
try {
|
|
915
|
+
regeneratorRuntime = runtime;
|
|
916
|
+
} catch (accidentalStrictMode) {
|
|
917
|
+
// This module should not be running in strict mode, so the above
|
|
918
|
+
// assignment should always work unless something is misconfigured. Just
|
|
919
|
+
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
920
|
+
// we can explicitly access globalThis. In older engines we can escape
|
|
921
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
922
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
923
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
924
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
925
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
926
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
927
|
+
if (typeof globalThis === "object") {
|
|
928
|
+
globalThis.regeneratorRuntime = runtime;
|
|
460
929
|
} else {
|
|
461
|
-
|
|
462
|
-
var a = [null];
|
|
463
|
-
a.push.apply(a, args);
|
|
464
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
465
|
-
var instance = new Constructor();
|
|
466
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
467
|
-
return instance;
|
|
468
|
-
};
|
|
930
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
469
931
|
}
|
|
470
|
-
|
|
471
|
-
return _construct.apply(null, arguments);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
function _isNativeFunction(fn) {
|
|
475
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
function _wrapNativeSuper(Class) {
|
|
479
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
480
|
-
|
|
481
|
-
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
482
|
-
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
483
|
-
|
|
484
|
-
if (typeof Class !== "function") {
|
|
485
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
if (typeof _cache !== "undefined") {
|
|
489
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
490
|
-
|
|
491
|
-
_cache.set(Class, Wrapper);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
function Wrapper() {
|
|
495
|
-
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
499
|
-
constructor: {
|
|
500
|
-
value: Wrapper,
|
|
501
|
-
enumerable: false,
|
|
502
|
-
writable: true,
|
|
503
|
-
configurable: true
|
|
504
|
-
}
|
|
505
|
-
});
|
|
506
|
-
return _setPrototypeOf(Wrapper, Class);
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
return _wrapNativeSuper(Class);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
function _assertThisInitialized(self) {
|
|
513
|
-
if (self === void 0) {
|
|
514
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
return self;
|
|
518
932
|
}
|
|
933
|
+
});
|
|
519
934
|
|
|
520
935
|
var AxiosService = /*#__PURE__*/function () {
|
|
521
936
|
function AxiosService(config) {
|
|
@@ -526,8 +941,8 @@ var AxiosService = /*#__PURE__*/function () {
|
|
|
526
941
|
var _proto = AxiosService.prototype;
|
|
527
942
|
|
|
528
943
|
_proto.apiRequest = /*#__PURE__*/function () {
|
|
529
|
-
var _apiRequest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
530
|
-
return
|
|
944
|
+
var _apiRequest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(config, url, data) {
|
|
945
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
531
946
|
while (1) {
|
|
532
947
|
switch (_context.prev = _context.next) {
|
|
533
948
|
case 0:
|
|
@@ -556,8 +971,8 @@ var AxiosService = /*#__PURE__*/function () {
|
|
|
556
971
|
}();
|
|
557
972
|
|
|
558
973
|
_proto.apiRequestHeader = /*#__PURE__*/function () {
|
|
559
|
-
var _apiRequestHeader = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
560
|
-
return
|
|
974
|
+
var _apiRequestHeader = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(config, url, headerToRetrieve, data) {
|
|
975
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
561
976
|
while (1) {
|
|
562
977
|
switch (_context2.prev = _context2.next) {
|
|
563
978
|
case 0:
|
|
@@ -660,9 +1075,9 @@ var APIService = /*#__PURE__*/function (_AxiosService) {
|
|
|
660
1075
|
});
|
|
661
1076
|
|
|
662
1077
|
createAuthRefreshInterceptor(_this.axios, /*#__PURE__*/function () {
|
|
663
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
1078
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(failedRequest) {
|
|
664
1079
|
var tokenResp;
|
|
665
|
-
return
|
|
1080
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
666
1081
|
while (1) {
|
|
667
1082
|
switch (_context.prev = _context.next) {
|
|
668
1083
|
case 0:
|
|
@@ -778,11 +1193,11 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
|
778
1193
|
_proto.get =
|
|
779
1194
|
/*#__PURE__*/
|
|
780
1195
|
function () {
|
|
781
|
-
var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1196
|
+
var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(practiceUuid) {
|
|
782
1197
|
var _this = this;
|
|
783
1198
|
|
|
784
1199
|
var practiceInstance, newPracticeInstance, authTokenFunc;
|
|
785
|
-
return
|
|
1200
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
786
1201
|
while (1) {
|
|
787
1202
|
switch (_context2.prev = _context2.next) {
|
|
788
1203
|
case 0:
|
|
@@ -799,8 +1214,8 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
|
799
1214
|
newPracticeInstance = init(this.serviceCollReq, undefined, this.useLocalStorage); // Create one auth token callback per practice since the practice uuid needs to change
|
|
800
1215
|
|
|
801
1216
|
authTokenFunc = /*#__PURE__*/function () {
|
|
802
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
803
|
-
return
|
|
1217
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
|
|
1218
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
804
1219
|
while (1) {
|
|
805
1220
|
switch (_context.prev = _context.next) {
|
|
806
1221
|
case 0:
|
|
@@ -1445,9 +1860,9 @@ var DiagnosisService = /*#__PURE__*/function () {
|
|
|
1445
1860
|
_proto.getAllDrugs =
|
|
1446
1861
|
/*#__PURE__*/
|
|
1447
1862
|
function () {
|
|
1448
|
-
var _getAllDrugs = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1863
|
+
var _getAllDrugs = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(uuidPractice) {
|
|
1449
1864
|
var res;
|
|
1450
|
-
return
|
|
1865
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
1451
1866
|
while (1) {
|
|
1452
1867
|
switch (_context.prev = _context.next) {
|
|
1453
1868
|
case 0:
|
|
@@ -1523,10 +1938,10 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
1523
1938
|
_proto.m2mToken =
|
|
1524
1939
|
/*#__PURE__*/
|
|
1525
1940
|
function () {
|
|
1526
|
-
var _m2mToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1941
|
+
var _m2mToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(req) {
|
|
1527
1942
|
var resp, config, _e$response, code;
|
|
1528
1943
|
|
|
1529
|
-
return
|
|
1944
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
1530
1945
|
while (1) {
|
|
1531
1946
|
switch (_context.prev = _context.next) {
|
|
1532
1947
|
case 0:
|
|
@@ -1601,10 +2016,10 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
1601
2016
|
_proto.authToken =
|
|
1602
2017
|
/*#__PURE__*/
|
|
1603
2018
|
function () {
|
|
1604
|
-
var _authToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2019
|
+
var _authToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(req) {
|
|
1605
2020
|
var resp, config, _e$response2, code;
|
|
1606
2021
|
|
|
1607
|
-
return
|
|
2022
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
1608
2023
|
while (1) {
|
|
1609
2024
|
switch (_context2.prev = _context2.next) {
|
|
1610
2025
|
case 0:
|
|
@@ -1681,9 +2096,9 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
1681
2096
|
_proto.authRefresh =
|
|
1682
2097
|
/*#__PURE__*/
|
|
1683
2098
|
function () {
|
|
1684
|
-
var _authRefresh = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2099
|
+
var _authRefresh = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(refreshToken) {
|
|
1685
2100
|
var config;
|
|
1686
|
-
return
|
|
2101
|
+
return runtime_1.wrap(function _callee3$(_context3) {
|
|
1687
2102
|
while (1) {
|
|
1688
2103
|
switch (_context3.prev = _context3.next) {
|
|
1689
2104
|
case 0:
|
|
@@ -1717,8 +2132,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
1717
2132
|
_proto.authLogout =
|
|
1718
2133
|
/*#__PURE__*/
|
|
1719
2134
|
function () {
|
|
1720
|
-
var _authLogout = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1721
|
-
return
|
|
2135
|
+
var _authLogout = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4() {
|
|
2136
|
+
return runtime_1.wrap(function _callee4$(_context4) {
|
|
1722
2137
|
while (1) {
|
|
1723
2138
|
switch (_context4.prev = _context4.next) {
|
|
1724
2139
|
case 0:
|
|
@@ -1749,8 +2164,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
1749
2164
|
_proto.authRecover =
|
|
1750
2165
|
/*#__PURE__*/
|
|
1751
2166
|
function () {
|
|
1752
|
-
var _authRecover = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1753
|
-
return
|
|
2167
|
+
var _authRecover = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(req) {
|
|
2168
|
+
return runtime_1.wrap(function _callee5$(_context5) {
|
|
1754
2169
|
while (1) {
|
|
1755
2170
|
switch (_context5.prev = _context5.next) {
|
|
1756
2171
|
case 0:
|
|
@@ -1782,10 +2197,10 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
1782
2197
|
_proto.identityCreate =
|
|
1783
2198
|
/*#__PURE__*/
|
|
1784
2199
|
function () {
|
|
1785
|
-
var _identityCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2200
|
+
var _identityCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(req) {
|
|
1786
2201
|
var resp, _e$response3, code;
|
|
1787
2202
|
|
|
1788
|
-
return
|
|
2203
|
+
return runtime_1.wrap(function _callee6$(_context6) {
|
|
1789
2204
|
while (1) {
|
|
1790
2205
|
switch (_context6.prev = _context6.next) {
|
|
1791
2206
|
case 0:
|
|
@@ -1857,11 +2272,11 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
1857
2272
|
_proto.identityGet =
|
|
1858
2273
|
/*#__PURE__*/
|
|
1859
2274
|
function () {
|
|
1860
|
-
var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2275
|
+
var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(identityID, skipCache) {
|
|
1861
2276
|
var _tokens$accessToken, _tokens$refreshToken;
|
|
1862
2277
|
|
|
1863
2278
|
var tokens, cacheKey, identity;
|
|
1864
|
-
return
|
|
2279
|
+
return runtime_1.wrap(function _callee7$(_context7) {
|
|
1865
2280
|
while (1) {
|
|
1866
2281
|
switch (_context7.prev = _context7.next) {
|
|
1867
2282
|
case 0:
|
|
@@ -1921,11 +2336,11 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
1921
2336
|
_proto.whoAmI =
|
|
1922
2337
|
/*#__PURE__*/
|
|
1923
2338
|
function () {
|
|
1924
|
-
var _whoAmI = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2339
|
+
var _whoAmI = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(refreshCache) {
|
|
1925
2340
|
var _this$api$getTokens$a;
|
|
1926
2341
|
|
|
1927
2342
|
var cacheKey;
|
|
1928
|
-
return
|
|
2343
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
|
1929
2344
|
while (1) {
|
|
1930
2345
|
switch (_context8.prev = _context8.next) {
|
|
1931
2346
|
case 0:
|
|
@@ -1975,8 +2390,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
1975
2390
|
_proto.identityUpdate =
|
|
1976
2391
|
/*#__PURE__*/
|
|
1977
2392
|
function () {
|
|
1978
|
-
var _identityUpdate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1979
|
-
return
|
|
2393
|
+
var _identityUpdate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(identityID, req) {
|
|
2394
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
|
1980
2395
|
while (1) {
|
|
1981
2396
|
switch (_context9.prev = _context9.next) {
|
|
1982
2397
|
case 0:
|
|
@@ -2009,9 +2424,9 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2009
2424
|
_proto.identityMFAQRCode =
|
|
2010
2425
|
/*#__PURE__*/
|
|
2011
2426
|
function () {
|
|
2012
|
-
var _identityMFAQRCode = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2427
|
+
var _identityMFAQRCode = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(identityID, password) {
|
|
2013
2428
|
var req;
|
|
2014
|
-
return
|
|
2429
|
+
return runtime_1.wrap(function _callee10$(_context10) {
|
|
2015
2430
|
while (1) {
|
|
2016
2431
|
switch (_context10.prev = _context10.next) {
|
|
2017
2432
|
case 0:
|
|
@@ -2049,8 +2464,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2049
2464
|
_proto.identitySendConfirmEmail =
|
|
2050
2465
|
/*#__PURE__*/
|
|
2051
2466
|
function () {
|
|
2052
|
-
var _identitySendConfirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2053
|
-
return
|
|
2467
|
+
var _identitySendConfirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(req) {
|
|
2468
|
+
return runtime_1.wrap(function _callee11$(_context11) {
|
|
2054
2469
|
while (1) {
|
|
2055
2470
|
switch (_context11.prev = _context11.next) {
|
|
2056
2471
|
case 0:
|
|
@@ -2081,8 +2496,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2081
2496
|
_proto.identityGetByCustomerEmail =
|
|
2082
2497
|
/*#__PURE__*/
|
|
2083
2498
|
function () {
|
|
2084
|
-
var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2085
|
-
return
|
|
2499
|
+
var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(email) {
|
|
2500
|
+
return runtime_1.wrap(function _callee12$(_context12) {
|
|
2086
2501
|
while (1) {
|
|
2087
2502
|
switch (_context12.prev = _context12.next) {
|
|
2088
2503
|
case 0:
|
|
@@ -2113,8 +2528,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2113
2528
|
_proto.identityGetByHash =
|
|
2114
2529
|
/*#__PURE__*/
|
|
2115
2530
|
function () {
|
|
2116
|
-
var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2117
|
-
return
|
|
2531
|
+
var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(b64Hash) {
|
|
2532
|
+
return runtime_1.wrap(function _callee13$(_context13) {
|
|
2118
2533
|
while (1) {
|
|
2119
2534
|
switch (_context13.prev = _context13.next) {
|
|
2120
2535
|
case 0:
|
|
@@ -2460,8 +2875,8 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2460
2875
|
var _proto = TellerService.prototype;
|
|
2461
2876
|
|
|
2462
2877
|
_proto.lockboxDataStore = /*#__PURE__*/function () {
|
|
2463
|
-
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2464
|
-
return
|
|
2878
|
+
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(lockboxUuid, req, lockboxOwnerUuid, previousDataUuid) {
|
|
2879
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
2465
2880
|
while (1) {
|
|
2466
2881
|
switch (_context.prev = _context.next) {
|
|
2467
2882
|
case 0:
|
|
@@ -2567,8 +2982,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2567
2982
|
var _proto = VaultService.prototype;
|
|
2568
2983
|
|
|
2569
2984
|
_proto.lockboxCreate = /*#__PURE__*/function () {
|
|
2570
|
-
var _lockboxCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2571
|
-
return
|
|
2985
|
+
var _lockboxCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(lockboxMetadata) {
|
|
2986
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
2572
2987
|
while (1) {
|
|
2573
2988
|
switch (_context.prev = _context.next) {
|
|
2574
2989
|
case 0:
|
|
@@ -2590,8 +3005,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2590
3005
|
}();
|
|
2591
3006
|
|
|
2592
3007
|
_proto.lockboxMetadataAdd = /*#__PURE__*/function () {
|
|
2593
|
-
var _lockboxMetadataAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2594
|
-
return
|
|
3008
|
+
var _lockboxMetadataAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(lockboxUuid, lockboxMetadata, lockboxOwnerUuid) {
|
|
3009
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
2595
3010
|
while (1) {
|
|
2596
3011
|
switch (_context2.prev = _context2.next) {
|
|
2597
3012
|
case 0:
|
|
@@ -2617,8 +3032,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2617
3032
|
}();
|
|
2618
3033
|
|
|
2619
3034
|
_proto.lockboxSecretGet = /*#__PURE__*/function () {
|
|
2620
|
-
var _lockboxSecretGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2621
|
-
return
|
|
3035
|
+
var _lockboxSecretGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(lockboxUuid, lockboxOwnerUuid) {
|
|
3036
|
+
return runtime_1.wrap(function _callee3$(_context3) {
|
|
2622
3037
|
while (1) {
|
|
2623
3038
|
switch (_context3.prev = _context3.next) {
|
|
2624
3039
|
case 0:
|
|
@@ -2644,8 +3059,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2644
3059
|
}();
|
|
2645
3060
|
|
|
2646
3061
|
_proto.lockboxGrant = /*#__PURE__*/function () {
|
|
2647
|
-
var _lockboxGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2648
|
-
return
|
|
3062
|
+
var _lockboxGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(lockboxUuid, req, lockboxOwnerUuid) {
|
|
3063
|
+
return runtime_1.wrap(function _callee4$(_context4) {
|
|
2649
3064
|
while (1) {
|
|
2650
3065
|
switch (_context4.prev = _context4.next) {
|
|
2651
3066
|
case 0:
|
|
@@ -2679,8 +3094,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2679
3094
|
_proto.grantsGet =
|
|
2680
3095
|
/*#__PURE__*/
|
|
2681
3096
|
function () {
|
|
2682
|
-
var _grantsGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2683
|
-
return
|
|
3097
|
+
var _grantsGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5() {
|
|
3098
|
+
return runtime_1.wrap(function _callee5$(_context5) {
|
|
2684
3099
|
while (1) {
|
|
2685
3100
|
switch (_context5.prev = _context5.next) {
|
|
2686
3101
|
case 0:
|
|
@@ -2715,8 +3130,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2715
3130
|
_proto.lockboxDataStore =
|
|
2716
3131
|
/*#__PURE__*/
|
|
2717
3132
|
function () {
|
|
2718
|
-
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2719
|
-
return
|
|
3133
|
+
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(lockboxUuid, req, lockboxOwnerUuid, previousDataUuid) {
|
|
3134
|
+
return runtime_1.wrap(function _callee6$(_context6) {
|
|
2720
3135
|
while (1) {
|
|
2721
3136
|
switch (_context6.prev = _context6.next) {
|
|
2722
3137
|
case 0:
|
|
@@ -2743,9 +3158,9 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2743
3158
|
}();
|
|
2744
3159
|
|
|
2745
3160
|
_proto.lockboxDataGet = /*#__PURE__*/function () {
|
|
2746
|
-
var _lockboxDataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3161
|
+
var _lockboxDataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(lockboxUuid, dataUuid, lockboxOwnerUuid, stream) {
|
|
2747
3162
|
var data;
|
|
2748
|
-
return
|
|
3163
|
+
return runtime_1.wrap(function _callee7$(_context7) {
|
|
2749
3164
|
while (1) {
|
|
2750
3165
|
switch (_context7.prev = _context7.next) {
|
|
2751
3166
|
case 0:
|
|
@@ -2792,8 +3207,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2792
3207
|
}();
|
|
2793
3208
|
|
|
2794
3209
|
_proto.lockboxManifestGet = /*#__PURE__*/function () {
|
|
2795
|
-
var _lockboxManifestGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2796
|
-
return
|
|
3210
|
+
var _lockboxManifestGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(lockboxUuid, filter, lockboxOwnerUuid) {
|
|
3211
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
|
2797
3212
|
while (1) {
|
|
2798
3213
|
switch (_context8.prev = _context8.next) {
|
|
2799
3214
|
case 0:
|
|
@@ -2820,8 +3235,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2820
3235
|
}();
|
|
2821
3236
|
|
|
2822
3237
|
_proto.lockboxMetadataGet = /*#__PURE__*/function () {
|
|
2823
|
-
var _lockboxMetadataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2824
|
-
return
|
|
3238
|
+
var _lockboxMetadataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(lockboxUuid, fields, groupby, filter, lockboxOwnerUuid) {
|
|
3239
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
|
2825
3240
|
while (1) {
|
|
2826
3241
|
switch (_context9.prev = _context9.next) {
|
|
2827
3242
|
case 0:
|
|
@@ -2860,8 +3275,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2860
3275
|
_proto.vaultIndexPut =
|
|
2861
3276
|
/*#__PURE__*/
|
|
2862
3277
|
function () {
|
|
2863
|
-
var _vaultIndexPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2864
|
-
return
|
|
3278
|
+
var _vaultIndexPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(entries, indexOwnerUuid) {
|
|
3279
|
+
return runtime_1.wrap(function _callee10$(_context10) {
|
|
2865
3280
|
while (1) {
|
|
2866
3281
|
switch (_context10.prev = _context10.next) {
|
|
2867
3282
|
case 0:
|
|
@@ -2895,8 +3310,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2895
3310
|
_proto.vaultIndexSnapshotPut =
|
|
2896
3311
|
/*#__PURE__*/
|
|
2897
3312
|
function () {
|
|
2898
|
-
var _vaultIndexSnapshotPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2899
|
-
return
|
|
3313
|
+
var _vaultIndexSnapshotPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(entry) {
|
|
3314
|
+
return runtime_1.wrap(function _callee11$(_context11) {
|
|
2900
3315
|
while (1) {
|
|
2901
3316
|
switch (_context11.prev = _context11.next) {
|
|
2902
3317
|
case 0:
|
|
@@ -2929,8 +3344,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2929
3344
|
_proto.vaultIndexGet =
|
|
2930
3345
|
/*#__PURE__*/
|
|
2931
3346
|
function () {
|
|
2932
|
-
var _vaultIndexGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2933
|
-
return
|
|
3347
|
+
var _vaultIndexGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(indexKeys, identifiers, timestamp) {
|
|
3348
|
+
return runtime_1.wrap(function _callee12$(_context12) {
|
|
2934
3349
|
while (1) {
|
|
2935
3350
|
switch (_context12.prev = _context12.next) {
|
|
2936
3351
|
case 0:
|