camtts
Version:
CAMT parser for Typescript
63 lines (62 loc) • 2.41 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Report_1 = require("./Report");
var Base_1 = require("./Base");
var AccountReport = /** @class */ (function () {
function AccountReport(doc) {
this.doc = doc;
}
Object.defineProperty(AccountReport.prototype, "groupHeader", {
get: function () {
return new GroupHeader(this.doc.getElementsByTagName('GrpHdr')[0]);
},
enumerable: true,
configurable: true
});
Object.defineProperty(AccountReport.prototype, "report", {
get: function () {
return new Report_1.Report(this.doc.getElementsByTagName('Rpt')[0]);
},
enumerable: true,
configurable: true
});
return AccountReport;
}());
exports.AccountReport = AccountReport;
var GroupHeader = /** @class */ (function (_super) {
__extends(GroupHeader, _super);
function GroupHeader() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(GroupHeader.prototype, "messageId", {
get: function () {
var _a, _b;
return (_b = (_a = this.element) === null || _a === void 0 ? void 0 : _a.getElementsByTagName('MsgId')[0]) === null || _b === void 0 ? void 0 : _b.textContent;
},
enumerable: true,
configurable: true
});
Object.defineProperty(GroupHeader.prototype, "creationDateTime", {
get: function () {
var _a, _b;
return (_b = (_a = this.element) === null || _a === void 0 ? void 0 : _a.getElementsByTagName('CreDtTm')[0]) === null || _b === void 0 ? void 0 : _b.textContent;
},
enumerable: true,
configurable: true
});
return GroupHeader;
}(Base_1.CAMTElement));
exports.GroupHeader = GroupHeader;