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
33 lines (32 loc) • 1.44 kB
TypeScript
import type { ExtractorConfig, MetaData, NormalizeOptions, NormalizedOfxData, OfxDiagnostic, TransactionsSummary, ValidationReport } from '../@types/common';
import { IExtractor } from '../interfaces/extractor.interface';
import { CustomExtractor } from '../interfaces/custom-extractor.interface';
import { Reader } from './reader';
import { OfxResponse, OfxStructure } from '../@types/ofx/index';
import { StatementTransaction } from '../@types/ofx/common';
export declare class Extractor<T = any> implements IExtractor<T> {
private readonly customExtractor?;
private customExtractorInstance;
private dataReaderInstance;
private diagnostics;
constructor(customExtractor?: CustomExtractor | undefined);
data(readData: Reader): this;
config(config: ExtractorConfig): this;
getType(): import("../@types/common").Types;
private beginOperation;
private getParserMode;
private pushWarning;
private safelyExecute;
private getHeadersInternal;
private getContentInternal;
private getResponseInternal;
getHeaders(): MetaData;
getBankTransferList(): StatementTransaction[];
getCreditCardTransferList(): StatementTransaction[];
getTransactionsSummary(): TransactionsSummary;
getContent(): OfxStructure;
toJson(): OfxResponse;
toNormalized(options?: NormalizeOptions): NormalizedOfxData;
validate(): ValidationReport;
getWarnings(): OfxDiagnostic[];
}