From a631f25e2e38641c0df9695c4685050de6c6211c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Thu, 25 Jul 2024 15:30:05 +0100 Subject: [PATCH] chore: Rename `DigitalPlanningApplication` to `Application` (#211) --- .../data/landDrainageConsent.ts | 6 +- .../lawfulDevelopmentCertificate/existing.ts | 1311 +++++++++++++ .../lawfulDevelopmentCertificate/proposed.ts | 904 +++++++++ .../data/listedBuildingConsent.ts | 4 +- .../planningPermission/fullHouseholder.ts | 4 +- .../fullHouseholderInConservationArea.ts | 4 +- .../data/planningPermission/major.ts | 6 +- .../data/planningPermission/minor.ts | 6 +- .../data/priorApproval/buildHomes.ts | 4 +- .../priorApproval/convertCommercialToHome.ts | 1631 ++++++++++++++++ .../data/priorApproval/extendUniversity.ts | 4 +- .../data/priorApproval/largerExtension.ts | 4 +- .../data/priorApproval/solarPanels.ts | 4 +- .../landDrainageConsent.json | 0 .../existing.json | 0 .../proposed.json | 0 .../listedBuildingConsent.json | 0 .../planningPermission/fullHouseholder.json | 0 .../fullHouseholderInConservationArea.json | 0 .../planningPermission/major.json | 0 .../planningPermission/minor.json | 0 .../priorApproval/buildHomes.json | 0 .../convertCommercialToHome.json | 0 .../priorApproval/extendUniversity.json | 0 .../priorApproval/largerExtension.json | 0 .../priorApproval/solarPanels.json | 0 .../lawfulDevelopmentCertificate/existing.ts | 1314 ------------- .../lawfulDevelopmentCertificate/proposed.ts | 906 --------- .../priorApproval/convertCommercialToHome.ts | 1632 ----------------- ...nningApplication.json => application.json} | 18 +- scripts/build-schema.sh | 4 +- tests/usage.test.ts | 12 +- .../File.ts | 0 .../Metadata.ts | 0 .../PreAssessment.ts | 0 .../Responses.ts | 0 .../data/Applicant.ts | 0 .../data/ApplicationData.ts} | 10 +- .../data/Files.ts | 0 .../data/Property.ts | 0 .../data/Proposal.ts | 0 .../data/User.ts | 0 .../data/shared.ts | 0 .../enums/ApplicationTypes.ts | 0 .../enums/BuildingRegulations.ts | 0 .../enums/DevelopmentTypes.ts | 0 .../enums/FileTypes.ts | 0 .../enums/Flags.ts | 0 .../enums/HousingProviders.ts | 0 .../enums/OpenSpaces.ts | 0 .../enums/PlanningConstraints.ts | 0 .../enums/ProjectTypes.ts | 0 .../enums/PropertyTypes.ts | 0 .../enums/ProtectedSpaces.ts | 0 .../enums/ResidentialUnitTypes.ts | 0 .../enums/TenureTypes.ts | 0 .../enums/UseClasses.ts | 0 .../index.ts | 8 +- 58 files changed, 3894 insertions(+), 3902 deletions(-) rename examples/{digitalPlanningApplication => application}/data/landDrainageConsent.ts (98%) create mode 100644 examples/application/data/lawfulDevelopmentCertificate/existing.ts create mode 100644 examples/application/data/lawfulDevelopmentCertificate/proposed.ts rename examples/{digitalPlanningApplication => application}/data/listedBuildingConsent.ts (99%) rename examples/{digitalPlanningApplication => application}/data/planningPermission/fullHouseholder.ts (99%) rename examples/{digitalPlanningApplication => application}/data/planningPermission/fullHouseholderInConservationArea.ts (99%) rename examples/{digitalPlanningApplication => application}/data/planningPermission/major.ts (99%) rename examples/{digitalPlanningApplication => application}/data/planningPermission/minor.ts (99%) rename examples/{digitalPlanningApplication => application}/data/priorApproval/buildHomes.ts (99%) create mode 100644 examples/application/data/priorApproval/convertCommercialToHome.ts rename examples/{digitalPlanningApplication => application}/data/priorApproval/extendUniversity.ts (99%) rename examples/{digitalPlanningApplication => application}/data/priorApproval/largerExtension.ts (99%) rename examples/{digitalPlanningApplication => application}/data/priorApproval/solarPanels.ts (99%) rename examples/{digitalPlanningApplication => application}/landDrainageConsent.json (100%) rename examples/{digitalPlanningApplication => application}/lawfulDevelopmentCertificate/existing.json (100%) rename examples/{digitalPlanningApplication => application}/lawfulDevelopmentCertificate/proposed.json (100%) rename examples/{digitalPlanningApplication => application}/listedBuildingConsent.json (100%) rename examples/{digitalPlanningApplication => application}/planningPermission/fullHouseholder.json (100%) rename examples/{digitalPlanningApplication => application}/planningPermission/fullHouseholderInConservationArea.json (100%) rename examples/{digitalPlanningApplication => application}/planningPermission/major.json (100%) rename examples/{digitalPlanningApplication => application}/planningPermission/minor.json (100%) rename examples/{digitalPlanningApplication => application}/priorApproval/buildHomes.json (100%) rename examples/{digitalPlanningApplication => application}/priorApproval/convertCommercialToHome.json (100%) rename examples/{digitalPlanningApplication => application}/priorApproval/extendUniversity.json (100%) rename examples/{digitalPlanningApplication => application}/priorApproval/largerExtension.json (100%) rename examples/{digitalPlanningApplication => application}/priorApproval/solarPanels.json (100%) delete mode 100644 examples/digitalPlanningApplication/data/lawfulDevelopmentCertificate/existing.ts delete mode 100644 examples/digitalPlanningApplication/data/lawfulDevelopmentCertificate/proposed.ts delete mode 100644 examples/digitalPlanningApplication/data/priorApproval/convertCommercialToHome.ts rename schemas/{digitalPlanningApplication.json => application.json} (99%) rename types/schemas/{digitalPlanningApplication => application}/File.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/Metadata.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/PreAssessment.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/Responses.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/data/Applicant.ts (100%) rename types/schemas/{digitalPlanningApplication/data/Application.ts => application/data/ApplicationData.ts} (95%) rename types/schemas/{digitalPlanningApplication => application}/data/Files.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/data/Property.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/data/Proposal.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/data/User.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/data/shared.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/ApplicationTypes.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/BuildingRegulations.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/DevelopmentTypes.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/FileTypes.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/Flags.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/HousingProviders.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/OpenSpaces.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/PlanningConstraints.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/ProjectTypes.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/PropertyTypes.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/ProtectedSpaces.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/ResidentialUnitTypes.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/TenureTypes.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/enums/UseClasses.ts (100%) rename types/schemas/{digitalPlanningApplication => application}/index.ts (81%) diff --git a/examples/digitalPlanningApplication/data/landDrainageConsent.ts b/examples/application/data/landDrainageConsent.ts similarity index 98% rename from examples/digitalPlanningApplication/data/landDrainageConsent.ts rename to examples/application/data/landDrainageConsent.ts index 46aa85a6..f6970f4c 100644 --- a/examples/digitalPlanningApplication/data/landDrainageConsent.ts +++ b/examples/application/data/landDrainageConsent.ts @@ -1,9 +1,9 @@ -import {DigitalPlanningApplication} from '../../../types/schemas/digitalPlanningApplication'; -import {BaseProposal} from '../../../types/schemas/digitalPlanningApplication/data/Proposal'; +import {Application} from '../../../types/schemas/application'; +import {BaseProposal} from '../../../types/schemas/application/data/Proposal'; const version = process.env['VERSION'] || '@next'; -export const landDrainageConsent: DigitalPlanningApplication = { +export const landDrainageConsent: Application = { data: { user: { role: 'applicant', diff --git a/examples/application/data/lawfulDevelopmentCertificate/existing.ts b/examples/application/data/lawfulDevelopmentCertificate/existing.ts new file mode 100644 index 00000000..d2329a65 --- /dev/null +++ b/examples/application/data/lawfulDevelopmentCertificate/existing.ts @@ -0,0 +1,1311 @@ +import {Application} from '../../../../types/schemas/application'; + +const version = process.env['VERSION'] || '@next'; + +export const lawfulDevelopmentCertificateExisting: Application = { + data: { + application: { + type: { + value: 'ldc.existing', + description: 'Lawful Development Certificate - Existing use', + }, + fee: { + calculated: 258, + payable: 258, + category: { + sixAndSeven: 258, + }, + exemption: { + disability: false, + resubmission: false, + }, + reduction: { + sports: false, + parishCouncil: false, + alternative: false, + }, + reference: { + govPay: 'sandbox-ref-123', + }, + }, + declaration: { + accurate: true, + connection: { + value: 'none', + }, + }, + }, + user: { + role: 'agent', + }, + applicant: { + type: 'individual', + name: { + first: 'Roald', + last: 'Dahl', + }, + email: 'f.fox@boggischickenshed.com', + phone: { + primary: 'Not provided by agent', + }, + address: { + sameAsSiteAddress: true, + }, + siteContact: { + role: 'applicant', + }, + ownership: { + interest: 'occupier', + owners: [ + { + interest: 'owner', + name: 'Matilda Wormwood', + address: { + town: 'Reading', + line1: '9, Library Way', + line2: '', + county: '', + country: 'UK', + postcode: 'L1T3R8Y', + }, + noticeGiven: true, + }, + ], + }, + agent: { + name: { + first: 'F', + last: 'Fox', + }, + email: 'f.fox@boggischickenshed.com', + phone: { + primary: '0234 567 8910', + }, + address: { + line1: 'The Tree', + line2: 'One Tree Hill', + town: 'Great Tunnelling', + county: '', + postcode: 'F0XH0L3', + country: '', + }, + }, + }, + property: { + address: { + latitude: 51.6994957, + longitude: -0.708966, + x: 489320, + y: 200872, + title: 'GIPSY HOUSE, WHITEFIELD LANE, GREAT MISSENDEN', + singleLine: 'GIPSY HOUSE, WHITEFIELD LANE, GREAT MISSENDEN, HP16 0BP', + source: 'Ordnance Survey', + uprn: '100081174436', + usrn: '07300709', + pao: '', + street: 'WHITEFIELD LANE', + town: 'GREAT MISSENDEN', + postcode: 'HP16 0BP', + }, + boundary: { + site: { + type: 'Feature', + geometry: { + type: 'Polygon', + coordinates: [ + [ + [-0.7085376977920632, 51.699564621757816], + [-0.7086127996444802, 51.69965605327502], + [-0.708982944488535, 51.699654390885456], + [-0.7089909911155797, 51.699673508361855], + [-0.7089319825172521, 51.699683482694184], + [-0.7089520990848638, 51.69973002954916], + [-0.7091867923736667, 51.69968930105364], + [-0.7092216610908603, 51.699688469859495], + [-0.709239095449457, 51.69968514508267], + [-0.709253847599039, 51.6997134056779], + [-0.7093128561973666, 51.69970176896433], + [-0.7092699408531282, 51.699610337539525], + [-0.7096253335476013, 51.699648572521454], + [-0.7098613679409116, 51.69958457046823], + [-0.7098962366581053, 51.69955049141595], + [-0.7098090648651213, 51.6994216557425], + [-0.7099243998527616, 51.699390070166544], + [-0.7098264992237182, 51.699238791576136], + [-0.7097460329532714, 51.699236297968724], + [-0.7095716893673034, 51.69927536446852], + [-0.7095421850681398, 51.69927619567025], + [-0.7092954218387698, 51.69931941814053], + [-0.7090929150581455, 51.69937427737031], + [-0.709021836519251, 51.69938923896689], + [-0.7089574635028936, 51.6994008757608], + [-0.7088904082775213, 51.69942082454341], + [-0.7086691260337761, 51.699501450783515], + [-0.7086181640624932, 51.699517243535354], + [-0.7085457444191079, 51.699541348251245], + [-0.7085350155830483, 51.69954799782576], + [-0.7085376977920632, 51.699564621757816], + ], + ], + }, + properties: null, + }, + area: { + hectares: 0.299367, + squareMetres: 2993.67, + }, + }, + planning: { + sources: [ + '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', + 'https://api.editor.planx.dev/roads?usrn=07300709', + ], + designations: [ + { + 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: { + text: 'Planning Data', + url: '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, + }, + { + value: 'listed', + description: 'Listed Building', + intersects: false, + }, + { + value: 'monument', + description: 'Site of a Scheduled Monument', + intersects: false, + }, + { + value: 'designated', + description: 'Designated land', + intersects: true, + }, + { + value: 'nature.SAC', + description: 'Special Area of Conservation (SAC)', + intersects: false, + }, + { + value: 'nature.ASNW', + description: 'Ancient Semi-Natural Woodland (ASNW)', + intersects: false, + }, + { + value: 'nature.SSSI', + description: 'Site of Special Scientific Interest (SSSI)', + intersects: false, + }, + { + value: 'locallyListed', + description: 'Locally Listed Building', + intersects: false, + }, + { + value: 'nature.SPA', + description: 'Special Protection Area (SPA)', + intersects: false, + }, + { + value: 'designated.WHS', + description: 'UNESCO World Heritage Site or buffer zone', + intersects: false, + }, + { + value: 'registeredPark', + description: 'Historic Park or Garden', + intersects: false, + }, + { + value: 'designated.AONB', + description: 'Area of Outstanding Natural Beauty (AONB)', + intersects: true, + entities: [ + { + name: 'Chilterns', + source: { + text: 'Planning Data', + url: 'https://www.planning.data.gov.uk/entity/1000005', + }, + }, + ], + }, + { + value: 'designated.nationalPark', + description: 'National Park', + intersects: false, + }, + { + value: 'designated.conservationArea', + description: 'Conservation Area', + intersects: false, + }, + { + value: 'designated.nationalPark.broads', + description: 'National Park - Broads', + intersects: false, + }, + { + value: 'road.classified', + description: 'Classified Road', + intersects: false, + }, + ], + }, + localAuthorityDistrict: ['Buckinghamshire', 'Chiltern'], + region: 'South East', + type: { + value: 'residential.dwelling.house.detached', + description: 'Detached', + }, + }, + proposal: { + projectType: [ + { + value: 'extend.outbuilding.studio', + description: 'Add an outbuilding - studio', + }, + ], + description: + 'Construction of a small outbuilding for use as a writing studio.', + boundary: { + site: { + type: 'Feature', + geometry: { + type: 'Polygon', + coordinates: [ + [ + [-0.7085376977920632, 51.699564621757816], + [-0.7086127996444802, 51.69965605327502], + [-0.708982944488535, 51.699654390885456], + [-0.7089909911155797, 51.699673508361855], + [-0.7089319825172521, 51.699683482694184], + [-0.7089520990848638, 51.69973002954916], + [-0.7091867923736667, 51.69968930105364], + [-0.7092216610908603, 51.699688469859495], + [-0.709239095449457, 51.69968514508267], + [-0.709253847599039, 51.6997134056779], + [-0.7093128561973666, 51.69970176896433], + [-0.7092699408531282, 51.699610337539525], + [-0.7096253335476013, 51.699648572521454], + [-0.7098613679409116, 51.69958457046823], + [-0.7098962366581053, 51.69955049141595], + [-0.7098090648651213, 51.6994216557425], + [-0.7099243998527616, 51.699390070166544], + [-0.7098264992237182, 51.699238791576136], + [-0.7097460329532714, 51.699236297968724], + [-0.7095716893673034, 51.69927536446852], + [-0.7095421850681398, 51.69927619567025], + [-0.7092954218387698, 51.69931941814053], + [-0.7090929150581455, 51.69937427737031], + [-0.709021836519251, 51.69938923896689], + [-0.7089574635028936, 51.6994008757608], + [-0.7088904082775213, 51.69942082454341], + [-0.7086691260337761, 51.699501450783515], + [-0.7086181640624932, 51.699517243535354], + [-0.7085457444191079, 51.699541348251245], + [-0.7085350155830483, 51.69954799782576], + [-0.7085376977920632, 51.699564621757816], + ], + ], + }, + properties: null, + }, + area: { + hectares: 0.299367, + squareMetres: 2993.67, + }, + }, + date: {}, + }, + }, + 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.', + }, + ], + responses: [ + { + question: 'List the changes involved in the project', + responses: [ + {value: 'Outbuildings (such as sheds, garages or garden offices)'}, + ], + metadata: {}, + }, + { + question: 'What type of changes were they?', + 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']}}, + ], + 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'}], + 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'}], + metadata: { + policyRefs: [ + { + text: 'Town and Country Planning Act 1990 Section 171B', + url: 'https://www.legislation.gov.uk/ukpga/1990/8/section/171B', + }, + ], + }, + }, + { + question: 'Has anyone ever attempted to conceal the changes?', + responses: [ + {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', + }, + ], + }, + }, + { + question: 'Has enforcement action been taken about these changes?', + responses: [ + {value: 'No', metadata: {flags: ['Planning permission / Immune']}}, + ], + metadata: { + policyRefs: [ + { + 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', + }, + ], + }, + }, + { + 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)'}, + ], + metadata: { + autoAnswered: true, + policyRefs: [ + { + 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}, + }, + { + question: 'What type of property is it?', + responses: [{value: 'House'}], + metadata: { + autoAnswered: true, + policyRefs: [ + { + 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'}], + 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'}], + metadata: {}, + }, + { + question: 'Was the house built before 2020?', + responses: [{value: 'Yes, it was built before 2020'}], + metadata: {}, + }, + { + question: 'What is the new outbuilding used for?', + 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', + }, + ], + }, + }, + { + question: 'How will the studio be used?', + responses: [ + { + value: 'Personal use', + 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', + }, + ], + }, + }, + { + question: 'How many storeys does the new outbuilding have?', + responses: [ + { + value: '1 storey', + 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', + }, + ], + }, + }, + { + question: + 'Does the outbuilding include any balconies, decks, verandahs or platforms that are more than 30cm above ground level?', + responses: [ + { + value: 'No', + 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)', + 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 any part of the new outbuilding in front of the original house?', + responses: [ + { + value: 'No', + 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}, + }, + { + question: + 'Is any part of the new outbuilding between a side wall of the original house and the boundary?', + responses: [ + { + value: 'No', + 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'}], + metadata: {}, + }, + { + question: 'What type of roof does the new outbuilding have?', + 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', + }, + ], + }, + }, + { + question: 'How high is the new outbuilding?', + responses: [ + { + value: '4m or lower', + 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}, + }, + { + question: 'Is the property in any of the following?', + responses: [ + { + value: 'An area of outstanding natural beauty', + metadata: {flags: ['Planning permission / Permission needed']}, + }, + ], + metadata: {autoAnswered: true}, + }, + { + question: 'How far from the house is the new outbuilding?', + 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', + }, + ], + }, + }, + { + question: + 'What is the total footprint of all outbuildings more than 20m from the house?', + responses: [ + { + value: '10m² or less', + 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', + }, + ], + }, + }, + { + question: + 'How much of the property is covered by extensions and outbuildings?', + responses: [ + { + value: '50% or less of the available area around the original house', + 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', + }, + ], + }, + }, + { + question: + 'Does the new outbuilding have a satellite dish or antenna on it?', + responses: [ + { + value: 'No', + 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', + }, + ], + }, + }, + { + question: 'Is the new outbuilding air conditioned?', + responses: [ + { + value: 'No', + metadata: {flags: ['Planning permission / Not development']}, + }, + ], + metadata: {}, + }, + { + question: 'What types of changes does the project involve?', + 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}, + }, + { + question: 'Are there any protected trees on the property?', + 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: {autoAnswered: true}, + }, + { + question: 'What are you applying about?', + 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}, + }, + { + question: 'What does the project involve?', + responses: [ + { + value: + 'Add an outbuilding (such as sheds, shelters or garden offices)', + }, + ], + metadata: {autoAnswered: true}, + }, + { + question: 'Is it a residential property?', + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Do the changes involve the creation of any new homes?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: + 'Do the changes involve creating any new bedrooms or bathrooms?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: 'What is the internal floor area of the new outbuilding?', + responses: [{value: '9'}], + metadata: {}, + }, + { + question: 'Do the changes involve the creation of any new homes?', + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Is the property in the Greater London Authority area?', + 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: 'Your contact details', + responses: [ + {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}, + }, + { + question: "Applicant's email address", + responses: [{value: 'r.dahl@example.com'}], + metadata: {}, + }, + { + question: "Did you already provide the applicant's telephone number?", + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, + }, + { + question: "Applicant's telephone number", + 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}, + }, + { + question: 'Have you notified the other owners?', + responses: [{value: 'Yes'}], + metadata: {}, + }, + { + question: + "Which of these best describes the applicant's interest in the land?", + 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'}], + metadata: {}, + }, + { + question: 'Do you know who the other owners of the site are?', + responses: [{value: 'Yes, all of them'}], + metadata: {}, + }, + { + question: 'How many owners are there in total?', + responses: [{value: '3'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Full name of Owner 2', + responses: [{value: 'William Wonka'}], + metadata: {}, + }, + { + question: 'Address of Owner 2', + responses: [ + { + value: + 'The Factory, 10, Scrumdiddlyumptious Avenue, Oomaph upon Ouse, CH0C0L8', + }, + ], + metadata: {}, + }, + { + question: 'Have you already notified the other owners?', + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Date on which notice was given to Owner 2', + responses: [{value: '1964-04-01'}], + metadata: {}, + }, + { + question: 'Full name of Owner 3', + responses: [{value: 'Matilda Wormwood'}], + metadata: {}, + }, + { + question: 'Address of Owner 3', + responses: [{value: '9, Library Way, Reading, L1T3R8Y'}], + metadata: {}, + }, + { + question: 'Have you already notified the other owners?', + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Date on which notice was given to Owner 3', + responses: [{value: '1988-04-01'}], + metadata: {}, + }, + { + question: 'What types of changes did the project involve?', + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, + }, + { + question: + 'Would you like to upload any photographs of the property as it is today?', + responses: [{value: 'Yes'}], + metadata: {}, + }, + { + question: 'What type of extension have you added?', + responses: [{value: 'Outbuilding'}], + metadata: {autoAnswered: true}, + }, + { + question: + 'Is the roof of the outbuilding shown on a drawing you have already uploaded?', + responses: [{value: 'Yes'}], + metadata: {}, + }, + { + question: 'Did the works involve any alterations to ground levels?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: + 'Would you like to upload any photographs of the property before the changes?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: + 'Would you like to upload any other additional drawings or documents?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: 'Provide evidence of completion date', + responses: [ + {value: 'Construction invoices'}, + {value: 'Other documents or correspondence'}, + ], + metadata: {}, + }, + { + question: 'What do these construction invoices show?', + responses: [{value: "Nothing, it's a test document. "}], + metadata: {}, + }, + { + question: 'What do these documents show?', + 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}, + }, + { + question: 'What type of changes are you applying for?', + responses: [{value: 'Existing changes'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Is the property a home?', + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, + }, + { + question: 'What types of changes does the application relate to?', + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, + }, + { + question: 'How many homes does this application relate to?', + 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 did you build?', + responses: [ + {value: 'Outbuilding (such as shed, shelter or garden office'}, + ], + metadata: {autoAnswered: true}, + }, + { + question: 'Is the property a home?', + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, + }, + { + question: 'What works does the project involve?', + 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'}], + 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', + }, + { + 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'}], + 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}, + }, + { + question: 'Does the application qualify for a resubmission exemption?', + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Is the site a sports field?', + 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', + }, + ], + }, + }, + { + question: + 'Is the application being made by (or on behalf of) a parish or community council?', + 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', + }, + ], + }, + }, + { + question: + 'Are you also submitting another proposal for the same site today?', + 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', + }, + ], + }, + }, + { + question: + 'Does the application qualify for the sports club fee reduction?', + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, + }, + { + question: + 'Does the application qualify for the parish council reduction?', + 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', + }, + ], + }, + }, + { + question: + 'Does the application qualify for the alternative application reduction?', + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, + }, + { + question: + 'Did you get any pre-application advice before making this application?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: + 'What local planning authority is this application being sent to?', + responses: [{value: 'Chiltern'}], + metadata: {autoAnswered: true}, + }, + { + question: 'What type of application is it?', + responses: [{value: 'Lawful Development Certificate'}], + metadata: {autoAnswered: true}, + }, + { + question: 'What type of works are you applying about?', + responses: [{value: 'Existing'}], + metadata: {autoAnswered: true}, + }, + { + question: "What is the applicant's interest in the land?", + responses: [{value: 'Owner'}], + metadata: {autoAnswered: true}, + }, + { + question: "What is the user's role?", + responses: [{value: 'Other'}], + metadata: {autoAnswered: true}, + }, + { + question: "What is the applicant's declared connections?", + responses: [{value: 'None'}], + metadata: {autoAnswered: true}, + }, + ], + files: [ + { + name: 'https://api.editor.planx.dev/file/private/tbp4kiba/myPlans.pdf', + type: [ + { + value: 'photographs.proposed', + description: 'Photographs - proposed', + }, + { + value: 'sitePlan.proposed', + description: 'Site plan - proposed', + }, + { + value: 'elevations.proposed', + description: 'Elevations - proposed', + }, + { + value: 'floorPlan.proposed', + description: 'Floor plan - proposed', + }, + ], + }, + { + name: 'https://api.editor.planx.dev/file/private/vyyogkcf/correspondence.pdf', + type: [ + { + value: 'otherEvidence', + description: 'Other - evidence or correspondence', + }, + ], + description: 'Nothing really, this is just a test. ', + }, + { + name: 'https://api.editor.planx.dev/file/private/97ltnrxr/invoice.pdf', + type: [ + { + value: 'constructionInvoice', + description: 'Construction invoice', + }, + ], + description: "Nothing, it's a test document. ", + }, + ], + metadata: { + organisation: 'BKM', + id: '95f90e21-93f5-4761-90b3-815c673e041f', + source: 'PlanX', + service: { + flowId: '824628b2-deeb-48b0-92b1-2ca7f3b17163', + url: 'https://www.editor.planx.dev/buckinghamshire/apply-for-a-lawful-development-certificate/preview', + files: { + required: [ + { + value: 'photographs.proposed', + description: 'Photographs - proposed', + }, + { + value: 'sitePlan.proposed', + description: 'Site plan - proposed', + }, + { + value: 'elevations.proposed', + description: 'Elevations - proposed', + }, + { + value: 'floorPlan.proposed', + description: 'Floor plan - proposed', + }, + { + value: 'floorPlan.proposed', + description: 'Floor plan - proposed', + }, + ], + recommended: [ + { + value: 'otherEvidence', + description: 'Other - evidence or correspondence', + }, + { + value: 'constructionInvoice', + description: 'Construction invoice', + }, + ], + optional: [], + }, + fee: { + category: { + sixAndSeven: [ + { + description: + 'The planning fee for an application for a Certificate of Lawfulness relating to existing alterations or extensions of a single home is £258.', + policyRefs: [ + { + text: 'UK Statutory Instruments 2023 No. 1197', + url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', + }, + ], + }, + ], + }, + calculated: [ + { + description: + 'The planning fee for an application for a Certificate of Lawfulness relating to existing alterations or extensions of a single home is £258.', + policyRefs: [ + { + text: 'UK Statutory Instruments 2023 No. 1197', + url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', + }, + ], + }, + ], + payable: [ + { + description: + 'The planning fee for an application for a Certificate of Lawfulness relating to existing alterations or extensions of a single home is £258.', + policyRefs: [ + { + text: 'UK Statutory Instruments 2023 No. 1197', + url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', + }, + ], + }, + ], + }, + }, + submittedAt: '2023-10-02t00:00:00z', + schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`, + }, +}; diff --git a/examples/application/data/lawfulDevelopmentCertificate/proposed.ts b/examples/application/data/lawfulDevelopmentCertificate/proposed.ts new file mode 100644 index 00000000..050fdded --- /dev/null +++ b/examples/application/data/lawfulDevelopmentCertificate/proposed.ts @@ -0,0 +1,904 @@ +import {Application} from '../../../../types/schemas/application'; + +const version = process.env['VERSION'] || '@next'; + +export const lawfulDevelopmentCertificateProposed: Application = { + data: { + application: { + type: { + value: 'ldc.proposed', + description: 'Lawful Development Certificate - Proposed use', + }, + fee: { + calculated: 129, + payable: 0, + category: { + sixAndSeven: 129, + }, + exemption: { + disability: true, + resubmission: true, + }, + reduction: { + sports: false, + parishCouncil: false, + alternative: false, + }, + }, + declaration: { + accurate: true, + connection: { + value: 'none', + }, + }, + }, + user: { + role: 'applicant', + }, + applicant: { + type: 'individual', + name: { + first: 'Enid', + last: 'Blyton', + }, + email: 'famousfive@example.com', + phone: { + primary: '05555 555 555', + }, + address: { + sameAsSiteAddress: true, + }, + siteContact: { + role: 'applicant', + }, + ownership: { + interest: 'owner', + }, + }, + property: { + address: { + latitude: 51.6154458, + longitude: -0.6463271, + x: 493822, + y: 191603, + title: '7, BLYTON CLOSE, BEACONSFIELD', + singleLine: '7, BLYTON CLOSE, BEACONSFIELD, HP9 2LX', + source: 'Ordnance Survey', + uprn: '100080482163', + usrn: '35200844', + pao: '7', + street: 'BLYTON CLOSE', + town: 'BEACONSFIELD', + postcode: 'HP9 2LX', + }, + boundary: { + site: { + type: 'Feature', + geometry: { + type: 'Polygon', + coordinates: [ + [ + [-0.646633654832832, 51.61556919642334], + [-0.6466296315193095, 51.61554504700152], + [-0.6465049088001171, 51.61551173743314], + [-0.6464512646198194, 51.61522027766699], + [-0.6463131308555524, 51.61522943785954], + [-0.6463037431240002, 51.61520695374722], + [-0.6462487578391951, 51.615222775901515], + [-0.6462393701076429, 51.61520861923739], + [-0.6459456682205124, 51.615292726412235], + [-0.6460489332675857, 51.61561499701554], + [-0.646633654832832, 51.61556919642334], + ], + ], + }, + properties: null, + }, + area: { + hectares: 0.141826, + squareMetres: 1418.26, + }, + }, + planning: { + sources: [ + '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', + 'https://api.editor.planx.dev/roads?usrn=35200844', + ], + designations: [ + { + 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, + }, + { + value: 'listed', + description: 'Listed Building', + intersects: false, + }, + { + value: 'monument', + description: 'Site of a Scheduled Monument', + intersects: false, + }, + { + value: 'designated', + description: 'Designated land', + intersects: false, + }, + { + value: 'nature.SAC', + description: 'Special Area of Conservation (SAC)', + intersects: false, + }, + { + value: 'nature.ASNW', + description: 'Ancient Semi-Natural Woodland (ASNW)', + intersects: false, + }, + { + value: 'nature.SSSI', + description: 'Site of Special Scientific Interest (SSSI)', + intersects: false, + }, + { + value: 'locallyListed', + description: 'Locally Listed Building', + intersects: false, + }, + { + value: 'nature.SPA', + description: 'Special Protection Area (SPA)', + intersects: false, + }, + { + value: 'designated.WHS', + description: 'UNESCO World Heritage Site or buffer zone', + intersects: false, + }, + { + value: 'registeredPark', + description: 'Historic Park or Garden', + intersects: false, + }, + { + value: 'designated.AONB', + description: 'Area of Outstanding Natural Beauty (AONB)', + intersects: false, + }, + { + value: 'designated.nationalPark', + description: 'National Park', + intersects: false, + }, + { + value: 'designated.conservationArea', + description: 'Conservation Area', + intersects: false, + }, + { + value: 'designated.nationalPark.broads', + description: 'National Park - Broads', + intersects: false, + }, + { + value: 'road.classified', + description: 'Classified Road', + intersects: false, + }, + ], + }, + localAuthorityDistrict: ['Buckinghamshire', 'South Bucks'], + region: 'South East', + type: { + value: 'residential.dwelling.house.detached', + description: 'Detached', + }, + }, + proposal: { + projectType: [ + { + value: 'extend.rear', + description: 'Add a rear or side extension (or conservatory)', + }, + ], + description: 'Rear extension of a home', + boundary: { + site: { + type: 'Feature', + geometry: { + type: 'Polygon', + coordinates: [ + [ + [-0.646633654832832, 51.61556919642334], + [-0.6466296315193095, 51.61554504700152], + [-0.6465049088001171, 51.61551173743314], + [-0.6464512646198194, 51.61522027766699], + [-0.6463131308555524, 51.61522943785954], + [-0.6463037431240002, 51.61520695374722], + [-0.6462487578391951, 51.615222775901515], + [-0.6462393701076429, 51.61520861923739], + [-0.6459456682205124, 51.615292726412235], + [-0.6460489332675857, 51.61561499701554], + [-0.646633654832832, 51.61556919642334], + ], + ], + }, + properties: null, + }, + area: { + hectares: 0.141826, + squareMetres: 1418.26, + }, + }, + date: {}, + extend: { + area: { + squareMetres: 24, + }, + }, + }, + }, + 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.', + }, + ], + responses: [ + { + question: 'List the changes involved in the project', + responses: [{value: 'Add a rear or side extension (or conservatory)'}], + metadata: { + policyRefs: [ + { + 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'}], + 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}, + }, + { + question: 'How many storeys does the original house have?', + responses: [{value: '2 or more'}], + metadata: {}, + }, + { + question: 'Does the original house have a projection to the rear?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: 'Was the house always 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', + }, + ], + }, + }, + { + question: 'Was the house built before 2020?', + responses: [ + { + value: 'Yes, it was built before 2020', + 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'}], + 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}, + }, + { + question: 'Which of these best describes your project?', + responses: [{value: 'Rear only'}], + metadata: { + policyRefs: [ + { + 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}, + }, + { + question: 'Is the property a site of special scientific interest?', + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, + }, + { + question: 'What type of house is it?', + responses: [{value: 'Detached'}], + metadata: {autoAnswered: true}, + }, + { + question: + 'How far does the new addition extend beyond the back wall of the original house?', + responses: [ + { + value: 'Less than 4m', + 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'}], + metadata: {}, + }, + { + question: + 'Are the materials of the extension similar to the original house?', + responses: [ + { + value: 'Yes', + 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}, + }, + { + question: + 'How much of the property is covered by extensions and outbuildings?', + responses: [ + { + value: '50% or less of the available area around the original house', + 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}, + }, + { + question: + 'Have you already told us that you are doing works to a tree or hedge?', + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Are there any protected trees on the property?', + 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: {autoAnswered: true}, + }, + { + question: 'What are you applying about?', + 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}, + }, + { + question: 'What does the project involve?', + 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'}], + metadata: {}, + }, + { + question: 'Is it a residential property?', + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Do the changes involve the creation of any new homes?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: + 'Do the changes involve creating any new bedrooms or bathrooms?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: 'Do the changes involve the creation of any new homes?', + responses: [{value: 'No'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Is the property in the Greater London Authority area?', + 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}, + }, + { + question: 'Which of these best describes your interest in the land?', + 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}, + }, + { + question: + 'Does the work involve any alterations to ground or floor levels?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: 'Would you like to upload any photographs?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: 'What types of extension are being added?', + responses: [{value: 'Rear or side'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Do you also want to add existing internal floor plans?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: + 'Is the roof of the extension already shown on another set of drawings?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: + 'Would you like to upload any additional drawings, documents or images?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: 'What type of planning application are you making?', + responses: [{value: 'Lawful Development Certificate'}], + metadata: {autoAnswered: true}, + }, + { + question: 'What type of changes are you applying for?', + responses: [{value: 'Proposed changes'}], + metadata: {autoAnswered: true}, + }, + { + question: 'Is the property a home?', + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, + }, + { + question: 'What types of changes does the application relate to?', + responses: [{value: 'Extension'}], + metadata: {autoAnswered: true}, + }, + { + question: 'How many homes does this application relate to?', + 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}, + }, + { + question: 'Is the property a home?', + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, + }, + { + question: 'What works does the project involve?', + 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'}], + 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', + }, + { + 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'}], + 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: + 'Is this the first time you have resubmitted an application for this site?', + 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}, + }, + { + question: "What was the original application's reference number?", + 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'}], + 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'}], + metadata: {}, + }, + { + question: 'When did you submit the original application?', + responses: [{value: 'Within the last 12 months'}], + metadata: { + policyRefs: [ + { + 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}, + }, + { + question: 'Does the application qualify for a resubmission exemption?', + responses: [{value: 'Yes'}], + metadata: {autoAnswered: true}, + }, + { + question: + 'Did you get any pre-application advice before making this application?', + responses: [{value: 'No'}], + metadata: {}, + }, + { + question: + 'What local planning authority is this application being sent to?', + responses: [{value: 'South Buckinghamshire'}], + metadata: {autoAnswered: true}, + }, + { + question: 'What type of application is it?', + responses: [{value: 'Lawful Development Certificate'}], + metadata: {autoAnswered: true}, + }, + { + question: 'What type of works are you applying about?', + responses: [{value: 'Proposed'}], + metadata: {autoAnswered: true}, + }, + { + question: "What is the applicant's interest in the land?", + responses: [{value: 'Owner'}], + metadata: {autoAnswered: true}, + }, + { + question: "What is the user's role?", + responses: [{value: 'Applicant'}], + metadata: {autoAnswered: true}, + }, + { + question: "What is the applicant's declared connections?", + responses: [{value: 'None'}], + metadata: {autoAnswered: true}, + }, + ], + files: [ + { + name: 'https://api.editor.planx.dev/file/private/tbp4kiba/myPlans.pdf', + type: [ + { + value: 'roofPlan.existing', + description: 'Roof plan - existing', + }, + { + value: 'roofPlan.proposed', + description: 'Roof plan - proposed', + }, + { + value: 'sitePlan.existing', + description: 'Site plan - existing', + }, + { + value: 'sitePlan.proposed', + description: 'Site plan - proposed', + }, + { + value: 'elevations.existing', + description: 'Elevations - existing', + }, + { + value: 'elevations.proposed', + description: 'Elevations - proposed', + }, + ], + }, + { + name: 'https://api.editor.planx.dev/file/private/311w2id6/floor_plans.pdf', + type: [ + { + value: 'floorPlan.existing', + description: 'Floor plan - existing', + }, + { + value: 'floorPlan.proposed', + description: 'Floor plan - proposed', + }, + ], + }, + ], + metadata: { + organisation: 'BKM', + id: '8da51c5b-a2a0-4386-a15d-29d66f9c121c', + source: 'PlanX', + service: { + flowId: '824628b2-deeb-48b0-92b1-2ca7f3b17163', + url: 'https://www.editor.planx.dev/buckinghamshire/apply-for-a-lawful-development-certificate/preview', + files: { + required: [ + { + value: 'roofPlan.existing', + description: 'Roof plan - existing', + }, + { + value: 'sitePlan.existing', + description: 'Site plan - existing', + }, + { + value: 'roofPlan.proposed', + description: 'Roof plan - proposed', + }, + { + value: 'sitePlan.proposed', + description: 'Site plan - proposed', + }, + { + value: 'elevations.existing', + description: 'Elevations - existing', + }, + { + value: 'floorPlan.existing', + description: 'Floor plan - existing', + }, + { + value: 'elevations.proposed', + description: 'Elevations - proposed', + }, + { + value: 'floorPlan.proposed', + description: 'Floor plan - proposed', + }, + ], + recommended: [], + optional: [], + }, + fee: { + category: { + sixAndSeven: [ + { + description: + 'The plannning fee for an application for a Certificate of Lawfulness relating to the proposed alteration or extension of a single home is £129', + policyRefs: [ + { + text: 'UK Statutory Instruments 2023 No. 1197', + url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', + }, + ], + }, + ], + }, + calculated: [ + { + description: + 'The plannning fee for an application for a Certificate of Lawfulness relating to the proposed alteration or extension of a single home is £129', + policyRefs: [ + { + text: 'UK Statutory Instruments 2023 No. 1197', + url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', + }, + ], + }, + ], + payable: [ + { + description: + 'If the proposed works (to either a home or within the curtilage of a home) is for the sole purpose of - providing either a means of access to (or within) the dwellinghouse for a disabled resident (current or future); providing facilities that are designed to ensure the disabled persons safety, health or comfort; or providing disabled access to a public building - then no planning fee will be payable for this application.', + policyRefs: [ + { + text: 'UK Statutory Instruments 2012 No. 2920 Regulation 4', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/4/made', + }, + ], + }, + { + description: + 'In the case of an application that is the first resubmission of an application on the same site that is similar in character and description, no planning fee is payable.', + policyRefs: [ + { + text: 'UK Statutory Instruments 2012 No. 2920 Regulation 8', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/8/made', + }, + ], + }, + ], + }, + }, + submittedAt: '2023-10-02T00:00:00+01:00', + schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`, + }, +}; diff --git a/examples/digitalPlanningApplication/data/listedBuildingConsent.ts b/examples/application/data/listedBuildingConsent.ts similarity index 99% rename from examples/digitalPlanningApplication/data/listedBuildingConsent.ts rename to examples/application/data/listedBuildingConsent.ts index b4eca594..b6551dce 100644 --- a/examples/digitalPlanningApplication/data/listedBuildingConsent.ts +++ b/examples/application/data/listedBuildingConsent.ts @@ -1,8 +1,8 @@ -import {DigitalPlanningApplication} from '../../../types/schemas/digitalPlanningApplication'; +import {Application} from '../../../types/schemas/application'; const version = process.env['VERSION'] || '@next'; -export const listedBuildingConsent: DigitalPlanningApplication = { +export const listedBuildingConsent: Application = { data: { user: { role: 'applicant', diff --git a/examples/digitalPlanningApplication/data/planningPermission/fullHouseholder.ts b/examples/application/data/planningPermission/fullHouseholder.ts similarity index 99% rename from examples/digitalPlanningApplication/data/planningPermission/fullHouseholder.ts rename to examples/application/data/planningPermission/fullHouseholder.ts index c9c79cd2..0bb4852e 100644 --- a/examples/digitalPlanningApplication/data/planningPermission/fullHouseholder.ts +++ b/examples/application/data/planningPermission/fullHouseholder.ts @@ -1,8 +1,8 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; +import {Application} from '../../../../types/schemas/application'; const version = process.env['VERSION'] || '@next'; -export const planningPermissionFullHouseholder: DigitalPlanningApplication = { +export const planningPermissionFullHouseholder: Application = { data: { application: { type: { diff --git a/examples/digitalPlanningApplication/data/planningPermission/fullHouseholderInConservationArea.ts b/examples/application/data/planningPermission/fullHouseholderInConservationArea.ts similarity index 99% rename from examples/digitalPlanningApplication/data/planningPermission/fullHouseholderInConservationArea.ts rename to examples/application/data/planningPermission/fullHouseholderInConservationArea.ts index 1e64c1d7..b022088a 100644 --- a/examples/digitalPlanningApplication/data/planningPermission/fullHouseholderInConservationArea.ts +++ b/examples/application/data/planningPermission/fullHouseholderInConservationArea.ts @@ -1,8 +1,8 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; +import { Application } from "../../../../types/schemas/application"; const version = process.env['VERSION'] || '@next'; -export const planningPermissionFullHouseholderInConservationArea: DigitalPlanningApplication = +export const planningPermissionFullHouseholderInConservationArea: Application = { data: { application: { diff --git a/examples/digitalPlanningApplication/data/planningPermission/major.ts b/examples/application/data/planningPermission/major.ts similarity index 99% rename from examples/digitalPlanningApplication/data/planningPermission/major.ts rename to examples/application/data/planningPermission/major.ts index 4f8c230c..6b7ed169 100644 --- a/examples/digitalPlanningApplication/data/planningPermission/major.ts +++ b/examples/application/data/planningPermission/major.ts @@ -1,9 +1,9 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; -import {BaseProposal} from '../../../../types/schemas/digitalPlanningApplication/data/Proposal'; +import {Application} from '../../../../types/schemas/application'; +import {BaseProposal} from '../../../../types/schemas/application/data/Proposal'; const version = process.env['VERSION'] || '@next'; -export const planningPermissionMajor: DigitalPlanningApplication = { +export const planningPermissionMajor: Application = { data: { user: { role: 'agent', diff --git a/examples/digitalPlanningApplication/data/planningPermission/minor.ts b/examples/application/data/planningPermission/minor.ts similarity index 99% rename from examples/digitalPlanningApplication/data/planningPermission/minor.ts rename to examples/application/data/planningPermission/minor.ts index 1d4ac797..0bf3f3ab 100644 --- a/examples/digitalPlanningApplication/data/planningPermission/minor.ts +++ b/examples/application/data/planningPermission/minor.ts @@ -1,9 +1,9 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; -import {BaseProposal} from '../../../../types/schemas/digitalPlanningApplication/data/Proposal'; +import {Application} from '../../../../types/schemas/application'; +import {BaseProposal} from '../../../../types/schemas/application/data/Proposal'; const version = process.env['VERSION'] || '@next'; -export const planningPermissionMinor: DigitalPlanningApplication = { +export const planningPermissionMinor: Application = { data: { user: { role: 'applicant', diff --git a/examples/digitalPlanningApplication/data/priorApproval/buildHomes.ts b/examples/application/data/priorApproval/buildHomes.ts similarity index 99% rename from examples/digitalPlanningApplication/data/priorApproval/buildHomes.ts rename to examples/application/data/priorApproval/buildHomes.ts index 58fa7e74..919cd29a 100644 --- a/examples/digitalPlanningApplication/data/priorApproval/buildHomes.ts +++ b/examples/application/data/priorApproval/buildHomes.ts @@ -1,8 +1,8 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; +import {Application} from '../../../../types/schemas/application'; const version = process.env['VERSION'] || '@next'; -export const priorApprovalBuildHomes: DigitalPlanningApplication = { +export const priorApprovalBuildHomes: Application = { data: { user: { role: 'applicant', diff --git a/examples/application/data/priorApproval/convertCommercialToHome.ts b/examples/application/data/priorApproval/convertCommercialToHome.ts new file mode 100644 index 00000000..7913d557 --- /dev/null +++ b/examples/application/data/priorApproval/convertCommercialToHome.ts @@ -0,0 +1,1631 @@ +import {Application} from '../../../../types/schemas/application'; + +const version = process.env['VERSION'] || '@next'; + +export const priorApprovalConvertCommercialToHome: Application = { + data: { + user: { + role: 'agent', + }, + applicant: { + type: 'individual', + name: { + first: 'Vincent', + last: 'Van Gogh', + }, + email: 'ouchmyear@email.org', + phone: { + primary: '012345678901', + }, + address: { + sameAsSiteAddress: true, + }, + siteContact: { + role: 'agent', + }, + agent: { + name: { + first: 'Alan', + last: 'Agent', + }, + email: 'alanagent@email.org', + phone: { + primary: '098765432109', + }, + company: { + name: "Alan's Property & Fine Art Consultants PLC", + }, + address: { + line1: '12 Agent Avenue', + line2: '', + town: 'Plantown', + county: '', + postcode: 'PL47TN', + country: '', + }, + }, + }, + property: { + address: { + latitude: 51.4745098, + longitude: -0.1151501, + x: 530999, + y: 176745, + title: '87, HACKFORD ROAD, LONDON', + source: 'Ordnance Survey', + uprn: '100021847182', + usrn: '21900651', + pao: '87', + street: 'HACKFORD ROAD', + town: 'LONDON', + postcode: 'SW9 0RE', + singleLine: '87, HACKFORD ROAD, LONDON, LAMBETH, SW9 0RE', + }, + localAuthorityDistrict: ['Lambeth'], + region: 'London', + type: { + value: 'commercial.retail.shop', + description: 'Shop', + }, + planning: { + sources: [ + 'https://api.editor.planx.dev/gis/lambeth?geom=MULTIPOLYGON+%28%28%28-0.114876+51.474474%2C+-0.114863+51.474517%2C+-0.115261+51.474548%2C+-0.11527+51.474504%2C+-0.114876+51.474474%29%29%29&analytics=false&sessionId=86a5ba3e-1a7f-4460-bf46-826c3f982a92', + 'https://api.editor.planx.dev/roads?usrn=21900651', + ], + designations: [ + { + value: 'tpo', + description: 'Tree Preservation Order (TPO) or zone', + intersects: false, + }, + { + value: 'flood', + description: 'Flood Risk Zone', + intersects: false, + }, + { + value: 'listed', + description: 'Listed Building', + intersects: true, + entities: [ + { + name: '87, HACKFORD ROAD SW9', + source: { + text: 'Planning Data', + url: 'https://www.planning.data.gov.uk/entity/31537921', + }, + }, + { + name: 'No Address Supplied', + source: { + text: 'Planning Data', + url: 'https://www.planning.data.gov.uk/entity/42103309', + }, + }, + ], + }, + { + value: 'article4', + description: 'Article 4 Direction area', + intersects: false, + }, + { + value: 'monument', + description: 'Site of a Scheduled Monument', + intersects: false, + }, + { + value: 'greenBelt', + description: 'Green Belt', + intersects: false, + }, + { + value: 'designated', + description: 'Designated land', + intersects: true, + }, + { + value: 'nature.SAC', + description: 'Special Area of Conservation (SAC)', + intersects: false, + }, + { + value: 'nature.SPA', + description: 'Special Protection Area (SPA)', + intersects: false, + }, + { + value: 'nature.ASNW', + description: 'Ancient Semi-Natural Woodland (ASNW)', + intersects: false, + }, + { + value: 'nature.SSSI', + description: 'Site of Special Scientific Interest (SSSI)', + intersects: false, + }, + { + value: 'brownfieldSite', + description: 'Brownfield site', + intersects: false, + }, + { + value: 'designated.WHS', + description: 'UNESCO World Heritage Site or buffer zone', + intersects: false, + }, + { + value: 'listed.grade.I', + description: 'Listed Building - Grade I', + intersects: false, + }, + { + value: 'registeredPark', + description: 'Historic Park or Garden', + intersects: false, + }, + { + value: 'designated.AONB', + description: 'Area of Outstanding Natural Beauty (AONB)', + intersects: false, + }, + { + value: 'listed.grade.II', + description: 'Listed Building - Grade II', + intersects: true, + }, + { + value: 'listed.grade.II*', + description: 'Listed Building - Grade II*', + intersects: false, + }, + { + value: 'nature.ramsarSite', + description: 'Ramsar site', + intersects: false, + }, + { + value: 'designated.nationalPark', + description: 'National Park', + intersects: false, + }, + { + value: 'designated.conservationArea', + description: 'Conservation Area', + intersects: true, + entities: [ + { + name: 'Hackford Road', + source: { + text: 'Planning Data', + url: 'https://www.planning.data.gov.uk/entity/44000877', + }, + }, + ], + }, + { + value: 'designated.nationalPark.broads', + description: 'National Park - Broads', + intersects: false, + }, + { + value: 'road.classified', + description: 'Classified Road', + intersects: false, + }, + ], + }, + boundary: { + site: { + type: 'Feature', + geometry: { + type: 'MultiPolygon', + coordinates: [ + [ + [ + [-0.114876, 51.474474], + [-0.114863, 51.474517], + [-0.115261, 51.474548], + [-0.11527, 51.474504], + [-0.114876, 51.474474], + ], + ], + ], + }, + properties: { + name: '', + entity: 12000528882, + prefix: 'title-boundary', + dataset: 'title-boundary', + 'end-date': '', + typology: 'geography', + reference: '51792928', + 'entry-date': '2024-05-06', + 'start-date': '2011-05-10', + 'organisation-entity': '13', + }, + }, + area: { + hectares: 0.013555000000000001, + squareMetres: 135.55, + }, + }, + titleNumber: { + known: 'Yes', + number: '24/12345/FUL', + }, + EPC: { + known: 'Yes', + number: '1234-1234-1234-1234', + }, + parking: { + cars: { + count: 1, + }, + vans: { + count: 0, + }, + motorcycles: { + count: 0, + }, + cycles: { + count: 0, + }, + buses: { + count: 0, + }, + disabled: { + count: 0, + }, + carClub: { + count: 0, + }, + offStreet: { + residential: { + count: 0, + }, + }, + other: { + count: 0, + }, + }, + occupation: { + status: 'vacant', + }, + }, + application: { + type: { + value: 'pa.part3.classMA', + description: + 'Prior Approval - Convert a commercial building into a home or homes', + }, + fee: { + calculated: 258, + payable: 258, + category: { + one: 0, + two: 0, + three: 0, + four: 0, + five: 0, + sixAndSeven: 0, + eight: 0, + nine: 0, + ten: 0, + eleven: { + one: 0, + two: 0, + }, + twelve: { + one: 0, + two: 0, + }, + thirteen: 0, + fourteen: 0, + }, + exemption: { + disability: false, + resubmission: false, + }, + reduction: { + sports: false, + parishCouncil: false, + alternative: false, + }, + reference: { + govPay: 'p88epskokjikus74eafr36tfc1', + }, + }, + leadDeveloper: { + type: 'overseasCompany', + company: { + name: 'Impression Developments Inc.', + registrationNumber: '12345679ABC', + }, + }, + declaration: { + accurate: true, + connection: { + value: 'none', + }, + }, + }, + proposal: { + projectType: [ + { + value: 'changeOfUse', + description: 'Change the use of a building', + }, + ], + description: + 'Change of use from my sunflower and art supplies shop into a home.', + schemeName: "Vincent's New Property Venture", + date: { + start: '2024-07-28', + completion: '2035-07-28', + }, + boundary: { + site: { + type: 'Feature', + geometry: { + type: 'MultiPolygon', + coordinates: [ + [ + [ + [-0.114876, 51.474474], + [-0.114863, 51.474517], + [-0.115261, 51.474548], + [-0.11527, 51.474504], + [-0.114876, 51.474474], + ], + ], + ], + }, + properties: { + name: '', + entity: 12000528882, + prefix: 'title-boundary', + dataset: 'title-boundary', + 'end-date': '', + typology: 'geography', + reference: '51792928', + 'entry-date': '2024-05-06', + 'start-date': '2011-05-10', + 'organisation-entity': '13', + planx_user_action: 'Accepted the title boundary', + }, + }, + area: { + hectares: 0.013555000000000001, + squareMetres: 135.55, + }, + }, + parking: { + cars: { + count: 1, + difference: 0, + }, + vans: { + count: 0, + difference: 0, + }, + motorcycles: { + count: 0, + difference: 0, + }, + cycles: { + count: 2, + difference: 2, + }, + buses: { + count: 0, + difference: 0, + }, + disabled: { + count: 0, + difference: 0, + }, + carClub: { + count: 0, + difference: 0, + }, + offStreet: { + residential: { + count: 0, + difference: 0, + }, + }, + other: { + count: 0, + difference: 0, + }, + }, + units: { + residential: { + rebuilt: [ + { + development: { + value: 'changeOfUse', + description: 'Change of use', + }, + type: {value: 'terraced', description: 'Terraced home'}, + bedrooms: 3, + habitableRooms: 7, + area: {squareMetres: 300}, + tenure: { + value: 'marketForRent', + description: 'Market for rent', + }, + provider: {value: 'private', description: 'Private'}, + garden: false, + sheltered: false, + olderPersons: false, + compliance: [ + { + value: 'm42', + description: 'Part M4(2) of the Building Regulations 2010', + }, + { + value: 'm432a', + description: + 'Part M4(3)(2a) of the Building Regulations 2010', + }, + { + value: 'm432b', + description: + 'Part M4(3)(2b) of the Building Regulations 2010', + }, + ], + identicalUnits: 1, + }, + ], + }, + }, + energy: { + type: ['heatPump'], + heatPumps: { + capacity: {megawatts: 2}, + }, + }, + greenRoof: { + area: {squareMetres: 0}, + }, + urbanGreeningFactor: { + score: 4, + }, + utilities: { + gas: {connections: {count: 1}}, + water: {connections: {count: 1}}, + internet: { + residentialUnits: {count: 1}, + commercialUnits: {count: 0}, + }, + }, + waste: { + reuseRecycle: {percent: 2}, + }, + }, + }, + preAssessment: [ + { + value: 'Planning permission / Permission needed', + description: + 'It looks like the proposed changes may require planning permission.', + }, + ], + responses: [ + { + question: 'Is the property in Lambeth?', + responses: [ + { + value: 'Yes', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'The property', + }, + }, + { + question: 'What type of property is it?', + responses: [ + { + value: 'Something else', + }, + ], + metadata: { + sectionName: 'The property', + }, + }, + { + question: 'Which of these best describes the use of the property?', + responses: [ + { + value: 'Retail and services', + }, + ], + metadata: { + sectionName: 'The property', + }, + }, + { + question: 'What type of retail unit is it?', + responses: [ + { + value: 'Shop', + }, + ], + metadata: { + sectionName: 'The property', + }, + }, + { + question: 'Have the works already started?', + responses: [ + { + value: 'No', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: 'What type of property is it?', + responses: [ + { + value: 'Commercial building', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'About the project', + }, + }, + { + question: 'What is the property used as?', + responses: [ + { + value: 'Shop', + }, + ], + metadata: { + policyRefs: [ + { + text: 'The Town and Country Planning (Use Classes) (Amendment) (England) Regulations 2020', + url: 'https://www.legislation.gov.uk/uksi/2020/757/made', + }, + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015', + url: 'https://www.legislation.gov.uk/uksi/2015/596/contents', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'Is the shop any of these?', + responses: [ + { + value: "No, it's another kind of shop", + }, + ], + metadata: { + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'What does the shop sell?', + responses: [ + { + value: 'Other goods', + }, + ], + metadata: { + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'What do you want to change its use to?', + responses: [ + { + value: 'Single house', + }, + ], + metadata: { + policyRefs: [ + { + text: 'The Town and Country Planning (Use Classes) (Amendment) (England) Regulations 2020', + url: 'https://www.legislation.gov.uk/uksi/2020/757/made', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'What part of the building will be converted?', + responses: [ + { + value: 'The entire building', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: 'Is the site within an Area of Outstanding Natural Beauty?', + responses: [ + { + value: 'No', + metadata: { + flags: ['Planning permission / Prior approval'], + }, + }, + ], + metadata: { + autoAnswered: true, + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'Is the site in the Broads?', + responses: [ + { + value: 'No', + metadata: { + flags: ['Planning permission / Prior approval'], + }, + }, + ], + metadata: { + autoAnswered: true, + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'Is the site in a National Park?', + responses: [ + { + value: 'No', + metadata: { + flags: ['Planning permission / Prior approval'], + }, + }, + ], + metadata: { + autoAnswered: true, + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'Is the site part of a World Heritage Site?', + responses: [ + { + value: 'No', + metadata: { + flags: ['Planning permission / Prior approval'], + }, + }, + ], + metadata: { + autoAnswered: true, + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'Is the site in an area of Special Scientific Interest?', + responses: [ + { + value: 'No', + metadata: { + flags: ['Planning permission / Prior approval'], + }, + }, + ], + metadata: { + autoAnswered: true, + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'Is the site in a safety hazard area?', + responses: [ + { + value: 'No', + metadata: { + flags: ['Planning permission / Prior approval'], + }, + }, + ], + metadata: { + autoAnswered: true, + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'Is the site in a military explosives storage area?', + responses: [ + { + value: 'No', + metadata: { + flags: ['Planning permission / Prior approval'], + }, + }, + ], + metadata: { + autoAnswered: true, + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'Is any part of the property a scheduled monument?', + responses: [ + { + value: 'No', + metadata: { + flags: ['Planning permission / Prior approval'], + }, + }, + ], + metadata: { + autoAnswered: true, + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'Is any part of the property listed?', + responses: [ + { + value: 'Yes', + metadata: { + flags: ['Planning permission / Permission needed'], + }, + }, + ], + metadata: { + autoAnswered: true, + policyRefs: [ + { + text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', + url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'What type of property is it?', + responses: [ + { + value: 'Shop', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'About the project', + }, + }, + { + question: 'What type of prior approval application is it?', + responses: [ + { + value: 'Convert a commercial building into a home or homes', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'About the project', + }, + }, + { + question: 'What type or prior approval application is it?', + responses: [ + { + value: 'Convert a commercial building into a home or homes', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'About the project', + }, + }, + { + question: 'You need to submit a Sunlight and Daylight Report', + responses: [ + { + value: 'Upload a document later', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: 'How many new homes are being build?', + responses: [ + { + value: '1', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: + 'Has any part of the site been identified as contaminated land?', + responses: [ + { + value: 'No', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: 'Was the building previously used for any of these?', + responses: [ + { + value: 'None of these', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: 'Is the building in a flood risk area?', + responses: [ + { + value: 'No', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'About the project', + }, + }, + { + question: 'You need to submit a Noise Assessment', + responses: [ + { + value: 'Upload a document later', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: 'You need to submit a Transport Assessment', + responses: [ + { + value: 'Upload a document later', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: 'Describe the design and external appearance of the project', + responses: [ + { + value: + 'The existing shop front will be replaced by a new wall with a large painting of some hay stacks on it. Some more information about the appearance of the building. ', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: 'Is the building currently used as a nursery?', + responses: [ + { + value: 'No', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'About the project', + }, + }, + { + question: 'Is the building currently used for healthcare?', + responses: [ + { + value: 'No', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'About the project', + }, + }, + { + question: 'Is the property in a conservation area?', + responses: [ + { + value: 'Yes', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'About the project', + }, + }, + { + question: + 'Does the project involve changing the use of any part of the ground floor?', + responses: [ + { + value: 'Yes', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: + 'Describe the impacts that the change of use will have on the character or sustainability of the conservation area and how these will be mitigated', + responses: [ + { + value: + 'These are the impacts that the change of use will have:\n1\n2\n3\nAnd this is how it will be mitigated:\nA\nB\nC', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: 'Will the building be 18 metres or more in height?', + responses: [ + { + value: 'No', + }, + ], + metadata: { + policyRefs: [ + { + text: 'Fire safety guidance, 2021', + url: 'https://www.gov.uk/guidance/fire-safety-and-high-rise-residential-buildings-from-1-august-2021', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: 'Will the building be 7 or more storeys tall?', + responses: [ + { + value: 'No', + }, + ], + metadata: { + policyRefs: [ + { + text: 'Fire safety guidance, 2021', + url: 'https://www.gov.uk/guidance/fire-safety-and-high-rise-residential-buildings-from-1-august-2021', + }, + ], + sectionName: 'About the project', + }, + }, + { + question: + 'Is the building in an area that is also used for heavy industry, waste management, storage or distribution?', + responses: [ + { + value: 'No', + }, + ], + metadata: { + sectionName: 'About the project', + }, + }, + { + question: 'What type of application is it?', + responses: [ + { + value: 'Apply for prior approval', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'About you', + }, + }, + { + question: 'Your contact details', + responses: [ + { + value: + "Alan Agent Alan's Property & Fine Art Consultants PLC 098765432109 alanagent@email.org", + }, + ], + metadata: { + sectionName: 'About you', + }, + }, + { + question: 'Are you applying on behalf of someone else?', + responses: [ + { + value: 'Yes', + }, + ], + metadata: { + sectionName: 'About you', + }, + }, + { + question: 'Which of these best describes you?', + responses: [ + { + value: 'Professional agent', + }, + ], + metadata: { + sectionName: 'About you', + }, + }, + { + question: 'Your contact address', + responses: [ + { + value: '12 Agent Avenue, Plantown, PL47TN', + }, + ], + metadata: { + sectionName: 'About you', + }, + }, + { + question: 'Which of these best describes the applicant?', + responses: [ + { + value: 'Private individual', + }, + ], + metadata: { + sectionName: 'About you', + }, + }, + { + question: "Applicant's contact details", + responses: [ + { + value: 'Vincent Van Gogh 012345678901 ouchmyear@email.org', + }, + ], + metadata: { + sectionName: 'About you', + }, + }, + { + question: + "Is the applicant's contact address the same as the property address?", + responses: [ + { + value: 'No', + }, + ], + metadata: { + sectionName: 'About you', + }, + }, + { + question: "Applicant's contact address", + responses: [ + { + value: 'Haywain House, Rotterdam, 12543, The Netherlands', + }, + ], + metadata: { + sectionName: 'About you', + }, + }, + { + question: 'Can a planning officer see the works from public land?', + responses: [ + { + value: "Yes, it's visible from the road or somewhere else", + }, + ], + metadata: { + sectionName: 'About you', + }, + }, + { + question: 'Which of these best describes you?', + responses: [ + { + value: 'Professional agent', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'About you', + }, + }, + { + question: 'If we need to make a site visit, who should we contact?', + responses: [ + { + value: 'Me, the agent', + }, + ], + metadata: { + sectionName: 'About you', + }, + }, + { + question: 'What type of prior approval application is it?', + responses: [ + { + value: 'Convert a commercial building into a home or homes', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Upload drawings', + }, + }, + { + question: 'Is this for submission or information only?', + responses: [ + { + value: 'Submission', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Upload drawings', + }, + }, + { + question: 'What type of application is it?', + responses: [ + { + value: 'Prior approval', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Check your application', + }, + }, + { + question: 'What type of prior approval application is it?', + responses: [ + { + value: 'Convert a commercial building into a home or homes', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Check your application', + }, + }, + { + question: 'Does the project involve any building works?', + responses: [ + { + value: 'Yes', + }, + ], + metadata: { + policyRefs: [ + { + text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) (Amendment) Regulations 2023', + url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', + }, + ], + sectionName: 'Check your application', + }, + }, + { + question: 'Is the property a home?', + responses: [ + { + value: 'No', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Check your application', + }, + }, + { + question: 'What type of changes does the project involve?', + responses: [ + { + value: 'Change use', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Check your application', + }, + }, + { + question: 'What type of prior approval application is it?', + responses: [ + { + value: 'Convert a commercial building into a home or homes', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Check your application', + }, + }, + { + question: + 'Are you submitting any other planning applications about the same works or changes?', + 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', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/14', + }, + ], + sectionName: 'Check your application', + }, + }, + { + question: 'Is this application a resubmission?', + 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', + url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/14', + }, + ], + sectionName: 'Check your application', + }, + }, + { + question: 'Does the application qualify for a disability exemption?', + 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', + }, + }, + { + question: + 'Does the application qualify to the same-day-planning-application exemption?', + 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', + }, + }, + { + question: 'Check for multiple fees?', + responses: [ + { + value: 'No', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Check your application', + }, + }, + { + question: 'What type of application is it?', + responses: [ + { + value: 'Prior approval', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Check your application', + }, + }, + { + question: 'Which Local Planning authority is it?', + responses: [ + { + value: 'Lambeth', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Check your application', + }, + }, + { + question: 'Connections with London Borough of Lambeth', + responses: [ + { + value: 'None of the above apply to me', + }, + ], + metadata: { + sectionName: 'Check your application', + }, + }, + { + question: 'I confirm that:', + responses: [ + { + value: + 'The information contained in this application is truthful, accurate and complete, to the best of my knowledge', + }, + ], + metadata: { + sectionName: 'Check your application', + }, + }, + { + question: 'Connections with London Borough of Lambeth', + responses: [ + { + value: 'None of the above apply to me', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Check your application', + }, + }, + { + question: 'I confirm that:', + responses: [ + { + value: + 'The information contained in this application is truthful, accurate and complete, to the best of my knowledge', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Check your application', + }, + }, + { + question: 'Which Local Planning authority is it?', + responses: [ + { + value: 'Lambeth', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Pay and submit', + }, + }, + { + question: + 'What type of prior approval application is it?application.type', + responses: [ + { + value: 'Convert a commercial building into a home or homes', + }, + ], + metadata: { + autoAnswered: true, + sectionName: 'Pay and submit', + }, + }, + ], + files: [ + { + name: 'https://api.editor.planx.dev/file/private/bpxw8ekr/test%20document.pdf', + type: [ + { + value: 'noiseAssessment', + description: 'Noise assessment', + }, + ], + }, + { + name: 'https://api.editor.planx.dev/file/private/2mrowm3t/test%20document.pdf', + type: [ + { + value: 'usePlan.proposed', + description: 'Use plan - proposed', + }, + { + value: 'sitePlan.proposed', + description: 'Site plan - proposed', + }, + ], + }, + { + name: 'https://api.editor.planx.dev/file/private/eu61v4yk/test%20document.pdf', + type: [ + { + value: 'sitePlan.existing', + description: 'Site plan - existing', + }, + ], + }, + { + name: 'https://api.editor.planx.dev/file/private/fd7o1wnh/test%20document.pdf', + type: [ + { + value: 'sunlightAndDaylightReport', + description: 'Sunlight and daylight report', + }, + ], + }, + ], + metadata: { + id: '86a5ba3e-1a7f-4460-bf46-826c3f982a92', + organisation: 'LBH', + submittedAt: '2024-06-29T12:25:58.777Z', + source: 'PlanX', + service: { + flowId: 'f3cae2c8-9a64-4ce1-8cef-8e6832ad383d', + url: 'https://editor.planx.dev/lambeth/apply-for-prior-approval/published', + files: { + required: [ + { + value: 'sitePlan.proposed', + description: 'Site plan - proposed', + }, + { + value: 'usePlan.proposed', + description: 'Use plan - proposed', + }, + { + value: 'noiseAssessment', + description: 'Noise assessment', + }, + { + value: 'sunlightAndDaylightReport', + description: 'Sunlight and daylight report', + }, + ], + recommended: [ + { + value: 'sitePlan.existing', + description: 'Site plan - existing', + }, + ], + optional: [ + { + value: 'photographs.existing', + description: 'Photographs - existing', + }, + { + value: 'otherDrawing', + description: 'Other - drawing', + }, + { + value: 'otherDocument', + description: 'Other - document', + }, + { + value: 'visualisations', + description: 'Visualisations', + }, + ], + }, + fee: { + calculated: [ + { + policyRefs: [ + { + text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) (Amendment) Regulations 2023', + url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', + }, + ], + }, + ], + payable: [ + { + description: + '

This application does not qualify for any exemptions or reductions

', + }, + ], + }, + }, + schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`, + }, +}; diff --git a/examples/digitalPlanningApplication/data/priorApproval/extendUniversity.ts b/examples/application/data/priorApproval/extendUniversity.ts similarity index 99% rename from examples/digitalPlanningApplication/data/priorApproval/extendUniversity.ts rename to examples/application/data/priorApproval/extendUniversity.ts index 523e0c16..b2c6cd7a 100644 --- a/examples/digitalPlanningApplication/data/priorApproval/extendUniversity.ts +++ b/examples/application/data/priorApproval/extendUniversity.ts @@ -1,8 +1,8 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; +import {Application} from '../../../../types/schemas/application'; const version = process.env['VERSION'] || '@next'; -export const priorApprovalExtendUniversity: DigitalPlanningApplication = { +export const priorApprovalExtendUniversity: Application = { data: { user: { role: 'applicant', diff --git a/examples/digitalPlanningApplication/data/priorApproval/largerExtension.ts b/examples/application/data/priorApproval/largerExtension.ts similarity index 99% rename from examples/digitalPlanningApplication/data/priorApproval/largerExtension.ts rename to examples/application/data/priorApproval/largerExtension.ts index d3928e9b..df394e78 100644 --- a/examples/digitalPlanningApplication/data/priorApproval/largerExtension.ts +++ b/examples/application/data/priorApproval/largerExtension.ts @@ -1,8 +1,8 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; +import {Application} from '../../../../types/schemas/application'; const version = process.env['VERSION'] || '@next'; -export const priorApprovalLargerExtension: DigitalPlanningApplication = { +export const priorApprovalLargerExtension: Application = { data: { user: { role: 'applicant', diff --git a/examples/digitalPlanningApplication/data/priorApproval/solarPanels.ts b/examples/application/data/priorApproval/solarPanels.ts similarity index 99% rename from examples/digitalPlanningApplication/data/priorApproval/solarPanels.ts rename to examples/application/data/priorApproval/solarPanels.ts index 5b3a38a4..547bec5a 100644 --- a/examples/digitalPlanningApplication/data/priorApproval/solarPanels.ts +++ b/examples/application/data/priorApproval/solarPanels.ts @@ -1,8 +1,8 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; +import {Application} from '../../../../types/schemas/application'; const version = process.env['VERSION'] || '@next'; -export const priorApprovalSolarPanels: DigitalPlanningApplication = { +export const priorApprovalSolarPanels: Application = { data: { user: { role: 'applicant', diff --git a/examples/digitalPlanningApplication/landDrainageConsent.json b/examples/application/landDrainageConsent.json similarity index 100% rename from examples/digitalPlanningApplication/landDrainageConsent.json rename to examples/application/landDrainageConsent.json diff --git a/examples/digitalPlanningApplication/lawfulDevelopmentCertificate/existing.json b/examples/application/lawfulDevelopmentCertificate/existing.json similarity index 100% rename from examples/digitalPlanningApplication/lawfulDevelopmentCertificate/existing.json rename to examples/application/lawfulDevelopmentCertificate/existing.json diff --git a/examples/digitalPlanningApplication/lawfulDevelopmentCertificate/proposed.json b/examples/application/lawfulDevelopmentCertificate/proposed.json similarity index 100% rename from examples/digitalPlanningApplication/lawfulDevelopmentCertificate/proposed.json rename to examples/application/lawfulDevelopmentCertificate/proposed.json diff --git a/examples/digitalPlanningApplication/listedBuildingConsent.json b/examples/application/listedBuildingConsent.json similarity index 100% rename from examples/digitalPlanningApplication/listedBuildingConsent.json rename to examples/application/listedBuildingConsent.json diff --git a/examples/digitalPlanningApplication/planningPermission/fullHouseholder.json b/examples/application/planningPermission/fullHouseholder.json similarity index 100% rename from examples/digitalPlanningApplication/planningPermission/fullHouseholder.json rename to examples/application/planningPermission/fullHouseholder.json diff --git a/examples/digitalPlanningApplication/planningPermission/fullHouseholderInConservationArea.json b/examples/application/planningPermission/fullHouseholderInConservationArea.json similarity index 100% rename from examples/digitalPlanningApplication/planningPermission/fullHouseholderInConservationArea.json rename to examples/application/planningPermission/fullHouseholderInConservationArea.json diff --git a/examples/digitalPlanningApplication/planningPermission/major.json b/examples/application/planningPermission/major.json similarity index 100% rename from examples/digitalPlanningApplication/planningPermission/major.json rename to examples/application/planningPermission/major.json diff --git a/examples/digitalPlanningApplication/planningPermission/minor.json b/examples/application/planningPermission/minor.json similarity index 100% rename from examples/digitalPlanningApplication/planningPermission/minor.json rename to examples/application/planningPermission/minor.json diff --git a/examples/digitalPlanningApplication/priorApproval/buildHomes.json b/examples/application/priorApproval/buildHomes.json similarity index 100% rename from examples/digitalPlanningApplication/priorApproval/buildHomes.json rename to examples/application/priorApproval/buildHomes.json diff --git a/examples/digitalPlanningApplication/priorApproval/convertCommercialToHome.json b/examples/application/priorApproval/convertCommercialToHome.json similarity index 100% rename from examples/digitalPlanningApplication/priorApproval/convertCommercialToHome.json rename to examples/application/priorApproval/convertCommercialToHome.json diff --git a/examples/digitalPlanningApplication/priorApproval/extendUniversity.json b/examples/application/priorApproval/extendUniversity.json similarity index 100% rename from examples/digitalPlanningApplication/priorApproval/extendUniversity.json rename to examples/application/priorApproval/extendUniversity.json diff --git a/examples/digitalPlanningApplication/priorApproval/largerExtension.json b/examples/application/priorApproval/largerExtension.json similarity index 100% rename from examples/digitalPlanningApplication/priorApproval/largerExtension.json rename to examples/application/priorApproval/largerExtension.json diff --git a/examples/digitalPlanningApplication/priorApproval/solarPanels.json b/examples/application/priorApproval/solarPanels.json similarity index 100% rename from examples/digitalPlanningApplication/priorApproval/solarPanels.json rename to examples/application/priorApproval/solarPanels.json diff --git a/examples/digitalPlanningApplication/data/lawfulDevelopmentCertificate/existing.ts b/examples/digitalPlanningApplication/data/lawfulDevelopmentCertificate/existing.ts deleted file mode 100644 index 8eef97fb..00000000 --- a/examples/digitalPlanningApplication/data/lawfulDevelopmentCertificate/existing.ts +++ /dev/null @@ -1,1314 +0,0 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; - -const version = process.env['VERSION'] || '@next'; - -export const lawfulDevelopmentCertificateExisting: DigitalPlanningApplication = - { - data: { - application: { - type: { - value: 'ldc.existing', - description: 'Lawful Development Certificate - Existing use', - }, - fee: { - calculated: 258, - payable: 258, - category: { - sixAndSeven: 258, - }, - exemption: { - disability: false, - resubmission: false, - }, - reduction: { - sports: false, - parishCouncil: false, - alternative: false, - }, - reference: { - govPay: 'sandbox-ref-123', - }, - }, - declaration: { - accurate: true, - connection: { - value: 'none', - }, - }, - }, - user: { - role: 'agent', - }, - applicant: { - type: 'individual', - name: { - first: 'Roald', - last: 'Dahl', - }, - email: 'f.fox@boggischickenshed.com', - phone: { - primary: 'Not provided by agent', - }, - address: { - sameAsSiteAddress: true, - }, - siteContact: { - role: 'applicant', - }, - ownership: { - interest: 'occupier', - owners: [ - { - interest: 'owner', - name: 'Matilda Wormwood', - address: { - town: 'Reading', - line1: '9, Library Way', - line2: '', - county: '', - country: 'UK', - postcode: 'L1T3R8Y', - }, - noticeGiven: true, - }, - ], - }, - agent: { - name: { - first: 'F', - last: 'Fox', - }, - email: 'f.fox@boggischickenshed.com', - phone: { - primary: '0234 567 8910', - }, - address: { - line1: 'The Tree', - line2: 'One Tree Hill', - town: 'Great Tunnelling', - county: '', - postcode: 'F0XH0L3', - country: '', - }, - }, - }, - property: { - address: { - latitude: 51.6994957, - longitude: -0.708966, - x: 489320, - y: 200872, - title: 'GIPSY HOUSE, WHITEFIELD LANE, GREAT MISSENDEN', - singleLine: 'GIPSY HOUSE, WHITEFIELD LANE, GREAT MISSENDEN, HP16 0BP', - source: 'Ordnance Survey', - uprn: '100081174436', - usrn: '07300709', - pao: '', - street: 'WHITEFIELD LANE', - town: 'GREAT MISSENDEN', - postcode: 'HP16 0BP', - }, - boundary: { - site: { - type: 'Feature', - geometry: { - type: 'Polygon', - coordinates: [ - [ - [-0.7085376977920632, 51.699564621757816], - [-0.7086127996444802, 51.69965605327502], - [-0.708982944488535, 51.699654390885456], - [-0.7089909911155797, 51.699673508361855], - [-0.7089319825172521, 51.699683482694184], - [-0.7089520990848638, 51.69973002954916], - [-0.7091867923736667, 51.69968930105364], - [-0.7092216610908603, 51.699688469859495], - [-0.709239095449457, 51.69968514508267], - [-0.709253847599039, 51.6997134056779], - [-0.7093128561973666, 51.69970176896433], - [-0.7092699408531282, 51.699610337539525], - [-0.7096253335476013, 51.699648572521454], - [-0.7098613679409116, 51.69958457046823], - [-0.7098962366581053, 51.69955049141595], - [-0.7098090648651213, 51.6994216557425], - [-0.7099243998527616, 51.699390070166544], - [-0.7098264992237182, 51.699238791576136], - [-0.7097460329532714, 51.699236297968724], - [-0.7095716893673034, 51.69927536446852], - [-0.7095421850681398, 51.69927619567025], - [-0.7092954218387698, 51.69931941814053], - [-0.7090929150581455, 51.69937427737031], - [-0.709021836519251, 51.69938923896689], - [-0.7089574635028936, 51.6994008757608], - [-0.7088904082775213, 51.69942082454341], - [-0.7086691260337761, 51.699501450783515], - [-0.7086181640624932, 51.699517243535354], - [-0.7085457444191079, 51.699541348251245], - [-0.7085350155830483, 51.69954799782576], - [-0.7085376977920632, 51.699564621757816], - ], - ], - }, - properties: null, - }, - area: { - hectares: 0.299367, - squareMetres: 2993.67, - }, - }, - planning: { - sources: [ - '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', - 'https://api.editor.planx.dev/roads?usrn=07300709', - ], - designations: [ - { - 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: { - text: 'Planning Data', - url: '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, - }, - { - value: 'listed', - description: 'Listed Building', - intersects: false, - }, - { - value: 'monument', - description: 'Site of a Scheduled Monument', - intersects: false, - }, - { - value: 'designated', - description: 'Designated land', - intersects: true, - }, - { - value: 'nature.SAC', - description: 'Special Area of Conservation (SAC)', - intersects: false, - }, - { - value: 'nature.ASNW', - description: 'Ancient Semi-Natural Woodland (ASNW)', - intersects: false, - }, - { - value: 'nature.SSSI', - description: 'Site of Special Scientific Interest (SSSI)', - intersects: false, - }, - { - value: 'locallyListed', - description: 'Locally Listed Building', - intersects: false, - }, - { - value: 'nature.SPA', - description: 'Special Protection Area (SPA)', - intersects: false, - }, - { - value: 'designated.WHS', - description: 'UNESCO World Heritage Site or buffer zone', - intersects: false, - }, - { - value: 'registeredPark', - description: 'Historic Park or Garden', - intersects: false, - }, - { - value: 'designated.AONB', - description: 'Area of Outstanding Natural Beauty (AONB)', - intersects: true, - entities: [ - { - name: 'Chilterns', - source: { - text: 'Planning Data', - url: 'https://www.planning.data.gov.uk/entity/1000005', - }, - }, - ], - }, - { - value: 'designated.nationalPark', - description: 'National Park', - intersects: false, - }, - { - value: 'designated.conservationArea', - description: 'Conservation Area', - intersects: false, - }, - { - value: 'designated.nationalPark.broads', - description: 'National Park - Broads', - intersects: false, - }, - { - value: 'road.classified', - description: 'Classified Road', - intersects: false, - }, - ], - }, - localAuthorityDistrict: ['Buckinghamshire', 'Chiltern'], - region: 'South East', - type: { - value: 'residential.dwelling.house.detached', - description: 'Detached', - }, - }, - proposal: { - projectType: [ - { - value: 'extend.outbuilding.studio', - description: 'Add an outbuilding - studio', - }, - ], - description: - 'Construction of a small outbuilding for use as a writing studio.', - boundary: { - site: { - type: 'Feature', - geometry: { - type: 'Polygon', - coordinates: [ - [ - [-0.7085376977920632, 51.699564621757816], - [-0.7086127996444802, 51.69965605327502], - [-0.708982944488535, 51.699654390885456], - [-0.7089909911155797, 51.699673508361855], - [-0.7089319825172521, 51.699683482694184], - [-0.7089520990848638, 51.69973002954916], - [-0.7091867923736667, 51.69968930105364], - [-0.7092216610908603, 51.699688469859495], - [-0.709239095449457, 51.69968514508267], - [-0.709253847599039, 51.6997134056779], - [-0.7093128561973666, 51.69970176896433], - [-0.7092699408531282, 51.699610337539525], - [-0.7096253335476013, 51.699648572521454], - [-0.7098613679409116, 51.69958457046823], - [-0.7098962366581053, 51.69955049141595], - [-0.7098090648651213, 51.6994216557425], - [-0.7099243998527616, 51.699390070166544], - [-0.7098264992237182, 51.699238791576136], - [-0.7097460329532714, 51.699236297968724], - [-0.7095716893673034, 51.69927536446852], - [-0.7095421850681398, 51.69927619567025], - [-0.7092954218387698, 51.69931941814053], - [-0.7090929150581455, 51.69937427737031], - [-0.709021836519251, 51.69938923896689], - [-0.7089574635028936, 51.6994008757608], - [-0.7088904082775213, 51.69942082454341], - [-0.7086691260337761, 51.699501450783515], - [-0.7086181640624932, 51.699517243535354], - [-0.7085457444191079, 51.699541348251245], - [-0.7085350155830483, 51.69954799782576], - [-0.7085376977920632, 51.699564621757816], - ], - ], - }, - properties: null, - }, - area: { - hectares: 0.299367, - squareMetres: 2993.67, - }, - }, - date: {}, - }, - }, - 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.', - }, - ], - responses: [ - { - question: 'List the changes involved in the project', - responses: [ - {value: 'Outbuildings (such as sheds, garages or garden offices)'}, - ], - metadata: {}, - }, - { - question: 'What type of changes were they?', - 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']}}, - ], - 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'}], - 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'}], - metadata: { - policyRefs: [ - { - text: 'Town and Country Planning Act 1990 Section 171B', - url: 'https://www.legislation.gov.uk/ukpga/1990/8/section/171B', - }, - ], - }, - }, - { - question: 'Has anyone ever attempted to conceal the changes?', - responses: [ - {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', - }, - ], - }, - }, - { - question: 'Has enforcement action been taken about these changes?', - responses: [ - {value: 'No', metadata: {flags: ['Planning permission / Immune']}}, - ], - metadata: { - policyRefs: [ - { - 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', - }, - ], - }, - }, - { - 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)'}, - ], - metadata: { - autoAnswered: true, - policyRefs: [ - { - 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}, - }, - { - question: 'What type of property is it?', - responses: [{value: 'House'}], - metadata: { - autoAnswered: true, - policyRefs: [ - { - 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'}], - 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'}], - metadata: {}, - }, - { - question: 'Was the house built before 2020?', - responses: [{value: 'Yes, it was built before 2020'}], - metadata: {}, - }, - { - question: 'What is the new outbuilding used for?', - 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', - }, - ], - }, - }, - { - question: 'How will the studio be used?', - responses: [ - { - value: 'Personal use', - 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', - }, - ], - }, - }, - { - question: 'How many storeys does the new outbuilding have?', - responses: [ - { - value: '1 storey', - 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', - }, - ], - }, - }, - { - question: - 'Does the outbuilding include any balconies, decks, verandahs or platforms that are more than 30cm above ground level?', - responses: [ - { - value: 'No', - 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)', - 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 any part of the new outbuilding in front of the original house?', - responses: [ - { - value: 'No', - 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}, - }, - { - question: - 'Is any part of the new outbuilding between a side wall of the original house and the boundary?', - responses: [ - { - value: 'No', - 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'}], - metadata: {}, - }, - { - question: 'What type of roof does the new outbuilding have?', - 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', - }, - ], - }, - }, - { - question: 'How high is the new outbuilding?', - responses: [ - { - value: '4m or lower', - 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}, - }, - { - question: 'Is the property in any of the following?', - responses: [ - { - value: 'An area of outstanding natural beauty', - metadata: {flags: ['Planning permission / Permission needed']}, - }, - ], - metadata: {autoAnswered: true}, - }, - { - question: 'How far from the house is the new outbuilding?', - 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', - }, - ], - }, - }, - { - question: - 'What is the total footprint of all outbuildings more than 20m from the house?', - responses: [ - { - value: '10m² or less', - 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', - }, - ], - }, - }, - { - question: - 'How much of the property is covered by extensions and outbuildings?', - responses: [ - { - value: - '50% or less of the available area around the original house', - 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', - }, - ], - }, - }, - { - question: - 'Does the new outbuilding have a satellite dish or antenna on it?', - responses: [ - { - value: 'No', - 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', - }, - ], - }, - }, - { - question: 'Is the new outbuilding air conditioned?', - responses: [ - { - value: 'No', - metadata: {flags: ['Planning permission / Not development']}, - }, - ], - metadata: {}, - }, - { - question: 'What types of changes does the project involve?', - 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}, - }, - { - question: 'Are there any protected trees on the property?', - 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: {autoAnswered: true}, - }, - { - question: 'What are you applying about?', - 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}, - }, - { - question: 'What does the project involve?', - responses: [ - { - value: - 'Add an outbuilding (such as sheds, shelters or garden offices)', - }, - ], - metadata: {autoAnswered: true}, - }, - { - question: 'Is it a residential property?', - responses: [{value: 'Yes'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Do the changes involve the creation of any new homes?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: - 'Do the changes involve creating any new bedrooms or bathrooms?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: 'What is the internal floor area of the new outbuilding?', - responses: [{value: '9'}], - metadata: {}, - }, - { - question: 'Do the changes involve the creation of any new homes?', - responses: [{value: 'No'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Is the property in the Greater London Authority area?', - 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: 'Your contact details', - responses: [ - {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}, - }, - { - question: "Applicant's email address", - responses: [{value: 'r.dahl@example.com'}], - metadata: {}, - }, - { - question: "Did you already provide the applicant's telephone number?", - responses: [{value: 'No'}], - metadata: {autoAnswered: true}, - }, - { - question: "Applicant's telephone number", - 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}, - }, - { - question: 'Have you notified the other owners?', - responses: [{value: 'Yes'}], - metadata: {}, - }, - { - question: - "Which of these best describes the applicant's interest in the land?", - 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'}], - metadata: {}, - }, - { - question: 'Do you know who the other owners of the site are?', - responses: [{value: 'Yes, all of them'}], - metadata: {}, - }, - { - question: 'How many owners are there in total?', - responses: [{value: '3'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Full name of Owner 2', - responses: [{value: 'William Wonka'}], - metadata: {}, - }, - { - question: 'Address of Owner 2', - responses: [ - { - value: - 'The Factory, 10, Scrumdiddlyumptious Avenue, Oomaph upon Ouse, CH0C0L8', - }, - ], - metadata: {}, - }, - { - question: 'Have you already notified the other owners?', - responses: [{value: 'Yes'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Date on which notice was given to Owner 2', - responses: [{value: '1964-04-01'}], - metadata: {}, - }, - { - question: 'Full name of Owner 3', - responses: [{value: 'Matilda Wormwood'}], - metadata: {}, - }, - { - question: 'Address of Owner 3', - responses: [{value: '9, Library Way, Reading, L1T3R8Y'}], - metadata: {}, - }, - { - question: 'Have you already notified the other owners?', - responses: [{value: 'Yes'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Date on which notice was given to Owner 3', - responses: [{value: '1988-04-01'}], - metadata: {}, - }, - { - question: 'What types of changes did the project involve?', - responses: [{value: 'Extension'}], - metadata: {autoAnswered: true}, - }, - { - question: - 'Would you like to upload any photographs of the property as it is today?', - responses: [{value: 'Yes'}], - metadata: {}, - }, - { - question: 'What type of extension have you added?', - responses: [{value: 'Outbuilding'}], - metadata: {autoAnswered: true}, - }, - { - question: - 'Is the roof of the outbuilding shown on a drawing you have already uploaded?', - responses: [{value: 'Yes'}], - metadata: {}, - }, - { - question: 'Did the works involve any alterations to ground levels?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: - 'Would you like to upload any photographs of the property before the changes?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: - 'Would you like to upload any other additional drawings or documents?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: 'Provide evidence of completion date', - responses: [ - {value: 'Construction invoices'}, - {value: 'Other documents or correspondence'}, - ], - metadata: {}, - }, - { - question: 'What do these construction invoices show?', - responses: [{value: "Nothing, it's a test document. "}], - metadata: {}, - }, - { - question: 'What do these documents show?', - 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}, - }, - { - question: 'What type of changes are you applying for?', - responses: [{value: 'Existing changes'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Is the property a home?', - responses: [{value: 'Yes'}], - metadata: {autoAnswered: true}, - }, - { - question: 'What types of changes does the application relate to?', - responses: [{value: 'Extension'}], - metadata: {autoAnswered: true}, - }, - { - question: 'How many homes does this application relate to?', - 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 did you build?', - responses: [ - {value: 'Outbuilding (such as shed, shelter or garden office'}, - ], - metadata: {autoAnswered: true}, - }, - { - question: 'Is the property a home?', - responses: [{value: 'Yes'}], - metadata: {autoAnswered: true}, - }, - { - question: 'What works does the project involve?', - 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'}], - 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', - }, - { - 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'}], - 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}, - }, - { - question: 'Does the application qualify for a resubmission exemption?', - responses: [{value: 'No'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Is the site a sports field?', - 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', - }, - ], - }, - }, - { - question: - 'Is the application being made by (or on behalf of) a parish or community council?', - 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', - }, - ], - }, - }, - { - question: - 'Are you also submitting another proposal for the same site today?', - 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', - }, - ], - }, - }, - { - question: - 'Does the application qualify for the sports club fee reduction?', - responses: [{value: 'No'}], - metadata: {autoAnswered: true}, - }, - { - question: - 'Does the application qualify for the parish council reduction?', - 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', - }, - ], - }, - }, - { - question: - 'Does the application qualify for the alternative application reduction?', - responses: [{value: 'No'}], - metadata: {autoAnswered: true}, - }, - { - question: - 'Did you get any pre-application advice before making this application?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: - 'What local planning authority is this application being sent to?', - responses: [{value: 'Chiltern'}], - metadata: {autoAnswered: true}, - }, - { - question: 'What type of application is it?', - responses: [{value: 'Lawful Development Certificate'}], - metadata: {autoAnswered: true}, - }, - { - question: 'What type of works are you applying about?', - responses: [{value: 'Existing'}], - metadata: {autoAnswered: true}, - }, - { - question: "What is the applicant's interest in the land?", - responses: [{value: 'Owner'}], - metadata: {autoAnswered: true}, - }, - { - question: "What is the user's role?", - responses: [{value: 'Other'}], - metadata: {autoAnswered: true}, - }, - { - question: "What is the applicant's declared connections?", - responses: [{value: 'None'}], - metadata: {autoAnswered: true}, - }, - ], - files: [ - { - name: 'https://api.editor.planx.dev/file/private/tbp4kiba/myPlans.pdf', - type: [ - { - value: 'photographs.proposed', - description: 'Photographs - proposed', - }, - { - value: 'sitePlan.proposed', - description: 'Site plan - proposed', - }, - { - value: 'elevations.proposed', - description: 'Elevations - proposed', - }, - { - value: 'floorPlan.proposed', - description: 'Floor plan - proposed', - }, - ], - }, - { - name: 'https://api.editor.planx.dev/file/private/vyyogkcf/correspondence.pdf', - type: [ - { - value: 'otherEvidence', - description: 'Other - evidence or correspondence', - }, - ], - description: 'Nothing really, this is just a test. ', - }, - { - name: 'https://api.editor.planx.dev/file/private/97ltnrxr/invoice.pdf', - type: [ - { - value: 'constructionInvoice', - description: 'Construction invoice', - }, - ], - description: "Nothing, it's a test document. ", - }, - ], - metadata: { - organisation: 'BKM', - id: '95f90e21-93f5-4761-90b3-815c673e041f', - source: 'PlanX', - service: { - flowId: '824628b2-deeb-48b0-92b1-2ca7f3b17163', - url: 'https://www.editor.planx.dev/buckinghamshire/apply-for-a-lawful-development-certificate/preview', - files: { - required: [ - { - value: 'photographs.proposed', - description: 'Photographs - proposed', - }, - { - value: 'sitePlan.proposed', - description: 'Site plan - proposed', - }, - { - value: 'elevations.proposed', - description: 'Elevations - proposed', - }, - { - value: 'floorPlan.proposed', - description: 'Floor plan - proposed', - }, - { - value: 'floorPlan.proposed', - description: 'Floor plan - proposed', - }, - ], - recommended: [ - { - value: 'otherEvidence', - description: 'Other - evidence or correspondence', - }, - { - value: 'constructionInvoice', - description: 'Construction invoice', - }, - ], - optional: [], - }, - fee: { - category: { - sixAndSeven: [ - { - description: - 'The planning fee for an application for a Certificate of Lawfulness relating to existing alterations or extensions of a single home is £258.', - policyRefs: [ - { - text: 'UK Statutory Instruments 2023 No. 1197', - url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', - }, - ], - }, - ], - }, - calculated: [ - { - description: - 'The planning fee for an application for a Certificate of Lawfulness relating to existing alterations or extensions of a single home is £258.', - policyRefs: [ - { - text: 'UK Statutory Instruments 2023 No. 1197', - url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', - }, - ], - }, - ], - payable: [ - { - description: - 'The planning fee for an application for a Certificate of Lawfulness relating to existing alterations or extensions of a single home is £258.', - policyRefs: [ - { - text: 'UK Statutory Instruments 2023 No. 1197', - url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', - }, - ], - }, - ], - }, - }, - submittedAt: '2023-10-02t00:00:00z', - schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`, - }, - }; diff --git a/examples/digitalPlanningApplication/data/lawfulDevelopmentCertificate/proposed.ts b/examples/digitalPlanningApplication/data/lawfulDevelopmentCertificate/proposed.ts deleted file mode 100644 index 77b14d30..00000000 --- a/examples/digitalPlanningApplication/data/lawfulDevelopmentCertificate/proposed.ts +++ /dev/null @@ -1,906 +0,0 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; - -const version = process.env['VERSION'] || '@next'; - -export const lawfulDevelopmentCertificateProposed: DigitalPlanningApplication = - { - data: { - application: { - type: { - value: 'ldc.proposed', - description: 'Lawful Development Certificate - Proposed use', - }, - fee: { - calculated: 129, - payable: 0, - category: { - sixAndSeven: 129, - }, - exemption: { - disability: true, - resubmission: true, - }, - reduction: { - sports: false, - parishCouncil: false, - alternative: false, - }, - }, - declaration: { - accurate: true, - connection: { - value: 'none', - }, - }, - }, - user: { - role: 'applicant', - }, - applicant: { - type: 'individual', - name: { - first: 'Enid', - last: 'Blyton', - }, - email: 'famousfive@example.com', - phone: { - primary: '05555 555 555', - }, - address: { - sameAsSiteAddress: true, - }, - siteContact: { - role: 'applicant', - }, - ownership: { - interest: 'owner', - }, - }, - property: { - address: { - latitude: 51.6154458, - longitude: -0.6463271, - x: 493822, - y: 191603, - title: '7, BLYTON CLOSE, BEACONSFIELD', - singleLine: '7, BLYTON CLOSE, BEACONSFIELD, HP9 2LX', - source: 'Ordnance Survey', - uprn: '100080482163', - usrn: '35200844', - pao: '7', - street: 'BLYTON CLOSE', - town: 'BEACONSFIELD', - postcode: 'HP9 2LX', - }, - boundary: { - site: { - type: 'Feature', - geometry: { - type: 'Polygon', - coordinates: [ - [ - [-0.646633654832832, 51.61556919642334], - [-0.6466296315193095, 51.61554504700152], - [-0.6465049088001171, 51.61551173743314], - [-0.6464512646198194, 51.61522027766699], - [-0.6463131308555524, 51.61522943785954], - [-0.6463037431240002, 51.61520695374722], - [-0.6462487578391951, 51.615222775901515], - [-0.6462393701076429, 51.61520861923739], - [-0.6459456682205124, 51.615292726412235], - [-0.6460489332675857, 51.61561499701554], - [-0.646633654832832, 51.61556919642334], - ], - ], - }, - properties: null, - }, - area: { - hectares: 0.141826, - squareMetres: 1418.26, - }, - }, - planning: { - sources: [ - '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', - 'https://api.editor.planx.dev/roads?usrn=35200844', - ], - designations: [ - { - 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, - }, - { - value: 'listed', - description: 'Listed Building', - intersects: false, - }, - { - value: 'monument', - description: 'Site of a Scheduled Monument', - intersects: false, - }, - { - value: 'designated', - description: 'Designated land', - intersects: false, - }, - { - value: 'nature.SAC', - description: 'Special Area of Conservation (SAC)', - intersects: false, - }, - { - value: 'nature.ASNW', - description: 'Ancient Semi-Natural Woodland (ASNW)', - intersects: false, - }, - { - value: 'nature.SSSI', - description: 'Site of Special Scientific Interest (SSSI)', - intersects: false, - }, - { - value: 'locallyListed', - description: 'Locally Listed Building', - intersects: false, - }, - { - value: 'nature.SPA', - description: 'Special Protection Area (SPA)', - intersects: false, - }, - { - value: 'designated.WHS', - description: 'UNESCO World Heritage Site or buffer zone', - intersects: false, - }, - { - value: 'registeredPark', - description: 'Historic Park or Garden', - intersects: false, - }, - { - value: 'designated.AONB', - description: 'Area of Outstanding Natural Beauty (AONB)', - intersects: false, - }, - { - value: 'designated.nationalPark', - description: 'National Park', - intersects: false, - }, - { - value: 'designated.conservationArea', - description: 'Conservation Area', - intersects: false, - }, - { - value: 'designated.nationalPark.broads', - description: 'National Park - Broads', - intersects: false, - }, - { - value: 'road.classified', - description: 'Classified Road', - intersects: false, - }, - ], - }, - localAuthorityDistrict: ['Buckinghamshire', 'South Bucks'], - region: 'South East', - type: { - value: 'residential.dwelling.house.detached', - description: 'Detached', - }, - }, - proposal: { - projectType: [ - { - value: 'extend.rear', - description: 'Add a rear or side extension (or conservatory)', - }, - ], - description: 'Rear extension of a home', - boundary: { - site: { - type: 'Feature', - geometry: { - type: 'Polygon', - coordinates: [ - [ - [-0.646633654832832, 51.61556919642334], - [-0.6466296315193095, 51.61554504700152], - [-0.6465049088001171, 51.61551173743314], - [-0.6464512646198194, 51.61522027766699], - [-0.6463131308555524, 51.61522943785954], - [-0.6463037431240002, 51.61520695374722], - [-0.6462487578391951, 51.615222775901515], - [-0.6462393701076429, 51.61520861923739], - [-0.6459456682205124, 51.615292726412235], - [-0.6460489332675857, 51.61561499701554], - [-0.646633654832832, 51.61556919642334], - ], - ], - }, - properties: null, - }, - area: { - hectares: 0.141826, - squareMetres: 1418.26, - }, - }, - date: {}, - extend: { - area: { - squareMetres: 24, - }, - }, - }, - }, - 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.', - }, - ], - responses: [ - { - question: 'List the changes involved in the project', - responses: [{value: 'Add a rear or side extension (or conservatory)'}], - metadata: { - policyRefs: [ - { - 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'}], - 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}, - }, - { - question: 'How many storeys does the original house have?', - responses: [{value: '2 or more'}], - metadata: {}, - }, - { - question: 'Does the original house have a projection to the rear?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: 'Was the house always 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', - }, - ], - }, - }, - { - question: 'Was the house built before 2020?', - responses: [ - { - value: 'Yes, it was built before 2020', - 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'}], - 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}, - }, - { - question: 'Which of these best describes your project?', - responses: [{value: 'Rear only'}], - metadata: { - policyRefs: [ - { - 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}, - }, - { - question: 'Is the property a site of special scientific interest?', - responses: [{value: 'No'}], - metadata: {autoAnswered: true}, - }, - { - question: 'What type of house is it?', - responses: [{value: 'Detached'}], - metadata: {autoAnswered: true}, - }, - { - question: - 'How far does the new addition extend beyond the back wall of the original house?', - responses: [ - { - value: 'Less than 4m', - 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'}], - metadata: {}, - }, - { - question: - 'Are the materials of the extension similar to the original house?', - responses: [ - { - value: 'Yes', - 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}, - }, - { - question: - 'How much of the property is covered by extensions and outbuildings?', - responses: [ - { - value: - '50% or less of the available area around the original house', - 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}, - }, - { - question: - 'Have you already told us that you are doing works to a tree or hedge?', - responses: [{value: 'No'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Are there any protected trees on the property?', - 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: {autoAnswered: true}, - }, - { - question: 'What are you applying about?', - 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}, - }, - { - question: 'What does the project involve?', - 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'}], - metadata: {}, - }, - { - question: 'Is it a residential property?', - responses: [{value: 'Yes'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Do the changes involve the creation of any new homes?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: - 'Do the changes involve creating any new bedrooms or bathrooms?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: 'Do the changes involve the creation of any new homes?', - responses: [{value: 'No'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Is the property in the Greater London Authority area?', - 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}, - }, - { - question: 'Which of these best describes your interest in the land?', - 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}, - }, - { - question: - 'Does the work involve any alterations to ground or floor levels?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: 'Would you like to upload any photographs?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: 'What types of extension are being added?', - responses: [{value: 'Rear or side'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Do you also want to add existing internal floor plans?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: - 'Is the roof of the extension already shown on another set of drawings?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: - 'Would you like to upload any additional drawings, documents or images?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: 'What type of planning application are you making?', - responses: [{value: 'Lawful Development Certificate'}], - metadata: {autoAnswered: true}, - }, - { - question: 'What type of changes are you applying for?', - responses: [{value: 'Proposed changes'}], - metadata: {autoAnswered: true}, - }, - { - question: 'Is the property a home?', - responses: [{value: 'Yes'}], - metadata: {autoAnswered: true}, - }, - { - question: 'What types of changes does the application relate to?', - responses: [{value: 'Extension'}], - metadata: {autoAnswered: true}, - }, - { - question: 'How many homes does this application relate to?', - 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}, - }, - { - question: 'Is the property a home?', - responses: [{value: 'Yes'}], - metadata: {autoAnswered: true}, - }, - { - question: 'What works does the project involve?', - 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'}], - 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', - }, - { - 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'}], - 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: - 'Is this the first time you have resubmitted an application for this site?', - 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}, - }, - { - question: "What was the original application's reference number?", - 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'}], - 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'}], - metadata: {}, - }, - { - question: 'When did you submit the original application?', - responses: [{value: 'Within the last 12 months'}], - metadata: { - policyRefs: [ - { - 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}, - }, - { - question: 'Does the application qualify for a resubmission exemption?', - responses: [{value: 'Yes'}], - metadata: {autoAnswered: true}, - }, - { - question: - 'Did you get any pre-application advice before making this application?', - responses: [{value: 'No'}], - metadata: {}, - }, - { - question: - 'What local planning authority is this application being sent to?', - responses: [{value: 'South Buckinghamshire'}], - metadata: {autoAnswered: true}, - }, - { - question: 'What type of application is it?', - responses: [{value: 'Lawful Development Certificate'}], - metadata: {autoAnswered: true}, - }, - { - question: 'What type of works are you applying about?', - responses: [{value: 'Proposed'}], - metadata: {autoAnswered: true}, - }, - { - question: "What is the applicant's interest in the land?", - responses: [{value: 'Owner'}], - metadata: {autoAnswered: true}, - }, - { - question: "What is the user's role?", - responses: [{value: 'Applicant'}], - metadata: {autoAnswered: true}, - }, - { - question: "What is the applicant's declared connections?", - responses: [{value: 'None'}], - metadata: {autoAnswered: true}, - }, - ], - files: [ - { - name: 'https://api.editor.planx.dev/file/private/tbp4kiba/myPlans.pdf', - type: [ - { - value: 'roofPlan.existing', - description: 'Roof plan - existing', - }, - { - value: 'roofPlan.proposed', - description: 'Roof plan - proposed', - }, - { - value: 'sitePlan.existing', - description: 'Site plan - existing', - }, - { - value: 'sitePlan.proposed', - description: 'Site plan - proposed', - }, - { - value: 'elevations.existing', - description: 'Elevations - existing', - }, - { - value: 'elevations.proposed', - description: 'Elevations - proposed', - }, - ], - }, - { - name: 'https://api.editor.planx.dev/file/private/311w2id6/floor_plans.pdf', - type: [ - { - value: 'floorPlan.existing', - description: 'Floor plan - existing', - }, - { - value: 'floorPlan.proposed', - description: 'Floor plan - proposed', - }, - ], - }, - ], - metadata: { - organisation: 'BKM', - id: '8da51c5b-a2a0-4386-a15d-29d66f9c121c', - source: 'PlanX', - service: { - flowId: '824628b2-deeb-48b0-92b1-2ca7f3b17163', - url: 'https://www.editor.planx.dev/buckinghamshire/apply-for-a-lawful-development-certificate/preview', - files: { - required: [ - { - value: 'roofPlan.existing', - description: 'Roof plan - existing', - }, - { - value: 'sitePlan.existing', - description: 'Site plan - existing', - }, - { - value: 'roofPlan.proposed', - description: 'Roof plan - proposed', - }, - { - value: 'sitePlan.proposed', - description: 'Site plan - proposed', - }, - { - value: 'elevations.existing', - description: 'Elevations - existing', - }, - { - value: 'floorPlan.existing', - description: 'Floor plan - existing', - }, - { - value: 'elevations.proposed', - description: 'Elevations - proposed', - }, - { - value: 'floorPlan.proposed', - description: 'Floor plan - proposed', - }, - ], - recommended: [], - optional: [], - }, - fee: { - category: { - sixAndSeven: [ - { - description: - 'The plannning fee for an application for a Certificate of Lawfulness relating to the proposed alteration or extension of a single home is £129', - policyRefs: [ - { - text: 'UK Statutory Instruments 2023 No. 1197', - url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', - }, - ], - }, - ], - }, - calculated: [ - { - description: - 'The plannning fee for an application for a Certificate of Lawfulness relating to the proposed alteration or extension of a single home is £129', - policyRefs: [ - { - text: 'UK Statutory Instruments 2023 No. 1197', - url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', - }, - ], - }, - ], - payable: [ - { - description: - 'If the proposed works (to either a home or within the curtilage of a home) is for the sole purpose of - providing either a means of access to (or within) the dwellinghouse for a disabled resident (current or future); providing facilities that are designed to ensure the disabled persons safety, health or comfort; or providing disabled access to a public building - then no planning fee will be payable for this application.', - policyRefs: [ - { - text: 'UK Statutory Instruments 2012 No. 2920 Regulation 4', - url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/4/made', - }, - ], - }, - { - description: - 'In the case of an application that is the first resubmission of an application on the same site that is similar in character and description, no planning fee is payable.', - policyRefs: [ - { - text: 'UK Statutory Instruments 2012 No. 2920 Regulation 8', - url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/8/made', - }, - ], - }, - ], - }, - }, - submittedAt: '2023-10-02T00:00:00+01:00', - schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`, - }, - }; diff --git a/examples/digitalPlanningApplication/data/priorApproval/convertCommercialToHome.ts b/examples/digitalPlanningApplication/data/priorApproval/convertCommercialToHome.ts deleted file mode 100644 index a668eee8..00000000 --- a/examples/digitalPlanningApplication/data/priorApproval/convertCommercialToHome.ts +++ /dev/null @@ -1,1632 +0,0 @@ -import {DigitalPlanningApplication} from '../../../../types/schemas/digitalPlanningApplication'; - -const version = process.env['VERSION'] || '@next'; - -export const priorApprovalConvertCommercialToHome: DigitalPlanningApplication = - { - data: { - user: { - role: 'agent', - }, - applicant: { - type: 'individual', - name: { - first: 'Vincent', - last: 'Van Gogh', - }, - email: 'ouchmyear@email.org', - phone: { - primary: '012345678901', - }, - address: { - sameAsSiteAddress: true, - }, - siteContact: { - role: 'agent', - }, - agent: { - name: { - first: 'Alan', - last: 'Agent', - }, - email: 'alanagent@email.org', - phone: { - primary: '098765432109', - }, - company: { - name: "Alan's Property & Fine Art Consultants PLC", - }, - address: { - line1: '12 Agent Avenue', - line2: '', - town: 'Plantown', - county: '', - postcode: 'PL47TN', - country: '', - }, - }, - }, - property: { - address: { - latitude: 51.4745098, - longitude: -0.1151501, - x: 530999, - y: 176745, - title: '87, HACKFORD ROAD, LONDON', - source: 'Ordnance Survey', - uprn: '100021847182', - usrn: '21900651', - pao: '87', - street: 'HACKFORD ROAD', - town: 'LONDON', - postcode: 'SW9 0RE', - singleLine: '87, HACKFORD ROAD, LONDON, LAMBETH, SW9 0RE', - }, - localAuthorityDistrict: ['Lambeth'], - region: 'London', - type: { - value: 'commercial.retail.shop', - description: 'Shop', - }, - planning: { - sources: [ - 'https://api.editor.planx.dev/gis/lambeth?geom=MULTIPOLYGON+%28%28%28-0.114876+51.474474%2C+-0.114863+51.474517%2C+-0.115261+51.474548%2C+-0.11527+51.474504%2C+-0.114876+51.474474%29%29%29&analytics=false&sessionId=86a5ba3e-1a7f-4460-bf46-826c3f982a92', - 'https://api.editor.planx.dev/roads?usrn=21900651', - ], - designations: [ - { - value: 'tpo', - description: 'Tree Preservation Order (TPO) or zone', - intersects: false, - }, - { - value: 'flood', - description: 'Flood Risk Zone', - intersects: false, - }, - { - value: 'listed', - description: 'Listed Building', - intersects: true, - entities: [ - { - name: '87, HACKFORD ROAD SW9', - source: { - text: 'Planning Data', - url: 'https://www.planning.data.gov.uk/entity/31537921', - }, - }, - { - name: 'No Address Supplied', - source: { - text: 'Planning Data', - url: 'https://www.planning.data.gov.uk/entity/42103309', - }, - }, - ], - }, - { - value: 'article4', - description: 'Article 4 Direction area', - intersects: false, - }, - { - value: 'monument', - description: 'Site of a Scheduled Monument', - intersects: false, - }, - { - value: 'greenBelt', - description: 'Green Belt', - intersects: false, - }, - { - value: 'designated', - description: 'Designated land', - intersects: true, - }, - { - value: 'nature.SAC', - description: 'Special Area of Conservation (SAC)', - intersects: false, - }, - { - value: 'nature.SPA', - description: 'Special Protection Area (SPA)', - intersects: false, - }, - { - value: 'nature.ASNW', - description: 'Ancient Semi-Natural Woodland (ASNW)', - intersects: false, - }, - { - value: 'nature.SSSI', - description: 'Site of Special Scientific Interest (SSSI)', - intersects: false, - }, - { - value: 'brownfieldSite', - description: 'Brownfield site', - intersects: false, - }, - { - value: 'designated.WHS', - description: 'UNESCO World Heritage Site or buffer zone', - intersects: false, - }, - { - value: 'listed.grade.I', - description: 'Listed Building - Grade I', - intersects: false, - }, - { - value: 'registeredPark', - description: 'Historic Park or Garden', - intersects: false, - }, - { - value: 'designated.AONB', - description: 'Area of Outstanding Natural Beauty (AONB)', - intersects: false, - }, - { - value: 'listed.grade.II', - description: 'Listed Building - Grade II', - intersects: true, - }, - { - value: 'listed.grade.II*', - description: 'Listed Building - Grade II*', - intersects: false, - }, - { - value: 'nature.ramsarSite', - description: 'Ramsar site', - intersects: false, - }, - { - value: 'designated.nationalPark', - description: 'National Park', - intersects: false, - }, - { - value: 'designated.conservationArea', - description: 'Conservation Area', - intersects: true, - entities: [ - { - name: 'Hackford Road', - source: { - text: 'Planning Data', - url: 'https://www.planning.data.gov.uk/entity/44000877', - }, - }, - ], - }, - { - value: 'designated.nationalPark.broads', - description: 'National Park - Broads', - intersects: false, - }, - { - value: 'road.classified', - description: 'Classified Road', - intersects: false, - }, - ], - }, - boundary: { - site: { - type: 'Feature', - geometry: { - type: 'MultiPolygon', - coordinates: [ - [ - [ - [-0.114876, 51.474474], - [-0.114863, 51.474517], - [-0.115261, 51.474548], - [-0.11527, 51.474504], - [-0.114876, 51.474474], - ], - ], - ], - }, - properties: { - name: '', - entity: 12000528882, - prefix: 'title-boundary', - dataset: 'title-boundary', - 'end-date': '', - typology: 'geography', - reference: '51792928', - 'entry-date': '2024-05-06', - 'start-date': '2011-05-10', - 'organisation-entity': '13', - }, - }, - area: { - hectares: 0.013555000000000001, - squareMetres: 135.55, - }, - }, - titleNumber: { - known: 'Yes', - number: '24/12345/FUL', - }, - EPC: { - known: 'Yes', - number: '1234-1234-1234-1234', - }, - parking: { - cars: { - count: 1, - }, - vans: { - count: 0, - }, - motorcycles: { - count: 0, - }, - cycles: { - count: 0, - }, - buses: { - count: 0, - }, - disabled: { - count: 0, - }, - carClub: { - count: 0, - }, - offStreet: { - residential: { - count: 0, - }, - }, - other: { - count: 0, - }, - }, - occupation: { - status: 'vacant', - }, - }, - application: { - type: { - value: 'pa.part3.classMA', - description: - 'Prior Approval - Convert a commercial building into a home or homes', - }, - fee: { - calculated: 258, - payable: 258, - category: { - one: 0, - two: 0, - three: 0, - four: 0, - five: 0, - sixAndSeven: 0, - eight: 0, - nine: 0, - ten: 0, - eleven: { - one: 0, - two: 0, - }, - twelve: { - one: 0, - two: 0, - }, - thirteen: 0, - fourteen: 0, - }, - exemption: { - disability: false, - resubmission: false, - }, - reduction: { - sports: false, - parishCouncil: false, - alternative: false, - }, - reference: { - govPay: 'p88epskokjikus74eafr36tfc1', - }, - }, - leadDeveloper: { - type: 'overseasCompany', - company: { - name: 'Impression Developments Inc.', - registrationNumber: '12345679ABC', - }, - }, - declaration: { - accurate: true, - connection: { - value: 'none', - }, - }, - }, - proposal: { - projectType: [ - { - value: 'changeOfUse', - description: 'Change the use of a building', - }, - ], - description: - 'Change of use from my sunflower and art supplies shop into a home.', - schemeName: "Vincent's New Property Venture", - date: { - start: '2024-07-28', - completion: '2035-07-28', - }, - boundary: { - site: { - type: 'Feature', - geometry: { - type: 'MultiPolygon', - coordinates: [ - [ - [ - [-0.114876, 51.474474], - [-0.114863, 51.474517], - [-0.115261, 51.474548], - [-0.11527, 51.474504], - [-0.114876, 51.474474], - ], - ], - ], - }, - properties: { - name: '', - entity: 12000528882, - prefix: 'title-boundary', - dataset: 'title-boundary', - 'end-date': '', - typology: 'geography', - reference: '51792928', - 'entry-date': '2024-05-06', - 'start-date': '2011-05-10', - 'organisation-entity': '13', - planx_user_action: 'Accepted the title boundary', - }, - }, - area: { - hectares: 0.013555000000000001, - squareMetres: 135.55, - }, - }, - parking: { - cars: { - count: 1, - difference: 0, - }, - vans: { - count: 0, - difference: 0, - }, - motorcycles: { - count: 0, - difference: 0, - }, - cycles: { - count: 2, - difference: 2, - }, - buses: { - count: 0, - difference: 0, - }, - disabled: { - count: 0, - difference: 0, - }, - carClub: { - count: 0, - difference: 0, - }, - offStreet: { - residential: { - count: 0, - difference: 0, - }, - }, - other: { - count: 0, - difference: 0, - }, - }, - units: { - residential: { - rebuilt: [ - { - development: { - value: 'changeOfUse', - description: 'Change of use', - }, - type: {value: 'terraced', description: 'Terraced home'}, - bedrooms: 3, - habitableRooms: 7, - area: {squareMetres: 300}, - tenure: { - value: 'marketForRent', - description: 'Market for rent', - }, - provider: {value: 'private', description: 'Private'}, - garden: false, - sheltered: false, - olderPersons: false, - compliance: [ - { - value: 'm42', - description: 'Part M4(2) of the Building Regulations 2010', - }, - { - value: 'm432a', - description: - 'Part M4(3)(2a) of the Building Regulations 2010', - }, - { - value: 'm432b', - description: - 'Part M4(3)(2b) of the Building Regulations 2010', - }, - ], - identicalUnits: 1, - }, - ], - }, - }, - energy: { - type: ['heatPump'], - heatPumps: { - capacity: {megawatts: 2}, - }, - }, - greenRoof: { - area: {squareMetres: 0}, - }, - urbanGreeningFactor: { - score: 4, - }, - utilities: { - gas: {connections: {count: 1}}, - water: {connections: {count: 1}}, - internet: { - residentialUnits: {count: 1}, - commercialUnits: {count: 0}, - }, - }, - waste: { - reuseRecycle: {percent: 2}, - }, - }, - }, - preAssessment: [ - { - value: 'Planning permission / Permission needed', - description: - 'It looks like the proposed changes may require planning permission.', - }, - ], - responses: [ - { - question: 'Is the property in Lambeth?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'The property', - }, - }, - { - question: 'What type of property is it?', - responses: [ - { - value: 'Something else', - }, - ], - metadata: { - sectionName: 'The property', - }, - }, - { - question: 'Which of these best describes the use of the property?', - responses: [ - { - value: 'Retail and services', - }, - ], - metadata: { - sectionName: 'The property', - }, - }, - { - question: 'What type of retail unit is it?', - responses: [ - { - value: 'Shop', - }, - ], - metadata: { - sectionName: 'The property', - }, - }, - { - question: 'Have the works already started?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: 'What type of property is it?', - responses: [ - { - value: 'Commercial building', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, - }, - { - question: 'What is the property used as?', - responses: [ - { - value: 'Shop', - }, - ], - metadata: { - policyRefs: [ - { - text: 'The Town and Country Planning (Use Classes) (Amendment) (England) Regulations 2020', - url: 'https://www.legislation.gov.uk/uksi/2020/757/made', - }, - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015', - url: 'https://www.legislation.gov.uk/uksi/2015/596/contents', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'Is the shop any of these?', - responses: [ - { - value: "No, it's another kind of shop", - }, - ], - metadata: { - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'What does the shop sell?', - responses: [ - { - value: 'Other goods', - }, - ], - metadata: { - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'What do you want to change its use to?', - responses: [ - { - value: 'Single house', - }, - ], - metadata: { - policyRefs: [ - { - text: 'The Town and Country Planning (Use Classes) (Amendment) (England) Regulations 2020', - url: 'https://www.legislation.gov.uk/uksi/2020/757/made', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'What part of the building will be converted?', - responses: [ - { - value: 'The entire building', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: 'Is the site within an Area of Outstanding Natural Beauty?', - responses: [ - { - value: 'No', - metadata: { - flags: ['Planning permission / Prior approval'], - }, - }, - ], - metadata: { - autoAnswered: true, - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'Is the site in the Broads?', - responses: [ - { - value: 'No', - metadata: { - flags: ['Planning permission / Prior approval'], - }, - }, - ], - metadata: { - autoAnswered: true, - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'Is the site in a National Park?', - responses: [ - { - value: 'No', - metadata: { - flags: ['Planning permission / Prior approval'], - }, - }, - ], - metadata: { - autoAnswered: true, - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'Is the site part of a World Heritage Site?', - responses: [ - { - value: 'No', - metadata: { - flags: ['Planning permission / Prior approval'], - }, - }, - ], - metadata: { - autoAnswered: true, - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'Is the site in an area of Special Scientific Interest?', - responses: [ - { - value: 'No', - metadata: { - flags: ['Planning permission / Prior approval'], - }, - }, - ], - metadata: { - autoAnswered: true, - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'Is the site in a safety hazard area?', - responses: [ - { - value: 'No', - metadata: { - flags: ['Planning permission / Prior approval'], - }, - }, - ], - metadata: { - autoAnswered: true, - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'Is the site in a military explosives storage area?', - responses: [ - { - value: 'No', - metadata: { - flags: ['Planning permission / Prior approval'], - }, - }, - ], - metadata: { - autoAnswered: true, - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'Is any part of the property a scheduled monument?', - responses: [ - { - value: 'No', - metadata: { - flags: ['Planning permission / Prior approval'], - }, - }, - ], - metadata: { - autoAnswered: true, - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'Is any part of the property listed?', - responses: [ - { - value: 'Yes', - metadata: { - flags: ['Planning permission / Permission needed'], - }, - }, - ], - metadata: { - autoAnswered: true, - policyRefs: [ - { - text: 'The Town and Country Planning (General Permitted Development) (England) Order 2015 Schedule 2, Part 3, Class MA', - url: 'https://www.legislation.gov.uk/uksi/2015/596/schedule/2/part/3', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'What type of property is it?', - responses: [ - { - value: 'Shop', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, - }, - { - question: 'What type of prior approval application is it?', - responses: [ - { - value: 'Convert a commercial building into a home or homes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, - }, - { - question: 'What type or prior approval application is it?', - responses: [ - { - value: 'Convert a commercial building into a home or homes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, - }, - { - question: 'You need to submit a Sunlight and Daylight Report', - responses: [ - { - value: 'Upload a document later', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: 'How many new homes are being build?', - responses: [ - { - value: '1', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: - 'Has any part of the site been identified as contaminated land?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: 'Was the building previously used for any of these?', - responses: [ - { - value: 'None of these', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: 'Is the building in a flood risk area?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, - }, - { - question: 'You need to submit a Noise Assessment', - responses: [ - { - value: 'Upload a document later', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: 'You need to submit a Transport Assessment', - responses: [ - { - value: 'Upload a document later', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: 'Describe the design and external appearance of the project', - responses: [ - { - value: - 'The existing shop front will be replaced by a new wall with a large painting of some hay stacks on it. Some more information about the appearance of the building. ', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: 'Is the building currently used as a nursery?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, - }, - { - question: 'Is the building currently used for healthcare?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, - }, - { - question: 'Is the property in a conservation area?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About the project', - }, - }, - { - question: - 'Does the project involve changing the use of any part of the ground floor?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: - 'Describe the impacts that the change of use will have on the character or sustainability of the conservation area and how these will be mitigated', - responses: [ - { - value: - 'These are the impacts that the change of use will have:\n1\n2\n3\nAnd this is how it will be mitigated:\nA\nB\nC', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: 'Will the building be 18 metres or more in height?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - policyRefs: [ - { - text: 'Fire safety guidance, 2021', - url: 'https://www.gov.uk/guidance/fire-safety-and-high-rise-residential-buildings-from-1-august-2021', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: 'Will the building be 7 or more storeys tall?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - policyRefs: [ - { - text: 'Fire safety guidance, 2021', - url: 'https://www.gov.uk/guidance/fire-safety-and-high-rise-residential-buildings-from-1-august-2021', - }, - ], - sectionName: 'About the project', - }, - }, - { - question: - 'Is the building in an area that is also used for heavy industry, waste management, storage or distribution?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About the project', - }, - }, - { - question: 'What type of application is it?', - responses: [ - { - value: 'Apply for prior approval', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About you', - }, - }, - { - question: 'Your contact details', - responses: [ - { - value: - "Alan Agent Alan's Property & Fine Art Consultants PLC 098765432109 alanagent@email.org", - }, - ], - metadata: { - sectionName: 'About you', - }, - }, - { - question: 'Are you applying on behalf of someone else?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - sectionName: 'About you', - }, - }, - { - question: 'Which of these best describes you?', - responses: [ - { - value: 'Professional agent', - }, - ], - metadata: { - sectionName: 'About you', - }, - }, - { - question: 'Your contact address', - responses: [ - { - value: '12 Agent Avenue, Plantown, PL47TN', - }, - ], - metadata: { - sectionName: 'About you', - }, - }, - { - question: 'Which of these best describes the applicant?', - responses: [ - { - value: 'Private individual', - }, - ], - metadata: { - sectionName: 'About you', - }, - }, - { - question: "Applicant's contact details", - responses: [ - { - value: 'Vincent Van Gogh 012345678901 ouchmyear@email.org', - }, - ], - metadata: { - sectionName: 'About you', - }, - }, - { - question: - "Is the applicant's contact address the same as the property address?", - responses: [ - { - value: 'No', - }, - ], - metadata: { - sectionName: 'About you', - }, - }, - { - question: "Applicant's contact address", - responses: [ - { - value: 'Haywain House, Rotterdam, 12543, The Netherlands', - }, - ], - metadata: { - sectionName: 'About you', - }, - }, - { - question: 'Can a planning officer see the works from public land?', - responses: [ - { - value: "Yes, it's visible from the road or somewhere else", - }, - ], - metadata: { - sectionName: 'About you', - }, - }, - { - question: 'Which of these best describes you?', - responses: [ - { - value: 'Professional agent', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'About you', - }, - }, - { - question: 'If we need to make a site visit, who should we contact?', - responses: [ - { - value: 'Me, the agent', - }, - ], - metadata: { - sectionName: 'About you', - }, - }, - { - question: 'What type of prior approval application is it?', - responses: [ - { - value: 'Convert a commercial building into a home or homes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Upload drawings', - }, - }, - { - question: 'Is this for submission or information only?', - responses: [ - { - value: 'Submission', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Upload drawings', - }, - }, - { - question: 'What type of application is it?', - responses: [ - { - value: 'Prior approval', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, - }, - { - question: 'What type of prior approval application is it?', - responses: [ - { - value: 'Convert a commercial building into a home or homes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, - }, - { - question: 'Does the project involve any building works?', - responses: [ - { - value: 'Yes', - }, - ], - metadata: { - policyRefs: [ - { - text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) (Amendment) Regulations 2023', - url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', - }, - ], - sectionName: 'Check your application', - }, - }, - { - question: 'Is the property a home?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, - }, - { - question: 'What type of changes does the project involve?', - responses: [ - { - value: 'Change use', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, - }, - { - question: 'What type of prior approval application is it?', - responses: [ - { - value: 'Convert a commercial building into a home or homes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, - }, - { - question: - 'Are you submitting any other planning applications about the same works or changes?', - 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', - url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/14', - }, - ], - sectionName: 'Check your application', - }, - }, - { - question: 'Is this application a resubmission?', - 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', - url: 'https://www.legislation.gov.uk/uksi/2012/2920/regulation/14', - }, - ], - sectionName: 'Check your application', - }, - }, - { - question: 'Does the application qualify for a disability exemption?', - 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', - }, - }, - { - question: - 'Does the application qualify to the same-day-planning-application exemption?', - 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', - }, - }, - { - question: 'Check for multiple fees?', - responses: [ - { - value: 'No', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, - }, - { - question: 'What type of application is it?', - responses: [ - { - value: 'Prior approval', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, - }, - { - question: 'Which Local Planning authority is it?', - responses: [ - { - value: 'Lambeth', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, - }, - { - question: 'Connections with London Borough of Lambeth', - responses: [ - { - value: 'None of the above apply to me', - }, - ], - metadata: { - sectionName: 'Check your application', - }, - }, - { - question: 'I confirm that:', - responses: [ - { - value: - 'The information contained in this application is truthful, accurate and complete, to the best of my knowledge', - }, - ], - metadata: { - sectionName: 'Check your application', - }, - }, - { - question: 'Connections with London Borough of Lambeth', - responses: [ - { - value: 'None of the above apply to me', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, - }, - { - question: 'I confirm that:', - responses: [ - { - value: - 'The information contained in this application is truthful, accurate and complete, to the best of my knowledge', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Check your application', - }, - }, - { - question: 'Which Local Planning authority is it?', - responses: [ - { - value: 'Lambeth', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Pay and submit', - }, - }, - { - question: - 'What type of prior approval application is it?application.type', - responses: [ - { - value: 'Convert a commercial building into a home or homes', - }, - ], - metadata: { - autoAnswered: true, - sectionName: 'Pay and submit', - }, - }, - ], - files: [ - { - name: 'https://api.editor.planx.dev/file/private/bpxw8ekr/test%20document.pdf', - type: [ - { - value: 'noiseAssessment', - description: 'Noise assessment', - }, - ], - }, - { - name: 'https://api.editor.planx.dev/file/private/2mrowm3t/test%20document.pdf', - type: [ - { - value: 'usePlan.proposed', - description: 'Use plan - proposed', - }, - { - value: 'sitePlan.proposed', - description: 'Site plan - proposed', - }, - ], - }, - { - name: 'https://api.editor.planx.dev/file/private/eu61v4yk/test%20document.pdf', - type: [ - { - value: 'sitePlan.existing', - description: 'Site plan - existing', - }, - ], - }, - { - name: 'https://api.editor.planx.dev/file/private/fd7o1wnh/test%20document.pdf', - type: [ - { - value: 'sunlightAndDaylightReport', - description: 'Sunlight and daylight report', - }, - ], - }, - ], - metadata: { - id: '86a5ba3e-1a7f-4460-bf46-826c3f982a92', - organisation: 'LBH', - submittedAt: '2024-06-29T12:25:58.777Z', - source: 'PlanX', - service: { - flowId: 'f3cae2c8-9a64-4ce1-8cef-8e6832ad383d', - url: 'https://editor.planx.dev/lambeth/apply-for-prior-approval/published', - files: { - required: [ - { - value: 'sitePlan.proposed', - description: 'Site plan - proposed', - }, - { - value: 'usePlan.proposed', - description: 'Use plan - proposed', - }, - { - value: 'noiseAssessment', - description: 'Noise assessment', - }, - { - value: 'sunlightAndDaylightReport', - description: 'Sunlight and daylight report', - }, - ], - recommended: [ - { - value: 'sitePlan.existing', - description: 'Site plan - existing', - }, - ], - optional: [ - { - value: 'photographs.existing', - description: 'Photographs - existing', - }, - { - value: 'otherDrawing', - description: 'Other - drawing', - }, - { - value: 'otherDocument', - description: 'Other - document', - }, - { - value: 'visualisations', - description: 'Visualisations', - }, - ], - }, - fee: { - calculated: [ - { - policyRefs: [ - { - text: 'The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) (Amendment) Regulations 2023', - url: 'https://www.legislation.gov.uk/uksi/2023/1197/made', - }, - ], - }, - ], - payable: [ - { - description: - '

This application does not qualify for any exemptions or reductions

', - }, - ], - }, - }, - schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`, - }, - }; diff --git a/schemas/digitalPlanningApplication.json b/schemas/application.json similarity index 99% rename from schemas/digitalPlanningApplication.json rename to schemas/application.json index 87240b65..ac298786 100644 --- a/schemas/digitalPlanningApplication.json +++ b/schemas/application.json @@ -226,14 +226,14 @@ ], "description": "The user who completed the application either for themself or on behalf of someone else" }, - "Application": { - "$id": "#Application", + "ApplicationData": { + "$id": "#ApplicationData", "anyOf": [ { - "$ref": "#/definitions/BaseApplication" + "$ref": "#/definitions/BaseApplicationData" }, { - "$ref": "#/definitions/LondonApplication" + "$ref": "#/definitions/LondonApplicationData" } ], "description": "Information about this planning application" @@ -2457,7 +2457,7 @@ ], "type": "object" }, - "BaseApplication": { + "BaseApplicationData": { "additionalProperties": false, "properties": { "CIL": { @@ -6144,8 +6144,8 @@ ], "type": "object" }, - "LondonApplication": { - "$id": "#LondonApplication", + "LondonApplicationData": { + "$id": "#LondonApplicationData", "additionalProperties": false, "description": "Application details for project sites within the Greater London Authority (GLA) area", "properties": { @@ -25450,7 +25450,7 @@ "$ref": "#/definitions/Applicant" }, "application": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/ApplicationData" }, "files": { "$ref": "#/definitions/FilesAsData" @@ -25496,6 +25496,6 @@ "files", "metadata" ], - "title": "Digital Planning Application", + "title": "Application", "type": "object" } \ No newline at end of file diff --git a/scripts/build-schema.sh b/scripts/build-schema.sh index 7eee9132..f16a8058 100755 --- a/scripts/build-schema.sh +++ b/scripts/build-schema.sh @@ -7,8 +7,8 @@ version="${VERSION:-@next}" echo "Version set to $version" -dirs=("digitalPlanningApplication") -types=("DigitalPlanningApplication") +dirs=("application") +types=("Application") for i in "${!dirs[@]}"; do dir=${dirs[$i]} diff --git a/tests/usage.test.ts b/tests/usage.test.ts index 6a1b1aaa..9c8800ad 100644 --- a/tests/usage.test.ts +++ b/tests/usage.test.ts @@ -4,8 +4,8 @@ import * as path from 'path'; import Ajv from 'ajv'; import addFormats from 'ajv-formats'; import {Schema, Validator} from 'jsonschema'; -import digitalPlanningApplicationSchema from '../schemas/digitalPlanningApplication.json'; -import {DigitalPlanningApplication} from '../types/schemas/digitalPlanningApplication/index'; +import applicationSchema from '../schemas/application.json'; +import {Application} from '../types/schemas/application'; import {describe, test, expect} from 'vitest'; /** @@ -37,11 +37,9 @@ const getJSONExamples = (schemaPath: string): T[] => { const schemas = [ { - name: 'DigitalPlanningApplication', - schema: digitalPlanningApplicationSchema, - examples: getJSONExamples( - 'digitalPlanningApplication' - ), + name: 'Application', + schema: applicationSchema, + examples: getJSONExamples('application'), }, ]; diff --git a/types/schemas/digitalPlanningApplication/File.ts b/types/schemas/application/File.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/File.ts rename to types/schemas/application/File.ts diff --git a/types/schemas/digitalPlanningApplication/Metadata.ts b/types/schemas/application/Metadata.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/Metadata.ts rename to types/schemas/application/Metadata.ts diff --git a/types/schemas/digitalPlanningApplication/PreAssessment.ts b/types/schemas/application/PreAssessment.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/PreAssessment.ts rename to types/schemas/application/PreAssessment.ts diff --git a/types/schemas/digitalPlanningApplication/Responses.ts b/types/schemas/application/Responses.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/Responses.ts rename to types/schemas/application/Responses.ts diff --git a/types/schemas/digitalPlanningApplication/data/Applicant.ts b/types/schemas/application/data/Applicant.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/data/Applicant.ts rename to types/schemas/application/data/Applicant.ts diff --git a/types/schemas/digitalPlanningApplication/data/Application.ts b/types/schemas/application/data/ApplicationData.ts similarity index 95% rename from types/schemas/digitalPlanningApplication/data/Application.ts rename to types/schemas/application/data/ApplicationData.ts index 424c9463..773ef0e4 100644 --- a/types/schemas/digitalPlanningApplication/data/Application.ts +++ b/types/schemas/application/data/ApplicationData.ts @@ -2,12 +2,12 @@ import {ApplicationType} from '../enums/ApplicationTypes'; import {Date} from '../../../shared/utils'; /** - * @id #Application + * @id #ApplicationData * @description Information about this planning application */ -export type Application = BaseApplication | LondonApplication; +export type ApplicationData = BaseApplicationData | LondonApplicationData; -export interface BaseApplication { +export interface BaseApplicationData { type: ApplicationType; fee: ApplicationFee | ApplicationFeeNotApplicable; declaration: ApplicationDeclaration; @@ -17,10 +17,10 @@ export interface BaseApplication { } /** - * @id #LondonApplication + * @id #LondonApplicationData * @description Application details for project sites within the Greater London Authority (GLA) area */ -export interface LondonApplication extends BaseApplication { +export interface LondonApplicationData extends BaseApplicationData { vacantBuildingCredit?: boolean; leadDeveloper?: LeadDeveloper; } diff --git a/types/schemas/digitalPlanningApplication/data/Files.ts b/types/schemas/application/data/Files.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/data/Files.ts rename to types/schemas/application/data/Files.ts diff --git a/types/schemas/digitalPlanningApplication/data/Property.ts b/types/schemas/application/data/Property.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/data/Property.ts rename to types/schemas/application/data/Property.ts diff --git a/types/schemas/digitalPlanningApplication/data/Proposal.ts b/types/schemas/application/data/Proposal.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/data/Proposal.ts rename to types/schemas/application/data/Proposal.ts diff --git a/types/schemas/digitalPlanningApplication/data/User.ts b/types/schemas/application/data/User.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/data/User.ts rename to types/schemas/application/data/User.ts diff --git a/types/schemas/digitalPlanningApplication/data/shared.ts b/types/schemas/application/data/shared.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/data/shared.ts rename to types/schemas/application/data/shared.ts diff --git a/types/schemas/digitalPlanningApplication/enums/ApplicationTypes.ts b/types/schemas/application/enums/ApplicationTypes.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/ApplicationTypes.ts rename to types/schemas/application/enums/ApplicationTypes.ts diff --git a/types/schemas/digitalPlanningApplication/enums/BuildingRegulations.ts b/types/schemas/application/enums/BuildingRegulations.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/BuildingRegulations.ts rename to types/schemas/application/enums/BuildingRegulations.ts diff --git a/types/schemas/digitalPlanningApplication/enums/DevelopmentTypes.ts b/types/schemas/application/enums/DevelopmentTypes.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/DevelopmentTypes.ts rename to types/schemas/application/enums/DevelopmentTypes.ts diff --git a/types/schemas/digitalPlanningApplication/enums/FileTypes.ts b/types/schemas/application/enums/FileTypes.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/FileTypes.ts rename to types/schemas/application/enums/FileTypes.ts diff --git a/types/schemas/digitalPlanningApplication/enums/Flags.ts b/types/schemas/application/enums/Flags.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/Flags.ts rename to types/schemas/application/enums/Flags.ts diff --git a/types/schemas/digitalPlanningApplication/enums/HousingProviders.ts b/types/schemas/application/enums/HousingProviders.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/HousingProviders.ts rename to types/schemas/application/enums/HousingProviders.ts diff --git a/types/schemas/digitalPlanningApplication/enums/OpenSpaces.ts b/types/schemas/application/enums/OpenSpaces.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/OpenSpaces.ts rename to types/schemas/application/enums/OpenSpaces.ts diff --git a/types/schemas/digitalPlanningApplication/enums/PlanningConstraints.ts b/types/schemas/application/enums/PlanningConstraints.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/PlanningConstraints.ts rename to types/schemas/application/enums/PlanningConstraints.ts diff --git a/types/schemas/digitalPlanningApplication/enums/ProjectTypes.ts b/types/schemas/application/enums/ProjectTypes.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/ProjectTypes.ts rename to types/schemas/application/enums/ProjectTypes.ts diff --git a/types/schemas/digitalPlanningApplication/enums/PropertyTypes.ts b/types/schemas/application/enums/PropertyTypes.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/PropertyTypes.ts rename to types/schemas/application/enums/PropertyTypes.ts diff --git a/types/schemas/digitalPlanningApplication/enums/ProtectedSpaces.ts b/types/schemas/application/enums/ProtectedSpaces.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/ProtectedSpaces.ts rename to types/schemas/application/enums/ProtectedSpaces.ts diff --git a/types/schemas/digitalPlanningApplication/enums/ResidentialUnitTypes.ts b/types/schemas/application/enums/ResidentialUnitTypes.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/ResidentialUnitTypes.ts rename to types/schemas/application/enums/ResidentialUnitTypes.ts diff --git a/types/schemas/digitalPlanningApplication/enums/TenureTypes.ts b/types/schemas/application/enums/TenureTypes.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/TenureTypes.ts rename to types/schemas/application/enums/TenureTypes.ts diff --git a/types/schemas/digitalPlanningApplication/enums/UseClasses.ts b/types/schemas/application/enums/UseClasses.ts similarity index 100% rename from types/schemas/digitalPlanningApplication/enums/UseClasses.ts rename to types/schemas/application/enums/UseClasses.ts diff --git a/types/schemas/digitalPlanningApplication/index.ts b/types/schemas/application/index.ts similarity index 81% rename from types/schemas/digitalPlanningApplication/index.ts rename to types/schemas/application/index.ts index c1313abe..8c34115b 100644 --- a/types/schemas/digitalPlanningApplication/index.ts +++ b/types/schemas/application/index.ts @@ -3,19 +3,19 @@ import {Metadata} from './Metadata'; import {PreAssessment} from './PreAssessment'; import {Responses} from './Responses'; import {Applicant} from './data/Applicant'; -import {Application} from './data/Application'; +import {ApplicationData} from './data/ApplicationData'; import {FilesAsData} from './data/Files'; import {Property} from './data/Property'; import {Proposal} from './data/Proposal'; import {User} from './data/User'; /** - * @title Digital Planning Application + * @title Application * @description The root specification for a planning application in England generated by a digital planning service */ -export interface DigitalPlanningApplication { +export interface Application { data: { - application: Application; + application: ApplicationData; user: User; applicant: Applicant; property: Property;