@treeviz/gedcom-parser 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/index.d.ts +2 -28
- package/dist/classes/index.js +6713 -21
- package/dist/classes/index.js.map +1 -0
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/index.js +7826 -24
- package/dist/cli/index.js.map +1 -0
- package/dist/constants/index.d.ts +49 -4
- package/dist/constants/index.js +5797 -4
- package/dist/constants/index.js.map +1 -0
- package/dist/factories/index.d.ts +202 -13
- package/dist/factories/index.js +5782 -8
- package/dist/factories/index.js.map +1 -0
- package/dist/index-BvW-KWJP.d.ts +1654 -0
- package/dist/index.d.ts +9 -28
- package/dist/index.js +7380 -35
- package/dist/index.js.map +1 -0
- package/dist/interfaces/index.d.ts +2 -12
- package/dist/interfaces/index.js +3 -1
- package/dist/interfaces/index.js.map +1 -0
- package/dist/kinship-translator/index.d.ts +146 -11
- package/dist/kinship-translator/index.js +5727 -9
- package/dist/kinship-translator/index.js.map +1 -0
- package/dist/place-parser-RlXCXZ8F.d.ts +37 -0
- package/dist/structures/index.d.ts +25 -27
- package/dist/structures/index.js +3 -1
- package/dist/structures/index.js.map +1 -0
- package/dist/types/index.d.ts +69 -8
- package/dist/types/index.js +31 -6
- package/dist/types/index.js.map +1 -0
- package/dist/utils/index.d.ts +91 -18
- package/dist/utils/index.js +6953 -17
- package/dist/utils/index.js.map +1 -0
- package/package.json +4 -3
- package/dist/classes/common.d.ts +0 -91
- package/dist/classes/common.d.ts.map +0 -1
- package/dist/classes/common.js +0 -488
- package/dist/classes/date.d.ts +0 -27
- package/dist/classes/date.d.ts.map +0 -1
- package/dist/classes/date.js +0 -178
- package/dist/classes/fam.d.ts +0 -19
- package/dist/classes/fam.d.ts.map +0 -1
- package/dist/classes/fam.js +0 -38
- package/dist/classes/fams.d.ts +0 -16
- package/dist/classes/fams.d.ts.map +0 -1
- package/dist/classes/fams.js +0 -41
- package/dist/classes/gedcom.d.ts +0 -139
- package/dist/classes/gedcom.d.ts.map +0 -1
- package/dist/classes/gedcom.js +0 -910
- package/dist/classes/index.d.ts.map +0 -1
- package/dist/classes/indi.d.ts +0 -323
- package/dist/classes/indi.d.ts.map +0 -1
- package/dist/classes/indi.js +0 -2131
- package/dist/classes/indis.d.ts +0 -55
- package/dist/classes/indis.d.ts.map +0 -1
- package/dist/classes/indis.js +0 -457
- package/dist/classes/list.d.ts +0 -55
- package/dist/classes/list.d.ts.map +0 -1
- package/dist/classes/list.js +0 -440
- package/dist/classes/name.d.ts +0 -20
- package/dist/classes/name.d.ts.map +0 -1
- package/dist/classes/name.js +0 -48
- package/dist/classes/note.d.ts +0 -12
- package/dist/classes/note.d.ts.map +0 -1
- package/dist/classes/note.js +0 -46
- package/dist/classes/obje.d.ts +0 -12
- package/dist/classes/obje.d.ts.map +0 -1
- package/dist/classes/obje.js +0 -81
- package/dist/classes/objes.d.ts +0 -8
- package/dist/classes/objes.d.ts.map +0 -1
- package/dist/classes/objes.js +0 -13
- package/dist/classes/repo.d.ts +0 -11
- package/dist/classes/repo.d.ts.map +0 -1
- package/dist/classes/repo.js +0 -6
- package/dist/classes/repos.d.ts +0 -8
- package/dist/classes/repos.d.ts.map +0 -1
- package/dist/classes/repos.js +0 -13
- package/dist/classes/sour.d.ts +0 -11
- package/dist/classes/sour.d.ts.map +0 -1
- package/dist/classes/sour.js +0 -6
- package/dist/classes/sours.d.ts +0 -8
- package/dist/classes/sours.d.ts.map +0 -1
- package/dist/classes/sours.js +0 -13
- package/dist/classes/subm.d.ts +0 -10
- package/dist/classes/subm.d.ts.map +0 -1
- package/dist/classes/subm.js +0 -6
- package/dist/classes/subms.d.ts +0 -8
- package/dist/classes/subms.d.ts.map +0 -1
- package/dist/classes/subms.js +0 -13
- package/dist/cli/commands/convert.d.ts +0 -3
- package/dist/cli/commands/convert.d.ts.map +0 -1
- package/dist/cli/commands/convert.js +0 -83
- package/dist/cli/commands/extract.d.ts +0 -3
- package/dist/cli/commands/extract.d.ts.map +0 -1
- package/dist/cli/commands/extract.js +0 -85
- package/dist/cli/commands/find.d.ts +0 -3
- package/dist/cli/commands/find.d.ts.map +0 -1
- package/dist/cli/commands/find.js +0 -97
- package/dist/cli/commands/info.d.ts +0 -3
- package/dist/cli/commands/info.d.ts.map +0 -1
- package/dist/cli/commands/info.js +0 -80
- package/dist/cli/commands/merge.d.ts +0 -3
- package/dist/cli/commands/merge.d.ts.map +0 -1
- package/dist/cli/commands/merge.js +0 -61
- package/dist/cli/commands/relatives.d.ts +0 -3
- package/dist/cli/commands/relatives.d.ts.map +0 -1
- package/dist/cli/commands/relatives.js +0 -107
- package/dist/cli/commands/show.d.ts +0 -3
- package/dist/cli/commands/show.d.ts.map +0 -1
- package/dist/cli/commands/show.js +0 -176
- package/dist/cli/commands/stats.d.ts +0 -3
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -59
- package/dist/cli/commands/validate.d.ts +0 -3
- package/dist/cli/commands/validate.d.ts.map +0 -1
- package/dist/cli/commands/validate.js +0 -148
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/utils/formatters.d.ts +0 -69
- package/dist/cli/utils/formatters.d.ts.map +0 -1
- package/dist/cli/utils/formatters.js +0 -125
- package/dist/cli/utils/helpers.d.ts +0 -21
- package/dist/cli/utils/helpers.d.ts.map +0 -1
- package/dist/cli/utils/helpers.js +0 -58
- package/dist/constants/constants.d.ts +0 -14
- package/dist/constants/constants.d.ts.map +0 -1
- package/dist/constants/constants.js +0 -13
- package/dist/constants/filters.d.ts +0 -18
- package/dist/constants/filters.d.ts.map +0 -1
- package/dist/constants/filters.js +0 -44
- package/dist/constants/index.d.ts.map +0 -1
- package/dist/constants/orders.d.ts +0 -17
- package/dist/constants/orders.d.ts.map +0 -1
- package/dist/constants/orders.js +0 -240
- package/dist/factories/cache-factory.d.ts +0 -30
- package/dist/factories/cache-factory.d.ts.map +0 -1
- package/dist/factories/cache-factory.js +0 -43
- package/dist/factories/date-locale-factory.d.ts +0 -30
- package/dist/factories/date-locale-factory.d.ts.map +0 -1
- package/dist/factories/date-locale-factory.js +0 -34
- package/dist/factories/i18n-factory.d.ts +0 -40
- package/dist/factories/i18n-factory.d.ts.map +0 -1
- package/dist/factories/i18n-factory.js +0 -44
- package/dist/factories/index.d.ts.map +0 -1
- package/dist/factories/kinship-factory.d.ts +0 -38
- package/dist/factories/kinship-factory.d.ts.map +0 -1
- package/dist/factories/kinship-factory.js +0 -35
- package/dist/factories/place-parser-provider.d.ts +0 -32
- package/dist/factories/place-parser-provider.d.ts.map +0 -1
- package/dist/factories/place-parser-provider.js +0 -35
- package/dist/factories/place-translator-provider.d.ts +0 -32
- package/dist/factories/place-translator-provider.d.ts.map +0 -1
- package/dist/factories/place-translator-provider.js +0 -35
- package/dist/index.d.ts.map +0 -1
- package/dist/interfaces/common.d.ts +0 -43
- package/dist/interfaces/common.d.ts.map +0 -1
- package/dist/interfaces/common.js +0 -1
- package/dist/interfaces/fam.d.ts +0 -11
- package/dist/interfaces/fam.d.ts.map +0 -1
- package/dist/interfaces/fam.js +0 -1
- package/dist/interfaces/fams.d.ts +0 -9
- package/dist/interfaces/fams.d.ts.map +0 -1
- package/dist/interfaces/fams.js +0 -1
- package/dist/interfaces/gedcom.d.ts +0 -30
- package/dist/interfaces/gedcom.d.ts.map +0 -1
- package/dist/interfaces/gedcom.js +0 -1
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/indi.d.ts +0 -113
- package/dist/interfaces/indi.d.ts.map +0 -1
- package/dist/interfaces/indi.js +0 -1
- package/dist/interfaces/indis.d.ts +0 -31
- package/dist/interfaces/indis.d.ts.map +0 -1
- package/dist/interfaces/indis.js +0 -1
- package/dist/interfaces/list.d.ts +0 -52
- package/dist/interfaces/list.d.ts.map +0 -1
- package/dist/interfaces/list.js +0 -1
- package/dist/interfaces/obje.d.ts +0 -7
- package/dist/interfaces/obje.d.ts.map +0 -1
- package/dist/interfaces/obje.js +0 -1
- package/dist/interfaces/repo.d.ts +0 -7
- package/dist/interfaces/repo.d.ts.map +0 -1
- package/dist/interfaces/repo.js +0 -1
- package/dist/interfaces/sour.d.ts +0 -7
- package/dist/interfaces/sour.d.ts.map +0 -1
- package/dist/interfaces/sour.js +0 -1
- package/dist/interfaces/subm.d.ts +0 -6
- package/dist/interfaces/subm.d.ts.map +0 -1
- package/dist/interfaces/subm.js +0 -1
- package/dist/kinship-translator/index.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.basic.d.ts +0 -30
- package/dist/kinship-translator/kinship-translator.basic.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.basic.js +0 -74
- package/dist/kinship-translator/kinship-translator.d.ts +0 -26
- package/dist/kinship-translator/kinship-translator.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.de.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.de.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.de.js +0 -180
- package/dist/kinship-translator/kinship-translator.en.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.en.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.en.js +0 -182
- package/dist/kinship-translator/kinship-translator.es.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.es.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.es.js +0 -181
- package/dist/kinship-translator/kinship-translator.fr.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.fr.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.fr.js +0 -181
- package/dist/kinship-translator/kinship-translator.hu.d.ts +0 -19
- package/dist/kinship-translator/kinship-translator.hu.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.hu.js +0 -226
- package/dist/kinship-translator/kinship-translator.interface.d.ts +0 -19
- package/dist/kinship-translator/kinship-translator.interface.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.interface.js +0 -1
- package/dist/kinship-translator/kinship-translator.js +0 -103
- package/dist/kinship-translator/patterns.de.d.ts +0 -2
- package/dist/kinship-translator/patterns.de.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.de.js +0 -14
- package/dist/kinship-translator/patterns.en.d.ts +0 -2
- package/dist/kinship-translator/patterns.en.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.en.js +0 -14
- package/dist/kinship-translator/patterns.es.d.ts +0 -2
- package/dist/kinship-translator/patterns.es.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.es.js +0 -14
- package/dist/kinship-translator/patterns.fr.d.ts +0 -2
- package/dist/kinship-translator/patterns.fr.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.fr.js +0 -14
- package/dist/kinship-translator/patterns.hu.d.ts +0 -6
- package/dist/kinship-translator/patterns.hu.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.hu.js +0 -97
- package/dist/kinship-translator/translators.d.ts +0 -6
- package/dist/kinship-translator/translators.d.ts.map +0 -1
- package/dist/kinship-translator/translators.js +0 -5
- package/dist/kinship-translator/types.d.ts +0 -9
- package/dist/kinship-translator/types.d.ts.map +0 -1
- package/dist/kinship-translator/types.js +0 -1
- package/dist/structures/address.d.ts +0 -14
- package/dist/structures/address.d.ts.map +0 -1
- package/dist/structures/address.js +0 -1
- package/dist/structures/association.d.ts +0 -13
- package/dist/structures/association.d.ts.map +0 -1
- package/dist/structures/association.js +0 -1
- package/dist/structures/change-date.d.ts +0 -8
- package/dist/structures/change-date.d.ts.map +0 -1
- package/dist/structures/change-date.js +0 -1
- package/dist/structures/creation-date.d.ts +0 -7
- package/dist/structures/creation-date.d.ts.map +0 -1
- package/dist/structures/creation-date.js +0 -1
- package/dist/structures/date.d.ts +0 -9
- package/dist/structures/date.d.ts.map +0 -1
- package/dist/structures/date.js +0 -1
- package/dist/structures/event-detail-structure.d.ts +0 -25
- package/dist/structures/event-detail-structure.d.ts.map +0 -1
- package/dist/structures/event-detail-structure.js +0 -1
- package/dist/structures/family.d.ts +0 -34
- package/dist/structures/family.d.ts.map +0 -1
- package/dist/structures/family.js +0 -1
- package/dist/structures/gedcom.d.ts +0 -59
- package/dist/structures/gedcom.d.ts.map +0 -1
- package/dist/structures/gedcom.js +0 -1
- package/dist/structures/index.d.ts.map +0 -1
- package/dist/structures/individual-event-detail-structure.d.ts +0 -9
- package/dist/structures/individual-event-detail-structure.d.ts.map +0 -1
- package/dist/structures/individual-event-detail-structure.js +0 -1
- package/dist/structures/individual-event-structure.d.ts +0 -83
- package/dist/structures/individual-event-structure.d.ts.map +0 -1
- package/dist/structures/individual-event-structure.js +0 -1
- package/dist/structures/individual.d.ts +0 -40
- package/dist/structures/individual.d.ts.map +0 -1
- package/dist/structures/individual.js +0 -1
- package/dist/structures/lds-ordinance-detail.d.ts +0 -17
- package/dist/structures/lds-ordinance-detail.d.ts.map +0 -1
- package/dist/structures/lds-ordinance-detail.js +0 -1
- package/dist/structures/lds-spouse-sealing.d.ts +0 -7
- package/dist/structures/lds-spouse-sealing.d.ts.map +0 -1
- package/dist/structures/lds-spouse-sealing.js +0 -1
- package/dist/structures/marriage-date.d.ts +0 -11
- package/dist/structures/marriage-date.d.ts.map +0 -1
- package/dist/structures/marriage-date.js +0 -1
- package/dist/structures/multimedia-link.d.ts +0 -16
- package/dist/structures/multimedia-link.d.ts.map +0 -1
- package/dist/structures/multimedia-link.js +0 -1
- package/dist/structures/non-event.d.ts +0 -12
- package/dist/structures/non-event.d.ts.map +0 -1
- package/dist/structures/non-event.js +0 -1
- package/dist/structures/note.d.ts +0 -16
- package/dist/structures/note.d.ts.map +0 -1
- package/dist/structures/note.js +0 -1
- package/dist/structures/personal-name-pieces.d.ts +0 -11
- package/dist/structures/personal-name-pieces.d.ts.map +0 -1
- package/dist/structures/personal-name-pieces.js +0 -1
- package/dist/structures/personal-name.d.ts +0 -16
- package/dist/structures/personal-name.d.ts.map +0 -1
- package/dist/structures/personal-name.js +0 -1
- package/dist/structures/place.d.ts +0 -20
- package/dist/structures/place.d.ts.map +0 -1
- package/dist/structures/place.js +0 -1
- package/dist/structures/repository.d.ts +0 -6
- package/dist/structures/repository.d.ts.map +0 -1
- package/dist/structures/repository.js +0 -1
- package/dist/structures/source-citation.d.ts +0 -27
- package/dist/structures/source-citation.d.ts.map +0 -1
- package/dist/structures/source-citation.js +0 -1
- package/dist/structures/source-repository-citation.d.ts +0 -13
- package/dist/structures/source-repository-citation.d.ts.map +0 -1
- package/dist/structures/source-repository-citation.js +0 -1
- package/dist/structures/source.d.ts +0 -28
- package/dist/structures/source.d.ts.map +0 -1
- package/dist/structures/source.js +0 -1
- package/dist/types/ancestry-media.d.ts +0 -65
- package/dist/types/ancestry-media.d.ts.map +0 -1
- package/dist/types/ancestry-media.js +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/settings.d.ts +0 -12
- package/dist/types/settings.d.ts.map +0 -1
- package/dist/types/settings.js +0 -1
- package/dist/types/types.d.ts +0 -225
- package/dist/types/types.d.ts.map +0 -1
- package/dist/types/types.js +0 -26
- package/dist/utils/cache.d.ts +0 -22
- package/dist/utils/cache.d.ts.map +0 -1
- package/dist/utils/cache.js +0 -57
- package/dist/utils/common-creator.d.ts +0 -13
- package/dist/utils/common-creator.d.ts.map +0 -1
- package/dist/utils/common-creator.js +0 -72
- package/dist/utils/date-formatter.d.ts +0 -35
- package/dist/utils/date-formatter.d.ts.map +0 -1
- package/dist/utils/date-formatter.js +0 -207
- package/dist/utils/get-all-prop.d.ts +0 -4
- package/dist/utils/get-all-prop.d.ts.map +0 -1
- package/dist/utils/get-all-prop.js +0 -5
- package/dist/utils/get-family-with.d.ts +0 -5
- package/dist/utils/get-family-with.d.ts.map +0 -1
- package/dist/utils/get-family-with.js +0 -11
- package/dist/utils/get-places.d.ts +0 -21
- package/dist/utils/get-places.d.ts.map +0 -1
- package/dist/utils/get-places.js +0 -77
- package/dist/utils/get-product-details.d.ts +0 -4
- package/dist/utils/get-product-details.d.ts.map +0 -1
- package/dist/utils/get-product-details.js +0 -6
- package/dist/utils/get-raw-size.d.ts +0 -2
- package/dist/utils/get-raw-size.d.ts.map +0 -1
- package/dist/utils/get-raw-size.js +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/logger.d.ts +0 -3
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -11
- package/dist/utils/name-formatter.d.ts +0 -10
- package/dist/utils/name-formatter.d.ts.map +0 -1
- package/dist/utils/name-formatter.js +0 -45
- package/dist/utils/nested-group.d.ts +0 -4
- package/dist/utils/nested-group.d.ts.map +0 -1
- package/dist/utils/nested-group.js +0 -34
- package/dist/utils/ordinalize.d.ts +0 -3
- package/dist/utils/ordinalize.d.ts.map +0 -1
- package/dist/utils/ordinalize.js +0 -104
- package/dist/utils/parser.d.ts +0 -17
- package/dist/utils/parser.d.ts.map +0 -1
- package/dist/utils/parser.js +0 -321
- package/dist/utils/place-parser.d.ts +0 -16
- package/dist/utils/place-parser.d.ts.map +0 -1
- package/dist/utils/place-parser.js +0 -46
- package/dist/utils/place-translator.d.ts +0 -6
- package/dist/utils/place-translator.d.ts.map +0 -1
- package/dist/utils/place-translator.js +0 -8
- package/dist/utils/place-types.d.ts +0 -27
- package/dist/utils/place-types.d.ts.map +0 -1
- package/dist/utils/place-types.js +0 -14
- package/dist/utils/range.d.ts +0 -19
- package/dist/utils/range.d.ts.map +0 -1
- package/dist/utils/range.js +0 -265
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-repository-citation.d.ts","sourceRoot":"","sources":["../../src/structures/source-repository-citation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,cAAc,MAAM,QAAQ,CAAC;AAEzC,UAAU,kCAAmC,SAAQ,MAAM;IAC1D,IAAI,CAAC,EAAE,MAAM,GAAG;QACf,IAAI,CAAC,EAAE,MAAM,GAAG;YACf,IAAI,CAAC,EAAE,MAAM,GAAG;gBACf,MAAM,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;SACF,CAAC;KACF,GAAG,cAAc,CAAC;CACnB;AAED,eAAe,kCAAkC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Common } from "../classes/common";
|
|
2
|
-
import type IChangeDateStructure from "./change-date";
|
|
3
|
-
import type ICreationDateStructure from "./creation-date";
|
|
4
|
-
import type IMultimediaLinkStructure from "./multimedia-link";
|
|
5
|
-
import type INoteStructure from "./note";
|
|
6
|
-
import type IPlaceStructure from "./place";
|
|
7
|
-
import type ISourceRepositoryCitationStructure from "./source-repository-citation";
|
|
8
|
-
interface ISourceStructure extends Common, IChangeDateStructure, ICreationDateStructure, ISourceRepositoryCitationStructure, IMultimediaLinkStructure, INoteStructure {
|
|
9
|
-
DATA?: Common & {
|
|
10
|
-
EVEN?: Common & {
|
|
11
|
-
DATE?: Common & {
|
|
12
|
-
PHRASE?: Common;
|
|
13
|
-
};
|
|
14
|
-
} & IPlaceStructure;
|
|
15
|
-
AGNC?: Common;
|
|
16
|
-
} & INoteStructure;
|
|
17
|
-
AUTH?: Common;
|
|
18
|
-
TITL?: Common;
|
|
19
|
-
ABBR?: Common;
|
|
20
|
-
PUBL?: Common;
|
|
21
|
-
TEXT?: Common & {
|
|
22
|
-
MIME?: Common;
|
|
23
|
-
LANG?: Common;
|
|
24
|
-
};
|
|
25
|
-
_APID?: Common;
|
|
26
|
-
}
|
|
27
|
-
export default ISourceStructure;
|
|
28
|
-
//# sourceMappingURL=source.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../src/structures/source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,oBAAoB,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,sBAAsB,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,wBAAwB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,cAAc,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,eAAe,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,kCAAkC,MAAM,8BAA8B,CAAC;AAEnF,UAAU,gBACT,SACC,MAAM,EACN,oBAAoB,EACpB,sBAAsB,EACtB,kCAAkC,EAClC,wBAAwB,EACxB,cAAc;IACf,IAAI,CAAC,EAAE,MAAM,GAAG;QACf,IAAI,CAAC,EAAE,MAAM,GAAG;YACf,IAAI,CAAC,EAAE,MAAM,GAAG;gBACf,MAAM,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;SACF,GAAG,eAAe,CAAC;QACpB,IAAI,CAAC,EAAE,MAAM,CAAC;KACd,GAAG,cAAc,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export interface AncestryMedia {
|
|
2
|
-
title: string;
|
|
3
|
-
type: string;
|
|
4
|
-
ext: string;
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
category: string;
|
|
8
|
-
subcategory: string;
|
|
9
|
-
date: string;
|
|
10
|
-
description: string;
|
|
11
|
-
location: string;
|
|
12
|
-
id: string;
|
|
13
|
-
collectionId: number;
|
|
14
|
-
url: string;
|
|
15
|
-
isOwner: boolean;
|
|
16
|
-
primaryPhoto: boolean;
|
|
17
|
-
createdDate: string;
|
|
18
|
-
owner: {
|
|
19
|
-
id: string;
|
|
20
|
-
date: string;
|
|
21
|
-
displayName: string;
|
|
22
|
-
photoURL: string;
|
|
23
|
-
photoId: string;
|
|
24
|
-
photoUrl: string;
|
|
25
|
-
};
|
|
26
|
-
orientation: "landscape" | "portrait";
|
|
27
|
-
rights: {
|
|
28
|
-
canLinkToTree: boolean;
|
|
29
|
-
canEdit: boolean;
|
|
30
|
-
canLinkToPerson: boolean;
|
|
31
|
-
canLinkToFact: boolean;
|
|
32
|
-
canShare: boolean;
|
|
33
|
-
};
|
|
34
|
-
originWebAddress: string;
|
|
35
|
-
originSite: string;
|
|
36
|
-
ms_params: string;
|
|
37
|
-
ms_lookup_id: string;
|
|
38
|
-
originalMid: string;
|
|
39
|
-
tags: [
|
|
40
|
-
{
|
|
41
|
-
id: string;
|
|
42
|
-
t: string;
|
|
43
|
-
rect: {
|
|
44
|
-
x: number;
|
|
45
|
-
y: number;
|
|
46
|
-
w: number;
|
|
47
|
-
h: number;
|
|
48
|
-
};
|
|
49
|
-
tgid: {
|
|
50
|
-
v: string;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
metadataxml: string;
|
|
55
|
-
previewUrl: string;
|
|
56
|
-
meta: {
|
|
57
|
-
comments: number;
|
|
58
|
-
likes: number;
|
|
59
|
-
private: boolean;
|
|
60
|
-
liked: boolean;
|
|
61
|
-
pinned: boolean;
|
|
62
|
-
};
|
|
63
|
-
faces: [];
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=ancestry-media.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ancestry-media.d.ts","sourceRoot":"","sources":["../../src/types/ancestry-media.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CA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E,CAAC;SACpB;KACD,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QACL,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,EAAE,OAAO,CAAC;QACf,MAAM,EAAE,OAAO,CAAC;KAChB,CAAC;IACF,KAAK,EAAE,EAAE,CAAC;CACV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EACX,WAAW,EACX,OAAO,EACP,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,MAAM,EACN,UAAU,EACV,MAAM,EACN,WAAW,EACX,GAAG,EACH,OAAO,EACP,QAAQ,EACR,cAAc,EACd,MAAM,EACN,cAAc,EACd,eAAe,EACf,KAAK,EACL,aAAa,EACb,eAAe,EACf,KAAK,EACL,WAAW,EACX,aAAa,EACb,WAAW,EACX,SAAS,EACT,UAAU,EACV,aAAa,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAG3D,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
package/dist/types/settings.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { LinkedPersons, MultiTag, NameOrder, PlaceOrder } from "./types";
|
|
2
|
-
export interface Settings {
|
|
3
|
-
maxGivennames: number;
|
|
4
|
-
maxSurnames: number;
|
|
5
|
-
showSuffix: boolean;
|
|
6
|
-
dateFormatPattern: string;
|
|
7
|
-
nameOrder: NameOrder;
|
|
8
|
-
placeOrder: PlaceOrder;
|
|
9
|
-
linkedPersons?: LinkedPersons;
|
|
10
|
-
linkingKey?: MultiTag;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/types/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE9E,MAAM,WAAW,QAAQ;IAExB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,QAAQ,CAAC;CACtB"}
|
package/dist/types/settings.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/types.d.ts
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import type { Common } from "../classes/common";
|
|
2
|
-
import type { Individuals } from "../classes/indis";
|
|
3
|
-
export type ConvertType = "FAM" | "INDI" | "_INDI" | "OBJE" | "SOUR" | "REPO" | "SUBM";
|
|
4
|
-
export type IndiKey = `@${"I" | "P" | "XI" | "XXI"}${number}@`;
|
|
5
|
-
export type FamKey = `@${"F" | "XF" | "XXF"}${number}@`;
|
|
6
|
-
export type ObjeKey = `@O${number}@`;
|
|
7
|
-
export type RepoKey = `@R${number}@`;
|
|
8
|
-
export type SourKey = `@S${number}@`;
|
|
9
|
-
export type SubmKey = `@SUBM${number}@`;
|
|
10
|
-
export type TagKey = `@T${number}@`;
|
|
11
|
-
export type UnknownKey = `@U${number}@`;
|
|
12
|
-
export type IdType = IndiKey | FamKey | ObjeKey | SourKey | RepoKey | SubmKey | UnknownKey;
|
|
13
|
-
export declare enum RelationType {
|
|
14
|
-
BIOLOGICAL = "biological",
|
|
15
|
-
ADOPTED = "adopted",
|
|
16
|
-
FOSTER = "foster",
|
|
17
|
-
SEALING = "sealing",
|
|
18
|
-
BIRTH = "birth",
|
|
19
|
-
STEP = "step"
|
|
20
|
-
}
|
|
21
|
-
export declare enum PartnerType {
|
|
22
|
-
SPOUSE = "spouse",
|
|
23
|
-
PARTNER = "partner",
|
|
24
|
-
FRIEND = "friend",
|
|
25
|
-
SINGLE = "single",
|
|
26
|
-
OTHER = "other",
|
|
27
|
-
UNKOWN = "unknown"
|
|
28
|
-
}
|
|
29
|
-
export interface NonStandard {
|
|
30
|
-
value?: any;
|
|
31
|
-
id?: any;
|
|
32
|
-
}
|
|
33
|
-
interface Tags {
|
|
34
|
-
_PRIM?: Common<"Y" | "N">;
|
|
35
|
-
_EXPORTED_FROM_SITE_ID?: Common;
|
|
36
|
-
_CLON?: Common;
|
|
37
|
-
_MSER?: Common;
|
|
38
|
-
_OID?: Common;
|
|
39
|
-
_LKID?: Common;
|
|
40
|
-
_PHOTO_RIN?: Common;
|
|
41
|
-
_MTTAG?: Common & {
|
|
42
|
-
NAME?: Common;
|
|
43
|
-
};
|
|
44
|
-
_MTCAT?: Common & {
|
|
45
|
-
NAME?: Common;
|
|
46
|
-
};
|
|
47
|
-
_SREL?: Common;
|
|
48
|
-
_FREL?: Common;
|
|
49
|
-
_MREL?: Common;
|
|
50
|
-
_MILT?: Common;
|
|
51
|
-
_MILTID?: Common;
|
|
52
|
-
_ORIG?: Common;
|
|
53
|
-
_LABEL?: Common;
|
|
54
|
-
_WLNK?: Common;
|
|
55
|
-
_MARNM?: Common;
|
|
56
|
-
_INDI?: Common;
|
|
57
|
-
_GUESSEDORIGINAL?: Common;
|
|
58
|
-
_FS_LINK?: Common;
|
|
59
|
-
_FS_ID?: Common;
|
|
60
|
-
_FS_MATCH?: Common;
|
|
61
|
-
_FS_SOUR?: Common;
|
|
62
|
-
_IS_ORPHAN_FAMILY?: Common<"Y" | "N">;
|
|
63
|
-
SCORE?: Common;
|
|
64
|
-
TEXT?: Common;
|
|
65
|
-
REF?: Common;
|
|
66
|
-
DISPLAYTEXT?: Common;
|
|
67
|
-
FAM?: Common;
|
|
68
|
-
INDIVIDUALINTERNALHYPERLINK?: Common;
|
|
69
|
-
OBJE?: Common;
|
|
70
|
-
FAMS?: Common;
|
|
71
|
-
FAMC?: Common;
|
|
72
|
-
ABBR?: Common;
|
|
73
|
-
ADDR?: Common;
|
|
74
|
-
ADR1?: Common;
|
|
75
|
-
ADR2?: Common;
|
|
76
|
-
ADOP?: Common;
|
|
77
|
-
AFN?: Common;
|
|
78
|
-
AGE?: Common;
|
|
79
|
-
ALIA?: Common;
|
|
80
|
-
ANUL?: Common;
|
|
81
|
-
ARVL?: Common;
|
|
82
|
-
AUTH?: Common;
|
|
83
|
-
BAPL?: Common;
|
|
84
|
-
BAPM?: Common;
|
|
85
|
-
BARM?: Common;
|
|
86
|
-
BASM?: Common;
|
|
87
|
-
BIRT?: Common;
|
|
88
|
-
CAST?: Common;
|
|
89
|
-
CAUS?: Common;
|
|
90
|
-
CENS?: Common;
|
|
91
|
-
CHIL?: Common;
|
|
92
|
-
CHR?: Common;
|
|
93
|
-
CHRA?: Common;
|
|
94
|
-
CITY?: Common;
|
|
95
|
-
CONC?: Common;
|
|
96
|
-
CONF?: Common;
|
|
97
|
-
CONT?: Common;
|
|
98
|
-
CONL?: Common;
|
|
99
|
-
CORP?: Common;
|
|
100
|
-
CTRY?: Common;
|
|
101
|
-
DATE?: Common;
|
|
102
|
-
YEAR?: Common;
|
|
103
|
-
MONTH?: Common;
|
|
104
|
-
DAY?: Common;
|
|
105
|
-
DEAT?: Common;
|
|
106
|
-
DESC?: Common;
|
|
107
|
-
DIV?: Common;
|
|
108
|
-
DIVF?: Common;
|
|
109
|
-
DSCR?: Common;
|
|
110
|
-
EDUC?: Common;
|
|
111
|
-
EMIG?: Common;
|
|
112
|
-
ENDL?: Common;
|
|
113
|
-
ENGA?: Common;
|
|
114
|
-
EVEN?: Common;
|
|
115
|
-
FCOM?: Common;
|
|
116
|
-
FOST?: Common;
|
|
117
|
-
GIVN?: Common;
|
|
118
|
-
GRAD?: Common;
|
|
119
|
-
HEAD?: Common;
|
|
120
|
-
HUSB?: Common;
|
|
121
|
-
ILLE?: Common;
|
|
122
|
-
IMMI?: Common;
|
|
123
|
-
INDI?: Common;
|
|
124
|
-
LANG?: Common;
|
|
125
|
-
LEGA?: Common;
|
|
126
|
-
LVG?: Common;
|
|
127
|
-
MARB?: Common;
|
|
128
|
-
MARC?: Common;
|
|
129
|
-
MARL?: Common;
|
|
130
|
-
MARR?: Common;
|
|
131
|
-
MARS?: Common;
|
|
132
|
-
MISC?: Common;
|
|
133
|
-
NAME?: Common;
|
|
134
|
-
NATI?: Common;
|
|
135
|
-
NATU?: Common;
|
|
136
|
-
NICK?: Common;
|
|
137
|
-
NOTE?: Common;
|
|
138
|
-
NPFX?: Common;
|
|
139
|
-
NSFX?: Common;
|
|
140
|
-
OCCU?: Common;
|
|
141
|
-
OCCUPATION?: Common;
|
|
142
|
-
OCCUPATIONS?: Common;
|
|
143
|
-
ORDI?: Common;
|
|
144
|
-
ORDL?: Common;
|
|
145
|
-
ORDN?: Common;
|
|
146
|
-
PEDI?: Common;
|
|
147
|
-
PART?: Common;
|
|
148
|
-
PHON?: Common;
|
|
149
|
-
PLAC?: Common;
|
|
150
|
-
POST?: Common;
|
|
151
|
-
PRIV?: Common;
|
|
152
|
-
PROB?: Common;
|
|
153
|
-
RACE?: Common;
|
|
154
|
-
RELI?: Common;
|
|
155
|
-
RESI?: Common;
|
|
156
|
-
RETI?: Common;
|
|
157
|
-
SEX?: Common<"F" | "M">;
|
|
158
|
-
SLGC?: Common;
|
|
159
|
-
SLGS?: Common;
|
|
160
|
-
SOUR?: Common;
|
|
161
|
-
SPFX?: Common;
|
|
162
|
-
SSN?: Common;
|
|
163
|
-
STAE?: Common;
|
|
164
|
-
STAT?: Common;
|
|
165
|
-
STIL?: Common;
|
|
166
|
-
SUBM?: Common;
|
|
167
|
-
SURN?: Common;
|
|
168
|
-
REPO?: Common;
|
|
169
|
-
TEL?: Common;
|
|
170
|
-
TEMP?: Common;
|
|
171
|
-
TIME?: Common;
|
|
172
|
-
TITL?: Common;
|
|
173
|
-
WIFE?: Common;
|
|
174
|
-
WILL?: Common;
|
|
175
|
-
RIN?: Common;
|
|
176
|
-
FILE?: Common;
|
|
177
|
-
AKA?: Common;
|
|
178
|
-
FACT?: Common;
|
|
179
|
-
TYPE?: Common;
|
|
180
|
-
VERS?: Common;
|
|
181
|
-
FORM?: Common;
|
|
182
|
-
WWW?: Common;
|
|
183
|
-
BAPT?: Common;
|
|
184
|
-
CHRI?: Common;
|
|
185
|
-
BURI?: Common;
|
|
186
|
-
}
|
|
187
|
-
export type Tag = keyof Tags | keyof NonStandard;
|
|
188
|
-
export type ListTag = `@@${keyof Tags}`;
|
|
189
|
-
export type MultiTag = ListTag | Tag | `${Tag}.${Tag}`;
|
|
190
|
-
export type FilterIterator<T, K> = (item: T, key: K | number, index: number) => boolean;
|
|
191
|
-
export type Filter<T = unknown> = Partial<Record<MultiTag, T>>;
|
|
192
|
-
export type RequiredFilter<T extends Tag, F = unknown> = Required<Pick<Filter<F>, T>> & Partial<Omit<Filter<F>, T>>;
|
|
193
|
-
export interface OrderDefinition {
|
|
194
|
-
direction: "ASC" | "DESC";
|
|
195
|
-
getter?: (orig: unknown, raw?: Common) => unknown;
|
|
196
|
-
}
|
|
197
|
-
export type Order = MultiTag | Partial<Record<MultiTag, OrderDefinition>>;
|
|
198
|
-
export type OrderIterator<T, K> = (itemA: T, keyA: K | number, itemB: T, keyB: K | number) => number;
|
|
199
|
-
export interface GroupDefinition {
|
|
200
|
-
getter?: (orig: unknown, raw?: Common) => unknown;
|
|
201
|
-
}
|
|
202
|
-
export type Group = MultiTag | Partial<Record<MultiTag, GroupDefinition>>;
|
|
203
|
-
export type GroupMarker = {
|
|
204
|
-
marker?: string;
|
|
205
|
-
group: string;
|
|
206
|
-
};
|
|
207
|
-
export type GroupIterator<T, K> = (item: T, key: K | number) => string | string[] | GroupMarker[];
|
|
208
|
-
export declare enum Range {
|
|
209
|
-
Year = 1,
|
|
210
|
-
FiveYear = 5,
|
|
211
|
-
Decade = 10,
|
|
212
|
-
FiftyYear = 50,
|
|
213
|
-
Century = 100
|
|
214
|
-
}
|
|
215
|
-
export type NestedGroup = {
|
|
216
|
-
[Key: string]: NestedGroup;
|
|
217
|
-
} & {
|
|
218
|
-
items?: Individuals;
|
|
219
|
-
length?: number;
|
|
220
|
-
};
|
|
221
|
-
export type NameOrder = "first-last" | "last-first";
|
|
222
|
-
export type PlaceOrder = "country-to-city" | "city-to-country";
|
|
223
|
-
export type LinkedPersons = "merge" | "clone" | "skip";
|
|
224
|
-
export {};
|
|
225
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,WAAW,GACpB,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEV,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,CAAC;AAC/D,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,CAAC;AACxD,MAAM,MAAM,OAAO,GAAG,KAAK,MAAM,GAAG,CAAC;AACrC,MAAM,MA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,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;CAClD;AAED,MAAM,MAAM,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;AAC1E,MAAM,MAAM,WAAW,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,CAAC,IAAI,CACjC,IAAI,EAAE,CAAC,EACP,GAAG,EAAE,CAAC,GAAG,MAAM,KACX,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;AAEvC,oBAAY,KAAK;IAChB,IAAI,IAAI;IACR,QAAQ,IAAI;IACZ,MAAM,KAAK;IACX,SAAS,KAAK;IACd,OAAO,MAAM;CACb;AAED,MAAM,MAAM,WAAW,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;CAAE,GAAG;IAC1D,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,YAAY,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAC/D,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC"}
|
package/dist/types/types.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export var RelationType;
|
|
2
|
-
(function (RelationType) {
|
|
3
|
-
RelationType["BIOLOGICAL"] = "biological";
|
|
4
|
-
RelationType["ADOPTED"] = "adopted";
|
|
5
|
-
RelationType["FOSTER"] = "foster";
|
|
6
|
-
RelationType["SEALING"] = "sealing";
|
|
7
|
-
RelationType["BIRTH"] = "birth";
|
|
8
|
-
RelationType["STEP"] = "step";
|
|
9
|
-
})(RelationType || (RelationType = {}));
|
|
10
|
-
export var PartnerType;
|
|
11
|
-
(function (PartnerType) {
|
|
12
|
-
PartnerType["SPOUSE"] = "spouse";
|
|
13
|
-
PartnerType["PARTNER"] = "partner";
|
|
14
|
-
PartnerType["FRIEND"] = "friend";
|
|
15
|
-
PartnerType["SINGLE"] = "single";
|
|
16
|
-
PartnerType["OTHER"] = "other";
|
|
17
|
-
PartnerType["UNKOWN"] = "unknown";
|
|
18
|
-
})(PartnerType || (PartnerType = {}));
|
|
19
|
-
export var Range;
|
|
20
|
-
(function (Range) {
|
|
21
|
-
Range[Range["Year"] = 1] = "Year";
|
|
22
|
-
Range[Range["FiveYear"] = 5] = "FiveYear";
|
|
23
|
-
Range[Range["Decade"] = 10] = "Decade";
|
|
24
|
-
Range[Range["FiftyYear"] = 50] = "FiftyYear";
|
|
25
|
-
Range[Range["Century"] = 100] = "Century";
|
|
26
|
-
})(Range || (Range = {}));
|
package/dist/utils/cache.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Path } from "../classes/indi";
|
|
2
|
-
import type { Individuals } from "../classes/indis";
|
|
3
|
-
import type { IndiKey } from "../types/types";
|
|
4
|
-
/**
|
|
5
|
-
* Cache manager interface for pluggable cache implementations.
|
|
6
|
-
* The main project can inject custom implementations (e.g., IndexedDB) via setCacheManagerFactory.
|
|
7
|
-
*/
|
|
8
|
-
export interface ICacheManager<T> {
|
|
9
|
-
getItem: () => Promise<T | null>;
|
|
10
|
-
setItem: (value: T) => Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
interface Caches {
|
|
13
|
-
pathCache: Record<`${IndiKey}|${IndiKey}`, Path> | undefined;
|
|
14
|
-
relativesOnLevelCache: Record<IndiKey, Record<number, Individuals>> | undefined;
|
|
15
|
-
relativesOnDegreeCache: Record<IndiKey, Record<number, Individuals>> | undefined;
|
|
16
|
-
}
|
|
17
|
-
export type CacheRelatives<O extends keyof Caches = "pathCache"> = <T extends keyof Omit<Caches, O>, K extends keyof NonNullable<Omit<Caches, O>[T]>>(cacheKey: T) => (key: K, subKey: number, ...values: [keyof NonNullable<Omit<Caches, O>[T]>[K]]) => NonNullable<Omit<Caches, O>[T]>[K];
|
|
18
|
-
export declare const resetRelativesCache: () => void;
|
|
19
|
-
export declare const relativesCache: (cacheKey: keyof Omit<Caches, "pathCache">) => <T extends Individuals | undefined>(key: IndiKey, subKey: number, value?: T) => T;
|
|
20
|
-
export declare const pathCache: <T extends Path | undefined>(key: `${IndiKey}|${IndiKey}`, value?: T) => T;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/utils/cache.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAE5C;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC/B,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAED,UAAU,MAAM;IACf,SAAS,EAAE,MAAM,CAAC,GAAG,OAAO,IAAI,OAAO,EAAE,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC;IAC7D,qBAAqB,EAClB,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,GAC5C,SAAS,CAAC;IACb,sBAAsB,EACnB,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,GAC5C,SAAS,CAAC;CACb;AAoDD,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,MAAM,GAAG,WAAW,IAAI,CAClE,CAAC,SAAS,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,EAC/B,CAAC,SAAS,MAAM,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAE/C,QAAQ,EAAE,CAAC,KACP,CACJ,GAAG,EAAE,CAAC,EACN,MAAM,EAAE,MAAM,EACd,GAAG,MAAM,EAAE,CAAC,MAAM,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAExC,eAAO,MAAM,mBAAmB,YAG/B,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,UAAU,MAAM,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,MACzC,CAAC,SAAS,WAAW,GAAG,SAAS,EACjC,KAAK,OAAO,EACZ,QAAQ,MAAM,EACd,QAAQ,CAAC,MAiBT,CAAC;AAEH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,IAAI,GAAG,SAAS,EACnD,KAAK,GAAG,OAAO,IAAI,OAAO,EAAE,EAC5B,QAAQ,CAAC,MAaT,CAAC"}
|
package/dist/utils/cache.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import debounce from "lodash-es/debounce.js";
|
|
2
|
-
import { getCacheManagerFactory } from "../factories/cache-factory.js";
|
|
3
|
-
const caches = {
|
|
4
|
-
pathCache: {},
|
|
5
|
-
relativesOnDegreeCache: {},
|
|
6
|
-
relativesOnLevelCache: {},
|
|
7
|
-
};
|
|
8
|
-
const getInstance = getCacheManagerFactory();
|
|
9
|
-
const cacheDbs = {
|
|
10
|
-
pathCache: getInstance("ftv", "Main", "path", true),
|
|
11
|
-
relativesOnDegreeCache: getInstance("ftv", "Main", "path", true),
|
|
12
|
-
relativesOnLevelCache: getInstance("ftv", "Main", "path", true),
|
|
13
|
-
};
|
|
14
|
-
const _storeCache = {
|
|
15
|
-
pathCache: debounce((value) => {
|
|
16
|
-
if (value) {
|
|
17
|
-
cacheDbs.pathCache.setItem(value);
|
|
18
|
-
}
|
|
19
|
-
}, 50),
|
|
20
|
-
relativesOnLevelCache: debounce((value) => {
|
|
21
|
-
if (value) {
|
|
22
|
-
cacheDbs.relativesOnLevelCache.setItem(value);
|
|
23
|
-
}
|
|
24
|
-
}, 50),
|
|
25
|
-
relativesOnDegreeCache: debounce((value) => {
|
|
26
|
-
if (value) {
|
|
27
|
-
cacheDbs.relativesOnDegreeCache.setItem(value);
|
|
28
|
-
}
|
|
29
|
-
}, 50),
|
|
30
|
-
};
|
|
31
|
-
export const resetRelativesCache = () => {
|
|
32
|
-
caches.relativesOnDegreeCache = {};
|
|
33
|
-
caches.relativesOnLevelCache = {};
|
|
34
|
-
};
|
|
35
|
-
export const relativesCache = (cacheKey) => (key, subKey, value) => {
|
|
36
|
-
if (!caches[cacheKey]) {
|
|
37
|
-
caches[cacheKey] = {};
|
|
38
|
-
}
|
|
39
|
-
if (value && caches[cacheKey]) {
|
|
40
|
-
if (!caches[cacheKey][key]) {
|
|
41
|
-
caches[cacheKey][key] = {};
|
|
42
|
-
}
|
|
43
|
-
caches[cacheKey][key][subKey] = value;
|
|
44
|
-
return caches[cacheKey][key][subKey];
|
|
45
|
-
}
|
|
46
|
-
return caches[cacheKey]?.[key]?.[subKey];
|
|
47
|
-
};
|
|
48
|
-
export const pathCache = (key, value) => {
|
|
49
|
-
if (!caches.pathCache) {
|
|
50
|
-
caches.pathCache = {};
|
|
51
|
-
}
|
|
52
|
-
if (value && caches.pathCache) {
|
|
53
|
-
caches.pathCache[key] = value;
|
|
54
|
-
return caches.pathCache[key];
|
|
55
|
-
}
|
|
56
|
-
return caches.pathCache?.[key];
|
|
57
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Common } from "../classes/common";
|
|
2
|
-
import type { GedComType } from "../classes/gedcom";
|
|
3
|
-
import type { MultiTag, IdType } from "../types/types";
|
|
4
|
-
export declare const create: (gedcom: GedComType, type: MultiTag, id?: string, nodes?: {
|
|
5
|
-
mainNode?: Common;
|
|
6
|
-
curNode?: Common;
|
|
7
|
-
prevNode?: Common;
|
|
8
|
-
}) => {
|
|
9
|
-
prevNode: Common<string, IdType>;
|
|
10
|
-
curNode: Common<string, IdType>;
|
|
11
|
-
mainNode: Common<string, IdType>;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=common-creator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-creator.d.ts","sourceRoot":"","sources":["../../src/utils/common-creator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAIhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAQpD,OAAO,KAAK,EACX,QAAQ,EACR,MAAM,EAQN,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,MAAM,GAClB,QAAQ,UAAU,EAClB,MAAM,QAAQ,EACd,KAAK,MAAM,EACX,QAAQ;IACP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;;;;CAgDD,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { createCommon } from "../classes/common.js";
|
|
2
|
-
import { createCommonDate } from "../classes/date.js";
|
|
3
|
-
import { createFam } from "../classes/fam.js";
|
|
4
|
-
import { GedCom } from "../classes/gedcom.js";
|
|
5
|
-
import { createIndi, Indi } from "../classes/indi.js";
|
|
6
|
-
import { createCommonName } from "../classes/name.js";
|
|
7
|
-
import { createCommonNote } from "../classes/note.js";
|
|
8
|
-
import { createObje } from "../classes/obje.js";
|
|
9
|
-
import { createRepo } from "../classes/repo.js";
|
|
10
|
-
import { createSour } from "../classes/sour.js";
|
|
11
|
-
import { createSubm } from "../classes/subm.js";
|
|
12
|
-
export const create = (gedcom, type, id, nodes) => {
|
|
13
|
-
let mainNode = nodes?.mainNode;
|
|
14
|
-
const curNode = nodes?.curNode;
|
|
15
|
-
let prevNode = nodes?.prevNode;
|
|
16
|
-
if (id) {
|
|
17
|
-
const convertType = type;
|
|
18
|
-
if (convertType === "REPO") {
|
|
19
|
-
prevNode = createRepo(gedcom, id);
|
|
20
|
-
}
|
|
21
|
-
else if (convertType === "SUBM") {
|
|
22
|
-
prevNode = createSubm(gedcom, id);
|
|
23
|
-
}
|
|
24
|
-
else if (convertType === "SOUR") {
|
|
25
|
-
prevNode = createSour(gedcom, id);
|
|
26
|
-
}
|
|
27
|
-
else if (convertType === "OBJE" && curNode instanceof GedCom) {
|
|
28
|
-
prevNode = createObje(gedcom, id);
|
|
29
|
-
}
|
|
30
|
-
else if (convertType === "INDI") {
|
|
31
|
-
prevNode = createIndi(gedcom, id);
|
|
32
|
-
}
|
|
33
|
-
else if (convertType === "_INDI") {
|
|
34
|
-
prevNode = createIndi(gedcom, id);
|
|
35
|
-
}
|
|
36
|
-
else if (convertType === "FAM") {
|
|
37
|
-
prevNode = createFam(gedcom, id);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
prevNode = createCommon(gedcom, id);
|
|
41
|
-
}
|
|
42
|
-
mainNode = prevNode;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
if (type === "REPO") {
|
|
46
|
-
prevNode = createRepo(gedcom, undefined, mainNode, curNode);
|
|
47
|
-
}
|
|
48
|
-
else if (type === "SUBM") {
|
|
49
|
-
prevNode = createSubm(gedcom, undefined, mainNode, curNode);
|
|
50
|
-
}
|
|
51
|
-
else if (type === "SOUR") {
|
|
52
|
-
prevNode = createSour(gedcom, undefined, mainNode, curNode);
|
|
53
|
-
}
|
|
54
|
-
else if (type === "OBJE") {
|
|
55
|
-
prevNode = createObje(gedcom, undefined, mainNode, curNode);
|
|
56
|
-
}
|
|
57
|
-
else if (type === "DATE") {
|
|
58
|
-
prevNode = createCommonDate(gedcom, undefined, mainNode, curNode);
|
|
59
|
-
}
|
|
60
|
-
else if (type === "NOTE") {
|
|
61
|
-
prevNode = createCommonNote(gedcom, undefined, mainNode, curNode);
|
|
62
|
-
}
|
|
63
|
-
else if (type === "NAME" && mainNode instanceof Indi) {
|
|
64
|
-
prevNode = createCommonName(gedcom, undefined, mainNode, curNode);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
prevNode = createCommon(gedcom, undefined, mainNode, curNode);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
prevNode.type = type;
|
|
71
|
-
return { prevNode, curNode, mainNode };
|
|
72
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { CommonDate } from "../classes/date";
|
|
2
|
-
import type { FamType } from "../classes/fam";
|
|
3
|
-
import type { IndiType } from "../classes/indi";
|
|
4
|
-
import type IDateStructure from "../structures/date";
|
|
5
|
-
import type { IndiKey } from "../types/types";
|
|
6
|
-
export declare const ACCEPTED_DATE_FORMATS: string[];
|
|
7
|
-
export declare const ACCEPTED_DATE_FORMATS_REGEX: RegExp;
|
|
8
|
-
export declare const commonDateFormatter: (date?: IDateStructure["DATE"], format?: string, prefix?: string) => string;
|
|
9
|
-
export declare const noteDateFormatter: (date?: IDateStructure["DATE"], format?: string, prefix?: string, shortNote?: boolean, showNote?: boolean) => string;
|
|
10
|
-
export declare const marriageDateFormatter: (fam?: FamType, showDays?: boolean, showPlaces?: boolean, shortNote?: boolean, showNote?: boolean, showDisplayTextIfNoDate?: boolean, showAllEvents?: boolean, dateFormatPattern?: string) => {
|
|
11
|
-
marriages?: string[];
|
|
12
|
-
marriagePlaces?: string[];
|
|
13
|
-
rawArray: CommonDate[];
|
|
14
|
-
inArray: string[];
|
|
15
|
-
inOrder: string;
|
|
16
|
-
places: string[];
|
|
17
|
-
marriage: string[];
|
|
18
|
-
};
|
|
19
|
-
export declare const dateFormatter: (indi?: IndiType, showMarriages?: boolean, showDays?: boolean, showPlaces?: boolean, shortNote?: boolean, showNote?: boolean, isOnStage?: (key: IndiKey) => boolean, showAllEvents?: boolean, dateFormatPattern?: string) => {
|
|
20
|
-
births?: string[];
|
|
21
|
-
birthPlaces?: string[];
|
|
22
|
-
deaths?: string[];
|
|
23
|
-
deathPlaces?: string[];
|
|
24
|
-
marriages?: string[];
|
|
25
|
-
marriagePlaces?: string[];
|
|
26
|
-
birthPlace?: string;
|
|
27
|
-
deathPlace?: string;
|
|
28
|
-
inArray: string[];
|
|
29
|
-
inOrder: string;
|
|
30
|
-
places: string[];
|
|
31
|
-
birth: string;
|
|
32
|
-
marriage: string[];
|
|
33
|
-
death: string;
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=date-formatter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-formatter.d.ts","sourceRoot":"","sources":["../../src/utils/date-formatter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAE9C,OAAO,KAAK,cAAc,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAG9C,eAAO,MAAM,qBAAqB,UAIjC,CAAC;AACF,eAAO,MAAM,2BAA2B,QAKvC,CAAC;AACF,eAAO,MAAM,mBAAmB,GAC/B,OAAO,cAAc,CAAC,MAAM,CAAC,EAC7B,eAAe,EACf,eAAW,WAQX,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC7B,OAAO,cAAc,CAAC,MAAM,CAAC,EAC7B,eAAe,EACf,eAAW,EACX,mBAAgB,EAChB,kBAAe,WAef,CAAC;AAEF,eAAO,MAAM,qBAAqB,GACjC,MAAM,OAAO,EACb,kBAAgB,EAChB,oBAAkB,EAClB,mBAAgB,EAChB,kBAAe,EACf,iCAA8B,EAC9B,uBAAqB,EACrB,oBAAoB,MAAM;;;;;;;;CA2F1B,CAAC;AAEF,eAAO,MAAM,aAAa,GACzB,OAAO,QAAQ,EACf,uBAAqB,EACrB,kBAAgB,EAChB,oBAAkB,EAClB,mBAAgB,EAChB,kBAAe,EACf,YAAY,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,EACrC,uBAAqB,EACrB,oBAAoB,MAAM;;;;;;;;;;;;;;;CAkK1B,CAAC"}
|