oro-sdk-apis 3.3.1 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/models/guard.d.ts
CHANGED
@@ -25,6 +25,9 @@ function _regeneratorRuntime() {
|
|
25
25
|
var exports = {},
|
26
26
|
Op = Object.prototype,
|
27
27
|
hasOwn = Op.hasOwnProperty,
|
28
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
29
|
+
obj[key] = desc.value;
|
30
|
+
},
|
28
31
|
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
29
32
|
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
30
33
|
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
@@ -48,40 +51,9 @@ function _regeneratorRuntime() {
|
|
48
51
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
49
52
|
generator = Object.create(protoGenerator.prototype),
|
50
53
|
context = new Context(tryLocsList || []);
|
51
|
-
return generator
|
52
|
-
|
53
|
-
|
54
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
55
|
-
if ("completed" === state) {
|
56
|
-
if ("throw" === method) throw arg;
|
57
|
-
return doneResult();
|
58
|
-
}
|
59
|
-
for (context.method = method, context.arg = arg;;) {
|
60
|
-
var delegate = context.delegate;
|
61
|
-
if (delegate) {
|
62
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
63
|
-
if (delegateResult) {
|
64
|
-
if (delegateResult === ContinueSentinel) continue;
|
65
|
-
return delegateResult;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
69
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
70
|
-
context.dispatchException(context.arg);
|
71
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
72
|
-
state = "executing";
|
73
|
-
var record = tryCatch(innerFn, self, context);
|
74
|
-
if ("normal" === record.type) {
|
75
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
76
|
-
return {
|
77
|
-
value: record.arg,
|
78
|
-
done: context.done
|
79
|
-
};
|
80
|
-
}
|
81
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
82
|
-
}
|
83
|
-
};
|
84
|
-
}(innerFn, self, context), generator;
|
54
|
+
return defineProperty(generator, "_invoke", {
|
55
|
+
value: makeInvokeMethod(innerFn, self, context)
|
56
|
+
}), generator;
|
85
57
|
}
|
86
58
|
function tryCatch(fn, obj, arg) {
|
87
59
|
try {
|
@@ -135,13 +107,49 @@ function _regeneratorRuntime() {
|
|
135
107
|
reject(record.arg);
|
136
108
|
}
|
137
109
|
var previousPromise;
|
138
|
-
this
|
139
|
-
function
|
140
|
-
|
141
|
-
|
142
|
-
|
110
|
+
defineProperty(this, "_invoke", {
|
111
|
+
value: function (method, arg) {
|
112
|
+
function callInvokeWithMethodAndArg() {
|
113
|
+
return new PromiseImpl(function (resolve, reject) {
|
114
|
+
invoke(method, arg, resolve, reject);
|
115
|
+
});
|
116
|
+
}
|
117
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
118
|
+
}
|
119
|
+
});
|
120
|
+
}
|
121
|
+
function makeInvokeMethod(innerFn, self, context) {
|
122
|
+
var state = "suspendedStart";
|
123
|
+
return function (method, arg) {
|
124
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
125
|
+
if ("completed" === state) {
|
126
|
+
if ("throw" === method) throw arg;
|
127
|
+
return doneResult();
|
128
|
+
}
|
129
|
+
for (context.method = method, context.arg = arg;;) {
|
130
|
+
var delegate = context.delegate;
|
131
|
+
if (delegate) {
|
132
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
133
|
+
if (delegateResult) {
|
134
|
+
if (delegateResult === ContinueSentinel) continue;
|
135
|
+
return delegateResult;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
139
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
140
|
+
context.dispatchException(context.arg);
|
141
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
142
|
+
state = "executing";
|
143
|
+
var record = tryCatch(innerFn, self, context);
|
144
|
+
if ("normal" === record.type) {
|
145
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
146
|
+
return {
|
147
|
+
value: record.arg,
|
148
|
+
done: context.done
|
149
|
+
};
|
150
|
+
}
|
151
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
143
152
|
}
|
144
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
145
153
|
};
|
146
154
|
}
|
147
155
|
function maybeInvokeDelegate(delegate, context) {
|
@@ -197,7 +205,13 @@ function _regeneratorRuntime() {
|
|
197
205
|
done: !0
|
198
206
|
};
|
199
207
|
}
|
200
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
208
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
209
|
+
value: GeneratorFunctionPrototype,
|
210
|
+
configurable: !0
|
211
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
212
|
+
value: GeneratorFunction,
|
213
|
+
configurable: !0
|
214
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
201
215
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
202
216
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
203
217
|
}, exports.mark = function (genFun) {
|
@@ -218,8 +232,9 @@ function _regeneratorRuntime() {
|
|
218
232
|
return this;
|
219
233
|
}), define(Gp, "toString", function () {
|
220
234
|
return "[object Generator]";
|
221
|
-
}), exports.keys = function (
|
222
|
-
var
|
235
|
+
}), exports.keys = function (val) {
|
236
|
+
var object = Object(val),
|
237
|
+
keys = [];
|
223
238
|
for (var key in object) keys.push(key);
|
224
239
|
return keys.reverse(), function next() {
|
225
240
|
for (; keys.length;) {
|
@@ -2199,25 +2214,31 @@ var TellerService = /*#__PURE__*/function () {
|
|
2199
2214
|
}
|
2200
2215
|
var _proto = TellerService.prototype;
|
2201
2216
|
_proto.lockboxDataStore = /*#__PURE__*/function () {
|
2202
|
-
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(lockboxUuid, req, lockboxOwnerUuid, previousDataUuid) {
|
2217
|
+
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(lockboxUuid, req, lockboxOwnerUuid, previousDataUuid, options) {
|
2203
2218
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2204
2219
|
while (1) {
|
2205
2220
|
switch (_context.prev = _context.next) {
|
2206
2221
|
case 0:
|
2222
|
+
if (options === void 0) {
|
2223
|
+
options = {
|
2224
|
+
updateMedicalStatus: true
|
2225
|
+
};
|
2226
|
+
}
|
2207
2227
|
return _context.abrupt("return", this.api.post(this.baseURL + "/v1/lockboxes/" + lockboxUuid + "/data", req, {
|
2208
2228
|
params: {
|
2209
2229
|
lockbox_owner_uuid: lockboxOwnerUuid,
|
2210
|
-
data_uuid: previousDataUuid
|
2230
|
+
data_uuid: previousDataUuid,
|
2231
|
+
update_medical_status: options.updateMedicalStatus
|
2211
2232
|
}
|
2212
2233
|
}));
|
2213
|
-
case
|
2234
|
+
case 2:
|
2214
2235
|
case "end":
|
2215
2236
|
return _context.stop();
|
2216
2237
|
}
|
2217
2238
|
}
|
2218
2239
|
}, _callee, this);
|
2219
2240
|
}));
|
2220
|
-
function lockboxDataStore(_x, _x2, _x3, _x4) {
|
2241
|
+
function lockboxDataStore(_x, _x2, _x3, _x4, _x5) {
|
2221
2242
|
return _lockboxDataStore.apply(this, arguments);
|
2222
2243
|
}
|
2223
2244
|
return lockboxDataStore;
|