Skip to content

Commit

Permalink
feat: Land Drainage Consent example payload and associated types (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Jul 11, 2024
1 parent a743e2b commit 6f7b200
Show file tree
Hide file tree
Showing 9 changed files with 2,216 additions and 6 deletions.
717 changes: 717 additions & 0 deletions examples/data/landDrainageConsent.ts

Large diffs are not rendered by default.

1,143 changes: 1,143 additions & 0 deletions examples/landDrainageConsent.json

Large diffs are not rendered by default.

287 changes: 285 additions & 2 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
"email": {
"$ref": "#/definitions/Email"
},
"maintenanceContact": {
"$ref": "#/definitions/MaintenanceContact"
},
"name": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -2231,6 +2234,9 @@
"email": {
"$ref": "#/definitions/Email"
},
"maintenanceContact": {
"$ref": "#/definitions/MaintenanceContact"
},
"name": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -2308,6 +2314,9 @@
}
]
},
"planningApp": {
"$ref": "#/definitions/PlanningApplication"
},
"preApp": {
"$ref": "#/definitions/PreApplication"
},
Expand Down Expand Up @@ -2382,6 +2391,9 @@
},
"type": "object"
},
"environmentalImpactDescription": {
"type": "string"
},
"extend": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -2467,6 +2479,57 @@
},
"type": "array"
},
"structures": {
"additionalProperties": false,
"properties": {
"permanent": {
"additionalProperties": false,
"properties": {
"count": {
"type": "number"
}
},
"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"
},
"units": {
"$ref": "#/definitions/ResidentialUnits"
},
Expand Down Expand Up @@ -2603,6 +2666,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 @@ -5919,6 +6006,9 @@
"leadDeveloper": {
"$ref": "#/definitions/LeadDeveloper"
},
"planningApp": {
"$ref": "#/definitions/PlanningApplication"
},
"preApp": {
"$ref": "#/definitions/PreApplication"
},
Expand Down Expand Up @@ -6530,6 +6620,9 @@
],
"type": "object"
},
"environmentalImpactDescription": {
"type": "string"
},
"extend": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -6913,6 +7006,57 @@
"schemeName": {
"type": "string"
},
"structures": {
"additionalProperties": false,
"properties": {
"permanent": {
"additionalProperties": false,
"properties": {
"count": {
"type": "number"
}
},
"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"
},
"units": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -7334,6 +7478,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 All @@ -7342,6 +7510,81 @@
],
"type": "object"
},
"MaintenanceContact": {
"$id": "#MaintenanceContact",
"description": "Contact information for the person(s) responsible for maintenance while the works are carried out",
"items": {
"additionalProperties": false,
"properties": {
"address": {
"$ref": "#/definitions/Address"
},
"contact": {
"additionalProperties": false,
"properties": {
"company": {
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"email": {
"type": "string"
},
"name": {
"additionalProperties": false,
"properties": {
"first": {
"type": "string"
},
"last": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"first",
"last"
],
"type": "object"
},
"phone": {
"type": "string"
}
},
"required": [
"name",
"email",
"phone"
],
"type": "object"
},
"when": {
"enum": [
"duringConstruction",
"afterConstruction",
"duringAndAfterConstruction"
],
"type": "string"
}
},
"required": [
"when",
"address",
"contact"
],
"type": "object"
},
"type": "array"
},
"Materials": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -8202,6 +8445,28 @@
],
"type": "object"
},
"PlanningApplication": {
"$id": "#PlanningApplication",
"additionalProperties": false,
"description": "Details of the planning application linked to this application, if applicable",
"properties": {
"date": {
"$ref": "#/definitions/Date"
},
"localPlanningAuthority": {
"type": "string"
},
"reference": {
"type": "string"
}
},
"required": [
"reference",
"date",
"localPlanningAuthority"
],
"type": "object"
},
"PlanningConstraint": {
"$id": "#PlanningConstraint",
"anyOf": [
Expand Down Expand Up @@ -9793,7 +10058,7 @@
"PreApplication": {
"$id": "#PreApplication",
"additionalProperties": false,
"description": "Details of the pre-application, if applicable",
"description": "Details of the pre-application preceeding this application, if applicable",
"properties": {
"date": {
"$ref": "#/definitions/Date"
Expand Down Expand Up @@ -14597,6 +14862,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 Expand Up @@ -14943,7 +15226,7 @@
"additionalProperties": false,
"properties": {
"description": {
"const": "Erect a temporary structure for historic visitor attractions and listed buildings",
"const": "Build a temporary structure",
"type": "string"
},
"value": {
Expand Down
Loading

0 comments on commit 6f7b200

Please sign in to comment.