sec-edgar-api
Version:
Fetch and parse SEC earnings reports and other filings. Useful for financial analysis.
44 lines (43 loc) • 2.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var XMLParserLegacy_1 = require("./XMLParserLegacy");
var parsers_1 = require("./parsers");
var DocumentParser = /** @class */ (function () {
function DocumentParser(args) {
var _a = args !== null && args !== void 0 ? args : {}, _b = _a.parser, parser = _b === void 0 ? new XMLParserLegacy_1.default() : _b, _c = _a.parsersByName, parsersByName = _c === void 0 ? parsers_1.default : _c;
this.parser = parser;
this.parsersByName = parsersByName;
}
DocumentParser.prototype.parseForm4 = function (params) {
return this.parsersByName.parseForm4(params, this.parser);
};
DocumentParser.prototype.parseForm13g = function (params) {
return this.parsersByName.parseForm13g(params, this.parser);
};
DocumentParser.prototype.parseForm10k = function (params) {
return this.parsersByName.parseForm10k(params, this.parser);
};
DocumentParser.prototype.parseFormDef14a = function (params) {
return this.parsersByName.parseFormDef14a(params, this.parser);
};
DocumentParser.prototype.parseCurrentFilingsDaily = function (params) {
return this.parsersByName.parseCurrentFilingsDaily(params);
};
DocumentParser.prototype.parseInsiderTransactions = function (params) {
return this.parsersByName.parseInsiderTransactions(params);
};
DocumentParser.prototype.parseCompanies = function (params) {
return this.parsersByName.parseCompanies(params);
};
DocumentParser.prototype.parseCurrentFilings = function (params) {
return this.parsersByName.parseCurrentFilings(params);
};
DocumentParser.prototype.parseCurrentFilingsXbrl = function (params) {
return this.parsersByName.parseCurrentFilingsXbrl(params);
};
DocumentParser.prototype.parseXbrl = function (params) {
return this.parsersByName.parseXbrl(params);
};
return DocumentParser;
}());
exports.default = DocumentParser;