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
30 lines (29 loc) • 858 B
TypeScript
export interface Status {
CODE: number | string;
SEVERITY: 'INFO' | 'WARN' | 'ERROR';
MESSAGE?: string;
[key: string]: any;
}
export type AccountType = 'CHECKING' | 'SAVINGS' | 'CREDITLINE' | 'MONEYMRKT';
export type BankAccount = {
BANKID: string;
ACCTID: string;
ACCTTYPE: AccountType;
[key: string]: any;
};
export type TransactionType = 'CREDIT' | 'DEBIT' | 'INT' | 'DIV' | 'FEE' | 'SRVCHG' | 'DEP' | 'ATM' | 'POS' | 'XFER' | 'CHECK' | 'PAYMENT' | 'CASH' | 'DIRECTDEP' | 'DIRECTDEBIT' | 'REPEATPMT' | 'OTHER';
export interface Balance {
BALAMT: number;
DTASOF: string;
[key: string]: any;
}
export type StatementTransaction = {
TRNTYPE: TransactionType;
DTPOSTED: string;
DTAVAIL?: string;
TRNAMT: number;
FITID: string;
CHECKNUM?: string;
MEMO?: string;
[key: string]: any;
};