@pdtf/schemas 0.9.1 → 0.9.3

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": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -37,7 +37,8 @@
37
37
  "parkingArrangementsType": "Other",
38
38
  "otherParkingType": "Garage and double width driveway"
39
39
  },
40
- "electricVehicleChargingPoint": { "yesNo": "No" }
40
+ "electricVehicleChargingPoint": { "yesNo": "No" },
41
+ "controlledParking": { "yesNo": "No" }
41
42
  },
42
43
  "listingAndConservation": {
43
44
  "isListed": {
@@ -93,6 +94,9 @@
93
94
  "yesNo": "Yes",
94
95
  "details": "Bedroom and ensuite shower room extension 2005"
95
96
  },
97
+ "changeOfUse": {
98
+ "yesNo": "No"
99
+ },
96
100
  "windowReplacementsSince2002": {
97
101
  "buildingRegApproval": {
98
102
  "yesNo": "Not required"
@@ -187,7 +187,7 @@
187
187
  "lawSocietyRef": "TA6/1.5",
188
188
  "title": "Is there a flying freehold?",
189
189
  "$ref": "#/$defs/yesNoDetailIfYes",
190
- "description": "NOTE: a flying freehold is when part of the property overhangs a neighbour's property or an accessway - eg a terrace house where part of the upstairs is over an accessway which belongs to someone else."
190
+ "description": "NOTE: a flying freehold is when part of the property overhangs a neighbours property or an accessway - eg a terrace house where part of the upstairs is over an accessway which belongs to someone else."
191
191
  }
192
192
  }
193
193
  },
@@ -257,6 +257,7 @@
257
257
  "properties": {
258
258
  "hasSolarPanels": {
259
259
  "baspiRef": "B4.3",
260
+ "lawSocietyRef": "TA6/4.6",
260
261
  "RDSRef": "Property/Flags",
261
262
  "title": "Are there solar or photovoltaic panels installed at the property?",
262
263
  "type": "string",
@@ -339,18 +340,21 @@
339
340
  },
340
341
  "electricityMeterLocation": {
341
342
  "baspiRef": "B4.4",
343
+ "lawSocietyRef": "TA6/13.1b",
342
344
  "RDSRef": "Objects/class='meters|'&access=?&accessLocation=?",
343
345
  "title": "Please describe, or attach a photograph of, the location of any electricity meter",
344
346
  "type": "string"
345
347
  },
346
348
  "gasMeterLocation": {
347
349
  "baspiRef": "B4.5",
350
+ "lawSocietyRef": "TA6/13.2b",
348
351
  "RDSRef": "Objects/class='meters'&access=?&accessLocation=?",
349
352
  "title": "Please describe, or attach a photograph of, the location of any gas meter",
350
353
  "type": "string"
351
354
  },
352
355
  "stopcockAndWaterMeterLocation": {
353
356
  "baspiRef": "B4.6",
357
+ "lawSocietyRef": "TA6/13.3b",
354
358
  "RDSRef": "Objects/class='meters|valve|stopcock'&access=?&accessLocation=?",
355
359
  "title": "Please describe, or attach a photograph of, the location of any stopcock and water meter",
356
360
  "type": "string"
@@ -431,12 +435,14 @@
431
435
  },
432
436
  "guaranteesWarrantiesAndIndemnityInsurances": {
433
437
  "baspiRef": "B5",
438
+ "lawSocietyRef": "TA6/5",
434
439
  "title": "Guarantees, Warranties and Indemnity Insurances",
435
440
  "type": "object",
436
441
  "required": ["hasValidGuaranteesOrWarranties"],
437
442
  "properties": {
438
443
  "hasValidGuaranteesOrWarranties": {
439
444
  "baspiRef": "B5.1",
445
+ "lawSocietyRef": "TA6/5/1",
440
446
  "RDSRef": "Certificates",
441
447
  "title": "Are there any valid guarantees or warranties relating to this property?",
442
448
  "type": "string",
@@ -572,6 +578,7 @@
572
578
  },
573
579
  "occupiers": {
574
580
  "baspiRef": "B6",
581
+ "lawSocietyRef": "TA6/11",
575
582
  "title": "Occupiers",
576
583
  "type": "object",
577
584
  "required": ["sellerLivesAtProperty", "otherOver17sAtProperty"],
@@ -586,7 +593,7 @@
586
593
  "otherOver17sAtProperty": {
587
594
  "baspiRef": "B6.2",
588
595
  "RDSRef": "Participants",
589
- "lawSocietyRef": "TA6/11.1",
596
+ "lawSocietyRef": "TA6/11.2",
590
597
  "title": "Does anyone else, aged 17 or over, live at the property?",
591
598
  "type": "object",
592
599
  "properties": {
@@ -645,7 +652,7 @@
645
652
  "over17sTenantsOrLodgers": {
646
653
  "baspiRef": "B6.1",
647
654
  "RDSRef": "Property/Flags",
648
- "lawSocietyRef": "TA6/11.1",
655
+ "lawSocietyRef": "TA6/11.4",
649
656
  "title": "Are any of them tenants or lodgers?",
650
657
  "$ref": "#/$defs/yesNo"
651
658
  },
@@ -672,6 +679,7 @@
672
679
  },
673
680
  "completionAndMoving": {
674
681
  "baspiRef": "B7",
682
+ "lawSocietyRef": "TA6/14",
675
683
  "title": "Completion and Moving",
676
684
  "type": "object",
677
685
  "required": [
@@ -135,6 +135,7 @@
135
135
  },
136
136
  "ownership": {
137
137
  "baspiRef": "A1.3",
138
+ "lawSocietyRef": "TA7/1",
138
139
  "title": "Ownership",
139
140
  "type": "object",
140
141
  "required": ["ownershipType"],
@@ -428,7 +429,11 @@
428
429
  "lawSocietyRef": "TA6/9",
429
430
  "title": "Parking",
430
431
  "type": "object",
431
- "required": ["parkingArrangements", "electricVehicleChargingPoint"],
432
+ "required": [
433
+ "parkingArrangements",
434
+ "controlledParking",
435
+ "electricVehicleChargingPoint"
436
+ ],
432
437
  "properties": {
433
438
  "parkingArrangements": {
434
439
  "lawSocietyRef": "TA6/9.1",
@@ -451,11 +456,6 @@
451
456
  "None",
452
457
  "Other"
453
458
  ]
454
- },
455
- "controlledParking": {
456
- "lawSocietyRef": "TA6/9.2",
457
- "title": "Is the property in a controlled parking zone or within a local authority parking scheme?",
458
- "$ref": "#/$defs/yesNo"
459
459
  }
460
460
  },
461
461
  "dependencies": {
@@ -495,6 +495,11 @@
495
495
  }
496
496
  }
497
497
  },
498
+ "controlledParking": {
499
+ "lawSocietyRef": "TA6/9.2",
500
+ "title": "Is the property in a controlled parking zone or within a local authority parking scheme?",
501
+ "$ref": "#/$defs/yesNo"
502
+ },
498
503
  "electricVehicleChargingPoint": {
499
504
  "baspiRef": "A1.6.1",
500
505
  "title": "Is there an electric vehicle charging point belonging to the property?",
@@ -504,6 +509,7 @@
504
509
  },
505
510
  "listingAndConservation": {
506
511
  "baspiRef": "1.7",
512
+ "lawSocietyRef": "TA6/4.7",
507
513
  "title": "Listing and Conservation",
508
514
  "type": "object",
509
515
  "required": [
@@ -607,13 +613,13 @@
607
613
  },
608
614
  "energyEfficiency": {
609
615
  "RDSRef": "Certificates/{category='energyEfficiency',standard='EPC',gradeLevelRating=?},Certificates/{category='energyEfficiency',standard='EPC',status='exempt'},",
610
- "lawSocietyRef": "TA6/7.6",
611
616
  "title": "Energy Efficiency",
612
617
  "type": "object",
613
618
  "required": ["energyEfficiencyRating", "hasSprayFoamInstalled"],
614
619
  "properties": {
615
620
  "energyEfficiencyRating": {
616
621
  "baspiRef": "1.8.3",
622
+ "lawSocietyRef": "TA6/7.6",
617
623
  "title": "Energy Efficiency Rating",
618
624
  "description": "What is the energy efficiency rating of the property according to the latest Energy Performance Certificate (EPC)?",
619
625
  "type": "string",
@@ -626,7 +632,8 @@
626
632
  "F",
627
633
  "G",
628
634
  "Exempt Property",
629
- "Survey Instructed"
635
+ "Survey Instructed",
636
+ "No Certificate"
630
637
  ]
631
638
  },
632
639
  "hasSprayFoamInstalled": {
@@ -680,10 +687,12 @@
680
687
  },
681
688
  "alterationsAndChanges": {
682
689
  "baspiRef": "A3",
690
+ "lawSocietyRef": "TA6/4.1",
683
691
  "title": "Alterations and Changes to the Property",
684
692
  "type": "object",
685
693
  "required": [
686
694
  "hasStructuralAlterations",
695
+ "changeOfUse",
687
696
  "windowReplacementsSince2002",
688
697
  "hasAddedConservatory",
689
698
  "planningPermissionBreaches",
@@ -696,14 +705,15 @@
696
705
  "lawSocietyRef": "TA6/4.1a",
697
706
  "title": "Have there been any structural alterations, extensions, significant repairs or renewals to the property? (e.g. extensions, loft or garage conversion, removal of internal walls or chimneys)",
698
707
  "$ref": "#/$defs/yesNoDetailConsents",
699
- "description": "If yes, for each change, please outline the nature of the work and confirm the year the change was completed"
708
+ "description": "If yes, for each change, please outline the nature of the work and provide the dates of all work underaken."
700
709
  },
701
710
  "changeOfUse": {
711
+ "baspiRef": "A3.1",
702
712
  "RDSRef": "WorksAlterationsChanges",
703
713
  "lawSocietyRef": "TA6/4.1b",
704
714
  "title": "Has there been any change of use (e.g. from an office to a residence?",
705
715
  "$ref": "#/$defs/yesNoDetailConsents",
706
- "description": "If yes, for each change, please outline the nature of the work and confirm the year the change was completed."
716
+ "description": "If yes, please confirm the year the change was completed."
707
717
  },
708
718
  "windowReplacementsSince2002": {
709
719
  "baspiRef": "A3.2",
@@ -773,6 +783,7 @@
773
783
  },
774
784
  "unresolvedPlanningIssues": {
775
785
  "baspiRef": "A3.7",
786
+ "lawSocietyRef": "TA6/4.5",
776
787
  "RDSRef": "Buildings,BuildingsSections/StructureAuthorised,BuildingsSections/StructureUnauthorised",
777
788
  "title": "Are you aware of any unresolved planning or building control issues?",
778
789
  "type": "object",
@@ -824,6 +835,7 @@
824
835
  },
825
836
  "notices": {
826
837
  "baspiRef": "A4",
838
+ "lawSocietyRef": "TA6/3",
827
839
  "title": "Notices which Affect the Property",
828
840
  "description": "Are you aware of, or have you received, any of the following notices?",
829
841
  "type": "object",
@@ -939,7 +951,7 @@
939
951
  "baspiRef": "A6",
940
952
  "lawSocietyRef": "TA10",
941
953
  "title": "Fixtures and Fittings",
942
- "description": "This is so a buyer's offer can take into account whether you are taking something of value or leaving extra items. A full list will need to be completed after the sale is agreed.",
954
+ "description": "This is so a buyers offer can take into account whether you are taking something of value or leaving extra items. A full list will need to be completed after the sale is agreed.",
943
955
  "type": "object",
944
956
  "required": ["itemsToRemove", "itemsToInclude"],
945
957
  "properties": {
@@ -1047,7 +1059,7 @@
1047
1059
  "baspiRef": "A7.2.6",
1048
1060
  "RDSRef": "Services/OtherServices/Located,Services/OtherServices/{access=?}",
1049
1061
  "lawSocietyRef": "TA6/12.10",
1050
- "title": "Is any part of the septic tank, cesspit or sewerage treatment plant located on someone else's land?",
1062
+ "title": "Is any part of the septic tank, cesspit or sewerage treatment plant located on someone elses land?",
1051
1063
  "$ref": "#/$defs/yesNoDetailIfYes",
1052
1064
  "description": "If yes, please supply a plan showing the location of the system and how access is obtained."
1053
1065
  },
@@ -1255,15 +1267,15 @@
1255
1267
  "greenDealLoan": {
1256
1268
  "baspiRef": "A7.3",
1257
1269
  "RDSRef": "RightsHolders/Loans,RightsHolders/OtherDocumentation",
1258
- "lawSocietyRef": "TA6/7.7",
1259
1270
  "title": "Green Deal Loan",
1260
1271
  "type": "object",
1261
1272
  "required": ["hasGreenDealLoan"],
1262
1273
  "properties": {
1263
1274
  "hasGreenDealLoan": {
1264
1275
  "baspiRef": "A7.3",
1276
+ "lawSocietyRef": "TA6/7.7",
1265
1277
  "title": "Is this property subject to a Green Deal loan or other financed home improvement scheme?",
1266
- "description": "If yes, please provide details below including any outstanding payments for the renewable devices and any feed-in tariffs and a copy of your fuel bills",
1278
+ "description": "If yes, 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",
1267
1279
  "$ref": "#/$defs/yesNoDetailIfYes"
1268
1280
  }
1269
1281
  }
@@ -1271,13 +1283,13 @@
1271
1283
  "centralHeating": {
1272
1284
  "baspiRef": "A7.4",
1273
1285
  "RDSRef": "Buildings|BuildingSections/isUnheated=no|yes|true|false",
1274
- "lawSocietyRef": "TA6/12.3",
1275
1286
  "title": "Central Heating",
1276
1287
  "type": "object",
1277
1288
  "required": ["hasCentralHeating"],
1278
1289
  "properties": {
1279
1290
  "hasCentralHeating": {
1280
1291
  "baspiRef": "A7.4",
1292
+ "lawSocietyRef": "TA6/12.3",
1281
1293
  "title": "Is there full/partial central heating in your property?",
1282
1294
  "type": "string",
1283
1295
  "enum": ["Yes", "No"]
@@ -1306,13 +1318,13 @@
1306
1318
  "centralHeatingFuel": {
1307
1319
  "baspiRef": "A7.5.1",
1308
1320
  "RDSRef": "Buildings|BuildingSections/Heating/isGas=no|yes|true|false",
1309
- "lawSocietyRef": "TA6/12.3a",
1310
1321
  "type": "object",
1311
1322
  "title": "Central Heating Fuel",
1312
1323
  "required": ["centralHeatingFuelType"],
1313
1324
  "properties": {
1314
1325
  "centralHeatingFuelType": {
1315
1326
  "baspiRef": "A7.5.1a",
1327
+ "lawSocietyRef": "TA6/12.3a",
1316
1328
  "title": "What type of fuel does the system and boiler run on?",
1317
1329
  "type": "string",
1318
1330
  "enum": ["Gas", "Electricity", "Oil", "LPG", "Other"]
@@ -1336,6 +1348,7 @@
1336
1348
  },
1337
1349
  "otherCentralHeatingFuelType": {
1338
1350
  "baspiRef": "A7.5.1b",
1351
+ "lawSocietyRef": "TA6/12.3a",
1339
1352
  "title": "Please describe the other fuel type",
1340
1353
  "type": "string",
1341
1354
  "minLength": 1
@@ -1397,6 +1410,7 @@
1397
1410
  },
1398
1411
  "insurance": {
1399
1412
  "baspiRef": "A8",
1413
+ "lawSocietyRef": "TA6/6",
1400
1414
  "title": "Insurance",
1401
1415
  "type": "object",
1402
1416
  "required": ["isInsured"],
@@ -1424,6 +1438,7 @@
1424
1438
  "minLength": 1
1425
1439
  }
1426
1440
  },
1441
+ "required": ["details"],
1427
1442
  "additionalProperties": false
1428
1443
  },
1429
1444
  {
@@ -1454,6 +1469,7 @@
1454
1469
  },
1455
1470
  "boundaries": {
1456
1471
  "baspiRef": "A9",
1472
+ "lawSocietyRef": "TA6/1",
1457
1473
  "title": "Boundaries",
1458
1474
  "type": "object",
1459
1475
  "description": "You will need to check your title to answer these questions. If you do not have a copy, for a small fee to HM Land Registry, you can download both the title register and the title plan of the property at https://www.gov.uk/search-property-information-land-registry.",
@@ -1467,7 +1483,7 @@
1467
1483
  "partOutsideLegalOwnership": {
1468
1484
  "baspiRef": "A9.1",
1469
1485
  "RDSRef": "Tenure/Interests",
1470
- "title": "Is any part of the property outside the seller's legal ownership?",
1486
+ "title": "Is any part of the property outside the sellers legal ownership?",
1471
1487
  "$ref": "#/$defs/yesNoDetailIfYes",
1472
1488
  "description": "If yes, please provide details. E.g. parking, garden, outbuilding, accessway, etc"
1473
1489
  },
@@ -1494,6 +1510,7 @@
1494
1510
  },
1495
1511
  "rightsAndInformalArrangements": {
1496
1512
  "baspiRef": "A10",
1513
+ "lawSocietyRef": "TA6/8",
1497
1514
  "title": "Rights and Informal Arrangements",
1498
1515
  "type": "object",
1499
1516
  "required": [
@@ -1528,6 +1545,7 @@
1528
1545
  },
1529
1546
  "rightsOrArrangements": {
1530
1547
  "baspiRef": "A10.4",
1548
+ "lawSocietyRef": "TA6/8.4",
1531
1549
  "title": "Do you know if any of the following rights or arrangements affect the property?",
1532
1550
  "type": "object",
1533
1551
  "required": [
@@ -1604,7 +1622,7 @@
1604
1622
  "lawSocietyRef": "TA6/7",
1605
1623
  "title": "To your knowledge, has there been any environmental issues that affect the property or garden (for example, these could include air pollution, flooding, radon gas, mining, sink holes, quarrying or fracking etc)?",
1606
1624
  "$ref": "#/$defs/yesNoDetailIfYes",
1607
- "description": "If yes, please provide details. For example the level of air pollution, type of flooding (e.g. ground water, coastal, river, surface water, sewer, etc), level of radon, a copy of any radon report, location of fracking and whether any action has been taken to prevent harm."
1625
+ "description": "If yes, please provide details. For example the level of air pollution, type of flooding (e.g. ground water, coastal, river, surface water, sewer, etc), level of radon, a copy of any radon report, location of fracking etc, and whether any action has been taken to prevent harm."
1608
1626
  },
1609
1627
  "excessiveNoise": {
1610
1628
  "baspiRef": "A11.2",
@@ -1661,7 +1679,7 @@
1661
1679
  "properties": {
1662
1680
  "consumerProtectionRegulationsResponse": {
1663
1681
  "baspiRef": "A13.1",
1664
- "title": "Seller's declaration",
1682
+ "title": "Sellers declaration",
1665
1683
  "description": "I/we confirm the answers to be truthful and accurate and to the best of my/our knowledge. The questions have been designed to assist with the disclosure of material information and any misleading or incorrect answers are likely to be exposed later in the legal process which may hinder my/our sale. I/we will provide my property lawyer with the additional documentation in support of the information supplied on this form. If there are any changes which alter the information provided, I/we will immediately notify the person marketing the property as well as my/our property lawyer.",
1666
1684
  "type": "boolean"
1667
1685
  }
@@ -1905,12 +1923,6 @@
1905
1923
  "title": "Was planning permission obtained?",
1906
1924
  "$ref": "#/$defs/yesNoNotRequiredDetailIfNo"
1907
1925
  },
1908
- "unresolvedIssues": {
1909
- "RDSRef": "WorksAlterationsChanges/ConsentApproval",
1910
- "lawSocietyRef": "TA6/4.5",
1911
- "title": "Are there any planning or building control issues to resolve?",
1912
- "$ref": "#/$defs/yesNoNotRequiredDetailIfNo"
1913
- },
1914
1926
  "listedBuildingConsent": {
1915
1927
  "baspiRef": "A3.4.3",
1916
1928
  "RDSRef": "WorksAlterationsChanges/ConsentApproval",
@@ -1971,8 +1983,7 @@
1971
1983
  "type": "string",
1972
1984
  "minLength": 1
1973
1985
  }
1974
- },
1975
- "required": ["line1", "postcode"]
1986
+ }
1976
1987
  },
1977
1988
  "contactDetails": {
1978
1989
  "type": "object",