openchs-models 1.31.47 → 1.31.49
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/GroupDashboard.js +13 -1
- package/dist/Schema.js +6 -1
- package/package.json +1 -1
package/dist/GroupDashboard.js
CHANGED
|
@@ -32,6 +32,14 @@ class GroupDashboard extends _BaseEntity.default {
|
|
|
32
32
|
this.that.primaryDashboard = x;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
get secondaryDashboard() {
|
|
36
|
+
return this.that.secondaryDashboard;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
set secondaryDashboard(x) {
|
|
40
|
+
this.that.secondaryDashboard = x;
|
|
41
|
+
}
|
|
42
|
+
|
|
35
43
|
get group() {
|
|
36
44
|
return this.toEntity("group", _Groups.default);
|
|
37
45
|
}
|
|
@@ -49,7 +57,7 @@ class GroupDashboard extends _BaseEntity.default {
|
|
|
49
57
|
}
|
|
50
58
|
|
|
51
59
|
static fromResource(resource, entityService) {
|
|
52
|
-
const groupDashboard = _General.default.assignFields(resource, new GroupDashboard(), ["uuid", "primaryDashboard", "voided"]);
|
|
60
|
+
const groupDashboard = _General.default.assignFields(resource, new GroupDashboard(), ["uuid", "primaryDashboard", "secondaryDashboard", "voided"]);
|
|
53
61
|
|
|
54
62
|
groupDashboard.group = entityService.findByKey("uuid", _ResourceUtil.default.getUUIDFor(resource, "groupUUID"), _Groups.default.schema.name);
|
|
55
63
|
groupDashboard.dashboard = entityService.findByKey("uuid", _ResourceUtil.default.getUUIDFor(resource, "dashboardUUID"), _Dashboard.default.schema.name);
|
|
@@ -67,6 +75,10 @@ _defineProperty(GroupDashboard, "schema", {
|
|
|
67
75
|
type: "bool",
|
|
68
76
|
default: false
|
|
69
77
|
},
|
|
78
|
+
secondaryDashboard: {
|
|
79
|
+
type: "bool",
|
|
80
|
+
default: false
|
|
81
|
+
},
|
|
70
82
|
group: {
|
|
71
83
|
type: "Groups",
|
|
72
84
|
optional: true
|
package/dist/Schema.js
CHANGED
|
@@ -369,8 +369,13 @@ function migrateAllEmbeddedForTxnData(oldDB, newDB) {
|
|
|
369
369
|
|
|
370
370
|
function createRealmConfig() {
|
|
371
371
|
return {
|
|
372
|
+
shouldCompact: function (totalBytes, usedBytes) {
|
|
373
|
+
const doCompact = totalBytes / usedBytes > 1.1;
|
|
374
|
+
console.log("Should compact", totalBytes, usedBytes, doCompact);
|
|
375
|
+
return doCompact;
|
|
376
|
+
},
|
|
372
377
|
//order is important, should be arranged according to the dependency
|
|
373
|
-
schemaVersion:
|
|
378
|
+
schemaVersion: 188,
|
|
374
379
|
onMigration: function (oldDB, newDB) {
|
|
375
380
|
console.log("[AvniModels.Schema]", `Running migration with old schema version: ${oldDB.schemaVersion} and new schema version: ${newDB.schemaVersion}`);
|
|
376
381
|
|