@pdtf/schemas 3.6.0-25 → 3.6.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
CHANGED
|
@@ -22661,6 +22661,7 @@
|
|
|
22661
22661
|
"ta6ed6Ref": "11.5",
|
|
22662
22662
|
"con29DWRef": "2",
|
|
22663
22663
|
"title": "Drainage",
|
|
22664
|
+
"ta6ed6Title": "Drains and sewers",
|
|
22664
22665
|
"type": "object",
|
|
22665
22666
|
"baspi4Required": [
|
|
22666
22667
|
"mainsSurfaceWaterDrainage",
|
|
@@ -22686,8 +22687,7 @@
|
|
|
22686
22687
|
"ta6Required": ["mainsSurfaceWaterDrainage", "mainsFoulDrainage"],
|
|
22687
22688
|
"ta6ed6Required": [
|
|
22688
22689
|
"mainsFoulDrainage",
|
|
22689
|
-
"mainsSurfaceWaterDrainage"
|
|
22690
|
-
"offMainsDrainageSystem"
|
|
22690
|
+
"mainsSurfaceWaterDrainage"
|
|
22691
22691
|
],
|
|
22692
22692
|
"con29DWRequired": [
|
|
22693
22693
|
"mainsSurfaceWaterDrainage",
|
|
@@ -22702,7 +22702,6 @@
|
|
|
22702
22702
|
"riskOfInternalFlooding",
|
|
22703
22703
|
"distanceToNearestSewerageTreatment"
|
|
22704
22704
|
],
|
|
22705
|
-
"ta6ed6Title": "Drains and sewers",
|
|
22706
22705
|
"properties": {
|
|
22707
22706
|
"mainsSurfaceWaterDrainage": {
|
|
22708
22707
|
"ntsRef": "B3.3.1",
|
|
@@ -22820,6 +22819,7 @@
|
|
|
22820
22819
|
"baspi4Ref": "A7.1.0.11.1",
|
|
22821
22820
|
"baspi5Ref": "A7.1.0.11.1",
|
|
22822
22821
|
"ta6Ref": "12.4a1",
|
|
22822
|
+
"ta6ed6Ref": "11.5a1",
|
|
22823
22823
|
"type": "string",
|
|
22824
22824
|
"title": "",
|
|
22825
22825
|
"enum": ["Yes", "To be connected", "No", "Not known"],
|
|
@@ -23394,6 +23394,8 @@
|
|
|
23394
23394
|
"nts2Required": ["offMainsDrainageSystem"],
|
|
23395
23395
|
"ntslRequired": ["offMainsDrainageSystem"],
|
|
23396
23396
|
"ntsl2Required": ["offMainsDrainageSystem"],
|
|
23397
|
+
"ta6Required": ["offMainsDrainageSystem"],
|
|
23398
|
+
"ta6ed6Required": ["offMainsDrainageSystem"],
|
|
23397
23399
|
"sef25Required": ["associatedCost"]
|
|
23398
23400
|
}
|
|
23399
23401
|
]
|
|
@@ -26912,7 +26914,7 @@
|
|
|
26912
26914
|
"baspi4Required": ["yesNo"],
|
|
26913
26915
|
"baspi5Required": ["yesNo"],
|
|
26914
26916
|
"ta6Required": ["yesNo"],
|
|
26915
|
-
"
|
|
26917
|
+
"ta6ed6Required": ["yesNo"]
|
|
26916
26918
|
}
|
|
26917
26919
|
}
|
|
26918
26920
|
},
|
|
@@ -29734,20 +29736,7 @@
|
|
|
29734
29736
|
"baspi4Required": ["hasValidGuaranteesOrWarranties"],
|
|
29735
29737
|
"baspi5Required": ["hasValidGuaranteesOrWarranties"],
|
|
29736
29738
|
"ta6Required": ["hasValidGuaranteesOrWarranties"],
|
|
29737
|
-
"ta6ed6Required": [
|
|
29738
|
-
"hasValidGuaranteesOrWarranties",
|
|
29739
|
-
"newHomeWarranty",
|
|
29740
|
-
"dampProofingTreatment",
|
|
29741
|
-
"timberRotOrInfestationTreatment",
|
|
29742
|
-
"doubleGlazing",
|
|
29743
|
-
"roofingWork",
|
|
29744
|
-
"centralHeatingAndorPlumbing",
|
|
29745
|
-
"subsidenceWork",
|
|
29746
|
-
"insulation",
|
|
29747
|
-
"otherGuarantees",
|
|
29748
|
-
"outstandingClaimsOrApplications",
|
|
29749
|
-
"breachOfTermsOrConditions"
|
|
29750
|
-
],
|
|
29739
|
+
"ta6ed6Required": ["hasValidGuaranteesOrWarranties"],
|
|
29751
29740
|
"properties": {
|
|
29752
29741
|
"hasValidGuaranteesOrWarranties": {
|
|
29753
29742
|
"baspi4Ref": "B5.1",
|
|
@@ -3323,8 +3323,7 @@
|
|
|
3323
3323
|
"ta6ed6Ref": "11.5",
|
|
3324
3324
|
"required": [
|
|
3325
3325
|
"mainsFoulDrainage",
|
|
3326
|
-
"mainsSurfaceWaterDrainage"
|
|
3327
|
-
"offMainsDrainageSystem"
|
|
3326
|
+
"mainsSurfaceWaterDrainage"
|
|
3328
3327
|
],
|
|
3329
3328
|
"title": "Drains and sewers",
|
|
3330
3329
|
"properties": {
|
|
@@ -3674,7 +3673,10 @@
|
|
|
3674
3673
|
}
|
|
3675
3674
|
}
|
|
3676
3675
|
}
|
|
3677
|
-
}
|
|
3676
|
+
},
|
|
3677
|
+
"required": [
|
|
3678
|
+
"offMainsDrainageSystem"
|
|
3679
|
+
]
|
|
3678
3680
|
}
|
|
3679
3681
|
],
|
|
3680
3682
|
"required": [
|
|
@@ -3682,6 +3684,7 @@
|
|
|
3682
3684
|
],
|
|
3683
3685
|
"properties": {
|
|
3684
3686
|
"yesNo": {
|
|
3687
|
+
"ta6ed6Ref": "11.5a1",
|
|
3685
3688
|
"enum": [
|
|
3686
3689
|
"Yes",
|
|
3687
3690
|
"No",
|
|
@@ -5187,6 +5190,9 @@
|
|
|
5187
5190
|
},
|
|
5188
5191
|
"remedialMeasuresOnConstruction": {
|
|
5189
5192
|
"ta6ed6Ref": "8.4",
|
|
5193
|
+
"required": [
|
|
5194
|
+
"yesNo"
|
|
5195
|
+
],
|
|
5190
5196
|
"description": "Measures could have been undertaken during construction or while adding an extension.",
|
|
5191
5197
|
"properties": {
|
|
5192
5198
|
"yesNo": {
|
|
@@ -6149,18 +6155,7 @@
|
|
|
6149
6155
|
}
|
|
6150
6156
|
],
|
|
6151
6157
|
"required": [
|
|
6152
|
-
"hasValidGuaranteesOrWarranties"
|
|
6153
|
-
"newHomeWarranty",
|
|
6154
|
-
"dampProofingTreatment",
|
|
6155
|
-
"timberRotOrInfestationTreatment",
|
|
6156
|
-
"doubleGlazing",
|
|
6157
|
-
"roofingWork",
|
|
6158
|
-
"centralHeatingAndorPlumbing",
|
|
6159
|
-
"subsidenceWork",
|
|
6160
|
-
"insulation",
|
|
6161
|
-
"otherGuarantees",
|
|
6162
|
-
"outstandingClaimsOrApplications",
|
|
6163
|
-
"breachOfTermsOrConditions"
|
|
6158
|
+
"hasValidGuaranteesOrWarranties"
|
|
6164
6159
|
],
|
|
6165
6160
|
"properties": {
|
|
6166
6161
|
"hasValidGuaranteesOrWarranties": {
|
|
@@ -21761,10 +21761,7 @@
|
|
|
21761
21761
|
"Not known"
|
|
21762
21762
|
]
|
|
21763
21763
|
}
|
|
21764
|
-
}
|
|
21765
|
-
"ta6EdRequired": [
|
|
21766
|
-
"yesNo"
|
|
21767
|
-
]
|
|
21764
|
+
}
|
|
21768
21765
|
}
|
|
21769
21766
|
}
|
|
21770
21767
|
},
|
|
@@ -1596,9 +1596,17 @@ describe("TA6 Edition 6 overlay", () => {
|
|
|
1596
1596
|
},
|
|
1597
1597
|
},
|
|
1598
1598
|
drainage: {
|
|
1599
|
-
mainsFoulDrainage: {
|
|
1599
|
+
mainsFoulDrainage: {
|
|
1600
|
+
yesNo: "No",
|
|
1601
|
+
offMainsDrainageSystem: {
|
|
1602
|
+
offMainsDrainageSystemType: "Not known",
|
|
1603
|
+
otherConnectedProperties: { yesNo: "No" },
|
|
1604
|
+
plantOnOtherLand: { yesNo: "No" },
|
|
1605
|
+
plantRegistered: { yesNo: "No" },
|
|
1606
|
+
plantDrainsIntoWaterway: { yesNo: "Yes" },
|
|
1607
|
+
},
|
|
1608
|
+
},
|
|
1600
1609
|
mainsSurfaceWaterDrainage: { yesNo: "Yes" },
|
|
1601
|
-
offMainsDrainageSystem: {},
|
|
1602
1610
|
},
|
|
1603
1611
|
};
|
|
1604
1612
|
expect(validator(data)).toBe(true);
|
|
@@ -2157,7 +2165,7 @@ describe("TA6 Edition 6 overlay", () => {
|
|
|
2157
2165
|
expect(validator(exampleTransaction)).toBe(false);
|
|
2158
2166
|
const errorMessages = validator.errors.map((e) => e.message);
|
|
2159
2167
|
expect(errorMessages).toContain(
|
|
2160
|
-
"must have required property '
|
|
2168
|
+
"must have required property 'consents'"
|
|
2161
2169
|
);
|
|
2162
2170
|
});
|
|
2163
2171
|
|