Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update type definitions to reflect recent Greater London Authority changes and additions #136

Merged
merged 3 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading