openchs-models 1.33.1 → 1.33.4
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/.circleci/config.yml +15 -5
- package/.commit-message.txt +21 -0
- package/.nvmrc +1 -1
- package/Makefile +32 -10
- package/REALM_V12_NOTES.md +46 -0
- package/dist/AbstractEncounter.js +4 -105
- package/dist/AddressLevel.js +5 -62
- package/dist/ApprovalStatus.js +4 -17
- package/dist/BaseEntity.js +5 -42
- package/dist/BeneficiaryModePin.js +4 -13
- package/dist/Checklist.js +6 -52
- package/dist/ChecklistDetail.js +4 -22
- package/dist/ChecklistItem.js +16 -96
- package/dist/ChecklistItemDetail.js +4 -43
- package/dist/ChecklistItemStatus.js +6 -35
- package/dist/Comment.js +6 -51
- package/dist/CommentThread.js +4 -26
- package/dist/CompositeDuration.js +1 -18
- package/dist/Concept.js +5 -107
- package/dist/ConceptAnswer.js +4 -21
- package/dist/CustomDashboardCache.js +4 -38
- package/dist/CustomFilter.js +5 -15
- package/dist/Dashboard.js +4 -23
- package/dist/DashboardCache.js +4 -23
- package/dist/DashboardSection.js +4 -24
- package/dist/DashboardSectionCardMapping.js +4 -21
- package/dist/Displayable.js +3 -11
- package/dist/Documentation.js +4 -21
- package/dist/DocumentationItem.js +4 -20
- package/dist/Duration.js +4 -39
- package/dist/Encounter.js +6 -41
- package/dist/EncounterType.js +4 -26
- package/dist/EntityApprovalStatus.js +6 -56
- package/dist/EntityMetaData.js +7 -105
- package/dist/EntityQueue.js +4 -15
- package/dist/EntityRule.js +1 -29
- package/dist/EntitySyncStatus.js +4 -19
- package/dist/Extension.js +4 -18
- package/dist/Family.js +4 -56
- package/dist/FileFormat.js +0 -7
- package/dist/Gender.js +4 -17
- package/dist/GroupDashboard.js +4 -23
- package/dist/GroupPrivileges.js +4 -28
- package/dist/GroupRole.js +4 -34
- package/dist/GroupSubject.js +6 -59
- package/dist/Groups.js +4 -14
- package/dist/Identifier.js +4 -20
- package/dist/IdentifierAssignment.js +6 -45
- package/dist/IdentifierSource.js +4 -15
- package/dist/Individual.js +17 -265
- package/dist/LocaleMapping.js +4 -13
- package/dist/LocationHierarchy.js +4 -25
- package/dist/Media.js +35 -35
- package/dist/MediaQueue.js +4 -26
- package/dist/MigrationsHelper.js +15 -22
- package/dist/MyGroups.js +4 -14
- package/dist/News.js +4 -31
- package/dist/Observation.js +4 -54
- package/dist/ObservationsHolder.js +104 -216
- package/dist/OrganisationConfig.js +4 -19
- package/dist/PersistedObject.js +1 -19
- package/dist/PhoneNumber.js +0 -11
- package/dist/PlatformTranslation.js +4 -17
- package/dist/Privilege.js +5 -22
- package/dist/Program.js +4 -39
- package/dist/ProgramEncounter.js +6 -48
- package/dist/ProgramEnrolment.js +8 -162
- package/dist/ReferenceEntity.js +1 -10
- package/dist/ReportCard.js +5 -60
- package/dist/ResetSync.js +4 -17
- package/dist/Rule.js +4 -28
- package/dist/RuleDependency.js +4 -17
- package/dist/RuleFailureTelemetry.js +4 -36
- package/dist/Schema.js +16 -268
- package/dist/SchemaNames.js +3 -46
- package/dist/Settings.js +4 -53
- package/dist/StandardReportCardType.js +4 -39
- package/dist/SubjectMigration.js +6 -45
- package/dist/SubjectType.js +6 -72
- package/dist/SyncTelemetry.js +4 -40
- package/dist/Translation.js +4 -17
- package/dist/UserInfo.js +4 -33
- package/dist/application/DashboardCacheFilter.js +4 -24
- package/dist/application/Filter.js +3 -16
- package/dist/application/Form.js +6 -93
- package/dist/application/FormElement.js +5 -100
- package/dist/application/FormElementGroup.js +4 -75
- package/dist/application/FormElementStatus.js +1 -11
- package/dist/application/FormMapping.js +6 -44
- package/dist/application/Format.js +4 -20
- package/dist/application/KeyValue.js +4 -19
- package/dist/application/MenuItem.js +4 -35
- package/dist/application/MultiSelectFilter.js +1 -11
- package/dist/application/NullProgramEnrolment.js +0 -8
- package/dist/application/SingleSelectFilter.js +1 -12
- package/dist/application/StaticFormElementGroup.js +0 -11
- package/dist/application/StringKeyNumericValue.js +4 -17
- package/dist/application/ValidationResult.js +6 -20
- package/dist/application/ValidationResults.js +1 -14
- package/dist/application/WorkItem.js +4 -20
- package/dist/application/WorkList.js +1 -24
- package/dist/application/WorkLists.js +1 -13
- package/dist/assignment/UserSubjectAssignment.js +6 -26
- package/dist/draft/DraftEncounter.js +4 -40
- package/dist/draft/DraftSubject.js +4 -46
- package/dist/error/IgnorableSyncError.js +1 -6
- package/dist/error/SyncError.js +1 -6
- package/dist/framework/ArrayHelper.js +3 -11
- package/dist/framework/DefinedObjectSchema.js +4 -12
- package/dist/framework/RealmCollectionHelper.js +1 -9
- package/dist/framework/RealmListProxy.js +1 -10
- package/dist/framework/RealmObjectSchema.js +1 -11
- package/dist/framework/RealmProxy.js +2 -31
- package/dist/framework/RealmResultsProxy.js +3 -37
- package/dist/framework/RealmResultsProxyHandler.js +2 -5
- package/dist/geo/Point.js +4 -17
- package/dist/index.js +2 -137
- package/dist/location/Locations.js +1 -6
- package/dist/observation/MultipleCodedValues.js +1 -21
- package/dist/observation/PrimitiveValue.js +1 -17
- package/dist/observation/QuestionGroup.js +1 -36
- package/dist/observation/RepeatableQuestionGroup.js +4 -27
- package/dist/observation/SingleCodedValue.js +1 -15
- package/dist/program/SubjectProgramEligibility.js +6 -56
- package/dist/relationship/IndividualRelation.js +6 -18
- package/dist/relationship/IndividualRelationGenderMapping.js +4 -22
- package/dist/relationship/IndividualRelationship.js +6 -51
- package/dist/relationship/IndividualRelationshipType.js +4 -24
- package/dist/relationship/IndividualRelative.js +4 -31
- package/dist/reports/DashboardFilter.js +4 -20
- package/dist/reports/DashboardFilterConfig.js +5 -85
- package/dist/reports/NestedReportCardResult.js +5 -35
- package/dist/reports/Range.js +4 -13
- package/dist/reports/ReportCardResult.js +5 -24
- package/dist/service/MetaDataService.js +1 -30
- package/dist/task/Task.js +6 -62
- package/dist/task/TaskStatus.js +4 -21
- package/dist/task/TaskType.js +4 -23
- package/dist/task/TaskUnAssignment.js +6 -30
- package/dist/utility/AgeUtil.js +1 -15
- package/dist/utility/ArrayUtil.js +1 -6
- package/dist/utility/AuditUtil.js +1 -8
- package/dist/utility/DateTimeUtil.js +1 -8
- package/dist/utility/General.js +4 -71
- package/dist/utility/JsonStringify.js +15 -28
- package/dist/utility/MergeUtil.js +1 -10
- package/dist/utility/ResourceUtil.js +1 -7
- package/dist/videos/Video.js +4 -23
- package/dist/videos/VideoTelemetric.js +6 -37
- package/package.json +6 -3
- package/scripts/validateSchemas.js +40 -0
- package/tsconfig.json +1 -1
- package/yarn.lock +0 -6744
package/dist/CustomFilter.js
CHANGED
|
@@ -4,32 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
-
|
|
7
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
12
|
class CustomFilter {
|
|
15
13
|
static getDashboardFilterTypes() {
|
|
16
14
|
const clonedTypes = _objectSpread({}, CustomFilter.type);
|
|
17
|
-
|
|
18
15
|
delete clonedTypes.Name;
|
|
19
16
|
delete clonedTypes.Age;
|
|
20
17
|
delete clonedTypes.SearchAll;
|
|
21
18
|
return clonedTypes;
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
static getDashboardFilterWidgets() {
|
|
25
21
|
const cloned = _objectSpread({}, CustomFilter.widget);
|
|
26
|
-
|
|
27
22
|
delete cloned.Relative;
|
|
28
23
|
return cloned;
|
|
29
24
|
}
|
|
30
|
-
|
|
31
25
|
}
|
|
32
|
-
|
|
33
26
|
_defineProperty(CustomFilter, "type", {
|
|
34
27
|
Name: "Name",
|
|
35
28
|
Age: "Age",
|
|
@@ -45,19 +38,16 @@ _defineProperty(CustomFilter, "type", {
|
|
|
45
38
|
SubjectType: "SubjectType",
|
|
46
39
|
AsOnDate: "AsOnDate"
|
|
47
40
|
});
|
|
48
|
-
|
|
49
41
|
_defineProperty(CustomFilter, "scope", {
|
|
50
42
|
ProgramEncounter: "programEncounter",
|
|
51
43
|
ProgramEnrolment: "programEnrolment",
|
|
52
44
|
Registration: "registration",
|
|
53
45
|
Encounter: "encounter"
|
|
54
46
|
});
|
|
55
|
-
|
|
56
47
|
_defineProperty(CustomFilter, "widget", {
|
|
57
48
|
Default: "Default",
|
|
58
49
|
Range: "Range",
|
|
59
50
|
Relative: "Relative"
|
|
60
51
|
});
|
|
61
|
-
|
|
62
52
|
var _default = CustomFilter;
|
|
63
53
|
exports.default = _default;
|
package/dist/Dashboard.js
CHANGED
|
@@ -4,68 +4,51 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _BaseEntity = _interopRequireDefault(require("./BaseEntity"));
|
|
9
|
-
|
|
10
8
|
var _General = _interopRequireDefault(require("./utility/General"));
|
|
11
|
-
|
|
12
9
|
var _DashboardFilter = _interopRequireDefault(require("./reports/DashboardFilter"));
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
14
|
class Dashboard extends _BaseEntity.default {
|
|
19
15
|
constructor(that = null) {
|
|
20
16
|
super(that);
|
|
21
17
|
}
|
|
22
|
-
|
|
23
18
|
get name() {
|
|
24
19
|
return this.that.name;
|
|
25
20
|
}
|
|
26
|
-
|
|
27
21
|
set name(x) {
|
|
28
22
|
this.that.name = x;
|
|
29
23
|
}
|
|
30
|
-
|
|
31
24
|
get description() {
|
|
32
25
|
return this.that.description;
|
|
33
26
|
}
|
|
34
|
-
|
|
35
27
|
set description(x) {
|
|
36
28
|
this.that.description = x;
|
|
37
29
|
}
|
|
38
|
-
|
|
39
30
|
get filters() {
|
|
40
31
|
return this.toEntityList("filters", _DashboardFilter.default);
|
|
41
32
|
}
|
|
42
|
-
|
|
43
33
|
set filters(x) {
|
|
44
34
|
this.that.filters = this.fromEntityList(x);
|
|
45
35
|
}
|
|
46
|
-
|
|
47
36
|
static fromResource(resource) {
|
|
48
37
|
return _General.default.assignFields(resource, new Dashboard(), ["uuid", "name", "description", "voided"]);
|
|
49
38
|
}
|
|
50
|
-
|
|
51
39
|
static associateChild(child, childEntityClass, childResource, entityService) {
|
|
52
40
|
let dashboard = _BaseEntity.default.getParentEntity(entityService, childEntityClass, childResource, "dashboardUUID", Dashboard.schema.name);
|
|
53
|
-
|
|
54
41
|
dashboard = _General.default.pick(dashboard, ["uuid"], ["filters"]);
|
|
55
42
|
if (childEntityClass === _DashboardFilter.default) _BaseEntity.default.addNewChild(child, dashboard.filters);
|
|
56
43
|
return dashboard;
|
|
57
44
|
}
|
|
58
|
-
|
|
59
45
|
getFilterOfType(filterType) {
|
|
60
46
|
return this.filters.find(filter => filter.filterConfig.type === filterType);
|
|
61
47
|
}
|
|
62
|
-
|
|
63
48
|
getFilter(filterUUID) {
|
|
64
49
|
return this.filters.find(filter => filter.uuid === filterUUID);
|
|
65
50
|
}
|
|
66
|
-
|
|
67
51
|
}
|
|
68
|
-
|
|
69
52
|
_defineProperty(Dashboard, "schema", {
|
|
70
53
|
name: "Dashboard",
|
|
71
54
|
primaryKey: "uuid",
|
|
@@ -86,8 +69,6 @@ _defineProperty(Dashboard, "schema", {
|
|
|
86
69
|
}
|
|
87
70
|
}
|
|
88
71
|
});
|
|
89
|
-
|
|
90
72
|
_defineProperty(Dashboard, "merge", () => _BaseEntity.default.mergeOn("filters"));
|
|
91
|
-
|
|
92
73
|
var _default = Dashboard;
|
|
93
74
|
exports.default = _default;
|
package/dist/DashboardCache.js
CHANGED
|
@@ -4,38 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _BaseEntity = _interopRequireDefault(require("./BaseEntity"));
|
|
9
|
-
|
|
10
8
|
var _DashboardCacheFilter = _interopRequireDefault(require("./application/DashboardCacheFilter"));
|
|
11
|
-
|
|
12
9
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
14
|
class DashboardCache extends _BaseEntity.default {
|
|
19
15
|
constructor(that = null) {
|
|
20
16
|
super(that);
|
|
21
17
|
}
|
|
22
|
-
|
|
23
18
|
get cardJSON() {
|
|
24
19
|
return this.that.cardJSON;
|
|
25
20
|
}
|
|
26
|
-
|
|
27
21
|
set cardJSON(x) {
|
|
28
22
|
this.that.cardJSON = x;
|
|
29
23
|
}
|
|
30
|
-
|
|
31
24
|
get filterJSON() {
|
|
32
25
|
return this.that.filterJSON;
|
|
33
26
|
}
|
|
34
|
-
|
|
35
27
|
set filterJSON(x) {
|
|
36
28
|
this.that.filterJSON = x;
|
|
37
29
|
}
|
|
38
|
-
|
|
39
30
|
static createEmptyInstance() {
|
|
40
31
|
const dashboardCache = new DashboardCache();
|
|
41
32
|
dashboardCache.uuid = this.rowUUID;
|
|
@@ -43,33 +34,24 @@ class DashboardCache extends _BaseEntity.default {
|
|
|
43
34
|
dashboardCache.cardJSON = "{}";
|
|
44
35
|
return dashboardCache;
|
|
45
36
|
}
|
|
46
|
-
|
|
47
37
|
getCard() {
|
|
48
38
|
return this.cardJSON && JSON.parse(this.cardJSON) || {};
|
|
49
39
|
}
|
|
50
|
-
|
|
51
40
|
getFilter() {
|
|
52
41
|
const filter = this.filterJSON && JSON.parse(this.filterJSON) || {};
|
|
53
|
-
|
|
54
42
|
if (!_lodash.default.isEmpty(filter.filterDate)) {
|
|
55
43
|
filter.filterDate = new Date(filter.filterDate);
|
|
56
44
|
}
|
|
57
|
-
|
|
58
45
|
return filter;
|
|
59
46
|
}
|
|
60
|
-
|
|
61
47
|
setFilter(value) {
|
|
62
48
|
this.filterJSON = JSON.stringify(value);
|
|
63
49
|
}
|
|
64
|
-
|
|
65
50
|
setCard(value) {
|
|
66
51
|
this.cardJSON = JSON.stringify(value);
|
|
67
52
|
}
|
|
68
|
-
|
|
69
53
|
}
|
|
70
|
-
|
|
71
54
|
_defineProperty(DashboardCache, "rowUUID", '176d5284-7927-422e-909a-a546f5001c84');
|
|
72
|
-
|
|
73
55
|
_defineProperty(DashboardCache, "schema", {
|
|
74
56
|
name: "DashboardCache",
|
|
75
57
|
primaryKey: "uuid",
|
|
@@ -79,6 +61,5 @@ _defineProperty(DashboardCache, "schema", {
|
|
|
79
61
|
filterJSON: "string"
|
|
80
62
|
}
|
|
81
63
|
});
|
|
82
|
-
|
|
83
64
|
var _default = DashboardCache;
|
|
84
65
|
exports.default = _default;
|
package/dist/DashboardSection.js
CHANGED
|
@@ -4,71 +4,53 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _BaseEntity = _interopRequireDefault(require("./BaseEntity"));
|
|
9
|
-
|
|
10
8
|
var _General = _interopRequireDefault(require("./utility/General"));
|
|
11
|
-
|
|
12
9
|
var _Dashboard = _interopRequireDefault(require("./Dashboard"));
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
14
|
class DashboardSection extends _BaseEntity.default {
|
|
19
15
|
constructor(that = null) {
|
|
20
16
|
super(that);
|
|
21
17
|
}
|
|
22
|
-
|
|
23
18
|
get dashboard() {
|
|
24
19
|
return this.toEntity("dashboard", _Dashboard.default);
|
|
25
20
|
}
|
|
26
|
-
|
|
27
21
|
set dashboard(x) {
|
|
28
22
|
this.that.dashboard = this.fromObject(x);
|
|
29
23
|
}
|
|
30
|
-
|
|
31
24
|
get name() {
|
|
32
25
|
return this.that.name;
|
|
33
26
|
}
|
|
34
|
-
|
|
35
27
|
set name(x) {
|
|
36
28
|
this.that.name = x;
|
|
37
29
|
}
|
|
38
|
-
|
|
39
30
|
get description() {
|
|
40
31
|
return this.that.description;
|
|
41
32
|
}
|
|
42
|
-
|
|
43
33
|
set description(x) {
|
|
44
34
|
this.that.description = x;
|
|
45
35
|
}
|
|
46
|
-
|
|
47
36
|
get viewType() {
|
|
48
37
|
return this.that.viewType;
|
|
49
38
|
}
|
|
50
|
-
|
|
51
39
|
set viewType(x) {
|
|
52
40
|
this.that.viewType = x;
|
|
53
41
|
}
|
|
54
|
-
|
|
55
42
|
get displayOrder() {
|
|
56
43
|
return this.that.displayOrder;
|
|
57
44
|
}
|
|
58
|
-
|
|
59
45
|
set displayOrder(x) {
|
|
60
46
|
this.that.displayOrder = x;
|
|
61
47
|
}
|
|
62
|
-
|
|
63
48
|
static fromResource(resource, entityService) {
|
|
64
49
|
const dashboardSection = _General.default.assignFields(resource, new DashboardSection(), ["uuid", "name", "description", "viewType", "displayOrder", "voided"]);
|
|
65
|
-
|
|
66
50
|
dashboardSection.dashboard = entityService.findByKey("uuid", resource.dashboardUUID, _Dashboard.default.schema.name);
|
|
67
51
|
return dashboardSection;
|
|
68
52
|
}
|
|
69
|
-
|
|
70
53
|
}
|
|
71
|
-
|
|
72
54
|
_defineProperty(DashboardSection, "schema", {
|
|
73
55
|
name: "DashboardSection",
|
|
74
56
|
primaryKey: "uuid",
|
|
@@ -94,12 +76,10 @@ _defineProperty(DashboardSection, "schema", {
|
|
|
94
76
|
}
|
|
95
77
|
}
|
|
96
78
|
});
|
|
97
|
-
|
|
98
79
|
_defineProperty(DashboardSection, "viewTypeName", {
|
|
99
80
|
Tile: 'Tile',
|
|
100
81
|
List: 'List',
|
|
101
82
|
Default: 'Default'
|
|
102
83
|
});
|
|
103
|
-
|
|
104
84
|
var _default = DashboardSection;
|
|
105
85
|
exports.default = _default;
|
|
@@ -4,60 +4,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _BaseEntity = _interopRequireDefault(require("./BaseEntity"));
|
|
9
|
-
|
|
10
8
|
var _General = _interopRequireDefault(require("./utility/General"));
|
|
11
|
-
|
|
12
9
|
var _ReportCard = _interopRequireDefault(require("./ReportCard"));
|
|
13
|
-
|
|
14
10
|
var _ResourceUtil = _interopRequireDefault(require("./utility/ResourceUtil"));
|
|
15
|
-
|
|
16
11
|
var _DashboardSection = _interopRequireDefault(require("./DashboardSection"));
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
16
|
class DashboardSectionCardMapping extends _BaseEntity.default {
|
|
23
17
|
constructor(that = null) {
|
|
24
18
|
super(that);
|
|
25
19
|
}
|
|
26
|
-
|
|
27
20
|
get dashboardSection() {
|
|
28
21
|
return this.toEntity("dashboardSection", _DashboardSection.default);
|
|
29
22
|
}
|
|
30
|
-
|
|
31
23
|
set dashboardSection(x) {
|
|
32
24
|
this.that.dashboardSection = this.fromObject(x);
|
|
33
25
|
}
|
|
34
|
-
|
|
35
26
|
get card() {
|
|
36
27
|
return this.toEntity("card", _ReportCard.default);
|
|
37
28
|
}
|
|
38
|
-
|
|
39
29
|
set card(x) {
|
|
40
30
|
this.that.card = this.fromObject(x);
|
|
41
31
|
}
|
|
42
|
-
|
|
43
32
|
get displayOrder() {
|
|
44
33
|
return this.that.displayOrder;
|
|
45
34
|
}
|
|
46
|
-
|
|
47
35
|
set displayOrder(x) {
|
|
48
36
|
this.that.displayOrder = x;
|
|
49
37
|
}
|
|
50
|
-
|
|
51
38
|
static fromResource(resource, entityService) {
|
|
52
39
|
const dashboardSectionCardMapping = _General.default.assignFields(resource, new DashboardSectionCardMapping(), ["uuid", "displayOrder", "voided"]);
|
|
53
|
-
|
|
54
40
|
dashboardSectionCardMapping.dashboardSection = entityService.findByKey("uuid", _ResourceUtil.default.getUUIDFor(resource, "dashboardSectionUUID"), _DashboardSection.default.schema.name);
|
|
55
41
|
dashboardSectionCardMapping.card = entityService.findByKey("uuid", _ResourceUtil.default.getUUIDFor(resource, "cardUUID"), _ReportCard.default.schema.name);
|
|
56
42
|
return dashboardSectionCardMapping;
|
|
57
43
|
}
|
|
58
|
-
|
|
59
44
|
}
|
|
60
|
-
|
|
61
45
|
_defineProperty(DashboardSectionCardMapping, "schema", {
|
|
62
46
|
name: "DashboardSectionCardMapping",
|
|
63
47
|
primaryKey: "uuid",
|
|
@@ -78,6 +62,5 @@ _defineProperty(DashboardSectionCardMapping, "schema", {
|
|
|
78
62
|
}
|
|
79
63
|
}
|
|
80
64
|
});
|
|
81
|
-
|
|
82
65
|
var _default = DashboardSectionCardMapping;
|
|
83
66
|
exports.default = _default;
|
package/dist/Displayable.js
CHANGED
|
@@ -4,36 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
class Displayable {
|
|
11
11
|
constructor(displayValue, entityObject) {
|
|
12
12
|
_defineProperty(this, "_displayValue", void 0);
|
|
13
|
-
|
|
14
13
|
_defineProperty(this, "_entityObject", void 0);
|
|
15
|
-
|
|
16
14
|
this._displayValue = displayValue;
|
|
17
15
|
this._entityObject = entityObject;
|
|
18
16
|
}
|
|
19
|
-
|
|
20
17
|
get displayValue() {
|
|
21
18
|
return this._displayValue;
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
set displayValue(value) {
|
|
25
21
|
this._displayValue = value;
|
|
26
22
|
}
|
|
27
|
-
|
|
28
23
|
get entityObject() {
|
|
29
24
|
return this._entityObject;
|
|
30
25
|
}
|
|
31
|
-
|
|
32
26
|
set entityObject(value) {
|
|
33
27
|
this._entityObject = value;
|
|
34
28
|
}
|
|
35
|
-
|
|
36
29
|
}
|
|
37
|
-
|
|
38
30
|
var _default = Displayable;
|
|
39
31
|
exports.default = _default;
|
package/dist/Documentation.js
CHANGED
|
@@ -4,50 +4,37 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _BaseEntity = _interopRequireDefault(require("./BaseEntity"));
|
|
9
|
-
|
|
10
8
|
var _DocumentationItem = _interopRequireDefault(require("./DocumentationItem"));
|
|
11
|
-
|
|
12
9
|
var _General = _interopRequireDefault(require("./utility/General"));
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
14
|
class Documentation extends _BaseEntity.default {
|
|
19
15
|
constructor(that = null) {
|
|
20
16
|
super(that);
|
|
21
17
|
}
|
|
22
|
-
|
|
23
18
|
get name() {
|
|
24
19
|
return this.that.name;
|
|
25
20
|
}
|
|
26
|
-
|
|
27
21
|
set name(x) {
|
|
28
22
|
this.that.name = x;
|
|
29
23
|
}
|
|
30
|
-
|
|
31
24
|
get documentationItems() {
|
|
32
25
|
return this.toEntityList("documentationItems", _DocumentationItem.default);
|
|
33
26
|
}
|
|
34
|
-
|
|
35
27
|
set documentationItems(x) {
|
|
36
28
|
this.that.documentationItems = this.fromEntityList(x);
|
|
37
29
|
}
|
|
38
|
-
|
|
39
30
|
static associateChild(child, childEntityClass, childResource, entityService) {
|
|
40
31
|
let documentation = _BaseEntity.default.getParentEntity(entityService, childEntityClass, childResource, "documentationUUID", Documentation.schema.name);
|
|
41
|
-
|
|
42
32
|
documentation = _General.default.pick(documentation, ["uuid"], ["documentationItems"]);
|
|
43
|
-
|
|
44
33
|
if (childEntityClass === _DocumentationItem.default) {
|
|
45
34
|
_BaseEntity.default.addNewChild(child, documentation.documentationItems);
|
|
46
35
|
} else throw `${childEntityClass.name} not support by ${Documentation.name}`;
|
|
47
|
-
|
|
48
36
|
return documentation;
|
|
49
37
|
}
|
|
50
|
-
|
|
51
38
|
static fromResource(resource) {
|
|
52
39
|
const documentation = new Documentation();
|
|
53
40
|
documentation.uuid = resource.uuid;
|
|
@@ -55,9 +42,7 @@ class Documentation extends _BaseEntity.default {
|
|
|
55
42
|
documentation.voided = resource.voided;
|
|
56
43
|
return documentation;
|
|
57
44
|
}
|
|
58
|
-
|
|
59
45
|
}
|
|
60
|
-
|
|
61
46
|
_defineProperty(Documentation, "schema", {
|
|
62
47
|
name: 'Documentation',
|
|
63
48
|
primaryKey: 'uuid',
|
|
@@ -74,8 +59,6 @@ _defineProperty(Documentation, "schema", {
|
|
|
74
59
|
}
|
|
75
60
|
}
|
|
76
61
|
});
|
|
77
|
-
|
|
78
62
|
_defineProperty(Documentation, "merge", () => _BaseEntity.default.mergeOn("documentationItems"));
|
|
79
|
-
|
|
80
63
|
var _default = Documentation;
|
|
81
64
|
exports.default = _default;
|
|
@@ -4,54 +4,41 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _BaseEntity = _interopRequireDefault(require("./BaseEntity"));
|
|
9
|
-
|
|
10
8
|
var _ResourceUtil = _interopRequireDefault(require("./utility/ResourceUtil"));
|
|
11
|
-
|
|
12
9
|
var _Documentation = _interopRequireDefault(require("./Documentation"));
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
14
|
class DocumentationItem extends _BaseEntity.default {
|
|
19
15
|
constructor(that = null) {
|
|
20
16
|
super(that);
|
|
21
17
|
}
|
|
22
|
-
|
|
23
18
|
get content() {
|
|
24
19
|
return this.that.content;
|
|
25
20
|
}
|
|
26
|
-
|
|
27
21
|
set content(x) {
|
|
28
22
|
this.that.content = x;
|
|
29
23
|
}
|
|
30
|
-
|
|
31
24
|
get language() {
|
|
32
25
|
return this.that.language;
|
|
33
26
|
}
|
|
34
|
-
|
|
35
27
|
set language(x) {
|
|
36
28
|
this.that.language = x;
|
|
37
29
|
}
|
|
38
|
-
|
|
39
30
|
get contentHtml() {
|
|
40
31
|
return this.that.contentHtml;
|
|
41
32
|
}
|
|
42
|
-
|
|
43
33
|
set contentHtml(x) {
|
|
44
34
|
this.that.contentHtml = x;
|
|
45
35
|
}
|
|
46
|
-
|
|
47
36
|
get documentation() {
|
|
48
37
|
return this.toEntity("documentation", _Documentation.default);
|
|
49
38
|
}
|
|
50
|
-
|
|
51
39
|
set documentation(x) {
|
|
52
40
|
this.that.documentation = this.fromObject(x);
|
|
53
41
|
}
|
|
54
|
-
|
|
55
42
|
static fromResource(resource, entityService) {
|
|
56
43
|
const documentationItem = new DocumentationItem();
|
|
57
44
|
documentationItem.uuid = resource.uuid;
|
|
@@ -62,9 +49,7 @@ class DocumentationItem extends _BaseEntity.default {
|
|
|
62
49
|
documentationItem.documentation = entityService.findByKey("uuid", _ResourceUtil.default.getUUIDFor(resource, "documentationUUID"), _Documentation.default.schema.name);
|
|
63
50
|
return documentationItem;
|
|
64
51
|
}
|
|
65
|
-
|
|
66
52
|
}
|
|
67
|
-
|
|
68
53
|
_defineProperty(DocumentationItem, "schema", {
|
|
69
54
|
name: 'DocumentationItem',
|
|
70
55
|
primaryKey: 'uuid',
|
|
@@ -92,6 +77,5 @@ _defineProperty(DocumentationItem, "schema", {
|
|
|
92
77
|
}
|
|
93
78
|
}
|
|
94
79
|
});
|
|
95
|
-
|
|
96
80
|
var _default = DocumentationItem;
|
|
97
81
|
exports.default = _default;
|