Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: extend PlanningDesignations enum with Listed Building grades #106

Merged
merged 4 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
231 changes: 231 additions & 0 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
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
Loading