UNPKG

ci-validation

Version:

🇺🇾 Complete TypeScript/JavaScript library for validating Uruguayan CI (Cédula de Identidad) with official algorithm and government service integration

42 lines • 1.06 kB
interface FarmashopResponse { statusCode: number; responseContent: ResponseContent; internalErrorMessage: null; internalRequestInfo: null; isFarmashopAPIError: boolean; isSuccessfulStatusCode: boolean; } interface ResponseContent { valid: boolean; message: string; options: Option[]; } interface Option { type: string; value: string; checksums: string; } declare class Farmashop { private ci; private endpoint; headers: { "Accept-Encoding": string; AppRequestStackTrace: string; AppVersion: string; Authorization: string; BuildConfiguration: string; ChannelName: string; Connection: string; DeviceManufacturer: string; DeviceModel: string; DeviceOS: string; DeviceOSVersion: string; Host: string; SessionId: string; "User-Agent": string; }; constructor(ci: string); getPoints(): Promise<FarmashopResponse>; } export default Farmashop; //# sourceMappingURL=Farmashop.d.ts.map