From 1c5e73a3c7346d69b138ef788150a5075cea22df Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Wed, 14 Feb 2024 15:38:42 +0100 Subject: [PATCH 1/2] start adding new variables from planning-permission service development --- types/enums/FileTypes.ts | 1 + types/schema/data/Proposal.ts | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/types/enums/FileTypes.ts b/types/enums/FileTypes.ts index d7cc1935..c823d10d 100644 --- a/types/enums/FileTypes.ts +++ b/types/enums/FileTypes.ts @@ -82,6 +82,7 @@ export const FileTypes = { treeCanopyCalculator: 'Tree canopy calculator', treeConditionReport: 'Tree condition report', treesReport: 'Trees report', + treeSurvey: 'Tree survey', 'unitPlan.existing': 'Unit plan - existing', 'unitPlan.proposed': 'Unit plan - proposed', 'usePlan.existing': 'Use plan - existing', diff --git a/types/schema/data/Proposal.ts b/types/schema/data/Proposal.ts index 8e7cad24..88fbcbba 100644 --- a/types/schema/data/Proposal.ts +++ b/types/schema/data/Proposal.ts @@ -48,6 +48,34 @@ export interface BaseDetails { dwellings?: number; }; }; + demolish?: { + reason?: string; + remediationPlan?: string; + /** + * @description Is a dangerous structure being demolished? + */ + dangerousStructure?: boolean; + /** + * @description Are materials containing asbestos affected by the demolition? + */ + asbestosAffected?: boolean; + }; + access?: { + type?: [ + | 'vehicle' + | 'parking' + | 'newRoad' + | 'rightsOfWay.newPublic' + | 'rightsOfWay.changeOfUse', + ]; + description?: string; + }; + trees?: { + /** + * @description Will trees or hedges be cut down or pruned? + */ + affected?: boolean; + }; } /** From d45e4ca83216ff3e594ede4fc4868abdc1eff3ba Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Wed, 14 Feb 2024 15:52:18 +0100 Subject: [PATCH 2/2] more --- schema/schema.json | 312 ++++++++++++++++++++++++++++++++++ types/schema/data/Proposal.ts | 38 ++++- 2 files changed, 347 insertions(+), 3 deletions(-) diff --git a/schema/schema.json b/schema/schema.json index f882f870..26266f5b 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -1563,6 +1563,72 @@ "BaseDetails": { "additionalProperties": false, "properties": { + "access": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "public": { + "description": "Is the property accessible from public land?", + "type": "boolean" + }, + "type": { + "items": { + "enum": [ + "vehicle", + "parking", + "newRoad", + "rightsOfWay.newPublic", + "rightsOfWay.changeOfUse" + ], + "type": "string" + }, + "maxItems": 1, + "minItems": 1, + "type": "array" + } + }, + "required": [ + "type", + "description" + ], + "type": "object" + }, + "demolish": { + "additionalProperties": false, + "properties": { + "asbestosAffected": { + "description": "Are materials containing asbestos affected by the demolition?", + "type": "boolean" + }, + "dangerousStructure": { + "description": "Is a dangerous structure being demolished?", + "type": "boolean" + }, + "reason": { + "type": "string" + }, + "remediationPlan": { + "type": "string" + } + }, + "type": "object" + }, + "ecology": { + "additionalProperties": false, + "properties": { + "livestock": { + "description": "Is the development housing livestock?", + "type": "boolean" + }, + "otherSpecies": { + "description": "Are known species inhabiting the site?", + "type": "boolean" + } + }, + "type": "object" + }, "extend": { "additionalProperties": false, "properties": { @@ -1575,6 +1641,40 @@ ], "type": "object" }, + "flood": { + "additionalProperties": false, + "properties": { + "surfaceWaterDisposal": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "type": { + "items": { + "enum": [ + "drainageSystem", + "soakaway", + "sewer", + "watercourse", + "pondOrLake" + ], + "type": "string" + }, + "maxItems": 1, + "minItems": 1, + "type": "array" + } + }, + "required": [ + "type", + "description" + ], + "type": "object" + } + }, + "type": "object" + }, "new": { "additionalProperties": false, "properties": { @@ -1601,6 +1701,53 @@ "area" ], "type": "object" + }, + "trees": { + "additionalProperties": false, + "properties": { + "affected": { + "description": "Are trees or hedges being cut down or pruned?", + "type": "boolean" + } + }, + "type": "object" + }, + "utilities": { + "additionalProperties": false, + "properties": { + "buildOver": { + "description": "Is the development building over existing utilities?", + "type": "boolean" + }, + "foulSewageDisposal": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "type": { + "items": { + "enum": [ + "sewer", + "tank", + "plant", + "pit" + ], + "type": "string" + }, + "maxItems": 1, + "minItems": 1, + "type": "array" + } + }, + "required": [ + "type", + "description" + ], + "type": "object" + } + }, + "type": "object" } }, "type": "object" @@ -3094,6 +3241,24 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Tree survey", + "type": "string" + }, + "value": { + "const": "treeSurvey", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -3384,6 +3549,72 @@ "additionalProperties": false, "description": "Proposal details for project sites within the Greater London Authority (GLA) area", "properties": { + "access": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "public": { + "description": "Is the property accessible from public land?", + "type": "boolean" + }, + "type": { + "items": { + "enum": [ + "vehicle", + "parking", + "newRoad", + "rightsOfWay.newPublic", + "rightsOfWay.changeOfUse" + ], + "type": "string" + }, + "maxItems": 1, + "minItems": 1, + "type": "array" + } + }, + "required": [ + "type", + "description" + ], + "type": "object" + }, + "demolish": { + "additionalProperties": false, + "properties": { + "asbestosAffected": { + "description": "Are materials containing asbestos affected by the demolition?", + "type": "boolean" + }, + "dangerousStructure": { + "description": "Is a dangerous structure being demolished?", + "type": "boolean" + }, + "reason": { + "type": "string" + }, + "remediationPlan": { + "type": "string" + } + }, + "type": "object" + }, + "ecology": { + "additionalProperties": false, + "properties": { + "livestock": { + "description": "Is the development housing livestock?", + "type": "boolean" + }, + "otherSpecies": { + "description": "Are known species inhabiting the site?", + "type": "boolean" + } + }, + "type": "object" + }, "extend": { "additionalProperties": false, "properties": { @@ -3396,6 +3627,40 @@ ], "type": "object" }, + "flood": { + "additionalProperties": false, + "properties": { + "surfaceWaterDisposal": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "type": { + "items": { + "enum": [ + "drainageSystem", + "soakaway", + "sewer", + "watercourse", + "pondOrLake" + ], + "type": "string" + }, + "maxItems": 1, + "minItems": 1, + "type": "array" + } + }, + "required": [ + "type", + "description" + ], + "type": "object" + } + }, + "type": "object" + }, "new": { "additionalProperties": false, "properties": { @@ -3423,6 +3688,53 @@ ], "type": "object" }, + "trees": { + "additionalProperties": false, + "properties": { + "affected": { + "description": "Are trees or hedges being cut down or pruned?", + "type": "boolean" + } + }, + "type": "object" + }, + "utilities": { + "additionalProperties": false, + "properties": { + "buildOver": { + "description": "Is the development building over existing utilities?", + "type": "boolean" + }, + "foulSewageDisposal": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "type": { + "items": { + "enum": [ + "sewer", + "tank", + "plant", + "pit" + ], + "type": "string" + }, + "maxItems": 1, + "minItems": 1, + "type": "array" + } + }, + "required": [ + "type", + "description" + ], + "type": "object" + } + }, + "type": "object" + }, "vehicleParking": { "additionalProperties": false, "properties": { diff --git a/types/schema/data/Proposal.ts b/types/schema/data/Proposal.ts index 88fbcbba..f449240f 100644 --- a/types/schema/data/Proposal.ts +++ b/types/schema/data/Proposal.ts @@ -61,21 +61,53 @@ export interface BaseDetails { asbestosAffected?: boolean; }; access?: { - type?: [ + type: [ | 'vehicle' | 'parking' | 'newRoad' | 'rightsOfWay.newPublic' | 'rightsOfWay.changeOfUse', ]; - description?: string; + description: string; + /** + * @description Is the property accessible from public land? + */ + public?: boolean; }; trees?: { /** - * @description Will trees or hedges be cut down or pruned? + * @description Are trees or hedges being cut down or pruned? */ affected?: boolean; }; + utilities?: { + /** + * @description Is the development building over existing utilities? + */ + buildOver?: boolean; + foulSewageDisposal?: { + type: ['sewer' | 'tank' | 'plant' | 'pit']; + description: string; + }; + }; + flood?: { + surfaceWaterDisposal?: { + type: [ + 'drainageSystem' | 'soakaway' | 'sewer' | 'watercourse' | 'pondOrLake', + ]; + description: string; + }; + }; + ecology?: { + /** + * @description Is the development housing livestock? + */ + livestock?: boolean; + /** + * @description Are known species inhabiting the site? + */ + otherSpecies?: boolean; + }; } /**