correios-webservice
Version:
Cliente NodeJS para consumir a api nova dos Correios (CWS)
29 lines (28 loc) • 751 B
TypeScript
import { Auth } from "../auth";
import { ClientConfig } from "../client";
import { Endpoint } from "../endpoint";
interface PostcodeAddressResponse {
cep: string;
uf: string;
numeroLocalidade: number;
localidade: string;
logradouro: string;
tipoLogradouro: string;
nomeLogradouro: string;
complemento: string;
abreviatura: string;
bairro: string;
tipoCEP: number;
lado: string;
numeroInicial: number;
numeroFinal: number;
}
declare class Address extends Endpoint {
get(postcode: string): Promise<PostcodeAddressResponse>;
protected getPrefix(): string;
}
declare class Postcode {
enderecos: Address;
constructor(auth: Auth, config: ClientConfig);
}
export { Postcode, Address };