Skip to content

Commit

Permalink
add data.application.CIL.result where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Mar 13, 2024
1 parent bcfb2f5 commit ad06626
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@
"additionalProperties": false,
"description": "Information about this planning application",
"properties": {
"CIL": {
"$ref": "#/definitions/CommunityInfrastructureLevy"
},
"declaration": {
"$ref": "#/definitions/ApplicationDeclaration"
},
Expand Down Expand Up @@ -1634,6 +1637,28 @@
},
"type": "object"
},
"CommunityInfrastructureLevy": {
"$id": "#CommunityInfrastructureLevy",
"additionalProperties": false,
"description": "Details about the Community Infrastructure Levy planning charge, if applicable",
"properties": {
"result": {
"enum": [
"exempt.annexe",
"exempt.extension",
"exempt.selfBuild",
"liable",
"relief.charity",
"relief.socialHousing"
],
"type": "string"
}
},
"required": [
"result"
],
"type": "object"
},
"Date": {
"format": "date",
"type": "string"
Expand Down
15 changes: 15 additions & 0 deletions types/schema/data/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface Application {
fee: ApplicationFee;
declaration: ApplicationDeclaration;
preApp?: PreApplication;
CIL?: CommunityInfrastructureLevy;
}

/**
Expand Down Expand Up @@ -64,6 +65,20 @@ export interface PreApplication {
summary: string;
}

/**
* @id #CommunityInfrastructureLevy
* @description Details about the Community Infrastructure Levy planning charge, if applicable
*/
export interface CommunityInfrastructureLevy {
result:
| 'exempt.annexe'
| 'exempt.extension'
| 'exempt.selfBuild'
| 'liable'
| 'relief.charity'
| 'relief.socialHousing';
}

type ApplicationTypeKeys = keyof typeof ApplicationTypes;

type GenericApplicationType<TKey extends ApplicationTypeKeys> = {
Expand Down

0 comments on commit ad06626

Please sign in to comment.