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

chore: update Ownership to include additional details asked for in Planning Permission & LBC services #159

Merged
merged 3 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
49 changes: 49 additions & 0 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
},
"interest": {
"enum": [
"owner",
"owner.sole",
"owner.co",
"tenant",
Expand Down Expand Up @@ -1679,6 +1680,7 @@
},
"interest": {
"enum": [
"owner",
"owner.sole",
"owner.co",
"tenant",
Expand Down Expand Up @@ -5171,6 +5173,10 @@
"additionalProperties": false,
"description": "Information about the ownership certificate and property owners, if different than the applicant",
"properties": {
"agriculturalTenants": {
"description": "Does the land have any agricultural tenants?",
"type": "boolean"
},
"certificate": {
"enum": [
"a",
Expand All @@ -5180,13 +5186,56 @@
],
"type": "string"
},
"declaration": {
"additionalProperties": false,
"description": "Declaration of the accuracy of the ownership certificate, including reasonable steps taken to find all owners and publish notice",
"properties": {
"accurate": {
"type": "boolean"
}
},
"required": [
"accurate"
],
"type": "object"
},
"noticeGiven": {
"description": "Has requisite notice been given to all the known owners and agricultural tenants?",
"type": "boolean"
},
"noticePublished": {
"additionalProperties": false,
"description": "Has a notice of the application been published in a newspaper circulating in the area where the land is situated?",
"properties": {
"date": {
"$ref": "#/definitions/Date"
},
"newspaperName": {
"type": "string"
},
"status": {
"type": "boolean"
}
},
"required": [
"status"
],
"type": "object"
},
"noticeReason": {
"type": "string"
},
"ownerKnown": {
"description": "Do you know the names and addresses of all owners and agricultural tenants?",
"enum": [
"all",
"some",
"none"
],
"type": "string"
},
"owners": {
"description": "Names and addresses of all known owners and agricultural tenants",
"items": {
"additionalProperties": false,
"properties": {
Expand Down
39 changes: 38 additions & 1 deletion types/schema/data/Applicant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ export interface BaseApplicant {
name: string;
};
address: UserAddress;
interest?: 'owner.sole' | 'owner.co' | 'tenant' | 'occupier' | 'other';
interest?:
| 'owner'
| 'owner.sole'
| 'owner.co'
| 'tenant'
| 'occupier'
| 'other';
ownership?: Ownership;
siteContact: SiteContact;
}
Expand All @@ -37,13 +43,44 @@ export interface BaseApplicant {
*/
export interface Ownership {
certificate: 'a' | 'b' | 'c' | 'd';
/**
* @description Does the land have any agricultural tenants?
*/
agriculturalTenants?: boolean;
/**
* @description Do you know the names and addresses of all owners and agricultural tenants?
*/
ownerKnown?: 'all' | 'some' | 'none';
/**
* @description Has requisite notice been given to all the known owners and agricultural tenants?
*/
noticeGiven?: boolean;
/**
* @descrpition Reason requisite notice has not been given, if applicable
*/
noticeReason?: string;
/**
* @description Has a notice of the application been published in a newspaper circulating in the area where the land is situated?
*/
noticePublished?: {
status: boolean;
date?: Date;
newspaperName?: string;
};
/**
* @description Names and addresses of all known owners and agricultural tenants
*/
owners?: {
name: string;
address: Address | string;
noticeDate?: Date;
}[];
/**
* @description Declaration of the accuracy of the ownership certificate, including reasonable steps taken to find all owners and publish notice
*/
declaration?: {
accurate: boolean;
};
}

/**
Expand Down
Loading