Skip to content

Commit d1ae2fc

Browse files
fix: update type definitions to reflect recent Greater London Authority changes and additions (#136)
1 parent a47c07e commit d1ae2fc

12 files changed

+4459
-4548
lines changed

examples/data/ldcP.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,9 @@ export const validLDCP: Schema = {
239239
},
240240
},
241241
date: {},
242-
details: {
243-
extend: {
244-
area: {
245-
squareMetres: 24,
246-
},
242+
extend: {
243+
area: {
244+
squareMetres: 24,
247245
},
248246
},
249247
},

examples/data/planningPermission.ts

+26-154
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,20 @@ export const validPlanningPermission: Schema = {
216216
value: 'residential.dwelling.house.terrace',
217217
description: 'Terrace',
218218
},
219+
titleNumber: {
220+
known: 'No',
221+
},
222+
EPC: {
223+
known: 'No',
224+
},
225+
parking: {
226+
cars: {
227+
count: 1,
228+
},
229+
cycles: {
230+
count: 2,
231+
},
232+
},
219233
},
220234
proposal: {
221235
projectType: [
@@ -252,161 +266,19 @@ export const validPlanningPermission: Schema = {
252266
start: '2024-05-01',
253267
completion: '2024-05-02',
254268
},
255-
details: {
256-
extend: {
257-
area: {
258-
squareMetres: 45,
259-
},
269+
extend: {
270+
area: {
271+
squareMetres: 45,
260272
},
261-
vehicleParking: {
262-
type: [
263-
{
264-
value: 'cars.offStreet.residents',
265-
description: 'Off-street parking for residents only',
266-
},
267-
{
268-
value: 'bicycles.offStreet',
269-
description: 'Off-street parking for bicycles',
270-
},
271-
],
272-
cars: {
273-
count: {
274-
existing: 1,
275-
proposed: 1,
276-
},
277-
offStreet: {
278-
count: {
279-
existing: 0,
280-
proposed: 0,
281-
},
282-
club: {
283-
count: {
284-
existing: 0,
285-
proposed: 0,
286-
},
287-
},
288-
disabled: {
289-
count: {
290-
existing: 0,
291-
proposed: 0,
292-
},
293-
},
294-
other: {
295-
count: {
296-
existing: 0,
297-
proposed: 0,
298-
},
299-
},
300-
residents: {
301-
count: {
302-
existing: 1,
303-
proposed: 1,
304-
},
305-
},
306-
},
307-
onStreet: {
308-
count: {
309-
existing: 0,
310-
proposed: 0,
311-
},
312-
club: {
313-
count: {
314-
existing: 0,
315-
proposed: 0,
316-
},
317-
},
318-
disabled: {
319-
count: {
320-
existing: 0,
321-
proposed: 0,
322-
},
323-
},
324-
other: {
325-
count: {
326-
existing: 0,
327-
proposed: 0,
328-
},
329-
},
330-
residents: {
331-
count: {
332-
existing: 0,
333-
proposed: 0,
334-
},
335-
},
336-
},
337-
},
338-
vans: {
339-
count: {
340-
existing: 0,
341-
proposed: 0,
342-
},
343-
offStreet: {
344-
count: {
345-
existing: 0,
346-
proposed: 0,
347-
},
348-
},
349-
onStreet: {
350-
count: {
351-
existing: 0,
352-
proposed: 0,
353-
},
354-
},
355-
},
356-
motorcycles: {
357-
count: {
358-
existing: 0,
359-
proposed: 0,
360-
},
361-
offStreet: {
362-
count: {
363-
existing: 0,
364-
proposed: 0,
365-
},
366-
},
367-
onStreet: {
368-
count: {
369-
existing: 0,
370-
proposed: 0,
371-
},
372-
},
373-
},
374-
bicycles: {
375-
count: {
376-
existing: 2,
377-
proposed: 2,
378-
},
379-
offStreet: {
380-
count: {
381-
existing: 2,
382-
proposed: 2,
383-
},
384-
},
385-
onStreet: {
386-
count: {
387-
existing: 0,
388-
proposed: 0,
389-
},
390-
},
391-
},
392-
buses: {
393-
count: {
394-
existing: 0,
395-
proposed: 0,
396-
},
397-
offStreet: {
398-
count: {
399-
existing: 0,
400-
proposed: 0,
401-
},
402-
},
403-
onStreet: {
404-
count: {
405-
existing: 0,
406-
proposed: 0,
407-
},
408-
},
409-
},
273+
},
274+
parking: {
275+
cars: {
276+
count: 1,
277+
difference: 0,
278+
},
279+
cycles: {
280+
count: 2,
281+
difference: 0,
410282
},
411283
},
412284
},

examples/validLawfulDevelopmentCertificateProposed.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,9 @@
304304
}
305305
},
306306
"date": {},
307-
"details": {
308-
"extend": {
309-
"area": {
310-
"squareMetres": 24
311-
}
307+
"extend": {
308+
"area": {
309+
"squareMetres": 24
312310
}
313311
}
314312
}

0 commit comments

Comments
 (0)