@pdtf/schemas 3.0.0-25 → 3.0.0-27
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/v3/exampleTransaction.json +4 -1
- package/src/schemas/v3/combined.json +569 -429
- package/src/schemas/v3/overlays/baspi.json +29 -11
- package/src/schemas/v3/overlays/lpe1.json +201 -163
- package/src/schemas/v3/overlays/ta6.json +77 -21
- package/src/schemas/v3/overlays/ta7.json +226 -126
- package/src/schemas/v3/pdtf-transaction.json +400 -321
- package/src/schemas/v3/skeleton.json +65 -48
- package/src/utils/extractOverlay.js +5 -0
|
@@ -646,21 +646,30 @@
|
|
|
646
646
|
"collectsbuildingInsurancePremiums": {},
|
|
647
647
|
"dealsWithDayToDayMaintenanceOfManagedArea": {},
|
|
648
648
|
"organisesBuildingInsurance": {},
|
|
649
|
-
"dealsWithDayToDayMaintenanceOfBuilding": {
|
|
650
|
-
|
|
651
|
-
"
|
|
652
|
-
|
|
653
|
-
"
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
649
|
+
"dealsWithDayToDayMaintenanceOfBuilding": {
|
|
650
|
+
"assignedContact": {},
|
|
651
|
+
"lesseeInCharge": {
|
|
652
|
+
"nameOrOrganisation": {},
|
|
653
|
+
"address": {
|
|
654
|
+
"line1": {},
|
|
655
|
+
"line2": {},
|
|
656
|
+
"line3": {},
|
|
657
|
+
"town": {},
|
|
658
|
+
"postcode": {}
|
|
659
|
+
},
|
|
660
|
+
"telephone": {},
|
|
661
|
+
"emailAddress": {}
|
|
662
|
+
}
|
|
661
663
|
}
|
|
662
664
|
}
|
|
663
665
|
},
|
|
666
|
+
"consents": {
|
|
667
|
+
"changesInTermOfLease": {
|
|
668
|
+
"isSellerAwareOfChanges": {},
|
|
669
|
+
"details": {},
|
|
670
|
+
"attachments": {}
|
|
671
|
+
}
|
|
672
|
+
},
|
|
664
673
|
"transferAndRegistration": {
|
|
665
674
|
"deedOfCovenantRequired": {
|
|
666
675
|
"yesNoNotKnown": {},
|
|
@@ -675,10 +684,6 @@
|
|
|
675
684
|
"yesNo": {},
|
|
676
685
|
"details": {}
|
|
677
686
|
},
|
|
678
|
-
"changesInTermOfLease": {
|
|
679
|
-
"isSellerAwareOfChanges": {},
|
|
680
|
-
"details": {}
|
|
681
|
-
},
|
|
682
687
|
"requirementsToBeMemberOfManagementCompany": {
|
|
683
688
|
"yesNoNotApplicable": {},
|
|
684
689
|
"details": {}
|
|
@@ -767,11 +772,13 @@
|
|
|
767
772
|
}
|
|
768
773
|
},
|
|
769
774
|
"lastDecoratedPeriod": {
|
|
770
|
-
"
|
|
775
|
+
"externally": {
|
|
776
|
+
"year": {},
|
|
771
777
|
"from": {},
|
|
772
778
|
"to": {}
|
|
773
779
|
},
|
|
774
|
-
"
|
|
780
|
+
"internally": {
|
|
781
|
+
"year": {},
|
|
775
782
|
"from": {},
|
|
776
783
|
"to": {}
|
|
777
784
|
}
|
|
@@ -799,13 +806,6 @@
|
|
|
799
806
|
"allPropertiesContribute": {
|
|
800
807
|
"yesNo": {},
|
|
801
808
|
"details": {}
|
|
802
|
-
},
|
|
803
|
-
"deedOfCertificateServed": {
|
|
804
|
-
"yesNoNotApplicable": {},
|
|
805
|
-
"sellerCompletedDeedOfCertificate": {}
|
|
806
|
-
},
|
|
807
|
-
"landlordsCertificateServed": {
|
|
808
|
-
"yesNoNotApplicable": {}
|
|
809
809
|
}
|
|
810
810
|
},
|
|
811
811
|
"buildingsInsurance": {
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
"details": {}
|
|
851
851
|
}
|
|
852
852
|
},
|
|
853
|
-
"
|
|
853
|
+
"disputes": {
|
|
854
854
|
"sellerReceivedComplaint": {
|
|
855
855
|
"yesNo": {},
|
|
856
856
|
"details": {}
|
|
@@ -866,26 +866,42 @@
|
|
|
866
866
|
"yesNo": {},
|
|
867
867
|
"details": {}
|
|
868
868
|
},
|
|
869
|
-
"enfranchisementSteps": {
|
|
870
|
-
"yesNo": {},
|
|
871
|
-
"details": {}
|
|
872
|
-
},
|
|
873
869
|
"breachOfTermsOfLease": {
|
|
874
870
|
"yesNo": {},
|
|
875
871
|
"details": {}
|
|
876
872
|
}
|
|
877
873
|
},
|
|
878
|
-
"
|
|
874
|
+
"buildingSafetyAct": {
|
|
875
|
+
"isLeaseQualifying": {},
|
|
876
|
+
"deedOfCertificateServed": {
|
|
877
|
+
"yesNoNotApplicable": {},
|
|
878
|
+
"sellerCompletedDeedOfCertificate": {},
|
|
879
|
+
"attachments": {}
|
|
880
|
+
},
|
|
881
|
+
"landlordNotifiedOfSale": {},
|
|
882
|
+
"landlordsCertificateServed": {
|
|
883
|
+
"yesNoNotApplicable": {},
|
|
884
|
+
"attachments": {}
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"alterations": {
|
|
879
888
|
"sellerAwareOfAlterations": {
|
|
880
889
|
"yesNo": {},
|
|
881
890
|
"details": {},
|
|
882
891
|
"landlordConsentObtained": {}
|
|
883
|
-
}
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
"enfranchisement": {
|
|
884
895
|
"sellerOwnedProperty": {},
|
|
885
896
|
"sellerServedNoticeOnLandlord": {},
|
|
886
897
|
"sellerAwareOfNoticeOfCollectivePurchase": {},
|
|
887
898
|
"sellerAwareOfResponse": {},
|
|
888
|
-
"
|
|
899
|
+
"enfranchisementSteps": {
|
|
900
|
+
"yesNo": {},
|
|
901
|
+
"details": {}
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
"general": {
|
|
889
905
|
"otherPropertiesInManagedArea": {},
|
|
890
906
|
"leasedOnSimilarTerms": {
|
|
891
907
|
"yesNo": {},
|
|
@@ -905,9 +921,8 @@
|
|
|
905
921
|
}
|
|
906
922
|
},
|
|
907
923
|
"requiredDocuments": {
|
|
908
|
-
"
|
|
909
|
-
"
|
|
910
|
-
"landlordNotifiedOfSale": {},
|
|
924
|
+
"lease": {},
|
|
925
|
+
"deedsOfVariation": {},
|
|
911
926
|
"copyOfcorrespondence": {},
|
|
912
927
|
"serviceChargeAccounts": {},
|
|
913
928
|
"groundRent": {},
|
|
@@ -915,13 +930,14 @@
|
|
|
915
930
|
"arrangedBySeller": {},
|
|
916
931
|
"arrangedByLandlord": {}
|
|
917
932
|
},
|
|
933
|
+
"noticeOfSale": {},
|
|
934
|
+
"noticeOfBuildingCondition": {},
|
|
918
935
|
"managedAreasBuildingsInsurancePolicy": {},
|
|
919
936
|
"serviceChargeEstimatesCurrent": {},
|
|
920
937
|
"serviceChargeEstimatesPrevious": {},
|
|
921
938
|
"proposedWorksNotices": {},
|
|
922
939
|
"forfeitureDocumentation": {},
|
|
923
940
|
"additionalRegulationsNotInLease": {},
|
|
924
|
-
"deedsOfVariation": {},
|
|
925
941
|
"deedOfCovenant": {},
|
|
926
942
|
"certificateOfCompliance": {},
|
|
927
943
|
"certificateOfComplianceFee": {},
|
|
@@ -930,16 +946,16 @@
|
|
|
930
946
|
"noticesServedOnLessee": {},
|
|
931
947
|
"asbestosSurvey": {},
|
|
932
948
|
"managedAreaFireRiskAssessment": {},
|
|
933
|
-
"
|
|
934
|
-
|
|
935
|
-
|
|
949
|
+
"managementCompanyDocuments": {
|
|
950
|
+
"memorandumAndArticles": {},
|
|
951
|
+
"shareOrMembershipCertificate": {},
|
|
952
|
+
"companyAccounts": {}
|
|
953
|
+
},
|
|
936
954
|
"managementCompanyAGMMinutes": {},
|
|
937
|
-
"deedOfCertificate": {},
|
|
938
|
-
"landlordsCertificate": {},
|
|
939
955
|
"enforcementNotices": {}
|
|
940
956
|
},
|
|
941
|
-
"
|
|
942
|
-
"
|
|
957
|
+
"confirmationOfAccuracy": {
|
|
958
|
+
"confirmation": {},
|
|
943
959
|
"capacity": {}
|
|
944
960
|
}
|
|
945
961
|
},
|
|
@@ -1983,8 +1999,8 @@
|
|
|
1983
1999
|
"mainsFoulDrainage": {
|
|
1984
2000
|
"yesNo": {},
|
|
1985
2001
|
"details": {},
|
|
1986
|
-
"dateToBeConnected": {},
|
|
1987
2002
|
"supplier": {},
|
|
2003
|
+
"dateToBeConnected": {},
|
|
1988
2004
|
"offMainsDrainageSystem": {
|
|
1989
2005
|
"offMainsDrainageSystemType": {},
|
|
1990
2006
|
"otherConnectedProperties": {
|
|
@@ -2597,9 +2613,10 @@
|
|
|
2597
2613
|
"yesNo": {},
|
|
2598
2614
|
"yearWorkCarriedOut": {},
|
|
2599
2615
|
"details": {},
|
|
2600
|
-
"
|
|
2601
|
-
|
|
2602
|
-
|
|
2616
|
+
"suppliedCertificate": {
|
|
2617
|
+
"certificateType": {},
|
|
2618
|
+
"attachments": {}
|
|
2619
|
+
}
|
|
2603
2620
|
}
|
|
2604
2621
|
},
|
|
2605
2622
|
"smartHomeSystems": {
|
|
@@ -116,6 +116,11 @@ const extractOverlay = (sourceSchema, ref) => {
|
|
|
116
116
|
jp.set(returnSchema, `${path}/title`, element[refTitle]);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
const refDescription = `${ref}Description`;
|
|
120
|
+
if (element[refDescription]) {
|
|
121
|
+
jp.set(returnSchema, `${path}/description`, element[refDescription]);
|
|
122
|
+
}
|
|
123
|
+
|
|
119
124
|
const refEnum = `${ref}Enum`;
|
|
120
125
|
if (element[refEnum]) {
|
|
121
126
|
jp.set(returnSchema, `${path}/enum`, element[refEnum]);
|