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: update Flags enum values #285

Merged
merged 1 commit into from
Jan 5, 2025
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
44 changes: 31 additions & 13 deletions schemas/application.json
Original file line number Diff line number Diff line change
Expand Up @@ -24553,7 +24553,7 @@
"type": "string"
},
"value": {
"const": "Listed building consent / Missing information",
"const": "Works to listed buildings / Missing information",
"type": "string"
}
},
Expand All @@ -24571,7 +24571,7 @@
"type": "string"
},
"value": {
"const": "Listed building consent / Required",
"const": "Works to listed buildings / Consent needed",
"type": "string"
}
},
Expand All @@ -24589,7 +24589,7 @@
"type": "string"
},
"value": {
"const": "Listed building consent / De minimis",
"const": "Works to listed buildings / De minimis",
"type": "string"
}
},
Expand All @@ -24607,7 +24607,7 @@
"type": "string"
},
"value": {
"const": "Listed building consent / Not required",
"const": "Works to listed buildings / Not required",
"type": "string"
}
},
Expand Down Expand Up @@ -24643,7 +24643,7 @@
"type": "string"
},
"value": {
"const": "Works to trees & hedges / Required",
"const": "Works to trees & hedges / Consent needed",
"type": "string"
}
},
Expand All @@ -24661,7 +24661,7 @@
"type": "string"
},
"value": {
"const": "Works to trees & hedges / De minimis",
"const": "Works to trees & hedges / Notice",
"type": "string"
}
},
Expand Down Expand Up @@ -24715,7 +24715,7 @@
"type": "string"
},
"value": {
"const": "Demolition in a conservation area / Required",
"const": "Demolition in a conservation area / Consent needed",
"type": "string"
}
},
Expand Down Expand Up @@ -24859,7 +24859,7 @@
"type": "string"
},
"value": {
"const": "Community infrastructure levy / Exemption void",
"const": "Community infrastructure levy / Exempt",
"type": "string"
}
},
Expand All @@ -24877,7 +24877,7 @@
"type": "string"
},
"value": {
"const": "Community infrastructure levy / Exempt",
"const": "Community infrastructure levy / Relief",
"type": "string"
}
},
Expand All @@ -24895,7 +24895,7 @@
"type": "string"
},
"value": {
"const": "Community infrastructure levy / Relief void",
"const": "Community infrastructure levy / Liable",
"type": "string"
}
},
Expand All @@ -24913,7 +24913,7 @@
"type": "string"
},
"value": {
"const": "Community infrastructure levy / Relief",
"const": "Community infrastructure levy / Not liable",
"type": "string"
}
},
Expand All @@ -24931,7 +24931,7 @@
"type": "string"
},
"value": {
"const": "Community infrastructure levy / Liable",
"const": "Material change of use / Missing information",
"type": "string"
}
},
Expand All @@ -24949,7 +24949,25 @@
"type": "string"
},
"value": {
"const": "Community infrastructure levy / Not liable",
"const": "Material change of use / Material change of use",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "",
"type": "string"
},
"value": {
"const": "Material change of use / Not material change of use",
"type": "string"
}
},
Expand Down
19 changes: 10 additions & 9 deletions types/schemas/application/enums/Flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,30 @@ export const Flags = {
'It looks like the proposed changes may fall within the rules for Permitted Development and therefore would not need planning permission.',
'Planning permission / Not development':
"It looks like the proposed changes may not fall within the legal definition of 'development', and therefore would not require planning permission.",
'Listed building consent / Missing information': '',
'Listed building consent / Required': '',
'Listed building consent / De minimis': '',
'Listed building consent / Not required': '',
'Works to listed buildings / Missing information': '',
'Works to listed buildings / Consent needed': '',
'Works to listed buildings / De minimis': '',
'Works to listed buildings / Not required': '',
'Works to trees & hedges / Missing information': '',
'Works to trees & hedges / Required': '',
'Works to trees & hedges / De minimis': '',
'Works to trees & hedges / Consent needed': '',
'Works to trees & hedges / Notice': '',
'Works to trees & hedges / Not required': '',
'Demolition in a conservation area / Missing information': '',
'Demolition in a conservation area / Required': '',
'Demolition in a conservation area / Consent needed': '',
'Demolition in a conservation area / De minimis': '',
'Demolition in a conservation area / Not required': '',
'Planning policy / Missing information': '',
'Planning policy / Fails to meet policy': '',
'Planning policy / Edge case': '',
'Planning policy / Meets policy': '',
'Community infrastructure levy / Missing information': '',
'Community infrastructure levy / Exemption void': '',
'Community infrastructure levy / Exempt': '',
'Community infrastructure levy / Relief void': '',
'Community infrastructure levy / Relief': '',
'Community infrastructure levy / Liable': '',
'Community infrastructure levy / Not liable': '',
'Material change of use / Missing information': '',
'Material change of use / Material change of use': '',
'Material change of use / Not material change of use': '',
};

type FlagKeys = keyof typeof Flags;
Expand Down
Loading