Skip to content

Commit

Permalink
fix: update type definitions to reflect recent Greater London Authori…
Browse files Browse the repository at this point in the history
…ty changes and additions (#136)
  • Loading branch information
jessicamcinchak authored Mar 27, 2024
1 parent a47c07e commit d1ae2fc
Show file tree
Hide file tree
Showing 12 changed files with 4,459 additions and 4,548 deletions.
8 changes: 3 additions & 5 deletions examples/data/ldcP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,9 @@ export const validLDCP: Schema = {
},
},
date: {},
details: {
extend: {
area: {
squareMetres: 24,
},
extend: {
area: {
squareMetres: 24,
},
},
},
Expand Down
180 changes: 26 additions & 154 deletions examples/data/planningPermission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,20 @@ export const validPlanningPermission: Schema = {
value: 'residential.dwelling.house.terrace',
description: 'Terrace',
},
titleNumber: {
known: 'No',
},
EPC: {
known: 'No',
},
parking: {
cars: {
count: 1,
},
cycles: {
count: 2,
},
},
},
proposal: {
projectType: [
Expand Down Expand Up @@ -252,161 +266,19 @@ export const validPlanningPermission: Schema = {
start: '2024-05-01',
completion: '2024-05-02',
},
details: {
extend: {
area: {
squareMetres: 45,
},
extend: {
area: {
squareMetres: 45,
},
vehicleParking: {
type: [
{
value: 'cars.offStreet.residents',
description: 'Off-street parking for residents only',
},
{
value: 'bicycles.offStreet',
description: 'Off-street parking for bicycles',
},
],
cars: {
count: {
existing: 1,
proposed: 1,
},
offStreet: {
count: {
existing: 0,
proposed: 0,
},
club: {
count: {
existing: 0,
proposed: 0,
},
},
disabled: {
count: {
existing: 0,
proposed: 0,
},
},
other: {
count: {
existing: 0,
proposed: 0,
},
},
residents: {
count: {
existing: 1,
proposed: 1,
},
},
},
onStreet: {
count: {
existing: 0,
proposed: 0,
},
club: {
count: {
existing: 0,
proposed: 0,
},
},
disabled: {
count: {
existing: 0,
proposed: 0,
},
},
other: {
count: {
existing: 0,
proposed: 0,
},
},
residents: {
count: {
existing: 0,
proposed: 0,
},
},
},
},
vans: {
count: {
existing: 0,
proposed: 0,
},
offStreet: {
count: {
existing: 0,
proposed: 0,
},
},
onStreet: {
count: {
existing: 0,
proposed: 0,
},
},
},
motorcycles: {
count: {
existing: 0,
proposed: 0,
},
offStreet: {
count: {
existing: 0,
proposed: 0,
},
},
onStreet: {
count: {
existing: 0,
proposed: 0,
},
},
},
bicycles: {
count: {
existing: 2,
proposed: 2,
},
offStreet: {
count: {
existing: 2,
proposed: 2,
},
},
onStreet: {
count: {
existing: 0,
proposed: 0,
},
},
},
buses: {
count: {
existing: 0,
proposed: 0,
},
offStreet: {
count: {
existing: 0,
proposed: 0,
},
},
onStreet: {
count: {
existing: 0,
proposed: 0,
},
},
},
},
parking: {
cars: {
count: 1,
difference: 0,
},
cycles: {
count: 2,
difference: 0,
},
},
},
Expand Down
8 changes: 3 additions & 5 deletions examples/validLawfulDevelopmentCertificateProposed.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,9 @@
}
},
"date": {},
"details": {
"extend": {
"area": {
"squareMetres": 24
}
"extend": {
"area": {
"squareMetres": 24
}
}
}
Expand Down
Loading

0 comments on commit d1ae2fc

Please sign in to comment.