oro-sdk-apis 3.5.0 → 3.7.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 +24 -10
- 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 +26 -11
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/apisPracticeManager.d.ts +2 -2
- package/dist/services/practice.d.ts +6 -0
- package/package.json +1 -1
- package/src/models/workflow.ts +24 -17
- package/src/services/apisPracticeManager.ts +5 -4
- package/src/services/practice.ts +13 -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";
|
@@ -1923,6 +1929,15 @@ var PracticeService = /*#__PURE__*/function () {
|
|
1923
1929
|
this.api = api;
|
1924
1930
|
this.baseURL = baseURL;
|
1925
1931
|
}
|
1932
|
+
/**
|
1933
|
+
* This function will only work if the service is initialized with
|
1934
|
+
* an M2M with the scope `practice.practices.get`
|
1935
|
+
* @returns an array of practices
|
1936
|
+
*/
|
1937
|
+
var _proto = PracticeService.prototype;
|
1938
|
+
_proto.practiceGetAll = function practiceGetAll() {
|
1939
|
+
return this.api.get(this.baseURL + "/v1/practices");
|
1940
|
+
}
|
1926
1941
|
/**
|
1927
1942
|
* This function get the practice from the URL of a practice
|
1928
1943
|
* It is the entry point of our web apps
|
@@ -1930,8 +1945,7 @@ var PracticeService = /*#__PURE__*/function () {
|
|
1930
1945
|
* @param hydratePracticeConfigs (optional) if set true it the Practice field configs will be set
|
1931
1946
|
* @param accounts (optional) if set true it the Practice field accounts will be set
|
1932
1947
|
* @returns the found practice or undefined
|
1933
|
-
|
1934
|
-
var _proto = PracticeService.prototype;
|
1948
|
+
*/;
|
1935
1949
|
_proto.practiceGetFromURL = function practiceGetFromURL(practiceURL, params) {
|
1936
1950
|
return this.api.get(this.baseURL + "/v1/practices", {
|
1937
1951
|
params: _extends({
|