statement-parser-fab
Version:
Parse bank and credit card statements. Updated fork with FAB (First Abu Dhabi Bank) support and maintained dependencies.
35 lines (34 loc) • 1.98 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parsers = exports.isParserType = exports.ParserType = void 0;
const augment_vir_1 = require("augment-vir");
const chase_prime_visa_credit_card_parser_1 = require("./implemented-parsers/chase-prime-visa-credit-card-parser");
const citi_costco_visa_credit_card_parser_1 = require("./implemented-parsers/citi-costco-visa-credit-card-parser");
const fab_bank_account_parser_1 = require("./implemented-parsers/fab-bank-account-parser");
const paypal_parser_1 = require("./implemented-parsers/paypal-parser");
const usaa_bank_account_parser_1 = require("./implemented-parsers/usaa-bank-account-parser");
const usaa_visa_credit_card_parser_1 = require("./implemented-parsers/usaa-visa-credit-card-parser");
var ParserType;
(function (ParserType) {
ParserType["ChasePrimeVisaCredit"] = "chase-prime-visa-credit";
ParserType["CitiCostcoVisaCredit"] = "citi-costco-visa-credit";
ParserType["FabBank"] = "fab-bank";
ParserType["UsaaBank"] = "usaa-bank";
ParserType["UsaaVisaCredit"] = "usaa-visa-credit";
ParserType["Paypal"] = "paypal";
})(ParserType = exports.ParserType || (exports.ParserType = {}));
function isParserType(x) {
if (typeof x === 'string' && (0, augment_vir_1.getEnumTypedValues)(ParserType).includes(x)) {
return true;
}
return false;
}
exports.isParserType = isParserType;
exports.parsers = {
[ParserType.ChasePrimeVisaCredit]: chase_prime_visa_credit_card_parser_1.chasePrimeVisaCreditCardParser,
[ParserType.CitiCostcoVisaCredit]: citi_costco_visa_credit_card_parser_1.citiCostcoVisaCreditCardParser,
[ParserType.FabBank]: fab_bank_account_parser_1.fabBankAccountParser,
[ParserType.Paypal]: paypal_parser_1.paypalStatementParser,
[ParserType.UsaaBank]: usaa_bank_account_parser_1.usaaBankAccountStatementParser,
[ParserType.UsaaVisaCredit]: usaa_visa_credit_card_parser_1.usaaVisaCreditCardStatementParser,
};