From a743e2b069a9c74bdb7caa9eff9eb6dbd9e2ef87 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Wed, 10 Jul 2024 14:17:46 +0200 Subject: [PATCH] fix: sync latest `ProjectTypes` and `FileTypes` from Planx services (#198) --- schema/schema.json | 150 +++++++++++++++++++++++++++++++++++- types/enums/FileTypes.ts | 6 ++ types/enums/ProjectTypes.ts | 6 +- 3 files changed, 157 insertions(+), 5 deletions(-) diff --git a/schema/schema.json b/schema/schema.json index 09a775fe..c7ac2220 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -4022,6 +4022,24 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Method statement", + "type": "string" + }, + "value": { + "const": "methodStatement", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -4238,6 +4256,24 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Recyclable waste storage details", + "type": "string" + }, + "value": { + "const": "recycleWasteStorageDetails", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -4256,6 +4292,24 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Residential units details", + "type": "string" + }, + "value": { + "const": "residentialUnitsDetails", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -4526,6 +4580,24 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Technical specification", + "type": "string" + }, + "value": { + "const": "technicalSpecification", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -4706,6 +4778,24 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Tree plan", + "type": "string" + }, + "value": { + "const": "treePlan", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -4904,6 +4994,24 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Waste storage details", + "type": "string" + }, + "value": { + "const": "wasteStorageDetails", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -10393,7 +10501,7 @@ "type": "string" }, "value": { - "const": "alter.deck", + "const": "alter.decks", "type": "string" } }, @@ -10727,6 +10835,24 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Install machinery", + "type": "string" + }, + "value": { + "const": "alter.equipment.machinery", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -10799,6 +10925,24 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Install ventilation", + "type": "string" + }, + "value": { + "const": "alter.equipment.ventilation", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -14493,11 +14637,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "New agricultural buildings - glass house", + "const": "New agricultural buildings - glasshouse", "type": "string" }, "value": { - "const": "new.agriculture.glassHouse", + "const": "new.agriculture.glasshouse", "type": "string" } }, diff --git a/types/enums/FileTypes.ts b/types/enums/FileTypes.ts index fb29bfe2..6e6f43d4 100644 --- a/types/enums/FileTypes.ts +++ b/types/enums/FileTypes.ts @@ -53,6 +53,7 @@ export const FileTypes = { litterVerminAndBirdControlDetails: 'Details of litter, vermin and bird control', locationPlan: 'Location plan', + methodStatement: 'Method statement', mineralsAndWasteAssessment: 'Minerals and waste assessment', necessaryInformation: 'Information the authority considers necessary for the application', @@ -66,8 +67,10 @@ export const FileTypes = { 'photographs.existing': 'Photographs - existing', 'photographs.proposed': 'Photographs - proposed', planningStatement: 'Planning statement', + recycleWasteStorageDetails: 'Recyclable waste storage details', relevantInformation: 'Information the applicant considers relevant to the application', + residentialUnitsDetails: 'Residential units details', 'roofPlan.existing': 'Roof plan - existing', 'roofPlan.proposed': 'Roof plan - proposed', 'sections.existing': 'Sections - existing', @@ -84,6 +87,7 @@ export const FileTypes = { sunlightAndDaylightReport: 'Sunlight and daylight report', sustainabilityStatement: 'Sustainability statement', technicalEvidence: 'Technical evidence', + technicalSpecification: 'Technical specification', tenancyAgreement: 'Tenancy agreement', tenancyInvoice: 'Tenancy invoice', townCentreImpactAssessment: 'Town centre uses - Impact assessment', @@ -94,6 +98,7 @@ export const FileTypes = { treeAndHedgeRemovedOrPruned: 'Removed or pruned trees and hedges', treeCanopyCalculator: 'Tree canopy calculator', treeConditionReport: 'Tree condition report', + treePlan: 'Tree plan', treesReport: 'Trees report', 'unitPlan.existing': 'Unit plan - existing', 'unitPlan.proposed': 'Unit plan - proposed', @@ -105,6 +110,7 @@ export const FileTypes = { viabilityAppraisal: 'Viability Appraisal', visualisations: 'Visualisations', wasteAndRecyclingStrategy: 'Waste and recycling strategy', + wasteStorageDetails: 'Waste storage details', waterEnvironmentAssessment: 'Water environment assessment', }; diff --git a/types/enums/ProjectTypes.ts b/types/enums/ProjectTypes.ts index 5b4d5c02..6373e463 100644 --- a/types/enums/ProjectTypes.ts +++ b/types/enums/ProjectTypes.ts @@ -47,7 +47,7 @@ export const ProjectTypes = { 'alter.chimneys': 'Change chimneys', 'alter.chimneys.add': 'Add a chimney', 'alter.chimneys.replace': 'Replace a chimney', - 'alter.deck': 'Add a verandah or deck', + 'alter.decks': 'Add a verandah or deck', 'alter.decksHigh': 'Add a high verandah or deck', 'alter.drains': 'Work on drains', 'alter.equipment': 'Install equipment', @@ -66,10 +66,12 @@ export const ProjectTypes = { 'alter.equipment.heatPump.water': 'Install a water heat pump', 'alter.equipment.industrial': 'Install industrial equipment', 'alter.equipment.lighting': 'Install outdoor lights', + 'alter.equipment.machinery': 'Install machinery', 'alter.equipment.solar': 'Install solar panels', 'alter.equipment.solar.pv': 'Install solar photovoltaics (PV)', 'alter.equipment.solar.thermal': 'Install solar thermal equipment', 'alter.equipment.tank': 'Install an outdoor tank (for example a water tank)', + 'alter.equipment.ventilation': 'Install ventilation', 'alter.equipment.wifi': 'Install internet equipment', 'alter.equipment.wind': 'Install a wind turbine', 'alter.facades': 'Change the material or colour of the external walls', @@ -313,7 +315,7 @@ export const ProjectTypes = { 'internal.windows.openings': 'Alter internal window openings', new: 'Add a new separate building or self-contained units', 'new.agriculture': 'New agricultural buildings', - 'new.agriculture.glassHouse': 'New agricultural buildings - glass house', + 'new.agriculture.glasshouse': 'New agricultural buildings - glasshouse', 'new.agriculture.mining': 'New agricultural buildings - mining', 'new.agriculture.pigs': 'New agricultural buildings - pigs', 'new agriculture.poultry': 'New agricultural buildings - poultry',