From 15e822469aa88514589e9aa023857c9cb240072f Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Tue, 27 Feb 2024 15:38:23 +0000 Subject: [PATCH] fix: correct prefixes for `PlanningDesignations` (#125) --- examples/data/ldcE.ts | 2 +- examples/data/ldcP.ts | 2 +- examples/data/planningPermission.ts | 2 +- examples/data/priorApproval.ts | 2 +- schema/schema.json | 142 ++++++++++++++-------------- types/enums/PlanningConstraints.ts | 4 +- 6 files changed, 77 insertions(+), 77 deletions(-) diff --git a/examples/data/ldcE.ts b/examples/data/ldcE.ts index 1f3bdc56..742161a3 100644 --- a/examples/data/ldcE.ts +++ b/examples/data/ldcE.ts @@ -220,7 +220,7 @@ export const validLDCE: Schema = { intersects: false, }, { - value: 'designated.SPA', + value: 'nature.SPA', description: 'Special Protection Area (SPA)', intersects: false, }, diff --git a/examples/data/ldcP.ts b/examples/data/ldcP.ts index d44c69f8..b7aee0c0 100644 --- a/examples/data/ldcP.ts +++ b/examples/data/ldcP.ts @@ -152,7 +152,7 @@ export const validLDCP: Schema = { intersects: false, }, { - value: 'designated.SPA', + value: 'nature.SPA', description: 'Special Protection Area (SPA)', intersects: false, }, diff --git a/examples/data/planningPermission.ts b/examples/data/planningPermission.ts index c4b7f922..9fe492a2 100644 --- a/examples/data/planningPermission.ts +++ b/examples/data/planningPermission.ts @@ -167,7 +167,7 @@ export const validPlanningPermission: Schema = { intersects: false, }, { - value: 'designated.SPA', + value: 'nature.SPA', description: 'Special Protection Area (SPA)', intersects: false, }, diff --git a/examples/data/priorApproval.ts b/examples/data/priorApproval.ts index dc27c4db..37cc5630 100644 --- a/examples/data/priorApproval.ts +++ b/examples/data/priorApproval.ts @@ -203,7 +203,7 @@ export const validPriorApproval: Schema = { intersects: false, }, { - value: 'designated.SPA', + value: 'nature.SPA', description: 'Special Protection Area (SPA)', intersects: false, }, diff --git a/schema/schema.json b/schema/schema.json index e866a5e9..7e9546e5 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -4713,29 +4713,6 @@ ], "type": "object" }, - { - "additionalProperties": false, - "properties": { - "description": { - "const": "Green Belt", - "type": "string" - }, - "intersects": { - "const": false, - "type": "boolean" - }, - "value": { - "const": "designated.greenBelt", - "type": "string" - } - }, - "required": [ - "description", - "intersects", - "value" - ], - "type": "object" - }, { "additionalProperties": false, "properties": { @@ -4786,7 +4763,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Special Protection Area (SPA)", + "const": "UNESCO World Heritage Site or buffer zone", "type": "string" }, "intersects": { @@ -4794,7 +4771,7 @@ "type": "boolean" }, "value": { - "const": "designated.SPA", + "const": "designated.WHS", "type": "string" } }, @@ -4809,7 +4786,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "UNESCO World Heritage Site or buffer zone", + "const": "Flood Risk Zone", "type": "string" }, "intersects": { @@ -4817,7 +4794,7 @@ "type": "boolean" }, "value": { - "const": "designated.WHS", + "const": "flood", "type": "string" } }, @@ -4832,7 +4809,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Flood Risk Zone", + "const": "Flood Risk Zone 1 - Low risk", "type": "string" }, "intersects": { @@ -4840,7 +4817,7 @@ "type": "boolean" }, "value": { - "const": "flood", + "const": "flood.zone.1", "type": "string" } }, @@ -4855,7 +4832,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Flood Risk Zone 1 - Low risk", + "const": "Flood Risk Zone 2 - Medium risk", "type": "string" }, "intersects": { @@ -4863,7 +4840,7 @@ "type": "boolean" }, "value": { - "const": "flood.zone.1", + "const": "flood.zone.2", "type": "string" } }, @@ -4878,7 +4855,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Flood Risk Zone 2 - Medium risk", + "const": "Flood Risk Zone 3 - High risk", "type": "string" }, "intersects": { @@ -4886,7 +4863,7 @@ "type": "boolean" }, "value": { - "const": "flood.zone.2", + "const": "flood.zone.3", "type": "string" } }, @@ -4901,7 +4878,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Flood Risk Zone 3 - High risk", + "const": "Green Belt", "type": "string" }, "intersects": { @@ -4909,7 +4886,7 @@ "type": "boolean" }, "value": { - "const": "flood.zone.3", + "const": "greenBelt", "type": "string" } }, @@ -5127,6 +5104,29 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Special Protection Area (SPA)", + "type": "string" + }, + "intersects": { + "const": false, + "type": "boolean" + }, + "value": { + "const": "nature.SPA", + "type": "string" + } + }, + "required": [ + "description", + "intersects", + "value" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -5744,7 +5744,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Green Belt", + "const": "National Park", "type": "string" }, "entities": { @@ -5814,7 +5814,7 @@ "type": "boolean" }, "value": { - "const": "designated.greenBelt", + "const": "designated.nationalPark", "type": "string" } }, @@ -5830,7 +5830,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "National Park", + "const": "National Park - Broads", "type": "string" }, "entities": { @@ -5900,7 +5900,7 @@ "type": "boolean" }, "value": { - "const": "designated.nationalPark", + "const": "designated.nationalPark.broads", "type": "string" } }, @@ -5916,7 +5916,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "National Park - Broads", + "const": "UNESCO World Heritage Site or buffer zone", "type": "string" }, "entities": { @@ -5986,7 +5986,7 @@ "type": "boolean" }, "value": { - "const": "designated.nationalPark.broads", + "const": "designated.WHS", "type": "string" } }, @@ -6002,7 +6002,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Special Protection Area (SPA)", + "const": "Flood Risk Zone", "type": "string" }, "entities": { @@ -6072,7 +6072,7 @@ "type": "boolean" }, "value": { - "const": "designated.SPA", + "const": "flood", "type": "string" } }, @@ -6088,7 +6088,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "UNESCO World Heritage Site or buffer zone", + "const": "Flood Risk Zone 1 - Low risk", "type": "string" }, "entities": { @@ -6158,7 +6158,7 @@ "type": "boolean" }, "value": { - "const": "designated.WHS", + "const": "flood.zone.1", "type": "string" } }, @@ -6174,7 +6174,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Flood Risk Zone", + "const": "Flood Risk Zone 2 - Medium risk", "type": "string" }, "entities": { @@ -6244,7 +6244,7 @@ "type": "boolean" }, "value": { - "const": "flood", + "const": "flood.zone.2", "type": "string" } }, @@ -6260,7 +6260,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Flood Risk Zone 1 - Low risk", + "const": "Flood Risk Zone 3 - High risk", "type": "string" }, "entities": { @@ -6330,7 +6330,7 @@ "type": "boolean" }, "value": { - "const": "flood.zone.1", + "const": "flood.zone.3", "type": "string" } }, @@ -6346,7 +6346,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Flood Risk Zone 2 - Medium risk", + "const": "Green Belt", "type": "string" }, "entities": { @@ -6416,7 +6416,7 @@ "type": "boolean" }, "value": { - "const": "flood.zone.2", + "const": "greenBelt", "type": "string" } }, @@ -6432,7 +6432,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Flood Risk Zone 3 - High risk", + "const": "Listed Building", "type": "string" }, "entities": { @@ -6502,7 +6502,7 @@ "type": "boolean" }, "value": { - "const": "flood.zone.3", + "const": "listed", "type": "string" } }, @@ -6518,7 +6518,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Listed Building", + "const": "Listed Building - Grade I", "type": "string" }, "entities": { @@ -6588,7 +6588,7 @@ "type": "boolean" }, "value": { - "const": "listed", + "const": "listed.grade.I", "type": "string" } }, @@ -6604,7 +6604,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Listed Building - Grade I", + "const": "Listed Building - Grade II", "type": "string" }, "entities": { @@ -6674,7 +6674,7 @@ "type": "boolean" }, "value": { - "const": "listed.grade.I", + "const": "listed.grade.II", "type": "string" } }, @@ -6690,7 +6690,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Listed Building - Grade II", + "const": "Listed Building - Grade II*", "type": "string" }, "entities": { @@ -6760,7 +6760,7 @@ "type": "boolean" }, "value": { - "const": "listed.grade.II", + "const": "listed.grade.II*", "type": "string" } }, @@ -6776,7 +6776,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Listed Building - Grade II*", + "const": "Locally Listed Building", "type": "string" }, "entities": { @@ -6846,7 +6846,7 @@ "type": "boolean" }, "value": { - "const": "listed.grade.II*", + "const": "locallyListed", "type": "string" } }, @@ -6862,7 +6862,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Locally Listed Building", + "const": "Site of a Scheduled Monument", "type": "string" }, "entities": { @@ -6932,7 +6932,7 @@ "type": "boolean" }, "value": { - "const": "locallyListed", + "const": "monument", "type": "string" } }, @@ -6948,7 +6948,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Site of a Scheduled Monument", + "const": "Ancient Semi-Natural Woodland (ASNW)", "type": "string" }, "entities": { @@ -7018,7 +7018,7 @@ "type": "boolean" }, "value": { - "const": "monument", + "const": "nature.ASNW", "type": "string" } }, @@ -7034,7 +7034,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Ancient Semi-Natural Woodland (ASNW)", + "const": "Ramsar site", "type": "string" }, "entities": { @@ -7104,7 +7104,7 @@ "type": "boolean" }, "value": { - "const": "nature.ASNW", + "const": "nature.ramsarSite", "type": "string" } }, @@ -7120,7 +7120,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Ramsar site", + "const": "Special Area of Conservation (SAC)", "type": "string" }, "entities": { @@ -7190,7 +7190,7 @@ "type": "boolean" }, "value": { - "const": "nature.ramsarSite", + "const": "nature.SAC", "type": "string" } }, @@ -7206,7 +7206,7 @@ "additionalProperties": false, "properties": { "description": { - "const": "Special Area of Conservation (SAC)", + "const": "Special Protection Area (SPA)", "type": "string" }, "entities": { @@ -7276,7 +7276,7 @@ "type": "boolean" }, "value": { - "const": "nature.SAC", + "const": "nature.SPA", "type": "string" } }, diff --git a/types/enums/PlanningConstraints.ts b/types/enums/PlanningConstraints.ts index b8dd4ae7..10ac5fe4 100644 --- a/types/enums/PlanningConstraints.ts +++ b/types/enums/PlanningConstraints.ts @@ -8,15 +8,14 @@ export const PlanningDesignations = { designated: 'Designated land', 'designated.AONB': 'Area of Outstanding Natural Beauty (AONB)', 'designated.conservationArea': 'Conservation Area', - 'designated.greenBelt': 'Green Belt', 'designated.nationalPark': 'National Park', 'designated.nationalPark.broads': 'National Park - Broads', - 'designated.SPA': 'Special Protection Area (SPA)', 'designated.WHS': 'UNESCO World Heritage Site or buffer zone', flood: 'Flood Risk Zone', 'flood.zone.1': 'Flood Risk Zone 1 - Low risk', 'flood.zone.2': 'Flood Risk Zone 2 - Medium risk', 'flood.zone.3': 'Flood Risk Zone 3 - High risk', + greenBelt: 'Green Belt', listed: 'Listed Building', 'listed.grade.I': 'Listed Building - Grade I', 'listed.grade.II': 'Listed Building - Grade II', @@ -26,6 +25,7 @@ export const PlanningDesignations = { 'nature.ASNW': 'Ancient Semi-Natural Woodland (ASNW)', 'nature.ramsarSite': 'Ramsar site', 'nature.SAC': 'Special Area of Conservation (SAC)', + 'nature.SPA': 'Special Protection Area (SPA)', 'nature.SSSI': 'Site of Special Scientific Interest (SSSI)', registeredPark: 'Historic Park or Garden', 'road.classified': 'Classified Road',