@pdtf/schemas 2.0.0-23 → 2.0.0-24

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/index.js CHANGED
@@ -135,7 +135,6 @@ const getSubschema = (path, schemaId, overlays) => {
135
135
  };
136
136
 
137
137
  const isPathValid = (path, schemaId, overlays) => {
138
- const schema = getTransactionSchema(schemaId, overlays);
139
138
  try {
140
139
  return getSubschema(path, schemaId, overlays) !== undefined;
141
140
  } catch (err) {
@@ -148,7 +147,6 @@ const getSubschemaValidator = (path, schemaId, overlays = ["baspiV4"]) => {
148
147
  const overlayKey = (overlays || []).join(".");
149
148
  // see if we can retrieve the schema by path, schemaId and overlays
150
149
  const cacheKey = `${path}-${schemaId}-${overlayKey}`;
151
- console.log("cacheKey", cacheKey);
152
150
  let validator = ajv.getSchema(cacheKey);
153
151
  // retrieve whole schema by $id if available
154
152
  if (!validator && subSchema.$id) validator = ajv.getSchema(cacheKey);
@@ -224,7 +222,6 @@ const validateVerifiedClaims = (verifiedClaims, schemaId, overlays) => {
224
222
  for (const path of paths) {
225
223
  const validPath = isPathValid(path, schemaId, overlays);
226
224
  if (validPath) {
227
- console.log("overlays", path, overlays);
228
225
  const subValidator = getSubschemaValidator(path, schemaId, overlays);
229
226
  const isValid = subValidator(claim.claims[path]);
230
227
  if (!isValid) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "2.0.0-23",
3
+ "version": "2.0.0-24",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -164,9 +164,6 @@
164
164
  "yesNo": "Not required",
165
165
  "details": "No restriction"
166
166
  },
167
- "unfinished": {
168
- "yesNo": "No"
169
- },
170
167
  "yesNo": "Yes",
171
168
  "details": "Bedroom and ensuite shower room extension 2005"
172
169
  },
@@ -190,9 +187,6 @@
190
187
  "yesNo": "Not required",
191
188
  "details": "No restriction"
192
189
  },
193
- "unfinished": {
194
- "yesNo": "No"
195
- },
196
190
  "yesNo": "Yes",
197
191
  "details": "New front door added 2016",
198
192
  "yearCompleted": 2016
@@ -214,13 +208,13 @@
214
208
  "yesNo": "No",
215
209
  "details": "Added as part of initial build and deeds"
216
210
  },
217
- "unfinished": {
218
- "yesNo": "No"
219
- },
220
211
  "yesNo": "Yes",
221
212
  "details": "Conservatory added during house build in 1990 and exterior quality door separates the conservatory from the kitchen/dining room",
222
213
  "yearCompleted": 1990
223
214
  },
215
+ "worksUnfinished": {
216
+ "yesNo": "No"
217
+ },
224
218
  "planningPermissionBreaches": {
225
219
  "yesNo": "No"
226
220
  },
@@ -382,7 +376,10 @@
382
376
  "insurance": {
383
377
  "isInsured": "Yes",
384
378
  "difficultiesObtainingInsurance": {
385
- "yesNo": "No"
379
+ "abnormalRiseInPremiums": { "yesNo": "No" },
380
+ "subjectToHighExcesses": { "yesNo": "No" },
381
+ "subjectToUnusualConditions": { "yesNo": "No" },
382
+ "refused": { "yesNo": "No" }
386
383
  },
387
384
  "insuranceClaims": {
388
385
  "yesNo": "No"
@@ -477,6 +474,9 @@
477
474
  },
478
475
  "otherMaterialIssue": {
479
476
  "yesNo": "No"
477
+ },
478
+ "otherCharges": {
479
+ "yesNo": "No"
480
480
  }
481
481
  },
482
482
  "consumerProtectionRegulationsDeclaration": {
@@ -551,7 +551,10 @@
551
551
  "completionAndMoving": {
552
552
  "willRemoveAllRubbish": true,
553
553
  "otherPropertyInChain": { "yesNo": "No" },
554
- "moveRestrictionDates": { "yesNo": "No" },
554
+ "moveRestrictionDates": {
555
+ "yesNo": "Yes",
556
+ "details": "On holiday 1-15 Aug 23"
557
+ },
555
558
  "digitalPropertyLogbook": {
556
559
  "yesNo": "Yes",
557
560
  "logbookProvider": "someone",