Skip to content

Commit

Permalink
chore: extend PlanningDesignations enum with Listed Building grades (
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Feb 5, 2024
1 parent 5e29d13 commit dc9b7e7
Show file tree
Hide file tree
Showing 2 changed files with 234 additions and 0 deletions.
231 changes: 231 additions & 0 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4866,6 +4866,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": {
Expand Down Expand Up @@ -5942,6 +6011,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": {
Expand Down
3 changes: 3 additions & 0 deletions types/enums/PlanningConstraints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down

0 comments on commit dc9b7e7

Please sign in to comment.