Skip to content

Commit

Permalink
fix: sync latest ProjectTypes and FileTypes from Planx services (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Jul 10, 2024
1 parent e523b8e commit a743e2b
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 5 deletions.
150 changes: 147 additions & 3 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4022,6 +4022,24 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "Method statement",
"type": "string"
},
"value": {
"const": "methodStatement",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -4238,6 +4256,24 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "Recyclable waste storage details",
"type": "string"
},
"value": {
"const": "recycleWasteStorageDetails",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand All @@ -4256,6 +4292,24 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "Residential units details",
"type": "string"
},
"value": {
"const": "residentialUnitsDetails",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -4526,6 +4580,24 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "Technical specification",
"type": "string"
},
"value": {
"const": "technicalSpecification",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -4706,6 +4778,24 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "Tree plan",
"type": "string"
},
"value": {
"const": "treePlan",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -4904,6 +4994,24 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "Waste storage details",
"type": "string"
},
"value": {
"const": "wasteStorageDetails",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -10393,7 +10501,7 @@
"type": "string"
},
"value": {
"const": "alter.deck",
"const": "alter.decks",
"type": "string"
}
},
Expand Down Expand Up @@ -10727,6 +10835,24 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "Install machinery",
"type": "string"
},
"value": {
"const": "alter.equipment.machinery",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -10799,6 +10925,24 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "Install ventilation",
"type": "string"
},
"value": {
"const": "alter.equipment.ventilation",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -14493,11 +14637,11 @@
"additionalProperties": false,
"properties": {
"description": {
"const": "New agricultural buildings - glass house",
"const": "New agricultural buildings - glasshouse",
"type": "string"
},
"value": {
"const": "new.agriculture.glassHouse",
"const": "new.agriculture.glasshouse",
"type": "string"
}
},
Expand Down
6 changes: 6 additions & 0 deletions types/enums/FileTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const FileTypes = {
litterVerminAndBirdControlDetails:
'Details of litter, vermin and bird control',
locationPlan: 'Location plan',
methodStatement: 'Method statement',
mineralsAndWasteAssessment: 'Minerals and waste assessment',
necessaryInformation:
'Information the authority considers necessary for the application',
Expand All @@ -66,8 +67,10 @@ export const FileTypes = {
'photographs.existing': 'Photographs - existing',
'photographs.proposed': 'Photographs - proposed',
planningStatement: 'Planning statement',
recycleWasteStorageDetails: 'Recyclable waste storage details',
relevantInformation:
'Information the applicant considers relevant to the application',
residentialUnitsDetails: 'Residential units details',
'roofPlan.existing': 'Roof plan - existing',
'roofPlan.proposed': 'Roof plan - proposed',
'sections.existing': 'Sections - existing',
Expand All @@ -84,6 +87,7 @@ export const FileTypes = {
sunlightAndDaylightReport: 'Sunlight and daylight report',
sustainabilityStatement: 'Sustainability statement',
technicalEvidence: 'Technical evidence',
technicalSpecification: 'Technical specification',
tenancyAgreement: 'Tenancy agreement',
tenancyInvoice: 'Tenancy invoice',
townCentreImpactAssessment: 'Town centre uses - Impact assessment',
Expand All @@ -94,6 +98,7 @@ export const FileTypes = {
treeAndHedgeRemovedOrPruned: 'Removed or pruned trees and hedges',
treeCanopyCalculator: 'Tree canopy calculator',
treeConditionReport: 'Tree condition report',
treePlan: 'Tree plan',
treesReport: 'Trees report',
'unitPlan.existing': 'Unit plan - existing',
'unitPlan.proposed': 'Unit plan - proposed',
Expand All @@ -105,6 +110,7 @@ export const FileTypes = {
viabilityAppraisal: 'Viability Appraisal',
visualisations: 'Visualisations',
wasteAndRecyclingStrategy: 'Waste and recycling strategy',
wasteStorageDetails: 'Waste storage details',
waterEnvironmentAssessment: 'Water environment assessment',
};

Expand Down
6 changes: 4 additions & 2 deletions types/enums/ProjectTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const ProjectTypes = {
'alter.chimneys': 'Change chimneys',
'alter.chimneys.add': 'Add a chimney',
'alter.chimneys.replace': 'Replace a chimney',
'alter.deck': 'Add a verandah or deck',
'alter.decks': 'Add a verandah or deck',
'alter.decksHigh': 'Add a high verandah or deck',
'alter.drains': 'Work on drains',
'alter.equipment': 'Install equipment',
Expand All @@ -66,10 +66,12 @@ export const ProjectTypes = {
'alter.equipment.heatPump.water': 'Install a water heat pump',
'alter.equipment.industrial': 'Install industrial equipment',
'alter.equipment.lighting': 'Install outdoor lights',
'alter.equipment.machinery': 'Install machinery',
'alter.equipment.solar': 'Install solar panels',
'alter.equipment.solar.pv': 'Install solar photovoltaics (PV)',
'alter.equipment.solar.thermal': 'Install solar thermal equipment',
'alter.equipment.tank': 'Install an outdoor tank (for example a water tank)',
'alter.equipment.ventilation': 'Install ventilation',
'alter.equipment.wifi': 'Install internet equipment',
'alter.equipment.wind': 'Install a wind turbine',
'alter.facades': 'Change the material or colour of the external walls',
Expand Down Expand Up @@ -313,7 +315,7 @@ export const ProjectTypes = {
'internal.windows.openings': 'Alter internal window openings',
new: 'Add a new separate building or self-contained units',
'new.agriculture': 'New agricultural buildings',
'new.agriculture.glassHouse': 'New agricultural buildings - glass house',
'new.agriculture.glasshouse': 'New agricultural buildings - glasshouse',
'new.agriculture.mining': 'New agricultural buildings - mining',
'new.agriculture.pigs': 'New agricultural buildings - pigs',
'new agriculture.poultry': 'New agricultural buildings - poultry',
Expand Down

0 comments on commit a743e2b

Please sign in to comment.