Skip to content

Commit

Permalink
update ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed May 1, 2024
1 parent 755c79c commit b4a48af
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 1 deletion.
48 changes: 48 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,9 @@
"additionalProperties": false,
"description": "Information about the ownership certificate and property owners, if different than the applicant",
"properties": {
"agriculturalTenants": {
"type": "boolean"
},
"certificate": {
"enum": [
"a",
Expand All @@ -5180,13 +5185,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';
/**
* @desscription 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

0 comments on commit b4a48af

Please sign in to comment.