UNPKG

ofx-data-extractor

Version:

A module written in TypeScript that provides a utility to extract data from an OFX file in Node.js and Browser

23 lines (22 loc) 1.02 kB
/// <reference types="node" /> /// <reference types="node" /> import { ExtractorConfig, MetaData, NormalizeOptions, NormalizedOfxData, OfxDiagnostic, ValidationReport } from '../@types/common'; import { OfxResponse, OfxStructure } from '../@types/ofx/index'; import { StatementTransaction } from '../@types/ofx/common'; export declare class Ofx { private extractor; constructor(data: string, config?: ExtractorConfig); getType(): import("../@types/common").Types; static fromBuffer(data: Buffer): Ofx; static fromBlob(blob: Blob): Promise<Ofx>; config(config: ExtractorConfig): this; getHeaders(): MetaData; getBankTransferList(): StatementTransaction[]; getCreditCardTransferList(): StatementTransaction[]; getTransactionsSummary(): import("../@types/common").TransactionsSummary; getContent(): OfxStructure; toJson(): OfxResponse; toNormalized(options?: NormalizeOptions): NormalizedOfxData; validate(): ValidationReport; getWarnings(): OfxDiagnostic[]; }