diff --git a/schema/schema.json b/schema/schema.json index f910edb4..6c123aee 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -4056,6 +4056,75 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Listed Building - Grade I", + "type": "string" + }, + "intersects": { + "const": false, + "type": "boolean" + }, + "value": { + "const": "listed.grade.I", + "type": "string" + } + }, + "required": [ + "description", + "intersects", + "value" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Listed Building - Grade II", + "type": "string" + }, + "intersects": { + "const": false, + "type": "boolean" + }, + "value": { + "const": "listed.grade.II", + "type": "string" + } + }, + "required": [ + "description", + "intersects", + "value" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Listed Building - Grade II*", + "type": "string" + }, + "intersects": { + "const": false, + "type": "boolean" + }, + "value": { + "const": "listed.grade.II*", + "type": "string" + } + }, + "required": [ + "description", + "intersects", + "value" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -5132,6 +5201,168 @@ ], "type": "object" }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Listed Building - Grade I", + "type": "string" + }, + "entities": { + "anyOf": [ + { + "items": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source": { + "$ref": "#/definitions/URL" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "type": "array" + }, + { + "maxItems": 0, + "minItems": 0, + "type": "array" + } + ] + }, + "intersects": { + "const": true, + "type": "boolean" + }, + "value": { + "const": "listed.grade.I", + "type": "string" + } + }, + "required": [ + "description", + "entities", + "intersects", + "value" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Listed Building - Grade II", + "type": "string" + }, + "entities": { + "anyOf": [ + { + "items": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source": { + "$ref": "#/definitions/URL" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "type": "array" + }, + { + "maxItems": 0, + "minItems": 0, + "type": "array" + } + ] + }, + "intersects": { + "const": true, + "type": "boolean" + }, + "value": { + "const": "listed.grade.II", + "type": "string" + } + }, + "required": [ + "description", + "entities", + "intersects", + "value" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Listed Building - Grade II*", + "type": "string" + }, + "entities": { + "anyOf": [ + { + "items": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source": { + "$ref": "#/definitions/URL" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "type": "array" + }, + { + "maxItems": 0, + "minItems": 0, + "type": "array" + } + ] + }, + "intersects": { + "const": true, + "type": "boolean" + }, + "value": { + "const": "listed.grade.II*", + "type": "string" + } + }, + "required": [ + "description", + "entities", + "intersects", + "value" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { diff --git a/types/enums/PlanningConstraints.ts b/types/enums/PlanningConstraints.ts index 82166d7b..b8dd4ae7 100644 --- a/types/enums/PlanningConstraints.ts +++ b/types/enums/PlanningConstraints.ts @@ -18,6 +18,9 @@ export const PlanningDesignations = { 'flood.zone.2': 'Flood Risk Zone 2 - Medium risk', 'flood.zone.3': 'Flood Risk Zone 3 - High risk', listed: 'Listed Building', + 'listed.grade.I': 'Listed Building - Grade I', + 'listed.grade.II': 'Listed Building - Grade II', + 'listed.grade.II*': 'Listed Building - Grade II*', locallyListed: 'Locally Listed Building', monument: 'Site of a Scheduled Monument', 'nature.ASNW': 'Ancient Semi-Natural Woodland (ASNW)',