@pdtf/schemas 3.6.0-41 → 3.6.0-43
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/index.js +4 -0
- package/package.json +1 -1
- package/src/schemas/v3/combined.json +156 -21
- package/src/schemas/v3/overlays/extensions/ac.json +288 -0
- package/src/schemas/v3/overlays/extensions/ta.json +240 -0
- package/src/schemas/v3/overlays/sef25.json +572 -0
- package/src/schemas/v3/overlays/ta6ed6.json +55 -20
- package/src/schemas/v3/overlays/ta7ed5.json +17 -5
- package/src/tests/v3/extensionOverlays.test.js +135 -1
- package/src/tests/v3/ta6ed6.test.js +58 -1
- package/src/tests/v3/ta7ed5.test.js +34 -1
- package/src/utils/extractExtensionOverlays.js +43 -0
- package/src/utils/extractOverlay.js +22 -20
- package/.claude/plans/not-seeing-associated-costs.md +0 -99
- package/.claude/settings.local.json +0 -61
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
{
|
|
2
|
+
"properties": {
|
|
3
|
+
"propertyPack": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"alterationsAndChanges": {
|
|
6
|
+
"properties": {
|
|
7
|
+
"extension": {
|
|
8
|
+
"properties": {
|
|
9
|
+
"yesNo": {
|
|
10
|
+
"ntsRef": "A1.1.1",
|
|
11
|
+
"type": "string"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"oneOf": [
|
|
15
|
+
null,
|
|
16
|
+
{
|
|
17
|
+
"properties": {
|
|
18
|
+
"details": {
|
|
19
|
+
"ntsRef": "A1.1.2",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
},
|
|
23
|
+
"planningPermission": {
|
|
24
|
+
"properties": {
|
|
25
|
+
"yesNo": {
|
|
26
|
+
"ntsRef": "A1.1.3.1",
|
|
27
|
+
"type": "string"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": [
|
|
31
|
+
"yesNo"
|
|
32
|
+
],
|
|
33
|
+
"ntsRef": "A1.1.3"
|
|
34
|
+
},
|
|
35
|
+
"buildingRegApproval": {
|
|
36
|
+
"properties": {
|
|
37
|
+
"yesNo": {
|
|
38
|
+
"ntsRef": "A1.1.4.1",
|
|
39
|
+
"type": "string"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": [
|
|
43
|
+
"yesNo"
|
|
44
|
+
],
|
|
45
|
+
"ntsRef": "A1.1.4"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"details",
|
|
50
|
+
"planningPermission",
|
|
51
|
+
"buildingRegApproval"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"required": [
|
|
56
|
+
"yesNo"
|
|
57
|
+
],
|
|
58
|
+
"ntsRef": "A1.1"
|
|
59
|
+
},
|
|
60
|
+
"loftConversion": {
|
|
61
|
+
"properties": {
|
|
62
|
+
"yesNo": {
|
|
63
|
+
"ntsRef": "A1.2.1",
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"oneOf": [
|
|
68
|
+
null,
|
|
69
|
+
{
|
|
70
|
+
"properties": {
|
|
71
|
+
"details": {
|
|
72
|
+
"ntsRef": "A1.2.2",
|
|
73
|
+
"type": "string",
|
|
74
|
+
"minLength": 1
|
|
75
|
+
},
|
|
76
|
+
"planningPermission": {
|
|
77
|
+
"properties": {
|
|
78
|
+
"yesNo": {
|
|
79
|
+
"ntsRef": "A1.2.3.1",
|
|
80
|
+
"type": "string"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": [
|
|
84
|
+
"yesNo"
|
|
85
|
+
],
|
|
86
|
+
"ntsRef": "A1.2.3"
|
|
87
|
+
},
|
|
88
|
+
"buildingRegApproval": {
|
|
89
|
+
"properties": {
|
|
90
|
+
"yesNo": {
|
|
91
|
+
"ntsRef": "A1.2.4.1",
|
|
92
|
+
"type": "string"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": [
|
|
96
|
+
"yesNo"
|
|
97
|
+
],
|
|
98
|
+
"ntsRef": "A1.2.4"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": [
|
|
102
|
+
"details",
|
|
103
|
+
"planningPermission",
|
|
104
|
+
"buildingRegApproval"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"required": [
|
|
109
|
+
"yesNo"
|
|
110
|
+
],
|
|
111
|
+
"ntsRef": "A1.2"
|
|
112
|
+
},
|
|
113
|
+
"garageConversion": {
|
|
114
|
+
"properties": {
|
|
115
|
+
"yesNo": {
|
|
116
|
+
"ntsRef": "A1.3.1",
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"oneOf": [
|
|
121
|
+
null,
|
|
122
|
+
{
|
|
123
|
+
"properties": {
|
|
124
|
+
"details": {
|
|
125
|
+
"ntsRef": "A1.3.2",
|
|
126
|
+
"type": "string",
|
|
127
|
+
"minLength": 1
|
|
128
|
+
},
|
|
129
|
+
"planningPermission": {
|
|
130
|
+
"properties": {
|
|
131
|
+
"yesNo": {
|
|
132
|
+
"ntsRef": "A1.3.3.1",
|
|
133
|
+
"type": "string"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"required": [
|
|
137
|
+
"yesNo"
|
|
138
|
+
],
|
|
139
|
+
"ntsRef": "A1.3.3"
|
|
140
|
+
},
|
|
141
|
+
"buildingRegApproval": {
|
|
142
|
+
"properties": {
|
|
143
|
+
"yesNo": {
|
|
144
|
+
"ntsRef": "A1.3.4.1",
|
|
145
|
+
"type": "string"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"required": [
|
|
149
|
+
"yesNo"
|
|
150
|
+
],
|
|
151
|
+
"ntsRef": "A1.3.4"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"required": [
|
|
155
|
+
"details",
|
|
156
|
+
"planningPermission",
|
|
157
|
+
"buildingRegApproval"
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"required": [
|
|
162
|
+
"yesNo"
|
|
163
|
+
],
|
|
164
|
+
"ntsRef": "A1.3"
|
|
165
|
+
},
|
|
166
|
+
"removalOfInternalWalls": {
|
|
167
|
+
"properties": {
|
|
168
|
+
"yesNo": {
|
|
169
|
+
"ntsRef": "A1.4.1",
|
|
170
|
+
"type": "string"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"oneOf": [
|
|
174
|
+
null,
|
|
175
|
+
{
|
|
176
|
+
"properties": {
|
|
177
|
+
"details": {
|
|
178
|
+
"ntsRef": "A1.4.2",
|
|
179
|
+
"type": "string",
|
|
180
|
+
"minLength": 1
|
|
181
|
+
},
|
|
182
|
+
"planningPermission": {
|
|
183
|
+
"properties": {
|
|
184
|
+
"yesNo": {
|
|
185
|
+
"ntsRef": "A1.4.3.1",
|
|
186
|
+
"type": "string"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"required": [
|
|
190
|
+
"yesNo"
|
|
191
|
+
],
|
|
192
|
+
"ntsRef": "A1.4.3"
|
|
193
|
+
},
|
|
194
|
+
"buildingRegApproval": {
|
|
195
|
+
"properties": {
|
|
196
|
+
"yesNo": {
|
|
197
|
+
"ntsRef": "A1.4.4.1",
|
|
198
|
+
"type": "string"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"required": [
|
|
202
|
+
"yesNo"
|
|
203
|
+
],
|
|
204
|
+
"ntsRef": "A1.4.4"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"required": [
|
|
208
|
+
"details",
|
|
209
|
+
"planningPermission",
|
|
210
|
+
"buildingRegApproval"
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"required": [
|
|
215
|
+
"yesNo"
|
|
216
|
+
],
|
|
217
|
+
"ntsRef": "A1.4"
|
|
218
|
+
},
|
|
219
|
+
"changeOfUse": {
|
|
220
|
+
"properties": {
|
|
221
|
+
"yesNo": {
|
|
222
|
+
"ntsRef": "A1.5.1",
|
|
223
|
+
"type": "string"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"oneOf": [
|
|
227
|
+
null,
|
|
228
|
+
{
|
|
229
|
+
"properties": {
|
|
230
|
+
"details": {
|
|
231
|
+
"ntsRef": "A1.5.2",
|
|
232
|
+
"type": "string",
|
|
233
|
+
"minLength": 1
|
|
234
|
+
},
|
|
235
|
+
"planningPermission": {
|
|
236
|
+
"properties": {
|
|
237
|
+
"yesNo": {
|
|
238
|
+
"ntsRef": "A1.5.3.1",
|
|
239
|
+
"type": "string"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"required": [
|
|
243
|
+
"yesNo"
|
|
244
|
+
],
|
|
245
|
+
"ntsRef": "A1.5.3"
|
|
246
|
+
},
|
|
247
|
+
"buildingRegApproval": {
|
|
248
|
+
"properties": {
|
|
249
|
+
"yesNo": {
|
|
250
|
+
"ntsRef": "A1.5.4.1",
|
|
251
|
+
"type": "string"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"required": [
|
|
255
|
+
"yesNo"
|
|
256
|
+
],
|
|
257
|
+
"ntsRef": "A1.5.4"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"required": [
|
|
261
|
+
"details",
|
|
262
|
+
"planningPermission",
|
|
263
|
+
"buildingRegApproval"
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"required": [
|
|
268
|
+
"yesNo"
|
|
269
|
+
],
|
|
270
|
+
"ntsRef": "A1.5"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"required": [
|
|
274
|
+
"extension",
|
|
275
|
+
"loftConversion",
|
|
276
|
+
"garageConversion",
|
|
277
|
+
"removalOfInternalWalls",
|
|
278
|
+
"changeOfUse"
|
|
279
|
+
],
|
|
280
|
+
"ntsRef": "A1"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
286
|
+
"$id": "https://trust.propdata.org.uk/schemas/v3/overlays/extensions/ac.json",
|
|
287
|
+
"$comment": "Selected alterations and changes fields for SEF25"
|
|
288
|
+
}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
{
|
|
2
|
+
"properties": {
|
|
3
|
+
"propertyPack": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"parking": {
|
|
6
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.10",
|
|
7
|
+
"properties": {
|
|
8
|
+
"controlledParking": {
|
|
9
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.10.2",
|
|
10
|
+
"discriminator": {
|
|
11
|
+
"propertyName": "yesNo"
|
|
12
|
+
},
|
|
13
|
+
"properties": {
|
|
14
|
+
"yesNo": {
|
|
15
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.10.2.1",
|
|
16
|
+
"enum": [
|
|
17
|
+
"Yes",
|
|
18
|
+
"No"
|
|
19
|
+
],
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"oneOf": [
|
|
24
|
+
{
|
|
25
|
+
"properties": {
|
|
26
|
+
"yesNo": {
|
|
27
|
+
"enum": [
|
|
28
|
+
"No"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"properties": {
|
|
35
|
+
"yesNo": {
|
|
36
|
+
"enum": [
|
|
37
|
+
"Yes"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"type": "object"
|
|
46
|
+
},
|
|
47
|
+
"heating": {
|
|
48
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.11.4",
|
|
49
|
+
"properties": {
|
|
50
|
+
"heatingSystem": {
|
|
51
|
+
"discriminator": {
|
|
52
|
+
"propertyName": "heatingType"
|
|
53
|
+
},
|
|
54
|
+
"oneOf": [
|
|
55
|
+
{
|
|
56
|
+
"properties": {
|
|
57
|
+
"heatingType": {
|
|
58
|
+
"enum": [
|
|
59
|
+
"None",
|
|
60
|
+
"Room heaters only"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"properties": {
|
|
67
|
+
"centralHeatingDetails": {
|
|
68
|
+
"properties": {
|
|
69
|
+
"heatingLastServicedReport": {
|
|
70
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.11.4.g2",
|
|
71
|
+
"enum": [
|
|
72
|
+
"Attached",
|
|
73
|
+
"To follow"
|
|
74
|
+
],
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"type": "object"
|
|
79
|
+
},
|
|
80
|
+
"heatingType": {
|
|
81
|
+
"enum": [
|
|
82
|
+
"Central heating"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"properties": {
|
|
89
|
+
"heatingType": {
|
|
90
|
+
"enum": [
|
|
91
|
+
"Communal heating system"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"otherHeatingFeatures": {
|
|
99
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.11.4.other",
|
|
100
|
+
"items": {
|
|
101
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.11.4.other.item",
|
|
102
|
+
"enum": [
|
|
103
|
+
"None",
|
|
104
|
+
"Air conditioning",
|
|
105
|
+
"Double glazing",
|
|
106
|
+
"Triple glazing",
|
|
107
|
+
"Night storage",
|
|
108
|
+
"Solar water",
|
|
109
|
+
"Underfloor heating",
|
|
110
|
+
"Wood burner",
|
|
111
|
+
"Aga/Rayburn",
|
|
112
|
+
"Open fire",
|
|
113
|
+
"Ground source heat pump",
|
|
114
|
+
"Air source heat pump",
|
|
115
|
+
"Solar thermal",
|
|
116
|
+
"Passive House design",
|
|
117
|
+
"Mains gas",
|
|
118
|
+
"Electricity",
|
|
119
|
+
"Oil",
|
|
120
|
+
"LPG",
|
|
121
|
+
"Biomass"
|
|
122
|
+
],
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"type": "array"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"type": "object"
|
|
129
|
+
},
|
|
130
|
+
"rightsAndInformalArrangements": {
|
|
131
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.9",
|
|
132
|
+
"properties": {
|
|
133
|
+
"sharedContributions": {
|
|
134
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.9.2",
|
|
135
|
+
"discriminator": {
|
|
136
|
+
"propertyName": "yesNo"
|
|
137
|
+
},
|
|
138
|
+
"oneOf": [
|
|
139
|
+
{
|
|
140
|
+
"properties": {
|
|
141
|
+
"yesNo": {
|
|
142
|
+
"enum": [
|
|
143
|
+
"No",
|
|
144
|
+
"Not applicable"
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"properties": {
|
|
151
|
+
"yesNo": {
|
|
152
|
+
"enum": [
|
|
153
|
+
"Yes"
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"accessRestrictionAttempts": {
|
|
161
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.9.3",
|
|
162
|
+
"discriminator": {
|
|
163
|
+
"propertyName": "yesNo"
|
|
164
|
+
},
|
|
165
|
+
"oneOf": [
|
|
166
|
+
{
|
|
167
|
+
"properties": {
|
|
168
|
+
"yesNo": {
|
|
169
|
+
"enum": [
|
|
170
|
+
"No",
|
|
171
|
+
"Not known"
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"properties": {
|
|
178
|
+
"yesNo": {
|
|
179
|
+
"enum": [
|
|
180
|
+
"Yes"
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"type": "object"
|
|
189
|
+
},
|
|
190
|
+
"legalBoundaries": {
|
|
191
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.2",
|
|
192
|
+
"properties": {
|
|
193
|
+
"flyingFreehold": {
|
|
194
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.2.4",
|
|
195
|
+
"discriminator": {
|
|
196
|
+
"propertyName": "yesNo"
|
|
197
|
+
},
|
|
198
|
+
"properties": {
|
|
199
|
+
"yesNo": {
|
|
200
|
+
"ta6ed6CompatRef": "TA6ED6-COMPAT.2.4.1",
|
|
201
|
+
"enum": [
|
|
202
|
+
"Yes",
|
|
203
|
+
"No",
|
|
204
|
+
"Not known"
|
|
205
|
+
],
|
|
206
|
+
"type": "string"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"oneOf": [
|
|
210
|
+
{
|
|
211
|
+
"properties": {
|
|
212
|
+
"yesNo": {
|
|
213
|
+
"enum": [
|
|
214
|
+
"No",
|
|
215
|
+
"Not known"
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"properties": {
|
|
222
|
+
"yesNo": {
|
|
223
|
+
"enum": [
|
|
224
|
+
"Yes"
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"type": "object"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
238
|
+
"$id": "https://trust.propdata.org.uk/schemas/v3/overlays/extensions/ta.json",
|
|
239
|
+
"$comment": "Compatibility enum ranges for validating shared PDTF state containing TA6 edition 6 answers"
|
|
240
|
+
}
|