diff --git a/examples/data/ldcE.ts b/examples/data/ldcE.ts index 6d661ccd..eeff926a 100644 --- a/examples/data/ldcE.ts +++ b/examples/data/ldcE.ts @@ -1173,8 +1173,8 @@ export const validLDCE: Schema = { name: 'https://api.editor.planx.dev/file/private/r34zxe3x/RoaldDahlHut.jpg', type: [ { - value: 'proposal.photograph', - description: 'Photographs', + value: 'photographs.proposed', + description: 'Photographs - proposed', }, ], }, @@ -1182,7 +1182,7 @@ export const validLDCE: Schema = { name: 'https://api.editor.planx.dev/file/private/kopklkj9/Site%20plan.pdf', type: [ { - value: 'proposal.drawing.sitePlan', + value: 'sitePlan.proposed', description: 'Site plan - proposed', }, ], @@ -1191,7 +1191,7 @@ export const validLDCE: Schema = { name: 'https://api.editor.planx.dev/file/private/u2vjw69h/Elevations.pdf', type: [ { - value: 'proposal.drawing.elevation', + value: 'elevations.proposed', description: 'Elevations - proposed', }, ], @@ -1200,7 +1200,7 @@ export const validLDCE: Schema = { name: 'https://api.editor.planx.dev/file/private/gbaur05c/Plan.pdf', type: [ { - value: 'proposal.drawing.floorPlan', + value: 'floorPlan.proposed', description: 'Floor plan - proposed', }, ], @@ -1209,8 +1209,8 @@ export const validLDCE: Schema = { name: 'https://api.editor.planx.dev/file/private/4vhzu4c5/Roald-Dahl-letter-one-use.pdf', type: [ { - value: 'proposal.document.other.evidence', - description: 'Other - correspondence', + value: 'otherEvidence', + description: 'Other - evidence or correspondence', }, ], description: 'Nothing really, this is just a test. ', @@ -1219,7 +1219,7 @@ export const validLDCE: Schema = { name: 'https://api.editor.planx.dev/file/private/uz72iu40/Test%20document.pdf', type: [ { - value: 'proposal.document.construction.invoice', + value: 'constructionInvoice', description: 'Construction invoice', }, ], diff --git a/examples/data/ldcP.ts b/examples/data/ldcP.ts index 47fdac6b..a02062e5 100644 --- a/examples/data/ldcP.ts +++ b/examples/data/ldcP.ts @@ -761,7 +761,7 @@ export const validLDCP: Schema = { name: 'https://api.editor.planx.dev/file/private/ha2qdn2z/RoofPlan.pdf', type: [ { - value: 'property.drawing.roofPlan', + value: 'roofPlan.existing', description: 'Roof plan - existing', }, ], @@ -770,7 +770,7 @@ export const validLDCP: Schema = { name: 'https://api.editor.planx.dev/file/private/3u00rjyw/Site%20plan.pdf', type: [ { - value: 'property.drawing.sitePlan', + value: 'sitePlan.existing', description: 'Site plan - existing', }, ], @@ -779,7 +779,7 @@ export const validLDCP: Schema = { name: 'https://api.editor.planx.dev/file/private/g92g9w65/RoofPlan.pdf', type: [ { - value: 'proposal.drawing.roofPlan', + value: 'roofPlan.proposed', description: 'Roof plan - proposed', }, ], @@ -788,7 +788,7 @@ export const validLDCP: Schema = { name: 'https://api.editor.planx.dev/file/private/i7tag96k/Site%20plan.pdf', type: [ { - value: 'proposal.drawing.sitePlan', + value: 'sitePlan.proposed', description: 'Site plan - proposed', }, ], @@ -797,7 +797,7 @@ export const validLDCP: Schema = { name: 'https://api.editor.planx.dev/file/private/tw50m88n/Elevations.pdf', type: [ { - value: 'property.drawing.elevation', + value: 'elevations.existing', description: 'Elevations - existing', }, ], @@ -806,7 +806,7 @@ export const validLDCP: Schema = { name: 'https://api.editor.planx.dev/file/private/diahn9ft/Plan.pdf', type: [ { - value: 'property.drawing.floorPlan', + value: 'floorPlan.existing', description: 'Floor plan - existing', }, ], @@ -815,7 +815,7 @@ export const validLDCP: Schema = { name: 'https://api.editor.planx.dev/file/private/0rpf43jj/Elevations.pdf', type: [ { - value: 'proposal.drawing.elevation', + value: 'elevations.proposed', description: 'Elevations - proposed', }, ], @@ -824,7 +824,7 @@ export const validLDCP: Schema = { name: 'https://api.editor.planx.dev/file/private/iio7ok5g/Plan.pdf', type: [ { - value: 'proposal.drawing.floorPlan', + value: 'floorPlan.proposed', description: 'Floor plan - proposed', }, ], diff --git a/examples/data/planningPermission.ts b/examples/data/planningPermission.ts index 20c0c1b1..a17b09ba 100644 --- a/examples/data/planningPermission.ts +++ b/examples/data/planningPermission.ts @@ -1199,11 +1199,11 @@ export const validPlanningPermission: Schema = { name: 'https://api.editor.planx.dev/file/private/vg0av01p/RoofPlan.pdf', type: [ { - value: 'property.drawing.roofPlan', + value: 'roofPlan.existing', description: 'Roof plan - existing', }, { - value: 'proposal.drawing.roofPlan', + value: 'roofPlan.proposed', description: 'Roof plan - proposed', }, ], @@ -1212,11 +1212,11 @@ export const validPlanningPermission: Schema = { name: 'https://api.editor.planx.dev/file/private/ka97yl2c/Site%20plan.pdf', type: [ { - value: 'property.drawing.sitePlan', + value: 'sitePlan.existing', description: 'Site plan - existing', }, { - value: 'proposal.drawing.sitePlan', + value: 'sitePlan.proposed', description: 'Site plan - proposed', }, ], @@ -1225,11 +1225,11 @@ export const validPlanningPermission: Schema = { name: 'https://api.editor.planx.dev/file/private/osprppqo/Elevations.pdf', type: [ { - value: 'property.drawing.elevation', + value: 'elevations.existing', description: 'Elevations - existing', }, { - value: 'proposal.drawing.elevation', + value: 'elevations.proposed', description: 'Elevations - proposed', }, ], @@ -1238,11 +1238,11 @@ export const validPlanningPermission: Schema = { name: 'https://api.editor.planx.dev/file/private/cri3ziaj/Plan.pdf', type: [ { - value: 'property.drawing.floorPlan', + value: 'floorPlan.existing', description: 'Floor plan - existing', }, { - value: 'proposal.drawing.floorPlan', + value: 'floorPlan.proposed', description: 'Floor plan - proposed', }, ], diff --git a/examples/data/priorApproval.ts b/examples/data/priorApproval.ts index 9254a72a..7a726f90 100644 --- a/examples/data/priorApproval.ts +++ b/examples/data/priorApproval.ts @@ -740,8 +740,7 @@ export const validPriorApproval: Schema = { metadata: {autoAnswered: true, sectionName: 'Pay and submit'}, }, { - question: - 'What type of prior approval application is it?application.type', + question: 'What type of prior approval application is it?', responses: [{value: 'Install or change solar panels'}], metadata: {autoAnswered: true, sectionName: 'Pay and submit'}, }, @@ -751,7 +750,7 @@ export const validPriorApproval: Schema = { name: 'https://api.editor.planx.dev/file/private/vab4d0k6/Test%20document.pdf', type: [ { - value: 'proposal.drawing.other', + value: 'otherDrawing', description: 'Other - drawing', }, ], @@ -760,7 +759,7 @@ export const validPriorApproval: Schema = { name: 'https://api.editor.planx.dev/file/private/es3w6dgi/Elevations.pdf', type: [ { - value: 'proposal.drawing.sitePlan', + value: 'sitePlan.proposed', description: 'Site plan - proposed', }, ], diff --git a/examples/validLawfulDevelopmentCertificateExisting.json b/examples/validLawfulDevelopmentCertificateExisting.json index 684deed5..25fee6a4 100644 --- a/examples/validLawfulDevelopmentCertificateExisting.json +++ b/examples/validLawfulDevelopmentCertificateExisting.json @@ -1795,8 +1795,8 @@ "name": "https://api.editor.planx.dev/file/private/r34zxe3x/RoaldDahlHut.jpg", "type": [ { - "value": "proposal.photograph", - "description": "Photographs" + "value": "photographs.proposed", + "description": "Photographs - proposed" } ] }, @@ -1804,7 +1804,7 @@ "name": "https://api.editor.planx.dev/file/private/kopklkj9/Site%20plan.pdf", "type": [ { - "value": "proposal.drawing.sitePlan", + "value": "sitePlan.proposed", "description": "Site plan - proposed" } ] @@ -1813,7 +1813,7 @@ "name": "https://api.editor.planx.dev/file/private/u2vjw69h/Elevations.pdf", "type": [ { - "value": "proposal.drawing.elevation", + "value": "elevations.proposed", "description": "Elevations - proposed" } ] @@ -1822,7 +1822,7 @@ "name": "https://api.editor.planx.dev/file/private/gbaur05c/Plan.pdf", "type": [ { - "value": "proposal.drawing.floorPlan", + "value": "floorPlan.proposed", "description": "Floor plan - proposed" } ] @@ -1831,8 +1831,8 @@ "name": "https://api.editor.planx.dev/file/private/4vhzu4c5/Roald-Dahl-letter-one-use.pdf", "type": [ { - "value": "proposal.document.other.evidence", - "description": "Other - correspondence" + "value": "otherEvidence", + "description": "Other - evidence or correspondence" } ], "description": "Nothing really, this is just a test. " @@ -1841,7 +1841,7 @@ "name": "https://api.editor.planx.dev/file/private/uz72iu40/Test%20document.pdf", "type": [ { - "value": "proposal.document.construction.invoice", + "value": "constructionInvoice", "description": "Construction invoice" } ], diff --git a/examples/validLawfulDevelopmentCertificateProposed.json b/examples/validLawfulDevelopmentCertificateProposed.json index 40149942..71f2280e 100644 --- a/examples/validLawfulDevelopmentCertificateProposed.json +++ b/examples/validLawfulDevelopmentCertificateProposed.json @@ -1141,7 +1141,7 @@ "name": "https://api.editor.planx.dev/file/private/ha2qdn2z/RoofPlan.pdf", "type": [ { - "value": "property.drawing.roofPlan", + "value": "roofPlan.existing", "description": "Roof plan - existing" } ] @@ -1150,7 +1150,7 @@ "name": "https://api.editor.planx.dev/file/private/3u00rjyw/Site%20plan.pdf", "type": [ { - "value": "property.drawing.sitePlan", + "value": "sitePlan.existing", "description": "Site plan - existing" } ] @@ -1159,7 +1159,7 @@ "name": "https://api.editor.planx.dev/file/private/g92g9w65/RoofPlan.pdf", "type": [ { - "value": "proposal.drawing.roofPlan", + "value": "roofPlan.proposed", "description": "Roof plan - proposed" } ] @@ -1168,7 +1168,7 @@ "name": "https://api.editor.planx.dev/file/private/i7tag96k/Site%20plan.pdf", "type": [ { - "value": "proposal.drawing.sitePlan", + "value": "sitePlan.proposed", "description": "Site plan - proposed" } ] @@ -1177,7 +1177,7 @@ "name": "https://api.editor.planx.dev/file/private/tw50m88n/Elevations.pdf", "type": [ { - "value": "property.drawing.elevation", + "value": "elevations.existing", "description": "Elevations - existing" } ] @@ -1186,7 +1186,7 @@ "name": "https://api.editor.planx.dev/file/private/diahn9ft/Plan.pdf", "type": [ { - "value": "property.drawing.floorPlan", + "value": "floorPlan.existing", "description": "Floor plan - existing" } ] @@ -1195,7 +1195,7 @@ "name": "https://api.editor.planx.dev/file/private/0rpf43jj/Elevations.pdf", "type": [ { - "value": "proposal.drawing.elevation", + "value": "elevations.proposed", "description": "Elevations - proposed" } ] @@ -1204,7 +1204,7 @@ "name": "https://api.editor.planx.dev/file/private/iio7ok5g/Plan.pdf", "type": [ { - "value": "proposal.drawing.floorPlan", + "value": "floorPlan.proposed", "description": "Floor plan - proposed" } ] diff --git a/examples/validPlanningPermission.json b/examples/validPlanningPermission.json index 942d1cf6..0f554199 100644 --- a/examples/validPlanningPermission.json +++ b/examples/validPlanningPermission.json @@ -1710,11 +1710,11 @@ "name": "https://api.editor.planx.dev/file/private/vg0av01p/RoofPlan.pdf", "type": [ { - "value": "property.drawing.roofPlan", + "value": "roofPlan.existing", "description": "Roof plan - existing" }, { - "value": "proposal.drawing.roofPlan", + "value": "roofPlan.proposed", "description": "Roof plan - proposed" } ] @@ -1723,11 +1723,11 @@ "name": "https://api.editor.planx.dev/file/private/ka97yl2c/Site%20plan.pdf", "type": [ { - "value": "property.drawing.sitePlan", + "value": "sitePlan.existing", "description": "Site plan - existing" }, { - "value": "proposal.drawing.sitePlan", + "value": "sitePlan.proposed", "description": "Site plan - proposed" } ] @@ -1736,11 +1736,11 @@ "name": "https://api.editor.planx.dev/file/private/osprppqo/Elevations.pdf", "type": [ { - "value": "property.drawing.elevation", + "value": "elevations.existing", "description": "Elevations - existing" }, { - "value": "proposal.drawing.elevation", + "value": "elevations.proposed", "description": "Elevations - proposed" } ] @@ -1749,11 +1749,11 @@ "name": "https://api.editor.planx.dev/file/private/cri3ziaj/Plan.pdf", "type": [ { - "value": "property.drawing.floorPlan", + "value": "floorPlan.existing", "description": "Floor plan - existing" }, { - "value": "proposal.drawing.floorPlan", + "value": "floorPlan.proposed", "description": "Floor plan - proposed" } ] diff --git a/examples/validPriorApproval.json b/examples/validPriorApproval.json index bd86169b..6aad6425 100644 --- a/examples/validPriorApproval.json +++ b/examples/validPriorApproval.json @@ -1064,7 +1064,7 @@ } }, { - "question": "What type of prior approval application is it?application.type", + "question": "What type of prior approval application is it?", "responses": [ { "value": "Install or change solar panels" @@ -1081,7 +1081,7 @@ "name": "https://api.editor.planx.dev/file/private/vab4d0k6/Test%20document.pdf", "type": [ { - "value": "proposal.drawing.other", + "value": "otherDrawing", "description": "Other - drawing" } ] @@ -1090,7 +1090,7 @@ "name": "https://api.editor.planx.dev/file/private/es3w6dgi/Elevations.pdf", "type": [ { - "value": "proposal.drawing.sitePlan", + "value": "sitePlan.proposed", "description": "Site plan - proposed" } ] diff --git a/schema/schema.json b/schema/schema.json index f910edb4..04af4cb8 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -1739,6 +1739,258 @@ "FileType": { "$id": "#FileType", "anyOf": [ + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Affordable housing statement", + "type": "string" + }, + "value": { + "const": "affordableHousingStatement", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Arboriculturist report", + "type": "string" + }, + "value": { + "const": "arboriculturistReport", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Bank statement", + "type": "string" + }, + "value": { + "const": "bankStatement", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Basement impact statement", + "type": "string" + }, + "value": { + "const": "basementImpactStatement", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Bio-aerosol assessment", + "type": "string" + }, + "value": { + "const": "bioaerosolAssessment", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Birdstrike risk management plan", + "type": "string" + }, + "value": { + "const": "birdstrikeRiskManagementPlan", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Borehole or trial pit analysis", + "type": "string" + }, + "value": { + "const": "boreholeOrTrialPitAnalysis", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Building control certificate", + "type": "string" + }, + "value": { + "const": "buildingControlCertificate", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Structural or building condition survey", + "type": "string" + }, + "value": { + "const": "conditionSurvey", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Construction invoice", + "type": "string" + }, + "value": { + "const": "constructionInvoice", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Contamination report", + "type": "string" + }, + "value": { + "const": "contaminationReport", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Council tax bill", + "type": "string" + }, + "value": { + "const": "councilTaxBill", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Crime prevention strategy", + "type": "string" + }, + "value": { + "const": "crimePreventionStrategy", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Design and Access Statement", + "type": "string" + }, + "value": { + "const": "designAndAccessStatement", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, { "additionalProperties": false, "properties": { @@ -1747,7 +1999,331 @@ "type": "string" }, "value": { - "const": "applicant.disability.evidence", + "const": "disabilityExemptionEvidence", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Ecology report", + "type": "string" + }, + "value": { + "const": "ecologyReport", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Elevations - existing", + "type": "string" + }, + "value": { + "const": "elevations.existing", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Elevations - proposed", + "type": "string" + }, + "value": { + "const": "elevations.proposed", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Scheme for mitigation and monitoring of emissions (dust, odour and vibrations)", + "type": "string" + }, + "value": { + "const": "emissionsMitigationAndMonitoringScheme", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Energy statement", + "type": "string" + }, + "value": { + "const": "energyStatement", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Environmental Impact Assessment (EIA)", + "type": "string" + }, + "value": { + "const": "environmentalImpactAssessment", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Fire safety report", + "type": "string" + }, + "value": { + "const": "fireSafetyReport", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Flood risk assessment (FRA)", + "type": "string" + }, + "value": { + "const": "floodRiskAssessment", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Floor plan - existing", + "type": "string" + }, + "value": { + "const": "floorPlan.existing", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Floor plan - proposed", + "type": "string" + }, + "value": { + "const": "floorPlan.proposed", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Foul drainage assessment", + "type": "string" + }, + "value": { + "const": "foulDrainageAssessment", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Geodiversity assessment", + "type": "string" + }, + "value": { + "const": "geodiversityAssessment", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Heritage Statement", + "type": "string" + }, + "value": { + "const": "heritageStatement", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Hydrological and hydrogeological assessment", + "type": "string" + }, + "value": { + "const": "hydrologicalAssessment", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Hydrology report", + "type": "string" + }, + "value": { + "const": "hydrologyReport", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Internal elevations", + "type": "string" + }, + "value": { + "const": "internalElevations", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Internal sections", + "type": "string" + }, + "value": { + "const": "internalSections", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Land contamination assessment", + "type": "string" + }, + "value": { + "const": "landContaminationAssessment", "type": "string" } }, @@ -1761,11 +2337,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Elevations - existing", + "const": "Landscape and visual impact assessment (LVIA)", "type": "string" }, "value": { - "const": "property.drawing.elevation", + "const": "landscapeAndVisualImpactAssessment", "type": "string" } }, @@ -1779,11 +2355,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Floor plan - existing", + "const": "Landscape strategy or landscape plan", "type": "string" }, "value": { - "const": "property.drawing.floorPlan", + "const": "landscapeStrategy", "type": "string" } }, @@ -1797,11 +2373,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Roof plan - existing", + "const": "Lighting assessment", "type": "string" }, "value": { - "const": "property.drawing.roofPlan", + "const": "lightingAssessment", "type": "string" } }, @@ -1815,11 +2391,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Sections - existing", + "const": "Details of litter, vermin and bird control", "type": "string" }, "value": { - "const": "property.drawing.section", + "const": "litterVerminAndBirdControlDetails", "type": "string" } }, @@ -1833,11 +2409,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Site plan - existing", + "const": "Location plan", "type": "string" }, "value": { - "const": "property.drawing.sitePlan", + "const": "locationPlan", "type": "string" } }, @@ -1851,11 +2427,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Use plan - existing", + "const": "Minerals and waste assessment", "type": "string" }, "value": { - "const": "property.drawing.usePlan", + "const": "mineralsAndWasteAssessment", "type": "string" } }, @@ -1869,11 +2445,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Photographs", + "const": "New dwellings schedule", "type": "string" }, "value": { - "const": "property.photograph", + "const": "newDwellingsSchedule", "type": "string" } }, @@ -1887,11 +2463,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Elevations - proposed", + "const": "Noise assessment", "type": "string" }, "value": { - "const": "proposal.drawing.elevation", + "const": "noiseAssessment", "type": "string" } }, @@ -1905,11 +2481,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Floor plan - proposed", + "const": "Open space assessment", "type": "string" }, "value": { - "const": "proposal.drawing.floorPlan", + "const": "openSpaceAssessment", "type": "string" } }, @@ -1923,11 +2499,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Location plan", + "const": "Other - document", "type": "string" }, "value": { - "const": "proposal.drawing.locationPlan", + "const": "otherDocument", "type": "string" } }, @@ -1945,7 +2521,7 @@ "type": "string" }, "value": { - "const": "proposal.drawing.other", + "const": "otherDrawing", "type": "string" } }, @@ -1959,11 +2535,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Roof plan - proposed", + "const": "Other - evidence or correspondence", "type": "string" }, "value": { - "const": "proposal.drawing.roofPlan", + "const": "otherEvidence", "type": "string" } }, @@ -1977,11 +2553,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Sections - proposed", + "const": "Parking plan", "type": "string" }, "value": { - "const": "proposal.drawing.section", + "const": "parkingPlan", "type": "string" } }, @@ -1995,11 +2571,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Site plan - proposed", + "const": "Photographs - existing", "type": "string" }, "value": { - "const": "proposal.drawing.sitePlan", + "const": "photographs.existing", "type": "string" } }, @@ -2013,11 +2589,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Unit plan - proposed", + "const": "Photographs - proposed", "type": "string" }, "value": { - "const": "proposal.drawing.unitPlan", + "const": "photographs.proposed", "type": "string" } }, @@ -2031,11 +2607,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Use plan - proposed", + "const": "Planning statement", "type": "string" }, "value": { - "const": "proposal.drawing.usePlan", + "const": "planningStatement", "type": "string" } }, @@ -2049,11 +2625,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Bank statement", + "const": "Roof plan - existing", "type": "string" }, "value": { - "const": "proposal.document.bankStatement", + "const": "roofPlan.existing", "type": "string" } }, @@ -2067,11 +2643,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Building control certificate", + "const": "Roof plan - proposed", "type": "string" }, "value": { - "const": "proposal.document.buildingControl.certificate", + "const": "roofPlan.proposed", "type": "string" } }, @@ -2085,11 +2661,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Construction invoice", + "const": "Sections - existing", "type": "string" }, "value": { - "const": "proposal.document.construction.invoice", + "const": "sections.existing", "type": "string" } }, @@ -2103,11 +2679,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Contamination report", + "const": "Sections - proposed", "type": "string" }, "value": { - "const": "proposal.document.contamination", + "const": "sections.proposed", "type": "string" } }, @@ -2121,11 +2697,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Council tax bill", + "const": "Site plan - existing", "type": "string" }, "value": { - "const": "proposal.document.councilTaxBill", + "const": "sitePlan.existing", "type": "string" } }, @@ -2139,11 +2715,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Statuatory declaration", + "const": "Site plan - proposed", "type": "string" }, "value": { - "const": "proposal.document.declaration", + "const": "sitePlan.proposed", "type": "string" } }, @@ -2157,11 +2733,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Design and Access Statement", + "const": "Sketch plan", "type": "string" }, "value": { - "const": "proposal.document.designAndAccess", + "const": "sketchPlan", "type": "string" } }, @@ -2175,11 +2751,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Fire safety report", + "const": "Statement of community involvement", "type": "string" }, "value": { - "const": "proposal.document.fireSafety", + "const": "statementOfCommunityInvolvement", "type": "string" } }, @@ -2193,11 +2769,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Flood risk assessment", + "const": "Statuatory declaration", "type": "string" }, "value": { - "const": "proposal.document.floodRisk", + "const": "statuatoryDeclaration", "type": "string" } }, @@ -2211,11 +2787,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Heritage Statement", + "const": "Details of storage treatment or disposal of waste", "type": "string" }, "value": { - "const": "proposal.document.heritageStatement", + "const": "storageTreatmentAndWasteDisposalDetails", "type": "string" } }, @@ -2229,11 +2805,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Noise assessment", + "const": "Street scene drawing", "type": "string" }, "value": { - "const": "proposal.document.noise", + "const": "streetScene", "type": "string" } }, @@ -2247,11 +2823,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Other - document", + "const": "Subsidence report", "type": "string" }, "value": { - "const": "proposal.document.other", + "const": "subsidenceReport", "type": "string" } }, @@ -2265,11 +2841,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Other - correspondence", + "const": "Sunlight and daylight report", "type": "string" }, "value": { - "const": "proposal.document.other.evidence", + "const": "sunlightAndDaylightReport", "type": "string" } }, @@ -2283,11 +2859,29 @@ "additionalProperties": false, "properties": { "description": { - "const": "Sunlight and daylight report", + "const": "Sustainability statement", + "type": "string" + }, + "value": { + "const": "sustainabilityStatement", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Technical evidence", "type": "string" }, "value": { - "const": "proposal.document.sunAndDaylight", + "const": "technicalEvidence", "type": "string" } }, @@ -2305,7 +2899,7 @@ "type": "string" }, "value": { - "const": "proposal.document.tenancyAgreement", + "const": "tenancyAgreement", "type": "string" } }, @@ -2323,7 +2917,43 @@ "type": "string" }, "value": { - "const": "proposal.document.tenancyInvoice", + "const": "tenancyInvoice", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Town centre uses - Impact assessment", + "type": "string" + }, + "value": { + "const": "townCentreImpactAssessment", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Town centre uses - Sequential assessment", + "type": "string" + }, + "value": { + "const": "townCentreSequentialAssessment", "type": "string" } }, @@ -2341,7 +2971,151 @@ "type": "string" }, "value": { - "const": "proposal.document.transport", + "const": "transportAssessment", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Travel plan", + "type": "string" + }, + "value": { + "const": "travelPlan", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Tree canopy calculator", + "type": "string" + }, + "value": { + "const": "treeCanopyCalculator", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Tree condition report", + "type": "string" + }, + "value": { + "const": "treeConditionReport", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Trees report", + "type": "string" + }, + "value": { + "const": "treesReport", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Unit plan - existing", + "type": "string" + }, + "value": { + "const": "unitPlan.existing", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Unit plan - proposed", + "type": "string" + }, + "value": { + "const": "unitPlan.proposed", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Use plan - existing", + "type": "string" + }, + "value": { + "const": "usePlan.existing", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Use plan - proposed", + "type": "string" + }, + "value": { + "const": "usePlan.proposed", "type": "string" } }, @@ -2359,7 +3133,7 @@ "type": "string" }, "value": { - "const": "proposal.document.utility.bill", + "const": "utilitiesBill", "type": "string" } }, @@ -2373,11 +3147,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Photographs", + "const": "Utilities statement", "type": "string" }, "value": { - "const": "proposal.photograph", + "const": "utilitiesStatement", "type": "string" } }, @@ -2391,11 +3165,11 @@ "additionalProperties": false, "properties": { "description": { - "const": "Photographs - evidence", + "const": "Ventilation or extraction statement", "type": "string" }, "value": { - "const": "proposal.photograph.evidence", + "const": "ventilationStatement", "type": "string" } }, @@ -2413,7 +3187,43 @@ "type": "string" }, "value": { - "const": "proposal.visualisation", + "const": "visualisations", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Waste and recycling strategy", + "type": "string" + }, + "value": { + "const": "wasteAndRecyclingStrategy", + "type": "string" + } + }, + "required": [ + "value", + "description" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "description": { + "const": "Water environment assessment", + "type": "string" + }, + "value": { + "const": "waterEnvironmentAssessment", "type": "string" } }, diff --git a/types/enums/FileTypes.ts b/types/enums/FileTypes.ts index ba8612f8..f264d6d9 100644 --- a/types/enums/FileTypes.ts +++ b/types/enums/FileTypes.ts @@ -2,44 +2,92 @@ * Values of `file.type` */ export const FileTypes = { - 'applicant.disability.evidence': + affordableHousingStatement: 'Affordable housing statement', + arboriculturistReport: 'Arboriculturist report', + bankStatement: 'Bank statement', + basementImpactStatement: 'Basement impact statement', + bioaerosolAssessment: 'Bio-aerosol assessment', + birdstrikeRiskManagementPlan: 'Birdstrike risk management plan', + boreholeOrTrialPitAnalysis: 'Borehole or trial pit analysis', + buildingControlCertificate: 'Building control certificate', + conditionSurvey: 'Structural or building condition survey', + constructionInvoice: 'Construction invoice', + contaminationReport: 'Contamination report', + councilTaxBill: 'Council tax bill', + crimePreventionStrategy: 'Crime prevention strategy', + designAndAccessStatement: 'Design and Access Statement', + disabilityExemptionEvidence: 'Evidence for application fee exemption - disability', - 'property.drawing.elevation': 'Elevations - existing', - 'property.drawing.floorPlan': 'Floor plan - existing', - 'property.drawing.roofPlan': 'Roof plan - existing', - 'property.drawing.section': 'Sections - existing', - 'property.drawing.sitePlan': 'Site plan - existing', - 'property.drawing.usePlan': 'Use plan - existing', - 'property.photograph': 'Photographs', - 'proposal.drawing.elevation': 'Elevations - proposed', - 'proposal.drawing.floorPlan': 'Floor plan - proposed', - 'proposal.drawing.locationPlan': 'Location plan', - 'proposal.drawing.other': 'Other - drawing', - 'proposal.drawing.roofPlan': 'Roof plan - proposed', - 'proposal.drawing.section': 'Sections - proposed', - 'proposal.drawing.sitePlan': 'Site plan - proposed', - 'proposal.drawing.unitPlan': 'Unit plan - proposed', - 'proposal.drawing.usePlan': 'Use plan - proposed', - 'proposal.document.bankStatement': 'Bank statement', - 'proposal.document.buildingControl.certificate': - 'Building control certificate', - 'proposal.document.construction.invoice': 'Construction invoice', - 'proposal.document.contamination': 'Contamination report', - 'proposal.document.councilTaxBill': 'Council tax bill', - 'proposal.document.declaration': 'Statuatory declaration', - 'proposal.document.designAndAccess': 'Design and Access Statement', - 'proposal.document.fireSafety': 'Fire safety report', - 'proposal.document.floodRisk': 'Flood risk assessment', - 'proposal.document.heritageStatement': 'Heritage Statement', - 'proposal.document.noise': 'Noise assessment', - 'proposal.document.other': 'Other - document', - 'proposal.document.other.evidence': 'Other - correspondence', - 'proposal.document.sunAndDaylight': 'Sunlight and daylight report', - 'proposal.document.tenancyAgreement': 'Tenancy agreement', - 'proposal.document.tenancyInvoice': 'Tenancy invoice', - 'proposal.document.transport': 'Transport assessment', - 'proposal.document.utility.bill': 'Utility bill', - 'proposal.photograph': 'Photographs', - 'proposal.photograph.evidence': 'Photographs - evidence', - 'proposal.visualisation': 'Visualisations', + ecologyReport: 'Ecology report', + 'elevations.existing': 'Elevations - existing', + 'elevations.proposed': 'Elevations - proposed', + emissionsMitigationAndMonitoringScheme: + 'Scheme for mitigation and monitoring of emissions (dust, odour and vibrations)', + energyStatement: 'Energy statement', + environmentalImpactAssessment: 'Environmental Impact Assessment (EIA)', + fireSafetyReport: 'Fire safety report', + floodRiskAssessment: 'Flood risk assessment (FRA)', + 'floorPlan.existing': 'Floor plan - existing', + 'floorPlan.proposed': 'Floor plan - proposed', + foulDrainageAssessment: 'Foul drainage assessment', + geodiversityAssessment: 'Geodiversity assessment', + heritageStatement: 'Heritage Statement', + hydrologicalAssessment: 'Hydrological and hydrogeological assessment', + hydrologyReport: 'Hydrology report', + internalElevations: 'Internal elevations', + internalSections: 'Internal sections', + landContaminationAssessment: 'Land contamination assessment', + landscapeAndVisualImpactAssessment: + 'Landscape and visual impact assessment (LVIA)', + landscapeStrategy: 'Landscape strategy or landscape plan', + lightingAssessment: 'Lighting assessment', + litterVerminAndBirdControlDetails: + 'Details of litter, vermin and bird control', + locationPlan: 'Location plan', + mineralsAndWasteAssessment: 'Minerals and waste assessment', + newDwellingsSchedule: 'New dwellings schedule', + noiseAssessment: 'Noise assessment', + openSpaceAssessment: 'Open space assessment', + otherDocument: 'Other - document', + otherDrawing: 'Other - drawing', + otherEvidence: 'Other - evidence or correspondence', + parkingPlan: 'Parking plan', + 'photographs.existing': 'Photographs - existing', + 'photographs.proposed': 'Photographs - proposed', + planningStatement: 'Planning statement', + 'roofPlan.existing': 'Roof plan - existing', + 'roofPlan.proposed': 'Roof plan - proposed', + 'sections.existing': 'Sections - existing', + 'sections.proposed': 'Sections - proposed', + 'sitePlan.existing': 'Site plan - existing', + 'sitePlan.proposed': 'Site plan - proposed', + sketchPlan: 'Sketch plan', + statementOfCommunityInvolvement: 'Statement of community involvement', + statuatoryDeclaration: 'Statuatory declaration', + storageTreatmentAndWasteDisposalDetails: + 'Details of storage treatment or disposal of waste', + streetScene: 'Street scene drawing', + subsidenceReport: 'Subsidence report', + sunlightAndDaylightReport: 'Sunlight and daylight report', + sustainabilityStatement: 'Sustainability statement', + technicalEvidence: 'Technical evidence', + tenancyAgreement: 'Tenancy agreement', + tenancyInvoice: 'Tenancy invoice', + townCentreImpactAssessment: 'Town centre uses - Impact assessment', + townCentreSequentialAssessment: 'Town centre uses - Sequential assessment', + transportAssessment: 'Transport assessment', + travelPlan: 'Travel plan', + treeCanopyCalculator: 'Tree canopy calculator', + treeConditionReport: 'Tree condition report', + treesReport: 'Trees report', + 'unitPlan.existing': 'Unit plan - existing', + 'unitPlan.proposed': 'Unit plan - proposed', + 'usePlan.existing': 'Use plan - existing', + 'usePlan.proposed': 'Use plan - proposed', + utilitiesBill: 'Utility bill', + utilitiesStatement: 'Utilities statement', + ventilationStatement: 'Ventilation or extraction statement', + visualisations: 'Visualisations', + wasteAndRecyclingStrategy: 'Waste and recycling strategy', + waterEnvironmentAssessment: 'Water environment assessment', };