Skip to content

Commit 755c79c

Browse files
authored
fix: split treeworksConsent into two separate types (#150)
1 parent e22aa85 commit 755c79c

File tree

2 files changed

+43
-4
lines changed

2 files changed

+43
-4
lines changed

schema/schema.json

+38-2
Original file line numberDiff line numberDiff line change
@@ -1564,11 +1564,47 @@
15641564
"additionalProperties": false,
15651565
"properties": {
15661566
"description": {
1567-
"const": "Consent to carry out works to a tree in a Conservation Area or with a Tree Preservation Order",
1567+
"const": "Works to trees",
15681568
"type": "string"
15691569
},
15701570
"value": {
1571-
"const": "treeWorksConsent",
1571+
"const": "wtt",
1572+
"type": "string"
1573+
}
1574+
},
1575+
"required": [
1576+
"value",
1577+
"description"
1578+
],
1579+
"type": "object"
1580+
},
1581+
{
1582+
"additionalProperties": false,
1583+
"properties": {
1584+
"description": {
1585+
"const": "Works to trees - Consent to carry out works to a tree with a Tree Preservation Order",
1586+
"type": "string"
1587+
},
1588+
"value": {
1589+
"const": "wtt.consent",
1590+
"type": "string"
1591+
}
1592+
},
1593+
"required": [
1594+
"value",
1595+
"description"
1596+
],
1597+
"type": "object"
1598+
},
1599+
{
1600+
"additionalProperties": false,
1601+
"properties": {
1602+
"description": {
1603+
"const": "Works to trees - Notification of proposed works to a tree in a Conservation Area",
1604+
"type": "string"
1605+
},
1606+
"value": {
1607+
"const": "wtt.notice",
15721608
"type": "string"
15731609
}
15741610
},

types/enums/ApplicationTypes.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ export const ApplicationTypes = {
112112
'Outline Planning Permission - Approval of reserved matters (major)',
113113
'pp.outline.major.someReserved':
114114
'Outline Planning Permission - Consent for the principle of a project specifying some details (major)',
115-
treeWorksConsent:
116-
'Consent to carry out works to a tree in a Conservation Area or with a Tree Preservation Order',
115+
wtt: 'Works to trees',
116+
'wtt.consent':
117+
'Works to trees - Consent to carry out works to a tree with a Tree Preservation Order',
118+
'wtt.notice':
119+
'Works to trees - Notification of proposed works to a tree in a Conservation Area',
117120
};

0 commit comments

Comments
 (0)