openchs-models 1.27.14 → 1.27.16

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/Program.js CHANGED
@@ -100,6 +100,14 @@ class Program extends _ReferenceEntity.default {
100
100
  this.that.active = x;
101
101
  }
102
102
 
103
+ get allowMultipleEnrolments() {
104
+ return this.that.allowMultipleEnrolments;
105
+ }
106
+
107
+ set allowMultipleEnrolments(x) {
108
+ this.that.allowMultipleEnrolments = x;
109
+ }
110
+
103
111
  static fromResource(operationalProgram) {
104
112
  const program = new Program();
105
113
  program.uuid = operationalProgram.programUUID;
@@ -164,6 +172,10 @@ _defineProperty(Program, "schema", {
164
172
  active: {
165
173
  type: 'bool',
166
174
  default: true
175
+ },
176
+ allowMultipleEnrolments: {
177
+ type: 'bool',
178
+ default: false
167
179
  }
168
180
  }
169
181
  });
package/dist/Schema.js CHANGED
@@ -194,7 +194,7 @@ const entities = [_LocaleMapping.default, _Settings.default, _ConceptAnswer.defa
194
194
  function createRealmConfig() {
195
195
  return {
196
196
  //order is important, should be arranged according to the dependency
197
- schemaVersion: 167,
197
+ schemaVersion: 168,
198
198
  migration: function (oldDB, newDB) {
199
199
  if (oldDB.schemaVersion < 10) {
200
200
  const oldObjects = oldDB.objects("DecisionConfig");
@@ -260,7 +260,7 @@ class General {
260
260
  static log(source, message, level) {
261
261
  if (level >= General.getCurrentLogLevel()) {
262
262
  let levelName = `${_lodash.default.findKey(General.LogLevel, value => value === level)}`;
263
- let logMessage = `[${source}][${levelName}] ${General.getDisplayableMessage(message)}`;
263
+ let logMessage = `[${(0, _moment.default)().format("h:mm:ss:SSS")}] [${source}][${levelName}] ${General.getDisplayableMessage(message)}`;
264
264
  if (level >= General.getCurrentLogLevel()) console[levelName.toLowerCase()](logMessage);
265
265
  }
266
266
  }
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.27.14",
4
+ "version": "1.27.16",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",