openchs-models 1.32.10 → 1.32.12
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/EntityMetaData.js +3 -3
- package/dist/Schema.js +18 -0
- package/dist/StandardReportCardType.js +1 -2
- package/package.json +1 -1
package/dist/EntityMetaData.js
CHANGED
|
@@ -457,8 +457,7 @@ const dashboardSectionCardMapping = refData(_DashboardSectionCardMapping.default
|
|
|
457
457
|
});
|
|
458
458
|
const standardReportCardType = refData(_StandardReportCardType.default, {
|
|
459
459
|
res: "standardReportCardType",
|
|
460
|
-
syncWeight: 0
|
|
461
|
-
apiVersion: "v2"
|
|
460
|
+
syncWeight: 0
|
|
462
461
|
});
|
|
463
462
|
const approvalStatus = refData(_ApprovalStatus.default, {
|
|
464
463
|
res: "approvalStatus",
|
|
@@ -466,7 +465,8 @@ const approvalStatus = refData(_ApprovalStatus.default, {
|
|
|
466
465
|
});
|
|
467
466
|
const groupDashboard = refData(_GroupDashboard.default, {
|
|
468
467
|
res: "groupDashboard",
|
|
469
|
-
syncWeight: 0
|
|
468
|
+
syncWeight: 0,
|
|
469
|
+
apiVersion: "v2"
|
|
470
470
|
});
|
|
471
471
|
const EntityApprovalStatusMetaData = txData(_EntityApprovalStatus.default, {
|
|
472
472
|
res: "entityApprovalStatus",
|
package/dist/Schema.js
CHANGED
|
@@ -921,6 +921,24 @@ function createRealmConfig() {
|
|
|
921
921
|
if (oldDB.schemaVersion < 191) {
|
|
922
922
|
newDB.delete(newDB.objects("CustomDashboardCache"));
|
|
923
923
|
}
|
|
924
|
+
|
|
925
|
+
if (oldDB.schemaVersion < 197) {
|
|
926
|
+
_lodash.default.forEach(newDB.objects("StandardReportCardType"), standardReportCardType => {
|
|
927
|
+
if (standardReportCardType.name === 'Last 24 hours registrations') {
|
|
928
|
+
standardReportCardType.description = 'Recent registrations';
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
if (standardReportCardType.name === 'Last 24 hours enrolments') {
|
|
932
|
+
standardReportCardType.description = 'Recent enrolments';
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
if (standardReportCardType.name === 'Last 24 hours visits') {
|
|
936
|
+
standardReportCardType.description = 'Recent visits';
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
standardReportCardType.type = _lodash.default.replace(_lodash.default.startCase(standardReportCardType.description), new RegExp(' ', 'g'), '');
|
|
940
|
+
});
|
|
941
|
+
}
|
|
924
942
|
}
|
|
925
943
|
};
|
|
926
944
|
}
|