@pdtf/schemas 3.0.0-24 → 3.0.0-26
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 +61 -16
- package/src/schemas/v3/combined.json +660 -573
- package/src/schemas/v3/overlays/baspi.json +199 -190
- package/src/schemas/v3/overlays/lpe1.json +145 -118
- package/src/schemas/v3/overlays/piq.json +68 -72
- package/src/schemas/v3/overlays/rds.json +104 -108
- package/src/schemas/v3/overlays/ta6.json +85 -25
- package/src/schemas/v3/overlays/ta7.json +150 -95
- package/src/schemas/v3/pdtf-transaction.json +524 -480
- package/src/schemas/v3/skeleton.json +66 -60
- package/src/tests/v3/transactionSchema.test.js +1 -1
- package/src/utils/extractOverlay.js +5 -0
|
@@ -646,18 +646,20 @@
|
|
|
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
|
},
|
|
@@ -799,13 +801,6 @@
|
|
|
799
801
|
"allPropertiesContribute": {
|
|
800
802
|
"yesNo": {},
|
|
801
803
|
"details": {}
|
|
802
|
-
},
|
|
803
|
-
"deedOfCertificateServed": {
|
|
804
|
-
"yesNoNotApplicable": {},
|
|
805
|
-
"sellerCompletedDeedOfCertificate": {}
|
|
806
|
-
},
|
|
807
|
-
"landlordsCertificateServed": {
|
|
808
|
-
"yesNoNotApplicable": {}
|
|
809
804
|
}
|
|
810
805
|
},
|
|
811
806
|
"buildingsInsurance": {
|
|
@@ -875,6 +870,19 @@
|
|
|
875
870
|
"details": {}
|
|
876
871
|
}
|
|
877
872
|
},
|
|
873
|
+
"buildingSafety": {
|
|
874
|
+
"isLeaseQualifying": {},
|
|
875
|
+
"deedOfCertificateServed": {
|
|
876
|
+
"yesNoNotApplicable": {},
|
|
877
|
+
"sellerCompletedDeedOfCertificate": {},
|
|
878
|
+
"attachments": {}
|
|
879
|
+
},
|
|
880
|
+
"landlordNotifiedOfSale": {},
|
|
881
|
+
"landlordsCertificateServed": {
|
|
882
|
+
"yesNoNotApplicable": {},
|
|
883
|
+
"attachments": {}
|
|
884
|
+
}
|
|
885
|
+
},
|
|
878
886
|
"general": {
|
|
879
887
|
"sellerAwareOfAlterations": {
|
|
880
888
|
"yesNo": {},
|
|
@@ -885,7 +893,6 @@
|
|
|
885
893
|
"sellerServedNoticeOnLandlord": {},
|
|
886
894
|
"sellerAwareOfNoticeOfCollectivePurchase": {},
|
|
887
895
|
"sellerAwareOfResponse": {},
|
|
888
|
-
"isLeaseQualifying": {},
|
|
889
896
|
"otherPropertiesInManagedArea": {},
|
|
890
897
|
"leasedOnSimilarTerms": {
|
|
891
898
|
"yesNo": {},
|
|
@@ -905,9 +912,8 @@
|
|
|
905
912
|
}
|
|
906
913
|
},
|
|
907
914
|
"requiredDocuments": {
|
|
908
|
-
"
|
|
909
|
-
"
|
|
910
|
-
"landlordNotifiedOfSale": {},
|
|
915
|
+
"lease": {},
|
|
916
|
+
"deedsOfVariation": {},
|
|
911
917
|
"copyOfcorrespondence": {},
|
|
912
918
|
"serviceChargeAccounts": {},
|
|
913
919
|
"groundRent": {},
|
|
@@ -915,13 +921,14 @@
|
|
|
915
921
|
"arrangedBySeller": {},
|
|
916
922
|
"arrangedByLandlord": {}
|
|
917
923
|
},
|
|
924
|
+
"noticeOfSale": {},
|
|
925
|
+
"noticeOfBuildingCondition": {},
|
|
918
926
|
"managedAreasBuildingsInsurancePolicy": {},
|
|
919
927
|
"serviceChargeEstimatesCurrent": {},
|
|
920
928
|
"serviceChargeEstimatesPrevious": {},
|
|
921
929
|
"proposedWorksNotices": {},
|
|
922
930
|
"forfeitureDocumentation": {},
|
|
923
931
|
"additionalRegulationsNotInLease": {},
|
|
924
|
-
"deedsOfVariation": {},
|
|
925
932
|
"deedOfCovenant": {},
|
|
926
933
|
"certificateOfCompliance": {},
|
|
927
934
|
"certificateOfComplianceFee": {},
|
|
@@ -930,12 +937,12 @@
|
|
|
930
937
|
"noticesServedOnLessee": {},
|
|
931
938
|
"asbestosSurvey": {},
|
|
932
939
|
"managedAreaFireRiskAssessment": {},
|
|
933
|
-
"
|
|
934
|
-
|
|
935
|
-
|
|
940
|
+
"managementCompanyDocuments": {
|
|
941
|
+
"memorandumAndArticles": {},
|
|
942
|
+
"shareOrMembershipCertificate": {},
|
|
943
|
+
"companyAccounts": {}
|
|
944
|
+
},
|
|
936
945
|
"managementCompanyAGMMinutes": {},
|
|
937
|
-
"deedOfCertificate": {},
|
|
938
|
-
"landlordsCertificate": {},
|
|
939
946
|
"enforcementNotices": {}
|
|
940
947
|
},
|
|
941
948
|
"confirmation": {
|
|
@@ -1983,8 +1990,8 @@
|
|
|
1983
1990
|
"mainsFoulDrainage": {
|
|
1984
1991
|
"yesNo": {},
|
|
1985
1992
|
"details": {},
|
|
1986
|
-
"dateToBeConnected": {},
|
|
1987
1993
|
"supplier": {},
|
|
1994
|
+
"dateToBeConnected": {},
|
|
1988
1995
|
"offMainsDrainageSystem": {
|
|
1989
1996
|
"offMainsDrainageSystemType": {},
|
|
1990
1997
|
"otherConnectedProperties": {
|
|
@@ -2104,14 +2111,14 @@
|
|
|
2104
2111
|
"broadband": {
|
|
2105
2112
|
"typeOfConnection": {},
|
|
2106
2113
|
"predictedSpeed": {
|
|
2107
|
-
"
|
|
2108
|
-
"
|
|
2109
|
-
"
|
|
2110
|
-
"
|
|
2111
|
-
"
|
|
2112
|
-
"
|
|
2113
|
-
"
|
|
2114
|
-
"
|
|
2114
|
+
"maxBbPredictedDown": {},
|
|
2115
|
+
"maxBbPredictedUp": {},
|
|
2116
|
+
"maxSfbbPredictedDown": {},
|
|
2117
|
+
"maxSfbbPredictedUp": {},
|
|
2118
|
+
"maxUfbbPredictedDown": {},
|
|
2119
|
+
"maxUfbbPredictedUp": {},
|
|
2120
|
+
"maxPredictedDown": {},
|
|
2121
|
+
"maxPredictedUp": {}
|
|
2115
2122
|
}
|
|
2116
2123
|
},
|
|
2117
2124
|
"mobilePhone": {
|
|
@@ -2182,25 +2189,6 @@
|
|
|
2182
2189
|
"details": {}
|
|
2183
2190
|
}
|
|
2184
2191
|
},
|
|
2185
|
-
"boundaries": {
|
|
2186
|
-
"partOutsideLegalOwnership": {
|
|
2187
|
-
"yesNo": {},
|
|
2188
|
-
"details": {}
|
|
2189
|
-
},
|
|
2190
|
-
"partOnSeparateSiteOrDeed": {
|
|
2191
|
-
"yesNo": {},
|
|
2192
|
-
"details": {}
|
|
2193
|
-
},
|
|
2194
|
-
"boundariesDifferFromTitlePlan": {
|
|
2195
|
-
"yesNo": {},
|
|
2196
|
-
"details": {},
|
|
2197
|
-
"attachments": {}
|
|
2198
|
-
},
|
|
2199
|
-
"boundaryAlterationProposal": {
|
|
2200
|
-
"yesNo": {},
|
|
2201
|
-
"details": {}
|
|
2202
|
-
}
|
|
2203
|
-
},
|
|
2204
2192
|
"rightsAndInformalArrangements": {
|
|
2205
2193
|
"sharedContributions": {
|
|
2206
2194
|
"yesNo": {},
|
|
@@ -2548,6 +2536,23 @@
|
|
|
2548
2536
|
"attachments": {}
|
|
2549
2537
|
},
|
|
2550
2538
|
"legalBoundaries": {
|
|
2539
|
+
"partOutsideLegalOwnership": {
|
|
2540
|
+
"yesNo": {},
|
|
2541
|
+
"details": {}
|
|
2542
|
+
},
|
|
2543
|
+
"partOnSeparateSiteOrDeed": {
|
|
2544
|
+
"yesNo": {},
|
|
2545
|
+
"details": {}
|
|
2546
|
+
},
|
|
2547
|
+
"boundariesDifferFromTitlePlan": {
|
|
2548
|
+
"yesNo": {},
|
|
2549
|
+
"details": {},
|
|
2550
|
+
"attachments": {}
|
|
2551
|
+
},
|
|
2552
|
+
"boundaryAlterationProposal": {
|
|
2553
|
+
"yesNo": {},
|
|
2554
|
+
"details": {}
|
|
2555
|
+
},
|
|
2551
2556
|
"ownership": {
|
|
2552
2557
|
"areBoundariesUniform": {},
|
|
2553
2558
|
"uniformBoundaries": {
|
|
@@ -2599,9 +2604,10 @@
|
|
|
2599
2604
|
"yesNo": {},
|
|
2600
2605
|
"yearWorkCarriedOut": {},
|
|
2601
2606
|
"details": {},
|
|
2602
|
-
"
|
|
2603
|
-
|
|
2604
|
-
|
|
2607
|
+
"suppliedCertificate": {
|
|
2608
|
+
"certificateType": {},
|
|
2609
|
+
"attachments": {}
|
|
2610
|
+
}
|
|
2605
2611
|
}
|
|
2606
2612
|
},
|
|
2607
2613
|
"smartHomeSystems": {
|
|
@@ -30,7 +30,7 @@ test("exports a property pack schema, v3 with no overlay by default", () => {
|
|
|
30
30
|
test("sample is valid BASPI", () => {
|
|
31
31
|
const testSchema = getTransactionSchema(schemaId, ["baspiV4"]);
|
|
32
32
|
expect(testSchema.properties.propertyPack.baspiRef).toEqual("0");
|
|
33
|
-
const validator = getValidator(schemaId);
|
|
33
|
+
const validator = getValidator(schemaId, ["baspiV4"]);
|
|
34
34
|
const isValid = validator(exampleTransaction);
|
|
35
35
|
if (!isValid) console.log(validator.errors);
|
|
36
36
|
expect(isValid).toBe(true);
|
|
@@ -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]);
|