@pdtf/schemas 0.8.0 → 0.9.1
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 +1 -1
- package/src/examples/exampleTransaction.json +10 -4
- package/src/schemas/v1/legal-information.json +92 -42
- package/src/schemas/v1/material-facts.json +57 -150
- package/src/tests/pdtfVerifiedClaims.test.js +1 -1
- package/src/tests/transactionSchema.test.js +6 -0
- package/docs/assets/PDTF Orange.png +0 -0
package/package.json
CHANGED
|
@@ -290,13 +290,13 @@
|
|
|
290
290
|
}
|
|
291
291
|
},
|
|
292
292
|
"insurance": {
|
|
293
|
+
"isInsured": "Yes",
|
|
293
294
|
"difficultiesObtainingInsurance": {
|
|
294
295
|
"yesNo": "No"
|
|
295
296
|
},
|
|
296
297
|
"insuranceClaims": {
|
|
297
298
|
"yesNo": "No"
|
|
298
|
-
}
|
|
299
|
-
"isInsured": "Yes"
|
|
299
|
+
}
|
|
300
300
|
},
|
|
301
301
|
"boundaries": {
|
|
302
302
|
"partOutsideLegalOwnership": {
|
|
@@ -407,8 +407,14 @@
|
|
|
407
407
|
},
|
|
408
408
|
"occupiers": {
|
|
409
409
|
"sellerLivesAtProperty": { "yesNo": "Yes" },
|
|
410
|
-
"otherOver17sAtProperty":
|
|
411
|
-
|
|
410
|
+
"otherOver17sAtProperty": {
|
|
411
|
+
"hasOver17s": "Yes",
|
|
412
|
+
"over17sNames": [
|
|
413
|
+
{ "firstName": "Freya", "lastName": "Jones", "age": 21 }
|
|
414
|
+
],
|
|
415
|
+
"over17sTenantsOrLodgers": { "yesNo": "No" },
|
|
416
|
+
"over17sWillSignToConfirmWillVacate": { "yesNo": "Yes" }
|
|
417
|
+
}
|
|
412
418
|
},
|
|
413
419
|
"completionAndMoving": {
|
|
414
420
|
"willRemoveAllRubbish": true,
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"legalBoundaries": {
|
|
107
107
|
"baspiRef": "B2.1",
|
|
108
|
+
"lawSocietyRef": "TA6/1",
|
|
108
109
|
"title": "Legal Boundaries",
|
|
109
110
|
"description": "Please indicate who has repaired, or treated as belonging to them, each of the boundaries. Identify each boundary as if you were looking at the property from the road",
|
|
110
111
|
"type": "object",
|
|
@@ -281,12 +282,14 @@
|
|
|
281
282
|
},
|
|
282
283
|
"yearInstalled": {
|
|
283
284
|
"baspiRef": "B4.3.1",
|
|
285
|
+
"lawSocietyRef": "TA6/4.6a",
|
|
284
286
|
"RDSRef": "Objects/Installation",
|
|
285
287
|
"title": "What year were they installed?",
|
|
286
288
|
"type": "number"
|
|
287
289
|
},
|
|
288
290
|
"panelsOwnedOutright": {
|
|
289
291
|
"baspiRef": "",
|
|
292
|
+
"lawSocietyRef": "TA6/4.6b",
|
|
290
293
|
"RDSRef": "Objects/Ownership",
|
|
291
294
|
"title": "Do you own the panels, and all equipment related to them, outright?",
|
|
292
295
|
"$ref": "#/$defs/yesNoDetailIfNo",
|
|
@@ -294,6 +297,7 @@
|
|
|
294
297
|
},
|
|
295
298
|
"panelProviderLease": {
|
|
296
299
|
"baspiRef": "B4.3.2",
|
|
300
|
+
"lawSocietyRef": "TA6/4.6c",
|
|
297
301
|
"RDSRef": "Objects/Ownership",
|
|
298
302
|
"title": "Is there an existing long lease of the roof/air space granted to a panel provider?",
|
|
299
303
|
"$ref": "#/$defs/yesNoDetailIfYes",
|
|
@@ -367,7 +371,6 @@
|
|
|
367
371
|
},
|
|
368
372
|
"smartHomeSystems": {
|
|
369
373
|
"baspiRef": "B7.4",
|
|
370
|
-
"RDSRef": "",
|
|
371
374
|
"title": "Smart Home Systems",
|
|
372
375
|
"type": "object",
|
|
373
376
|
"required": ["hasSmartHomeSystems"],
|
|
@@ -460,7 +463,7 @@
|
|
|
460
463
|
"baspiRef": "B5.1.1",
|
|
461
464
|
"RDSRef": "Certificates",
|
|
462
465
|
"lawSocietyRef": "TA6/5.1a",
|
|
463
|
-
"title": "New Home Warranty",
|
|
466
|
+
"title": "New Home Warranty (NHBC or similar)",
|
|
464
467
|
"$ref": "#/$defs/yesNoDetailIfYes",
|
|
465
468
|
"description": "If yes, please confirm the name of the warranty provider and the date of the warranty:"
|
|
466
469
|
},
|
|
@@ -510,7 +513,7 @@
|
|
|
510
513
|
"baspiRef": "B5.1.8",
|
|
511
514
|
"RDSRef": "Certificates",
|
|
512
515
|
"lawSocietyRef": "TA6/5.1h",
|
|
513
|
-
"title": "
|
|
516
|
+
"title": "Underpinning or other preventative work and/or remedial action relating to subsidence",
|
|
514
517
|
"$ref": "#/$defs/yesNo"
|
|
515
518
|
},
|
|
516
519
|
"solarPanels": {
|
|
@@ -571,10 +574,7 @@
|
|
|
571
574
|
"baspiRef": "B6",
|
|
572
575
|
"title": "Occupiers",
|
|
573
576
|
"type": "object",
|
|
574
|
-
"required": [
|
|
575
|
-
"sellerLivesAtProperty",
|
|
576
|
-
"over17sWillSignToConfirmWillVacate"
|
|
577
|
-
],
|
|
577
|
+
"required": ["sellerLivesAtProperty", "otherOver17sAtProperty"],
|
|
578
578
|
"properties": {
|
|
579
579
|
"sellerLivesAtProperty": {
|
|
580
580
|
"baspiRef": "B6.1",
|
|
@@ -586,41 +586,87 @@
|
|
|
586
586
|
"otherOver17sAtProperty": {
|
|
587
587
|
"baspiRef": "B6.2",
|
|
588
588
|
"RDSRef": "Participants",
|
|
589
|
-
"lawSocietyRef": "TA6/11.
|
|
590
|
-
"title": "
|
|
591
|
-
"type": "
|
|
592
|
-
"
|
|
593
|
-
"
|
|
594
|
-
|
|
595
|
-
"
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
589
|
+
"lawSocietyRef": "TA6/11.1",
|
|
590
|
+
"title": "Does anyone else, aged 17 or over, live at the property?",
|
|
591
|
+
"type": "object",
|
|
592
|
+
"properties": {
|
|
593
|
+
"hasOver17s": {
|
|
594
|
+
"type": "string",
|
|
595
|
+
"title": "",
|
|
596
|
+
"enum": ["Yes", "No"]
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"required": ["hasOver17s"],
|
|
600
|
+
"dependencies": {
|
|
601
|
+
"hasOver17s": {
|
|
602
|
+
"oneOf": [
|
|
603
|
+
{
|
|
604
|
+
"properties": {
|
|
605
|
+
"hasOver17s": {
|
|
606
|
+
"enum": ["No"]
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"additionalProperties": false
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"properties": {
|
|
613
|
+
"hasOver17s": {
|
|
614
|
+
"enum": ["Yes"]
|
|
615
|
+
},
|
|
616
|
+
"over17sNames": {
|
|
617
|
+
"lawSocietyRef": "TA6/11.3",
|
|
618
|
+
"title": "Please specify their full names and ages.",
|
|
619
|
+
"type": "array",
|
|
620
|
+
"items": {
|
|
621
|
+
"type": "object",
|
|
622
|
+
"properties": {
|
|
623
|
+
"firstName": {
|
|
624
|
+
"title": "First Name",
|
|
625
|
+
"type": "string",
|
|
626
|
+
"minLength": 1
|
|
627
|
+
},
|
|
628
|
+
"middleNames": {
|
|
629
|
+
"title": "Middle name(s) if any",
|
|
630
|
+
"type": "string"
|
|
631
|
+
},
|
|
632
|
+
"lastName": {
|
|
633
|
+
"title": "Last Name",
|
|
634
|
+
"type": "string",
|
|
635
|
+
"minLength": 1
|
|
636
|
+
},
|
|
637
|
+
"age": {
|
|
638
|
+
"title": "Age",
|
|
639
|
+
"type": "integer"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"required": ["firstName", "lastName", "age"]
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"over17sTenantsOrLodgers": {
|
|
646
|
+
"baspiRef": "B6.1",
|
|
647
|
+
"RDSRef": "Property/Flags",
|
|
648
|
+
"lawSocietyRef": "TA6/11.1",
|
|
649
|
+
"title": "Are any of them tenants or lodgers?",
|
|
650
|
+
"$ref": "#/$defs/yesNo"
|
|
651
|
+
},
|
|
652
|
+
"over17sWillSignToConfirmWillVacate": {
|
|
653
|
+
"baspiRef": "B6.4",
|
|
654
|
+
"RDSRef": "RightsHolders,TenureAgreements,Notifications",
|
|
655
|
+
"lawSocietyRef": "TA6/11.5",
|
|
656
|
+
"title": "Have all occupiers aged over 17, agreed to sign the contract to confirm that they will vacate the property prior to completion of the sale?",
|
|
657
|
+
"$ref": "#/$defs/yesNoDetailIfNo",
|
|
658
|
+
"description": "If 'No', please provide details (e.g. the property is sold let to tenants) and supply a copy of the tenancy agreement together with a copy of any notice to quit which has been served upon them."
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"required": [
|
|
662
|
+
"over17sNames",
|
|
663
|
+
"over17sTenantsOrLodgers",
|
|
664
|
+
"over17sWillSignToConfirmWillVacate"
|
|
665
|
+
]
|
|
666
|
+
}
|
|
667
|
+
]
|
|
668
|
+
}
|
|
615
669
|
}
|
|
616
|
-
},
|
|
617
|
-
"over17sWillSignToConfirmWillVacate": {
|
|
618
|
-
"baspiRef": "B6.4",
|
|
619
|
-
"RDSRef": "RightsHolders,TenureAgreements,Notifications",
|
|
620
|
-
"lawSocietyRef": "TA6/11.5",
|
|
621
|
-
"title": "Have all occupiers aged over 17, agreed to sign the contract to confirm that they will vacate the property prior to completion of the sale?",
|
|
622
|
-
"$ref": "#/$defs/yesNoDetailIfNo",
|
|
623
|
-
"description": "If 'No', please provide details (e.g. the property is sold let to tenants) and supply a copy of the tenancy agreement together with a copy of any notice to quit which has been served upon them."
|
|
624
670
|
}
|
|
625
671
|
}
|
|
626
672
|
},
|
|
@@ -736,9 +782,13 @@
|
|
|
736
782
|
}
|
|
737
783
|
}
|
|
738
784
|
},
|
|
785
|
+
"sufficientToRepayAllMortgages": {
|
|
786
|
+
"lawSocietyRef": "TA6/14.3",
|
|
787
|
+
"title": "Will the sale price be sufficient to repay all mortgages and charges secured on the property?",
|
|
788
|
+
"$ref": "#/$defs/yesNo"
|
|
789
|
+
},
|
|
739
790
|
"digitalPropertyLogbook": {
|
|
740
791
|
"baspiRef": "B7.5",
|
|
741
|
-
"RDSRef": "",
|
|
742
792
|
"title": "Do you have a Digital Property Logbook?",
|
|
743
793
|
"description": "See https://www.rlba.org.uk/what-is-a-property-logbook?",
|
|
744
794
|
"type": "object",
|
|
@@ -39,131 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"address": {
|
|
41
41
|
"baspiRef": "A1.1",
|
|
42
|
+
"lawSocietyRef": "TA6/0",
|
|
42
43
|
"RDSRef": "Property/Address/xal:AddressDetails",
|
|
43
44
|
"title": "Property Address",
|
|
44
45
|
"$ref": "#/$defs/address"
|
|
45
46
|
},
|
|
46
47
|
"propertyType": {
|
|
47
|
-
"type": "string"
|
|
48
|
-
"enum": [
|
|
49
|
-
"Not Specified",
|
|
50
|
-
"Terraced House",
|
|
51
|
-
"End of terrace house",
|
|
52
|
-
"Semi-detached house",
|
|
53
|
-
"Detached house",
|
|
54
|
-
"Mews house",
|
|
55
|
-
"Cluster house",
|
|
56
|
-
"Ground floor flat",
|
|
57
|
-
"Flat",
|
|
58
|
-
"Studio flat",
|
|
59
|
-
"Ground floor maisonette",
|
|
60
|
-
"Maisonette",
|
|
61
|
-
"Bungalow",
|
|
62
|
-
"Terraced bungalow",
|
|
63
|
-
"Semi-detached bungalow",
|
|
64
|
-
"Detached bungalow",
|
|
65
|
-
"Mobile home",
|
|
66
|
-
"Land (Residential)",
|
|
67
|
-
"Link detached house",
|
|
68
|
-
"Town house",
|
|
69
|
-
"Cottage",
|
|
70
|
-
"Chalet",
|
|
71
|
-
"Character Property",
|
|
72
|
-
"House (unspecified)",
|
|
73
|
-
"Villa",
|
|
74
|
-
"Apartment",
|
|
75
|
-
"Penthouse",
|
|
76
|
-
"Finca",
|
|
77
|
-
"Barn Conversion",
|
|
78
|
-
"Serviced apartment",
|
|
79
|
-
"Parking",
|
|
80
|
-
"Sheltered Housing",
|
|
81
|
-
"Retirement property",
|
|
82
|
-
"House share",
|
|
83
|
-
"Flat share",
|
|
84
|
-
"Park home",
|
|
85
|
-
"Garages",
|
|
86
|
-
"Farm House",
|
|
87
|
-
"Equestrian facility",
|
|
88
|
-
"Duplex",
|
|
89
|
-
"Triplex",
|
|
90
|
-
"Longere",
|
|
91
|
-
"Gite",
|
|
92
|
-
"Barn",
|
|
93
|
-
"Trulli",
|
|
94
|
-
"Mill",
|
|
95
|
-
"Ruins",
|
|
96
|
-
"Restaurant",
|
|
97
|
-
"Cafe",
|
|
98
|
-
"Castle",
|
|
99
|
-
"Village House",
|
|
100
|
-
"Cave House",
|
|
101
|
-
"Cortijo",
|
|
102
|
-
"Farm Land",
|
|
103
|
-
"Plot",
|
|
104
|
-
"Country House",
|
|
105
|
-
"Stone House",
|
|
106
|
-
"Caravan",
|
|
107
|
-
"Lodge",
|
|
108
|
-
"Log Cabin",
|
|
109
|
-
"Manor House",
|
|
110
|
-
"Stately Home",
|
|
111
|
-
"Off-Plan",
|
|
112
|
-
"Semi-detached Villa",
|
|
113
|
-
"Detached Villa",
|
|
114
|
-
"Bar/Nightclub",
|
|
115
|
-
"Shop",
|
|
116
|
-
"Riad",
|
|
117
|
-
"House Boat",
|
|
118
|
-
"Hotel Room",
|
|
119
|
-
"Block of Apartments",
|
|
120
|
-
"Private Halls",
|
|
121
|
-
"Office",
|
|
122
|
-
"Business Park",
|
|
123
|
-
"Serviced Office",
|
|
124
|
-
"Retail Property (High Street)",
|
|
125
|
-
"Retail Property (Out of Town)",
|
|
126
|
-
"Convenience Store",
|
|
127
|
-
"Hairdresser/Barber Shop",
|
|
128
|
-
"Hotel",
|
|
129
|
-
"Petrol Station",
|
|
130
|
-
"Post Office",
|
|
131
|
-
"Pub",
|
|
132
|
-
"Workshop & Retail Space",
|
|
133
|
-
"Distribution Warehouse",
|
|
134
|
-
"Factory",
|
|
135
|
-
"Heavy Industrial",
|
|
136
|
-
"Industrial Park",
|
|
137
|
-
"Light Industrial",
|
|
138
|
-
"Storage",
|
|
139
|
-
"Showroom",
|
|
140
|
-
"Warehouse",
|
|
141
|
-
"Land (Commercial)",
|
|
142
|
-
"Commercial Development",
|
|
143
|
-
"Industrial Development",
|
|
144
|
-
"Residential Development",
|
|
145
|
-
"Commercial Property",
|
|
146
|
-
"Data Centre",
|
|
147
|
-
"Farm",
|
|
148
|
-
"Healthcare Facility",
|
|
149
|
-
"Marine Property",
|
|
150
|
-
"Mixed Use",
|
|
151
|
-
"Research & Development Facility",
|
|
152
|
-
"Science Park",
|
|
153
|
-
"Guest House",
|
|
154
|
-
"Hospitality",
|
|
155
|
-
"Leisure Facility",
|
|
156
|
-
"Takeaway",
|
|
157
|
-
"Childcare Facility",
|
|
158
|
-
"Smallholding",
|
|
159
|
-
"Place of Worship",
|
|
160
|
-
"Trade Counter",
|
|
161
|
-
"Coach House",
|
|
162
|
-
"House of Multiple Occupation",
|
|
163
|
-
"Sports facilities",
|
|
164
|
-
"Spa",
|
|
165
|
-
"Campsite & Holiday Village"
|
|
166
|
-
]
|
|
48
|
+
"type": "string"
|
|
167
49
|
},
|
|
168
50
|
"isNewBuild": {
|
|
169
51
|
"type": "boolean"
|
|
@@ -239,10 +121,6 @@
|
|
|
239
121
|
},
|
|
240
122
|
"delayFactors": {
|
|
241
123
|
"baspiRef": "A1.2",
|
|
242
|
-
"RDSMapping": {
|
|
243
|
-
"hasDelayFactors/yesNo": "Metadata/PotentialDelays",
|
|
244
|
-
"hasDelayFactors/details": "Metadata/PotentialDelayDuration"
|
|
245
|
-
},
|
|
246
124
|
"title": "Delay Factors",
|
|
247
125
|
"type": "object",
|
|
248
126
|
"required": ["hasDelayFactors"],
|
|
@@ -325,7 +203,7 @@
|
|
|
325
203
|
"RDSRef": "TenureAgreements/RentPayable/Value",
|
|
326
204
|
"lawSocietyRef": "TA7/1.2",
|
|
327
205
|
"title": "Current annual ground rent (£)",
|
|
328
|
-
"type": "
|
|
206
|
+
"type": "number"
|
|
329
207
|
},
|
|
330
208
|
"rentIncrease": {
|
|
331
209
|
"baspiRef": "A1.4.3",
|
|
@@ -338,7 +216,7 @@
|
|
|
338
216
|
"baspiRef": "A1.5.1",
|
|
339
217
|
"RDSRef": "TenureAgreements/ServiceCharges",
|
|
340
218
|
"title": "Amount of current annual service charge/estate rentcharge/maintenance contribution (£)",
|
|
341
|
-
"type": "
|
|
219
|
+
"type": "number"
|
|
342
220
|
},
|
|
343
221
|
"largeAdditionalExpense": {
|
|
344
222
|
"baspiRef": "A1.5.2",
|
|
@@ -351,7 +229,7 @@
|
|
|
351
229
|
"baspiRef": "A1.5.3",
|
|
352
230
|
"RDSRef": "TenureAgreements/LegalCosts/Actual, TenureAgreements/LegalCosts/Estimated",
|
|
353
231
|
"title": "Additional fees payable on sale (£)",
|
|
354
|
-
"type": "
|
|
232
|
+
"type": "number"
|
|
355
233
|
},
|
|
356
234
|
"freeholderContactDetails": {
|
|
357
235
|
"baspiRef": "A1.5.4",
|
|
@@ -392,13 +270,14 @@
|
|
|
392
270
|
},
|
|
393
271
|
"annualServiceCharge": {
|
|
394
272
|
"baspiRef": "A1.5.1",
|
|
273
|
+
"lawSocietyRef": "TA6/10.1",
|
|
395
274
|
"RDSRef": "TenureAgreements/ServiceCharges",
|
|
396
275
|
"title": "Amount of current annual service charge/estate rentcharge/maintenance contribution (£)",
|
|
397
|
-
"type": "
|
|
398
|
-
"minLength": 1
|
|
276
|
+
"type": "number"
|
|
399
277
|
},
|
|
400
278
|
"largeAdditionalExpense": {
|
|
401
279
|
"baspiRef": "A1.5.2",
|
|
280
|
+
"lawSocietyRef": "TA6/10.1",
|
|
402
281
|
"RDSRef": "TenureAgreements/Repairs,TenureAgreements/ServicesCharges/Breakdown",
|
|
403
282
|
"title": "Have you received notice of any large expense in addition to the annual payment?",
|
|
404
283
|
"$ref": "#/$defs/yesNoDetailIfYes",
|
|
@@ -406,9 +285,10 @@
|
|
|
406
285
|
},
|
|
407
286
|
"additionalFeesOnSale": {
|
|
408
287
|
"baspiRef": "A1.5.3",
|
|
288
|
+
"lawSocietyRef": "TA6/10.1",
|
|
409
289
|
"RDSRef": "TenureAgreements/LegalCosts/Actual, TenureAgreements/LegalCosts/Estimated",
|
|
410
290
|
"title": "Additional fees payable on sale (£)",
|
|
411
|
-
"type": "
|
|
291
|
+
"type": "number"
|
|
412
292
|
},
|
|
413
293
|
"freeholderContactDetails": {
|
|
414
294
|
"baspiRef": "A1.5.4",
|
|
@@ -451,7 +331,7 @@
|
|
|
451
331
|
},
|
|
452
332
|
"sharedOwnershipRent": {
|
|
453
333
|
"title": "Shared ownership rent (£)",
|
|
454
|
-
"type": "
|
|
334
|
+
"type": "number",
|
|
455
335
|
"minimum": 0
|
|
456
336
|
},
|
|
457
337
|
"sharedOwnershipRentFrequency": {
|
|
@@ -475,7 +355,7 @@
|
|
|
475
355
|
"RDSRef": "TenureAgreements/RentPayable/Value",
|
|
476
356
|
"lawSocietyRef": "TA7/1.2",
|
|
477
357
|
"title": "Current annual ground rent (£)",
|
|
478
|
-
"type": "
|
|
358
|
+
"type": "number"
|
|
479
359
|
},
|
|
480
360
|
"rentIncrease": {
|
|
481
361
|
"baspiRef": "A1.4.3",
|
|
@@ -488,7 +368,7 @@
|
|
|
488
368
|
"baspiRef": "A1.5.1",
|
|
489
369
|
"RDSRef": "TenureAgreements/ServiceCharges",
|
|
490
370
|
"title": "Amount of current annual service charge/estate rentcharge/maintenance contribution (£)",
|
|
491
|
-
"type": "
|
|
371
|
+
"type": "number"
|
|
492
372
|
},
|
|
493
373
|
"largeAdditionalExpense": {
|
|
494
374
|
"baspiRef": "A1.5.2",
|
|
@@ -501,7 +381,7 @@
|
|
|
501
381
|
"baspiRef": "A1.5.3",
|
|
502
382
|
"RDSRef": "TenureAgreements/LegalCosts/Actual, TenureAgreements/LegalCosts/Estimated",
|
|
503
383
|
"title": "Additional fees payable on sale or letting (£)",
|
|
504
|
-
"type": "
|
|
384
|
+
"type": "number"
|
|
505
385
|
},
|
|
506
386
|
"freeholderContactDetails": {
|
|
507
387
|
"baspiRef": "A1.5.4",
|
|
@@ -545,12 +425,13 @@
|
|
|
545
425
|
"parking": {
|
|
546
426
|
"baspiRef": "A1.6",
|
|
547
427
|
"RDSRef": "Services/Parking",
|
|
548
|
-
"lawSocietyRef": "TA6/9
|
|
428
|
+
"lawSocietyRef": "TA6/9",
|
|
549
429
|
"title": "Parking",
|
|
550
430
|
"type": "object",
|
|
551
431
|
"required": ["parkingArrangements", "electricVehicleChargingPoint"],
|
|
552
432
|
"properties": {
|
|
553
433
|
"parkingArrangements": {
|
|
434
|
+
"lawSocietyRef": "TA6/9.1",
|
|
554
435
|
"type": "object",
|
|
555
436
|
"title": "Parking arrangements",
|
|
556
437
|
"required": ["parkingArrangementsType"],
|
|
@@ -570,6 +451,11 @@
|
|
|
570
451
|
"None",
|
|
571
452
|
"Other"
|
|
572
453
|
]
|
|
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"
|
|
573
459
|
}
|
|
574
460
|
},
|
|
575
461
|
"dependencies": {
|
|
@@ -645,7 +531,7 @@
|
|
|
645
531
|
"hasTreePreservationOrder": {
|
|
646
532
|
"baspiRef": "A1.7.3",
|
|
647
533
|
"RDSRef": "Property/Flags",
|
|
648
|
-
"lawSocietyRef": "TA6/4.
|
|
534
|
+
"lawSocietyRef": "TA6/4.8",
|
|
649
535
|
"title": "To your knowledge, does a tree preservation order apply to any trees within the boundaries of the property?",
|
|
650
536
|
"type": "object",
|
|
651
537
|
"properties": {
|
|
@@ -680,7 +566,7 @@
|
|
|
680
566
|
},
|
|
681
567
|
"workCarriedOut": {
|
|
682
568
|
"RDSRef": "WorksAlterationsChanges",
|
|
683
|
-
"lawSocietyRef": "TA6/4.
|
|
569
|
+
"lawSocietyRef": "TA6/4.8a",
|
|
684
570
|
"title": "If work has been carried out to any trees which are protected by the order, were the relevant consents obtained? Provide any relevant documentation",
|
|
685
571
|
"type": "string",
|
|
686
572
|
"minLength": 1
|
|
@@ -709,7 +595,6 @@
|
|
|
709
595
|
"hasFlammableExternalWallSystem": {
|
|
710
596
|
"baspiRef": "A2.1",
|
|
711
597
|
"RDSRef": "Tenure/DisputesComplaints,Tenure/LegalClaims",
|
|
712
|
-
"lawSocietyRef": "TA6/2.1",
|
|
713
598
|
"title": "Does the property have potentially flammable external wall system - including cladding and balconies etc?",
|
|
714
599
|
"type": "string",
|
|
715
600
|
"enum": [
|
|
@@ -746,7 +631,6 @@
|
|
|
746
631
|
},
|
|
747
632
|
"hasSprayFoamInstalled": {
|
|
748
633
|
"baspiRef": "A1.8.4",
|
|
749
|
-
"RDSRef": "",
|
|
750
634
|
"title": "Has spray foam insulation been installed at the property?",
|
|
751
635
|
"$ref": "#/$defs/yesNoDetailIfYes",
|
|
752
636
|
"description": "If yes, please give details together with certification from BBA or KIWA and the installation warranty for the work carried out."
|
|
@@ -775,7 +659,7 @@
|
|
|
775
659
|
},
|
|
776
660
|
"councilTaxAnnualCharge": {
|
|
777
661
|
"title": "What is the current annual Council Tax charge? (£)",
|
|
778
|
-
"type": "
|
|
662
|
+
"type": "number"
|
|
779
663
|
}
|
|
780
664
|
}
|
|
781
665
|
},
|
|
@@ -788,7 +672,7 @@
|
|
|
788
672
|
"hasDisputesAndComplaints": {
|
|
789
673
|
"baspiRef": "A2.1",
|
|
790
674
|
"RDSRef": "Tenure/DisputesComplaints,Tenure/LegalClaims",
|
|
791
|
-
"lawSocietyRef": "TA6/2
|
|
675
|
+
"lawSocietyRef": "TA6/2",
|
|
792
676
|
"title": "Have any disputes or complaints occurred, or any actions taken place which might lead to a dispute, regarding this property, a property nearby, or their use? E.g boundary disagreement, noise, trespass etc",
|
|
793
677
|
"$ref": "#/$defs/yesNoDetailIfYes"
|
|
794
678
|
}
|
|
@@ -810,17 +694,24 @@
|
|
|
810
694
|
"baspiRef": "A3.1",
|
|
811
695
|
"RDSRef": "WorksAlterationsChanges",
|
|
812
696
|
"lawSocietyRef": "TA6/4.1a",
|
|
813
|
-
"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
|
|
697
|
+
"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)",
|
|
814
698
|
"$ref": "#/$defs/yesNoDetailConsents",
|
|
815
699
|
"description": "If yes, for each change, please outline the nature of the work and confirm the year the change was completed"
|
|
816
700
|
},
|
|
701
|
+
"changeOfUse": {
|
|
702
|
+
"RDSRef": "WorksAlterationsChanges",
|
|
703
|
+
"lawSocietyRef": "TA6/4.1b",
|
|
704
|
+
"title": "Has there been any change of use (e.g. from an office to a residence?",
|
|
705
|
+
"$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."
|
|
707
|
+
},
|
|
817
708
|
"windowReplacementsSince2002": {
|
|
818
709
|
"baspiRef": "A3.2",
|
|
819
710
|
"RDSRef": "WorksAlterationsChanges",
|
|
820
|
-
"lawSocietyRef": "TA6/4.
|
|
711
|
+
"lawSocietyRef": "TA6/4.1c",
|
|
821
712
|
"title": "Since 1st April 2002 has replacement of any windows, roof windows, roof lights, glazed doors taken place?",
|
|
822
713
|
"$ref": "#/$defs/yesNoDetailConsents",
|
|
823
|
-
"description": "If yes, for each installation, please outline the nature of the work and confirm the year the installation was completed.
|
|
714
|
+
"description": "If yes, for each installation, please outline the nature of the work and confirm the year the installation was completed."
|
|
824
715
|
},
|
|
825
716
|
"hasAddedConservatory": {
|
|
826
717
|
"baspiRef": "A3.3",
|
|
@@ -1080,6 +971,7 @@
|
|
|
1080
971
|
"properties": {
|
|
1081
972
|
"mainsWater": {
|
|
1082
973
|
"baspiRef": "A7.1.10",
|
|
974
|
+
"lawSocietyRef": "TA6/13.3",
|
|
1083
975
|
"RDSRef": "Services/PotableWaterSupply",
|
|
1084
976
|
"title": "Mains water",
|
|
1085
977
|
"$ref": "#/$defs/yesNoConnectedSupplier"
|
|
@@ -1155,7 +1047,7 @@
|
|
|
1155
1047
|
"baspiRef": "A7.2.6",
|
|
1156
1048
|
"RDSRef": "Services/OtherServices/Located,Services/OtherServices/{access=?}",
|
|
1157
1049
|
"lawSocietyRef": "TA6/12.10",
|
|
1158
|
-
"title": "Is any part of the septic tank, cesspit or sewerage treatment plant located on someone else
|
|
1050
|
+
"title": "Is any part of the septic tank, cesspit or sewerage treatment plant located on someone else's land?",
|
|
1159
1051
|
"$ref": "#/$defs/yesNoDetailIfYes",
|
|
1160
1052
|
"description": "If yes, please supply a plan showing the location of the system and how access is obtained."
|
|
1161
1053
|
},
|
|
@@ -1241,6 +1133,8 @@
|
|
|
1241
1133
|
"minLength": 1
|
|
1242
1134
|
},
|
|
1243
1135
|
"maintenanceAgreements": {
|
|
1136
|
+
"baspiRef": "A7.2",
|
|
1137
|
+
"RDSRef": "Services/Certificates,Services/OtherServices/Certificates",
|
|
1244
1138
|
"title": "Do you have any licences, maintenance agreements, contracts or service agreements in relation to this service?",
|
|
1245
1139
|
"$ref": "#/$defs/yesNoDetailIfYes"
|
|
1246
1140
|
}
|
|
@@ -1298,12 +1192,14 @@
|
|
|
1298
1192
|
"properties": {
|
|
1299
1193
|
"electricity": {
|
|
1300
1194
|
"baspiRef": "A7.1.1",
|
|
1195
|
+
"lawSocietyRef": "TA6/13.1",
|
|
1301
1196
|
"RDSRef": "Services/Electricity",
|
|
1302
1197
|
"title": "Electricity",
|
|
1303
1198
|
"$ref": "#/$defs/yesNoConnectedSupplier"
|
|
1304
1199
|
},
|
|
1305
1200
|
"gas": {
|
|
1306
1201
|
"baspiRef": "A7.1.2",
|
|
1202
|
+
"lawSocietyRef": "TA6/13.2",
|
|
1307
1203
|
"RDSRef": "Services/Gas",
|
|
1308
1204
|
"title": "Gas",
|
|
1309
1205
|
"$ref": "#/$defs/yesNoConnectedSupplier"
|
|
@@ -1322,12 +1218,14 @@
|
|
|
1322
1218
|
},
|
|
1323
1219
|
"telephone": {
|
|
1324
1220
|
"baspiRef": "A7.1.5",
|
|
1221
|
+
"lawSocietyRef": "TA6/13.5",
|
|
1325
1222
|
"RDSRef": "Services/Telephone",
|
|
1326
1223
|
"title": "Telephone",
|
|
1327
1224
|
"$ref": "#/$defs/yesNoConnectedSupplier"
|
|
1328
1225
|
},
|
|
1329
1226
|
"cableSatelliteTV": {
|
|
1330
1227
|
"baspiRef": "A7.1.6",
|
|
1228
|
+
"lawSocietyRef": "TA6/13.6",
|
|
1331
1229
|
"RDSRef": "Services/CableSatelliteTV",
|
|
1332
1230
|
"title": "Cable TV or satellite",
|
|
1333
1231
|
"$ref": "#/$defs/yesNoConnectedSupplier"
|
|
@@ -1519,6 +1417,11 @@
|
|
|
1519
1417
|
"properties": {
|
|
1520
1418
|
"isInsured": {
|
|
1521
1419
|
"enum": ["No"]
|
|
1420
|
+
},
|
|
1421
|
+
"details": {
|
|
1422
|
+
"title": "Why not?",
|
|
1423
|
+
"type": "string",
|
|
1424
|
+
"minLength": 1
|
|
1522
1425
|
}
|
|
1523
1426
|
},
|
|
1524
1427
|
"additionalProperties": false
|
|
@@ -1701,7 +1604,7 @@
|
|
|
1701
1604
|
"lawSocietyRef": "TA6/7",
|
|
1702
1605
|
"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)?",
|
|
1703
1606
|
"$ref": "#/$defs/yesNoDetailIfYes",
|
|
1704
|
-
"description": "If yes, please provide details. For example the level of air pollution, type of flooding (e.g. 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."
|
|
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."
|
|
1705
1608
|
},
|
|
1706
1609
|
"excessiveNoise": {
|
|
1707
1610
|
"baspiRef": "A11.2",
|
|
@@ -1998,10 +1901,16 @@
|
|
|
1998
1901
|
"planningPermission": {
|
|
1999
1902
|
"baspiRef": "A3.4.2",
|
|
2000
1903
|
"RDSRef": "WorksAlterationsChanges/ConsentApproval",
|
|
2001
|
-
"lawSocietyRef": "TA6/4.
|
|
1904
|
+
"lawSocietyRef": "TA6/4.4",
|
|
2002
1905
|
"title": "Was planning permission obtained?",
|
|
2003
1906
|
"$ref": "#/$defs/yesNoNotRequiredDetailIfNo"
|
|
2004
1907
|
},
|
|
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
|
+
},
|
|
2005
1914
|
"listedBuildingConsent": {
|
|
2006
1915
|
"baspiRef": "A3.4.3",
|
|
2007
1916
|
"RDSRef": "WorksAlterationsChanges/ConsentApproval",
|
|
@@ -2069,7 +1978,6 @@
|
|
|
2069
1978
|
"type": "object",
|
|
2070
1979
|
"properties": {
|
|
2071
1980
|
"firstName": {
|
|
2072
|
-
"RDSRef": "",
|
|
2073
1981
|
"title": "First name",
|
|
2074
1982
|
"type": "string",
|
|
2075
1983
|
"minLength": 1
|
|
@@ -2088,8 +1996,7 @@
|
|
|
2088
1996
|
"title": "Address",
|
|
2089
1997
|
"$ref": "#/$defs/address"
|
|
2090
1998
|
}
|
|
2091
|
-
}
|
|
2092
|
-
"required": ["firstName", "lastName", "emailAddress", "address"]
|
|
1999
|
+
}
|
|
2093
2000
|
}
|
|
2094
2001
|
}
|
|
2095
2002
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Ajv = require("ajv");
|
|
2
2
|
const addFormats = require("ajv-formats");
|
|
3
3
|
|
|
4
|
-
const verifiedClaimsSchema = require("../schemas/pdtf-verified-claims.json");
|
|
4
|
+
const verifiedClaimsSchema = require("../schemas/v1/pdtf-verified-claims.json");
|
|
5
5
|
const exampleElectronicRecord = require("../examples/exampleElectronicRecord.json");
|
|
6
6
|
const exampleVouch = require("../examples/exampleVouch.json");
|
|
7
7
|
const exampleDocumentedVouch = require("../examples/exampleDocumentedVouch.json");
|
|
@@ -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
|
});
|
|
Binary file
|