Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Jul 1, 2024
1 parent e9a827c commit d636045
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 0 deletions.
194 changes: 194 additions & 0 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2112,6 +2112,9 @@
},
"type": "object"
},
"environmentalImpactDescription": {
"type": "string"
},
"extend": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -2185,6 +2188,58 @@
},
"type": "array"
},
"structures": {
"additionalProperties": false,
"properties": {
"permanent": {
"additionalProperties": false,
"properties": {
"count": {
"additionalProperties": false,
"type": "object"
}
},
"required": [
"count"
],
"type": "object"
},
"temporary": {
"additionalProperties": false,
"properties": {
"count": {
"type": "number"
}
},
"required": [
"count"
],
"type": "object"
},
"total": {
"type": "number"
},
"type": {
"enum": [
"bridge",
"catchpit",
"culvert",
"pipe",
"gully",
"headwall",
"manhole",
"weir",
"other"
],
"type": "string"
}
},
"required": [
"type",
"total"
],
"type": "object"
},
"use": {
"additionalProperties": false,
"description": "Proposed land use, including storage of hazardous materials, if applicable to application.type",
Expand Down Expand Up @@ -2225,6 +2280,30 @@
}
},
"type": "object"
},
"watercourse": {
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"type": {
"enum": [
"ditch",
"millStream",
"pond",
"river",
"streamOrBrook",
"other"
],
"type": "string"
}
},
"required": [
"name",
"type"
],
"type": "object"
}
},
"required": [
Expand Down Expand Up @@ -3402,6 +3481,24 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "Information the authority considers necessary for the application",
"type": "string"
},
"value": {
"const": "necessaryInformation",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -4971,6 +5068,9 @@
},
"type": "object"
},
"environmentalImpactDescription": {
"type": "string"
},
"extend": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -5329,6 +5429,58 @@
"schemeName": {
"type": "string"
},
"structures": {
"additionalProperties": false,
"properties": {
"permanent": {
"additionalProperties": false,
"properties": {
"count": {
"additionalProperties": false,
"type": "object"
}
},
"required": [
"count"
],
"type": "object"
},
"temporary": {
"additionalProperties": false,
"properties": {
"count": {
"type": "number"
}
},
"required": [
"count"
],
"type": "object"
},
"total": {
"type": "number"
},
"type": {
"enum": [
"bridge",
"catchpit",
"culvert",
"pipe",
"gully",
"headwall",
"manhole",
"weir",
"other"
],
"type": "string"
}
},
"required": [
"type",
"total"
],
"type": "object"
},
"use": {
"additionalProperties": false,
"description": "Proposed land use, including storage of hazardous materials, if applicable to application.type",
Expand Down Expand Up @@ -5402,6 +5554,30 @@
"grey"
],
"type": "object"
},
"watercourse": {
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"type": {
"enum": [
"ditch",
"millStream",
"pond",
"river",
"streamOrBrook",
"other"
],
"type": "string"
}
},
"required": [
"name",
"type"
],
"type": "object"
}
},
"required": [
Expand Down Expand Up @@ -14281,6 +14457,24 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"const": "Maintenance of an existing structure",
"type": "string"
},
"value": {
"const": "maintain",
"type": "string"
}
},
"required": [
"value",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down
2 changes: 2 additions & 0 deletions types/enums/FileTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export const FileTypes = {
'Details of litter, vermin and bird control',
locationPlan: 'Location plan',
mineralsAndWasteAssessment: 'Minerals and waste assessment',
necessaryInformation:
'Information the authority considers necessary for the application',
newDwellingsSchedule: 'New dwellings schedule',
noiseAssessment: 'Noise assessment',
openSpaceAssessment: 'Open space assessment',
Expand Down
1 change: 1 addition & 0 deletions types/enums/ProjectTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ export const ProjectTypes = {
'internal.staircases': 'Alter internal staircases',
'internal.walls': 'Alter internal walls',
'internal.windows.openings': 'Alter internal window openings',
maintain: 'Maintenance of an existing structure',
new: 'Add a new separate building or self-contained units',
'new.agriculture': 'New agricultural buildings',
'new.agriculture.glassHouse': 'New agricultural buildings - glass house',
Expand Down
24 changes: 24 additions & 0 deletions types/schema/data/Proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,30 @@ export interface BaseProposal {
dwellings?: number;
};
};
watercourse?: {
name: string;
type: 'ditch' | 'millStream' | 'pond' | 'river' | 'streamOrBrook' | 'other';
};
structures?: {
type:
| 'bridge'
| 'catchpit'
| 'culvert'
| 'pipe'
| 'gully'
| 'headwall'
| 'manhole'
| 'weir'
| 'other';
total: number;
permanent?: {
count: Number;
};
temporary?: {
count: number;
};
};
environmentalImpactDescription?: string;
}

/**
Expand Down

0 comments on commit d636045

Please sign in to comment.