From 110a9f0c216f112d0aa9468f5fba168f2417ec19 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Fri, 10 Nov 2023 15:36:50 +0000 Subject: [PATCH] chore: update example payloads (#69) --- examples/data/ldcE.ts | 780 +++++----------- examples/data/ldcP.ts | 564 +++--------- examples/data/planningPermission.ts | 836 ++++-------------- examples/data/priorApproval.ts | 514 +++-------- ...dLawfulDevelopmentCertificateExisting.json | 183 ++-- ...dLawfulDevelopmentCertificateProposed.json | 122 ++- examples/validPlanningPermission.json | 166 ++-- examples/validPriorApproval.json | 162 ++-- 8 files changed, 1054 insertions(+), 2273 deletions(-) diff --git a/examples/data/ldcE.ts b/examples/data/ldcE.ts index d6d57bb4..f5a2b383 100644 --- a/examples/data/ldcE.ts +++ b/examples/data/ldcE.ts @@ -152,7 +152,8 @@ export const validLDCE: Schema = { }, }, planning: { - source: 'https://api.editor.planx.dev/gis/buckinghamshire?geom=test', + source: + 'https://api.editor.planx.dev/gis/buckinghamshire?geom=POLYGON+%28%28-0.7085376977920632+51.699564621757816%2C+-0.7086127996444802+51.69965605327502%2C+-0.708982944488535+51.699654390885456%2C+-0.7089909911155797+51.699673508361855%2C+-0.7089319825172521+51.699683482694184%2C+-0.7089520990848638+51.69973002954916%2C+-0.7091867923736667+51.69968930105364%2C+-0.7092216610908603+51.699688469859495%2C+-0.709239095449457+51.69968514508267%2C+-0.709253847599039+51.6997134056779%2C+-0.7093128561973666+51.69970176896433%2C+-0.7092699408531282+51.699610337539525%2C+-0.7096253335476013+51.699648572521454%2C+-0.7098613679409116+51.69958457046823%2C+-0.7098962366581053+51.69955049141595%2C+-0.7098090648651213+51.6994216557425%2C+-0.7099243998527616+51.699390070166544%2C+-0.7098264992237182+51.699238791576136%2C+-0.7097460329532714+51.699236297968724%2C+-0.7095716893673034+51.69927536446852%2C+-0.7095421850681398+51.69927619567025%2C+-0.7092954218387698+51.69931941814053%2C+-0.7090929150581455+51.69937427737031%2C+-0.709021836519251+51.69938923896689%2C+-0.7089574635028936+51.6994008757608%2C+-0.7088904082775213+51.69942082454341%2C+-0.7086691260337761+51.699501450783515%2C+-0.7086181640624932+51.699517243535354%2C+-0.7085457444191079+51.699541348251245%2C+-0.7085350155830483+51.69954799782576%2C+-0.7085376977920632+51.699564621757816%29%29&analytics=false&sessionId=95f90e21-93f5-4761-90b3-815c673e041f', designations: [ { value: 'listed', @@ -209,7 +210,12 @@ export const validLDCE: Schema = { value: 'designated.AONB', description: 'Area of Outstanding Natural Beauty (AONB)', intersects: true, - entities: [{name: 'Chilterns'}], + entities: [ + { + name: 'Chilterns', + source: 'https://www.planning.data.gov.uk/entity/1000005', + }, + ], }, { value: 'designated.nationalPark', @@ -336,67 +342,49 @@ export const validLDCE: Schema = { { question: 'List the changes involved in the project', responses: [ - { - value: 'Outbuildings (such as sheds, garages or garden offices)', - }, + {value: 'Outbuildings (such as sheds, garages or garden offices)'}, ], metadata: {}, }, { question: 'What type of changes were they?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, }, { question: 'Were the works carried out more than 4 years ago?', responses: [ - { - value: 'Yes', - metadata: { - flags: ['Planning permission / Immune'], - }, - }, + {value: 'Yes', metadata: {flags: ['Planning permission / Immune']}}, ], metadata: { policyRefs: [ { text: 'Town and Country Planning Act 1990 Section 171B', + url: 'https://www.legislation.gov.uk/ukpga/1990/8/section/171B', }, ], }, }, { question: 'Have the works been completed?', - responses: [ - { - value: 'Yes', - }, - ], + responses: [{value: 'Yes'}], metadata: { policyRefs: [ { text: 'Town and Country Planning Act 1990 Section 171B', + url: 'https://www.legislation.gov.uk/ukpga/1990/8/section/171B', }, ], }, }, { question: 'When were the works completed?', - responses: [ - { - value: '1959-01-01', - }, - ], + responses: [{value: '1959-01-01'}], metadata: { policyRefs: [ { text: 'Town and Country Planning Act 1990 Section 171B', + url: 'https://www.legislation.gov.uk/ukpga/1990/8/section/171B', }, ], }, @@ -404,17 +392,13 @@ export const validLDCE: Schema = { { question: 'Has anyone ever attempted to conceal the changes?', responses: [ - { - value: 'No', - metadata: { - flags: ['Planning permission / Immune'], - }, - }, + {value: 'No', metadata: {flags: ['Planning permission / Immune']}}, ], metadata: { policyRefs: [ { text: 'Secretary of State for Communities and Local Government and another v Welwyn Hatfield Borough Council and Bonsall / Jackson v Secretary of State for Communities and Local Government', + url: 'https://www.supremecourt.uk/cases/docs/uksc-2010-0036-judgment.pdf', }, ], }, @@ -422,17 +406,17 @@ export const validLDCE: Schema = { { question: 'Has enforcement action been taken about these changes?', responses: [ - { - value: 'No', - metadata: { - flags: ['Planning permission / Immune'], - }, - }, + {value: 'No', metadata: {flags: ['Planning permission / Immune']}}, ], metadata: { policyRefs: [ { - text: "Enforcement action is defined in the Town and Country Planning Act 1990 Section 171A.\n'Lawful development' is defined in the Town and Country Planning Act 1990 Section 191.", + text: 'Town and Country Planning Act 1990 Section 171A', + url: 'https://www.legislation.gov.uk/ukpga/1990/8/section/171A', + }, + { + text: 'Town and Country Planning Act 1990 Section 191', + url: 'https://www.legislation.gov.uk/ukpga/1990/8/section/191', }, ], }, @@ -440,94 +424,76 @@ export const validLDCE: Schema = { { question: 'List the changes involved in the project', responses: [ - { - value: 'Add an outbuilding (such as a shed, garage or garden office)', - }, - { - value: 'Outbuildings (such as a shed, garage or garden office)', - }, + {value: 'Add an outbuilding (such as a shed, garage or garden office)'}, + {value: 'Outbuildings (such as a shed, garage or garden office)'}, ], metadata: { autoAnswered: true, policyRefs: [ { - text: 'Town and Country Planning Act 1990 (Section 55), The Town and Country Planning (General Permitted Development) (England) Order 2015', + text: 'Town and Country Planning Act 1990 (Section 55)', + url: 'https://www.legislation.gov.uk/ukpga/1990/8/section/55', + }, + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015', + url: 'https://www.legislation.gov.uk/uksi/2015/596/contents', }, ], }, }, { question: 'What type of house is it?', - responses: [ - { - value: 'Detached', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Detached'}], + metadata: {autoAnswered: true}, }, { question: 'What type of property is it?', - responses: [ - { - value: 'House', - }, - ], + responses: [{value: 'House'}], metadata: { autoAnswered: true, policyRefs: [ { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Development Order 2015.\nSection 336 of the Town and Country Planning Act.', + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Development Order 2015', + url: 'https://www.legislation.gov.uk/uksi/2015/596/contents', + }, + { + text: 'Section 336 of the Town and Country Planning Act', + url: 'https://www.legislation.gov.uk/ukpga/1990/8/section/336/enacted', }, ], }, }, { question: 'Is any part of the property listed?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse', }, ], }, }, { question: 'Was the house originally built as a house?', - responses: [ - { - value: 'Yes, it was built as a house', - }, - ], + responses: [{value: 'Yes, it was built as a house'}], metadata: {}, }, { question: 'Was the house built before 2020?', - responses: [ - { - value: 'Yes, it was built before 2020', - }, - ], + responses: [{value: 'Yes, it was built before 2020'}], metadata: {}, }, { question: 'What is the new outbuilding used for?', - responses: [ - { - value: 'Studio', - }, - ], + responses: [{value: 'Studio'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse', }, ], }, @@ -537,15 +503,14 @@ export const validLDCE: Schema = { responses: [ { value: 'Personal use', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1. Class E', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse', }, ], }, @@ -555,15 +520,14 @@ export const validLDCE: Schema = { responses: [ { value: '1 storey', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1. Class E.1 (d) (h)', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse', }, ], }, @@ -574,15 +538,14 @@ export const validLDCE: Schema = { responses: [ { value: 'No', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1. Class E.1 (d)(h)', + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1. Class E.1 (d)', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse', }, ], }, @@ -593,29 +556,22 @@ export const validLDCE: Schema = { responses: [ { value: 'No', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (c)', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, }, { question: 'Is the property on designated land?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: @@ -623,39 +579,31 @@ export const validLDCE: Schema = { responses: [ { value: 'No', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.3', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, }, { question: 'Is any part of the new structure within 2m of the boundary?', - responses: [ - { - value: 'No, it is 2m or more from the boundary', - }, - ], + responses: [{value: 'No, it is 2m or more from the boundary'}], metadata: {}, }, { question: 'What type of roof does the new outbuilding have?', - responses: [ - { - value: 'Dual pitch roof', - }, - ], + responses: [{value: 'Dual pitch roof'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse', }, ], }, @@ -665,55 +613,41 @@ export const validLDCE: Schema = { responses: [ { value: '4m or lower', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (e)(ii)', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse', }, ], }, }, { question: 'Is the property on designated land?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: 'Is the property in any of the following?', responses: [ { value: 'An area of outstanding natural beauty', - metadata: { - flags: ['Planning permission / Permission needed'], - }, + metadata: {flags: ['Planning permission / Permission needed']}, }, ], - metadata: { - autoAnswered: true, - }, + metadata: {autoAnswered: true}, }, { question: 'How far from the house is the new outbuilding?', - responses: [ - { - value: 'More than 20m from the house', - }, - ], + responses: [{value: 'More than 20m from the house'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, @@ -724,15 +658,14 @@ export const validLDCE: Schema = { responses: [ { value: '10m² or less', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.2', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, @@ -743,15 +676,14 @@ export const validLDCE: Schema = { responses: [ { value: '50% or less of the available area around the original house', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (b)', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, @@ -762,15 +694,14 @@ export const validLDCE: Schema = { responses: [ { value: 'No', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (i)', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, @@ -780,82 +711,46 @@ export const validLDCE: Schema = { responses: [ { value: 'No', - metadata: { - flags: ['Planning permission / Not development'], - }, + metadata: {flags: ['Planning permission / Not development']}, }, ], metadata: {}, }, { question: 'What types of changes does the project involve?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, }, { question: 'Have you already told us that you are doing works to a tree or hedge?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Are there any protected trees on the property?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Is the site in a conservation area?', responses: [ { value: 'No', - metadata: { - flags: ['Works to trees & hedges / Not required'], - }, + metadata: {flags: ['Works to trees & hedges / Not required']}, }, ], - metadata: { - autoAnswered: true, - }, + metadata: {autoAnswered: true}, }, { question: 'What are you applying about?', - responses: [ - { - value: 'Existing changes I have made in the past', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Existing changes I have made in the past'}], + metadata: {autoAnswered: true}, }, { question: 'What do the works involve?', - responses: [ - { - value: 'Works to extend a property', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Works to extend a property'}], + metadata: {autoAnswered: true}, }, { question: 'What does the project involve?', @@ -865,72 +760,43 @@ export const validLDCE: Schema = { 'Add an outbuilding (such as sheds, shelters or garden offices)', }, ], - metadata: { - autoAnswered: true, - }, + metadata: {autoAnswered: true}, }, { question: 'Is it a residential property?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: 'Do the changes involve the creation of any new homes?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'Do the changes involve creating any new bedrooms or bathrooms?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'What is the internal floor area of the new outbuilding?', - responses: [ - { - value: '9', - }, - ], + responses: [{value: '9'}], metadata: {}, }, { question: 'Do the changes involve the creation of any new homes?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Is the property in the Greater London Authority area?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], }, @@ -938,124 +804,71 @@ export const validLDCE: Schema = { { question: 'Your contact details', responses: [ - { - value: 'Mr F Fox 0234 567 8910 f.fox@boggischickenshed.com', - }, + {value: 'Mr F Fox 0234 567 8910 f.fox@boggischickenshed.com'}, ], metadata: {}, }, { question: "Did you already provide the applicant's email address?", - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: "Applicant's email address", - responses: [ - { - value: 'r.dahl@example.com', - }, - ], + responses: [{value: 'r.dahl@example.com'}], metadata: {}, }, { question: "Did you already provide the applicant's telephone number?", - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: "Applicant's telephone number", - responses: [ - { - value: '01098 765 432', - }, - ], + responses: [{value: '01098 765 432'}], metadata: {}, }, { question: 'Which of these best describes you?', - responses: [ - { - value: "Agent acting on the applicant's behalf", - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: "Agent acting on the applicant's behalf"}], + metadata: {autoAnswered: true}, }, { question: 'Have you notified the other owners?', - responses: [ - { - value: 'Yes', - }, - ], + responses: [{value: 'Yes'}], metadata: {}, }, { question: "Which of these best describes the applicant's interest in the land?", - responses: [ - { - value: 'Co-owner', - }, - ], + responses: [{value: 'Co-owner'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) Order 2015', + url: 'https://www.legislation.gov.uk/uksi/2015/595/article/39/made', }, ], }, }, { question: 'How many other owners are there?', - responses: [ - { - value: 'Two or more other owners', - }, - ], + responses: [{value: 'Two or more other owners'}], metadata: {}, }, { question: 'Do you know who the other owners of the site are?', - responses: [ - { - value: 'Yes, all of them', - }, - ], + responses: [{value: 'Yes, all of them'}], metadata: {}, }, { question: 'How many owners are there in total?', - responses: [ - { - value: '3', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: '3'}], + metadata: {autoAnswered: true}, }, { question: 'Full name of Owner 2', - responses: [ - { - value: 'William Wonka', - }, - ], + responses: [{value: 'William Wonka'}], metadata: {}, }, { @@ -1070,218 +883,119 @@ export const validLDCE: Schema = { }, { question: 'Have you already notified the other owners?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: 'Date on which notice was given to Owner 2', - responses: [ - { - value: '1964-04-01', - }, - ], + responses: [{value: '1964-04-01'}], metadata: {}, }, { question: 'Full name of Owner 3', - responses: [ - { - value: 'Matilda Wormwood', - }, - ], + responses: [{value: 'Matilda Wormwood'}], metadata: {}, }, { question: 'Address of Owner 3', - responses: [ - { - value: '9, Library Way, Reading, L1T3R8Y', - }, - ], + responses: [{value: '9, Library Way, Reading, L1T3R8Y'}], metadata: {}, }, { question: 'Have you already notified the other owners?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: 'Date on which notice was given to Owner 3', - responses: [ - { - value: '1988-04-01', - }, - ], + responses: [{value: '1988-04-01'}], metadata: {}, }, { question: 'What types of changes did the project involve?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, }, { question: 'Would you like to upload any photographs of the property as it is today?', - responses: [ - { - value: 'Yes', - }, - ], + responses: [{value: 'Yes'}], metadata: {}, }, { question: 'What type of extension have you added?', - responses: [ - { - value: 'Outbuilding', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Outbuilding'}], + metadata: {autoAnswered: true}, }, { question: 'Is the roof of the outbuilding shown on a drawing you have already uploaded?', - responses: [ - { - value: 'Yes', - }, - ], + responses: [{value: 'Yes'}], metadata: {}, }, { question: 'Did the works involve any alterations to ground levels?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'Would you like to upload any photographs of the property before the changes?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'Would you like to upload any other additional drawings or documents?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'Provide evidence of completion date', responses: [ - { - value: 'Construction invoices', - }, - { - value: 'Other documents or correspondence', - }, + {value: 'Construction invoices'}, + {value: 'Other documents or correspondence'}, ], metadata: {}, }, { question: 'What do these construction invoices show?', - responses: [ - { - value: "Nothing, it's a test document. ", - }, - ], + responses: [{value: "Nothing, it's a test document. "}], metadata: {}, }, { question: 'What do these documents show?', - responses: [ - { - value: 'Nothing really, this is just a test. ', - }, - ], + responses: [{value: 'Nothing really, this is just a test. '}], metadata: {}, }, { question: 'What type of planning application are you making?', - responses: [ - { - value: 'Lawful Development Certificate', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Lawful Development Certificate'}], + metadata: {autoAnswered: true}, }, { question: 'What type of changes are you applying for?', - responses: [ - { - value: 'Existing changes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Existing changes'}], + metadata: {autoAnswered: true}, }, { question: 'Is the property a home?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: 'What types of changes does the application relate to?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, }, { question: 'How many homes does this application relate to?', - responses: [ - { - value: '1', - }, - ], + responses: [{value: '1'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Schedule 1, Part 2', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/contents', }, ], }, @@ -1289,101 +1003,76 @@ export const validLDCE: Schema = { { question: 'What type of extension did you build?', responses: [ - { - value: 'Outbuilding (such as shed, shelter or garden office', - }, + {value: 'Outbuilding (such as shed, shelter or garden office'}, ], - metadata: { - autoAnswered: true, - }, + metadata: {autoAnswered: true}, }, { question: 'Is the property a home?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: 'What works does the project involve?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, }, { question: 'Is the sole purpose of the project to support the needs of a disabled resident?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { - text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14UK Statutory Instruments 2012 No. 2920 Regulation 4, Equalities Act 2010, Section 6 Children Act 1989, Part 3', + text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/14', + }, + { + text: 'UK Statutory Instruments 2012 No. 2920 Regulation 4', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/4/made', + }, + { + text: 'Equalities Act 2010, Section 6', + url: 'https://www.legislation.gov.uk/ukpga/2010/15/section/6', + }, + { + text: 'Children Act 1989, Part 3', + url: 'https://www.legislation.gov.uk/ukpga/1989/41/part/III', }, ], }, }, { question: 'Is this application a resubmission?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 9', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/9', }, ], }, }, { question: 'Does the application qualify for a disability exemption?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Does the application qualify for a resubmission exemption?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Is the site a sports field?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 3', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/schedule/1', }, ], }, @@ -1391,16 +1080,13 @@ export const validLDCE: Schema = { { question: 'Is the application being made by (or on behalf of) a parish or community council?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/11', }, ], }, @@ -1408,15 +1094,12 @@ export const validLDCE: Schema = { { question: 'Are you also submitting another proposal for the same site today?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 10', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/schedule/1', }, ], }, @@ -1424,28 +1107,19 @@ export const validLDCE: Schema = { { question: 'Does the application qualify for the sports club fee reduction?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Does the application qualify for the parish council reduction?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/11', }, ], }, @@ -1453,91 +1127,45 @@ export const validLDCE: Schema = { { question: 'Does the application qualify for the alternative application reduction?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Did you get any pre-application advice before making this application?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'What local planning authority is this application being sent to?', - responses: [ - { - value: 'Chiltern', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Chiltern'}], + metadata: {autoAnswered: true}, }, { question: 'What type of application is it?', - responses: [ - { - value: 'Lawful Development Certificate', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Lawful Development Certificate'}], + metadata: {autoAnswered: true}, }, { question: 'What type of works are you applying about?', - responses: [ - { - value: 'Existing', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Existing'}], + metadata: {autoAnswered: true}, }, { question: "What is the applicant's interest in the land?", - responses: [ - { - value: 'Owner', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Owner'}], + metadata: {autoAnswered: true}, }, { question: "What is the user's role?", - responses: [ - { - value: 'Other', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Other'}], + metadata: {autoAnswered: true}, }, { question: "What is the applicant's declared connections?", - responses: [ - { - value: 'None', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'None'}], + metadata: {autoAnswered: true}, }, ], files: [ @@ -1599,7 +1227,7 @@ export const validLDCE: Schema = { }, ], metadata: { - organisation: 'Buckinghamshire', + organisation: 'buckinghamshire', id: '95f90e21-93f5-4761-90b3-815c673e041f', source: 'PlanX', service: { @@ -1608,6 +1236,6 @@ export const validLDCE: Schema = { }, submittedAt: '2023-10-02 00:00:00', schema: - 'https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json', + 'https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json', }, }; diff --git a/examples/data/ldcP.ts b/examples/data/ldcP.ts index 68013a8c..5c757a8f 100644 --- a/examples/data/ldcP.ts +++ b/examples/data/ldcP.ts @@ -96,7 +96,8 @@ export const validLDCP: Schema = { }, }, planning: { - source: 'https://api.editor.planx.dev/gis/buckinghamshire?geom=test', + source: + 'https://api.editor.planx.dev/gis/buckinghamshire?geom=POLYGON+%28%28-0.646633654832832+51.61556919642334%2C+-0.6466296315193095+51.61554504700152%2C+-0.6465049088001171+51.61551173743314%2C+-0.6464512646198194+51.61522027766699%2C+-0.6463131308555524+51.61522943785954%2C+-0.6463037431240002+51.61520695374722%2C+-0.6462487578391951+51.615222775901515%2C+-0.6462393701076429+51.61520861923739%2C+-0.6459456682205124+51.615292726412235%2C+-0.6460489332675857+51.61561499701554%2C+-0.646633654832832+51.61556919642334%29%29&analytics=false&sessionId=8da51c5b-a2a0-4386-a15d-29d66f9c121c', designations: [ { value: 'listed', @@ -255,75 +256,56 @@ export const validLDCP: Schema = { responses: [ { question: 'List the changes involved in the project', - responses: [ - { - value: 'Add a rear or side extension (or conservatory)', - }, - ], + responses: [{value: 'Add a rear or side extension (or conservatory)'}], metadata: { policyRefs: [ { - text: 'Town and Country Planning Act 1990 (Section 55), The Town and Country Planning (General Permitted Development) (England) Order 2015', + text: 'Town and Country Planning Act 1990 (Section 55)', + url: 'https://www.legislation.gov.uk/ukpga/1990/8/section/55', + }, + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015', + url: 'https://www.legislation.gov.uk/uksi/2015/596/contents', }, ], }, }, { question: 'What type of property is it?', - responses: [ - { - value: 'House', - }, - ], + responses: [{value: 'House'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015', + url: 'https://www.legislation.gov.uk/uksi/2015/596/contents/made', }, ], }, }, { question: 'What type of house is it?', - responses: [ - { - value: 'Detached', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Detached'}], + metadata: {autoAnswered: true}, }, { question: 'How many storeys does the original house have?', - responses: [ - { - value: '2 or more', - }, - ], + responses: [{value: '2 or more'}], metadata: {}, }, { question: 'Does the original house have a projection to the rear?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'Was the house always a house?', - responses: [ - { - value: 'Yes, it was built as a house', - }, - ], + responses: [{value: 'Yes, it was built as a house'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015, Schedule 2, Part 1, Class A', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, @@ -333,92 +315,61 @@ export const validLDCP: Schema = { responses: [ { value: 'Yes, it was built before 2020', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class 1 A.', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, }, { question: 'How many storeys does the extension have?', - responses: [ - { - value: '1 storey', - }, - ], + responses: [{value: '1 storey'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1, Class A', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, }, { question: 'Does the original house have a projection to the rear?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Which of these best describes your project?', - responses: [ - { - value: 'Rear only', - }, - ], + responses: [{value: 'Rear only'}], metadata: { policyRefs: [ { - text: 'General Permitted Development Order 2015, Technical guidance (PDF)', + text: 'General Permitted Development Order 2015, Technical guidance', + url: 'https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/830643/190910_Tech_Guide_for_publishing.pdf', }, ], }, }, { question: 'Is the property on designated land?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Is the property a site of special scientific interest?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'What type of house is it?', - responses: [ - { - value: 'Detached', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Detached'}], + metadata: {autoAnswered: true}, }, { question: @@ -426,26 +377,21 @@ export const validLDCP: Schema = { responses: [ { value: 'Less than 4m', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class A.1 (f)(i)', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, }, { question: 'What is the shortest distance to the property boundary?', - responses: [ - { - value: '2m or more', - }, - ], + responses: [{value: '2m or more'}], metadata: {}, }, { @@ -454,29 +400,22 @@ export const validLDCP: Schema = { responses: [ { value: 'Yes', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class A', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, }, { question: 'Is the property on designated land?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: @@ -484,382 +423,234 @@ export const validLDCP: Schema = { responses: [ { value: '50% or less of the available area around the original house', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class A', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1', }, ], }, }, { question: 'What types of changes does the project involve?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, }, { question: 'Have you already told us that you are doing works to a tree or hedge?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Are there any protected trees on the property?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Is the site in a conservation area?', responses: [ { value: 'No', - metadata: { - flags: ['Works to trees & hedges / Not required'], - }, + metadata: {flags: ['Works to trees & hedges / Not required']}, }, ], - metadata: { - autoAnswered: true, - }, + metadata: {autoAnswered: true}, }, { question: 'What are you applying about?', - responses: [ - { - value: 'Proposed changes I want to make in the future', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Proposed changes I want to make in the future'}], + metadata: {autoAnswered: true}, }, { question: 'What do the works involve?', - responses: [ - { - value: 'Works to extend a property', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Works to extend a property'}], + metadata: {autoAnswered: true}, }, { question: 'What does the project involve?', - responses: [ - { - value: 'Add a rear or side extension (or conservatory)', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Add a rear or side extension (or conservatory)'}], + metadata: {autoAnswered: true}, }, { question: 'How much is the internal floor area of the property increasing by?', - responses: [ - { - value: '24', - }, - ], + responses: [{value: '24'}], metadata: {}, }, { question: 'Is it a residential property?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: 'Do the changes involve the creation of any new homes?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'Do the changes involve creating any new bedrooms or bathrooms?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'Do the changes involve the creation of any new homes?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Is the property in the Greater London Authority area?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], }, }, { question: 'Which of these best describes you?', - responses: [ - { - value: 'Applicant', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Applicant'}], + metadata: {autoAnswered: true}, }, { question: 'Which of these best describes your interest in the land?', - responses: [ - { - value: 'Sole owner', - }, - ], + responses: [{value: 'Sole owner'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) Order 2015', + url: 'https://www.legislation.gov.uk/uksi/2015/595/article/39/made', }, ], }, }, { question: 'What types of changes does the project involve?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, }, { question: 'Does the work involve any alterations to ground or floor levels?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'Would you like to upload any photographs?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'What types of extension are being added?', - responses: [ - { - value: 'Rear or side', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Rear or side'}], + metadata: {autoAnswered: true}, }, { question: 'Do you also want to add existing internal floor plans?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'Is the roof of the extension already shown on another set of drawings?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'Would you like to upload any additional drawings, documents or images?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'What type of planning application are you making?', - responses: [ - { - value: 'Lawful Development Certificate', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Lawful Development Certificate'}], + metadata: {autoAnswered: true}, }, { question: 'What type of changes are you applying for?', - responses: [ - { - value: 'Proposed changes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Proposed changes'}], + metadata: {autoAnswered: true}, }, { question: 'Is the property a home?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: 'What types of changes does the application relate to?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, }, { question: 'How many homes does this application relate to?', - responses: [ - { - value: '1', - }, - ], + responses: [{value: '1'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Schedule 1, Part 2', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/contents', }, ], }, }, { question: 'What type of extension is it?', - responses: [ - { - value: 'Rear or side extension', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Rear or side extension'}], + metadata: {autoAnswered: true}, }, { question: 'Is the property a home?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: 'What works does the project involve?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, }, { question: 'Is the sole purpose of the project to support the needs of a disabled resident?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { - text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14UK Statutory Instruments 2012 No. 2920 Regulation 4, Equalities Act 2010, Section 6 Children Act 1989, Part 3', + text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/14', + }, + { + text: 'UK Statutory Instruments 2012 No. 2920 Regulation 4', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/4/made', + }, + { + text: 'Equalities Act 2010, Section 6', + url: 'https://www.legislation.gov.uk/ukpga/2010/15/section/6', + }, + { + text: 'Children Act 1989, Part 3', + url: 'https://www.legislation.gov.uk/ukpga/1989/41/part/III', }, ], }, }, { question: 'Is this application a resubmission?', - responses: [ - { - value: 'Yes', - }, - ], + responses: [{value: 'Yes'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 9', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/9', }, ], }, @@ -867,177 +658,102 @@ export const validLDCP: Schema = { { question: 'Is this the first time you have resubmitted an application for this site?', - responses: [ - { - value: 'Yes', - }, - ], + responses: [{value: 'Yes'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 8', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/8', }, ], }, }, { question: 'What type of application is this?', - responses: [ - { - value: 'Lawful Development Certificate', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Lawful Development Certificate'}], + metadata: {autoAnswered: true}, }, { question: "What was the original application's reference number?", - responses: [ - { - value: 'M8AG1C F4R4WAY TR33', - }, - ], + responses: [{value: 'M8AG1C F4R4WAY TR33'}], metadata: {}, }, { question: 'To qualify for a fee exemption, the proposed works must be of a similar description to the original application', - responses: [ - { - value: 'I understand', - }, - ], + responses: [{value: 'I understand'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/14', }, ], }, }, { question: 'What was the result of the original application?', - responses: [ - { - value: 'Withdrawn', - }, - ], + responses: [{value: 'Withdrawn'}], metadata: {}, }, { question: 'When did you submit the original application?', - responses: [ - { - value: 'Within the last 12 months', - }, - ], + responses: [{value: 'Within the last 12 months'}], metadata: { policyRefs: [ { - text: 'UK Statutory Instruments 2012 No. 2920 Regulation 8', + text: 'UK Statutory Instruments 2012 No. 2920 Regulation 8', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/8/made', }, ], }, }, { question: 'Does the application qualify for a disability exemption?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, }, { question: 'Does the application qualify for a resubmission exemption?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, }, { question: 'Did you get any pre-application advice before making this application?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: {}, }, { question: 'What local planning authority is this application being sent to?', - responses: [ - { - value: 'South Buckinghamshire', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'South Buckinghamshire'}], + metadata: {autoAnswered: true}, }, { question: 'What type of application is it?', - responses: [ - { - value: 'Lawful Development Certificate', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Lawful Development Certificate'}], + metadata: {autoAnswered: true}, }, { question: 'What type of works are you applying about?', - responses: [ - { - value: 'Proposed', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Proposed'}], + metadata: {autoAnswered: true}, }, { question: "What is the applicant's interest in the land?", - responses: [ - { - value: 'Owner', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Owner'}], + metadata: {autoAnswered: true}, }, { question: "What is the user's role?", - responses: [ - { - value: 'Applicant', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'Applicant'}], + metadata: {autoAnswered: true}, }, { question: "What is the applicant's declared connections?", - responses: [ - { - value: 'None', - }, - ], - metadata: { - autoAnswered: true, - }, + responses: [{value: 'None'}], + metadata: {autoAnswered: true}, }, ], files: [ @@ -1115,7 +831,7 @@ export const validLDCP: Schema = { }, ], metadata: { - organisation: 'Buckinghamshire', + organisation: 'buckinghamshire', id: '8da51c5b-a2a0-4386-a15d-29d66f9c121c', source: 'PlanX', service: { @@ -1124,6 +840,6 @@ export const validLDCP: Schema = { }, submittedAt: '2023-10-02 00:00:00', schema: - 'https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json', + 'https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json', }, }; diff --git a/examples/data/planningPermission.ts b/examples/data/planningPermission.ts index 44c52de2..cae613c8 100644 --- a/examples/data/planningPermission.ts +++ b/examples/data/planningPermission.ts @@ -111,7 +111,8 @@ export const validPlanningPermission: Schema = { }, }, planning: { - source: 'https://api.editor.planx.dev/gis/lambeth?geom=test', + source: + 'https://api.editor.planx.dev/gis/lambeth?geom=POLYGON+%28%28-0.1186569035053321+51.465703531871384%2C+-0.1185938715934822+51.465724418998775%2C+-0.1184195280075143+51.46552473766957%2C+-0.11848390102387167+51.4655038504508%2C+-0.1186569035053321+51.465703531871384%29%29&analytics=false&sessionId=81bcaa0f-baf5-4573-ba0a-ea868c573faf', designations: [ { value: 'listed', @@ -412,150 +413,78 @@ export const validPlanningPermission: Schema = { responses: [ { question: 'Is the property in Lambeth?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'The property', - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true, sectionName: 'The property'}, }, { question: 'What type of property is it?', - responses: [ - { - value: 'House', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'The property', - }, + responses: [{value: 'House'}], + metadata: {autoAnswered: true, sectionName: 'The property'}, }, { question: 'What type of house it is?', - responses: [ - { - value: 'Terrace', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'The property', - }, + responses: [{value: 'Terrace'}], + metadata: {autoAnswered: true, sectionName: 'The property'}, }, { question: 'Is the property in a flood zone?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'The property', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'The property'}, }, { question: 'What type of property is it?', responses: [ { value: 'House', - metadata: { - flags: ['Listed building consent / Not required'], - }, + metadata: {flags: ['Listed building consent / Not required']}, }, ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'List the changes involved in the project', responses: [ { value: 'Add a roof extension', - metadata: { - flags: ['Listed building consent / Not required'], - }, + metadata: {flags: ['Listed building consent / Not required']}, }, ], - metadata: { - sectionName: 'About the project', - }, + metadata: {sectionName: 'About the project'}, }, { question: 'Have works already started?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'About the project'}, }, { question: 'Is the property in a flood zone?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'What type of changes does the project involve?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'Is the project to add an outbuilding?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'How much new floor area is being added to the house?', - responses: [ - { - value: 'Less than 100m²', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'Less than 100m²'}], + metadata: {sectionName: 'About the project'}, }, { question: 'How much exactly is the internal floor area of the property increasing by?', - responses: [ - { - value: '45', - }, - ], + responses: [{value: '45'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -564,15 +493,12 @@ export const validPlanningPermission: Schema = { { question: 'Does the project involve creating any new bedrooms or bathrooms?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -580,15 +506,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Describe the wall materials of the existing house', - responses: [ - { - value: 'London stock brick', - }, - ], + responses: [{value: 'London stock brick'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -596,15 +519,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Describe the wall materials of the new extension', - responses: [ - { - value: 'Metallic cladding, reflective. Multiple colours.', - }, - ], + responses: [{value: 'Metallic cladding, reflective. Multiple colours.'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -612,15 +532,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Describe the material of the roof of the existing house', - responses: [ - { - value: 'Grey slate', - }, - ], + responses: [{value: 'Grey slate'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -628,15 +545,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Describe the material for the new roof of the extension', - responses: [ - { - value: 'Zinc panels', - }, - ], + responses: [{value: 'Zinc panels'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -644,15 +558,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Describe the window materials of the existing house', - responses: [ - { - value: 'Wooden sash windows, painted white', - }, - ], + responses: [{value: 'Wooden sash windows, painted white'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -660,15 +571,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Describe the window materials of the extension', - responses: [ - { - value: 'Brushed steel.', - }, - ], + responses: [{value: 'Brushed steel.'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -676,15 +584,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Describe the door materials of the existing house', - responses: [ - { - value: 'Wood, painted.', - }, - ], + responses: [{value: 'Wood, painted.'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -692,15 +597,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Describe the door materials of the extension', - responses: [ - { - value: 'No door present', - }, - ], + responses: [{value: 'No door present'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -709,49 +611,27 @@ export const validPlanningPermission: Schema = { { question: 'Are there any trees that could fall within the property or the areas affected by the project (the previously drawn outline)?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'About the project'}, }, { question: 'Does the project involve any of these?', - responses: [ - { - value: 'No, none of these', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'No, none of these'}], + metadata: {sectionName: 'About the project'}, }, { question: 'Is the property in Greater London?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'Does the site include more than one property?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -759,27 +639,18 @@ export const validPlanningPermission: Schema = { }, { question: 'Do you know the title number of the property?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'About the project'}, }, { question: 'Does the property have an Energy Performance Certificate (EPC)?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -787,16 +658,13 @@ export const validPlanningPermission: Schema = { }, { question: 'What type of application is this?', - responses: [ - { - value: 'Planning permission for a home', - }, - ], + responses: [{value: 'Planning permission for a home'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -804,15 +672,12 @@ export const validPlanningPermission: Schema = { }, { question: 'When will the works start?', - responses: [ - { - value: '2024-05-01', - }, - ], + responses: [{value: '2024-05-01'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -820,15 +685,12 @@ export const validPlanningPermission: Schema = { }, { question: 'When will the works be completed?', - responses: [ - { - value: '2024-05-02', - }, - ], + responses: [{value: '2024-05-02'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -836,18 +698,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Does the site include parking spaces for any of these?', - responses: [ - { - value: 'Cars', - }, - { - value: 'Bicycles', - }, - ], + responses: [{value: 'Cars'}, {value: 'Bicycles'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -855,37 +711,22 @@ export const validPlanningPermission: Schema = { }, { question: 'Total number of car parking spaces before', - responses: [ - { - value: '1', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: '1'}], + metadata: {sectionName: 'About the project'}, }, { question: 'Total number of car parking spaces after', - responses: [ - { - value: '1', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: '1'}], + metadata: {sectionName: 'About the project'}, }, { question: 'What types of car parking space are present?', - responses: [ - { - value: 'Off-street parking for residents only', - }, - ], + responses: [{value: 'Off-street parking for residents only'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -893,15 +734,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Off-street, residents-only car spaces before', - responses: [ - { - value: '1', - }, - ], + responses: [{value: '1'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -909,15 +747,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Off-street, residents-only car spaces after', - responses: [ - { - value: '1', - }, - ], + responses: [{value: '1'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -925,15 +760,12 @@ export const validPlanningPermission: Schema = { }, { question: 'What type of bicycle parking is there?', - responses: [ - { - value: 'Off-street cycle parking', - }, - ], + responses: [{value: 'Off-street cycle parking'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -941,15 +773,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Off-street bicycle spaces before', - responses: [ - { - value: '2', - }, - ], + responses: [{value: '2'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -957,15 +786,12 @@ export const validPlanningPermission: Schema = { }, { question: 'Off-street bicycle spaces after', - responses: [ - { - value: '2', - }, - ], + responses: [{value: '2'}], metadata: { policyRefs: [ { text: 'Greater London Authority Act 1999', + url: 'https://www.legislation.gov.uk/ukpga/1999/29/section/346', }, ], sectionName: 'About the project', @@ -973,28 +799,18 @@ export const validPlanningPermission: Schema = { }, { question: 'Is the property on designated land?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'Does the property include any of these?', - responses: [ - { - value: 'None of these', - }, - ], + responses: [{value: 'None of these'}], metadata: { autoAnswered: true, policyRefs: [ { - text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)', + text: 'The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended', + url: 'http://www.legislation.gov.uk/uksi/2015/595/article/7/made', }, ], sectionName: 'About the project', @@ -1002,83 +818,40 @@ export const validPlanningPermission: Schema = { }, { question: 'Heritage Statement needed?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'Is the property in a flood zone?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'What type of application is it?', - responses: [ - { - value: 'Apply for planning permission', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About you', - }, + responses: [{value: 'Apply for planning permission'}], + metadata: {autoAnswered: true, sectionName: 'About you'}, }, { question: 'Your contact details', responses: [ - { - value: 'Mx Ziggy Stardust 01100 0110 0011 ziggy@example.com', - }, + {value: 'Mx Ziggy Stardust 01100 0110 0011 ziggy@example.com'}, ], - metadata: { - sectionName: 'About you', - }, + metadata: {sectionName: 'About you'}, }, { question: 'Is this a test?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'About you'}, }, { question: 'Are you applying on behalf of someone else?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'Yes'}], + metadata: {sectionName: 'About you'}, }, { question: 'Which of these best describes you?', - responses: [ - { - value: 'Friend or relative', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'Friend or relative'}], + metadata: {sectionName: 'About you'}, }, { question: 'Your contact address', @@ -1088,114 +861,61 @@ export const validPlanningPermission: Schema = { '40 Stansfield Road, Brixton, London, Greater London, SW9 9RZ, UK', }, ], - metadata: { - sectionName: 'About you', - }, + metadata: {sectionName: 'About you'}, }, { question: 'Which of these best describes the applicant?', - responses: [ - { - value: 'Private individual', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'Private individual'}], + metadata: {sectionName: 'About you'}, }, { question: "Applicant's title", - responses: [ - { - value: 'Mr', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'Mr'}], + metadata: {sectionName: 'About you'}, }, { question: 'Do you want to provide an email address for the applicant?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'About you'}, }, { question: 'Do you want to provide a telephone number for the applicant?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'About you'}, }, { question: "Is the applicant's contact address the same as the property address?", - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'Yes'}], + metadata: {sectionName: 'About you'}, }, { question: 'Which of these best describes you?', - responses: [ - { - value: 'Friend or relative', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About you', - }, + responses: [{value: 'Friend or relative'}], + metadata: {autoAnswered: true, sectionName: 'About you'}, }, { question: 'We may need to visit your site to assess your application. If we do, who should we contact to arrange the visit?', - responses: [ - { - value: 'Me', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'Me'}], + metadata: {sectionName: 'About you'}, }, { question: 'Which of these best describes you?', responses: [ - { - value: "Friend or relative acting on the applicant's behalf", - }, + {value: "Friend or relative acting on the applicant's behalf"}, ], - metadata: { - autoAnswered: true, - sectionName: 'About you', - }, + metadata: {autoAnswered: true, sectionName: 'About you'}, }, { question: "Which of these best describes the applicant's interest in the land?", - responses: [ - { - value: 'Sole owner', - }, - ], + responses: [{value: 'Sole owner'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Development Management Procedure) (England) Order 2015', + url: 'https://www.legislation.gov.uk/uksi/2015/595/article/39/made', }, ], sectionName: 'About you', @@ -1204,86 +924,55 @@ export const validPlanningPermission: Schema = { { question: 'Did you get any pre-application advice from the council before making this application?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About this application', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'About this application'}, }, { question: 'What type of planning application are you making?', - responses: [ - { - value: 'Full planning permission', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'Full planning permission'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'Is the property a home?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'What types of changes does the application relate to?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'What type of extension is it?', - responses: [ - { - value: 'Roof extension', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'Roof extension'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'List the changes involved in the roof extension', - responses: [ - { - value: 'Add dormer', - }, - ], - metadata: { - sectionName: 'About this application', - }, + responses: [{value: 'Add dormer'}], + metadata: {sectionName: 'About this application'}, }, { question: 'Is the purpose of the project to support the needs of a disabled resident?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { - text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14UK Statutory Instruments 2012 No. 2920 Regulation 4, Equalities Act 2010, Section 6 Children Act 1989, Part 3', + text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/14', + }, + { + text: 'UK Statutory Instruments 2012 No. 2920 Regulation 4', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/4/made', + }, + { + text: 'Equalities Act 2010, Section 6', + url: 'https://www.legislation.gov.uk/ukpga/2010/15/section/6', + }, + { + text: 'Children Act 1989, Part 3', + url: 'https://www.legislation.gov.uk/ukpga/1989/41/part/III', }, ], sectionName: 'About this application', @@ -1291,51 +980,27 @@ export const validPlanningPermission: Schema = { }, { question: 'Is it a prior approval application?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'Is the property a home?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'What works does the project involve?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'Is this application a resubmission?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 9', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/9', }, ], sectionName: 'About this application', @@ -1343,40 +1008,23 @@ export const validPlanningPermission: Schema = { }, { question: 'Does the application qualify for a disability exemption?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'Does the application qualify for a resubmission exemption?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'Is the site a sports field?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 3', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/schedule/1', }, ], sectionName: 'About this application', @@ -1385,16 +1033,13 @@ export const validPlanningPermission: Schema = { { question: 'Is the application being made by (or on behalf of) a parish or community council?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/11', }, ], sectionName: 'About this application', @@ -1403,15 +1048,12 @@ export const validPlanningPermission: Schema = { { question: 'Are you also submitting another proposal for the same site today?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 10', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/schedule/1', }, ], sectionName: 'About this application', @@ -1420,29 +1062,19 @@ export const validPlanningPermission: Schema = { { question: 'Does the application qualify for the sports club fee reduction?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'Does the application qualify for the parish council reduction?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/11', }, ], sectionName: 'About this application', @@ -1451,16 +1083,13 @@ export const validPlanningPermission: Schema = { { question: 'Does the application qualify for the alternative application reduction?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 10', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/schedule/1', }, ], sectionName: 'About this application', @@ -1468,36 +1097,20 @@ export const validPlanningPermission: Schema = { }, { question: 'What type of application is it?', - responses: [ - { - value: 'Full planning permission', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'Full planning permission'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'What does the project involve?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About this application', - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true, sectionName: 'About this application'}, }, { question: 'How much new floor area is being created?', responses: [ { value: 'Less than 100m²', - metadata: { - flags: ['Community infrastructure levy / Not liable'], - }, + metadata: {flags: ['Community infrastructure levy / Not liable']}, }, ], metadata: { @@ -1505,6 +1118,7 @@ export const validPlanningPermission: Schema = { policyRefs: [ { text: 'The Community Infrastructure Levy Regulations 2010, Regulation 42', + url: 'https://www.legislation.gov.uk/uksi/2010/948/regulation/42', }, ], sectionName: 'About this application', @@ -1515,9 +1129,7 @@ export const validPlanningPermission: Schema = { responses: [ { value: 'Yes', - metadata: { - flags: ['Community infrastructure levy / Not liable'], - }, + metadata: {flags: ['Community infrastructure levy / Not liable']}, }, ], metadata: { @@ -1525,6 +1137,7 @@ export const validPlanningPermission: Schema = { policyRefs: [ { text: 'The Community Infrastructure Levy Regulations 2010, Regulation 42', + url: 'https://www.legislation.gov.uk/uksi/2010/948/regulation/42', }, ], sectionName: 'About this application', @@ -1532,62 +1145,28 @@ export const validPlanningPermission: Schema = { }, { question: 'Have the works already started?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Upload drawings', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'Upload drawings'}, }, { question: 'What changes does the project involve?', - responses: [ - { - value: 'Extension', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Upload drawings', - }, + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true, sectionName: 'Upload drawings'}, }, { question: 'Is the project to add an outbuilding?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Upload drawings', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'Upload drawings'}, }, { question: 'Which Local Planning authority is it?', - responses: [ - { - value: 'Lambeth', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check', - }, + responses: [{value: 'Lambeth'}], + metadata: {autoAnswered: true, sectionName: 'Check'}, }, { question: 'Connections with London Borough of Lambeth', - responses: [ - { - value: 'None of the above apply to me', - }, - ], - metadata: { - sectionName: 'Check', - }, + responses: [{value: 'None of the above apply to me'}], + metadata: {sectionName: 'Check'}, }, { question: 'I confirm that:', @@ -1597,45 +1176,22 @@ export const validPlanningPermission: Schema = { 'The information contained in this application is truthful, accurate and complete, to the best of my knowledge', }, ], - metadata: { - sectionName: 'Check', - }, + metadata: {sectionName: 'Check'}, }, { question: 'Does the application qualify for a disability exemption?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Pay and send', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'Pay and send'}, }, { question: 'Does the application qualify for a resubmission exemption?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Pay and send', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'Pay and send'}, }, { question: 'Which Local Planning authority is it?', - responses: [ - { - value: 'Lambeth', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Pay and send', - }, + responses: [{value: 'Lambeth'}], + metadata: {autoAnswered: true, sectionName: 'Pay and send'}, }, ], files: [ @@ -1693,7 +1249,7 @@ export const validPlanningPermission: Schema = { }, ], metadata: { - organisation: 'Lambeth', + organisation: 'lambeth', id: '81bcaa0f-baf5-4573-ba0a-ea868c573faf', source: 'PlanX', service: { @@ -1702,6 +1258,6 @@ export const validPlanningPermission: Schema = { }, submittedAt: '2023-10-02 00:00:00', schema: - 'https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json', + 'https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json', }, }; diff --git a/examples/data/priorApproval.ts b/examples/data/priorApproval.ts index cecdf3e5..dd07be25 100644 --- a/examples/data/priorApproval.ts +++ b/examples/data/priorApproval.ts @@ -99,7 +99,8 @@ export const validPriorApproval: Schema = { }, }, planning: { - source: 'https://api.editor.planx.dev/gis/southwark?geom=test', + source: + 'https://api.editor.planx.dev/gis/southwark?geom=POLYGON+%28%28-0.0967472791671659+51.50830340605074%2C+-0.09676337242125525+51.50830507546084%2C+-0.09689748287199977+51.50831926544436%2C+-0.09693503379820824+51.50790775412855%2C+-0.09666681289671919+51.50789439872946%2C+-0.09645719784644384+51.507889747624404%2C+-0.09639290535660058+51.50828278342658%2C+-0.0967472791671659+51.50830340605074%29%29&analytics=false&sessionId=b18c301b-9d44-4c6c-8d27-5b5bf33c570b', designations: [ { value: 'listed', @@ -276,62 +277,28 @@ export const validPriorApproval: Schema = { responses: [ { question: 'Is the property in Southwark?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'The property', - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true, sectionName: 'The property'}, }, { question: 'What type of property is it?', - responses: [ - { - value: 'Something else', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'The property', - }, + responses: [{value: 'Something else'}], + metadata: {autoAnswered: true, sectionName: 'The property'}, }, { question: 'Which of these best describes the use of the property?', - responses: [ - { - value: 'Leisure and sport', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'The property', - }, + responses: [{value: 'Leisure and sport'}], + metadata: {autoAnswered: true, sectionName: 'The property'}, }, { question: 'What type of leisure property is it?', - responses: [ - { - value: 'Entertainment', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'The property', - }, + responses: [{value: 'Entertainment'}], + metadata: {autoAnswered: true, sectionName: 'The property'}, }, { question: 'Have the works already started?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'About the project'}, }, { question: 'Describe the project.', @@ -341,57 +308,36 @@ export const validPriorApproval: Schema = { 'Addition of solar panels in order to power the globe with green energy.', }, ], - metadata: { - sectionName: 'About the project', - }, + metadata: {sectionName: 'About the project'}, }, { question: 'What type of property is it?', - responses: [ - { - value: 'Commercial building', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'Commercial building'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'What type of property is it?', - responses: [ - { - value: 'Neither a house nor a flat', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'Neither a house nor a flat'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'What do you want to install?', - responses: [ - { - value: 'Solar photovoltaics (PV)', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'Solar photovoltaics (PV)'}], + metadata: {sectionName: 'About the project'}, }, { question: 'Are there any other locations where the equipment could be installed?', - responses: [ - { - value: 'Yes', - }, - ], + responses: [{value: 'Yes'}], metadata: { policyRefs: [ { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A\nThe Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class K', + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-a-installation-or-alteration-etc-of-solar-equipment-on-domestic-premises', + }, + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class K', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-k-installation-or-alteration-etc-of-standalone-solar-equipment-on-nondomestic-premises', }, ], sectionName: 'About the project', @@ -403,15 +349,14 @@ export const validPriorApproval: Schema = { responses: [ { value: 'No', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-a-installation-or-alteration-etc-of-solar-equipment-on-domestic-premises', }, ], sectionName: 'About the project', @@ -422,9 +367,7 @@ export const validPriorApproval: Schema = { responses: [ { value: 'No', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { @@ -432,6 +375,7 @@ export const validPriorApproval: Schema = { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-j-installation-or-alteration-etc-of-solar-equipment-on-nondomestic-premises', }, ], sectionName: 'About the project', @@ -442,9 +386,7 @@ export const validPriorApproval: Schema = { responses: [ { value: 'No', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { @@ -452,6 +394,7 @@ export const validPriorApproval: Schema = { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-j-installation-or-alteration-etc-of-solar-equipment-on-nondomestic-premises', }, ], sectionName: 'About the project', @@ -459,38 +402,23 @@ export const validPriorApproval: Schema = { }, { question: 'Where are the new solar panels?', - responses: [ - { - value: 'On roofs', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'On roofs'}], + metadata: {sectionName: 'About the project'}, }, { question: 'What type of roofs are they?', - responses: [ - { - value: 'Both pitched and flat', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'Both pitched and flat'}], + metadata: {sectionName: 'About the project'}, }, { question: 'Is the property in a conservation area?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { - text: '[The Town and Country Planning (General Permitted Development) (England) Order 2015 S.2.P.14. .A.1 (c)](https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14)', + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 S.2.P.14. .A.1 (c)', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14', }, ], sectionName: 'About the project', @@ -498,16 +426,13 @@ export const validPriorApproval: Schema = { }, { question: 'Is the property in a world heritage site?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A.1 (c)', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14', }, ], sectionName: 'About the project', @@ -519,15 +444,14 @@ export const validPriorApproval: Schema = { responses: [ { value: '0.2m or less', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14', }, ], sectionName: 'About the project', @@ -538,15 +462,14 @@ export const validPriorApproval: Schema = { responses: [ { value: '1m or less higher than the roof', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14', }, ], sectionName: 'About the project', @@ -557,15 +480,14 @@ export const validPriorApproval: Schema = { responses: [ { value: '1m or more from the edge of the roof', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14', }, ], sectionName: 'About the project', @@ -573,29 +495,22 @@ export const validPriorApproval: Schema = { }, { question: 'What do you want to install?', - responses: [ - { - value: 'Solar photovoltaics (PV)', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'Solar photovoltaics (PV)'}], + metadata: {sectionName: 'About the project'}, }, { question: 'What is the total capacity of all solar photovoltaics (PV)?', responses: [ { value: 'Between 50kW and 1,000kW (1 MW)', - metadata: { - flags: ['Planning permission / Prior approval'], - }, + metadata: {flags: ['Planning permission / Prior approval']}, }, ], metadata: { policyRefs: [ { text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J.3', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14', }, ], sectionName: 'About the project', @@ -606,15 +521,18 @@ export const validPriorApproval: Schema = { responses: [ { value: 'OK', - metadata: { - flags: ['Planning permission / Permitted development'], - }, + metadata: {flags: ['Planning permission / Permitted development']}, }, ], metadata: { policyRefs: [ { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class AThe Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class K', + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-a-installation-or-alteration-etc-of-solar-equipment-on-domestic-premises', + }, + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class K', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-k-installation-or-alteration-etc-of-standalone-solar-equipment-on-nondomestic-premises', }, ], sectionName: 'About the project', @@ -622,95 +540,43 @@ export const validPriorApproval: Schema = { }, { question: 'What type of property is it?', - responses: [ - { - value: 'Another use', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'Another use'}], + metadata: {sectionName: 'About the project'}, }, { question: 'Select your project', - responses: [ - { - value: 'Install solar panels', - }, - ], - metadata: { - sectionName: 'About the project', - }, + responses: [{value: 'Install solar panels'}], + metadata: {sectionName: 'About the project'}, }, { question: 'What type of application is being applied for?', - responses: [ - { - value: 'Part 14 Class J', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'Part 14 Class J'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'Is the property subject to any Article 4 directions?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'List all the changes involved in the project', - responses: [ - { - value: 'Install solar panels', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'Install solar panels'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'What type of prior approval application is it?', - responses: [ - { - value: 'Install or change solar panels', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, + responses: [{value: 'Install or change solar panels'}], + metadata: {autoAnswered: true, sectionName: 'About the project'}, }, { question: 'Are you applying on behalf of someone else?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'About you'}, }, { question: 'Which of these best describes you?', - responses: [ - { - value: 'Company', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'Company'}], + metadata: {sectionName: 'About you'}, }, { question: 'Your contact details', @@ -720,163 +586,84 @@ export const validPriorApproval: Schema = { "Mr William Shakespeare Lord Chamberlain's Men 2830407283 thebard@example.com", }, ], - metadata: { - sectionName: 'About you', - }, + metadata: {sectionName: 'About you'}, }, { question: 'Is your contact address the same as the property address?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'Yes'}], + metadata: {sectionName: 'About you'}, }, { question: 'We may need to visit the site to assess your application. If we do, who should we contact to arrange the visit?', - responses: [ - { - value: 'Me, the applicant', - }, - ], - metadata: { - sectionName: 'About you', - }, + responses: [{value: 'Me, the applicant'}], + metadata: {sectionName: 'About you'}, }, { question: 'What type of prior approval application is it?', - responses: [ - { - value: 'Install or change solar panels', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Upload drawings', - }, + responses: [{value: 'Install or change solar panels'}], + metadata: {autoAnswered: true, sectionName: 'Upload drawings'}, }, { question: 'Where will the solar panels be installed?', - responses: [ - { - value: 'On roofs', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Upload drawings', - }, + responses: [{value: 'On roofs'}], + metadata: {autoAnswered: true, sectionName: 'Upload drawings'}, }, { question: 'Your planning officer will need to check how far the solar panels stick out beyond the surface of the roof. What do you have that shows this?', - responses: [ - { - value: "Manufacturer's specification document", - }, - ], - metadata: { - sectionName: 'Upload drawings', - }, + responses: [{value: "Manufacturer's specification document"}], + metadata: {sectionName: 'Upload drawings'}, }, { question: 'Do you want to upload any photographs?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'Upload drawings', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'Upload drawings'}, }, { question: 'Would you like to upload any additional drawings, documents or images?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'Upload drawings', - }, + responses: [{value: 'No'}], + metadata: {sectionName: 'Upload drawings'}, }, { question: 'What type of planning application are you making?', - responses: [ - { - value: 'Prior approval', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, + responses: [{value: 'Prior approval'}], + metadata: {autoAnswered: true, sectionName: 'Check your application'}, }, { question: 'What type of prior approval application is it?', - responses: [ - { - value: 'Install or change solar panels', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, + responses: [{value: 'Install or change solar panels'}], + metadata: {autoAnswered: true, sectionName: 'Check your application'}, }, { question: 'Is the property a home?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'Check your application'}, }, { question: 'What type of changes does the project involve?', - responses: [ - { - value: 'Alteration', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, + responses: [{value: 'Alteration'}], + metadata: {autoAnswered: true, sectionName: 'Check your application'}, }, { question: 'Are the public allowed to access the building?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - sectionName: 'Check your application', - }, + responses: [{value: 'Yes'}], + metadata: {sectionName: 'Check your application'}, }, { question: 'Is the sole purpose of the project to provide disabled access to (or within) the building?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { policyRefs: [ { - text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14 & Regulation 4 (1)(b)', + text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/14', + }, + { + text: 'Regulation 4 (1)(b)', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/4', }, ], sectionName: 'Check your application', @@ -884,53 +671,29 @@ export const validPriorApproval: Schema = { }, { question: 'What type of prior approval application is it?', - responses: [ - { - value: 'Install or change solar panels', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, + responses: [{value: 'Install or change solar panels'}], + metadata: {autoAnswered: true, sectionName: 'Check your application'}, }, { question: 'Does the application qualify for a disability exemption?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'Check your application'}, }, { question: 'Does the application qualify for a resubmission exemption?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, + responses: [{value: 'No'}], + metadata: {autoAnswered: true, sectionName: 'Check your application'}, }, { question: 'Does the application qualify to the same-day-planning-application exemption?', - responses: [ - { - value: 'No', - }, - ], + responses: [{value: 'No'}], metadata: { autoAnswered: true, policyRefs: [ { text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/14', }, ], sectionName: 'Check your application', @@ -938,15 +701,8 @@ export const validPriorApproval: Schema = { }, { question: 'Which Local Planning authority is it?', - responses: [ - { - value: 'Southwark', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, + responses: [{value: 'Southwark'}], + metadata: {autoAnswered: true, sectionName: 'Check your application'}, }, { question: 'Describe your connection', @@ -956,9 +712,7 @@ export const validPriorApproval: Schema = { 'I think the King is but a man, as I am. The violet smells to him as it doth to me. The element shows to him as it doth to me. All his senses have but human conditions. His ceremonies laid by, in his nakedness he appears but a man.', }, ], - metadata: { - sectionName: 'Check your application', - }, + metadata: {sectionName: 'Check your application'}, }, { question: 'Connections with Southwark Council', @@ -968,9 +722,7 @@ export const validPriorApproval: Schema = { 'I am related to, or partnered with, an elected member for Southwark Council', }, ], - metadata: { - sectionName: 'Check your application', - }, + metadata: {sectionName: 'Check your application'}, }, { question: 'I confirm that:', @@ -980,34 +732,18 @@ export const validPriorApproval: Schema = { 'The information contained in this application is truthful, accurate and complete, to the best of my knowledge', }, ], - metadata: { - sectionName: 'Check your application', - }, + metadata: {sectionName: 'Check your application'}, }, { question: 'Which Local Planning authority is it?', - responses: [ - { - value: 'Southwark', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Pay and submit', - }, + responses: [{value: 'Southwark'}], + metadata: {autoAnswered: true, sectionName: 'Pay and submit'}, }, { question: 'What type of prior approval application is it?application.type', - responses: [ - { - value: 'Install or change solar panels', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Pay and submit', - }, + responses: [{value: 'Install or change solar panels'}], + metadata: {autoAnswered: true, sectionName: 'Pay and submit'}, }, ], files: [ @@ -1031,7 +767,7 @@ export const validPriorApproval: Schema = { }, ], metadata: { - organisation: 'Southwark', + organisation: 'southwark', id: 'b18c301b-9d44-4c6c-8d27-5b5bf33c570b', source: 'PlanX', service: { @@ -1040,6 +776,6 @@ export const validPriorApproval: Schema = { }, submittedAt: '2023-10-02 00:00:00', schema: - 'https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json', + 'https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json', }, }; diff --git a/examples/validLawfulDevelopmentCertificateExisting.json b/examples/validLawfulDevelopmentCertificateExisting.json index d3cf06dd..171b2819 100644 --- a/examples/validLawfulDevelopmentCertificateExisting.json +++ b/examples/validLawfulDevelopmentCertificateExisting.json @@ -242,35 +242,14 @@ "squareMetres": 2993.67 } }, - "constraints": { - "planning": [ - { - "value": "tpo", - "description": "Tree Preservation Order (TPO) or zone", - "intersects": false - }, + "planning": { + "source": "https://api.editor.planx.dev/gis/buckinghamshire?geom=POLYGON+%28%28-0.7085376977920632+51.699564621757816%2C+-0.7086127996444802+51.69965605327502%2C+-0.708982944488535+51.699654390885456%2C+-0.7089909911155797+51.699673508361855%2C+-0.7089319825172521+51.699683482694184%2C+-0.7089520990848638+51.69973002954916%2C+-0.7091867923736667+51.69968930105364%2C+-0.7092216610908603+51.699688469859495%2C+-0.709239095449457+51.69968514508267%2C+-0.709253847599039+51.6997134056779%2C+-0.7093128561973666+51.69970176896433%2C+-0.7092699408531282+51.699610337539525%2C+-0.7096253335476013+51.699648572521454%2C+-0.7098613679409116+51.69958457046823%2C+-0.7098962366581053+51.69955049141595%2C+-0.7098090648651213+51.6994216557425%2C+-0.7099243998527616+51.699390070166544%2C+-0.7098264992237182+51.699238791576136%2C+-0.7097460329532714+51.699236297968724%2C+-0.7095716893673034+51.69927536446852%2C+-0.7095421850681398+51.69927619567025%2C+-0.7092954218387698+51.69931941814053%2C+-0.7090929150581455+51.69937427737031%2C+-0.709021836519251+51.69938923896689%2C+-0.7089574635028936+51.6994008757608%2C+-0.7088904082775213+51.69942082454341%2C+-0.7086691260337761+51.699501450783515%2C+-0.7086181640624932+51.699517243535354%2C+-0.7085457444191079+51.699541348251245%2C+-0.7085350155830483+51.69954799782576%2C+-0.7085376977920632+51.699564621757816%29%29&analytics=false&sessionId=95f90e21-93f5-4761-90b3-815c673e041f", + "designations": [ { "value": "listed", "description": "Listed Building", "intersects": false }, - { - "value": "article4", - "description": "Article 4 Direction area", - "intersects": true, - "entities": [ - { - "name": "Whole District excluding the Town of Chesham - Poultry production.", - "description": "Bucks County Council Town and Country Planning Act 1947 Town and Country Planning General Development Order 1950. Re Whole District excluding the Town of Chesham. In relation to poultry production.", - "source": "https://www.planning.data.gov.uk/entity/7010002192" - } - ] - }, - { - "value": "article4.caz", - "description": "Central Activities Zone (CAZ)", - "intersects": false - }, { "value": "monument", "description": "Site of a Scheduled Monument", @@ -323,7 +302,8 @@ "intersects": true, "entities": [ { - "name": "Chilterns" + "name": "Chilterns", + "source": "https://www.planning.data.gov.uk/entity/1000005" } ] }, @@ -347,6 +327,30 @@ "description": "Classified Road", "intersects": false } + ], + "orders": [ + { + "value": "article4", + "description": "Article 4 Direction area", + "intersects": true, + "entities": [ + { + "name": "Whole District excluding the Town of Chesham - Poultry production.", + "description": "Bucks County Council Town and Country Planning Act 1947 Town and Country Planning General Development Order 1950. Re Whole District excluding the Town of Chesham. In relation to poultry production.", + "source": "https://www.planning.data.gov.uk/entity/7010002192" + } + ] + }, + { + "value": "article4.caz", + "description": "Central Activities Zone (CAZ)", + "intersects": false + }, + { + "value": "tpo", + "description": "Tree Preservation Order (TPO) or zone", + "intersects": false + } ] }, "localAuthorityDistrict": [ @@ -511,7 +515,7 @@ "date": {} } }, - "result": [ + "preAssessment": [ { "value": "Planning permission / Immune", "description": "It looks like the changes may now be beyond the time limit for enforcement action. This does not apply if the changes have been deliberately concealed." @@ -553,7 +557,8 @@ "metadata": { "policyRefs": [ { - "text": "Town and Country Planning Act 1990 Section 171B" + "text": "Town and Country Planning Act 1990 Section 171B", + "url": "https://www.legislation.gov.uk/ukpga/1990/8/section/171B" } ] } @@ -568,7 +573,8 @@ "metadata": { "policyRefs": [ { - "text": "Town and Country Planning Act 1990 Section 171B" + "text": "Town and Country Planning Act 1990 Section 171B", + "url": "https://www.legislation.gov.uk/ukpga/1990/8/section/171B" } ] } @@ -583,7 +589,8 @@ "metadata": { "policyRefs": [ { - "text": "Town and Country Planning Act 1990 Section 171B" + "text": "Town and Country Planning Act 1990 Section 171B", + "url": "https://www.legislation.gov.uk/ukpga/1990/8/section/171B" } ] } @@ -603,7 +610,8 @@ "metadata": { "policyRefs": [ { - "text": "Secretary of State for Communities and Local Government and another v Welwyn Hatfield Borough Council and Bonsall / Jackson v Secretary of State for Communities and Local Government" + "text": "Secretary of State for Communities and Local Government and another v Welwyn Hatfield Borough Council and Bonsall / Jackson v Secretary of State for Communities and Local Government", + "url": "https://www.supremecourt.uk/cases/docs/uksc-2010-0036-judgment.pdf" } ] } @@ -623,7 +631,12 @@ "metadata": { "policyRefs": [ { - "text": "Enforcement action is defined in the Town and Country Planning Act 1990 Section 171A.\n'Lawful development' is defined in the Town and Country Planning Act 1990 Section 191." + "text": "Town and Country Planning Act 1990 Section 171A", + "url": "https://www.legislation.gov.uk/ukpga/1990/8/section/171A" + }, + { + "text": "Town and Country Planning Act 1990 Section 191", + "url": "https://www.legislation.gov.uk/ukpga/1990/8/section/191" } ] } @@ -642,7 +655,12 @@ "autoAnswered": true, "policyRefs": [ { - "text": "Town and Country Planning Act 1990 (Section 55), The Town and Country Planning (General Permitted Development) (England) Order 2015" + "text": "Town and Country Planning Act 1990 (Section 55)", + "url": "https://www.legislation.gov.uk/ukpga/1990/8/section/55" + }, + { + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015", + "url": "https://www.legislation.gov.uk/uksi/2015/596/contents" } ] } @@ -669,7 +687,12 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Development Order 2015.\nSection 336 of the Town and Country Planning Act." + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Development Order 2015", + "url": "https://www.legislation.gov.uk/uksi/2015/596/contents" + }, + { + "text": "Section 336 of the Town and Country Planning Act", + "url": "https://www.legislation.gov.uk/ukpga/1990/8/section/336/enacted" } ] } @@ -685,7 +708,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E." + "text": "The Town The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse" } ] } @@ -718,7 +742,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse" } ] } @@ -738,7 +763,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1. Class E" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1. Class E", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse" } ] } @@ -758,7 +784,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1. Class E.1 (d) (h)" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1. Class E.1 (d) (h)", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse" } ] } @@ -778,7 +805,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1. Class E.1 (d)(h)" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1. Class E.1 (d)", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse" } ] } @@ -798,7 +826,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (c)" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (c)", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -829,7 +858,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.3" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.3", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -853,7 +883,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse" } ] } @@ -873,7 +904,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (e)(ii)" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (e)(ii)", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1/crossheading/class-e-buildings-etc-incidental-to-the-enjoyment-of-a-dwellinghouse" } ] } @@ -915,7 +947,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -935,7 +968,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.2" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.2", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -955,7 +989,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (b)" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (b)", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -975,7 +1010,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (i)" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class E.1 (i)", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -1136,7 +1172,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ] } @@ -1220,7 +1257,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) Order 2015" + "text": "The Town and Country Planning (Development Management Procedure) (England) Order 2015", + "url": "https://www.legislation.gov.uk/uksi/2015/595/article/39/made" } ] } @@ -1481,7 +1519,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Schedule 1, Part 2" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Schedule 1, Part 2", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/contents" } ] } @@ -1529,7 +1568,20 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14UK Statutory Instruments 2012 No. 2920 Regulation 4, Equalities Act 2010, Section 6 Children Act 1989, Part 3" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/14" + }, + { + "text": "UK Statutory Instruments 2012 No. 2920 Regulation 4", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/4/made" + }, + { + "text": "Equalities Act 2010, Section 6", + "url": "https://www.legislation.gov.uk/ukpga/2010/15/section/6" + }, + { + "text": "Children Act 1989, Part 3", + "url": "https://www.legislation.gov.uk/ukpga/1989/41/part/III" } ] } @@ -1544,7 +1596,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 9" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 9", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/9" } ] } @@ -1582,7 +1635,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 3" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 3", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/schedule/1" } ] } @@ -1598,7 +1652,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/11" } ] } @@ -1613,7 +1668,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 10" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 10", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/schedule/1" } ] } @@ -1640,7 +1696,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/11" } ] } @@ -1791,20 +1848,14 @@ } ], "metadata": { + "organisation": "buckinghamshire", + "id": "95f90e21-93f5-4761-90b3-815c673e041f", + "source": "PlanX", "service": { "flowId": "824628b2-deeb-48b0-92b1-2ca7f3b17163", - "name": "Apply for a lawful development certificate", - "owner": "Buckinghamshire", "url": "https://www.editor.planx.dev/buckinghamshire/apply-for-a-lawful-development-certificate/preview" }, - "session": { - "source": "PlanX", - "id": "95f90e21-93f5-4761-90b3-815c673e041f", - "createdAt": "2023-10-01 00:00:00", - "submittedAt": "2023-10-02 00:00:00" - }, - "schema": { - "url": "https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json" - } + "submittedAt": "2023-10-02 00:00:00", + "schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json" } } \ No newline at end of file diff --git a/examples/validLawfulDevelopmentCertificateProposed.json b/examples/validLawfulDevelopmentCertificateProposed.json index 5c020525..128906f8 100644 --- a/examples/validLawfulDevelopmentCertificateProposed.json +++ b/examples/validLawfulDevelopmentCertificateProposed.json @@ -126,23 +126,14 @@ "squareMetres": 1418.26 } }, - "constraints": { - "planning": [ - { - "value": "tpo", - "description": "Tree Preservation Order (TPO) or zone", - "intersects": false - }, + "planning": { + "source": "https://api.editor.planx.dev/gis/buckinghamshire?geom=POLYGON+%28%28-0.646633654832832+51.61556919642334%2C+-0.6466296315193095+51.61554504700152%2C+-0.6465049088001171+51.61551173743314%2C+-0.6464512646198194+51.61522027766699%2C+-0.6463131308555524+51.61522943785954%2C+-0.6463037431240002+51.61520695374722%2C+-0.6462487578391951+51.615222775901515%2C+-0.6462393701076429+51.61520861923739%2C+-0.6459456682205124+51.615292726412235%2C+-0.6460489332675857+51.61561499701554%2C+-0.646633654832832+51.61556919642334%29%29&analytics=false&sessionId=8da51c5b-a2a0-4386-a15d-29d66f9c121c", + "designations": [ { "value": "listed", "description": "Listed Building", "intersects": false }, - { - "value": "article4", - "description": "Article 4 Direction area", - "intersects": false - }, { "value": "monument", "description": "Site of a Scheduled Monument", @@ -203,11 +194,6 @@ "description": "Conservation Area", "intersects": false }, - { - "value": "article4.caz", - "description": "Central Activities Zone (CAZ)", - "intersects": false - }, { "value": "designated.nationalPark.broads", "description": "National Park - Broads", @@ -218,6 +204,23 @@ "description": "Classified Road", "intersects": false } + ], + "orders": [ + { + "value": "article4", + "description": "Article 4 Direction area", + "intersects": false + }, + { + "value": "article4.caz", + "description": "Central Activities Zone (CAZ)", + "intersects": false + }, + { + "value": "tpo", + "description": "Tree Preservation Order (TPO) or zone", + "intersects": false + } ] }, "localAuthorityDistrict": [ @@ -309,7 +312,7 @@ } } }, - "result": [ + "preAssessment": [ { "value": "Planning permission / Permitted development", "description": "It looks like the proposed changes may fall within the rules for Permitted Development and therefore would not need planning permission." @@ -326,7 +329,12 @@ "metadata": { "policyRefs": [ { - "text": "Town and Country Planning Act 1990 (Section 55), The Town and Country Planning (General Permitted Development) (England) Order 2015" + "text": "Town and Country Planning Act 1990 (Section 55)", + "url": "https://www.legislation.gov.uk/ukpga/1990/8/section/55" + }, + { + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015", + "url": "https://www.legislation.gov.uk/uksi/2015/596/contents" } ] } @@ -342,7 +350,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015", + "url": "https://www.legislation.gov.uk/uksi/2015/596/contents/made" } ] } @@ -386,7 +395,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015, Schedule 2, Part 1, Class A" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015, Schedule 2, Part 1, Class A", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -406,7 +416,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class 1 A." + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class 1 A.", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -421,7 +432,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1, Class A" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Section 2, Part 1, Class A", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -447,7 +459,8 @@ "metadata": { "policyRefs": [ { - "text": "General Permitted Development Order 2015, Technical guidance (PDF)" + "text": "General Permitted Development Order 2015, Technical guidance", + "url": "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/830643/190910_Tech_Guide_for_publishing.pdf" } ] } @@ -500,7 +513,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class A.1 (f)(i)" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class A.1 (f)(i)", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -529,7 +543,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class A" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class A", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -560,7 +575,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class A" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 1, Class A", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/1" } ] } @@ -707,7 +723,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ] } @@ -733,7 +750,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) Order 2015" + "text": "The Town and Country Planning (Development Management Procedure) (England) Order 2015", + "url": "https://www.legislation.gov.uk/uksi/2015/595/article/39/made" } ] } @@ -859,7 +877,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Schedule 1, Part 2" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Schedule 1, Part 2", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/contents" } ] } @@ -907,7 +926,20 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14UK Statutory Instruments 2012 No. 2920 Regulation 4, Equalities Act 2010, Section 6 Children Act 1989, Part 3" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/14" + }, + { + "text": "UK Statutory Instruments 2012 No. 2920 Regulation 4", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/4/made" + }, + { + "text": "Equalities Act 2010, Section 6", + "url": "https://www.legislation.gov.uk/ukpga/2010/15/section/6" + }, + { + "text": "Children Act 1989, Part 3", + "url": "https://www.legislation.gov.uk/ukpga/1989/41/part/III" } ] } @@ -922,7 +954,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 9" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 9", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/9" } ] } @@ -937,7 +970,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 8" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 8", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/8" } ] } @@ -972,7 +1006,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/14" } ] } @@ -996,7 +1031,8 @@ "metadata": { "policyRefs": [ { - "text": "UK Statutory Instruments 2012 No. 2920 Regulation 8" + "text": "UK Statutory Instruments 2012 No. 2920 Regulation 8", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/8/made" } ] } @@ -1174,20 +1210,14 @@ } ], "metadata": { + "organisation": "buckinghamshire", + "id": "8da51c5b-a2a0-4386-a15d-29d66f9c121c", + "source": "PlanX", "service": { "flowId": "824628b2-deeb-48b0-92b1-2ca7f3b17163", - "name": "Apply for a lawful development certificate", - "owner": "Buckinghamshire", "url": "https://www.editor.planx.dev/buckinghamshire/apply-for-a-lawful-development-certificate/preview" }, - "session": { - "source": "PlanX", - "id": "8da51c5b-a2a0-4386-a15d-29d66f9c121c", - "createdAt": "2023-10-01 00:00:00", - "submittedAt": "2023-10-02 00:00:00" - }, - "schema": { - "url": "https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json" - } + "submittedAt": "2023-10-02 00:00:00", + "schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json" } } \ No newline at end of file diff --git a/examples/validPlanningPermission.json b/examples/validPlanningPermission.json index d4755b6e..0ed68cdb 100644 --- a/examples/validPlanningPermission.json +++ b/examples/validPlanningPermission.json @@ -123,23 +123,14 @@ "squareMetres": 125.92 } }, - "constraints": { - "planning": [ - { - "value": "tpo", - "description": "Tree Preservation Order (TPO) or zone", - "intersects": false - }, + "planning": { + "source": "https://api.editor.planx.dev/gis/lambeth?geom=POLYGON+%28%28-0.1186569035053321+51.465703531871384%2C+-0.1185938715934822+51.465724418998775%2C+-0.1184195280075143+51.46552473766957%2C+-0.11848390102387167+51.4655038504508%2C+-0.1186569035053321+51.465703531871384%29%29&analytics=false&sessionId=81bcaa0f-baf5-4573-ba0a-ea868c573faf", + "designations": [ { "value": "listed", "description": "Listed Building", "intersects": false }, - { - "value": "article4", - "description": "Article 4 Direction area", - "intersects": false - }, { "value": "monument", "description": "Site of a Scheduled Monument", @@ -190,11 +181,6 @@ "description": "Area of Outstanding Natural Beauty (AONB)", "intersects": false }, - { - "value": "article4.caz", - "description": "Central Activities Zone (CAZ)", - "intersects": false - }, { "value": "designated.nationalPark", "description": "National Park", @@ -215,6 +201,23 @@ "description": "Classified Road", "intersects": false } + ], + "orders": [ + { + "value": "article4", + "description": "Article 4 Direction area", + "intersects": false + }, + { + "value": "article4.caz", + "description": "Central Activities Zone (CAZ)", + "intersects": false + }, + { + "value": "tpo", + "description": "Tree Preservation Order (TPO) or zone", + "intersects": false + } ] }, "localAuthorityDistrict": [ @@ -434,7 +437,7 @@ } } }, - "result": [], + "preAssessment": [], "responses": [ { "question": "Is the property in Lambeth?", @@ -584,7 +587,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -600,7 +604,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -616,7 +621,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -632,7 +638,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -648,7 +655,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -664,7 +672,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -680,7 +689,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -696,7 +706,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -712,7 +723,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -728,7 +740,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -778,7 +791,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -805,7 +819,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -822,7 +837,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -838,7 +854,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -854,7 +871,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -873,7 +891,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -911,7 +930,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -927,7 +947,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -943,7 +964,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -959,7 +981,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -975,7 +998,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -991,7 +1015,8 @@ "metadata": { "policyRefs": [ { - "text": "Greater London Authority Act 1999" + "text": "Greater London Authority Act 1999", + "url": "https://www.legislation.gov.uk/ukpga/1999/29/section/346" } ], "sectionName": "About the project" @@ -1020,7 +1045,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended)" + "text": "The Town and Country Planning (Development Management Procedure) (England) 2015 (as amended", + "url": "http://www.legislation.gov.uk/uksi/2015/595/article/7/made" } ], "sectionName": "About the project" @@ -1217,7 +1243,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Development Management Procedure) (England) Order 2015" + "text": "The Town and Country Planning (Development Management Procedure) (England) Order 2015", + "url": "https://www.legislation.gov.uk/uksi/2015/595/article/39/made" } ], "sectionName": "About you" @@ -1303,7 +1330,20 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14UK Statutory Instruments 2012 No. 2920 Regulation 4, Equalities Act 2010, Section 6 Children Act 1989, Part 3" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/14" + }, + { + "text": "UK Statutory Instruments 2012 No. 2920 Regulation 4", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/4/made" + }, + { + "text": "Equalities Act 2010, Section 6", + "url": "https://www.legislation.gov.uk/ukpga/2010/15/section/6" + }, + { + "text": "Children Act 1989, Part 3", + "url": "https://www.legislation.gov.uk/ukpga/1989/41/part/III" } ], "sectionName": "About this application" @@ -1355,7 +1395,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 9" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 9", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/9" } ], "sectionName": "About this application" @@ -1396,7 +1437,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 3" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 3", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/schedule/1" } ], "sectionName": "About this application" @@ -1413,7 +1455,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/11" } ], "sectionName": "About this application" @@ -1429,7 +1472,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 10" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 10", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/schedule/1" } ], "sectionName": "About this application" @@ -1458,7 +1502,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 - Regulation 11", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/11" } ], "sectionName": "About this application" @@ -1475,7 +1520,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 10" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 10", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/schedule/1" } ], "sectionName": "About this application" @@ -1521,7 +1567,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Community Infrastructure Levy Regulations 2010, Regulation 42" + "text": "The Community Infrastructure Levy Regulations 2010, Regulation 42", + "url": "https://www.legislation.gov.uk/uksi/2010/948/regulation/42" } ], "sectionName": "About this application" @@ -1543,7 +1590,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Community Infrastructure Levy Regulations 2010, Regulation 42" + "text": "The Community Infrastructure Levy Regulations 2010, Regulation 42", + "url": "https://www.legislation.gov.uk/uksi/2010/948/regulation/42" } ], "sectionName": "About this application" @@ -1711,20 +1759,14 @@ } ], "metadata": { + "organisation": "lambeth", + "id": "81bcaa0f-baf5-4573-ba0a-ea868c573faf", + "source": "PlanX", "service": { "flowId": "01e38c5d-e701-4e44-acdc-4d6b5cc3b854", - "name": "Apply for planning permission", - "owner": "Lambeth", "url": "https://www.editor.planx.dev/lambeth/apply-for-planning-permission/preview" }, - "session": { - "source": "PlanX", - "id": "81bcaa0f-baf5-4573-ba0a-ea868c573faf", - "createdAt": "2023-10-01 00:00:00", - "submittedAt": "2023-10-02 00:00:00" - }, - "schema": { - "url": "https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json" - } + "submittedAt": "2023-10-02 00:00:00", + "schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json" } } \ No newline at end of file diff --git a/examples/validPriorApproval.json b/examples/validPriorApproval.json index e65798d7..ef35595b 100644 --- a/examples/validPriorApproval.json +++ b/examples/validPriorApproval.json @@ -117,50 +117,14 @@ "squareMetres": 1527.57 } }, - "constraints": { - "planning": [ - { - "value": "tpo", - "description": "Tree Preservation Order (TPO) or zone", - "intersects": false - }, + "planning": { + "source": "https://api.editor.planx.dev/gis/southwark?geom=POLYGON+%28%28-0.0967472791671659+51.50830340605074%2C+-0.09676337242125525+51.50830507546084%2C+-0.09689748287199977+51.50831926544436%2C+-0.09693503379820824+51.50790775412855%2C+-0.09666681289671919+51.50789439872946%2C+-0.09645719784644384+51.507889747624404%2C+-0.09639290535660058+51.50828278342658%2C+-0.0967472791671659+51.50830340605074%29%29&analytics=false&sessionId=b18c301b-9d44-4c6c-8d27-5b5bf33c570b", + "designations": [ { "value": "listed", "description": "Listed Building", "intersects": false }, - { - "value": "article4", - "description": "Article 4 Direction area", - "intersects": true, - "entities": [ - { - "name": "Central Activities Zone", - "description": "Change of use from offices to dwelling houses is restricted", - "source": "https://www.planning.data.gov.uk/entity/7010000942" - }, - { - "name": "Central Activities Zone", - "description": "Demolition of commercial buildings and construction of new dwellinghouses is restricted", - "source": "https://www.planning.data.gov.uk/entity/7010000944" - }, - { - "name": "Bankside and Borough District Town Centre", - "description": "Demolition of commercial buildings and construction of new dwellinghouses is restricted", - "source": "https://www.planning.data.gov.uk/entity/7010001042" - }, - { - "name": "Central Activities Zone", - "description": "Change of use from Class E to residential is restricted", - "source": "https://www.planning.data.gov.uk/entity/7010001055" - }, - { - "name": "Bankside and Borough District Town Centre", - "description": "Change of use from Class E to residential is restricted", - "source": "https://www.planning.data.gov.uk/entity/7010001153" - } - ] - }, { "value": "monument", "description": "Site of a Scheduled Monument", @@ -211,12 +175,6 @@ "description": "Area of Outstanding Natural Beauty (AONB)", "intersects": false }, - { - "value": "article4.caz", - "description": "Central Activities Zone (CAZ)", - "intersects": true, - "entities": [] - }, { "value": "designated.conservationArea", "description": "Conservation Area", @@ -232,6 +190,51 @@ "description": "Classified Road", "intersects": false } + ], + "orders": [ + { + "value": "article4", + "description": "Article 4 Direction area", + "intersects": true, + "entities": [ + { + "name": "Central Activities Zone", + "description": "Change of use from offices to dwelling houses is restricted", + "source": "https://www.planning.data.gov.uk/entity/7010000942" + }, + { + "name": "Central Activities Zone", + "description": "Demolition of commercial buildings and construction of new dwellinghouses is restricted", + "source": "https://www.planning.data.gov.uk/entity/7010000944" + }, + { + "name": "Bankside and Borough District Town Centre", + "description": "Demolition of commercial buildings and construction of new dwellinghouses is restricted", + "source": "https://www.planning.data.gov.uk/entity/7010001042" + }, + { + "name": "Central Activities Zone", + "description": "Change of use from Class E to residential is restricted", + "source": "https://www.planning.data.gov.uk/entity/7010001055" + }, + { + "name": "Bankside and Borough District Town Centre", + "description": "Change of use from Class E to residential is restricted", + "source": "https://www.planning.data.gov.uk/entity/7010001153" + } + ] + }, + { + "value": "article4.caz", + "description": "Central Activities Zone (CAZ)", + "intersects": true, + "entities": [] + }, + { + "value": "tpo", + "description": "Tree Preservation Order (TPO) or zone", + "intersects": false + } ] }, "localAuthorityDistrict": [ @@ -302,7 +305,7 @@ } } }, - "result": [ + "preAssessment": [ { "value": "Planning permission / Prior approval", "description": "It looks like the proposed changes do not require planning permission, however the applicant must apply for Prior Approval before proceeding." @@ -424,7 +427,12 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A\nThe Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class K" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-a-installation-or-alteration-etc-of-solar-equipment-on-domestic-premises" + }, + { + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class K", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-k-installation-or-alteration-etc-of-standalone-solar-equipment-on-nondomestic-premises" } ], "sectionName": "About the project" @@ -445,7 +453,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-a-installation-or-alteration-etc-of-solar-equipment-on-domestic-premises" } ], "sectionName": "About the project" @@ -467,7 +476,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-j-installation-or-alteration-etc-of-solar-equipment-on-nondomestic-premises" } ], "sectionName": "About the project" @@ -489,7 +499,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-j-installation-or-alteration-etc-of-solar-equipment-on-nondomestic-premises" } ], "sectionName": "About the project" @@ -528,7 +539,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "[The Town and Country Planning (General Permitted Development) (England) Order 2015 S.2.P.14. .A.1 (c)](https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14)" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 S.2.P.14. .A.1 (c)", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14" } ], "sectionName": "About the project" @@ -545,7 +557,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A.1 (c)" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A.1 (c)", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14" } ], "sectionName": "About the project" @@ -566,7 +579,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14" } ], "sectionName": "About the project" @@ -587,7 +601,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14" } ], "sectionName": "About the project" @@ -608,7 +623,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14" } ], "sectionName": "About the project" @@ -640,7 +656,8 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J.3" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class J.3", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14" } ], "sectionName": "About the project" @@ -661,7 +678,12 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class AThe Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class K" + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class A", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-a-installation-or-alteration-etc-of-solar-equipment-on-domestic-premises" + }, + { + "text": "The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 14, Class K", + "url": "https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/14/crossheading/class-k-installation-or-alteration-etc-of-standalone-solar-equipment-on-nondomestic-premises" } ], "sectionName": "About the project" @@ -918,7 +940,12 @@ "metadata": { "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14 & Regulation 4 (1)(b)" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/14" + }, + { + "text": "Regulation 4 (1)(b)", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/4" } ], "sectionName": "Check your application" @@ -971,7 +998,8 @@ "autoAnswered": true, "policyRefs": [ { - "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14" + "text": "The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012, Regulation 14", + "url": "https://www.legislation.gov.uk/uksi/2012/2920/regulation/14" } ], "sectionName": "Check your application" @@ -1068,20 +1096,14 @@ } ], "metadata": { + "organisation": "southwark", + "id": "b18c301b-9d44-4c6c-8d27-5b5bf33c570b", + "source": "PlanX", "service": { "flowId": "c6628103-c648-4663-81e1-bfa0a1a18340", - "name": "Apply for prior approval", - "owner": "Southwark", "url": "https://www.editor.planx.dev/southwark/apply-for-prior-approval/preview" }, - "session": { - "source": "PlanX", - "id": "b18c301b-9d44-4c6c-8d27-5b5bf33c570b", - "createdAt": "2023-10-01 00:00:00", - "submittedAt": "2023-10-02 00:00:00" - }, - "schema": { - "url": "https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json" - } + "submittedAt": "2023-10-02 00:00:00", + "schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json" } } \ No newline at end of file