oro-sdk-apis 3.5.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/workflow.d.ts +6 -0
- package/dist/oro-sdk-apis.cjs.development.js +14 -8
- 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 +16 -9
- 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/workflow.ts +24 -17
- package/src/services/apisPracticeManager.ts +5 -4
@@ -62,9 +62,15 @@ export interface TileRadioData extends ChoiceInputData {
|
|
62
62
|
image?: string;
|
63
63
|
description?: string;
|
64
64
|
}
|
65
|
+
export declare enum InputApplyFunctions {
|
66
|
+
MakeUpperCase = "MakeUpperCase",
|
67
|
+
MakeLowerCase = "MakeLowerCase",
|
68
|
+
RemoveAllSpaces = "RemoveAllSpaces"
|
69
|
+
}
|
65
70
|
export interface EntryData {
|
66
71
|
id?: number;
|
67
72
|
label?: string;
|
73
|
+
inputApply?: InputApplyFunctions | InputApplyFunctions[];
|
68
74
|
hideLabel?: boolean;
|
69
75
|
minorLabel?: string;
|
70
76
|
summaryLabel?: string;
|
@@ -669,18 +669,19 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
669
669
|
function () {
|
670
670
|
var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practiceUuid) {
|
671
671
|
var _this = this;
|
672
|
-
var practiceInstance, newPracticeInstance, authTokenFunc;
|
672
|
+
var cacheKey, practiceInstance, newPracticeInstance, authTokenFunc;
|
673
673
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
674
674
|
while (1) {
|
675
675
|
switch (_context2.prev = _context2.next) {
|
676
676
|
case 0:
|
677
|
-
|
677
|
+
cacheKey = practiceUuid != null ? practiceUuid : 'none';
|
678
|
+
practiceInstance = this.practiceInstances.get(cacheKey);
|
678
679
|
if (!practiceInstance) {
|
679
|
-
_context2.next =
|
680
|
+
_context2.next = 4;
|
680
681
|
break;
|
681
682
|
}
|
682
683
|
return _context2.abrupt("return", practiceInstance);
|
683
|
-
case
|
684
|
+
case 4:
|
684
685
|
newPracticeInstance = init(this.serviceCollReq, undefined, this.useLocalStorage); // Create one auth token callback per practice since the practice uuid needs to change
|
685
686
|
authTokenFunc = /*#__PURE__*/function () {
|
686
687
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
@@ -710,14 +711,14 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
710
711
|
return _ref.apply(this, arguments);
|
711
712
|
};
|
712
713
|
}(); // Initialize the M2M token
|
713
|
-
_context2.next =
|
714
|
+
_context2.next = 8;
|
714
715
|
return authTokenFunc();
|
715
|
-
case
|
716
|
+
case 8:
|
716
717
|
// Set the refresh tokens callback
|
717
718
|
newPracticeInstance.apiService.setAuthRefreshFn(authTokenFunc);
|
718
|
-
this.practiceInstances.set(
|
719
|
+
this.practiceInstances.set(cacheKey, newPracticeInstance);
|
719
720
|
return _context2.abrupt("return", newPracticeInstance);
|
720
|
-
case
|
721
|
+
case 11:
|
721
722
|
case "end":
|
722
723
|
return _context2.stop();
|
723
724
|
}
|
@@ -1039,6 +1040,11 @@ var VaultDataMissing = /*#__PURE__*/function (_Error8) {
|
|
1039
1040
|
DocumentType["ImageAlias"] = "ImageAlias";
|
1040
1041
|
})(exports.DocumentType || (exports.DocumentType = {}));
|
1041
1042
|
|
1043
|
+
(function (InputApplyFunctions) {
|
1044
|
+
InputApplyFunctions["MakeUpperCase"] = "MakeUpperCase";
|
1045
|
+
InputApplyFunctions["MakeLowerCase"] = "MakeLowerCase";
|
1046
|
+
InputApplyFunctions["RemoveAllSpaces"] = "RemoveAllSpaces";
|
1047
|
+
})(exports.InputApplyFunctions || (exports.InputApplyFunctions = {}));
|
1042
1048
|
(function (MetadataCategory) {
|
1043
1049
|
MetadataCategory["ChildPersonal"] = "ChildPersonal";
|
1044
1050
|
MetadataCategory["Consultation"] = "Consultation";
|