From c8b9d47768597a2fe4875fc1abdb3b44ebe0f37b Mon Sep 17 00:00:00 2001 From: augustlindemer <118665588+augustlindemer@users.noreply.github.com> Date: Tue, 20 Oct 2026 15:09:17 +0100 Subject: [PATCH 1/2] copy prototypeApplication changes over to application --- schemas/application.json | 1746 +++++++++++++++-- .../application/data/ApplicationData.ts | 20 + types/schemas/application/data/Property.ts | 55 +- types/schemas/application/data/Proposal.ts | 238 ++- 4 files changed, 1926 insertions(+), 133 deletions(-) diff --git a/schemas/application.json b/schemas/application.json index 80defb36..a3c98454 100644 --- a/schemas/application.json +++ b/schemas/application.json @@ -2384,19 +2384,188 @@ "BaseProposal": { "additionalProperties": false, "properties": { + "BNG": { + "additionalProperties": false, + "properties": { + "applies": { + "description": "Does the BNG condition apply?", + "type": "boolean" + }, + "degradation": { + "additionalProperties": false, + "properties": { + "details": { + "description": "Provide more details of degradation", + "type": "string" + }, + "preStartDate": { + "$ref": "#/definitions/Date", + "description": "Date immediately before degrading activity was carried out" + }, + "value": { + "description": "Has any degradation occured?", + "type": "boolean" + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "exemption": { + "additionalProperties": false, + "properties": { + "justification": { + "description": "Why doesn't it apply?", + "type": "string" + } + }, + "type": "object" + }, + "irreplaceableHabitat": { + "additionalProperties": false, + "properties": { + "details": { + "description": "More details about irreplaceable habitat", + "type": "string" + }, + "value": { + "description": "Does the site have irreplaceable habitat?", + "type": "boolean" + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "preDegradationValue": { + "additionalProperties": false, + "properties": { + "metricToolPublicationDate": { + "$ref": "#/definitions/Date", + "description": "Metric tool publication date for pre-degradation calculation" + }, + "value": { + "description": "Onsite biodiversity value on the date immediately before degrading activity was carried out", + "type": "number" + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "preDevelopmentValue": { + "additionalProperties": false, + "properties": { + "calculated": { + "additionalProperties": false, + "properties": { + "applicationDate": { + "description": "Is the date of the calculation the application date?", + "type": "boolean" + }, + "date": { + "$ref": "#/definitions/Date", + "description": "Earlier date of pre-development biodiversity calculation" + }, + "earlyJustification": { + "description": "Justification for earlier date", + "type": "string" + } + }, + "type": "object" + }, + "metricToolPublicationDate": { + "$ref": "#/definitions/Date", + "description": "Metric tool publication date for recent calculation" + }, + "value": { + "description": "Pre-development biodiversity value", + "type": "number" + } + }, + "required": [ + "value" + ], + "type": "object" + } + }, + "required": [ + "applies" + ], + "title": "Biodiversity net gain (BNG)", + "type": "object" + }, "access": { "additionalProperties": false, "description": "Proposed pedestrian & vehicle access, roads and rights of way, if applicable to application.type", "properties": { "affected": { - "enum": [ - "vehicle", - "pedestrian", - "newRoad", - "rightsOfWay.newPublic", - "rightsOfWay.changes" + "anyOf": [ + { + "const": "vehicle", + "type": "string" + }, + { + "const": "pedestrian", + "type": "string" + }, + { + "const": "newRoad", + "type": "string" + }, + { + "const": "rightsOfWay.newPublic", + "type": "string" + }, + { + "const": "rightsOfWay.changes", + "type": "string" + }, + { + "additionalProperties": false, + "properties": { + "pedestrian": { + "description": "Is new or altered pedestrian access proposed?", + "type": "boolean" + }, + "rightOfWay": { + "description": "Are any rights of way created, diverted or extinguished?", + "type": "boolean" + }, + "vehicle": { + "description": "Is new or altered vehicle access proposed?", + "type": "boolean" + } + }, + "required": [ + "vehicle", + "pedestrian", + "rightOfWay" + ], + "type": "object" + } + ] + }, + "new": { + "additionalProperties": false, + "properties": { + "publicRoad": { + "description": "Are new public roads provided within the site?", + "type": "boolean" + }, + "rightOfWay": { + "description": "Are new public rights of way provided within the site?", + "type": "boolean" + } + }, + "required": [ + "publicRoad", + "rightOfWay" ], - "type": "string" + "type": "object" } }, "type": "object" @@ -2405,6 +2574,41 @@ "$ref": "#/definitions/GeoBoundary", "description": "Location plan boundary proposed by the user, commonly referred to as the red line boundary" }, + "commercialProcesses": { + "additionalProperties": false, + "properties": { + "description": { + "description": "Describe activities processes carried out on the site, or 'none'", + "type": "string" + }, + "wasteManagement": { + "description": "Is the proposal a waste management development?", + "type": "boolean" + } + }, + "required": [ + "description", + "wasteManagement" + ], + "type": "object" + }, + "completed": { + "additionalProperties": false, + "properties": { + "date": { + "$ref": "#/definitions/Date", + "description": "Date that project was completed" + }, + "value": { + "description": "Has the project been completed?", + "type": "boolean" + } + }, + "required": [ + "value" + ], + "type": "object" + }, "date": { "$ref": "#/definitions/ProposalDates" }, @@ -2442,6 +2646,117 @@ }, "type": "object" }, + "effluent": { + "additionalProperties": false, + "properties": { + "disposal": { + "description": "Does the proposed use involve disposal of trade effluent?", + "type": "boolean" + } + }, + "required": [ + "disposal" + ], + "type": "object" + }, + "employment": { + "additionalProperties": false, + "properties": { + "existingEmployees": { + "additionalProperties": false, + "description": "Number of existing employees: full time, part time, and total full time equivalent", + "properties": { + "fullTime": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "fullTimeEquivalent": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "partTime": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + } + }, + "required": [ + "fullTime" + ], + "type": "object" + }, + "proposedEmployees": { + "additionalProperties": false, + "description": "Number of proposed employees: full time, part time, and total full time equivalent", + "properties": { + "fullTime": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "fullTimeEquivalent": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "partTime": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + } + }, + "type": "object" + } + }, + "required": [ + "existingEmployees" + ], + "type": "object" + }, "environmentalImpactDescription": { "type": "string" }, @@ -2461,8 +2776,14 @@ "additionalProperties": false, "description": "Assessment of flood risk, if applicable to application.type", "properties": { + "atRisk": { + "description": "Is the site at risk of flooding?", + "type": "boolean" + }, "surfaceWaterDisposal": { + "description": "How will surface water be disposed of?", "enum": [ + "sustainableDrainageSystem", "drainageSystem", "soakaway", "sewer", @@ -2475,6 +2796,39 @@ }, "type": "object" }, + "foulSewage": { + "additionalProperties": false, + "properties": { + "disposal": { + "description": "How will foul sewage be disposed of?", + "enum": [ + "sewer", + "pit", + "tank", + "plant", + "other" + ], + "type": "string" + }, + "newConnection": { + "description": "Are you proposing to connect to the existing drainage system?", + "type": "boolean" + } + }, + "required": [ + "disposal", + "newConnection" + ], + "type": "object" + }, + "hazardousSubstanceStorage": { + "description": "Does the proposed use involve the storage of hazardous chemicals?", + "type": "boolean" + }, + "hoursOfOperation": { + "description": "Hours of operation per use, or 'not applicable'", + "type": "string" + }, "materials": { "$ref": "#/definitions/Materials", "description": "Proposed materials, if applicable to projectType" @@ -2524,14 +2878,78 @@ }, "type": "object" }, + "nonResidentialFloorspace": { + "additionalProperties": false, + "properties": { + "affected": { + "description": "Does your proposal impact non-residential floorspace?", + "type": "boolean" + } + }, + "required": [ + "affected" + ], + "type": "object" + }, + "parking": { + "$ref": "#/definitions/ProposedNationalParking", + "description": "Proposed parking spaces" + }, "projectType": { "items": { "$ref": "#/definitions/ProjectType" }, "type": "array" }, - "structures": { - "additionalProperties": false, + "publicServiceInfrastructure": { + "description": "Is it a proposal for public service infrastructure?", + "type": "boolean" + }, + "residentialUnits": { + "additionalProperties": false, + "properties": { + "change": { + "description": "Does the project change the number or type of residential units on the site?", + "type": "boolean" + } + }, + "required": [ + "change" + ], + "type": "object" + }, + "site": { + "additionalProperties": false, + "properties": { + "hectares": { + "description": "What is the site area in hectares?", + "type": "number" + } + }, + "required": [ + "hectares" + ], + "type": "object" + }, + "started": { + "additionalProperties": false, + "properties": { + "date": { + "$ref": "#/definitions/Date", + "description": "Date that project was started" + }, + "value": { + "description": "Has the project already started?", + "type": "boolean" + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "structures": { + "additionalProperties": false, "properties": { "permanent": { "additionalProperties": false, @@ -2604,6 +3022,10 @@ "type": "string" }, "type": "array" + }, + "vulnerableToContamination": { + "description": "Is the proposed use vulnerable to contamination?", + "type": "boolean" } }, "type": "object" @@ -2718,6 +3140,29 @@ }, "type": "object" }, + "wasteStorage": { + "additionalProperties": false, + "properties": { + "affected": { + "description": "Does the project accommodate waste storage areas?", + "type": "boolean" + }, + "separated": { + "description": "Will recyclable waste be stored and collected separately?", + "enum": [ + "yes", + "no", + "not applicable" + ], + "type": "string" + } + }, + "required": [ + "affected", + "separated" + ], + "type": "object" + }, "watercourse": { "additionalProperties": false, "properties": { @@ -3659,6 +4104,85 @@ }, "type": "object" }, + "ExistingNationalParking": { + "additionalProperties": false, + "description": "Existing parking spaces by type per the national planning application form", + "properties": { + "cars": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + } + }, + "required": [ + "count" + ], + "type": "object" + }, + "cycles": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + } + }, + "required": [ + "count" + ], + "type": "object" + }, + "disabled": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + } + }, + "required": [ + "count" + ], + "type": "object" + }, + "motorcycles": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + } + }, + "required": [ + "count" + ], + "type": "object" + }, + "other": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + } + }, + "required": [ + "count" + ], + "type": "object" + }, + "vans": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + } + }, + "required": [ + "count" + ], + "type": "object" + } + }, + "type": "object" + }, "Feature": { "additionalProperties": false, "description": "A feature object which contains a geometry and associated properties. https://tools.ietf.org/html/rfc7946#section-3.2", @@ -6770,6 +7294,9 @@ ], "type": "object" }, + "Integer": { + "type": "number" + }, "LeadDeveloper": { "additionalProperties": false, "properties": { @@ -6850,9 +7377,54 @@ } ] }, + "housingFastTrack": { + "description": "Affordable Housing Fast Track", + "type": "boolean" + }, "leadDeveloper": { "$ref": "#/definitions/LeadDeveloper" }, + "linked": { + "additionalProperties": false, + "properties": { + "superseding": { + "additionalProperties": false, + "properties": { + "applicationNumber": { + "description": "Reference number of the original application", + "type": "string" + }, + "description": { + "description": "Description of the superseded components", + "type": "string" + }, + "partial": { + "description": "Is the original permission only partially superseded?", + "type": "boolean" + }, + "unitReference": { + "description": "Units that are being superseded", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "mobileNetworkOperators": { + "additionalProperties": false, + "properties": { + "consulted": { + "description": "Mobile network operators consulted", + "type": "boolean" + } + }, + "required": [ + "consulted" + ], + "type": "object" + }, "planningApp": { "$ref": "#/definitions/PlanningApplication" }, @@ -7065,136 +7637,569 @@ "const": true, "type": "boolean" } - }, - "required": [ - "status", - "description" - ], - "type": "object" + }, + "required": [ + "status", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "status": { + "const": false, + "type": "boolean" + } + }, + "required": [ + "status" + ], + "type": "object" + } + ], + "title": "Lead Registered Social Landlord" + }, + "titleNumber": { + "additionalProperties": false, + "properties": { + "known": { + "enum": [ + "Yes", + "No" + ], + "type": "string" + }, + "number": { + "type": "string" + } + }, + "required": [ + "known" + ], + "type": "object" + }, + "trees": { + "additionalProperties": false, + "description": "Existing trees on or near the site", + "properties": { + "adjacent": { + "type": "boolean" + }, + "present": { + "type": "boolean" + } + }, + "required": [ + "present", + "adjacent" + ], + "type": "object" + }, + "type": { + "$ref": "#/definitions/PropertyType" + }, + "units": { + "$ref": "#/definitions/ResidentialUnits" + }, + "use": { + "additionalProperties": false, + "description": "Existing land use, if applicable to application.type", + "properties": { + "description": { + "type": "string" + }, + "knownContamination": { + "description": "Is the land known to be contaminated?", + "type": "boolean" + }, + "suspectedContamination": { + "description": "Is the land suspected of being contaminated?", + "type": "boolean" + }, + "vacant": { + "additionalProperties": false, + "properties": { + "lastUseEndDate": { + "$ref": "#/definitions/Date" + } + }, + "required": [ + "lastUseEndDate" + ], + "type": "object" + } + }, + "required": [ + "description" + ], + "type": "object" + }, + "useClass": { + "description": "Use class", + "enum": [ + "A1", + "A2", + "A3", + "A4", + "A5", + "B1", + "B1a", + "B1b", + "B1c", + "B2", + "B8", + "C1", + "C2", + "C2a", + "C3", + "C4", + "D1", + "D2", + "SG" + ], + "type": "string" + }, + "useClassC3": { + "additionalProperties": false, + "properties": { + "GIA": { + "additionalProperties": false, + "properties": { + "existing": { + "description": "Use class C3 Gross Internal Area existing", + "type": "number" + }, + "gained": { + "description": "Use class C3 Gross Internal Area gained", + "type": "number" + }, + "lost": { + "description": "Use class C3 Gross Internal Area lost", + "type": "number" + } + }, + "required": [ + "existing", + "gained", + "lost" + ], + "type": "object" + } + }, + "required": [ + "GIA" + ], + "type": "object" + }, + "useClassC4": { + "additionalProperties": false, + "properties": { + "GIA": { + "additionalProperties": false, + "properties": { + "existing": { + "description": "Use class C4 Gross Internal Area existing", + "type": "number" + }, + "gained": { + "description": "Use class C4 Gross Internal Area gained", + "type": "number" + }, + "lost": { + "description": "Use class C4 Gross Internal Area lost", + "type": "number" + } + }, + "required": [ + "existing", + "gained", + "lost" + ], + "type": "object" + } + }, + "required": [ + "GIA" + ], + "type": "object" + }, + "ward": { + "description": "Name of the ward sourced from planning.data.gov.uk/dataset/ward", + "type": "string" + } + }, + "required": [ + "address", + "localAuthorityDistrict", + "region", + "type", + "ward" + ], + "type": "object" + }, + "LondonProposal": { + "$id": "#LondonProposal", + "additionalProperties": false, + "description": "Proposal details for project sites within the Greater London Authority (GLA) area", + "properties": { + "BNG": { + "additionalProperties": false, + "properties": { + "applies": { + "description": "Does the BNG condition apply?", + "type": "boolean" + }, + "degradation": { + "additionalProperties": false, + "properties": { + "details": { + "description": "Provide more details of degradation", + "type": "string" + }, + "preStartDate": { + "$ref": "#/definitions/Date", + "description": "Date immediately before degrading activity was carried out" + }, + "value": { + "description": "Has any degradation occured?", + "type": "boolean" + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "exemption": { + "additionalProperties": false, + "properties": { + "justification": { + "description": "Why doesn't it apply?", + "type": "string" + } + }, + "type": "object" + }, + "irreplaceableHabitat": { + "additionalProperties": false, + "properties": { + "details": { + "description": "More details about irreplaceable habitat", + "type": "string" + }, + "value": { + "description": "Does the site have irreplaceable habitat?", + "type": "boolean" + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "preDegradationValue": { + "additionalProperties": false, + "properties": { + "metricToolPublicationDate": { + "$ref": "#/definitions/Date", + "description": "Metric tool publication date for pre-degradation calculation" + }, + "value": { + "description": "Onsite biodiversity value on the date immediately before degrading activity was carried out", + "type": "number" + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "preDevelopmentValue": { + "additionalProperties": false, + "properties": { + "calculated": { + "additionalProperties": false, + "properties": { + "applicationDate": { + "description": "Is the date of the calculation the application date?", + "type": "boolean" + }, + "date": { + "$ref": "#/definitions/Date", + "description": "Earlier date of pre-development biodiversity calculation" + }, + "earlyJustification": { + "description": "Justification for earlier date", + "type": "string" + } + }, + "type": "object" + }, + "metricToolPublicationDate": { + "$ref": "#/definitions/Date", + "description": "Metric tool publication date for recent calculation" + }, + "value": { + "description": "Pre-development biodiversity value", + "type": "number" + } + }, + "required": [ + "value" + ], + "type": "object" + } + }, + "required": [ + "applies" + ], + "title": "Biodiversity net gain (BNG)", + "type": "object" + }, + "EVcharging": { + "additionalProperties": false, + "description": "Electric vehicle charging points by speed", + "properties": { + "active": { + "additionalProperties": false, + "description": "Number of active EV charging points", + "properties": { + "fast": { + "additionalProperties": false, + "description": "Number of fast EV charging points", + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "other": { + "additionalProperties": false, + "description": "Number of other EV charging points", + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "rapid": { + "additionalProperties": false, + "description": "Number of rapid EV charging points", + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "slow": { + "additionalProperties": false, + "description": "Number of slow EV charging points", + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + } + }, + "type": "object" + }, + "passive": { + "additionalProperties": false, + "description": "Number of passive EV charging points", + "properties": { + "fast": { + "additionalProperties": false, + "description": "Number of fast EV charging points", + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "other": { + "additionalProperties": false, + "description": "Number of other EV charging points", + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "rapid": { + "additionalProperties": false, + "description": "Number of rapid EV charging points", + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "slow": { + "additionalProperties": false, + "description": "Number of slow EV charging points", + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "access": { + "additionalProperties": false, + "description": "Proposed pedestrian & vehicle access, roads and rights of way, if applicable to application.type", + "properties": { + "affected": { + "anyOf": [ + { + "const": "vehicle", + "type": "string" + }, + { + "const": "pedestrian", + "type": "string" + }, + { + "const": "newRoad", + "type": "string" + }, + { + "const": "rightsOfWay.newPublic", + "type": "string" + }, + { + "const": "rightsOfWay.changes", + "type": "string" + }, + { + "additionalProperties": false, + "properties": { + "pedestrian": { + "description": "Is new or altered pedestrian access proposed?", + "type": "boolean" + }, + "rightOfWay": { + "description": "Are any rights of way created, diverted or extinguished?", + "type": "boolean" + }, + "vehicle": { + "description": "Is new or altered vehicle access proposed?", + "type": "boolean" + } + }, + "required": [ + "vehicle", + "pedestrian", + "rightOfWay" + ], + "type": "object" + } + ] }, - { + "new": { "additionalProperties": false, "properties": { - "status": { - "const": false, + "publicRoad": { + "description": "Are new public roads provided within the site?", + "type": "boolean" + }, + "rightOfWay": { + "description": "Are new public rights of way provided within the site?", "type": "boolean" } }, "required": [ - "status" + "publicRoad", + "rightOfWay" ], "type": "object" } - ], - "title": "Lead Registered Social Landlord" - }, - "titleNumber": { - "additionalProperties": false, - "properties": { - "known": { - "enum": [ - "Yes", - "No" - ], - "type": "string" - }, - "number": { - "type": "string" - } - }, - "required": [ - "known" - ], - "type": "object" - }, - "trees": { - "additionalProperties": false, - "description": "Existing trees on or near the site", - "properties": { - "adjacent": { - "type": "boolean" - }, - "present": { - "type": "boolean" - } }, - "required": [ - "present", - "adjacent" - ], "type": "object" }, - "type": { - "$ref": "#/definitions/PropertyType" - }, - "units": { - "$ref": "#/definitions/ResidentialUnits" + "boundary": { + "$ref": "#/definitions/GeoBoundary", + "description": "Location plan boundary proposed by the user, commonly referred to as the red line boundary" }, - "use": { + "buildingDetails": { "additionalProperties": false, - "description": "Existing land use, if applicable to application.type", "properties": { - "description": { - "type": "string" + "main": { + "additionalProperties": false, + "properties": { + "height": { + "description": "Main building maximum height", + "type": "number" + }, + "storeys": { + "$ref": "#/definitions/Integer", + "description": "Main building number of storeys" + } + }, + "type": "object" }, - "vacant": { + "outbuilding": { "additionalProperties": false, "properties": { - "lastUseEndDate": { - "$ref": "#/definitions/Date" + "height": { + "description": "Outbuilding maximum height", + "type": "number" + }, + "storeys": { + "$ref": "#/definitions/Integer", + "description": "Outbuilding number of storeys" } }, - "required": [ - "lastUseEndDate" - ], "type": "object" - } - }, - "required": [ - "description" - ], - "type": "object" - }, - "ward": { - "description": "Name of the ward sourced from planning.data.gov.uk/dataset/ward", - "type": "string" - } - }, - "required": [ - "address", - "localAuthorityDistrict", - "region", - "type", - "ward" - ], - "type": "object" - }, - "LondonProposal": { - "$id": "#LondonProposal", - "additionalProperties": false, - "description": "Proposal details for project sites within the Greater London Authority (GLA) area", - "properties": { - "access": { - "additionalProperties": false, - "description": "Proposed pedestrian & vehicle access, roads and rights of way, if applicable to application.type", - "properties": { - "affected": { + }, + "reference": { + "description": "Building reference", "enum": [ - "vehicle", - "pedestrian", - "newRoad", - "rightsOfWay.newPublic", - "rightsOfWay.changes" + "main", + "outbuilding" ], "type": "string" } }, "type": "object" }, - "boundary": { - "$ref": "#/definitions/GeoBoundary", - "description": "Location plan boundary proposed by the user, commonly referred to as the red line boundary" - }, "charging": { "additionalProperties": false, "description": "Electric vehicle charing points", @@ -7226,6 +8231,41 @@ }, "type": "object" }, + "commercialProcesses": { + "additionalProperties": false, + "properties": { + "description": { + "description": "Describe activities processes carried out on the site, or 'none'", + "type": "string" + }, + "wasteManagement": { + "description": "Is the proposal a waste management development?", + "type": "boolean" + } + }, + "required": [ + "description", + "wasteManagement" + ], + "type": "object" + }, + "completed": { + "additionalProperties": false, + "properties": { + "date": { + "$ref": "#/definitions/Date", + "description": "Date that project was completed" + }, + "value": { + "description": "Has the project been completed?", + "type": "boolean" + } + }, + "required": [ + "value" + ], + "type": "object" + }, "cost": { "additionalProperties": false, "description": "Project cost", @@ -7281,6 +8321,117 @@ }, "type": "object" }, + "effluent": { + "additionalProperties": false, + "properties": { + "disposal": { + "description": "Does the proposed use involve disposal of trade effluent?", + "type": "boolean" + } + }, + "required": [ + "disposal" + ], + "type": "object" + }, + "employment": { + "additionalProperties": false, + "properties": { + "existingEmployees": { + "additionalProperties": false, + "description": "Number of existing employees: full time, part time, and total full time equivalent", + "properties": { + "fullTime": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "fullTimeEquivalent": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "partTime": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + } + }, + "required": [ + "fullTime" + ], + "type": "object" + }, + "proposedEmployees": { + "additionalProperties": false, + "description": "Number of proposed employees: full time, part time, and total full time equivalent", + "properties": { + "fullTime": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "fullTimeEquivalent": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "partTime": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer" + } + }, + "required": [ + "number" + ], + "type": "object" + } + }, + "type": "object" + } + }, + "required": [ + "existingEmployees" + ], + "type": "object" + }, "energy": { "additionalProperties": false, "description": "Proposed energy sources", @@ -7363,42 +8514,103 @@ "type": "array" } }, - "required": [ - "type" - ], + "required": [ + "type" + ], + "type": "object" + }, + "environmentalImpactDescription": { + "type": "string" + }, + "extend": { + "additionalProperties": false, + "properties": { + "area": { + "$ref": "#/definitions/Area" + } + }, + "required": [ + "area" + ], + "type": "object" + }, + "flood": { + "additionalProperties": false, + "description": "Assessment of flood risk, if applicable to application.type", + "properties": { + "atRisk": { + "description": "Is the site at risk of flooding?", + "type": "boolean" + }, + "dischargeReduction": { + "description": "Surface Water Discharge Percentage Reduction", + "type": "number" + }, + "greenSuDS": { + "description": "Green SuDS", + "type": "boolean" + }, + "surfaceWaterDisposal": { + "description": "How will surface water be disposed of?", + "enum": [ + "sustainableDrainageSystem", + "drainageSystem", + "soakaway", + "sewer", + "watercourse", + "pondOrLake", + "other" + ], + "type": "string" + } + }, "type": "object" }, - "environmentalImpactDescription": { - "type": "string" - }, - "extend": { + "footprint": { "additionalProperties": false, "properties": { - "area": { - "$ref": "#/definitions/Area" + "garden": { + "additionalProperties": false, + "properties": { + "removed": { + "description": "Does your proposal involve the loss of garden land?", + "type": "boolean" + } + }, + "required": [ + "removed" + ], + "type": "object" } }, "required": [ - "area" + "garden" ], "type": "object" }, - "flood": { + "foulSewage": { "additionalProperties": false, - "description": "Assessment of flood risk, if applicable to application.type", "properties": { - "surfaceWaterDisposal": { + "disposal": { + "description": "How will foul sewage be disposed of?", "enum": [ - "drainageSystem", - "soakaway", "sewer", - "watercourse", - "pondOrLake", + "pit", + "tank", + "plant", "other" ], "type": "string" + }, + "newConnection": { + "description": "Are you proposing to connect to the existing drainage system?", + "type": "boolean" } }, + "required": [ + "disposal", + "newConnection" + ], "type": "object" }, "greenRoof": { @@ -7414,6 +8626,36 @@ ], "type": "object" }, + "hazardousSubstanceStorage": { + "description": "Does the proposed use involve the storage of hazardous chemicals?", + "type": "boolean" + }, + "heating": { + "additionalProperties": false, + "properties": { + "electrical": { + "additionalProperties": false, + "properties": { + "numberHomes": { + "$ref": "#/definitions/Integer", + "description": "Homes with electrical heating" + } + }, + "required": [ + "numberHomes" + ], + "type": "object" + } + }, + "required": [ + "electrical" + ], + "type": "object" + }, + "hoursOfOperation": { + "description": "Hours of operation per use, or 'not applicable'", + "type": "string" + }, "materials": { "$ref": "#/definitions/Materials", "description": "Proposed materials, if applicable to projectType" @@ -7585,19 +8827,124 @@ "$ref": "#/definitions/NewBuildingsOrStoreys", "description": "Increasing the height of existing buildings" }, + "nonPermanentDwellings": { + "additionalProperties": false, + "properties": { + "gained": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer", + "description": "Non-permanent dwellings gained" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "lost": { + "additionalProperties": false, + "properties": { + "number": { + "$ref": "#/definitions/Integer", + "description": "Non-permanent dwellings lost" + } + }, + "required": [ + "number" + ], + "type": "object" + }, + "type": { + "description": "Non-permanent dwelling type", + "enum": [ + "Non-permanent dwellings", + "Traveller pitches/plots", + "Houseboat moorings" + ], + "type": "string" + } + }, + "type": "object" + }, + "nonResidentialFloorspace": { + "additionalProperties": false, + "properties": { + "affected": { + "description": "Does your proposal impact non-residential floorspace?", + "type": "boolean" + } + }, + "required": [ + "affected" + ], + "type": "object" + }, "parking": { "$ref": "#/definitions/ProposedLondonParking", "description": "Proposed parking spaces" }, + "phased": { + "description": "Scheme phasing", + "type": "boolean" + }, "projectType": { "items": { "$ref": "#/definitions/ProjectType" }, "type": "array" }, + "publicServiceInfrastructure": { + "description": "Is it a proposal for public service infrastructure?", + "type": "boolean" + }, + "residentialUnits": { + "additionalProperties": false, + "properties": { + "change": { + "description": "Does the project change the number or type of residential units on the site?", + "type": "boolean" + } + }, + "required": [ + "change" + ], + "type": "object" + }, "schemeName": { "type": "string" }, + "site": { + "additionalProperties": false, + "properties": { + "hectares": { + "description": "What is the site area in hectares?", + "type": "number" + } + }, + "required": [ + "hectares" + ], + "type": "object" + }, + "started": { + "additionalProperties": false, + "properties": { + "date": { + "$ref": "#/definitions/Date", + "description": "Date that project was started" + }, + "value": { + "description": "Has the project already started?", + "type": "boolean" + } + }, + "required": [ + "value" + ], + "type": "object" + }, "structures": { "additionalProperties": false, "properties": { @@ -7649,6 +8996,10 @@ ], "type": "object" }, + "subdivisionDetails": { + "description": "Sub-division of building", + "type": "string" + }, "units": { "additionalProperties": false, "properties": { @@ -7902,6 +9253,10 @@ "type": "string" }, "type": "array" + }, + "vulnerableToContamination": { + "description": "Is the proposed use vulnerable to contamination?", + "type": "boolean" } }, "type": "object" @@ -8038,6 +9393,29 @@ ], "type": "object" }, + "wasteStorage": { + "additionalProperties": false, + "properties": { + "affected": { + "description": "Does the project accommodate waste storage areas?", + "type": "boolean" + }, + "separated": { + "description": "Will recyclable waste be stored and collected separately?", + "enum": [ + "yes", + "no", + "not applicable" + ], + "type": "string" + } + }, + "required": [ + "affected", + "separated" + ], + "type": "object" + }, "water": { "additionalProperties": false, "description": "Water management", @@ -29422,6 +30800,109 @@ }, "type": "object" }, + "ProposedNationalParking": { + "additionalProperties": false, + "description": "Proposed parking spaces by type per the national planning application form", + "properties": { + "cars": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + }, + "difference": { + "type": "number" + } + }, + "required": [ + "count", + "difference" + ], + "type": "object" + }, + "cycles": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + }, + "difference": { + "type": "number" + } + }, + "required": [ + "count", + "difference" + ], + "type": "object" + }, + "disabled": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + }, + "difference": { + "type": "number" + } + }, + "required": [ + "count", + "difference" + ], + "type": "object" + }, + "motorcycles": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + }, + "difference": { + "type": "number" + } + }, + "required": [ + "count", + "difference" + ], + "type": "object" + }, + "other": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + }, + "difference": { + "type": "number" + } + }, + "required": [ + "count", + "difference" + ], + "type": "object" + }, + "vans": { + "additionalProperties": false, + "properties": { + "count": { + "type": "number" + }, + "difference": { + "type": "number" + } + }, + "required": [ + "count", + "difference" + ], + "type": "object" + } + }, + "type": "object" + }, "ProtectedSpaceDesignation": { "$id": "#ProtectedSpaceDesignation", "anyOf": [ @@ -30423,6 +31904,9 @@ "$ref": "#/definitions/Materials", "description": "Existing materials, if applicable to proposal.projectType" }, + "parking": { + "$ref": "#/definitions/ExistingNationalParking" + }, "planning": { "additionalProperties": false, "description": "Planning constraints and policies that intersect with this site and may impact or restrict development", @@ -30514,6 +31998,14 @@ "description": { "type": "string" }, + "knownContamination": { + "description": "Is the land known to be contaminated?", + "type": "boolean" + }, + "suspectedContamination": { + "description": "Is the land suspected of being contaminated?", + "type": "boolean" + }, "vacant": { "additionalProperties": false, "properties": { diff --git a/types/schemas/application/data/ApplicationData.ts b/types/schemas/application/data/ApplicationData.ts index f650bcd2..e480be34 100644 --- a/types/schemas/application/data/ApplicationData.ts +++ b/types/schemas/application/data/ApplicationData.ts @@ -29,6 +29,26 @@ export interface BaseApplicationData { export interface LondonApplicationData extends BaseApplicationData { vacantBuildingCredit?: boolean; leadDeveloper?: LeadDeveloper; + /** + * @description Affordable Housing Fast Track + */ + housingFastTrack?: boolean; + linked?: { + superseding?: { + /** @description Description of the superseded components */ + description?: string; + /** @description Reference number of the original application */ + applicationNumber?: string; + /** @description Is the original permission only partially superseded? */ + partial?: boolean; + /** @description Units that are being superseded */ + unitReference?: string; + }; + }; + mobileNetworkOperators?: { + /** @description Mobile network operators consulted */ + consulted: boolean; + }; } export interface LeadDeveloper { diff --git a/types/schemas/application/data/Property.ts b/types/schemas/application/data/Property.ts index aa2f5a87..afea248b 100644 --- a/types/schemas/application/data/Property.ts +++ b/types/schemas/application/data/Property.ts @@ -3,7 +3,10 @@ import { PlanningDesignation, } from '../../../shared/Constraints'; import {Materials} from '../../../shared/Materials'; -import {ExistingLondonParking} from '../../../shared/Parking'; +import { + ExistingLondonParking, + ExistingNationalParking, +} from '../../../shared/Parking'; import {Region} from '../../../shared/Regions'; import {Site} from '../../../shared/Sites'; import {Date, URL} from '../../../shared/utils'; @@ -50,6 +53,10 @@ export type UKProperty = Site & { vacant?: { lastUseEndDate: Date; }; + /** @description Is the land known to be contaminated? */ + knownContamination?: boolean; + /** @description Is the land suspected of being contaminated? */ + suspectedContamination?: boolean; }; /** * @description Existing flood risk, if applicable to application.type @@ -66,13 +73,14 @@ export type UKProperty = Site & { adjacent: boolean; }; units?: ResidentialUnits; + parking?: ExistingNationalParking; }; /** * @id #LondonProperty * @description Property details for sites within the Greater London Authority (GLA) area */ -export type LondonProperty = UKProperty & { +export type LondonProperty = Omit & { region: Extract; titleNumber?: { known: 'Yes' | 'No'; @@ -106,4 +114,47 @@ export type LondonProperty = UKProperty & { status: 'occupied' | 'partVacant' | 'vacant'; }; parking?: ExistingLondonParking; + /** + * @description Use class + */ + useClass?: + | 'A1' + | 'A2' + | 'A3' + | 'A4' + | 'A5' + | 'B1' + | 'B1a' + | 'B1b' + | 'B1c' + | 'B2' + | 'B8' + | 'C1' + | 'C2' + | 'C2a' + | 'C3' + | 'C4' + | 'D1' + | 'D2' + | 'SG'; + useClassC3?: { + GIA: { + /** @description Use class C3 Gross Internal Area existing */ + existing: number; + /** @description Use class C3 Gross Internal Area gained */ + gained: number; + /** @description Use class C3 Gross Internal Area lost */ + lost: number; + }; + }; + useClassC4?: { + GIA: { + /** @description Use class C4 Gross Internal Area existing */ + existing: number; + /** @description Use class C4 Gross Internal Area gained */ + gained: number; + /** @description Use class C4 Gross Internal Area lost */ + lost: number; + }; + }; }; diff --git a/types/schemas/application/data/Proposal.ts b/types/schemas/application/data/Proposal.ts index 3fbfe78b..57fc0132 100644 --- a/types/schemas/application/data/Proposal.ts +++ b/types/schemas/application/data/Proposal.ts @@ -8,9 +8,12 @@ import {ProjectType} from '../enums/ProjectTypes'; import {ProtectedSpaceDesignation} from '../enums/ProtectedSpaces'; import {GLAResidentialUnitType} from '../enums/ResidentialUnitTypes'; import {GLATenureType} from '../enums/TenureTypes'; -import {Area, Date} from '../../../shared/utils'; +import {Area, Date, Integer} from '../../../shared/utils'; import {ResidentialUnits} from './shared'; -import {ProposedLondonParking} from '../../../shared/Parking'; +import { + ProposedLondonParking, + ProposedNationalParking, +} from '../../../shared/Parking'; /** * @id #Proposal @@ -39,7 +42,21 @@ export interface BaseProposal { | 'pedestrian' | 'newRoad' | 'rightsOfWay.newPublic' - | 'rightsOfWay.changes'; + | 'rightsOfWay.changes' + | { + /** @description Is new or altered vehicle access proposed? */ + vehicle: boolean; + /** @description Is new or altered pedestrian access proposed? */ + pedestrian: boolean; + /** @description Are any rights of way created, diverted or extinguished? */ + rightOfWay: boolean; + }; + new?: { + /** @description Are new public roads provided within the site? */ + publicRoad: boolean; + /** @description Are new public rights of way provided within the site? */ + rightOfWay: boolean; + }; }; /** * @description Proposed utilities, if applicable to application.type @@ -69,7 +86,11 @@ export interface BaseProposal { * @description Assessment of flood risk, if applicable to application.type */ flood?: { + /** @description Is the site at risk of flooding? */ + atRisk?: boolean; + /** @description How will surface water be disposed of? */ surfaceWaterDisposal?: + | 'sustainableDrainageSystem' | 'drainageSystem' | 'soakaway' | 'sewer' @@ -92,6 +113,8 @@ export interface BaseProposal { description?: string; contamination?: 'known' | 'suspected' | 'vulnerable'; storage?: string[]; + /** @description Is the proposed use vulnerable to contamination? */ + vulnerableToContamination?: boolean; }; extend?: { area: Area; @@ -132,18 +155,204 @@ export interface BaseProposal { }; }; environmentalImpactDescription?: string; + started?: { + /** @description Has the project already started? */ + value: boolean; + /** @description Date that project was started */ + date?: Date; + }; + completed?: { + /** @description Has the project been completed? */ + value: boolean; + /** @description Date that project was completed */ + date?: Date; + }; + /** + * @description Is it a proposal for public service infrastructure? + */ + publicServiceInfrastructure?: boolean; + wasteStorage?: { + /** @description Does the project accommodate waste storage areas? */ + affected: boolean; + /** @description Will recyclable waste be stored and collected separately? */ + separated: 'yes' | 'no' | 'not applicable'; + }; + /** + * @title Biodiversity net gain (BNG) + */ + BNG?: { + /** @description Does the BNG condition apply? */ + applies: boolean; + exemption?: { + /** @description Why doesn't it apply? */ + justification?: string; + }; + preDevelopmentValue?: { + /** @description Pre-development biodiversity value */ + value: number; + calculated?: { + /** @description Is the date of the calculation the application date? */ + applicationDate?: boolean; + /** @description Earlier date of pre-development biodiversity calculation */ + date?: Date; + /** @description Justification for earlier date */ + earlyJustification?: string; + }; + /** @description Metric tool publication date for recent calculation */ + metricToolPublicationDate?: Date; + }; + degradation?: { + /** @description Has any degradation occured? */ + value: boolean; + /** @description Provide more details of degradation */ + details?: string; + /** @description Date immediately before degrading activity was carried out */ + preStartDate?: Date; + }; + preDegradationValue?: { + /** @description Onsite biodiversity value on the date immediately before degrading activity was carried out */ + value: number; + /** @description Metric tool publication date for pre-degradation calculation */ + metricToolPublicationDate?: Date; + }; + irreplaceableHabitat?: { + /** @description Does the site have irreplaceable habitat? */ + value: boolean; + /** @description More details about irreplaceable habitat */ + details?: string; + }; + }; + foulSewage?: { + /** @description How will foul sewage be disposed of? */ + disposal: 'sewer' | 'pit' | 'tank' | 'plant' | 'other'; + /** @description Are you proposing to connect to the existing drainage system? */ + newConnection: boolean; + }; + effluent?: { + /** @description Does the proposed use involve disposal of trade effluent? */ + disposal: boolean; + }; + residentialUnits?: { + /** @description Does the project change the number or type of residential units on the site? */ + change: boolean; + }; + nonResidentialFloorspace?: { + /** @description Does your proposal impact non-residential floorspace? */ + affected: boolean; + }; + employment?: { + /** @description Number of existing employees: full time, part time, and total full time equivalent */ + existingEmployees: EmployeeCounts & {fullTime: {number: Integer}}; + /** @description Number of proposed employees: full time, part time, and total full time equivalent */ + proposedEmployees?: EmployeeCounts; + }; + /** + * @description Hours of operation per use, or 'not applicable' + */ + hoursOfOperation?: string; + site?: { + /** @description What is the site area in hectares? */ + hectares: number; + }; + commercialProcesses?: { + /** @description Describe activities processes carried out on the site, or 'none' */ + description: string; + /** @description Is the proposal a waste management development? */ + wasteManagement: boolean; + }; + /** + * @description Does the proposed use involve the storage of hazardous chemicals? + */ + hazardousSubstanceStorage?: boolean; + /** + * @description Proposed parking spaces + */ + parking?: ProposedNationalParking; +} + +interface EmployeeCounts { + fullTime?: {number: Integer}; + partTime?: {number: Integer}; + fullTimeEquivalent?: {number: Integer}; } /** * @id #LondonProposal * @description Proposal details for project sites within the Greater London Authority (GLA) area */ -export interface LondonProposal extends Omit { +export interface LondonProposal extends Omit< + BaseProposal, + 'units' | 'parking' | 'flood' +> { schemeName?: string; /** * @description Proposed parking spaces */ parking?: ProposedLondonParking; + /** + * @description Assessment of flood risk, if applicable to application.type + */ + flood?: LondonFlood; + /** + * @description Scheme phasing + */ + phased?: boolean; + /** + * @description Electric vehicle charging points by speed + */ + EVcharging?: { + /** @description Number of active EV charging points */ + active?: EVChargingPoints; + /** @description Number of passive EV charging points */ + passive?: EVChargingPoints; + }; + heating?: { + electrical: { + /** @description Homes with electrical heating */ + numberHomes: Integer; + }; + }; + buildingDetails?: { + main?: { + /** @description Main building maximum height */ + height?: number; + /** @description Main building number of storeys */ + storeys?: Integer; + }; + outbuilding?: { + /** @description Outbuilding maximum height */ + height?: number; + /** @description Outbuilding number of storeys */ + storeys?: Integer; + }; + /** @description Building reference */ + reference?: 'main' | 'outbuilding'; + }; + footprint?: { + garden: { + /** @description Does your proposal involve the loss of garden land? */ + removed: boolean; + }; + }; + /** + * @description Sub-division of building + */ + subdivisionDetails?: string; + nonPermanentDwellings?: { + /** @description Non-permanent dwelling type */ + type?: + | 'Non-permanent dwellings' + | 'Traveller pitches/plots' + | 'Houseboat moorings'; + gained?: { + /** @description Non-permanent dwellings gained */ + number: Integer; + }; + lost?: { + /** @description Non-permanent dwellings lost */ + number: Integer; + }; + }; /** * @description Creating new buildings */ @@ -252,6 +461,27 @@ export interface LondonProposal extends Omit { }; } +interface EVChargingPoints { + /** @description Number of fast EV charging points */ + fast?: {number: Integer}; + /** @description Number of other EV charging points */ + other?: {number: Integer}; + /** @description Number of rapid EV charging points */ + rapid?: {number: Integer}; + /** @description Number of slow EV charging points */ + slow?: {number: Integer}; +} + +/** + * @description Assessment of flood risk for project sites within the Greater London Authority (GLA) area + */ +type LondonFlood = NonNullable & { + /** @description Green SuDS */ + greenSuDS?: boolean; + /** @description Surface Water Discharge Percentage Reduction */ + dischargeReduction?: number; +}; + /** * @id #NewBuildingsOrStoreys * @description Details about creating new buildings or increasing the height of existing buildings From 9ece5edaa5653fb6e4647a8e15bcfdfa3561ded5 Mon Sep 17 00:00:00 2001 From: augustlindemer <118665588+augustlindemer@users.noreply.github.com> Date: Tue, 20 Oct 2026 15:44:03 +0100 Subject: [PATCH 2/2] add rest of additions --- schemas/application.json | 317 ++++++++++++++++++ .../application/data/ApplicationData.ts | 10 + types/schemas/application/data/Proposal.ts | 85 ++++- 3 files changed, 411 insertions(+), 1 deletion(-) diff --git a/schemas/application.json b/schemas/application.json index a3c98454..d53f2930 100644 --- a/schemas/application.json +++ b/schemas/application.json @@ -2370,6 +2370,27 @@ "preApp": { "$ref": "#/definitions/PreApplication" }, + "preAppAdvice": { + "additionalProperties": false, + "properties": { + "form": { + "description": "Has prior advice been sought?", + "enum": [ + "Yes", + "No" + ], + "type": "string" + }, + "reference": { + "description": "Reference", + "type": "string" + } + }, + "required": [ + "form" + ], + "type": "object" + }, "type": { "$ref": "#/definitions/ApplicationType" } @@ -2780,6 +2801,10 @@ "description": "Is the site at risk of flooding?", "type": "boolean" }, + "increaseRiskElsewhere": { + "description": "Will the proposal increase the flood risk elsewhere?", + "type": "boolean" + }, "surfaceWaterDisposal": { "description": "How will surface water be disposed of?", "enum": [ @@ -2792,6 +2817,10 @@ "other" ], "type": "string" + }, + "within20mOfWatercourse": { + "description": "Is your project within 20 metres of a watercourse?", + "type": "boolean" } }, "type": "object" @@ -2833,6 +2862,52 @@ "$ref": "#/definitions/Materials", "description": "Proposed materials, if applicable to projectType" }, + "natureImpacts": { + "additionalProperties": false, + "properties": { + "designatedSitesAffected": { + "description": "Designated sites, important habitats or other important features affected?", + "enum": [ + "onSite", + "adjacent", + "false" + ], + "type": "string" + }, + "geologicalSitesAffected": { + "description": "Sites of geological conservation affected?", + "enum": [ + "onSite", + "adjacent", + "false" + ], + "type": "string" + }, + "importantHabitatsAffected": { + "description": "Important habitats affected, either on the project site ('onSite') or near to the project site ('adjacent')", + "enum": [ + "onSite", + "adjacent" + ], + "type": "string" + }, + "protectedSpeciesAffected": { + "description": "Protected or priority species affected", + "enum": [ + "onSite", + "adjacent", + "false" + ], + "type": "string" + } + }, + "required": [ + "protectedSpeciesAffected", + "designatedSitesAffected", + "geologicalSitesAffected" + ], + "type": "object" + }, "new": { "additionalProperties": false, "properties": { @@ -2999,6 +3074,24 @@ ], "type": "object" }, + "trees": { + "additionalProperties": false, + "properties": { + "influenceDevelopment": { + "description": "Are there trees or hedges adjacent to the site that could influence the development or might be important as part of the local landscape character?", + "type": "boolean" + }, + "onSite": { + "description": "Are there trees and hedges on the project site?", + "type": "boolean" + } + }, + "required": [ + "onSite", + "influenceDevelopment" + ], + "type": "object" + }, "units": { "$ref": "#/definitions/ResidentialUnits" }, @@ -7316,6 +7409,14 @@ ], "type": "object" }, + "companyName": { + "description": "Lead Developer name", + "type": "string" + }, + "overseasCompanyRegistrationNumber": { + "description": "Overseas company number", + "type": "string" + }, "type": { "enum": [ "ukCompany", @@ -7431,6 +7532,27 @@ "preApp": { "$ref": "#/definitions/PreApplication" }, + "preAppAdvice": { + "additionalProperties": false, + "properties": { + "form": { + "description": "Has prior advice been sought?", + "enum": [ + "Yes", + "No" + ], + "type": "string" + }, + "reference": { + "description": "Reference", + "type": "string" + } + }, + "required": [ + "form" + ], + "type": "object" + }, "type": { "$ref": "#/definitions/ApplicationType" }, @@ -8550,6 +8672,10 @@ "description": "Green SuDS", "type": "boolean" }, + "increaseRiskElsewhere": { + "description": "Will the proposal increase the flood risk elsewhere?", + "type": "boolean" + }, "surfaceWaterDisposal": { "description": "How will surface water be disposed of?", "enum": [ @@ -8562,6 +8688,10 @@ "other" ], "type": "string" + }, + "within20mOfWatercourse": { + "description": "Is your project within 20 metres of a watercourse?", + "type": "boolean" } }, "type": "object" @@ -8664,6 +8794,55 @@ "additionalProperties": false, "description": "Changes that result in the loss, gain, or change of use of natural spaces", "properties": { + "openSpace": { + "items": { + "additionalProperties": false, + "properties": { + "access": { + "description": "Open Space access type", + "enum": [ + "restricted", + "unrestricted" + ], + "type": "string" + }, + "area": { + "description": "Open Space area", + "type": "number" + }, + "description": { + "description": "Open Space description", + "type": "string" + }, + "designation": { + "$ref": "#/definitions/OpenSpaceDesignation", + "description": "Open Space designation" + }, + "development": { + "description": "Open Space change type", + "enum": [ + "loss", + "gain", + "change" + ], + "type": "string" + }, + "swap": { + "description": "Open Space land swap", + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/OpenSpaceType", + "description": "Open Space type" + } + }, + "required": [ + "development" + ], + "type": "object" + }, + "type": "array" + }, "openSpaces": { "items": { "additionalProperties": false, @@ -8722,6 +8901,47 @@ }, "type": "array" }, + "protectedSpace": { + "items": { + "additionalProperties": false, + "properties": { + "access": { + "description": "Protected Space access", + "enum": [ + "restricted", + "unrestricted" + ], + "type": "string" + }, + "area": { + "description": "Protected Space area", + "type": "number" + }, + "description": { + "description": "Protected Space description", + "type": "string" + }, + "designation": { + "$ref": "#/definitions/ProtectedSpaceDesignation", + "description": "Protected Space nature conservation designation" + }, + "development": { + "description": "Protected Space change type", + "enum": [ + "loss", + "gain", + "change" + ], + "type": "string" + } + }, + "required": [ + "development" + ], + "type": "object" + }, + "type": "array" + }, "protectedSpaces": { "items": { "additionalProperties": false, @@ -8774,6 +8994,52 @@ }, "type": "object" }, + "natureImpacts": { + "additionalProperties": false, + "properties": { + "designatedSitesAffected": { + "description": "Designated sites, important habitats or other important features affected?", + "enum": [ + "onSite", + "adjacent", + "false" + ], + "type": "string" + }, + "geologicalSitesAffected": { + "description": "Sites of geological conservation affected?", + "enum": [ + "onSite", + "adjacent", + "false" + ], + "type": "string" + }, + "importantHabitatsAffected": { + "description": "Important habitats affected, either on the project site ('onSite') or near to the project site ('adjacent')", + "enum": [ + "onSite", + "adjacent" + ], + "type": "string" + }, + "protectedSpeciesAffected": { + "description": "Protected or priority species affected", + "enum": [ + "onSite", + "adjacent", + "false" + ], + "type": "string" + } + }, + "required": [ + "protectedSpeciesAffected", + "designatedSitesAffected", + "geologicalSitesAffected" + ], + "type": "object" + }, "new": { "additionalProperties": false, "properties": { @@ -8889,6 +9155,14 @@ "description": "Scheme phasing", "type": "boolean" }, + "plannedCompletionDate": { + "$ref": "#/definitions/Date", + "description": "Intended completion date" + }, + "plannedStartDate": { + "$ref": "#/definitions/Date", + "description": "Intended commencement date" + }, "projectType": { "items": { "$ref": "#/definitions/ProjectType" @@ -8928,6 +9202,19 @@ ], "type": "object" }, + "siteArea": { + "additionalProperties": false, + "properties": { + "hectares": { + "description": "Site area", + "type": "number" + } + }, + "required": [ + "hectares" + ], + "type": "object" + }, "started": { "additionalProperties": false, "properties": { @@ -9000,6 +9287,24 @@ "description": "Sub-division of building", "type": "string" }, + "trees": { + "additionalProperties": false, + "properties": { + "influenceDevelopment": { + "description": "Are there trees or hedges adjacent to the site that could influence the development or might be important as part of the local landscape character?", + "type": "boolean" + }, + "onSite": { + "description": "Are there trees and hedges on the project site?", + "type": "boolean" + } + }, + "required": [ + "onSite", + "influenceDevelopment" + ], + "type": "object" + }, "units": { "additionalProperties": false, "properties": { @@ -9361,6 +9666,18 @@ "count" ], "type": "object" + }, + "greyReuse": { + "description": "Grey water reuse", + "type": "boolean" + }, + "rainHarvesting": { + "description": "Rain water harvesting", + "type": "boolean" + }, + "usage": { + "description": "Internal residential water usage", + "type": "number" } }, "required": [ diff --git a/types/schemas/application/data/ApplicationData.ts b/types/schemas/application/data/ApplicationData.ts index e480be34..15212d0d 100644 --- a/types/schemas/application/data/ApplicationData.ts +++ b/types/schemas/application/data/ApplicationData.ts @@ -20,6 +20,12 @@ export interface BaseApplicationData { preApp?: PreApplication; planningApp?: PlanningApplication; CIL?: CommunityInfrastructureLevy; + preAppAdvice?: { + /** @description Has prior advice been sought? */ + form: 'Yes' | 'No'; + /** @description Reference */ + reference?: string; + }; } /** @@ -57,4 +63,8 @@ export interface LeadDeveloper { name: string; registrationNumber: string; }; + /** @description Lead Developer name */ + companyName?: string; + /** @description Overseas company number */ + overseasCompanyRegistrationNumber?: string; } diff --git a/types/schemas/application/data/Proposal.ts b/types/schemas/application/data/Proposal.ts index 57fc0132..465856be 100644 --- a/types/schemas/application/data/Proposal.ts +++ b/types/schemas/application/data/Proposal.ts @@ -88,6 +88,10 @@ export interface BaseProposal { flood?: { /** @description Is the site at risk of flooding? */ atRisk?: boolean; + /** @description Is your project within 20 metres of a watercourse? */ + within20mOfWatercourse?: boolean; + /** @description Will the proposal increase the flood risk elsewhere? */ + increaseRiskElsewhere?: boolean; /** @description How will surface water be disposed of? */ surfaceWaterDisposal?: | 'sustainableDrainageSystem' @@ -228,6 +232,22 @@ export interface BaseProposal { /** @description Are you proposing to connect to the existing drainage system? */ newConnection: boolean; }; + natureImpacts?: { + /** @description Protected or priority species affected */ + protectedSpeciesAffected: NatureImpact; + /** @description Designated sites, important habitats or other important features affected? */ + designatedSitesAffected: NatureImpact; + /** @description Important habitats affected, either on the project site ('onSite') or near to the project site ('adjacent') */ + importantHabitatsAffected?: 'onSite' | 'adjacent'; + /** @description Sites of geological conservation affected? */ + geologicalSitesAffected: NatureImpact; + }; + trees?: { + /** @description Are there trees and hedges on the project site? */ + onSite: boolean; + /** @description Are there trees or hedges adjacent to the site that could influence the development or might be important as part of the local landscape character? */ + influenceDevelopment: boolean; + }; effluent?: { /** @description Does the proposed use involve disposal of trade effluent? */ disposal: boolean; @@ -270,6 +290,8 @@ export interface BaseProposal { parking?: ProposedNationalParking; } +type NatureImpact = 'onSite' | 'adjacent' | 'false'; + interface EmployeeCounts { fullTime?: {number: Integer}; partTime?: {number: Integer}; @@ -282,17 +304,29 @@ interface EmployeeCounts { */ export interface LondonProposal extends Omit< BaseProposal, - 'units' | 'parking' | 'flood' + 'units' | 'parking' | 'utilities' | 'flood' > { schemeName?: string; /** * @description Proposed parking spaces */ parking?: ProposedLondonParking; + /** + * @description Proposed utilities, if applicable to application.type + */ + utilities?: LondonUtilities; /** * @description Assessment of flood risk, if applicable to application.type */ flood?: LondonFlood; + /** + * @description Intended commencement date + */ + plannedStartDate?: Date; + /** + * @description Intended completion date + */ + plannedCompletionDate?: Date; /** * @description Scheme phasing */ @@ -353,6 +387,10 @@ export interface LondonProposal extends Omit< number: Integer; }; }; + siteArea?: { + /** @description Site area */ + hectares: number; + }; /** * @description Creating new buildings */ @@ -397,6 +435,34 @@ export interface LondonProposal extends Omit< access: 'restricted' | 'unrestricted'; area: {hectares: number}; }[]; + openSpace?: { + /** @description Open Space access type */ + access?: 'restricted' | 'unrestricted'; + /** @description Open Space area */ + area?: number; + /** @description Open Space change type */ + development: 'loss' | 'gain' | 'change'; + /** @description Open Space description */ + description?: string; + /** @description Open Space designation */ + designation?: OpenSpaceDesignation; + /** @description Open Space land swap */ + swap?: boolean; + /** @description Open Space type */ + type?: OpenSpaceType; + }[]; + protectedSpace?: { + /** @description Protected Space access */ + access?: 'restricted' | 'unrestricted'; + /** @description Protected Space area */ + area?: number; + /** @description Protected Space change type */ + development: 'loss' | 'gain' | 'change'; + /** @description Protected Space description */ + description?: string; + /** @description Protected Space nature conservation designation */ + designation?: ProtectedSpaceDesignation; + }[]; }; /** * @description Water management @@ -472,6 +538,23 @@ interface EVChargingPoints { slow?: {number: Integer}; } +type BaseUtilities = NonNullable; + +/** + * @description Proposed utilities for project sites within the Greater London Authority (GLA) area + */ +type LondonUtilities = Omit & { + /** @description Count of new water connections */ + water?: NonNullable & { + /** @description Grey water reuse */ + greyReuse?: boolean; + /** @description Internal residential water usage */ + usage?: number; + /** @description Rain water harvesting */ + rainHarvesting?: boolean; + }; +}; + /** * @description Assessment of flood risk for project sites within the Greater London Authority (GLA) area */