@pdtf/schemas 2.0.0-2 → 2.0.0-21
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 +33 -19
- package/package.json +1 -1
- package/src/examples/v2/exampleTransaction.json +86 -87
- package/src/schemas/v2/combined.json +7432 -1101
- package/src/schemas/v2/overlays/baspi.json +1087 -742
- package/src/schemas/v2/overlays/con29DW.json +256 -127
- package/src/schemas/v2/overlays/con29R.json +1 -1
- package/src/schemas/v2/overlays/fme1.json +46 -212
- package/src/schemas/v2/overlays/lpe1.json +92 -63
- package/src/schemas/v2/overlays/nts.json +39 -43
- package/src/schemas/v2/overlays/rds.json +339 -337
- package/src/schemas/v2/overlays/ta10.json +844 -1
- package/src/schemas/v2/overlays/ta6.json +330 -291
- package/src/schemas/v2/overlays/ta7.json +98 -33
- package/src/schemas/v2/{core.json → pdtf-transaction.json} +6901 -927
- package/src/schemas/v2/skeleton.json +3559 -0
- package/src/tests/v1/transactionSchema.test.js +21 -13
- package/src/tests/v2/transactionSchema.test.js +6 -4
- package/src/tests/v2/verifiedClaimsValidator.test.js +128 -0
- package/src/utils/extractOverlay.js +47 -9
- package/src/utils/extractProperties.js +44 -0
- package/src/schemas/v2/merged.json +0 -28697
|
@@ -58,17 +58,53 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
+
"required": [
|
|
62
|
+
"leaseholdInformation"
|
|
63
|
+
],
|
|
61
64
|
"properties": {
|
|
62
65
|
"leaseholdInformation": {
|
|
66
|
+
"required": [
|
|
67
|
+
"typeOfLeasehold",
|
|
68
|
+
"leaseTerm",
|
|
69
|
+
"contactDetails",
|
|
70
|
+
"transferAndRegistration",
|
|
71
|
+
"groundRent",
|
|
72
|
+
"ownershipAndManagement",
|
|
73
|
+
"disputesAndEnfranchisement",
|
|
74
|
+
"general",
|
|
75
|
+
"requiredDocuments"
|
|
76
|
+
],
|
|
63
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
|
+
},
|
|
64
92
|
"contactDetails": {
|
|
65
93
|
"ta7Ref": "4.1",
|
|
66
94
|
"title": "Contact Details",
|
|
95
|
+
"required": [
|
|
96
|
+
"contacts"
|
|
97
|
+
],
|
|
67
98
|
"properties": {
|
|
68
99
|
"contacts": {
|
|
69
100
|
"ta7Ref": "4.1",
|
|
70
101
|
"title": "Contacts",
|
|
71
102
|
"description": "Complete the details for the relevant parties",
|
|
103
|
+
"required": [
|
|
104
|
+
"landlord",
|
|
105
|
+
"managementCompany",
|
|
106
|
+
"managingAgent"
|
|
107
|
+
],
|
|
72
108
|
"properties": {
|
|
73
109
|
"landlord": {
|
|
74
110
|
"ta7Ref": "4.1a",
|
|
@@ -110,7 +146,7 @@
|
|
|
110
146
|
"Management Company",
|
|
111
147
|
"Managing Agent",
|
|
112
148
|
"the Lessees",
|
|
113
|
-
"
|
|
149
|
+
"Not applicable"
|
|
114
150
|
]
|
|
115
151
|
}
|
|
116
152
|
}
|
|
@@ -118,6 +154,10 @@
|
|
|
118
154
|
}
|
|
119
155
|
},
|
|
120
156
|
"transferAndRegistration": {
|
|
157
|
+
"required": [
|
|
158
|
+
"awareOfConsents",
|
|
159
|
+
"changesInTermOfLease"
|
|
160
|
+
],
|
|
121
161
|
"properties": {
|
|
122
162
|
"awareOfConsents": {
|
|
123
163
|
"ta7Ref": "9.3",
|
|
@@ -203,7 +243,7 @@
|
|
|
203
243
|
},
|
|
204
244
|
"annualGroundRent": {
|
|
205
245
|
"ta7Ref": "1.2a",
|
|
206
|
-
"title": "What is the annual ground rent payable?"
|
|
246
|
+
"title": "What is the annual ground rent payable? (£)"
|
|
207
247
|
},
|
|
208
248
|
"groundRentFrequency": {
|
|
209
249
|
"ta7Ref": "1.2b",
|
|
@@ -239,7 +279,7 @@
|
|
|
239
279
|
"rentIncreaseCalculated": {
|
|
240
280
|
"ta7Ref": "1.2e",
|
|
241
281
|
"title": "How is the increase calculated?",
|
|
242
|
-
"description": "
|
|
282
|
+
"description": "e.g. set figure, doubling, in line with Retail Price Index, Consumer Price Index, etc"
|
|
243
283
|
}
|
|
244
284
|
}
|
|
245
285
|
}
|
|
@@ -248,6 +288,9 @@
|
|
|
248
288
|
}
|
|
249
289
|
}
|
|
250
290
|
],
|
|
291
|
+
"required": [
|
|
292
|
+
"isGroundRentPayable"
|
|
293
|
+
],
|
|
251
294
|
"properties": {
|
|
252
295
|
"isGroundRentPayable": {
|
|
253
296
|
"ta7Ref": "1.2",
|
|
@@ -262,6 +305,13 @@
|
|
|
262
305
|
"ownershipAndManagement": {
|
|
263
306
|
"ta7Ref": "2",
|
|
264
307
|
"title": "Ownership and management",
|
|
308
|
+
"required": [
|
|
309
|
+
"freeholdOwner",
|
|
310
|
+
"hasHeadlease",
|
|
311
|
+
"buildingManager",
|
|
312
|
+
"hasTenantCompanyDissolved",
|
|
313
|
+
"isManagingAgentEmployed"
|
|
314
|
+
],
|
|
265
315
|
"properties": {
|
|
266
316
|
"freeholdOwner": {
|
|
267
317
|
"ta7Ref": "2.1",
|
|
@@ -296,7 +346,7 @@
|
|
|
296
346
|
},
|
|
297
347
|
"headLeaseholderControlled": {
|
|
298
348
|
"ta7Ref": "1.2d",
|
|
299
|
-
"title": "
|
|
349
|
+
"title": "Is the head leaseholder a person or company that is controlled by the tenants?",
|
|
300
350
|
"enum": [
|
|
301
351
|
"Yes",
|
|
302
352
|
"No"
|
|
@@ -398,7 +448,7 @@
|
|
|
398
448
|
},
|
|
399
449
|
"problemInServiceChargeLevel": {
|
|
400
450
|
"ta7Ref": "5.6",
|
|
401
|
-
"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?",
|
|
402
452
|
"discriminator": {
|
|
403
453
|
"propertyName": "yesNo"
|
|
404
454
|
},
|
|
@@ -425,7 +475,7 @@
|
|
|
425
475
|
},
|
|
426
476
|
"serviceChargeChallenged": {
|
|
427
477
|
"ta7Ref": "5.7",
|
|
428
|
-
"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?",
|
|
429
479
|
"discriminator": {
|
|
430
480
|
"propertyName": "yesNo"
|
|
431
481
|
},
|
|
@@ -460,7 +510,7 @@
|
|
|
460
510
|
},
|
|
461
511
|
"difficultyInCollectingServiceCharge": {
|
|
462
512
|
"ta7Ref": "5.9",
|
|
463
|
-
"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?",
|
|
464
514
|
"discriminator": {
|
|
465
515
|
"propertyName": "yesNo"
|
|
466
516
|
},
|
|
@@ -487,7 +537,7 @@
|
|
|
487
537
|
},
|
|
488
538
|
"serviceChargeOwed": {
|
|
489
539
|
"ta7Ref": "5.10",
|
|
490
|
-
"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?",
|
|
491
541
|
"discriminator": {
|
|
492
542
|
"propertyName": "yesNo"
|
|
493
543
|
},
|
|
@@ -535,7 +585,7 @@
|
|
|
535
585
|
"properties": {
|
|
536
586
|
"yesNoNotApplicable": {
|
|
537
587
|
"enum": [
|
|
538
|
-
"
|
|
588
|
+
"Not applicable"
|
|
539
589
|
]
|
|
540
590
|
}
|
|
541
591
|
}
|
|
@@ -573,10 +623,14 @@
|
|
|
573
623
|
]
|
|
574
624
|
},
|
|
575
625
|
"disputesAndEnfranchisement": {
|
|
626
|
+
"required": [
|
|
627
|
+
"sellerReceivedComplaint",
|
|
628
|
+
"sellerSentComplaint"
|
|
629
|
+
],
|
|
576
630
|
"properties": {
|
|
577
631
|
"sellerReceivedComplaint": {
|
|
578
632
|
"ta7Ref": "8.1",
|
|
579
|
-
"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?",
|
|
580
634
|
"discriminator": {
|
|
581
635
|
"propertyName": "yesNo"
|
|
582
636
|
},
|
|
@@ -603,7 +657,7 @@
|
|
|
603
657
|
},
|
|
604
658
|
"sellerSentComplaint": {
|
|
605
659
|
"ta7Ref": "8.2",
|
|
606
|
-
"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?",
|
|
607
661
|
"discriminator": {
|
|
608
662
|
"propertyName": "yesNo"
|
|
609
663
|
},
|
|
@@ -631,21 +685,15 @@
|
|
|
631
685
|
}
|
|
632
686
|
},
|
|
633
687
|
"general": {
|
|
688
|
+
"required": [
|
|
689
|
+
"sellerAwareOfAlterations",
|
|
690
|
+
"sellerOwnedProperty",
|
|
691
|
+
"sellerServedNoticeOnLandlord",
|
|
692
|
+
"sellerAwareOfNoticeOfCollectivePurchase",
|
|
693
|
+
"sellerAwareOfResponse",
|
|
694
|
+
"isLeaseQualifying"
|
|
695
|
+
],
|
|
634
696
|
"properties": {
|
|
635
|
-
"typeOfLeasehold": {
|
|
636
|
-
"properties": {
|
|
637
|
-
"leaseholdType": {
|
|
638
|
-
"ta7Ref": "1.1",
|
|
639
|
-
"title": "What type of leasehold property does the seller own?",
|
|
640
|
-
"description": "‘Flat’ includes maisonette and apartment.",
|
|
641
|
-
"enum": [
|
|
642
|
-
"Flat",
|
|
643
|
-
"Shared ownership",
|
|
644
|
-
"Long leasehold house"
|
|
645
|
-
]
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
697
|
"sellerAwareOfAlterations": {
|
|
650
698
|
"ta7Ref": "9.1",
|
|
651
699
|
"title": "Is the seller aware of any alterations having been made to the property since the lease was originally granted?",
|
|
@@ -732,6 +780,23 @@
|
|
|
732
780
|
}
|
|
733
781
|
},
|
|
734
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
|
+
],
|
|
735
800
|
"properties": {
|
|
736
801
|
"noticeOfSale": {
|
|
737
802
|
"ta7Ref": "6.1",
|
|
@@ -777,7 +842,7 @@
|
|
|
777
842
|
"enum": [
|
|
778
843
|
"Enclosed",
|
|
779
844
|
"To follow",
|
|
780
|
-
"
|
|
845
|
+
"Not applicable"
|
|
781
846
|
]
|
|
782
847
|
},
|
|
783
848
|
"groundRent": {
|
|
@@ -786,7 +851,7 @@
|
|
|
786
851
|
"enum": [
|
|
787
852
|
"Enclosed",
|
|
788
853
|
"To follow",
|
|
789
|
-
"
|
|
854
|
+
"Not applicable"
|
|
790
855
|
]
|
|
791
856
|
},
|
|
792
857
|
"buildingsInsurancePolicy": {
|
|
@@ -817,7 +882,7 @@
|
|
|
817
882
|
"enum": [
|
|
818
883
|
"Enclosed",
|
|
819
884
|
"To follow",
|
|
820
|
-
"
|
|
885
|
+
"Not applicable"
|
|
821
886
|
]
|
|
822
887
|
},
|
|
823
888
|
"deedsOfVariation": {
|
|
@@ -828,7 +893,7 @@
|
|
|
828
893
|
"To follow",
|
|
829
894
|
"Landlord's lawyer provides",
|
|
830
895
|
"Please supply draft",
|
|
831
|
-
"
|
|
896
|
+
"Not applicable"
|
|
832
897
|
]
|
|
833
898
|
},
|
|
834
899
|
"deedOfCovenant": {
|
|
@@ -837,7 +902,7 @@
|
|
|
837
902
|
"enum": [
|
|
838
903
|
"Enclosed",
|
|
839
904
|
"To follow",
|
|
840
|
-
"
|
|
905
|
+
"Not applicable"
|
|
841
906
|
]
|
|
842
907
|
},
|
|
843
908
|
"memorandumAndArticles": {
|
|
@@ -846,7 +911,7 @@
|
|
|
846
911
|
"enum": [
|
|
847
912
|
"Enclosed",
|
|
848
913
|
"To follow",
|
|
849
|
-
"
|
|
914
|
+
"Not applicable"
|
|
850
915
|
]
|
|
851
916
|
},
|
|
852
917
|
"shareOrMembershipCertificate": {
|
|
@@ -871,7 +936,7 @@
|
|
|
871
936
|
"enum": [
|
|
872
937
|
"Enclosed",
|
|
873
938
|
"To follow",
|
|
874
|
-
"
|
|
939
|
+
"Not applicable"
|
|
875
940
|
]
|
|
876
941
|
},
|
|
877
942
|
"landlordsCertificate": {
|
|
@@ -880,7 +945,7 @@
|
|
|
880
945
|
"enum": [
|
|
881
946
|
"Enclosed",
|
|
882
947
|
"To follow",
|
|
883
|
-
"
|
|
948
|
+
"Not applicable"
|
|
884
949
|
]
|
|
885
950
|
}
|
|
886
951
|
}
|