oro-sdk-apis 3.3.1 → 3.5.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/dist/models/guard.d.ts +1 -1
- package/dist/oro-sdk-apis.cjs.development.js +68 -47
- 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 +68 -47
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/teller.d.ts +3 -1
- package/package.json +1 -1
- package/src/models/guard.ts +1 -1
- package/src/services/teller.ts +6 -2
package/dist/oro-sdk-apis.esm.js
CHANGED
@@ -19,6 +19,9 @@ function _regeneratorRuntime() {
|
|
19
19
|
var exports = {},
|
20
20
|
Op = Object.prototype,
|
21
21
|
hasOwn = Op.hasOwnProperty,
|
22
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
23
|
+
obj[key] = desc.value;
|
24
|
+
},
|
22
25
|
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
23
26
|
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
24
27
|
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
@@ -42,40 +45,9 @@ function _regeneratorRuntime() {
|
|
42
45
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
43
46
|
generator = Object.create(protoGenerator.prototype),
|
44
47
|
context = new Context(tryLocsList || []);
|
45
|
-
return generator
|
46
|
-
|
47
|
-
|
48
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
49
|
-
if ("completed" === state) {
|
50
|
-
if ("throw" === method) throw arg;
|
51
|
-
return doneResult();
|
52
|
-
}
|
53
|
-
for (context.method = method, context.arg = arg;;) {
|
54
|
-
var delegate = context.delegate;
|
55
|
-
if (delegate) {
|
56
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
57
|
-
if (delegateResult) {
|
58
|
-
if (delegateResult === ContinueSentinel) continue;
|
59
|
-
return delegateResult;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
63
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
64
|
-
context.dispatchException(context.arg);
|
65
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
66
|
-
state = "executing";
|
67
|
-
var record = tryCatch(innerFn, self, context);
|
68
|
-
if ("normal" === record.type) {
|
69
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
70
|
-
return {
|
71
|
-
value: record.arg,
|
72
|
-
done: context.done
|
73
|
-
};
|
74
|
-
}
|
75
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
76
|
-
}
|
77
|
-
};
|
78
|
-
}(innerFn, self, context), generator;
|
48
|
+
return defineProperty(generator, "_invoke", {
|
49
|
+
value: makeInvokeMethod(innerFn, self, context)
|
50
|
+
}), generator;
|
79
51
|
}
|
80
52
|
function tryCatch(fn, obj, arg) {
|
81
53
|
try {
|
@@ -129,13 +101,49 @@ function _regeneratorRuntime() {
|
|
129
101
|
reject(record.arg);
|
130
102
|
}
|
131
103
|
var previousPromise;
|
132
|
-
this
|
133
|
-
function
|
134
|
-
|
135
|
-
|
136
|
-
|
104
|
+
defineProperty(this, "_invoke", {
|
105
|
+
value: function (method, arg) {
|
106
|
+
function callInvokeWithMethodAndArg() {
|
107
|
+
return new PromiseImpl(function (resolve, reject) {
|
108
|
+
invoke(method, arg, resolve, reject);
|
109
|
+
});
|
110
|
+
}
|
111
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
112
|
+
}
|
113
|
+
});
|
114
|
+
}
|
115
|
+
function makeInvokeMethod(innerFn, self, context) {
|
116
|
+
var state = "suspendedStart";
|
117
|
+
return function (method, arg) {
|
118
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
119
|
+
if ("completed" === state) {
|
120
|
+
if ("throw" === method) throw arg;
|
121
|
+
return doneResult();
|
122
|
+
}
|
123
|
+
for (context.method = method, context.arg = arg;;) {
|
124
|
+
var delegate = context.delegate;
|
125
|
+
if (delegate) {
|
126
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
127
|
+
if (delegateResult) {
|
128
|
+
if (delegateResult === ContinueSentinel) continue;
|
129
|
+
return delegateResult;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
133
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
134
|
+
context.dispatchException(context.arg);
|
135
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
136
|
+
state = "executing";
|
137
|
+
var record = tryCatch(innerFn, self, context);
|
138
|
+
if ("normal" === record.type) {
|
139
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
140
|
+
return {
|
141
|
+
value: record.arg,
|
142
|
+
done: context.done
|
143
|
+
};
|
144
|
+
}
|
145
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
137
146
|
}
|
138
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
139
147
|
};
|
140
148
|
}
|
141
149
|
function maybeInvokeDelegate(delegate, context) {
|
@@ -191,7 +199,13 @@ function _regeneratorRuntime() {
|
|
191
199
|
done: !0
|
192
200
|
};
|
193
201
|
}
|
194
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
202
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
203
|
+
value: GeneratorFunctionPrototype,
|
204
|
+
configurable: !0
|
205
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
206
|
+
value: GeneratorFunction,
|
207
|
+
configurable: !0
|
208
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
195
209
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
196
210
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
197
211
|
}, exports.mark = function (genFun) {
|
@@ -212,8 +226,9 @@ function _regeneratorRuntime() {
|
|
212
226
|
return this;
|
213
227
|
}), define(Gp, "toString", function () {
|
214
228
|
return "[object Generator]";
|
215
|
-
}), exports.keys = function (
|
216
|
-
var
|
229
|
+
}), exports.keys = function (val) {
|
230
|
+
var object = Object(val),
|
231
|
+
keys = [];
|
217
232
|
for (var key in object) keys.push(key);
|
218
233
|
return keys.reverse(), function next() {
|
219
234
|
for (; keys.length;) {
|
@@ -2242,25 +2257,31 @@ var TellerService = /*#__PURE__*/function () {
|
|
2242
2257
|
}
|
2243
2258
|
var _proto = TellerService.prototype;
|
2244
2259
|
_proto.lockboxDataStore = /*#__PURE__*/function () {
|
2245
|
-
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(lockboxUuid, req, lockboxOwnerUuid, previousDataUuid) {
|
2260
|
+
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(lockboxUuid, req, lockboxOwnerUuid, previousDataUuid, options) {
|
2246
2261
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2247
2262
|
while (1) {
|
2248
2263
|
switch (_context.prev = _context.next) {
|
2249
2264
|
case 0:
|
2265
|
+
if (options === void 0) {
|
2266
|
+
options = {
|
2267
|
+
updateMedicalStatus: true
|
2268
|
+
};
|
2269
|
+
}
|
2250
2270
|
return _context.abrupt("return", this.api.post(this.baseURL + "/v1/lockboxes/" + lockboxUuid + "/data", req, {
|
2251
2271
|
params: {
|
2252
2272
|
lockbox_owner_uuid: lockboxOwnerUuid,
|
2253
|
-
data_uuid: previousDataUuid
|
2273
|
+
data_uuid: previousDataUuid,
|
2274
|
+
update_medical_status: options.updateMedicalStatus
|
2254
2275
|
}
|
2255
2276
|
}));
|
2256
|
-
case
|
2277
|
+
case 2:
|
2257
2278
|
case "end":
|
2258
2279
|
return _context.stop();
|
2259
2280
|
}
|
2260
2281
|
}
|
2261
2282
|
}, _callee, this);
|
2262
2283
|
}));
|
2263
|
-
function lockboxDataStore(_x, _x2, _x3, _x4) {
|
2284
|
+
function lockboxDataStore(_x, _x2, _x3, _x4, _x5) {
|
2264
2285
|
return _lockboxDataStore.apply(this, arguments);
|
2265
2286
|
}
|
2266
2287
|
return lockboxDataStore;
|