openchs-models 1.30.57 → 1.30.59
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/EntitySyncStatus.js +3 -1
- package/dist/Privilege.js +2 -1
- package/dist/Schema.js +2 -3
- package/dist/SchemaNames.js +2 -0
- package/package.json +1 -1
package/dist/EntitySyncStatus.js
CHANGED
|
@@ -7,6 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _BaseEntity = _interopRequireDefault(require("./BaseEntity"));
|
|
9
9
|
|
|
10
|
+
var _SchemaNames = _interopRequireDefault(require("./SchemaNames"));
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
13
|
|
|
12
14
|
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; }
|
|
@@ -64,7 +66,7 @@ class EntitySyncStatus extends _BaseEntity.default {
|
|
|
64
66
|
_defineProperty(EntitySyncStatus, "REALLY_OLD_DATE", new Date("1900-01-01"));
|
|
65
67
|
|
|
66
68
|
_defineProperty(EntitySyncStatus, "schema", {
|
|
67
|
-
name:
|
|
69
|
+
name: _SchemaNames.default.EntitySyncStatus,
|
|
68
70
|
primaryKey: "uuid",
|
|
69
71
|
properties: {
|
|
70
72
|
uuid: "string",
|
package/dist/Privilege.js
CHANGED
|
@@ -148,7 +148,8 @@ _defineProperty(Privilege, "PrivilegeType", {
|
|
|
148
148
|
Messaging: "Messaging",
|
|
149
149
|
EditConcept: "EditConcept",
|
|
150
150
|
EditChecklistConfiguration: "EditChecklistConfiguration",
|
|
151
|
-
DownloadBundle: "DownloadBundle"
|
|
151
|
+
DownloadBundle: "DownloadBundle",
|
|
152
|
+
EditTaskType: "EditTaskType"
|
|
152
153
|
});
|
|
153
154
|
|
|
154
155
|
_defineProperty(Privilege, "privilegeEntityType", {
|
package/dist/Schema.js
CHANGED
|
@@ -763,9 +763,8 @@ function createRealmConfig() {
|
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
if (oldDB.schemaVersion < 178) {
|
|
766
|
-
const pushOnlyEntities =
|
|
767
|
-
|
|
768
|
-
_lodash.default.forEach(pushOnlyEntities, pushOnlyEntity => newDB.delete(pushOnlyEntity));
|
|
766
|
+
const pushOnlyEntities = newDB.objects(_SchemaNames.default.EntitySyncStatus).filtered("entityName = 'EntityApprovalStatus' OR entityName = 'SyncTelemetry' OR entityName = 'VideoTelemetric' OR entityName = 'RuleFailureTelemetry'");
|
|
767
|
+
pushOnlyEntities.forEach(pushOnlyEntity => newDB.delete(pushOnlyEntity));
|
|
769
768
|
}
|
|
770
769
|
}
|
|
771
770
|
};
|
package/dist/SchemaNames.js
CHANGED
|
@@ -9,6 +9,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9
9
|
|
|
10
10
|
class SchemaNames {}
|
|
11
11
|
|
|
12
|
+
_defineProperty(SchemaNames, "EntitySyncStatus", "EntitySyncStatus");
|
|
13
|
+
|
|
12
14
|
_defineProperty(SchemaNames, "Individual", "Individual");
|
|
13
15
|
|
|
14
16
|
_defineProperty(SchemaNames, "ProgramEnrolment", "ProgramEnrolment");
|