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 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) {
@@ -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", "editFormRule", "visitScheduleRule", "taskScheduleRule", "validationRule", "checklistsRule", "taskScheduleRule"]);
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.31.40",
4
+ "version": "1.31.41",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",