@webuildbots/webuildbots-sdk
Version:
webuildbots sdk
37 lines (36 loc) • 818 B
TypeScript
export interface Locality {
address?: {
address1?: string;
address2?: string;
district?: string;
city?: string;
region?: string;
postalCode?: string;
postalAreaCode?: string;
country?: string;
};
countryCode?: string;
language?: string;
lat?: number;
lon?: number;
easting?: number;
northing?: number;
radius?: number;
name?: string;
uprn?: string;
isPostcodeUpdated?: boolean;
postcodeConfirmed?: boolean;
setByForm?: boolean;
rejected?: boolean;
userInput?: {
address1?: string;
postalCode?: string;
};
}
export interface FormLocality extends Locality {
address: Locality['address'];
userInput: {
address1: string;
postalCode: string;
};
}