openchs-models 1.31.40 → 1.31.41
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/Schema.js +5 -0
- package/dist/application/Form.js +1 -13
- package/package.json +1 -1
package/dist/Schema.js
CHANGED
|
@@ -375,6 +375,11 @@ function migrateAllEmbeddedForTxnData(oldDB, newDB) {
|
|
|
375
375
|
|
|
376
376
|
function createRealmConfig() {
|
|
377
377
|
return {
|
|
378
|
+
shouldCompact: function (totalBytes, usedBytes) {
|
|
379
|
+
const doCompact = totalBytes / usedBytes > 1.1;
|
|
380
|
+
console.log("Should compact", totalBytes, usedBytes, doCompact);
|
|
381
|
+
return doCompact;
|
|
382
|
+
},
|
|
378
383
|
//order is important, should be arranged according to the dependency
|
|
379
384
|
schemaVersion: 185,
|
|
380
385
|
onMigration: function (oldDB, newDB) {
|
package/dist/application/Form.js
CHANGED
|
@@ -66,14 +66,6 @@ class Form extends _BaseEntity.default {
|
|
|
66
66
|
this.that.decisionRule = x;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
get editFormRule() {
|
|
70
|
-
return this.that.editFormRule;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
set editFormRule(x) {
|
|
74
|
-
this.that.editFormRule = x;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
69
|
get visitScheduleRule() {
|
|
78
70
|
return this.that.visitScheduleRule;
|
|
79
71
|
}
|
|
@@ -126,7 +118,7 @@ class Form extends _BaseEntity.default {
|
|
|
126
118
|
this.deleteOutOfSyncDrafts(entityService, resource.uuid);
|
|
127
119
|
}
|
|
128
120
|
|
|
129
|
-
return _General.default.assignFields(resource, new Form(), ["uuid", "name", "formType", "decisionRule", "
|
|
121
|
+
return _General.default.assignFields(resource, new Form(), ["uuid", "name", "formType", "decisionRule", "visitScheduleRule", "taskScheduleRule", "validationRule", "checklistsRule", "taskScheduleRule"]);
|
|
130
122
|
}
|
|
131
123
|
|
|
132
124
|
static deleteOutOfSyncDrafts(entityService, formUUID) {
|
|
@@ -356,10 +348,6 @@ _defineProperty(Form, "schema", {
|
|
|
356
348
|
type: "string",
|
|
357
349
|
optional: true
|
|
358
350
|
},
|
|
359
|
-
editFormRule: {
|
|
360
|
-
type: "string",
|
|
361
|
-
optional: true
|
|
362
|
-
},
|
|
363
351
|
visitScheduleRule: {
|
|
364
352
|
type: "string",
|
|
365
353
|
optional: true
|