39 lines
1.0 KiB
TypeScript

export interface RepresentOffice {
type?: string;
tel?: string;
fax?: string;
postal?: string;
}
export interface RepresentRepresentative {
name: string;
email: string | null;
elected_office: string;
district_name: string;
party_name: string | null;
representative_set_name: string;
url: string;
photo_url: string | null;
offices: RepresentOffice[];
}
export interface RepresentPostalCodeResponse {
city: string | null;
province: string | null;
centroid: {
type: string;
coordinates: [number, number];
} | null;
representatives_centroid: RepresentRepresentative[];
representatives_concordance: RepresentRepresentative[];
}
declare class RepresentApiClient {
private baseUrl;
constructor();
getByPostalCode(code: string): Promise<RepresentPostalCodeResponse>;
testConnection(): Promise<{
ok: boolean;
message: string;
}>;
}
export declare const representApiClient: RepresentApiClient;
export {};
//# sourceMappingURL=represent-api.client.d.ts.map