oro-sdk-apis 3.4.0 → 3.6.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/models/workflow.d.ts +6 -0
- package/dist/oro-sdk-apis.cjs.development.js +72 -51
- 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 +74 -52
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/apisPracticeManager.d.ts +2 -2
- package/package.json +1 -1
- package/src/models/guard.ts +1 -1
- package/src/models/workflow.ts +24 -17
- package/src/services/apisPracticeManager.ts +5 -4
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;) {
|
@@ -648,18 +663,19 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
648
663
|
function () {
|
649
664
|
var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practiceUuid) {
|
650
665
|
var _this = this;
|
651
|
-
var practiceInstance, newPracticeInstance, authTokenFunc;
|
666
|
+
var cacheKey, practiceInstance, newPracticeInstance, authTokenFunc;
|
652
667
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
653
668
|
while (1) {
|
654
669
|
switch (_context2.prev = _context2.next) {
|
655
670
|
case 0:
|
656
|
-
|
671
|
+
cacheKey = practiceUuid != null ? practiceUuid : 'none';
|
672
|
+
practiceInstance = this.practiceInstances.get(cacheKey);
|
657
673
|
if (!practiceInstance) {
|
658
|
-
_context2.next =
|
674
|
+
_context2.next = 4;
|
659
675
|
break;
|
660
676
|
}
|
661
677
|
return _context2.abrupt("return", practiceInstance);
|
662
|
-
case
|
678
|
+
case 4:
|
663
679
|
newPracticeInstance = init(this.serviceCollReq, undefined, this.useLocalStorage); // Create one auth token callback per practice since the practice uuid needs to change
|
664
680
|
authTokenFunc = /*#__PURE__*/function () {
|
665
681
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
@@ -689,14 +705,14 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
689
705
|
return _ref.apply(this, arguments);
|
690
706
|
};
|
691
707
|
}(); // Initialize the M2M token
|
692
|
-
_context2.next =
|
708
|
+
_context2.next = 8;
|
693
709
|
return authTokenFunc();
|
694
|
-
case
|
710
|
+
case 8:
|
695
711
|
// Set the refresh tokens callback
|
696
712
|
newPracticeInstance.apiService.setAuthRefreshFn(authTokenFunc);
|
697
|
-
this.practiceInstances.set(
|
713
|
+
this.practiceInstances.set(cacheKey, newPracticeInstance);
|
698
714
|
return _context2.abrupt("return", newPracticeInstance);
|
699
|
-
case
|
715
|
+
case 11:
|
700
716
|
case "end":
|
701
717
|
return _context2.stop();
|
702
718
|
}
|
@@ -1065,6 +1081,12 @@ var DocumentType;
|
|
1065
1081
|
DocumentType["ImageAlias"] = "ImageAlias";
|
1066
1082
|
})(DocumentType || (DocumentType = {}));
|
1067
1083
|
|
1084
|
+
var InputApplyFunctions;
|
1085
|
+
(function (InputApplyFunctions) {
|
1086
|
+
InputApplyFunctions["MakeUpperCase"] = "MakeUpperCase";
|
1087
|
+
InputApplyFunctions["MakeLowerCase"] = "MakeLowerCase";
|
1088
|
+
InputApplyFunctions["RemoveAllSpaces"] = "RemoveAllSpaces";
|
1089
|
+
})(InputApplyFunctions || (InputApplyFunctions = {}));
|
1068
1090
|
var MetadataCategory;
|
1069
1091
|
(function (MetadataCategory) {
|
1070
1092
|
MetadataCategory["ChildPersonal"] = "ChildPersonal";
|
@@ -2748,5 +2770,5 @@ var init = function init(services, authenticationCallback, useLocalStorage) {
|
|
2748
2770
|
};
|
2749
2771
|
|
2750
2772
|
export default init;
|
2751
|
-
export { APIService, ApisPracticeManager, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ClosedReasonType, ConsultService, ConsultType, DiagnosisService, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, IndexKind, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentIntentRequestMetadataKind, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, PrescriptionStatus, RateDimension, SearchService, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultDataMissing, VaultService, VisibilityType, WorkflowService, WorkflowType, hashToBase64String, init };
|
2773
|
+
export { APIService, ApisPracticeManager, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ClosedReasonType, ConsultService, ConsultType, DiagnosisService, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, IndexKind, InputApplyFunctions, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentIntentRequestMetadataKind, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, PrescriptionStatus, RateDimension, SearchService, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultDataMissing, VaultService, VisibilityType, WorkflowService, WorkflowType, hashToBase64String, init };
|
2752
2774
|
//# sourceMappingURL=oro-sdk-apis.esm.js.map
|