@pdtf/schemas 3.4.0-1 → 3.4.0-10
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 +2 -1
- package/package.json +1 -1
- package/src/examples/v3/exampleTransaction.json +2 -2
- package/src/schemas/v3/combined.json +274 -182
- package/src/schemas/v3/overlays/baspi4.json +1 -6
- package/src/schemas/v3/overlays/baspi5.json +3 -7
- package/src/schemas/v3/overlays/nts.json +5 -4
- package/src/schemas/v3/overlays/nts2.json +196 -48
- package/src/schemas/v3/overlays/ntsl.json +4 -2
- package/src/schemas/v3/overlays/ntsl2.json +189 -10
- package/src/schemas/v3/overlays/ta10.json +124 -134
- package/src/schemas/v3/overlays/ta6.json +2 -1
- package/src/schemas/v3/pdtf-transaction.json +6209 -1701
- package/src/schemas/v3/skeleton.json +8 -1
- package/src/tests/v3/transactionSchema.test.js +36 -0
|
@@ -5598,12 +5598,7 @@
|
|
|
5598
5598
|
"floodRisk": {
|
|
5599
5599
|
"required": [
|
|
5600
5600
|
"riskIndicator"
|
|
5601
|
-
]
|
|
5602
|
-
"properties": {
|
|
5603
|
-
"riskIndicator": {
|
|
5604
|
-
"title": "To your knowledge,, is the property at risk of flooding of any type?"
|
|
5605
|
-
}
|
|
5606
|
-
}
|
|
5601
|
+
]
|
|
5607
5602
|
},
|
|
5608
5603
|
"historicalFlooding": {
|
|
5609
5604
|
"baspi4Ref": "A11.1.2",
|
|
@@ -215,7 +215,8 @@
|
|
|
215
215
|
"propertyType": {
|
|
216
216
|
"enum": [
|
|
217
217
|
"House",
|
|
218
|
-
"Bungalow"
|
|
218
|
+
"Bungalow",
|
|
219
|
+
"Park home"
|
|
219
220
|
]
|
|
220
221
|
}
|
|
221
222
|
}
|
|
@@ -5749,12 +5750,7 @@
|
|
|
5749
5750
|
"floodRisk": {
|
|
5750
5751
|
"required": [
|
|
5751
5752
|
"riskIndicator"
|
|
5752
|
-
]
|
|
5753
|
-
"properties": {
|
|
5754
|
-
"riskIndicator": {
|
|
5755
|
-
"title": "To your knowledge, is the property at risk of flooding of any type?"
|
|
5756
|
-
}
|
|
5757
|
-
}
|
|
5753
|
+
]
|
|
5758
5754
|
},
|
|
5759
5755
|
"historicalFlooding": {
|
|
5760
5756
|
"baspi5Ref": "A11.1.2",
|
|
@@ -75,7 +75,8 @@
|
|
|
75
75
|
"propertyType": {
|
|
76
76
|
"enum": [
|
|
77
77
|
"House",
|
|
78
|
-
"Bungalow"
|
|
78
|
+
"Bungalow",
|
|
79
|
+
"Park home"
|
|
79
80
|
]
|
|
80
81
|
}
|
|
81
82
|
}
|
|
@@ -1893,7 +1894,8 @@
|
|
|
1893
1894
|
]
|
|
1894
1895
|
},
|
|
1895
1896
|
"summary": {
|
|
1896
|
-
"ntsRef": "C3.1.1.2"
|
|
1897
|
+
"ntsRef": "C3.1.1.2",
|
|
1898
|
+
"title": "Please provide details"
|
|
1897
1899
|
}
|
|
1898
1900
|
},
|
|
1899
1901
|
"required": [
|
|
@@ -1906,8 +1908,7 @@
|
|
|
1906
1908
|
],
|
|
1907
1909
|
"properties": {
|
|
1908
1910
|
"riskIndicator": {
|
|
1909
|
-
"ntsRef": "C3.1.1.1"
|
|
1910
|
-
"title": "To your knowledge, is the property at risk of flooding of any type?"
|
|
1911
|
+
"ntsRef": "C3.1.1.1"
|
|
1911
1912
|
}
|
|
1912
1913
|
}
|
|
1913
1914
|
},
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"listingAndConservation",
|
|
23
23
|
"rightsAndInformalArrangements",
|
|
24
24
|
"environmentalIssues",
|
|
25
|
-
"notices"
|
|
25
|
+
"notices",
|
|
26
|
+
"specialistIssues"
|
|
26
27
|
],
|
|
27
28
|
"properties": {
|
|
28
29
|
"priceInformation": {
|
|
@@ -75,7 +76,8 @@
|
|
|
75
76
|
"propertyType": {
|
|
76
77
|
"enum": [
|
|
77
78
|
"House",
|
|
78
|
-
"Bungalow"
|
|
79
|
+
"Bungalow",
|
|
80
|
+
"Park home"
|
|
79
81
|
]
|
|
80
82
|
}
|
|
81
83
|
}
|
|
@@ -287,7 +289,7 @@
|
|
|
287
289
|
"properties": {
|
|
288
290
|
"yesNo": {
|
|
289
291
|
"enum": [
|
|
290
|
-
"
|
|
292
|
+
"No"
|
|
291
293
|
]
|
|
292
294
|
}
|
|
293
295
|
}
|
|
@@ -296,7 +298,7 @@
|
|
|
296
298
|
"properties": {
|
|
297
299
|
"yesNo": {
|
|
298
300
|
"enum": [
|
|
299
|
-
"
|
|
301
|
+
"Yes"
|
|
300
302
|
]
|
|
301
303
|
},
|
|
302
304
|
"details": {
|
|
@@ -452,39 +454,14 @@
|
|
|
452
454
|
"nts2Ref": "A1.5.6.1",
|
|
453
455
|
"required": [
|
|
454
456
|
"nameOrOrganisation",
|
|
455
|
-
"address",
|
|
456
457
|
"emailAddress"
|
|
457
458
|
],
|
|
458
459
|
"properties": {
|
|
459
460
|
"nameOrOrganisation": {
|
|
460
461
|
"nts2Ref": "A1.5.6.1.1"
|
|
461
462
|
},
|
|
462
|
-
"address": {
|
|
463
|
-
"nts2Ref": "A1.5.6.1.2",
|
|
464
|
-
"required": [
|
|
465
|
-
"line1",
|
|
466
|
-
"postcode"
|
|
467
|
-
],
|
|
468
|
-
"properties": {
|
|
469
|
-
"line1": {
|
|
470
|
-
"nts2Ref": "A1.5.6.1.2.1"
|
|
471
|
-
},
|
|
472
|
-
"line2": {
|
|
473
|
-
"nts2Ref": "A1.5.6.1.2.2"
|
|
474
|
-
},
|
|
475
|
-
"line3": {
|
|
476
|
-
"nts2Ref": "A1.5.6.1.2.3"
|
|
477
|
-
},
|
|
478
|
-
"town": {
|
|
479
|
-
"nts2Ref": "A1.5.6.1.2.4"
|
|
480
|
-
},
|
|
481
|
-
"postcode": {
|
|
482
|
-
"nts2Ref": "A1.5.6.1.2.5"
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
},
|
|
486
463
|
"emailAddress": {
|
|
487
|
-
"nts2Ref": "A1.5.6.1.
|
|
464
|
+
"nts2Ref": "A1.5.6.1.2"
|
|
488
465
|
}
|
|
489
466
|
}
|
|
490
467
|
}
|
|
@@ -700,19 +677,13 @@
|
|
|
700
677
|
"nts2Ref": "A3.6.1"
|
|
701
678
|
}
|
|
702
679
|
}
|
|
703
|
-
},
|
|
704
|
-
"buildingsInsurance": {
|
|
705
|
-
"properties": {
|
|
706
|
-
"premiumIncludedInServiceCharge": {
|
|
707
|
-
"required": [
|
|
708
|
-
"yesNo"
|
|
709
|
-
]
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
680
|
}
|
|
713
681
|
}
|
|
714
682
|
}
|
|
715
|
-
}
|
|
683
|
+
},
|
|
684
|
+
"required": [
|
|
685
|
+
"leaseholdInformation"
|
|
686
|
+
]
|
|
716
687
|
},
|
|
717
688
|
{
|
|
718
689
|
"properties": {
|
|
@@ -1008,7 +979,8 @@
|
|
|
1008
979
|
"required": [
|
|
1009
980
|
"isStandardForm",
|
|
1010
981
|
"buildingSafety",
|
|
1011
|
-
"loft"
|
|
982
|
+
"loft",
|
|
983
|
+
"sprayFoamInsulation"
|
|
1012
984
|
],
|
|
1013
985
|
"properties": {
|
|
1014
986
|
"isStandardForm": {
|
|
@@ -1150,7 +1122,7 @@
|
|
|
1150
1122
|
}
|
|
1151
1123
|
},
|
|
1152
1124
|
"required": [
|
|
1153
|
-
"
|
|
1125
|
+
"details",
|
|
1154
1126
|
"loftBoarded",
|
|
1155
1127
|
"loftInsulated"
|
|
1156
1128
|
]
|
|
@@ -1165,6 +1137,47 @@
|
|
|
1165
1137
|
}
|
|
1166
1138
|
}
|
|
1167
1139
|
},
|
|
1140
|
+
"sprayFoamInsulation": {
|
|
1141
|
+
"nts2Ref": "A4.2",
|
|
1142
|
+
"discriminator": {
|
|
1143
|
+
"propertyName": "hasSprayFoamInstalled"
|
|
1144
|
+
},
|
|
1145
|
+
"oneOf": [
|
|
1146
|
+
{
|
|
1147
|
+
"properties": {
|
|
1148
|
+
"hasSprayFoamInstalled": {
|
|
1149
|
+
"enum": [
|
|
1150
|
+
"No"
|
|
1151
|
+
]
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"properties": {
|
|
1157
|
+
"hasSprayFoamInstalled": {
|
|
1158
|
+
"enum": [
|
|
1159
|
+
"Yes"
|
|
1160
|
+
]
|
|
1161
|
+
},
|
|
1162
|
+
"details": {
|
|
1163
|
+
"nts2Ref": "A4.2.2",
|
|
1164
|
+
"title": "Please give details"
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
"required": [
|
|
1168
|
+
"details"
|
|
1169
|
+
]
|
|
1170
|
+
}
|
|
1171
|
+
],
|
|
1172
|
+
"required": [
|
|
1173
|
+
"hasSprayFoamInstalled"
|
|
1174
|
+
],
|
|
1175
|
+
"properties": {
|
|
1176
|
+
"hasSprayFoamInstalled": {
|
|
1177
|
+
"nts2Ref": "A4.2.1"
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1168
1181
|
"accessibilityAndAdaptations": {
|
|
1169
1182
|
"nts2Ref": "C5"
|
|
1170
1183
|
}
|
|
@@ -1336,9 +1349,97 @@
|
|
|
1336
1349
|
"specialistIssues": {
|
|
1337
1350
|
"nts2Ref": "A5",
|
|
1338
1351
|
"required": [
|
|
1339
|
-
"
|
|
1352
|
+
"dryRotEtcTreatment",
|
|
1353
|
+
"containsAsbestos",
|
|
1354
|
+
"japaneseKnotweed",
|
|
1355
|
+
"subsidenceOrStructuralFault",
|
|
1356
|
+
"ongoingHealthOrSafetyIssue"
|
|
1340
1357
|
],
|
|
1341
1358
|
"properties": {
|
|
1359
|
+
"dryRotEtcTreatment": {
|
|
1360
|
+
"nts2Ref": "A5.1",
|
|
1361
|
+
"discriminator": {
|
|
1362
|
+
"propertyName": "yesNo"
|
|
1363
|
+
},
|
|
1364
|
+
"oneOf": [
|
|
1365
|
+
{
|
|
1366
|
+
"properties": {
|
|
1367
|
+
"yesNo": {
|
|
1368
|
+
"enum": [
|
|
1369
|
+
"No"
|
|
1370
|
+
]
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"properties": {
|
|
1376
|
+
"yesNo": {
|
|
1377
|
+
"enum": [
|
|
1378
|
+
"Yes"
|
|
1379
|
+
]
|
|
1380
|
+
},
|
|
1381
|
+
"details": {
|
|
1382
|
+
"nts2Ref": "A5.1.2"
|
|
1383
|
+
},
|
|
1384
|
+
"attachments": {
|
|
1385
|
+
"nts2Ref": "A5.1.3"
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
"required": [
|
|
1389
|
+
"details"
|
|
1390
|
+
]
|
|
1391
|
+
}
|
|
1392
|
+
],
|
|
1393
|
+
"required": [
|
|
1394
|
+
"yesNo"
|
|
1395
|
+
],
|
|
1396
|
+
"properties": {
|
|
1397
|
+
"yesNo": {
|
|
1398
|
+
"nts2Ref": "A5.1.1"
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
"containsAsbestos": {
|
|
1403
|
+
"nts2Ref": "A5.2",
|
|
1404
|
+
"discriminator": {
|
|
1405
|
+
"propertyName": "yesNo"
|
|
1406
|
+
},
|
|
1407
|
+
"oneOf": [
|
|
1408
|
+
{
|
|
1409
|
+
"properties": {
|
|
1410
|
+
"yesNo": {
|
|
1411
|
+
"enum": [
|
|
1412
|
+
"No"
|
|
1413
|
+
]
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"properties": {
|
|
1419
|
+
"yesNo": {
|
|
1420
|
+
"enum": [
|
|
1421
|
+
"Yes"
|
|
1422
|
+
]
|
|
1423
|
+
},
|
|
1424
|
+
"details": {
|
|
1425
|
+
"nts2Ref": "A5.2.2",
|
|
1426
|
+
"title": "Details"
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
"required": [
|
|
1430
|
+
"details"
|
|
1431
|
+
]
|
|
1432
|
+
}
|
|
1433
|
+
],
|
|
1434
|
+
"required": [
|
|
1435
|
+
"yesNo"
|
|
1436
|
+
],
|
|
1437
|
+
"properties": {
|
|
1438
|
+
"yesNo": {
|
|
1439
|
+
"nts2Ref": "A5.2.1"
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1342
1443
|
"japaneseKnotweed": {
|
|
1343
1444
|
"nts2Ref": "A5.3",
|
|
1344
1445
|
"discriminator": {
|
|
@@ -1361,8 +1462,14 @@
|
|
|
1361
1462
|
"enum": [
|
|
1362
1463
|
"Yes"
|
|
1363
1464
|
]
|
|
1465
|
+
},
|
|
1466
|
+
"managementPlanInPlace": {
|
|
1467
|
+
"nts2Ref": "A5.3.2"
|
|
1364
1468
|
}
|
|
1365
|
-
}
|
|
1469
|
+
},
|
|
1470
|
+
"required": [
|
|
1471
|
+
"managementPlanInPlace"
|
|
1472
|
+
]
|
|
1366
1473
|
}
|
|
1367
1474
|
],
|
|
1368
1475
|
"required": [
|
|
@@ -1413,6 +1520,46 @@
|
|
|
1413
1520
|
"nts2Ref": "A5.4.1"
|
|
1414
1521
|
}
|
|
1415
1522
|
}
|
|
1523
|
+
},
|
|
1524
|
+
"ongoingHealthOrSafetyIssue": {
|
|
1525
|
+
"nts2Ref": "A5.5",
|
|
1526
|
+
"discriminator": {
|
|
1527
|
+
"propertyName": "yesNo"
|
|
1528
|
+
},
|
|
1529
|
+
"oneOf": [
|
|
1530
|
+
{
|
|
1531
|
+
"properties": {
|
|
1532
|
+
"yesNo": {
|
|
1533
|
+
"enum": [
|
|
1534
|
+
"No"
|
|
1535
|
+
]
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
"properties": {
|
|
1541
|
+
"yesNo": {
|
|
1542
|
+
"enum": [
|
|
1543
|
+
"Yes"
|
|
1544
|
+
]
|
|
1545
|
+
},
|
|
1546
|
+
"details": {
|
|
1547
|
+
"nts2Ref": "A5.5.2"
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
"required": [
|
|
1551
|
+
"details"
|
|
1552
|
+
]
|
|
1553
|
+
}
|
|
1554
|
+
],
|
|
1555
|
+
"required": [
|
|
1556
|
+
"yesNo"
|
|
1557
|
+
],
|
|
1558
|
+
"properties": {
|
|
1559
|
+
"yesNo": {
|
|
1560
|
+
"nts2Ref": "A5.5.1"
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1416
1563
|
}
|
|
1417
1564
|
}
|
|
1418
1565
|
},
|
|
@@ -2257,7 +2404,8 @@
|
|
|
2257
2404
|
]
|
|
2258
2405
|
},
|
|
2259
2406
|
"summary": {
|
|
2260
|
-
"nts2Ref": "C3.1.1.2"
|
|
2407
|
+
"nts2Ref": "C3.1.1.2",
|
|
2408
|
+
"title": "Please provide details"
|
|
2261
2409
|
}
|
|
2262
2410
|
},
|
|
2263
2411
|
"required": [
|
|
@@ -2319,7 +2467,7 @@
|
|
|
2319
2467
|
}
|
|
2320
2468
|
},
|
|
2321
2469
|
"floodDefences": {
|
|
2322
|
-
"nts2Ref": "C3.1.1.
|
|
2470
|
+
"nts2Ref": "C3.1.1.3",
|
|
2323
2471
|
"discriminator": {
|
|
2324
2472
|
"propertyName": "hasFloodDefences"
|
|
2325
2473
|
},
|
|
@@ -2341,7 +2489,7 @@
|
|
|
2341
2489
|
]
|
|
2342
2490
|
},
|
|
2343
2491
|
"details": {
|
|
2344
|
-
"nts2Ref": "C3.1.1.
|
|
2492
|
+
"nts2Ref": "C3.1.1.3.2"
|
|
2345
2493
|
}
|
|
2346
2494
|
},
|
|
2347
2495
|
"required": [
|
|
@@ -2354,7 +2502,7 @@
|
|
|
2354
2502
|
],
|
|
2355
2503
|
"properties": {
|
|
2356
2504
|
"hasFloodDefences": {
|
|
2357
|
-
"nts2Ref": "C3.1.1.
|
|
2505
|
+
"nts2Ref": "C3.1.1.3.1"
|
|
2358
2506
|
}
|
|
2359
2507
|
}
|
|
2360
2508
|
}
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"propertyType": {
|
|
78
78
|
"enum": [
|
|
79
79
|
"House",
|
|
80
|
-
"Bungalow"
|
|
80
|
+
"Bungalow",
|
|
81
|
+
"Park home"
|
|
81
82
|
]
|
|
82
83
|
}
|
|
83
84
|
}
|
|
@@ -1553,7 +1554,8 @@
|
|
|
1553
1554
|
]
|
|
1554
1555
|
},
|
|
1555
1556
|
"summary": {
|
|
1556
|
-
"ntslRef": "C3.1.1.2"
|
|
1557
|
+
"ntslRef": "C3.1.1.2",
|
|
1558
|
+
"title": "Please provide details"
|
|
1557
1559
|
}
|
|
1558
1560
|
},
|
|
1559
1561
|
"required": [
|