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

14 lines (13 loc) 567 B
import { OfxResponse, OfxStructure } from '../@types/ofx/index'; import { ExtractorConfig, MetaData, TransactionsSummary, Types } 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; }