@pdtf/schemas 2.0.0-0 → 2.0.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 +20 -17
- package/package.json +1 -1
- package/src/examples/v2/exampleTransaction.json +81 -29
- package/src/schemas/v2/combined.json +6803 -436
- package/src/schemas/v2/overlays/baspi.json +329 -142
- package/src/schemas/v2/overlays/con29R.json +1 -1
- package/src/schemas/v2/overlays/fme1.json +44 -35
- package/src/schemas/v2/overlays/lpe1.json +65 -77
- package/src/schemas/v2/overlays/nts.json +39 -43
- package/src/schemas/v2/overlays/rds.json +10 -18
- package/src/schemas/v2/overlays/ta10.json +844 -1
- package/src/schemas/v2/overlays/ta6.json +14 -6
- package/src/schemas/v2/overlays/ta7.json +100 -34
- package/src/schemas/v2/{core.json → pdtf-transaction.json} +6365 -339
- package/src/tests/v1/transactionSchema.test.js +21 -13
- package/src/tests/v2/transactionSchema.test.js +20 -27
- package/src/tests/v2/verifiedClaimsValidator.test.js +128 -0
- package/src/utils/extractOverlay.js +20 -2
- package/src/utils/extractProperties.js +44 -0
|
@@ -897,7 +897,6 @@
|
|
|
897
897
|
"worksUnfinished": {
|
|
898
898
|
"ta6Ref": "4.3",
|
|
899
899
|
"title": "Are any of the works listed above unfinished?",
|
|
900
|
-
"description": "If yes, please provide details and explain why.",
|
|
901
900
|
"discriminator": {
|
|
902
901
|
"propertyName": "yesNo"
|
|
903
902
|
},
|
|
@@ -1147,7 +1146,7 @@
|
|
|
1147
1146
|
},
|
|
1148
1147
|
"otherNotices": {
|
|
1149
1148
|
"ta6Ref": "3.1",
|
|
1150
|
-
"title": "Any other type of notice",
|
|
1149
|
+
"title": "Any other type of notice?",
|
|
1151
1150
|
"discriminator": {
|
|
1152
1151
|
"propertyName": "yesNo"
|
|
1153
1152
|
},
|
|
@@ -1179,7 +1178,6 @@
|
|
|
1179
1178
|
"japaneseKnotweed": {
|
|
1180
1179
|
"ta6Ref": "7.8",
|
|
1181
1180
|
"title": "To your knowledge, is the property or neighbouring land, affected by Japanese knotweed or other invasive species?",
|
|
1182
|
-
"description": "If so ",
|
|
1183
1181
|
"discriminator": {
|
|
1184
1182
|
"propertyName": "yesNo"
|
|
1185
1183
|
},
|
|
@@ -1676,7 +1674,6 @@
|
|
|
1676
1674
|
"hasGreenDealLoan": {
|
|
1677
1675
|
"ta6Ref": "7.7",
|
|
1678
1676
|
"title": "Is this property subject to a Green Deal loan or other financed home improvement scheme?",
|
|
1679
|
-
"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",
|
|
1680
1677
|
"discriminator": {
|
|
1681
1678
|
"propertyName": "yesNo"
|
|
1682
1679
|
},
|
|
@@ -1753,7 +1750,6 @@
|
|
|
1753
1750
|
"boilerInstallationCertificate": {
|
|
1754
1751
|
"ta6Ref": "12.3b",
|
|
1755
1752
|
"title": "Was a gas boiler installed after 1st April 2005, or a solid fuel or oil boiler installed after 1st October 2010?",
|
|
1756
|
-
"description": "If yes, ",
|
|
1757
1753
|
"discriminator": {
|
|
1758
1754
|
"propertyName": "yesNo"
|
|
1759
1755
|
},
|
|
@@ -1946,7 +1942,6 @@
|
|
|
1946
1942
|
"neighbouringLandRights": {
|
|
1947
1943
|
"ta6Ref": "8.2",
|
|
1948
1944
|
"title": "Do any rights and arrangements exist over neighbouring land from which the property benefits? (e.g. taking wheelie bins along an accessway through a neighbour’s back garden, parking, access to maintain the boundaries from the neighbour’s side etc)",
|
|
1949
|
-
"description": "If yes,",
|
|
1950
1945
|
"discriminator": {
|
|
1951
1946
|
"propertyName": "yesNo"
|
|
1952
1947
|
},
|
|
@@ -2304,6 +2299,19 @@
|
|
|
2304
2299
|
}
|
|
2305
2300
|
}
|
|
2306
2301
|
}
|
|
2302
|
+
},
|
|
2303
|
+
"additionalLegalInfo": {
|
|
2304
|
+
"properties": {
|
|
2305
|
+
"completionAndMoving": {
|
|
2306
|
+
"properties": {
|
|
2307
|
+
"willRemoveAllRubbish": {
|
|
2308
|
+
"ta6Ref": "14.4",
|
|
2309
|
+
"title": "Please confirm that on completion you will remove all rubbish and items not included in the sale from the property including its garden, loft and any sheds or outbuildings.",
|
|
2310
|
+
"description": "When the property is cleared out you will be expected to take reasonable care when clearing the property, leaving it clean and tidy and repairing any damage caused when removing items from the property and making safe any light or electrical fittings which are being removed.\n\nKeys for all door and window locks, along with any alarm codes, should be available for the buyer on the day of completion. If there is any reason why you cannot do this you should let the estate agent and your property lawyer know. For all internet connected services e.g. doorbells, boiler controls, burglar alarms, CCTV cameras etc) access to them will need to be provided to the buyer on the day of completion so that they can control them or sign up to the service. If there is any reason why you cannot do this you should let the estate agent and your property lawyer know."
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2307
2315
|
}
|
|
2308
2316
|
}
|
|
2309
2317
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"ownershipsToBeTransferred": {
|
|
14
14
|
"ta7Ref": "1",
|
|
15
15
|
"title": "Ownerships to be transferred on sale",
|
|
16
|
+
"minItems": 1,
|
|
16
17
|
"items": {
|
|
17
18
|
"properties": {
|
|
18
19
|
"ownershipType": {
|
|
@@ -57,17 +58,53 @@
|
|
|
57
58
|
}
|
|
58
59
|
},
|
|
59
60
|
{
|
|
61
|
+
"required": [
|
|
62
|
+
"leaseholdInformation"
|
|
63
|
+
],
|
|
60
64
|
"properties": {
|
|
61
65
|
"leaseholdInformation": {
|
|
66
|
+
"required": [
|
|
67
|
+
"typeOfLeasehold",
|
|
68
|
+
"leaseTerm",
|
|
69
|
+
"contactDetails",
|
|
70
|
+
"transferAndRegistration",
|
|
71
|
+
"groundRent",
|
|
72
|
+
"ownershipAndManagement",
|
|
73
|
+
"disputesAndEnfranchisement",
|
|
74
|
+
"general",
|
|
75
|
+
"requiredDocuments"
|
|
76
|
+
],
|
|
62
77
|
"properties": {
|
|
78
|
+
"typeOfLeasehold": {
|
|
79
|
+
"properties": {
|
|
80
|
+
"leaseholdType": {
|
|
81
|
+
"ta7Ref": "1.1",
|
|
82
|
+
"title": "What type of leasehold property does the seller own?",
|
|
83
|
+
"description": "‘Flat’ includes maisonette and apartment.",
|
|
84
|
+
"enum": [
|
|
85
|
+
"Flat",
|
|
86
|
+
"Shared ownership",
|
|
87
|
+
"Long leasehold house"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
63
92
|
"contactDetails": {
|
|
64
93
|
"ta7Ref": "4.1",
|
|
65
94
|
"title": "Contact Details",
|
|
95
|
+
"required": [
|
|
96
|
+
"contacts"
|
|
97
|
+
],
|
|
66
98
|
"properties": {
|
|
67
99
|
"contacts": {
|
|
68
100
|
"ta7Ref": "4.1",
|
|
69
101
|
"title": "Contacts",
|
|
70
102
|
"description": "Complete the details for the relevant parties",
|
|
103
|
+
"required": [
|
|
104
|
+
"landlord",
|
|
105
|
+
"managementCompany",
|
|
106
|
+
"managingAgent"
|
|
107
|
+
],
|
|
71
108
|
"properties": {
|
|
72
109
|
"landlord": {
|
|
73
110
|
"ta7Ref": "4.1a",
|
|
@@ -109,7 +146,7 @@
|
|
|
109
146
|
"Management Company",
|
|
110
147
|
"Managing Agent",
|
|
111
148
|
"the Lessees",
|
|
112
|
-
"
|
|
149
|
+
"Not applicable"
|
|
113
150
|
]
|
|
114
151
|
}
|
|
115
152
|
}
|
|
@@ -117,6 +154,10 @@
|
|
|
117
154
|
}
|
|
118
155
|
},
|
|
119
156
|
"transferAndRegistration": {
|
|
157
|
+
"required": [
|
|
158
|
+
"awareOfConsents",
|
|
159
|
+
"changesInTermOfLease"
|
|
160
|
+
],
|
|
120
161
|
"properties": {
|
|
121
162
|
"awareOfConsents": {
|
|
122
163
|
"ta7Ref": "9.3",
|
|
@@ -210,7 +251,7 @@
|
|
|
210
251
|
},
|
|
211
252
|
"rentSubjectToIncrease": {
|
|
212
253
|
"ta7Ref": "1.2c",
|
|
213
|
-
"title": "Is the rent subject to increase?",
|
|
254
|
+
"title": "Is the ground rent subject to increase?",
|
|
214
255
|
"discriminator": {
|
|
215
256
|
"propertyName": "yesNo"
|
|
216
257
|
},
|
|
@@ -231,14 +272,14 @@
|
|
|
231
272
|
"Yes"
|
|
232
273
|
]
|
|
233
274
|
},
|
|
234
|
-
"
|
|
275
|
+
"rentReviewFrequency": {
|
|
235
276
|
"ta7Ref": "1.2d",
|
|
236
277
|
"title": "How often is the rent reviewed?"
|
|
237
278
|
},
|
|
238
279
|
"rentIncreaseCalculated": {
|
|
239
280
|
"ta7Ref": "1.2e",
|
|
240
281
|
"title": "How is the increase calculated?",
|
|
241
|
-
"description": "
|
|
282
|
+
"description": "e.g. set figure, doubling, in line with Retail Price Index, Consumer Price Index, etc"
|
|
242
283
|
}
|
|
243
284
|
}
|
|
244
285
|
}
|
|
@@ -247,6 +288,9 @@
|
|
|
247
288
|
}
|
|
248
289
|
}
|
|
249
290
|
],
|
|
291
|
+
"required": [
|
|
292
|
+
"isGroundRentPayable"
|
|
293
|
+
],
|
|
250
294
|
"properties": {
|
|
251
295
|
"isGroundRentPayable": {
|
|
252
296
|
"ta7Ref": "1.2",
|
|
@@ -261,6 +305,13 @@
|
|
|
261
305
|
"ownershipAndManagement": {
|
|
262
306
|
"ta7Ref": "2",
|
|
263
307
|
"title": "Ownership and management",
|
|
308
|
+
"required": [
|
|
309
|
+
"freeholdOwner",
|
|
310
|
+
"hasHeadlease",
|
|
311
|
+
"buildingManager",
|
|
312
|
+
"hasTenantCompanyDissolved",
|
|
313
|
+
"isManagingAgentEmployed"
|
|
314
|
+
],
|
|
264
315
|
"properties": {
|
|
265
316
|
"freeholdOwner": {
|
|
266
317
|
"ta7Ref": "2.1",
|
|
@@ -295,7 +346,7 @@
|
|
|
295
346
|
},
|
|
296
347
|
"headLeaseholderControlled": {
|
|
297
348
|
"ta7Ref": "1.2d",
|
|
298
|
-
"title": "
|
|
349
|
+
"title": "Is the head leaseholder a person or company that is controlled by the tenants?",
|
|
299
350
|
"enum": [
|
|
300
351
|
"Yes",
|
|
301
352
|
"No"
|
|
@@ -397,7 +448,7 @@
|
|
|
397
448
|
},
|
|
398
449
|
"problemInServiceChargeLevel": {
|
|
399
450
|
"ta7Ref": "5.6",
|
|
400
|
-
"title": "Does the seller know of any problems in the last three years regarding the level of service charges or with the management?
|
|
451
|
+
"title": "Does the seller know of any problems in the last three years regarding the level of service charges or with the management?",
|
|
401
452
|
"discriminator": {
|
|
402
453
|
"propertyName": "yesNo"
|
|
403
454
|
},
|
|
@@ -424,7 +475,7 @@
|
|
|
424
475
|
},
|
|
425
476
|
"serviceChargeChallenged": {
|
|
426
477
|
"ta7Ref": "5.7",
|
|
427
|
-
"title": "Has the seller challenged the service charge or any expense in the last three years?
|
|
478
|
+
"title": "Has the seller challenged the service charge or any expense in the last three years?",
|
|
428
479
|
"discriminator": {
|
|
429
480
|
"propertyName": "yesNo"
|
|
430
481
|
},
|
|
@@ -459,7 +510,7 @@
|
|
|
459
510
|
},
|
|
460
511
|
"difficultyInCollectingServiceCharge": {
|
|
461
512
|
"ta7Ref": "5.9",
|
|
462
|
-
"title": "Is the seller aware of any difficulties encountered in collecting the service charges from other flat owners?
|
|
513
|
+
"title": "Is the seller aware of any difficulties encountered in collecting the service charges from other flat owners?",
|
|
463
514
|
"discriminator": {
|
|
464
515
|
"propertyName": "yesNo"
|
|
465
516
|
},
|
|
@@ -486,7 +537,7 @@
|
|
|
486
537
|
},
|
|
487
538
|
"serviceChargeOwed": {
|
|
488
539
|
"ta7Ref": "5.10",
|
|
489
|
-
"title": "Does the seller owe any service charges, rent, insurance premium or other financial contribution?
|
|
540
|
+
"title": "Does the seller owe any service charges, rent, insurance premium or other financial contribution?",
|
|
490
541
|
"discriminator": {
|
|
491
542
|
"propertyName": "yesNo"
|
|
492
543
|
},
|
|
@@ -534,7 +585,7 @@
|
|
|
534
585
|
"properties": {
|
|
535
586
|
"yesNoNotApplicable": {
|
|
536
587
|
"enum": [
|
|
537
|
-
"
|
|
588
|
+
"Not applicable"
|
|
538
589
|
]
|
|
539
590
|
}
|
|
540
591
|
}
|
|
@@ -572,10 +623,14 @@
|
|
|
572
623
|
]
|
|
573
624
|
},
|
|
574
625
|
"disputesAndEnfranchisement": {
|
|
626
|
+
"required": [
|
|
627
|
+
"sellerReceivedComplaint",
|
|
628
|
+
"sellerSentComplaint"
|
|
629
|
+
],
|
|
575
630
|
"properties": {
|
|
576
631
|
"sellerReceivedComplaint": {
|
|
577
632
|
"ta7Ref": "8.1",
|
|
578
|
-
"title": "Has the seller received any complaint from the landlord, the management company or any neighbour about anything the seller has or has not done?
|
|
633
|
+
"title": "Has the seller received any complaint from the landlord, the management company or any neighbour about anything the seller has or has not done?",
|
|
579
634
|
"discriminator": {
|
|
580
635
|
"propertyName": "yesNo"
|
|
581
636
|
},
|
|
@@ -602,7 +657,7 @@
|
|
|
602
657
|
},
|
|
603
658
|
"sellerSentComplaint": {
|
|
604
659
|
"ta7Ref": "8.2",
|
|
605
|
-
"title": "Has the seller complained or had cause to complain to or about the landlord, the management company, or any neighbour?
|
|
660
|
+
"title": "Has the seller complained or had cause to complain to or about the landlord, the management company, or any neighbour?",
|
|
606
661
|
"discriminator": {
|
|
607
662
|
"propertyName": "yesNo"
|
|
608
663
|
},
|
|
@@ -630,21 +685,15 @@
|
|
|
630
685
|
}
|
|
631
686
|
},
|
|
632
687
|
"general": {
|
|
688
|
+
"required": [
|
|
689
|
+
"sellerAwareOfAlterations",
|
|
690
|
+
"sellerOwnedProperty",
|
|
691
|
+
"sellerServedNoticeOnLandlord",
|
|
692
|
+
"sellerAwareOfNoticeOfCollectivePurchase",
|
|
693
|
+
"sellerAwareOfResponse",
|
|
694
|
+
"isLeaseQualifying"
|
|
695
|
+
],
|
|
633
696
|
"properties": {
|
|
634
|
-
"typeOfLeasehold": {
|
|
635
|
-
"properties": {
|
|
636
|
-
"leaseholdType": {
|
|
637
|
-
"ta7Ref": "1.1",
|
|
638
|
-
"title": "What type of leasehold property does the seller own?",
|
|
639
|
-
"description": "‘Flat’ includes maisonette and apartment.",
|
|
640
|
-
"enum": [
|
|
641
|
-
"Flat",
|
|
642
|
-
"Shared Ownership",
|
|
643
|
-
"Long leasehold house"
|
|
644
|
-
]
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
697
|
"sellerAwareOfAlterations": {
|
|
649
698
|
"ta7Ref": "9.1",
|
|
650
699
|
"title": "Is the seller aware of any alterations having been made to the property since the lease was originally granted?",
|
|
@@ -731,6 +780,23 @@
|
|
|
731
780
|
}
|
|
732
781
|
},
|
|
733
782
|
"requiredDocuments": {
|
|
783
|
+
"required": [
|
|
784
|
+
"noticeOfSale",
|
|
785
|
+
"noticeOfBuildingCondition",
|
|
786
|
+
"landlordNotifiedOfSale",
|
|
787
|
+
"copyOfcorrespondence",
|
|
788
|
+
"serviceChargeAccounts",
|
|
789
|
+
"groundRent",
|
|
790
|
+
"buildingsInsurancePolicy",
|
|
791
|
+
"additionalRegulationsNotInLease",
|
|
792
|
+
"deedsOfVariation",
|
|
793
|
+
"deedOfCovenant",
|
|
794
|
+
"memorandumAndArticles",
|
|
795
|
+
"shareOrMembershipCertificate",
|
|
796
|
+
"companyAccounts",
|
|
797
|
+
"deedOfCertificate",
|
|
798
|
+
"landlordsCertificate"
|
|
799
|
+
],
|
|
734
800
|
"properties": {
|
|
735
801
|
"noticeOfSale": {
|
|
736
802
|
"ta7Ref": "6.1",
|
|
@@ -776,7 +842,7 @@
|
|
|
776
842
|
"enum": [
|
|
777
843
|
"Enclosed",
|
|
778
844
|
"To follow",
|
|
779
|
-
"
|
|
845
|
+
"Not applicable"
|
|
780
846
|
]
|
|
781
847
|
},
|
|
782
848
|
"groundRent": {
|
|
@@ -785,7 +851,7 @@
|
|
|
785
851
|
"enum": [
|
|
786
852
|
"Enclosed",
|
|
787
853
|
"To follow",
|
|
788
|
-
"
|
|
854
|
+
"Not applicable"
|
|
789
855
|
]
|
|
790
856
|
},
|
|
791
857
|
"buildingsInsurancePolicy": {
|
|
@@ -816,7 +882,7 @@
|
|
|
816
882
|
"enum": [
|
|
817
883
|
"Enclosed",
|
|
818
884
|
"To follow",
|
|
819
|
-
"
|
|
885
|
+
"Not applicable"
|
|
820
886
|
]
|
|
821
887
|
},
|
|
822
888
|
"deedsOfVariation": {
|
|
@@ -827,7 +893,7 @@
|
|
|
827
893
|
"To follow",
|
|
828
894
|
"Landlord's lawyer provides",
|
|
829
895
|
"Please supply draft",
|
|
830
|
-
"
|
|
896
|
+
"Not applicable"
|
|
831
897
|
]
|
|
832
898
|
},
|
|
833
899
|
"deedOfCovenant": {
|
|
@@ -836,7 +902,7 @@
|
|
|
836
902
|
"enum": [
|
|
837
903
|
"Enclosed",
|
|
838
904
|
"To follow",
|
|
839
|
-
"
|
|
905
|
+
"Not applicable"
|
|
840
906
|
]
|
|
841
907
|
},
|
|
842
908
|
"memorandumAndArticles": {
|
|
@@ -845,7 +911,7 @@
|
|
|
845
911
|
"enum": [
|
|
846
912
|
"Enclosed",
|
|
847
913
|
"To follow",
|
|
848
|
-
"
|
|
914
|
+
"Not applicable"
|
|
849
915
|
]
|
|
850
916
|
},
|
|
851
917
|
"shareOrMembershipCertificate": {
|
|
@@ -870,7 +936,7 @@
|
|
|
870
936
|
"enum": [
|
|
871
937
|
"Enclosed",
|
|
872
938
|
"To follow",
|
|
873
|
-
"
|
|
939
|
+
"Not applicable"
|
|
874
940
|
]
|
|
875
941
|
},
|
|
876
942
|
"landlordsCertificate": {
|
|
@@ -879,7 +945,7 @@
|
|
|
879
945
|
"enum": [
|
|
880
946
|
"Enclosed",
|
|
881
947
|
"To follow",
|
|
882
|
-
"
|
|
948
|
+
"Not applicable"
|
|
883
949
|
]
|
|
884
950
|
}
|
|
885
951
|
}
|