@pdtf/schemas 3.6.0-25 → 3.6.0-28
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 -2
- package/src/schemas/v3/combined.json +7 -20
- package/src/schemas/v3/overlays/extensions/dr.json +5 -7
- package/src/schemas/v3/overlays/nts2.json +0 -3
- package/src/schemas/v3/overlays/ntsl2.json +0 -3
- package/src/schemas/v3/overlays/ta6.json +4 -1
- package/src/schemas/v3/overlays/ta6ed6.json +10 -15
- package/src/schemas/v3/pdtf-transaction.json +1 -4
- package/src/tests/v3/ta6ed6.test.js +11 -3
package/package.json
CHANGED
|
@@ -15686,8 +15686,6 @@
|
|
|
15686
15686
|
"attachments": {
|
|
15687
15687
|
"baspi4Ref": "A5.1.3",
|
|
15688
15688
|
"baspi5Ref": "A5.1.3",
|
|
15689
|
-
"nts2Ref": "A5.1.3",
|
|
15690
|
-
"ntsl2Ref": "A5.1.3",
|
|
15691
15689
|
"title": "Attachments",
|
|
15692
15690
|
"type": "string",
|
|
15693
15691
|
"enum": ["Attached", "To follow"]
|
|
@@ -22661,6 +22659,7 @@
|
|
|
22661
22659
|
"ta6ed6Ref": "11.5",
|
|
22662
22660
|
"con29DWRef": "2",
|
|
22663
22661
|
"title": "Drainage",
|
|
22662
|
+
"ta6ed6Title": "Drains and sewers",
|
|
22664
22663
|
"type": "object",
|
|
22665
22664
|
"baspi4Required": [
|
|
22666
22665
|
"mainsSurfaceWaterDrainage",
|
|
@@ -22686,8 +22685,7 @@
|
|
|
22686
22685
|
"ta6Required": ["mainsSurfaceWaterDrainage", "mainsFoulDrainage"],
|
|
22687
22686
|
"ta6ed6Required": [
|
|
22688
22687
|
"mainsFoulDrainage",
|
|
22689
|
-
"mainsSurfaceWaterDrainage"
|
|
22690
|
-
"offMainsDrainageSystem"
|
|
22688
|
+
"mainsSurfaceWaterDrainage"
|
|
22691
22689
|
],
|
|
22692
22690
|
"con29DWRequired": [
|
|
22693
22691
|
"mainsSurfaceWaterDrainage",
|
|
@@ -22702,7 +22700,6 @@
|
|
|
22702
22700
|
"riskOfInternalFlooding",
|
|
22703
22701
|
"distanceToNearestSewerageTreatment"
|
|
22704
22702
|
],
|
|
22705
|
-
"ta6ed6Title": "Drains and sewers",
|
|
22706
22703
|
"properties": {
|
|
22707
22704
|
"mainsSurfaceWaterDrainage": {
|
|
22708
22705
|
"ntsRef": "B3.3.1",
|
|
@@ -22820,6 +22817,7 @@
|
|
|
22820
22817
|
"baspi4Ref": "A7.1.0.11.1",
|
|
22821
22818
|
"baspi5Ref": "A7.1.0.11.1",
|
|
22822
22819
|
"ta6Ref": "12.4a1",
|
|
22820
|
+
"ta6ed6Ref": "11.5a1",
|
|
22823
22821
|
"type": "string",
|
|
22824
22822
|
"title": "",
|
|
22825
22823
|
"enum": ["Yes", "To be connected", "No", "Not known"],
|
|
@@ -23394,6 +23392,8 @@
|
|
|
23394
23392
|
"nts2Required": ["offMainsDrainageSystem"],
|
|
23395
23393
|
"ntslRequired": ["offMainsDrainageSystem"],
|
|
23396
23394
|
"ntsl2Required": ["offMainsDrainageSystem"],
|
|
23395
|
+
"ta6Required": ["offMainsDrainageSystem"],
|
|
23396
|
+
"ta6ed6Required": ["offMainsDrainageSystem"],
|
|
23397
23397
|
"sef25Required": ["associatedCost"]
|
|
23398
23398
|
}
|
|
23399
23399
|
]
|
|
@@ -26912,7 +26912,7 @@
|
|
|
26912
26912
|
"baspi4Required": ["yesNo"],
|
|
26913
26913
|
"baspi5Required": ["yesNo"],
|
|
26914
26914
|
"ta6Required": ["yesNo"],
|
|
26915
|
-
"
|
|
26915
|
+
"ta6ed6Required": ["yesNo"]
|
|
26916
26916
|
}
|
|
26917
26917
|
}
|
|
26918
26918
|
},
|
|
@@ -29734,20 +29734,7 @@
|
|
|
29734
29734
|
"baspi4Required": ["hasValidGuaranteesOrWarranties"],
|
|
29735
29735
|
"baspi5Required": ["hasValidGuaranteesOrWarranties"],
|
|
29736
29736
|
"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
|
-
],
|
|
29737
|
+
"ta6ed6Required": ["hasValidGuaranteesOrWarranties"],
|
|
29751
29738
|
"properties": {
|
|
29752
29739
|
"hasValidGuaranteesOrWarranties": {
|
|
29753
29740
|
"baspi4Ref": "B5.1",
|
|
@@ -38,17 +38,15 @@
|
|
|
38
38
|
"type": "string",
|
|
39
39
|
"minLength": 1
|
|
40
40
|
},
|
|
41
|
-
"
|
|
42
|
-
"ntsRef": "A5.1.3",
|
|
43
|
-
"type": "string",
|
|
41
|
+
"yesNo": {
|
|
44
42
|
"enum": [
|
|
45
|
-
"
|
|
46
|
-
"To follow"
|
|
43
|
+
"Yes"
|
|
47
44
|
]
|
|
48
45
|
},
|
|
49
|
-
"
|
|
46
|
+
"attachments": {
|
|
50
47
|
"enum": [
|
|
51
|
-
"
|
|
48
|
+
"Attached",
|
|
49
|
+
"To follow"
|
|
52
50
|
]
|
|
53
51
|
}
|
|
54
52
|
}
|
|
@@ -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
|
|