@pdtf/schemas 3.4.0-1 → 3.4.0-2

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
@@ -41,8 +41,9 @@ const overlaysMap = {
41
41
  fme1ed2: require("./src/schemas/v3/overlays/fme1.json"),
42
42
  llc1v2: require("./src/schemas/v3/overlays/llc1.json"),
43
43
  nts2023: require("./src/schemas/v3/overlays/nts.json"),
44
- sef24: require("./src/schemas/v3/overlays/nts-sef.json"),
45
44
  ntsl2023: require("./src/schemas/v3/overlays/ntsl.json"),
45
+ nts2025: require("./src/schemas/v3/overlays/nts2.json"),
46
+ ntsl2025: require("./src/schemas/v3/overlays/ntsl2.json"),
46
47
  con29R2019: require("./src/schemas/v3/overlays/con29R.json"),
47
48
  con29DW: require("./src/schemas/v3/overlays/con29DW.json"),
48
49
  rdsV333: require("./src/schemas/v3/overlays/rds.json"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "3.4.0-1",
3
+ "version": "3.4.0-2",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -9766,9 +9766,19 @@
9766
9766
  "sprayFoamInsulation"
9767
9767
  ],
9768
9768
  "ntsRequired": ["isStandardForm", "buildingSafety"],
9769
- "nts2Required": ["isStandardForm", "buildingSafety", "loft"],
9769
+ "nts2Required": [
9770
+ "isStandardForm",
9771
+ "buildingSafety",
9772
+ "loft",
9773
+ "sprayFoamInsulation"
9774
+ ],
9770
9775
  "ntslRequired": ["isStandardForm", "buildingSafety"],
9771
- "ntsl2Required": ["isStandardForm", "buildingSafety", "loft"],
9776
+ "ntsl2Required": [
9777
+ "isStandardForm",
9778
+ "buildingSafety",
9779
+ "loft",
9780
+ "sprayFoamInsulation"
9781
+ ],
9772
9782
  "properties": {
9773
9783
  "isStandardForm": {
9774
9784
  "baspi4Ref": "A1.8.1",
@@ -10080,10 +10090,14 @@
10080
10090
  "sprayFoamInsulation": {
10081
10091
  "baspi4Ref": "A1.8.4",
10082
10092
  "baspi5Ref": "A1.8.4",
10093
+ "nts2Ref": "A4.2",
10094
+ "ntsl2Ref": "A4.2",
10083
10095
  "title": "Has spray foam insulation been installed at the property?",
10084
10096
  "type": "object",
10085
10097
  "properties": {
10086
10098
  "hasSprayFoamInstalled": {
10099
+ "nts2Ref": "A4.2.1",
10100
+ "ntsl2Ref": "A4.2.1",
10087
10101
  "baspi4Ref": "A1.8.4.1",
10088
10102
  "baspi5Ref": "A1.8.4.1",
10089
10103
  "type": "string",
@@ -10093,6 +10107,8 @@
10093
10107
  },
10094
10108
  "baspi4Required": ["hasSprayFoamInstalled"],
10095
10109
  "baspi5Required": ["hasSprayFoamInstalled"],
10110
+ "nts2Required": ["hasSprayFoamInstalled"],
10111
+ "ntsl2Required": ["hasSprayFoamInstalled"],
10096
10112
  "discriminator": {
10097
10113
  "propertyName": "hasSprayFoamInstalled"
10098
10114
  },
@@ -10112,7 +10128,11 @@
10112
10128
  "details": {
10113
10129
  "baspi4Ref": "A1.8.4.2",
10114
10130
  "baspi5Ref": "A1.8.4.2",
10131
+ "nts2Ref": "A4.2.2",
10132
+ "ntsl2Ref": "A4.2.2",
10115
10133
  "title": "Please give details together with certification from BBA or KIWA and the installation warranty for the work carried out",
10134
+ "nts2Title": "Please give details",
10135
+ "ntsl2Title": "Please give details",
10116
10136
  "type": "string",
10117
10137
  "minLength": 1
10118
10138
  },
@@ -10125,7 +10145,9 @@
10125
10145
  }
10126
10146
  },
10127
10147
  "baspi4Required": ["details", "attachments"],
10128
- "baspi5Required": ["details", "attachments"]
10148
+ "baspi5Required": ["details", "attachments"],
10149
+ "nts2Required": ["details"],
10150
+ "ntsl2Required": ["details"]
10129
10151
  }
10130
10152
  ]
10131
10153
  },
@@ -12882,12 +12904,26 @@
12882
12904
  "ongoingHealthOrSafetyIssue"
12883
12905
  ],
12884
12906
  "ta6Required": ["japaneseKnotweed"],
12885
- "nts2Required": ["japaneseKnotweed"],
12886
- "ntsl2Required": ["japaneseKnotweed"],
12907
+ "nts2Required": [
12908
+ "dryRotEtcTreatment",
12909
+ "containsAsbestos",
12910
+ "japaneseKnotweed",
12911
+ "subsidenceOrStructuralFault",
12912
+ "ongoingHealthOrSafetyIssue"
12913
+ ],
12914
+ "ntsl2Required": [
12915
+ "dryRotEtcTreatment",
12916
+ "containsAsbestos",
12917
+ "japaneseKnotweed",
12918
+ "subsidenceOrStructuralFault",
12919
+ "ongoingHealthOrSafetyIssue"
12920
+ ],
12887
12921
  "properties": {
12888
12922
  "dryRotEtcTreatment": {
12889
12923
  "baspi4Ref": "A5.1",
12890
12924
  "baspi5Ref": "A5.1",
12925
+ "nts2Ref": "A5.1",
12926
+ "ntsl2Ref": "A5.1",
12891
12927
  "rdsRef": "Property/Flags,BuildingSections/EnvironmentalIssues",
12892
12928
  "piqRef": "A5.1",
12893
12929
  "title": "To your knowledge, has there been any preventative work for, or treatment of dry rot, wet rot or damp carried out at the property?",
@@ -12896,6 +12932,8 @@
12896
12932
  "yesNo": {
12897
12933
  "baspi4Ref": "A5.1.1",
12898
12934
  "baspi5Ref": "A5.1.1",
12935
+ "nts2Ref": "A5.1.1",
12936
+ "ntsl2Ref": "A5.1.1",
12899
12937
  "piqRef": "A5.1.1",
12900
12938
  "type": "string",
12901
12939
  "title": "",
@@ -12904,6 +12942,8 @@
12904
12942
  },
12905
12943
  "baspi4Required": ["yesNo"],
12906
12944
  "baspi5Required": ["yesNo"],
12945
+ "nts2Required": ["yesNo"],
12946
+ "ntsl2Required": ["yesNo"],
12907
12947
  "discriminator": {
12908
12948
  "propertyName": "yesNo"
12909
12949
  },
@@ -12923,6 +12963,8 @@
12923
12963
  "details": {
12924
12964
  "baspi4Ref": "A5.1.2",
12925
12965
  "baspi5Ref": "A5.1.2",
12966
+ "nts2Ref": "A5.1.2",
12967
+ "ntsl2Ref": "A5.1.2",
12926
12968
  "title": "Details",
12927
12969
  "type": "string",
12928
12970
  "minLength": 1
@@ -12930,19 +12972,25 @@
12930
12972
  "attachments": {
12931
12973
  "baspi4Ref": "A5.1.3",
12932
12974
  "baspi5Ref": "A5.1.3",
12975
+ "nts2Ref": "A5.1.3",
12976
+ "ntsl2Ref": "A5.1.3",
12933
12977
  "title": "Attachments",
12934
12978
  "type": "string",
12935
12979
  "enum": ["Attached", "To follow"]
12936
12980
  }
12937
12981
  },
12938
12982
  "baspi4Required": ["details", "attachments"],
12939
- "baspi5Required": ["details", "attachments"]
12983
+ "baspi5Required": ["details", "attachments"],
12984
+ "nts2Required": ["details", "attachments"],
12985
+ "ntsl2Required": ["details", "attachments"]
12940
12986
  }
12941
12987
  ]
12942
12988
  },
12943
12989
  "containsAsbestos": {
12944
12990
  "baspi4Ref": "A5.2",
12945
12991
  "baspi5Ref": "A5.2",
12992
+ "nts2Ref": "A5.2",
12993
+ "ntsl2Ref": "A5.2",
12946
12994
  "rdsRef": "Property/Flags,BuildingSections/EnvironmentalIssues",
12947
12995
  "title": "To your knowledge, does any part of your property contain asbestos?",
12948
12996
  "type": "object",
@@ -12950,6 +12998,8 @@
12950
12998
  "yesNo": {
12951
12999
  "baspi4Ref": "A5.2.1",
12952
13000
  "baspi5Ref": "A5.2.1",
13001
+ "nts2Ref": "A5.2.1",
13002
+ "ntsl2Ref": "A5.2.1",
12953
13003
  "type": "string",
12954
13004
  "title": "",
12955
13005
  "enum": ["Yes", "No"]
@@ -12957,6 +13007,8 @@
12957
13007
  },
12958
13008
  "baspi4Required": ["yesNo"],
12959
13009
  "baspi5Required": ["yesNo"],
13010
+ "nts2Required": ["yesNo"],
13011
+ "ntsl2Required": ["yesNo"],
12960
13012
  "discriminator": {
12961
13013
  "propertyName": "yesNo"
12962
13014
  },
@@ -12976,7 +13028,11 @@
12976
13028
  "details": {
12977
13029
  "baspi4Ref": "A5.2.2",
12978
13030
  "baspi5Ref": "A5.2.2",
13031
+ "nts2Ref": "A5.2.2",
13032
+ "ntsl2Ref": "A5.2.2",
12979
13033
  "title": "Please state whether there is a management plan in place and attach a copy",
13034
+ "nts2Title": "Details",
13035
+ "ntsl2Title": "Details",
12980
13036
  "type": "string",
12981
13037
  "minLength": 1
12982
13038
  },
@@ -12989,7 +13045,9 @@
12989
13045
  }
12990
13046
  },
12991
13047
  "baspi4Required": ["details", "attachments"],
12992
- "baspi5Required": ["details", "attachments"]
13048
+ "baspi5Required": ["details", "attachments"],
13049
+ "nts2Required": ["details"],
13050
+ "ntsl2Required": ["details"]
12993
13051
  }
12994
13052
  ]
12995
13053
  },
@@ -13131,6 +13189,8 @@
13131
13189
  "ongoingHealthOrSafetyIssue": {
13132
13190
  "baspi4Ref": "A5.5",
13133
13191
  "baspi5Ref": "A5.5",
13192
+ "nts2Ref": "A5.5",
13193
+ "ntsl2Ref": "A5.5",
13134
13194
  "rdsRef": "Property/Flags,BuildingSections/EnvironmentalIssues",
13135
13195
  "title": "Have you been notified by a relevant authority or qualified expert of an on-going health or safety issue with the property?",
13136
13196
  "type": "object",
@@ -13138,6 +13198,8 @@
13138
13198
  "yesNo": {
13139
13199
  "baspi4Ref": "A5.5.1",
13140
13200
  "baspi5Ref": "A5.5.1",
13201
+ "nts2Ref": "A5.5.1",
13202
+ "ntsl2Ref": "A5.5.1",
13141
13203
  "type": "string",
13142
13204
  "title": "",
13143
13205
  "enum": ["Yes", "No"]
@@ -13145,6 +13207,8 @@
13145
13207
  },
13146
13208
  "baspi4Required": ["yesNo"],
13147
13209
  "baspi5Required": ["yesNo"],
13210
+ "nts2Required": ["yesNo"],
13211
+ "ntsl2Required": ["yesNo"],
13148
13212
  "discriminator": {
13149
13213
  "propertyName": "yesNo"
13150
13214
  },
@@ -13164,6 +13228,8 @@
13164
13228
  "details": {
13165
13229
  "baspi4Ref": "A5.5.2",
13166
13230
  "baspi5Ref": "A5.5.2",
13231
+ "nts2Ref": "A5.5.2",
13232
+ "ntsl2Ref": "A5.5.2",
13167
13233
  "title": "Details",
13168
13234
  "type": "string",
13169
13235
  "minLength": 1
@@ -13177,7 +13243,9 @@
13177
13243
  }
13178
13244
  },
13179
13245
  "baspi4Required": ["details", "attachments"],
13180
- "baspi5Required": ["details", "attachments"]
13246
+ "baspi5Required": ["details", "attachments"],
13247
+ "nts2Required": ["details"],
13248
+ "ntsl2Required": ["details"]
13181
13249
  }
13182
13250
  ]
13183
13251
  }
@@ -1336,9 +1336,98 @@
1336
1336
  "specialistIssues": {
1337
1337
  "nts2Ref": "A5",
1338
1338
  "required": [
1339
- "japaneseKnotweed"
1339
+ "dryRotEtcTreatment",
1340
+ "containsAsbestos",
1341
+ "japaneseKnotweed",
1342
+ "subsidenceOrStructuralFault",
1343
+ "ongoingHealthOrSafetyIssue"
1340
1344
  ],
1341
1345
  "properties": {
1346
+ "dryRotEtcTreatment": {
1347
+ "nts2Ref": "A5.1",
1348
+ "discriminator": {
1349
+ "propertyName": "yesNo"
1350
+ },
1351
+ "oneOf": [
1352
+ {
1353
+ "properties": {
1354
+ "yesNo": {
1355
+ "enum": [
1356
+ "No"
1357
+ ]
1358
+ }
1359
+ }
1360
+ },
1361
+ {
1362
+ "properties": {
1363
+ "yesNo": {
1364
+ "enum": [
1365
+ "Yes"
1366
+ ]
1367
+ },
1368
+ "details": {
1369
+ "nts2Ref": "A5.1.2"
1370
+ },
1371
+ "attachments": {
1372
+ "nts2Ref": "A5.1.3"
1373
+ }
1374
+ },
1375
+ "required": [
1376
+ "details",
1377
+ "attachments"
1378
+ ]
1379
+ }
1380
+ ],
1381
+ "required": [
1382
+ "yesNo"
1383
+ ],
1384
+ "properties": {
1385
+ "yesNo": {
1386
+ "nts2Ref": "A5.1.1"
1387
+ }
1388
+ }
1389
+ },
1390
+ "containsAsbestos": {
1391
+ "nts2Ref": "A5.2",
1392
+ "discriminator": {
1393
+ "propertyName": "yesNo"
1394
+ },
1395
+ "oneOf": [
1396
+ {
1397
+ "properties": {
1398
+ "yesNo": {
1399
+ "enum": [
1400
+ "No"
1401
+ ]
1402
+ }
1403
+ }
1404
+ },
1405
+ {
1406
+ "properties": {
1407
+ "yesNo": {
1408
+ "enum": [
1409
+ "Yes"
1410
+ ]
1411
+ },
1412
+ "details": {
1413
+ "nts2Ref": "A5.2.2",
1414
+ "title": "Details"
1415
+ }
1416
+ },
1417
+ "required": [
1418
+ "details"
1419
+ ]
1420
+ }
1421
+ ],
1422
+ "required": [
1423
+ "yesNo"
1424
+ ],
1425
+ "properties": {
1426
+ "yesNo": {
1427
+ "nts2Ref": "A5.2.1"
1428
+ }
1429
+ }
1430
+ },
1342
1431
  "japaneseKnotweed": {
1343
1432
  "nts2Ref": "A5.3",
1344
1433
  "discriminator": {
@@ -1413,6 +1502,46 @@
1413
1502
  "nts2Ref": "A5.4.1"
1414
1503
  }
1415
1504
  }
1505
+ },
1506
+ "ongoingHealthOrSafetyIssue": {
1507
+ "nts2Ref": "A5.5",
1508
+ "discriminator": {
1509
+ "propertyName": "yesNo"
1510
+ },
1511
+ "oneOf": [
1512
+ {
1513
+ "properties": {
1514
+ "yesNo": {
1515
+ "enum": [
1516
+ "No"
1517
+ ]
1518
+ }
1519
+ }
1520
+ },
1521
+ {
1522
+ "properties": {
1523
+ "yesNo": {
1524
+ "enum": [
1525
+ "Yes"
1526
+ ]
1527
+ },
1528
+ "details": {
1529
+ "nts2Ref": "A5.5.2"
1530
+ }
1531
+ },
1532
+ "required": [
1533
+ "details"
1534
+ ]
1535
+ }
1536
+ ],
1537
+ "required": [
1538
+ "yesNo"
1539
+ ],
1540
+ "properties": {
1541
+ "yesNo": {
1542
+ "nts2Ref": "A5.5.1"
1543
+ }
1544
+ }
1416
1545
  }
1417
1546
  }
1418
1547
  },
@@ -816,9 +816,98 @@
816
816
  "specialistIssues": {
817
817
  "ntsl2Ref": "A5",
818
818
  "required": [
819
- "japaneseKnotweed"
819
+ "dryRotEtcTreatment",
820
+ "containsAsbestos",
821
+ "japaneseKnotweed",
822
+ "subsidenceOrStructuralFault",
823
+ "ongoingHealthOrSafetyIssue"
820
824
  ],
821
825
  "properties": {
826
+ "dryRotEtcTreatment": {
827
+ "ntsl2Ref": "A5.1",
828
+ "discriminator": {
829
+ "propertyName": "yesNo"
830
+ },
831
+ "oneOf": [
832
+ {
833
+ "properties": {
834
+ "yesNo": {
835
+ "enum": [
836
+ "No"
837
+ ]
838
+ }
839
+ }
840
+ },
841
+ {
842
+ "properties": {
843
+ "yesNo": {
844
+ "enum": [
845
+ "Yes"
846
+ ]
847
+ },
848
+ "details": {
849
+ "ntsl2Ref": "A5.1.2"
850
+ },
851
+ "attachments": {
852
+ "ntsl2Ref": "A5.1.3"
853
+ }
854
+ },
855
+ "required": [
856
+ "details",
857
+ "attachments"
858
+ ]
859
+ }
860
+ ],
861
+ "required": [
862
+ "yesNo"
863
+ ],
864
+ "properties": {
865
+ "yesNo": {
866
+ "ntsl2Ref": "A5.1.1"
867
+ }
868
+ }
869
+ },
870
+ "containsAsbestos": {
871
+ "ntsl2Ref": "A5.2",
872
+ "discriminator": {
873
+ "propertyName": "yesNo"
874
+ },
875
+ "oneOf": [
876
+ {
877
+ "properties": {
878
+ "yesNo": {
879
+ "enum": [
880
+ "No"
881
+ ]
882
+ }
883
+ }
884
+ },
885
+ {
886
+ "properties": {
887
+ "yesNo": {
888
+ "enum": [
889
+ "Yes"
890
+ ]
891
+ },
892
+ "details": {
893
+ "ntsl2Ref": "A5.2.2",
894
+ "title": "Details"
895
+ }
896
+ },
897
+ "required": [
898
+ "details"
899
+ ]
900
+ }
901
+ ],
902
+ "required": [
903
+ "yesNo"
904
+ ],
905
+ "properties": {
906
+ "yesNo": {
907
+ "ntsl2Ref": "A5.2.1"
908
+ }
909
+ }
910
+ },
822
911
  "japaneseKnotweed": {
823
912
  "ntsl2Ref": "A5.3",
824
913
  "discriminator": {
@@ -893,6 +982,46 @@
893
982
  "ntsl2Ref": "A5.4.1"
894
983
  }
895
984
  }
985
+ },
986
+ "ongoingHealthOrSafetyIssue": {
987
+ "ntsl2Ref": "A5.5",
988
+ "discriminator": {
989
+ "propertyName": "yesNo"
990
+ },
991
+ "oneOf": [
992
+ {
993
+ "properties": {
994
+ "yesNo": {
995
+ "enum": [
996
+ "No"
997
+ ]
998
+ }
999
+ }
1000
+ },
1001
+ {
1002
+ "properties": {
1003
+ "yesNo": {
1004
+ "enum": [
1005
+ "Yes"
1006
+ ]
1007
+ },
1008
+ "details": {
1009
+ "ntsl2Ref": "A5.5.2"
1010
+ }
1011
+ },
1012
+ "required": [
1013
+ "details"
1014
+ ]
1015
+ }
1016
+ ],
1017
+ "required": [
1018
+ "yesNo"
1019
+ ],
1020
+ "properties": {
1021
+ "yesNo": {
1022
+ "ntsl2Ref": "A5.5.1"
1023
+ }
1024
+ }
896
1025
  }
897
1026
  }
898
1027
  },