Skip to content

Commit c5b5f9c

Browse files
wip
1 parent 7b8fd03 commit c5b5f9c

8 files changed

+414
-1401
lines changed

examples/data/planningPermission.ts

+15-147
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@ export const validPlanningPermission: Schema = {
216216
value: 'residential.dwelling.house.terrace',
217217
description: 'Terrace',
218218
},
219+
parking: {
220+
cars: {
221+
count: 1,
222+
},
223+
cycles: {
224+
count: 2,
225+
},
226+
},
219227
},
220228
proposal: {
221229
projectType: [
@@ -258,154 +266,14 @@ export const validPlanningPermission: Schema = {
258266
squareMetres: 45,
259267
},
260268
},
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-
],
269+
parking: {
272270
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-
},
271+
count: 1,
272+
difference: 0,
273+
},
274+
cycles: {
275+
count: 2,
276+
difference: 0,
409277
},
410278
},
411279
},

examples/validPlanningPermission.json

+14-146
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,14 @@
228228
"type": {
229229
"value": "residential.dwelling.house.terrace",
230230
"description": "Terrace"
231+
},
232+
"parking": {
233+
"cars": {
234+
"count": 1
235+
},
236+
"cycles": {
237+
"count": 2
238+
}
231239
}
232240
},
233241
"proposal": {
@@ -285,154 +293,14 @@
285293
"squareMetres": 45
286294
}
287295
},
288-
"vehicleParking": {
289-
"type": [
290-
{
291-
"value": "cars.offStreet.residents",
292-
"description": "Off-street parking for residents only"
293-
},
294-
{
295-
"value": "bicycles.offStreet",
296-
"description": "Off-street parking for bicycles"
297-
}
298-
],
296+
"parking": {
299297
"cars": {
300-
"count": {
301-
"existing": 1,
302-
"proposed": 1
303-
},
304-
"offStreet": {
305-
"count": {
306-
"existing": 0,
307-
"proposed": 0
308-
},
309-
"club": {
310-
"count": {
311-
"existing": 0,
312-
"proposed": 0
313-
}
314-
},
315-
"disabled": {
316-
"count": {
317-
"existing": 0,
318-
"proposed": 0
319-
}
320-
},
321-
"other": {
322-
"count": {
323-
"existing": 0,
324-
"proposed": 0
325-
}
326-
},
327-
"residents": {
328-
"count": {
329-
"existing": 1,
330-
"proposed": 1
331-
}
332-
}
333-
},
334-
"onStreet": {
335-
"count": {
336-
"existing": 0,
337-
"proposed": 0
338-
},
339-
"club": {
340-
"count": {
341-
"existing": 0,
342-
"proposed": 0
343-
}
344-
},
345-
"disabled": {
346-
"count": {
347-
"existing": 0,
348-
"proposed": 0
349-
}
350-
},
351-
"other": {
352-
"count": {
353-
"existing": 0,
354-
"proposed": 0
355-
}
356-
},
357-
"residents": {
358-
"count": {
359-
"existing": 0,
360-
"proposed": 0
361-
}
362-
}
363-
}
364-
},
365-
"vans": {
366-
"count": {
367-
"existing": 0,
368-
"proposed": 0
369-
},
370-
"offStreet": {
371-
"count": {
372-
"existing": 0,
373-
"proposed": 0
374-
}
375-
},
376-
"onStreet": {
377-
"count": {
378-
"existing": 0,
379-
"proposed": 0
380-
}
381-
}
298+
"count": 1,
299+
"difference": 0
382300
},
383-
"motorcycles": {
384-
"count": {
385-
"existing": 0,
386-
"proposed": 0
387-
},
388-
"offStreet": {
389-
"count": {
390-
"existing": 0,
391-
"proposed": 0
392-
}
393-
},
394-
"onStreet": {
395-
"count": {
396-
"existing": 0,
397-
"proposed": 0
398-
}
399-
}
400-
},
401-
"bicycles": {
402-
"count": {
403-
"existing": 2,
404-
"proposed": 2
405-
},
406-
"offStreet": {
407-
"count": {
408-
"existing": 2,
409-
"proposed": 2
410-
}
411-
},
412-
"onStreet": {
413-
"count": {
414-
"existing": 0,
415-
"proposed": 0
416-
}
417-
}
418-
},
419-
"buses": {
420-
"count": {
421-
"existing": 0,
422-
"proposed": 0
423-
},
424-
"offStreet": {
425-
"count": {
426-
"existing": 0,
427-
"proposed": 0
428-
}
429-
},
430-
"onStreet": {
431-
"count": {
432-
"existing": 0,
433-
"proposed": 0
434-
}
435-
}
301+
"cycles": {
302+
"count": 2,
303+
"difference": 0
436304
}
437305
}
438306
}

0 commit comments

Comments
 (0)