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
17 lines (16 loc) • 772 B
TypeScript
import { OfxResponse, OfxStructure } from '../@types/ofx/index';
import { ExtractorConfig, MetaData, NormalizeOptions, NormalizedOfxData, TransactionsSummary, Types, ValidationReport, OfxDiagnostic } from '../@types/common';
import type { StatementTransaction } from '../@types/ofx/common';
export interface IExtractor<T> {
getType(): Types;
config(config: ExtractorConfig): this;
getHeaders(): MetaData;
getBankTransferList(): StatementTransaction[];
getCreditCardTransferList(): StatementTransaction[];
getTransactionsSummary(): TransactionsSummary;
getContent(): OfxStructure;
toJson(): OfxResponse;
toNormalized(options?: NormalizeOptions): NormalizedOfxData;
validate(): ValidationReport;
getWarnings(): OfxDiagnostic[];
}