@pdtf/schemas 2.0.0-25 → 2.0.0-27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "2.0.0-25",
3
+ "version": "2.0.0-27",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -125,6 +125,7 @@
125
125
  }
126
126
  },
127
127
  "energyEfficiency": {
128
+ "certificateIsSupplied": "Attached",
128
129
  "certificate": {
129
130
  "certificateNumber": "12345",
130
131
  "currentEnergyRating": "A"
@@ -125,8 +125,8 @@
125
125
  }
126
126
  },
127
127
  "propertyPack": {
128
- "baspiRef": "-",
129
- "ta6Ref": "-",
128
+ "baspiRef": "0",
129
+ "ta6Ref": "0",
130
130
  "title": "Property Pack",
131
131
  "type": "object",
132
132
  "baspiRequired": ["materialFacts", "additionalLegalInfo"],
@@ -7304,7 +7304,7 @@
7304
7304
  "ta6Ref": "4.7a1",
7305
7305
  "type": "string",
7306
7306
  "title": "",
7307
- "enum": ["Yes", "No"]
7307
+ "enum": ["Yes", "No", "Not known"]
7308
7308
  }
7309
7309
  },
7310
7310
  "baspiRequired": ["yesNo"],
@@ -7316,7 +7316,7 @@
7316
7316
  {
7317
7317
  "properties": {
7318
7318
  "yesNo": {
7319
- "enum": ["No"]
7319
+ "enum": ["No", "Not known"]
7320
7320
  }
7321
7321
  }
7322
7322
  },
@@ -7357,7 +7357,7 @@
7357
7357
  "ta6Ref": "4.7b1",
7358
7358
  "type": "string",
7359
7359
  "title": "",
7360
- "enum": ["Yes", "No"]
7360
+ "enum": ["Yes", "No", "Not known"]
7361
7361
  }
7362
7362
  },
7363
7363
  "baspiRequired": ["yesNo"],
@@ -7368,7 +7368,7 @@
7368
7368
  {
7369
7369
  "properties": {
7370
7370
  "yesNo": {
7371
- "enum": ["No"]
7371
+ "enum": ["No", "Not known"]
7372
7372
  }
7373
7373
  }
7374
7374
  },
@@ -7410,7 +7410,7 @@
7410
7410
  "ta6Ref": "4.8.1",
7411
7411
  "type": "string",
7412
7412
  "title": "",
7413
- "enum": ["Yes", "No"]
7413
+ "enum": ["Yes", "No", "Not known"]
7414
7414
  }
7415
7415
  },
7416
7416
  "baspiRequired": ["yesNo"],
@@ -7422,7 +7422,7 @@
7422
7422
  {
7423
7423
  "properties": {
7424
7424
  "yesNo": {
7425
- "enum": ["No"]
7425
+ "enum": ["No", "Not known"]
7426
7426
  }
7427
7427
  }
7428
7428
  },
@@ -7652,14 +7652,18 @@
7652
7652
  "title": "Energy Efficiency",
7653
7653
  "type": "object",
7654
7654
  "baspiRequired": ["certificate", "greenDealLoan"],
7655
- "ta6Required": ["certificate", "greenDealLoan"],
7655
+ "ta6Required": ["certificateIsSupplied", "greenDealLoan"],
7656
7656
  "properties": {
7657
+ "certificateIsSupplied": {
7658
+ "ta6Ref": "7.6.1",
7659
+ "title": "Please supply a copy of the EPC for the property",
7660
+ "type": "string",
7661
+ "enum": ["Attached", "To follow", "Already supplied"]
7662
+ },
7657
7663
  "certificate": {
7658
7664
  "baspiRef": "A1.8.3.1",
7659
- "ta6Ref": "7.6.1",
7660
7665
  "type": "object",
7661
7666
  "baspiRequired": ["currentEnergyRating"],
7662
- "ta6Required": ["currentEnergyRating"],
7663
7667
  "properties": {
7664
7668
  "certificateNumber": {
7665
7669
  "type": "string"
@@ -7708,7 +7712,6 @@
7708
7712
  },
7709
7713
  "currentEnergyRating": {
7710
7714
  "baspiRef": "A1.8.3.1.1",
7711
- "ta6Ref": "7.6",
7712
7715
  "title": "Current energy efficiency rating",
7713
7716
  "description": "What is the energy efficiency rating of the property according to the latest Energy Performance Certificate (EPC)?",
7714
7717
  "type": "string",
@@ -7993,7 +7996,6 @@
7993
7996
  "greenDealLoan": {
7994
7997
  "baspiRef": "A7.3",
7995
7998
  "ta6Ref": "7.7",
7996
-
7997
7999
  "rdsRef": "RightsHolders/Loans,RightsHolders/OtherDocumentation",
7998
8000
  "title": "Green Deal Loan",
7999
8001
  "type": "object",
@@ -8002,13 +8004,13 @@
8002
8004
  "properties": {
8003
8005
  "hasGreenDealLoan": {
8004
8006
  "baspiRef": "A7.3",
8005
- "ta6Ref": "7.7.1",
8007
+ "ta6Ref": "7.7.0",
8006
8008
  "title": "Is this property subject to a Green Deal loan or other financed home improvement scheme?",
8007
8009
  "type": "object",
8008
8010
  "properties": {
8009
8011
  "yesNo": {
8010
8012
  "baspiRef": "A7.3.1",
8011
- "ta6Ref": "7.7.1.1",
8013
+ "ta6Ref": "7.7.1",
8012
8014
  "type": "string",
8013
8015
  "title": "",
8014
8016
  "enum": ["Yes", "No"]
@@ -8034,14 +8036,14 @@
8034
8036
  },
8035
8037
  "details": {
8036
8038
  "baspiRef": "A7.3.2",
8037
- "ta6Ref": "7.7.1.2",
8039
+ "ta6Ref": "7.7.2",
8038
8040
  "title": "Please provide details below including any outstanding payments for the renewable devices and any feed-in tariffs and a copy of your last electricity bill",
8039
8041
  "type": "string",
8040
8042
  "minLength": 1
8041
8043
  },
8042
8044
  "attachments": {
8043
8045
  "baspiRef": "A7.3.3",
8044
- "ta6Ref": "7.7.1.3",
8046
+ "ta6Ref": "7.7.3",
8045
8047
  "title": "Attachments",
8046
8048
  "type": "string",
8047
8049
  "enum": ["Attached", "To follow"]
@@ -18046,7 +18048,7 @@
18046
18048
  },
18047
18049
  "details": {
18048
18050
  "baspiRef": "A8.1.2.1.3",
18049
- "ta6Ref": "6.4.a2",
18051
+ "ta6Ref": "6.4.2",
18050
18052
  "title": "Provide details",
18051
18053
  "type": "string",
18052
18054
  "minLength": 1
@@ -18091,7 +18093,7 @@
18091
18093
  },
18092
18094
  "details": {
18093
18095
  "baspiRef": "A8.1.2.1.2.2",
18094
- "ta6Ref": "6.4.b2",
18096
+ "ta6Ref": "6.4.2",
18095
18097
  "title": "Provide details",
18096
18098
  "type": "string",
18097
18099
  "minLength": 1
@@ -18104,13 +18106,13 @@
18104
18106
  },
18105
18107
  "subjectToUnusualConditions": {
18106
18108
  "baspiRef": "A8.1.2.1.3",
18107
- "ta6Ref": "6.4a",
18109
+ "ta6Ref": "6.4c",
18108
18110
  "title": "Subject to unusual conditions?",
18109
18111
  "type": "object",
18110
18112
  "properties": {
18111
18113
  "yesNo": {
18112
18114
  "baspiRef": "A8.1.2.1.3.1",
18113
- "ta6Ref": "6.4.a1",
18115
+ "ta6Ref": "6.4.c1",
18114
18116
  "type": "string",
18115
18117
  "title": "",
18116
18118
  "enum": ["Yes", "No"]
@@ -18136,7 +18138,7 @@
18136
18138
  },
18137
18139
  "details": {
18138
18140
  "baspiRef": "A8.1.2.1.3.2",
18139
- "ta6Ref": "6.4.a2",
18141
+ "ta6Ref": "6.4.2",
18140
18142
  "title": "Provide details",
18141
18143
  "type": "string",
18142
18144
  "minLength": 1
@@ -18149,13 +18151,13 @@
18149
18151
  },
18150
18152
  "refused": {
18151
18153
  "baspiRef": "A8.1.2.1.4",
18152
- "ta6Ref": "6.4a",
18154
+ "ta6Ref": "6.4d",
18153
18155
  "title": "Refused?",
18154
18156
  "type": "object",
18155
18157
  "properties": {
18156
18158
  "yesNo": {
18157
18159
  "baspiRef": "A8.1.2.1.4.1",
18158
- "ta6Ref": "6.4.a1",
18160
+ "ta6Ref": "6.4.d1",
18159
18161
  "type": "string",
18160
18162
  "title": "",
18161
18163
  "enum": ["Yes", "No"]
@@ -18181,7 +18183,7 @@
18181
18183
  },
18182
18184
  "details": {
18183
18185
  "baspiRef": "A8.1.2.1.4.2",
18184
- "ta6Ref": "6.4.a2",
18186
+ "ta6Ref": "6.4.2",
18185
18187
  "title": "Provide details",
18186
18188
  "type": "string",
18187
18189
  "minLength": 1
@@ -18908,6 +18910,7 @@
18908
18910
  },
18909
18911
  "environmentalIssues": {
18910
18912
  "baspiRef": "A11.1",
18913
+ "ta6Ref": "7",
18911
18914
  "title": "Environmental Issues Affecting the Property",
18912
18915
  "type": "object",
18913
18916
  "baspiRequired": ["flooding", "radon", "otherEnvironmental"],
@@ -18916,7 +18919,7 @@
18916
18919
  "flooding": {
18917
18920
  "baspiRef": "A11.1.1",
18918
18921
  "rdsRef": "Sustainability/Environmental|Natural|Situational",
18919
- "ta6Ref": "7.1",
18922
+ "ta6Ref": "7.1.0",
18920
18923
  "title": "Flooding",
18921
18924
  "type": "object",
18922
18925
  "baspiRequired": ["floodRiskReport", "hasBeenFlooded"],
@@ -18969,7 +18972,7 @@
18969
18972
  },
18970
18973
  "hasBeenFlooded": {
18971
18974
  "baspiRef": "A11.1.2",
18972
- "ta6Ref": "7.2",
18975
+ "ta6Ref": "7.1",
18973
18976
  "title": "Has any part of the property (whether buildings or surrounding garden or land) ever been flooded?",
18974
18977
  "type": "string",
18975
18978
  "enum": ["Yes", "No"]
@@ -18993,7 +18996,7 @@
18993
18996
  },
18994
18997
  "details": {
18995
18998
  "baspiRef": "A11.1.2.1",
18996
- "ta6Ref": "7.1",
18999
+ "ta6Ref": "7.2",
18997
19000
  "title": "Please state when the flooding occurred and identify the parts that flooded",
18998
19001
  "type": "string",
18999
19002
  "minLength": 1
@@ -19154,14 +19157,14 @@
19154
19157
  },
19155
19158
  "details": {
19156
19159
  "baspiRef": "A11.1.3.2",
19157
- "ta6Ref": "7.4a",
19160
+ "ta6Ref": "7.4b",
19158
19161
  "title": "Was the test result was below the recommended level?",
19159
19162
  "type": "string",
19160
19163
  "enum": ["Yes", "No"]
19161
19164
  },
19162
19165
  "attachments": {
19163
19166
  "baspiRef": "A11.1.3.3",
19164
- "ta6Ref": "7.4b",
19167
+ "ta6Ref": "7.4a",
19165
19168
  "title": "Please supply a copy of the report",
19166
19169
  "type": "string",
19167
19170
  "enum": ["Attached", "To follow"]
@@ -19182,9 +19185,10 @@
19182
19185
  "properties": {
19183
19186
  "yesNo": {
19184
19187
  "baspiRef": "A11.1.3.4.1",
19188
+ "ta6Ref": "7.5.1",
19185
19189
  "type": "string",
19186
19190
  "title": "",
19187
- "enum": ["Yes", "No"]
19191
+ "enum": ["Yes", "No", "Not known"]
19188
19192
  }
19189
19193
  },
19190
19194
  "baspiRequired": ["yesNo"],
@@ -19214,7 +19218,7 @@
19214
19218
  {
19215
19219
  "properties": {
19216
19220
  "yesNo": {
19217
- "enum": ["No"]
19221
+ "enum": ["No", "Not known"]
19218
19222
  }
19219
19223
  }
19220
19224
  },
@@ -20489,7 +20493,7 @@
20489
20493
  },
20490
20494
  "attachments": {
20491
20495
  "baspiRef": "4.3.3.3",
20492
- "ta6Ref": "4.6c1",
20496
+ "ta6Ref": "4.6c2",
20493
20497
  "title": "Please supply copies of the relevant documents",
20494
20498
  "type": "string",
20495
20499
  "enum": ["Attached", "To follow"]
@@ -20881,7 +20885,7 @@
20881
20885
  "properties": {
20882
20886
  "hasValidGuaranteesOrWarranties": {
20883
20887
  "baspiRef": "B5.1",
20884
- "ta6Ref": "5/1",
20888
+ "ta6Ref": "5.1",
20885
20889
  "rdsRef": "Certificates",
20886
20890
  "title": "Are there any valid guarantees or warranties relating to this property?",
20887
20891
  "type": "string",
@@ -30,7 +30,7 @@
30
30
  }
31
31
  },
32
32
  "propertyPack": {
33
- "baspiRef": "-",
33
+ "baspiRef": "0",
34
34
  "title": "Property Pack",
35
35
  "required": [
36
36
  "materialFacts",
@@ -1293,7 +1293,8 @@
1293
1293
  "properties": {
1294
1294
  "yesNo": {
1295
1295
  "enum": [
1296
- "No"
1296
+ "No",
1297
+ "Not known"
1297
1298
  ]
1298
1299
  }
1299
1300
  }
@@ -1332,7 +1333,8 @@
1332
1333
  "baspiRef": "A1.7.1.1",
1333
1334
  "enum": [
1334
1335
  "Yes",
1335
- "No"
1336
+ "No",
1337
+ "Not known"
1336
1338
  ]
1337
1339
  }
1338
1340
  }
@@ -1348,7 +1350,8 @@
1348
1350
  "properties": {
1349
1351
  "yesNo": {
1350
1352
  "enum": [
1351
- "No"
1353
+ "No",
1354
+ "Not known"
1352
1355
  ]
1353
1356
  }
1354
1357
  }
@@ -1387,7 +1390,8 @@
1387
1390
  "baspiRef": "A1.7.2.1",
1388
1391
  "enum": [
1389
1392
  "Yes",
1390
- "No"
1393
+ "No",
1394
+ "Not known"
1391
1395
  ]
1392
1396
  }
1393
1397
  }
@@ -1403,7 +1407,8 @@
1403
1407
  "properties": {
1404
1408
  "yesNo": {
1405
1409
  "enum": [
1406
- "No"
1410
+ "No",
1411
+ "Not known"
1407
1412
  ]
1408
1413
  }
1409
1414
  }
@@ -1488,7 +1493,8 @@
1488
1493
  "baspiRef": "A1.7.3.1",
1489
1494
  "enum": [
1490
1495
  "Yes",
1491
- "No"
1496
+ "No",
1497
+ "Not known"
1492
1498
  ]
1493
1499
  }
1494
1500
  }
@@ -6940,7 +6946,8 @@
6940
6946
  "baspiRef": "A11.1.3.4.1",
6941
6947
  "enum": [
6942
6948
  "Yes",
6943
- "No"
6949
+ "No",
6950
+ "Not known"
6944
6951
  ]
6945
6952
  }
6946
6953
  }
@@ -6958,7 +6965,8 @@
6958
6965
  "properties": {
6959
6966
  "yesNo": {
6960
6967
  "enum": [
6961
- "No"
6968
+ "No",
6969
+ "Not known"
6962
6970
  ]
6963
6971
  }
6964
6972
  }
@@ -78,7 +78,8 @@
78
78
  "properties": {
79
79
  "yesNo": {
80
80
  "enum": [
81
- "No"
81
+ "No",
82
+ "Not known"
82
83
  ]
83
84
  }
84
85
  }
@@ -105,7 +106,8 @@
105
106
  "properties": {
106
107
  "yesNo": {
107
108
  "enum": [
108
- "No"
109
+ "No",
110
+ "Not known"
109
111
  ]
110
112
  }
111
113
  }
@@ -132,7 +134,8 @@
132
134
  "properties": {
133
135
  "yesNo": {
134
136
  "enum": [
135
- "No"
137
+ "No",
138
+ "Not known"
136
139
  ]
137
140
  }
138
141
  }
@@ -2710,7 +2713,8 @@
2710
2713
  "properties": {
2711
2714
  "yesNo": {
2712
2715
  "enum": [
2713
- "No"
2716
+ "No",
2717
+ "Not known"
2714
2718
  ]
2715
2719
  }
2716
2720
  }
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "properties": {
9
9
  "propertyPack": {
10
- "ta6Ref": "-",
10
+ "ta6Ref": "0",
11
11
  "title": "Property Pack",
12
12
  "required": [
13
13
  "materialFacts",
@@ -185,7 +185,8 @@
185
185
  "properties": {
186
186
  "yesNo": {
187
187
  "enum": [
188
- "No"
188
+ "No",
189
+ "Not known"
189
190
  ]
190
191
  }
191
192
  }
@@ -224,7 +225,8 @@
224
225
  "ta6Ref": "4.7a1",
225
226
  "enum": [
226
227
  "Yes",
227
- "No"
228
+ "No",
229
+ "Not known"
228
230
  ]
229
231
  }
230
232
  }
@@ -240,7 +242,8 @@
240
242
  "properties": {
241
243
  "yesNo": {
242
244
  "enum": [
243
- "No"
245
+ "No",
246
+ "Not known"
244
247
  ]
245
248
  }
246
249
  }
@@ -279,7 +282,8 @@
279
282
  "ta6Ref": "4.7b1",
280
283
  "enum": [
281
284
  "Yes",
282
- "No"
285
+ "No",
286
+ "Not known"
283
287
  ]
284
288
  }
285
289
  }
@@ -295,7 +299,8 @@
295
299
  "properties": {
296
300
  "yesNo": {
297
301
  "enum": [
298
- "No"
302
+ "No",
303
+ "Not known"
299
304
  ]
300
305
  }
301
306
  }
@@ -380,7 +385,8 @@
380
385
  "ta6Ref": "4.8.1",
381
386
  "enum": [
382
387
  "Yes",
383
- "No"
388
+ "No",
389
+ "Not known"
384
390
  ]
385
391
  }
386
392
  }
@@ -391,34 +397,18 @@
391
397
  "ta6Ref": "7.6",
392
398
  "title": "Energy Efficiency",
393
399
  "required": [
394
- "certificate",
400
+ "certificateIsSupplied",
395
401
  "greenDealLoan"
396
402
  ],
397
403
  "properties": {
398
- "certificate": {
404
+ "certificateIsSupplied": {
399
405
  "ta6Ref": "7.6.1",
400
- "required": [
401
- "currentEnergyRating"
402
- ],
403
- "properties": {
404
- "currentEnergyRating": {
405
- "ta6Ref": "7.6",
406
- "title": "Current energy efficiency rating",
407
- "description": "What is the energy efficiency rating of the property according to the latest Energy Performance Certificate (EPC)?",
408
- "enum": [
409
- "A",
410
- "B",
411
- "C",
412
- "D",
413
- "E",
414
- "F",
415
- "G",
416
- "Exempt Property",
417
- "Survey Instructed",
418
- "No Certificate"
419
- ]
420
- }
421
- }
406
+ "title": "Please supply a copy of the EPC for the property",
407
+ "enum": [
408
+ "Attached",
409
+ "To follow",
410
+ "Already supplied"
411
+ ]
422
412
  },
423
413
  "greenDealLoan": {
424
414
  "ta6Ref": "7.7",
@@ -428,7 +418,7 @@
428
418
  ],
429
419
  "properties": {
430
420
  "hasGreenDealLoan": {
431
- "ta6Ref": "7.7.1",
421
+ "ta6Ref": "7.7.0",
432
422
  "title": "Is this property subject to a Green Deal loan or other financed home improvement scheme?",
433
423
  "discriminator": {
434
424
  "propertyName": "yesNo"
@@ -451,11 +441,11 @@
451
441
  ]
452
442
  },
453
443
  "details": {
454
- "ta6Ref": "7.7.1.2",
444
+ "ta6Ref": "7.7.2",
455
445
  "title": "Please provide details below including any outstanding payments for the renewable devices and any feed-in tariffs and a copy of your last electricity bill"
456
446
  },
457
447
  "attachments": {
458
- "ta6Ref": "7.7.1.3",
448
+ "ta6Ref": "7.7.3",
459
449
  "title": "Attachments",
460
450
  "enum": [
461
451
  "Attached",
@@ -474,7 +464,7 @@
474
464
  ],
475
465
  "properties": {
476
466
  "yesNo": {
477
- "ta6Ref": "7.7.1.1",
467
+ "ta6Ref": "7.7.1",
478
468
  "enum": [
479
469
  "Yes",
480
470
  "No"
@@ -2767,7 +2757,7 @@
2767
2757
  ]
2768
2758
  },
2769
2759
  "details": {
2770
- "ta6Ref": "6.4.a2",
2760
+ "ta6Ref": "6.4.2",
2771
2761
  "title": "Provide details"
2772
2762
  }
2773
2763
  },
@@ -2813,7 +2803,7 @@
2813
2803
  ]
2814
2804
  },
2815
2805
  "details": {
2816
- "ta6Ref": "6.4.b2",
2806
+ "ta6Ref": "6.4.2",
2817
2807
  "title": "Provide details"
2818
2808
  }
2819
2809
  },
@@ -2836,7 +2826,7 @@
2836
2826
  }
2837
2827
  },
2838
2828
  "subjectToUnusualConditions": {
2839
- "ta6Ref": "6.4a",
2829
+ "ta6Ref": "6.4c",
2840
2830
  "title": "Subject to unusual conditions?",
2841
2831
  "discriminator": {
2842
2832
  "propertyName": "yesNo"
@@ -2859,7 +2849,7 @@
2859
2849
  ]
2860
2850
  },
2861
2851
  "details": {
2862
- "ta6Ref": "6.4.a2",
2852
+ "ta6Ref": "6.4.2",
2863
2853
  "title": "Provide details"
2864
2854
  }
2865
2855
  },
@@ -2873,7 +2863,7 @@
2873
2863
  ],
2874
2864
  "properties": {
2875
2865
  "yesNo": {
2876
- "ta6Ref": "6.4.a1",
2866
+ "ta6Ref": "6.4.c1",
2877
2867
  "enum": [
2878
2868
  "Yes",
2879
2869
  "No"
@@ -2882,7 +2872,7 @@
2882
2872
  }
2883
2873
  },
2884
2874
  "refused": {
2885
- "ta6Ref": "6.4a",
2875
+ "ta6Ref": "6.4d",
2886
2876
  "title": "Refused?",
2887
2877
  "discriminator": {
2888
2878
  "propertyName": "yesNo"
@@ -2905,7 +2895,7 @@
2905
2895
  ]
2906
2896
  },
2907
2897
  "details": {
2908
- "ta6Ref": "6.4.a2",
2898
+ "ta6Ref": "6.4.2",
2909
2899
  "title": "Provide details"
2910
2900
  }
2911
2901
  },
@@ -2919,7 +2909,7 @@
2919
2909
  ],
2920
2910
  "properties": {
2921
2911
  "yesNo": {
2922
- "ta6Ref": "6.4.a1",
2912
+ "ta6Ref": "6.4.d1",
2923
2913
  "enum": [
2924
2914
  "Yes",
2925
2915
  "No"
@@ -3437,6 +3427,8 @@
3437
3427
  }
3438
3428
  },
3439
3429
  "environmentalIssues": {
3430
+ "ta6Ref": "7",
3431
+ "title": "Environmental Issues Affecting the Property",
3440
3432
  "required": [
3441
3433
  "flooding",
3442
3434
  "radon",
@@ -3444,7 +3436,7 @@
3444
3436
  ],
3445
3437
  "properties": {
3446
3438
  "flooding": {
3447
- "ta6Ref": "7.1",
3439
+ "ta6Ref": "7.1.0",
3448
3440
  "title": "Flooding",
3449
3441
  "discriminator": {
3450
3442
  "propertyName": "hasBeenFlooded"
@@ -3467,7 +3459,7 @@
3467
3459
  ]
3468
3460
  },
3469
3461
  "details": {
3470
- "ta6Ref": "7.1",
3462
+ "ta6Ref": "7.2",
3471
3463
  "title": "Please state when the flooding occurred and identify the parts that flooded"
3472
3464
  },
3473
3465
  "typeOfFlooding": {
@@ -3633,7 +3625,7 @@
3633
3625
  }
3634
3626
  },
3635
3627
  "hasBeenFlooded": {
3636
- "ta6Ref": "7.2",
3628
+ "ta6Ref": "7.1",
3637
3629
  "title": "Has any part of the property (whether buildings or surrounding garden or land) ever been flooded?",
3638
3630
  "enum": [
3639
3631
  "Yes",
@@ -3674,7 +3666,7 @@
3674
3666
  ]
3675
3667
  },
3676
3668
  "details": {
3677
- "ta6Ref": "7.4a",
3669
+ "ta6Ref": "7.4b",
3678
3670
  "title": "Was the test result was below the recommended level?",
3679
3671
  "enum": [
3680
3672
  "Yes",
@@ -3682,7 +3674,7 @@
3682
3674
  ]
3683
3675
  },
3684
3676
  "attachments": {
3685
- "ta6Ref": "7.4b",
3677
+ "ta6Ref": "7.4a",
3686
3678
  "title": "Please supply a copy of the report",
3687
3679
  "enum": [
3688
3680
  "Attached",
@@ -3714,7 +3706,17 @@
3714
3706
  "title": "Were any remedial measures undertaken on construction to reduce Radon gas levels on the property?",
3715
3707
  "required": [
3716
3708
  "yesNo"
3717
- ]
3709
+ ],
3710
+ "properties": {
3711
+ "yesNo": {
3712
+ "ta6Ref": "7.5.1",
3713
+ "enum": [
3714
+ "Yes",
3715
+ "No",
3716
+ "Not known"
3717
+ ]
3718
+ }
3719
+ }
3718
3720
  }
3719
3721
  }
3720
3722
  }
@@ -4379,7 +4381,7 @@
4379
4381
  ]
4380
4382
  },
4381
4383
  "attachments": {
4382
- "ta6Ref": "4.6c1",
4384
+ "ta6Ref": "4.6c2",
4383
4385
  "title": "Please supply copies of the relevant documents",
4384
4386
  "enum": [
4385
4387
  "Attached",
@@ -4997,7 +4999,7 @@
4997
4999
  ],
4998
5000
  "properties": {
4999
5001
  "hasValidGuaranteesOrWarranties": {
5000
- "ta6Ref": "5/1",
5002
+ "ta6Ref": "5.1",
5001
5003
  "title": "Are there any valid guarantees or warranties relating to this property?",
5002
5004
  "enum": [
5003
5005
  "Yes",
@@ -6379,7 +6379,8 @@
6379
6379
  "title": "",
6380
6380
  "enum": [
6381
6381
  "Yes",
6382
- "No"
6382
+ "No",
6383
+ "Not known"
6383
6384
  ]
6384
6385
  }
6385
6386
  },
@@ -6388,7 +6389,8 @@
6388
6389
  "properties": {
6389
6390
  "yesNo": {
6390
6391
  "enum": [
6391
- "No"
6392
+ "No",
6393
+ "Not known"
6392
6394
  ]
6393
6395
  }
6394
6396
  }
@@ -6426,7 +6428,8 @@
6426
6428
  "title": "",
6427
6429
  "enum": [
6428
6430
  "Yes",
6429
- "No"
6431
+ "No",
6432
+ "Not known"
6430
6433
  ]
6431
6434
  }
6432
6435
  },
@@ -6435,7 +6438,8 @@
6435
6438
  "properties": {
6436
6439
  "yesNo": {
6437
6440
  "enum": [
6438
- "No"
6441
+ "No",
6442
+ "Not known"
6439
6443
  ]
6440
6444
  }
6441
6445
  }
@@ -6473,7 +6477,8 @@
6473
6477
  "title": "",
6474
6478
  "enum": [
6475
6479
  "Yes",
6476
- "No"
6480
+ "No",
6481
+ "Not known"
6477
6482
  ]
6478
6483
  }
6479
6484
  },
@@ -6482,7 +6487,8 @@
6482
6487
  "properties": {
6483
6488
  "yesNo": {
6484
6489
  "enum": [
6485
- "No"
6490
+ "No",
6491
+ "Not known"
6486
6492
  ]
6487
6493
  }
6488
6494
  }
@@ -6699,6 +6705,15 @@
6699
6705
  "title": "Energy Efficiency",
6700
6706
  "type": "object",
6701
6707
  "properties": {
6708
+ "certificateIsSupplied": {
6709
+ "title": "Please supply a copy of the EPC for the property",
6710
+ "type": "string",
6711
+ "enum": [
6712
+ "Attached",
6713
+ "To follow",
6714
+ "Already supplied"
6715
+ ]
6716
+ },
6702
6717
  "certificate": {
6703
6718
  "type": "object",
6704
6719
  "properties": {
@@ -17483,7 +17498,8 @@
17483
17498
  "title": "",
17484
17499
  "enum": [
17485
17500
  "Yes",
17486
- "No"
17501
+ "No",
17502
+ "Not known"
17487
17503
  ]
17488
17504
  }
17489
17505
  }
@@ -17508,7 +17524,8 @@
17508
17524
  "properties": {
17509
17525
  "yesNo": {
17510
17526
  "enum": [
17511
- "No"
17527
+ "No",
17528
+ "Not known"
17512
17529
  ]
17513
17530
  }
17514
17531
  }
@@ -931,6 +931,7 @@
931
931
  }
932
932
  },
933
933
  "energyEfficiency": {
934
+ "certificateIsSupplied": {},
934
935
  "certificate": {
935
936
  "certificateNumber": {},
936
937
  "address": {},
@@ -135,7 +135,7 @@ test("correctly gets yet, yet another subschema through a dependency", () => {
135
135
  "/propertyPack/materialFacts/listingAndConservation/isConservationArea/yesNo"
136
136
  );
137
137
  expect(subschema.type).toBe("string");
138
- expect(subschema.enum).toStrictEqual(["Yes", "No"]);
138
+ expect(subschema.enum).toStrictEqual(["Yes", "No", "Not known"]);
139
139
  });
140
140
 
141
141
  test("correctly gets yet, yet, yet another subschema through a dependency", () => {
@@ -1,341 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft-07/schema#",
3
- "$id": "http://www.landregistry.gov.uk/LLC/LLCSearchResponseV2_0#",
4
- "definitions": {
5
- "ProductResponseCodeType": {
6
- "type": "object",
7
- "properties": {
8
- "Value": {
9
- "allOf": [
10
- {"type": "string"},
11
- {
12
- "enum": [
13
- "0",
14
- "10",
15
- "20",
16
- "30"
17
- ]
18
- }
19
- ]
20
- }
21
- }
22
- },
23
- "IdentifierType": {
24
- "type": "object",
25
- "properties": {
26
- "Value": {"type": "string"},
27
- "schemeAgencyName": {"type": "string"},
28
- "schemeName": {"type": "string"}
29
- }
30
- },
31
- "DateTimeType": {
32
- "type": "object",
33
- "properties": {
34
- "Value": {
35
- "type": "string",
36
- "format": "date-time"
37
- }
38
- }
39
- },
40
- "TextType": {
41
- "type": "object",
42
- "properties": {
43
- "Value": {"type": "string"}
44
- }
45
- },
46
- "Q1AcknowledgementDetailsType": {
47
- "type": "object",
48
- "required": [
49
- "UniqueID",
50
- "MessageDescription"
51
- ],
52
- "properties": {
53
- "UniqueID": {"$ref": "#/definitions/IdentifierType"},
54
- "ExpectedResponseDateTime": {"$ref": "#/definitions/DateTimeType"},
55
- "MessageDescription": {"$ref": "#/definitions/TextType"}
56
- }
57
- },
58
- "Q1AcknowledgementType": {
59
- "type": "object",
60
- "required": ["AcknowledgementDetails"],
61
- "properties": {
62
- "AcknowledgementDetails": {"$ref": "#/definitions/Q1AcknowledgementDetailsType"}
63
- }
64
- },
65
- "AmountType": {
66
- "type": "object",
67
- "properties": {
68
- "Value": {"type": "number"},
69
- "currencyID": {"type": "string"}
70
- }
71
- },
72
- "Q1ActualPriceType": {
73
- "type": "object",
74
- "required": ["GrossPriceAmount"],
75
- "properties": {
76
- "GrossPriceAmount": {"$ref": "#/definitions/AmountType"},
77
- "NetPriceAmount": {"$ref": "#/definitions/AmountType"},
78
- "VATAmount": {"$ref": "#/definitions/AmountType"}
79
- }
80
- },
81
- "Q1ValidationErrorsType": {
82
- "type": "object",
83
- "required": [
84
- "Code",
85
- "Description"
86
- ],
87
- "properties": {
88
- "Code": {"$ref": "#/definitions/TextType"},
89
- "Description": {"$ref": "#/definitions/TextType"}
90
- }
91
- },
92
- "Q1RejectionResponseType": {
93
- "type": "object",
94
- "required": [
95
- "Reason",
96
- "Code"
97
- ],
98
- "properties": {
99
- "Reason": {"$ref": "#/definitions/TextType"},
100
- "Code": {"$ref": "#/definitions/TextType"},
101
- "OtherDescription": {"$ref": "#/definitions/TextType"},
102
- "ValidationErrors": {
103
- "type": "array",
104
- "items": {"$ref": "#/definitions/Q1ValidationErrorsType"},
105
- "minItems": 0
106
- }
107
- }
108
- },
109
- "Q1RejectionType": {
110
- "type": "object",
111
- "required": [
112
- "ExternalReference",
113
- "RejectionResponse"
114
- ],
115
- "properties": {
116
- "ExternalReference": {"$ref": "#/definitions/TextType"},
117
- "ActualPrice": {"$ref": "#/definitions/Q1ActualPriceType"},
118
- "RejectionResponse": {"$ref": "#/definitions/Q1RejectionResponseType"}
119
- }
120
- },
121
- "CData": {
122
- "type": "object",
123
- "properties": {
124
- "Value": {"type": "string"},
125
- "format": {"type": "string"}
126
- }
127
- },
128
- "BinaryObjectType": {
129
- "type": "object",
130
- "properties": {
131
- "Value": {
132
- "type": "array",
133
- "items": {"type": "integer"}
134
- },
135
- "filename": {"type": "string"},
136
- "format": {"type": "string"},
137
- "mimeCode": {"type": "string"},
138
- "characterSetCode": {"type": "string"}
139
- }
140
- },
141
- "DateType": {
142
- "type": "object",
143
- "properties": {
144
- "Value": {
145
- "type": "string",
146
- "format": "date"
147
- }
148
- }
149
- },
150
- "Q1AttachmentType": {
151
- "type": "object",
152
- "required": ["EmbeddedFileBinaryObject"],
153
- "properties": {
154
- "EmbeddedFileBinaryObject": {"$ref": "#/definitions/BinaryObjectType"},
155
- "Title": {"$ref": "#/definitions/TextType"},
156
- "Description": {"$ref": "#/definitions/TextType"},
157
- "Date": {"$ref": "#/definitions/DateType"},
158
- "CopyrightNotices": {"$ref": "#/definitions/TextType"}
159
- }
160
- },
161
- "Q1PostcodeZoneType": {
162
- "type": "object",
163
- "required": ["Postcode"],
164
- "properties": {
165
- "Postcode": {"$ref": "#/definitions/TextType"}
166
- }
167
- },
168
- "NumericType": {
169
- "type": "object",
170
- "properties": {
171
- "Value": {"type": "number"}
172
- }
173
- },
174
- "AddressLineType": {
175
- "type": "object",
176
- "properties": {
177
- "IndexNumeric": {
178
- "type": "array",
179
- "items": {"$ref": "#/definitions/NumericType"},
180
- "minItems": 0
181
- },
182
- "Line": {
183
- "type": "array",
184
- "items": {"$ref": "#/definitions/TextType"},
185
- "minItems": 0
186
- }
187
- }
188
- },
189
- "Q1AddressType": {
190
- "type": "object",
191
- "required": ["AddressLine"],
192
- "properties": {
193
- "PostcodeZone": {"$ref": "#/definitions/Q1PostcodeZoneType"},
194
- "AddressLine": {"$ref": "#/definitions/AddressLineType"}
195
- }
196
- },
197
- "DocumentType": {
198
- "type": "object",
199
- "required": ["Document"],
200
- "properties": {
201
- "Document": {"$ref": "#/definitions/TextType"},
202
- "StartDate": {
203
- "type": "string",
204
- "format": "date"
205
- },
206
- "EndDate": {
207
- "type": "string",
208
- "format": "date"
209
- }
210
- }
211
- },
212
- "ServientLandDevelopmentType": {
213
- "type": "object",
214
- "required": [
215
- "Height",
216
- "CoversAllOrPartOfExtent"
217
- ],
218
- "properties": {
219
- "Height": {"$ref": "#/definitions/TextType"},
220
- "CoversAllOrPartOfExtent": {"$ref": "#/definitions/TextType"}
221
- }
222
- },
223
- "OtherDataType": {
224
- "type": "object",
225
- "required": [
226
- "DataLabel",
227
- "Data"
228
- ],
229
- "properties": {
230
- "DataLabel": {"$ref": "#/definitions/TextType"},
231
- "Data": {"$ref": "#/definitions/TextType"}
232
- }
233
- },
234
- "LocalLandChargeContent": {
235
- "type": "object",
236
- "required": [
237
- "HMLRReference",
238
- "RegistrationDate",
239
- "Category",
240
- "Location",
241
- "LocationDominantBuilding"
242
- ],
243
- "properties": {
244
- "HMLRReference": {"$ref": "#/definitions/TextType"},
245
- "OriginatingAuthority": {"$ref": "#/definitions/TextType"},
246
- "AuthorityReference": {"$ref": "#/definitions/TextType"},
247
- "CreationDate": {"$ref": "#/definitions/DateType"},
248
- "RegistrationDate": {"$ref": "#/definitions/DateType"},
249
- "Category": {"$ref": "#/definitions/TextType"},
250
- "ChargeSubCategory": {"$ref": "#/definitions/TextType"},
251
- "Law": {"$ref": "#/definitions/TextType"},
252
- "LegalDocument": {"$ref": "#/definitions/TextType"},
253
- "Location": {"$ref": "#/definitions/Q1AddressType"},
254
- "LocationDominantBuilding": {"$ref": "#/definitions/Q1AddressType"},
255
- "Description": {"$ref": "#/definitions/TextType"},
256
- "SourceOfInformation": {"$ref": "#/definitions/TextType"},
257
- "AvailableDocument": {
258
- "type": "array",
259
- "items": {"$ref": "#/definitions/DocumentType"},
260
- "minItems": 0
261
- },
262
- "InterestInLand": {"$ref": "#/definitions/TextType"},
263
- "ApplicantName": {"$ref": "#/definitions/TextType"},
264
- "ApplicantAddress": {"$ref": "#/definitions/Q1AddressType"},
265
- "ServientLandDevelopment": {"$ref": "#/definitions/ServientLandDevelopmentType"},
266
- "Amount": {"$ref": "#/definitions/TextType"},
267
- "InterestRate": {"$ref": "#/definitions/TextType"},
268
- "LandSold": {"$ref": "#/definitions/TextType"},
269
- "WorksDone": {"$ref": "#/definitions/TextType"},
270
- "AdvancePayment": {"$ref": "#/definitions/TextType"},
271
- "TotalCompensation": {"$ref": "#/definitions/TextType"},
272
- "AgreedOrEstimated": {"$ref": "#/definitions/TextType"},
273
- "Adjoining": {"type": "boolean"},
274
- "OtherData": {
275
- "type": "array",
276
- "items": {"$ref": "#/definitions/OtherDataType"},
277
- "minItems": 0
278
- },
279
- "ChargeExtent": {"$ref": "#/definitions/CData"}
280
- }
281
- },
282
- "LocalLandChargeType": {
283
- "type": "object",
284
- "properties": {
285
- "LocalLandCharge": {
286
- "type": "array",
287
- "items": {"$ref": "#/definitions/LocalLandChargeContent"},
288
- "minItems": 0
289
- }
290
- }
291
- },
292
- "Q1ResultsType": {
293
- "type": "object",
294
- "required": [
295
- "ExternalReference",
296
- "ActualPrice",
297
- "SearchDateTime",
298
- "SearchDescription",
299
- "NumberSearchesFound",
300
- "SearchReference"
301
- ],
302
- "properties": {
303
- "ExternalReference": {"$ref": "#/definitions/TextType"},
304
- "ActualPrice": {"$ref": "#/definitions/Q1ActualPriceType"},
305
- "SearchArea": {"$ref": "#/definitions/CData"},
306
- "Attachment": {"$ref": "#/definitions/Q1AttachmentType"},
307
- "SearchDateTime": {"$ref": "#/definitions/DateTimeType"},
308
- "SearchDescription": {"type": "string"},
309
- "NumberSearchesFound": {"type": "integer"},
310
- "Charges": {"$ref": "#/definitions/LocalLandChargeType"},
311
- "ChargesAlternateFormat": {"$ref": "#/definitions/CData"},
312
- "SearchReference": {"$ref": "#/definitions/TextType"}
313
- }
314
- },
315
- "Q1GatewayResponseType": {
316
- "type": "object",
317
- "required": ["TypeCode"],
318
- "properties": {
319
- "TypeCode": {"$ref": "#/definitions/ProductResponseCodeType"},
320
- "Acknowledgement": {"$ref": "#/definitions/Q1AcknowledgementType"},
321
- "Rejection": {"$ref": "#/definitions/Q1RejectionType"},
322
- "Results": {"$ref": "#/definitions/Q1ResultsType"}
323
- }
324
- },
325
- "LLCSearchResponseV2_0Type": {
326
- "type": "object",
327
- "required": ["GatewayResponse"],
328
- "properties": {
329
- "GatewayResponse": {"$ref": "#/definitions/Q1GatewayResponseType"}
330
- }
331
- }
332
- },
333
- "anyOf": [
334
- {
335
- "type": "object",
336
- "properties": {
337
- "LLCSearchResponse": {"$ref": "#/definitions/LLCSearchResponseV2_0Type"}
338
- }
339
- }
340
- ]
341
- }
@@ -1,9 +0,0 @@
1
- const { dereference } = require("@jdw/jst");
2
- const fs = require("fs");
3
-
4
- const originalSchema = require("./LLCSearchResponseV2_0.xsd.json");
5
-
6
- const derefed = dereference(originalSchema);
7
-
8
- fs.writeFileSync("hmlrLLC1.json", JSON.stringify(derefed, null, 2));
9
- console.log("Derefed schema written to hmlrLLC1.json");