From ba2462ab70211cb649be89ec1d121985a0f45be1 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Thu, 2 Jan 2025 12:19:11 +0100 Subject: [PATCH] rename flag enums --- schemas/application.json | 44 +++++++++++++++++------- types/schemas/application/enums/Flags.ts | 19 +++++----- 2 files changed, 41 insertions(+), 22 deletions(-) diff --git a/schemas/application.json b/schemas/application.json index 3ce08307..93fa046e 100644 --- a/schemas/application.json +++ b/schemas/application.json @@ -24553,7 +24553,7 @@ "type": "string" }, "value": { - "const": "Listed building consent / Missing information", + "const": "Works to listed buildings / Missing information", "type": "string" } }, @@ -24571,7 +24571,7 @@ "type": "string" }, "value": { - "const": "Listed building consent / Required", + "const": "Works to listed buildings / Consent needed", "type": "string" } }, @@ -24589,7 +24589,7 @@ "type": "string" }, "value": { - "const": "Listed building consent / De minimis", + "const": "Works to listed buildings / De minimis", "type": "string" } }, @@ -24607,7 +24607,7 @@ "type": "string" }, "value": { - "const": "Listed building consent / Not required", + "const": "Works to listed buildings / Not required", "type": "string" } }, @@ -24643,7 +24643,7 @@ "type": "string" }, "value": { - "const": "Works to trees & hedges / Required", + "const": "Works to trees & hedges / Consent needed", "type": "string" } }, @@ -24661,7 +24661,7 @@ "type": "string" }, "value": { - "const": "Works to trees & hedges / De minimis", + "const": "Works to trees & hedges / Notice", "type": "string" } }, @@ -24715,7 +24715,7 @@ "type": "string" }, "value": { - "const": "Demolition in a conservation area / Required", + "const": "Demolition in a conservation area / Consent needed", "type": "string" } }, @@ -24859,7 +24859,7 @@ "type": "string" }, "value": { - "const": "Community infrastructure levy / Exemption void", + "const": "Community infrastructure levy / Exempt", "type": "string" } }, @@ -24877,7 +24877,7 @@ "type": "string" }, "value": { - "const": "Community infrastructure levy / Exempt", + "const": "Community infrastructure levy / Relief", "type": "string" } }, @@ -24895,7 +24895,7 @@ "type": "string" }, "value": { - "const": "Community infrastructure levy / Relief void", + "const": "Community infrastructure levy / Liable", "type": "string" } }, @@ -24913,7 +24913,7 @@ "type": "string" }, "value": { - "const": "Community infrastructure levy / Relief", + "const": "Community infrastructure levy / Not liable", "type": "string" } }, @@ -24931,7 +24931,7 @@ "type": "string" }, "value": { - "const": "Community infrastructure levy / Liable", + "const": "Material change of use / Missing information", "type": "string" } }, @@ -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" } }, diff --git a/types/schemas/application/enums/Flags.ts b/types/schemas/application/enums/Flags.ts index a98d3581..6d204b5c 100644 --- a/types/schemas/application/enums/Flags.ts +++ b/types/schemas/application/enums/Flags.ts @@ -16,16 +16,16 @@ 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': '', @@ -33,12 +33,13 @@ export const Flags = { '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;