openchs-models 1.32.43 → 1.32.45
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 +15 -1
- package/dist/SubjectType.js +14 -0
- package/dist/SyncTelemetry.js +2 -2
- package/package.json +1 -1
package/dist/Schema.js
CHANGED
|
@@ -283,7 +283,7 @@ function createRealmConfig() {
|
|
|
283
283
|
return doCompact;
|
|
284
284
|
},
|
|
285
285
|
//order is important, should be arranged according to the dependency
|
|
286
|
-
schemaVersion:
|
|
286
|
+
schemaVersion: 202,
|
|
287
287
|
onMigration: function (oldDB, newDB) {
|
|
288
288
|
console.log("[AvniModels.Schema]", `Running migration with old schema version: ${oldDB.schemaVersion} and new schema version: ${newDB.schemaVersion}`);
|
|
289
289
|
if (oldDB.schemaVersion === VersionWithEmbeddedMigrationProblem) throw new Error(`Update from schema version ${VersionWithEmbeddedMigrationProblem} is not allowed. Please uninstall and install app.`);
|
|
@@ -978,6 +978,20 @@ function createRealmConfig() {
|
|
|
978
978
|
concept.mediaUrl = null;
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
|
+
|
|
982
|
+
if (oldDB.schemaVersion < 202) {
|
|
983
|
+
_lodash.default.forEach(newDB.objects("SyncTelemetry"), syncTelemetry => {
|
|
984
|
+
if (syncTelemetry.appInfo === '') {
|
|
985
|
+
syncTelemetry.appInfo = null;
|
|
986
|
+
}
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
if (oldDB.schemaVersion < 202) {
|
|
991
|
+
_lodash.default.forEach(newDB.objects("SubjectType"), stype => {
|
|
992
|
+
stype.loadedSince = _EntitySyncStatus.default.REALLY_OLD_DATE.getTime();
|
|
993
|
+
});
|
|
994
|
+
}
|
|
981
995
|
}
|
|
982
996
|
};
|
|
983
997
|
}
|
package/dist/SubjectType.js
CHANGED
|
@@ -82,6 +82,14 @@ class SubjectType extends _ReferenceEntity.default {
|
|
|
82
82
|
this.that.programEligibilityCheckRule = x;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
get memberAdditionEligibilityCheckRule() {
|
|
86
|
+
return this.that.memberAdditionEligibilityCheckRule;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
set memberAdditionEligibilityCheckRule(x) {
|
|
90
|
+
this.that.memberAdditionEligibilityCheckRule = x;
|
|
91
|
+
}
|
|
92
|
+
|
|
85
93
|
get uniqueName() {
|
|
86
94
|
return this.that.uniqueName;
|
|
87
95
|
}
|
|
@@ -208,6 +216,7 @@ class SubjectType extends _ReferenceEntity.default {
|
|
|
208
216
|
subjectType.type = operationalSubjectType.type;
|
|
209
217
|
subjectType.subjectSummaryRule = operationalSubjectType.subjectSummaryRule;
|
|
210
218
|
subjectType.programEligibilityCheckRule = operationalSubjectType.programEligibilityCheckRule;
|
|
219
|
+
subjectType.memberAdditionEligibilityCheckRule = operationalSubjectType.memberAdditionEligibilityCheckRule;
|
|
211
220
|
subjectType.uniqueName = operationalSubjectType.uniqueName;
|
|
212
221
|
subjectType.allowMiddleName = operationalSubjectType.allowMiddleName;
|
|
213
222
|
subjectType.lastNameOptional = operationalSubjectType.lastNameOptional;
|
|
@@ -235,6 +244,7 @@ class SubjectType extends _ReferenceEntity.default {
|
|
|
235
244
|
cloned.type = this.type;
|
|
236
245
|
cloned.subjectSummaryRule = this.subjectSummaryRule;
|
|
237
246
|
cloned.programEligibilityCheckRule = this.programEligibilityCheckRule;
|
|
247
|
+
cloned.memberAdditionEligibilityCheckRule = this.memberAdditionEligibilityCheckRule;
|
|
238
248
|
cloned.allowEmptyLocation = this.allowEmptyLocation;
|
|
239
249
|
cloned.allowMiddleName = this.allowMiddleName;
|
|
240
250
|
cloned.lastNameOptional = this.lastNameOptional;
|
|
@@ -321,6 +331,10 @@ _defineProperty(SubjectType, "schema", {
|
|
|
321
331
|
type: 'string',
|
|
322
332
|
optional: true
|
|
323
333
|
},
|
|
334
|
+
memberAdditionEligibilityCheckRule: {
|
|
335
|
+
type: 'string',
|
|
336
|
+
optional: true
|
|
337
|
+
},
|
|
324
338
|
uniqueName: {
|
|
325
339
|
type: 'bool',
|
|
326
340
|
default: false
|
package/dist/SyncTelemetry.js
CHANGED
|
@@ -139,7 +139,7 @@ class SyncTelemetry extends _BaseEntity.default {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
getAppInfo() {
|
|
142
|
-
return JSON.parse(this.appInfo);
|
|
142
|
+
return this.appInfo === '' ? {} : JSON.parse(this.appInfo);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
get toResource() {
|
|
@@ -184,7 +184,7 @@ _defineProperty(SyncTelemetry, "schema", {
|
|
|
184
184
|
entityStatus: "string",
|
|
185
185
|
syncSource: 'string?',
|
|
186
186
|
deviceInfo: "string",
|
|
187
|
-
appInfo: "string"
|
|
187
|
+
appInfo: "string?"
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
|