@pdtf/schemas 0.9.0 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -93,6 +93,9 @@
93
93
  "yesNo": "Yes",
94
94
  "details": "Bedroom and ensuite shower room extension 2005"
95
95
  },
96
+ "changeOfUse": {
97
+ "yesNo": "No"
98
+ },
96
99
  "windowReplacementsSince2002": {
97
100
  "buildingRegApproval": {
98
101
  "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
  },
@@ -598,7 +598,7 @@
598
598
  },
599
599
  "required": ["hasOver17s"],
600
600
  "dependencies": {
601
- "yesNo": {
601
+ "hasOver17s": {
602
602
  "oneOf": [
603
603
  {
604
604
  "properties": {
@@ -684,6 +684,7 @@
684
684
  "type": "object",
685
685
  "required": [
686
686
  "hasStructuralAlterations",
687
+ "changeOfUse",
687
688
  "windowReplacementsSince2002",
688
689
  "hasAddedConservatory",
689
690
  "planningPermissionBreaches",
@@ -696,14 +697,15 @@
696
697
  "lawSocietyRef": "TA6/4.1a",
697
698
  "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
699
  "$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"
700
+ "description": "If yes, for each change, please outline the nature of the work and provide the dates of all work underaken."
700
701
  },
701
702
  "changeOfUse": {
703
+ "baspiRef": "A3.1",
702
704
  "RDSRef": "WorksAlterationsChanges",
703
705
  "lawSocietyRef": "TA6/4.1b",
704
706
  "title": "Has there been any change of use (e.g. from an office to a residence?",
705
707
  "$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."
708
+ "description": "If yes, please confirm the year the change was completed."
707
709
  },
708
710
  "windowReplacementsSince2002": {
709
711
  "baspiRef": "A3.2",
@@ -773,6 +775,7 @@
773
775
  },
774
776
  "unresolvedPlanningIssues": {
775
777
  "baspiRef": "A3.7",
778
+ "lawSocietyRef": "TA6/4.5",
776
779
  "RDSRef": "Buildings,BuildingsSections/StructureAuthorised,BuildingsSections/StructureUnauthorised",
777
780
  "title": "Are you aware of any unresolved planning or building control issues?",
778
781
  "type": "object",
@@ -939,7 +942,7 @@
939
942
  "baspiRef": "A6",
940
943
  "lawSocietyRef": "TA10",
941
944
  "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.",
945
+ "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
946
  "type": "object",
944
947
  "required": ["itemsToRemove", "itemsToInclude"],
945
948
  "properties": {
@@ -1047,7 +1050,7 @@
1047
1050
  "baspiRef": "A7.2.6",
1048
1051
  "RDSRef": "Services/OtherServices/Located,Services/OtherServices/{access=?}",
1049
1052
  "lawSocietyRef": "TA6/12.10",
1050
- "title": "Is any part of the septic tank, cesspit or sewerage treatment plant located on someone else's land?",
1053
+ "title": "Is any part of the septic tank, cesspit or sewerage treatment plant located on someone elses land?",
1051
1054
  "$ref": "#/$defs/yesNoDetailIfYes",
1052
1055
  "description": "If yes, please supply a plan showing the location of the system and how access is obtained."
1053
1056
  },
@@ -1263,7 +1266,7 @@
1263
1266
  "hasGreenDealLoan": {
1264
1267
  "baspiRef": "A7.3",
1265
1268
  "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",
1269
+ "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
1270
  "$ref": "#/$defs/yesNoDetailIfYes"
1268
1271
  }
1269
1272
  }
@@ -1424,6 +1427,7 @@
1424
1427
  "minLength": 1
1425
1428
  }
1426
1429
  },
1430
+ "required": ["details"],
1427
1431
  "additionalProperties": false
1428
1432
  },
1429
1433
  {
@@ -1467,7 +1471,7 @@
1467
1471
  "partOutsideLegalOwnership": {
1468
1472
  "baspiRef": "A9.1",
1469
1473
  "RDSRef": "Tenure/Interests",
1470
- "title": "Is any part of the property outside the seller's legal ownership?",
1474
+ "title": "Is any part of the property outside the sellers legal ownership?",
1471
1475
  "$ref": "#/$defs/yesNoDetailIfYes",
1472
1476
  "description": "If yes, please provide details. E.g. parking, garden, outbuilding, accessway, etc"
1473
1477
  },
@@ -1604,7 +1608,7 @@
1604
1608
  "lawSocietyRef": "TA6/7",
1605
1609
  "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
1610
  "$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."
1611
+ "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
1612
  },
1609
1613
  "excessiveNoise": {
1610
1614
  "baspiRef": "A11.2",
@@ -1661,7 +1665,7 @@
1661
1665
  "properties": {
1662
1666
  "consumerProtectionRegulationsResponse": {
1663
1667
  "baspiRef": "A13.1",
1664
- "title": "Seller's declaration",
1668
+ "title": "Sellers declaration",
1665
1669
  "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
1670
  "type": "boolean"
1667
1671
  }
@@ -1905,12 +1909,6 @@
1905
1909
  "title": "Was planning permission obtained?",
1906
1910
  "$ref": "#/$defs/yesNoNotRequiredDetailIfNo"
1907
1911
  },
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
1912
  "listedBuildingConsent": {
1915
1913
  "baspiRef": "A3.4.3",
1916
1914
  "RDSRef": "WorksAlterationsChanges/ConsentApproval",
@@ -181,4 +181,10 @@ test("correctly gets titles across schemas, arrays and non-existient title prope
181
181
  "/propertyPack/energyPerformanceCertificate/certificate/currentEnergyRating"
182
182
  )
183
183
  ).toBe("Current energy rating");
184
+ expect(
185
+ getTitleAtPath(
186
+ transactionSchema,
187
+ "/propertyPack/additionalLegalInfo/occupiers/otherOver17sAtProperty/over17sNames/0/firstName"
188
+ )
189
+ ).toBe("First Name");
184
190
  });