@pdtf/schemas 3.6.0-36 → 3.6.0-38
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/README.md +52 -33
- package/docs/sef25-extensions-ui-spec.md +258 -49
- package/index.js +9 -0
- package/package.json +1 -1
- package/src/schemas/v3/combined.json +271 -27
- package/src/schemas/v3/compactSkeleton.txt +16 -2
- package/src/schemas/v3/overlays/extensions/as.json +4 -2
- package/src/schemas/v3/overlays/extensions/dk.json +32 -0
- package/src/schemas/v3/overlays/extensions/dr.json +4 -2
- package/src/schemas/v3/overlays/extensions/er.json +4 -2
- package/src/schemas/v3/overlays/extensions/fd.json +6 -3
- package/src/schemas/v3/overlays/extensions/hi.json +6 -3
- package/src/schemas/v3/overlays/extensions/hs.json +4 -2
- package/src/schemas/v3/overlays/extensions/ic.json +59 -0
- package/src/schemas/v3/overlays/extensions/jk.json +4 -2
- package/src/schemas/v3/overlays/extensions/la.json +4 -2
- package/src/schemas/v3/overlays/extensions/lc.json +64 -0
- package/src/schemas/v3/overlays/extensions/ma.json +6 -3
- package/src/schemas/v3/overlays/extensions/mc.json +4 -2
- package/src/schemas/v3/overlays/extensions/mi.json +55 -0
- package/src/schemas/v3/overlays/extensions/nd.json +43 -0
- package/src/schemas/v3/overlays/extensions/oa.json +4 -2
- package/src/schemas/v3/overlays/extensions/oc.json +4 -2
- package/src/schemas/v3/overlays/extensions/pc.json +2 -1
- package/src/schemas/v3/overlays/extensions/ph.json +11 -14
- package/src/schemas/v3/overlays/extensions/rw.json +68 -0
- package/src/schemas/v3/overlays/extensions/sb.json +4 -2
- package/src/schemas/v3/overlays/extensions/sc.json +34 -10
- package/src/schemas/v3/overlays/extensions/sd.json +63 -0
- package/src/schemas/v3/overlays/extensions/sf.json +4 -2
- package/src/schemas/v3/overlays/extensions/sl.json +4 -2
- package/src/schemas/v3/overlays/extensions/tf.json +6 -3
- package/src/schemas/v3/overlays/extensions/tr.json +73 -0
- package/src/schemas/v3/overlays/extensions/wg.json +250 -0
- package/src/schemas/v3/overlays/sef25.json +717 -10
- package/src/schemas/v3/pdtf-transaction.json +232 -10
- package/src/schemas/v3/skeleton.json +24 -5
- package/src/tests/v3/extensionOverlays.test.js +411 -3
- package/src/utils/extractExtensionOverlays.js +116 -4
|
@@ -225,6 +225,9 @@
|
|
|
225
225
|
yesNo
|
|
226
226
|
details
|
|
227
227
|
amount
|
|
228
|
+
titleRestrictions
|
|
229
|
+
yesNo
|
|
230
|
+
details
|
|
228
231
|
wholeFreeholdForSale
|
|
229
232
|
yesNo
|
|
230
233
|
details
|
|
@@ -955,6 +958,8 @@
|
|
|
955
958
|
vehicleTypeRestriction
|
|
956
959
|
yesNo
|
|
957
960
|
details
|
|
961
|
+
droppedKerbAccess
|
|
962
|
+
yesNo
|
|
958
963
|
electricVehicleChargingPoint
|
|
959
964
|
yesNo
|
|
960
965
|
chargerDetails
|
|
@@ -1875,6 +1880,9 @@
|
|
|
1875
1880
|
yesNo
|
|
1876
1881
|
details
|
|
1877
1882
|
attachments
|
|
1883
|
+
associatedCost
|
|
1884
|
+
frequency
|
|
1885
|
+
amount
|
|
1878
1886
|
panelProviderLease
|
|
1879
1887
|
yesNo
|
|
1880
1888
|
details
|
|
@@ -1924,8 +1932,8 @@
|
|
|
1924
1932
|
yesNo
|
|
1925
1933
|
details
|
|
1926
1934
|
associatedCost
|
|
1927
|
-
amount
|
|
1928
1935
|
frequency
|
|
1936
|
+
amount
|
|
1929
1937
|
supplier
|
|
1930
1938
|
stopcock
|
|
1931
1939
|
location
|
|
@@ -1983,8 +1991,8 @@
|
|
|
1983
1991
|
attachments
|
|
1984
1992
|
details
|
|
1985
1993
|
associatedCost
|
|
1986
|
-
amount
|
|
1987
1994
|
frequency
|
|
1995
|
+
amount
|
|
1988
1996
|
surfaceDrainageCharge
|
|
1989
1997
|
yesNo
|
|
1990
1998
|
details
|
|
@@ -2151,6 +2159,9 @@
|
|
|
2151
2159
|
yesNo
|
|
2152
2160
|
details
|
|
2153
2161
|
attachments
|
|
2162
|
+
privateRightOfWay
|
|
2163
|
+
yesNo
|
|
2164
|
+
details
|
|
2154
2165
|
rightsOfLight
|
|
2155
2166
|
yesNo
|
|
2156
2167
|
details
|
|
@@ -2209,6 +2220,9 @@
|
|
|
2209
2220
|
floodDefences
|
|
2210
2221
|
hasFloodDefences
|
|
2211
2222
|
details
|
|
2223
|
+
stormFireFloodDamage
|
|
2224
|
+
yesNo
|
|
2225
|
+
details
|
|
2212
2226
|
radon
|
|
2213
2227
|
radonRisk
|
|
2214
2228
|
riskIndicator
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"properties": {
|
|
3
|
+
"propertyPack": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"parking": {
|
|
6
|
+
"properties": {
|
|
7
|
+
"droppedKerbAccess": {
|
|
8
|
+
"ntsRef": "K1.1",
|
|
9
|
+
"required": [
|
|
10
|
+
"yesNo"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"yesNo": {
|
|
14
|
+
"ntsRef": "K1.1.1",
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"type": "object"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"droppedKerbAccess"
|
|
23
|
+
],
|
|
24
|
+
"ntsRef": "K1"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
30
|
+
"$id": "https://trust.propdata.org.uk/schemas/v3/overlays/extensions/dk.json",
|
|
31
|
+
"$comment": "Dropped kerb access to parking"
|
|
32
|
+
}
|
|
@@ -53,17 +53,20 @@
|
|
|
53
53
|
},
|
|
54
54
|
"required": [
|
|
55
55
|
"floodDefences"
|
|
56
|
-
]
|
|
56
|
+
],
|
|
57
|
+
"ntsRef": "C3.1.1"
|
|
57
58
|
}
|
|
58
59
|
},
|
|
59
60
|
"required": [
|
|
60
61
|
"flooding"
|
|
61
|
-
]
|
|
62
|
+
],
|
|
63
|
+
"ntsRef": "C3.1"
|
|
62
64
|
}
|
|
63
65
|
},
|
|
64
66
|
"required": [
|
|
65
67
|
"environmentalIssues"
|
|
66
|
-
]
|
|
68
|
+
],
|
|
69
|
+
"ntsRef": "0"
|
|
67
70
|
}
|
|
68
71
|
},
|
|
69
72
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"required": [
|
|
24
24
|
"centralHeatingInstalled"
|
|
25
|
-
]
|
|
25
|
+
],
|
|
26
|
+
"ntsRef": "B3.4.3"
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
29
|
"required": [
|
|
@@ -34,12 +35,14 @@
|
|
|
34
35
|
},
|
|
35
36
|
"required": [
|
|
36
37
|
"heatingSystem"
|
|
37
|
-
]
|
|
38
|
+
],
|
|
39
|
+
"ntsRef": "B3.4"
|
|
38
40
|
}
|
|
39
41
|
},
|
|
40
42
|
"required": [
|
|
41
43
|
"heating"
|
|
42
|
-
]
|
|
44
|
+
],
|
|
45
|
+
"ntsRef": "0"
|
|
43
46
|
}
|
|
44
47
|
},
|
|
45
48
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"properties": {
|
|
3
|
+
"propertyPack": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"insurance": {
|
|
6
|
+
"oneOf": [
|
|
7
|
+
null,
|
|
8
|
+
{
|
|
9
|
+
"properties": {
|
|
10
|
+
"insuranceClaims": {
|
|
11
|
+
"ntsRef": "I1.1",
|
|
12
|
+
"required": [
|
|
13
|
+
"yesNo"
|
|
14
|
+
],
|
|
15
|
+
"discriminator": {
|
|
16
|
+
"propertyName": "yesNo"
|
|
17
|
+
},
|
|
18
|
+
"properties": {
|
|
19
|
+
"yesNo": {
|
|
20
|
+
"ntsRef": "I1.1.1",
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"oneOf": [
|
|
25
|
+
{
|
|
26
|
+
"properties": {
|
|
27
|
+
"yesNo": {
|
|
28
|
+
"enum": [
|
|
29
|
+
"No"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"properties": {
|
|
36
|
+
"yesNo": {
|
|
37
|
+
"enum": [
|
|
38
|
+
"Yes"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"type": "object"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": [
|
|
48
|
+
"insuranceClaims"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
57
|
+
"$id": "https://trust.propdata.org.uk/schemas/v3/overlays/extensions/ic.json",
|
|
58
|
+
"$comment": "Insurance claims upfront for SEF25"
|
|
59
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"properties": {
|
|
3
|
+
"propertyPack": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"electricity": {
|
|
6
|
+
"properties": {
|
|
7
|
+
"solarPanels": {
|
|
8
|
+
"oneOf": [
|
|
9
|
+
null,
|
|
10
|
+
{
|
|
11
|
+
"properties": {
|
|
12
|
+
"panelsOwnedOutright": {
|
|
13
|
+
"oneOf": [
|
|
14
|
+
null,
|
|
15
|
+
{
|
|
16
|
+
"properties": {
|
|
17
|
+
"associatedCost": {
|
|
18
|
+
"ntsRef": "S1.1",
|
|
19
|
+
"required": [
|
|
20
|
+
"frequency"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"frequency": {
|
|
24
|
+
"ntsRef": "S1.1.2",
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"oneOf": [
|
|
29
|
+
{},
|
|
30
|
+
{
|
|
31
|
+
"properties": {
|
|
32
|
+
"amount": {
|
|
33
|
+
"ntsRef": "S1.1.1",
|
|
34
|
+
"type": "number"
|
|
35
|
+
},
|
|
36
|
+
"frequency": {
|
|
37
|
+
"enum": [
|
|
38
|
+
"Per month",
|
|
39
|
+
"Per year"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"type": "object"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"ntsRef": "S1"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
62
|
+
"$id": "https://trust.propdata.org.uk/schemas/v3/overlays/extensions/lc.json",
|
|
63
|
+
"$comment": "Solar panel lease costs"
|
|
64
|
+
}
|
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
},
|
|
61
61
|
"required": [
|
|
62
62
|
"contactDetails"
|
|
63
|
-
]
|
|
63
|
+
],
|
|
64
|
+
"ntsRef": "A3.2"
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
67
|
"required": [
|
|
@@ -73,12 +74,14 @@
|
|
|
73
74
|
},
|
|
74
75
|
"required": [
|
|
75
76
|
"ownershipsToBeTransferred"
|
|
76
|
-
]
|
|
77
|
+
],
|
|
78
|
+
"ntsRef": "A3"
|
|
77
79
|
}
|
|
78
80
|
},
|
|
79
81
|
"required": [
|
|
80
82
|
"ownership"
|
|
81
|
-
]
|
|
83
|
+
],
|
|
84
|
+
"ntsRef": "0"
|
|
82
85
|
}
|
|
83
86
|
},
|
|
84
87
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"properties": {
|
|
3
|
+
"propertyPack": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"additionalInformation": {
|
|
6
|
+
"properties": {
|
|
7
|
+
"otherMaterialIssue": {
|
|
8
|
+
"ntsRef": "M1.1",
|
|
9
|
+
"required": [
|
|
10
|
+
"yesNo"
|
|
11
|
+
],
|
|
12
|
+
"discriminator": {
|
|
13
|
+
"propertyName": "yesNo"
|
|
14
|
+
},
|
|
15
|
+
"properties": {
|
|
16
|
+
"yesNo": {
|
|
17
|
+
"ntsRef": "M1.1.1",
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"oneOf": [
|
|
22
|
+
{
|
|
23
|
+
"properties": {
|
|
24
|
+
"yesNo": {
|
|
25
|
+
"enum": [
|
|
26
|
+
"No"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"properties": {
|
|
33
|
+
"yesNo": {
|
|
34
|
+
"enum": [
|
|
35
|
+
"Yes"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"type": "object"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": [
|
|
45
|
+
"otherMaterialIssue"
|
|
46
|
+
],
|
|
47
|
+
"ntsRef": "M1"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
53
|
+
"$id": "https://trust.propdata.org.uk/schemas/v3/overlays/extensions/mi.json",
|
|
54
|
+
"$comment": "Other material issue upfront for SEF25"
|
|
55
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"properties": {
|
|
3
|
+
"propertyPack": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"notices": {
|
|
6
|
+
"properties": {
|
|
7
|
+
"neighbourDevelopment": {
|
|
8
|
+
"ntsRef": "N1.1",
|
|
9
|
+
"discriminator": {
|
|
10
|
+
"propertyName": "yesNo"
|
|
11
|
+
},
|
|
12
|
+
"oneOf": [
|
|
13
|
+
{
|
|
14
|
+
"properties": {
|
|
15
|
+
"yesNo": {
|
|
16
|
+
"enum": [
|
|
17
|
+
"No"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"properties": {
|
|
24
|
+
"yesNo": {
|
|
25
|
+
"enum": [
|
|
26
|
+
"Yes"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"type": "object"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"ntsRef": "N1"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
41
|
+
"$id": "https://trust.propdata.org.uk/schemas/v3/overlays/extensions/nd.json",
|
|
42
|
+
"$comment": "Neighbour development upfront for SEF25"
|
|
43
|
+
}
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
"propertyPack": {
|
|
4
4
|
"properties": {
|
|
5
5
|
"specialistIssues": {
|
|
6
|
+
"required": [
|
|
7
|
+
"wellsDitchesShaft",
|
|
8
|
+
"damagedOrExposedElectrics",
|
|
9
|
+
"damageToFlooringOrStaircases",
|
|
10
|
+
"knownAreasInPoorCondition"
|
|
11
|
+
],
|
|
6
12
|
"properties": {
|
|
7
13
|
"wellsDitchesShaft": {
|
|
8
14
|
"ntsRef": "H1.1",
|
|
@@ -45,8 +51,7 @@
|
|
|
45
51
|
}
|
|
46
52
|
}
|
|
47
53
|
}
|
|
48
|
-
]
|
|
49
|
-
"type": "object"
|
|
54
|
+
]
|
|
50
55
|
},
|
|
51
56
|
"damagedOrExposedElectrics": {
|
|
52
57
|
"ntsRef": "H1.2",
|
|
@@ -89,8 +94,7 @@
|
|
|
89
94
|
}
|
|
90
95
|
}
|
|
91
96
|
}
|
|
92
|
-
]
|
|
93
|
-
"type": "object"
|
|
97
|
+
]
|
|
94
98
|
},
|
|
95
99
|
"damageToFlooringOrStaircases": {
|
|
96
100
|
"ntsRef": "H1.3",
|
|
@@ -133,8 +137,7 @@
|
|
|
133
137
|
}
|
|
134
138
|
}
|
|
135
139
|
}
|
|
136
|
-
]
|
|
137
|
-
"type": "object"
|
|
140
|
+
]
|
|
138
141
|
},
|
|
139
142
|
"knownAreasInPoorCondition": {
|
|
140
143
|
"ntsRef": "H1.4",
|
|
@@ -177,16 +180,10 @@
|
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
}
|
|
180
|
-
]
|
|
181
|
-
"type": "object"
|
|
183
|
+
]
|
|
182
184
|
}
|
|
183
185
|
},
|
|
184
|
-
"
|
|
185
|
-
"wellsDitchesShaft",
|
|
186
|
-
"damagedOrExposedElectrics",
|
|
187
|
-
"damageToFlooringOrStaircases",
|
|
188
|
-
"knownAreasInPoorCondition"
|
|
189
|
-
]
|
|
186
|
+
"type": "object"
|
|
190
187
|
}
|
|
191
188
|
}
|
|
192
189
|
}
|