UNPKG

read-gedcom

Version:
30 lines 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SelectionEvent = void 0; const mixin_1 = require("./mixin"); const internal_1 = require("./internal"); class SelectionEvent extends (0, mixin_1.SelectionWithAddressMixin)((0, mixin_1.SelectionWithMultimediaMixin)((0, mixin_1.SelectionWithNoteSourceCitationMixin)(internal_1.SelectionAny))) { valueAsHappened() { return this.value().map(v => v ? (v === "Y" /* ValueEvent.Yes */ ? true : null) : false); } getType() { return this.get("TYPE" /* Tag.Type */); } getDate() { return this.get("DATE" /* Tag.Date */, null, internal_1.SelectionDate); } getPlace() { return this.get("PLAC" /* Tag.Place */, null, internal_1.SelectionPlace); } getResponsibleAgency() { return this.get("AGNC" /* Tag.Agency */); } getReligiousAffiliation() { return this.get("RELI" /* Tag.Religion */); } getCause() { return this.get("CAUS" /* Tag.Cause */); } } exports.SelectionEvent = SelectionEvent; //# sourceMappingURL=SelectionEvent.js.map