@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
|
@@ -0,0 +1,1654 @@
|
|
|
1
|
+
import { Locale } from 'date-fns';
|
|
2
|
+
|
|
3
|
+
interface IFam extends Common<string, FamKey> {
|
|
4
|
+
_IS_ORPHAN_FAMILY?: Common<"Y" | "N">;
|
|
5
|
+
getChildren: () => Individuals;
|
|
6
|
+
getHusband: () => Individuals;
|
|
7
|
+
getWife: () => Individuals;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface IObje extends Common<string, ObjeKey> {
|
|
11
|
+
_PRIM?: Common<"Y" | "N">;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface IMultimediaLinkStructure extends Common {
|
|
15
|
+
RIN?: Common;
|
|
16
|
+
OBJE?: Common & {
|
|
17
|
+
CROP?: Common & {
|
|
18
|
+
TOP?: Common;
|
|
19
|
+
LEFT?: Common;
|
|
20
|
+
HEIGHT?: Common;
|
|
21
|
+
WIDTH?: Common;
|
|
22
|
+
};
|
|
23
|
+
TITL?: Common;
|
|
24
|
+
_PRIM?: Common<"Y" | "N">;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class Obje extends Common<string, ObjeKey> implements IObje {
|
|
29
|
+
standardizeMedia(namespace?: string | number, override?: boolean, urlGetter?: (namespace?: string | number, imgId?: string) => string | undefined): this | ProxyOriginal<ObjeType>;
|
|
30
|
+
}
|
|
31
|
+
type ObjeType = Obje & IMultimediaLinkStructure;
|
|
32
|
+
declare const createObje: (gedcom: GedComType, id?: ObjeKey, main?: Common, parent?: Common) => ProxyOriginal<ObjeType>;
|
|
33
|
+
|
|
34
|
+
declare class Objects extends List<ObjeKey, ObjeType> {
|
|
35
|
+
copy(): Objects;
|
|
36
|
+
except(item: ObjeType): Objects;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface IRepositoryStructure {
|
|
40
|
+
NAME?: Common;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface IRepo extends Common<string, RepoKey>, IRepositoryStructure {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class Repo extends Common<string, RepoKey> implements IRepo {
|
|
47
|
+
}
|
|
48
|
+
type RepoType = Repo & IRepositoryStructure;
|
|
49
|
+
declare const createRepo: (gedcom: GedComType, id?: RepoKey, main?: Common, parent?: Common) => ProxyOriginal<RepoType>;
|
|
50
|
+
|
|
51
|
+
declare class Repositories extends List<RepoKey, RepoType> {
|
|
52
|
+
copy(): Repositories;
|
|
53
|
+
except(item: RepoType): Repositories;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface ISour extends Common<string, SourKey> {
|
|
57
|
+
_APID?: Common;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
type PrimitiveRange = "" | "-" | `-${number}` | `${number}-` | `${number}-${number}`;
|
|
61
|
+
type Range$1 = PrimitiveRange | [(string | number)?, (string | number)?] | [string | number, (string | number)?];
|
|
62
|
+
interface SplitResult {
|
|
63
|
+
range: PrimitiveRange;
|
|
64
|
+
to?: boolean;
|
|
65
|
+
by?: boolean;
|
|
66
|
+
}
|
|
67
|
+
declare const fromTuple: (s?: number, e?: number) => PrimitiveRange;
|
|
68
|
+
declare const inRange: (year: string | number | undefined, range: Range$1, trueIfNoYear?: boolean) => boolean;
|
|
69
|
+
declare const isIntersectedRange: (range1: Range$1, range2: Range$1) => boolean;
|
|
70
|
+
declare const splitRange: (to: Range$1, by: Range$1) => SplitResult[];
|
|
71
|
+
declare function parseRangeBounds(rangeKey: PrimitiveRange): [number | undefined, number | undefined];
|
|
72
|
+
declare function isRangeContained(containedRange: PrimitiveRange, containerRange: PrimitiveRange): boolean;
|
|
73
|
+
declare function extractSplitPoints(ranges: PrimitiveRange[]): number[];
|
|
74
|
+
declare function generateSplitRanges(splitPoints: number[]): PrimitiveRange[];
|
|
75
|
+
declare function splitOverlappingRanges<T>(rangesToValues: Array<[PrimitiveRange, T]>): Array<[PrimitiveRange, T[]]>;
|
|
76
|
+
declare function findMatchingRangeForSplitRange<T>(splitRange: PrimitiveRange, rangesToValues: Array<[PrimitiveRange, T]>): T[];
|
|
77
|
+
declare function extractSeparationYears(childName: string, ranges: Record<string, unknown[]>, parentName: string, ensureArray: (x: unknown) => unknown[]): number[];
|
|
78
|
+
|
|
79
|
+
declare class CommonDate extends Common<string> {
|
|
80
|
+
private _date?;
|
|
81
|
+
DAY?: Common;
|
|
82
|
+
MONTH?: Common;
|
|
83
|
+
YEAR?: Common;
|
|
84
|
+
NOTE?: Common;
|
|
85
|
+
constructor(gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common);
|
|
86
|
+
set value(value: string | undefined);
|
|
87
|
+
get value(): string | undefined;
|
|
88
|
+
get rawValue(): Date;
|
|
89
|
+
assign<T extends Common | List = Common | List>(name: MultiTag, value: T, unique?: boolean): T;
|
|
90
|
+
private isValidDateFormat;
|
|
91
|
+
toNote(short?: boolean): string | undefined;
|
|
92
|
+
toValue(dateFormat?: string, locale?: Locale | null): string | undefined;
|
|
93
|
+
exportValue(): string;
|
|
94
|
+
inRange(range: Range$1, trueIfNoYear?: boolean): boolean;
|
|
95
|
+
}
|
|
96
|
+
declare const createCommonDate: (gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common) => ProxyOriginal<CommonDate>;
|
|
97
|
+
declare const isCommonDate: (value?: unknown) => value is CommonDate;
|
|
98
|
+
|
|
99
|
+
interface IDateStructure extends Common {
|
|
100
|
+
DATE?: CommonDate & {
|
|
101
|
+
TIME?: Common;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface IChangeDateStructure extends Common, INoteStructure {
|
|
106
|
+
CHAN?: Common & IDateStructure;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface ICreationDateStructure extends Common {
|
|
110
|
+
CREA?: Common & IDateStructure;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
interface IPlaceStructure extends Common {
|
|
114
|
+
PLAC?: Common & {
|
|
115
|
+
FORM?: Common;
|
|
116
|
+
LANG?: Common;
|
|
117
|
+
TRAN?: Common & {
|
|
118
|
+
LANG?: Common;
|
|
119
|
+
};
|
|
120
|
+
MAP?: Common & {
|
|
121
|
+
LATI?: Common;
|
|
122
|
+
LONG?: Common;
|
|
123
|
+
};
|
|
124
|
+
EXID?: Common & {
|
|
125
|
+
TYPE?: Common;
|
|
126
|
+
};
|
|
127
|
+
} & INoteStructure;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface ISourceRepositoryCitationStructure extends Common {
|
|
131
|
+
REPO?: Common & {
|
|
132
|
+
CALN?: Common & {
|
|
133
|
+
MEDI?: Common & {
|
|
134
|
+
PHRASE?: Common;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
} & INoteStructure;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
interface ISourceStructure extends Common, IChangeDateStructure, ICreationDateStructure, ISourceRepositoryCitationStructure, IMultimediaLinkStructure, INoteStructure {
|
|
141
|
+
DATA?: Common & {
|
|
142
|
+
EVEN?: Common & {
|
|
143
|
+
DATE?: Common & {
|
|
144
|
+
PHRASE?: Common;
|
|
145
|
+
};
|
|
146
|
+
} & IPlaceStructure;
|
|
147
|
+
AGNC?: Common;
|
|
148
|
+
} & INoteStructure;
|
|
149
|
+
AUTH?: Common;
|
|
150
|
+
TITL?: Common;
|
|
151
|
+
ABBR?: Common;
|
|
152
|
+
PUBL?: Common;
|
|
153
|
+
TEXT?: Common & {
|
|
154
|
+
MIME?: Common;
|
|
155
|
+
LANG?: Common;
|
|
156
|
+
};
|
|
157
|
+
_APID?: Common;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare class Sour extends Common<string, SourKey> implements ISour {
|
|
161
|
+
}
|
|
162
|
+
type SourType = Sour & ISourceStructure;
|
|
163
|
+
declare const createSour: (gedcom: GedComType, id?: SourKey, main?: Common, parent?: Common) => ProxyOriginal<SourType>;
|
|
164
|
+
|
|
165
|
+
declare class Sources extends List<SourKey, SourType> {
|
|
166
|
+
copy(): Sources;
|
|
167
|
+
except(item: SourType): Sources;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
interface ISubm extends Common<string, SubmKey> {
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare class Subm extends Common<string, SubmKey> implements ISubm {
|
|
174
|
+
}
|
|
175
|
+
type SubmType = Subm & ISubm;
|
|
176
|
+
declare const createSubm: (gedcom: GedComType, id?: SubmKey, main?: Common, parent?: Common) => ProxyOriginal<SubmType>;
|
|
177
|
+
|
|
178
|
+
declare class Submitters extends List<SubmKey, SubmType> {
|
|
179
|
+
copy(): Submitters;
|
|
180
|
+
except(item: SubmType): Submitters;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
interface IGedcom extends Common {
|
|
184
|
+
indis: () => Individuals | undefined;
|
|
185
|
+
fams: () => Families | undefined;
|
|
186
|
+
objes: () => Objects | undefined;
|
|
187
|
+
sours: () => Sources | undefined;
|
|
188
|
+
repos: () => Repositories | undefined;
|
|
189
|
+
subms: () => Submitters | undefined;
|
|
190
|
+
indi: (index: number | IndiKey) => IndiType | undefined;
|
|
191
|
+
fam: (index: number | FamKey) => FamType | undefined;
|
|
192
|
+
obje: (index: number | ObjeKey) => ObjeType | undefined;
|
|
193
|
+
sour: (index: number | SourKey) => SourType | undefined;
|
|
194
|
+
repo: (index: number | RepoKey) => RepoType | undefined;
|
|
195
|
+
subm: (index: number | SubmKey) => SubmType | undefined;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
interface IAddressStructure extends Common {
|
|
199
|
+
ADDR?: Common & {
|
|
200
|
+
ADR1?: Common;
|
|
201
|
+
ADR2?: Common;
|
|
202
|
+
ADR3?: Common;
|
|
203
|
+
CITY?: Common;
|
|
204
|
+
STAE?: Common;
|
|
205
|
+
POST?: Common;
|
|
206
|
+
CTRY?: Common;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
interface IGedComStructure extends Common, Omit<NonStandard, "id" | "value">, Partial<Record<`${ListTag}`, List>> {
|
|
211
|
+
"@@INDI"?: Individuals;
|
|
212
|
+
"@@_INDI"?: Individuals;
|
|
213
|
+
"@@FAM"?: Families;
|
|
214
|
+
"@@OBJE"?: Objects;
|
|
215
|
+
"@@REPO"?: Repositories;
|
|
216
|
+
"@@SOUR"?: Sources;
|
|
217
|
+
"@@SUBM"?: Submitters;
|
|
218
|
+
HEAD?: Common & {
|
|
219
|
+
GEDC?: Common & {
|
|
220
|
+
VERS?: Common;
|
|
221
|
+
};
|
|
222
|
+
SCHMA?: Common & {
|
|
223
|
+
TAG?: Common;
|
|
224
|
+
};
|
|
225
|
+
SOUR?: Common & {
|
|
226
|
+
VERS?: Common;
|
|
227
|
+
NAME?: Common;
|
|
228
|
+
CORP?: Common & {
|
|
229
|
+
PHON?: Common;
|
|
230
|
+
EMAIL?: Common;
|
|
231
|
+
FAX?: Common;
|
|
232
|
+
WWW?: Common;
|
|
233
|
+
} & IAddressStructure;
|
|
234
|
+
DATA?: Common & {
|
|
235
|
+
DATE?: Common & {
|
|
236
|
+
TIME?: Common;
|
|
237
|
+
};
|
|
238
|
+
CORP?: Common;
|
|
239
|
+
};
|
|
240
|
+
_TREE?: Common & {
|
|
241
|
+
RIN?: Common;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
DEST?: Common;
|
|
245
|
+
DATE?: Common & {
|
|
246
|
+
TIME?: Common;
|
|
247
|
+
};
|
|
248
|
+
SUBM?: Common;
|
|
249
|
+
CORP?: Common;
|
|
250
|
+
LANG?: Common;
|
|
251
|
+
PLAC?: Common & {
|
|
252
|
+
FORM?: Common;
|
|
253
|
+
};
|
|
254
|
+
} & INoteStructure;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
declare class GedCom extends Common implements IGedcom {
|
|
258
|
+
tagMembers: Record<string, {
|
|
259
|
+
tag: Common;
|
|
260
|
+
indis: Individuals;
|
|
261
|
+
}>;
|
|
262
|
+
reflist: Record<string, Common>;
|
|
263
|
+
refcount: number;
|
|
264
|
+
constructor();
|
|
265
|
+
private getMain;
|
|
266
|
+
getList<T extends List = List>(type: MultiTag): T | undefined;
|
|
267
|
+
indis(): Individuals;
|
|
268
|
+
cloneIndis(target?: IndiKey | IndiType, source?: IndiKey | IndiType, avoidKeys?: MultiTag[], removeFromOriginalList?: boolean): this;
|
|
269
|
+
mergeIndis(target?: IndiKey | IndiType, source?: IndiKey | IndiType, removeFromOriginalList?: boolean): this;
|
|
270
|
+
fams(): Families;
|
|
271
|
+
objes(): Objects;
|
|
272
|
+
sours(): Sources;
|
|
273
|
+
repos(): Repositories;
|
|
274
|
+
subms(): Submitters;
|
|
275
|
+
tags(): List<IdType, Common<string, IdType>>;
|
|
276
|
+
customTags(): List<IdType, Common<string, IdType>>;
|
|
277
|
+
indi(index: number | IndiKey): IndiType;
|
|
278
|
+
fam(index: number | FamKey): FamType;
|
|
279
|
+
obje(index: number | ObjeKey): ObjeType;
|
|
280
|
+
sour(index: number | SourKey): SourType;
|
|
281
|
+
repo(index: number | RepoKey): RepoType;
|
|
282
|
+
subm(index: number | SubmKey): SubmType;
|
|
283
|
+
tag(index: number | SubmKey): Common<string, IdType>;
|
|
284
|
+
fromList(id?: string): Common<string, IdType>;
|
|
285
|
+
tagByName(name?: string): Common<string, IdType>;
|
|
286
|
+
customTag(index: number | SubmKey): Common<string, IdType>;
|
|
287
|
+
private getIndiRelatedLists;
|
|
288
|
+
private getDownloadHeader;
|
|
289
|
+
toFiltered(indis: IndiKey[]): this | GedComType;
|
|
290
|
+
toJson(tag?: MultiTag | undefined, options?: (ConvertOptions & {
|
|
291
|
+
indis?: IndiKey[];
|
|
292
|
+
}) | undefined): string;
|
|
293
|
+
toGedcom(tag?: MultiTag | undefined, level?: number, options?: (ConvertOptions & {
|
|
294
|
+
indis?: IndiKey[];
|
|
295
|
+
}) | undefined): string;
|
|
296
|
+
hasTag(tag?: string | Common): boolean;
|
|
297
|
+
hasUnknownAncestor(): boolean;
|
|
298
|
+
hasIgnoredMember(): boolean;
|
|
299
|
+
hasUnattachedMember(): boolean;
|
|
300
|
+
hasUnknownGivenname(): boolean;
|
|
301
|
+
hasUnknownSurname(): boolean;
|
|
302
|
+
hasNonRelevant(): boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Get all places from the GEDCOM with occurrence counts
|
|
305
|
+
* @returns Record mapping place names to their occurrence count
|
|
306
|
+
*/
|
|
307
|
+
getAllPlaces(): Record<string, number>;
|
|
308
|
+
/**
|
|
309
|
+
* Get all places from the GEDCOM with associated individual IDs
|
|
310
|
+
* @param usedIndis Optional array of individual IDs to filter by
|
|
311
|
+
* @returns Record mapping place names to arrays of individual IDs
|
|
312
|
+
*/
|
|
313
|
+
getAllPlacesWithIndis(usedIndis?: IndiKey[]): Record<string, (`@I${number}@` | `@P${number}@` | `@XI${number}@` | `@XXI${number}@`)[]>;
|
|
314
|
+
/**
|
|
315
|
+
* Generate statistics about the GEDCOM file
|
|
316
|
+
* @param individuals Optional list of individuals to calculate statistics for. If not provided, all individuals from the GEDCOM will be used.
|
|
317
|
+
* @returns Object containing various statistics about the GEDCOM data
|
|
318
|
+
*/
|
|
319
|
+
stats(individuals?: Individuals): {
|
|
320
|
+
totalIndividuals: number;
|
|
321
|
+
totalFamilies: number;
|
|
322
|
+
byGender: {
|
|
323
|
+
males: number;
|
|
324
|
+
females: number;
|
|
325
|
+
unknown: number;
|
|
326
|
+
};
|
|
327
|
+
dateRange: {
|
|
328
|
+
earliest: number;
|
|
329
|
+
latest: number;
|
|
330
|
+
};
|
|
331
|
+
averageLifespan: number;
|
|
332
|
+
topSurnames: {
|
|
333
|
+
surname: string;
|
|
334
|
+
count: number;
|
|
335
|
+
}[];
|
|
336
|
+
topBirthPlaces: {
|
|
337
|
+
place: string;
|
|
338
|
+
count: number;
|
|
339
|
+
}[];
|
|
340
|
+
firstPersonEvent: any;
|
|
341
|
+
lastPersonEvent: any;
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
type GedComType = GedCom & IGedComStructure;
|
|
345
|
+
declare const createGedCom: () => GedComType;
|
|
346
|
+
declare const isGedcomString: (gedcomString?: string) => boolean;
|
|
347
|
+
/**
|
|
348
|
+
* Validates if a string is a valid GEDCOM file content
|
|
349
|
+
* @param content - The file content to validate
|
|
350
|
+
* @returns An object with `valid` boolean and optional `error` message
|
|
351
|
+
*/
|
|
352
|
+
declare const validateGedcomContent: (content?: string) => {
|
|
353
|
+
valid: boolean;
|
|
354
|
+
error?: string;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Merge two GEDCOM objects into a single result using a configurable matching strategy
|
|
358
|
+
* @param targetGedcom - The base GEDCOM (kept as the primary source)
|
|
359
|
+
* @param sourceGedcom - The GEDCOM to be merged into the target
|
|
360
|
+
* @param strategy - Matching strategy: "id" (default) to match by individual ID, or any MultiTag (e.g., "NAME", "BIRT.DATE") to match by that field's value
|
|
361
|
+
* @returns The merged GedComType with all individuals and families combined
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
* // Merge by ID (individuals with same ID are considered the same person)
|
|
365
|
+
* const merged = await mergeGedcoms(target, source, "id");
|
|
366
|
+
*
|
|
367
|
+
* @example
|
|
368
|
+
* // Merge by NAME (individuals with same name are considered the same person)
|
|
369
|
+
* const merged = await mergeGedcoms(target, source, "NAME");
|
|
370
|
+
*
|
|
371
|
+
* @remarks
|
|
372
|
+
* - Source individuals are always assigned new unique IDs to avoid conflicts
|
|
373
|
+
* - When individuals match by strategy, they are merged (data and relationships combined)
|
|
374
|
+
* - All family relationships (FAMS/FAMC) are preserved with updated ID references
|
|
375
|
+
*/
|
|
376
|
+
declare const mergeGedcoms: (targetGedcom: GedComType, sourceGedcom: GedComType, strategy?: MultiTag | "id") => GedComType;
|
|
377
|
+
|
|
378
|
+
declare class CommonNote extends Common<string> {
|
|
379
|
+
constructor(gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common);
|
|
380
|
+
set value(value: string | undefined);
|
|
381
|
+
get value(): string | undefined;
|
|
382
|
+
exportValue(): string;
|
|
383
|
+
}
|
|
384
|
+
declare const createCommonNote: (gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common) => ProxyOriginal<CommonNote>;
|
|
385
|
+
|
|
386
|
+
interface ISourceCitationStructure extends Common, IMultimediaLinkStructure {
|
|
387
|
+
SOUR?: Common & {
|
|
388
|
+
PAGE?: Common;
|
|
389
|
+
DATA?: Common & {
|
|
390
|
+
DATE?: Common & {
|
|
391
|
+
TIME?: Common;
|
|
392
|
+
PHRASE?: Common;
|
|
393
|
+
};
|
|
394
|
+
TEXT?: Common & {
|
|
395
|
+
MIME?: Common;
|
|
396
|
+
LANG?: Common;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
EVEN?: Common & {
|
|
400
|
+
PHRASE?: Common;
|
|
401
|
+
ROLE?: Common & {
|
|
402
|
+
PHRASE?: Common;
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
QUAY?: Common;
|
|
406
|
+
} & INoteStructure;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
interface INoteStructure extends Common {
|
|
410
|
+
NOTE?: CommonNote & {
|
|
411
|
+
MIME?: Common;
|
|
412
|
+
LANG?: Common;
|
|
413
|
+
TRAN?: Common & {
|
|
414
|
+
MIME?: Common;
|
|
415
|
+
LANG?: Common;
|
|
416
|
+
};
|
|
417
|
+
} & ISourceCitationStructure;
|
|
418
|
+
SNOTE?: Common;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
interface IAssociationStructure extends Common, INoteStructure, ISourceCitationStructure {
|
|
422
|
+
ASSO?: Common & {
|
|
423
|
+
PHRASE?: Common;
|
|
424
|
+
ROLE?: Common & {
|
|
425
|
+
PHRASE?: Common;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
interface ILdsOrdinanceDetailStructure extends Common, INoteStructure, ISourceCitationStructure, IPlaceStructure {
|
|
431
|
+
DATE?: Common & {
|
|
432
|
+
TIME?: Common;
|
|
433
|
+
PHRASE?: Common;
|
|
434
|
+
};
|
|
435
|
+
TEMP?: Common;
|
|
436
|
+
STAT?: Common & {
|
|
437
|
+
DATE?: Common;
|
|
438
|
+
TIME?: Common;
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
interface ILdsSpouseSealingStructure extends Common {
|
|
443
|
+
SLSG?: Common & ILdsOrdinanceDetailStructure;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
interface IMarriageDateStructure extends Common, INoteStructure {
|
|
447
|
+
MARR?: Common & IDateStructure & IPlaceStructure;
|
|
448
|
+
HUSB?: Common;
|
|
449
|
+
WIFE?: Common;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
interface INonEventStructure extends Common {
|
|
453
|
+
NO?: Common & {
|
|
454
|
+
DATE?: Common & {
|
|
455
|
+
PHRASE?: Common;
|
|
456
|
+
};
|
|
457
|
+
} & INoteStructure & ISourceCitationStructure;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
interface IFamilyStructure extends Common, IMarriageDateStructure, IChangeDateStructure, ICreationDateStructure, IAssociationStructure, ILdsSpouseSealingStructure, IMultimediaLinkStructure, INonEventStructure, INoteStructure, ISourceCitationStructure {
|
|
461
|
+
RESN?: Common;
|
|
462
|
+
HUSB?: Common & {
|
|
463
|
+
PHRASE?: Common;
|
|
464
|
+
};
|
|
465
|
+
WIFE?: Common & {
|
|
466
|
+
PHRASE?: Common;
|
|
467
|
+
};
|
|
468
|
+
CHIL?: Common & {
|
|
469
|
+
PHRASE?: Common;
|
|
470
|
+
};
|
|
471
|
+
SUBM?: Common;
|
|
472
|
+
/**
|
|
473
|
+
* Custom tag indicating this family is not connected to the root person's ancestry.
|
|
474
|
+
* This means none of the family members (spouses or children) are:
|
|
475
|
+
* - Direct ancestors of the root person
|
|
476
|
+
* - Spouses of direct ancestors
|
|
477
|
+
* - Descendants of direct ancestors (recursive)
|
|
478
|
+
* - Spouses of descendants (recursive)
|
|
479
|
+
*/
|
|
480
|
+
_IS_ORPHAN_FAMILY?: Common;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
declare class Fam extends Common<string, FamKey> implements IFam {
|
|
484
|
+
private getFamilyMembers;
|
|
485
|
+
getChildren(): Individuals;
|
|
486
|
+
getHusband(): Individuals;
|
|
487
|
+
getWife(): Individuals;
|
|
488
|
+
getParents(): Individuals;
|
|
489
|
+
toList(): Families;
|
|
490
|
+
}
|
|
491
|
+
type FamType = Fam & IFamilyStructure;
|
|
492
|
+
declare const createFam: (gedcom: GedComType, id: FamKey, main?: Common, parent?: Common) => ProxyOriginal<FamType>;
|
|
493
|
+
|
|
494
|
+
interface IFamilies extends IList<FamKey, FamType> {
|
|
495
|
+
getParents: () => Individuals;
|
|
496
|
+
getChildren: () => Individuals;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
declare class Families extends List<FamKey, FamType> implements IFamilies {
|
|
500
|
+
copy(): Families;
|
|
501
|
+
except(item: FamType): Families;
|
|
502
|
+
filter(filters: Filter | FilterIterator<FamType, FamKey>): Families;
|
|
503
|
+
find(filters: Filter | FilterIterator<FamType, FamKey>): FamType | undefined;
|
|
504
|
+
orderBy(orders: Order | OrderIterator<FamType, FamKey>): Families;
|
|
505
|
+
getParents(): Individuals;
|
|
506
|
+
getChildren(): Individuals;
|
|
507
|
+
toList(): Families;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
type GeneratorKey = `${"2nd" | "3rd" | `${4 | 5 | 6 | 7 | 8 | 9}th`}`;
|
|
511
|
+
type GeneratorType = "Cousins" | "GreatGrandParents" | "GreatGrandChildren";
|
|
512
|
+
type GeneratedIndiMethods = Record<`get${GeneratorKey}${GeneratorType}`, () => Individuals>;
|
|
513
|
+
type MediaList = Record<string, {
|
|
514
|
+
key: string;
|
|
515
|
+
id: string;
|
|
516
|
+
imgId: string;
|
|
517
|
+
tree: string;
|
|
518
|
+
person: IndiKey;
|
|
519
|
+
title: string;
|
|
520
|
+
url: string;
|
|
521
|
+
contentType: string;
|
|
522
|
+
downloadName: string;
|
|
523
|
+
}>;
|
|
524
|
+
interface IIndi extends Common<string, IndiKey> {
|
|
525
|
+
getBirthDate: (showDays?: boolean, shortNote?: boolean, showNote?: boolean) => string | undefined;
|
|
526
|
+
getDeathDate: (showDays?: boolean, shortNote?: boolean, showNote?: boolean) => string | undefined;
|
|
527
|
+
getBirthPlace: () => string | undefined;
|
|
528
|
+
getDeathPlace: () => string | undefined;
|
|
529
|
+
isParentOf: (indi?: IndiKey | IndiType) => IndiKey | boolean;
|
|
530
|
+
isChildOf: (indi?: IndiKey | IndiType) => IndiKey | boolean;
|
|
531
|
+
isSiblingOf: (indi?: IndiKey | IndiType) => IndiKey | boolean;
|
|
532
|
+
isSpouseOf: (indi?: IndiKey | IndiType) => IndiKey | boolean;
|
|
533
|
+
isParentInLawOf: (indi?: IndiKey | IndiType) => IndiKey | boolean;
|
|
534
|
+
isChildInLawOf: (indi?: IndiKey | IndiType) => IndiKey | boolean;
|
|
535
|
+
isSiblingInLawOf: (indi?: IndiKey | IndiType) => IndiKey | boolean;
|
|
536
|
+
toFamilies: (list?: List) => Families;
|
|
537
|
+
getAscendants: () => Individuals;
|
|
538
|
+
getDescendants: () => Individuals;
|
|
539
|
+
getRelativesOnLevel: () => Individuals;
|
|
540
|
+
getRelativesOnDegree: () => Individuals;
|
|
541
|
+
getAllDescendants: () => Individuals;
|
|
542
|
+
getAllAscendants: () => Individuals;
|
|
543
|
+
getSiblings: () => Individuals;
|
|
544
|
+
getBrothers: () => Individuals;
|
|
545
|
+
getSisters: () => Individuals;
|
|
546
|
+
getChildren: () => Individuals;
|
|
547
|
+
getAdoptedChildren: () => Individuals;
|
|
548
|
+
getBirthChildren: () => Individuals;
|
|
549
|
+
getFosterChildren: () => Individuals;
|
|
550
|
+
getSealingChildren: () => Individuals;
|
|
551
|
+
getStepChildren: () => Individuals;
|
|
552
|
+
getSons: () => Individuals;
|
|
553
|
+
getAdoptedSons: () => Individuals;
|
|
554
|
+
getBirthSons: () => Individuals;
|
|
555
|
+
getFosterSons: () => Individuals;
|
|
556
|
+
getSealingSons: () => Individuals;
|
|
557
|
+
getStepSons: () => Individuals;
|
|
558
|
+
getDaughters: () => Individuals;
|
|
559
|
+
getAdoptedDaughters: () => Individuals;
|
|
560
|
+
getBirthDaughters: () => Individuals;
|
|
561
|
+
getFosterDaughters: () => Individuals;
|
|
562
|
+
getSealingDaughters: () => Individuals;
|
|
563
|
+
getStepDaughters: () => Individuals;
|
|
564
|
+
getParents: () => Individuals;
|
|
565
|
+
getAdoptedParents: () => Individuals;
|
|
566
|
+
getBirthParents: () => Individuals;
|
|
567
|
+
getFosterParents: () => Individuals;
|
|
568
|
+
getSealingParents: () => Individuals;
|
|
569
|
+
getStepParents: () => Individuals;
|
|
570
|
+
getFathers: () => Individuals;
|
|
571
|
+
getAdoptedFathers: () => Individuals;
|
|
572
|
+
getBirthFathers: () => Individuals;
|
|
573
|
+
getFosterFathers: () => Individuals;
|
|
574
|
+
getSealingFathers: () => Individuals;
|
|
575
|
+
getStepFathers: () => Individuals;
|
|
576
|
+
getMothers: () => Individuals;
|
|
577
|
+
getAdoptedMothers: () => Individuals;
|
|
578
|
+
getBirthMothers: () => Individuals;
|
|
579
|
+
getFosterMothers: () => Individuals;
|
|
580
|
+
getSealingMothers: () => Individuals;
|
|
581
|
+
getStepMothers: () => Individuals;
|
|
582
|
+
getSpouses: () => Individuals;
|
|
583
|
+
getCoParents: () => Individuals;
|
|
584
|
+
getWives: () => Individuals;
|
|
585
|
+
getHusbands: () => Individuals;
|
|
586
|
+
getCousins: () => Individuals;
|
|
587
|
+
getGrandParents: () => Individuals;
|
|
588
|
+
getGrandFathers: () => Individuals;
|
|
589
|
+
getGrandMothers: () => Individuals;
|
|
590
|
+
getGrandChildren: () => Individuals;
|
|
591
|
+
getGrandSons: () => Individuals;
|
|
592
|
+
getGrandDaughters: () => Individuals;
|
|
593
|
+
getGreatGrandParents: () => Individuals;
|
|
594
|
+
getGreatGrandFathers: () => Individuals;
|
|
595
|
+
getGreatGrandMothers: () => Individuals;
|
|
596
|
+
getGreatGrandChildren: () => Individuals;
|
|
597
|
+
getGreatGrandSons: () => Individuals;
|
|
598
|
+
getGreatGrandDaughters: () => Individuals;
|
|
599
|
+
getNiblings: () => Individuals;
|
|
600
|
+
getNieces: () => Individuals;
|
|
601
|
+
getNephews: () => Individuals;
|
|
602
|
+
getAuncles: () => Individuals;
|
|
603
|
+
getAunts: () => Individuals;
|
|
604
|
+
getUncles: () => Individuals;
|
|
605
|
+
getParentsInLaw: () => Individuals;
|
|
606
|
+
getFathersInLaw: () => Individuals;
|
|
607
|
+
getMothersInLaw: () => Individuals;
|
|
608
|
+
getChildrenInLaw: () => Individuals;
|
|
609
|
+
getSonsInLaw: () => Individuals;
|
|
610
|
+
getDaughtersInLaw: () => Individuals;
|
|
611
|
+
getSiblingsInLaw: () => Individuals;
|
|
612
|
+
getBrothersInLaw: () => Individuals;
|
|
613
|
+
getSistersInLaw: () => Individuals;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
type Kinship = "self" | "spouse" | "child" | "parent";
|
|
617
|
+
interface IKinshipTranslator {
|
|
618
|
+
isOfSpouse: boolean;
|
|
619
|
+
isSpouseOf: boolean;
|
|
620
|
+
displayName: "none" | "givenname" | "surname" | "all";
|
|
621
|
+
parent: () => string | undefined;
|
|
622
|
+
child: () => string | undefined;
|
|
623
|
+
sibling: () => string | undefined;
|
|
624
|
+
spouse: () => string | undefined;
|
|
625
|
+
indirect: () => string | undefined;
|
|
626
|
+
removal: () => string | undefined;
|
|
627
|
+
inLaw: (relation?: string) => string | undefined;
|
|
628
|
+
ofSpouse: (relation?: string) => string | undefined;
|
|
629
|
+
spouseOf: (relation?: string) => string | undefined;
|
|
630
|
+
relationType: (relation?: string) => string | undefined;
|
|
631
|
+
of: (relation?: string) => string | undefined;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
type Language = "en" | "hu" | "de" | "es" | "fr";
|
|
635
|
+
interface Cases {
|
|
636
|
+
nominativus: string;
|
|
637
|
+
dativus: string;
|
|
638
|
+
possessivus: string;
|
|
639
|
+
}
|
|
640
|
+
type CrossCase = Record<string, Cases>;
|
|
641
|
+
type CrossCases = Record<keyof Cases, CrossCase>;
|
|
642
|
+
|
|
643
|
+
declare class CommonName extends Common<string> {
|
|
644
|
+
NPFX?: Common;
|
|
645
|
+
GIVN?: Common;
|
|
646
|
+
NICK?: Common;
|
|
647
|
+
SPFX?: Common;
|
|
648
|
+
SURN?: Common;
|
|
649
|
+
NSFX?: Common;
|
|
650
|
+
DISPLAY?: Common;
|
|
651
|
+
_MARNM?: Common;
|
|
652
|
+
constructor(gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common);
|
|
653
|
+
set value(value: string | undefined);
|
|
654
|
+
get value(): string | undefined;
|
|
655
|
+
name(value: string | undefined): this;
|
|
656
|
+
}
|
|
657
|
+
declare const createCommonName: (gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common) => ProxyOriginal<CommonName>;
|
|
658
|
+
|
|
659
|
+
interface IEventDetailStructure extends IDateStructure, IPlaceStructure, IAddressStructure, IAssociationStructure, INoteStructure, ISourceCitationStructure, IMultimediaLinkStructure {
|
|
660
|
+
PHON?: Common;
|
|
661
|
+
EMAIL?: Common;
|
|
662
|
+
FAX?: Common;
|
|
663
|
+
WWW?: Common;
|
|
664
|
+
AGNC?: Common;
|
|
665
|
+
RELI?: Common;
|
|
666
|
+
CAUS?: Common;
|
|
667
|
+
RESN?: Common;
|
|
668
|
+
SDATE?: Common & {
|
|
669
|
+
TIME?: Common;
|
|
670
|
+
PHRASE?: Common;
|
|
671
|
+
};
|
|
672
|
+
UID?: Common;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
interface IIndividualEventDetailStructure extends IEventDetailStructure {
|
|
676
|
+
AGE?: Common & {
|
|
677
|
+
PHRASE?: Common;
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
interface IIndividualEventStructure extends IIndividualEventDetailStructure {
|
|
682
|
+
BAPM?: Common & {
|
|
683
|
+
TYPE?: Common;
|
|
684
|
+
} & IEventDetailStructure;
|
|
685
|
+
BARM?: Common & {
|
|
686
|
+
TYPE?: Common;
|
|
687
|
+
} & IEventDetailStructure;
|
|
688
|
+
BASM?: Common & {
|
|
689
|
+
TYPE?: Common;
|
|
690
|
+
} & IEventDetailStructure;
|
|
691
|
+
BLES?: Common & {
|
|
692
|
+
TYPE?: Common;
|
|
693
|
+
} & IEventDetailStructure;
|
|
694
|
+
BURI?: Common & {
|
|
695
|
+
TYPE?: Common;
|
|
696
|
+
} & IEventDetailStructure;
|
|
697
|
+
CENS?: Common & {
|
|
698
|
+
TYPE?: Common;
|
|
699
|
+
} & IEventDetailStructure;
|
|
700
|
+
CHRA?: Common & {
|
|
701
|
+
TYPE?: Common;
|
|
702
|
+
} & IEventDetailStructure;
|
|
703
|
+
CONF?: Common & {
|
|
704
|
+
TYPE?: Common;
|
|
705
|
+
} & IEventDetailStructure;
|
|
706
|
+
CREM?: Common & {
|
|
707
|
+
TYPE?: Common;
|
|
708
|
+
} & IEventDetailStructure;
|
|
709
|
+
DEAT?: Common & {
|
|
710
|
+
TYPE?: Common;
|
|
711
|
+
} & IEventDetailStructure;
|
|
712
|
+
EMIG?: Common & {
|
|
713
|
+
TYPE?: Common;
|
|
714
|
+
} & IEventDetailStructure;
|
|
715
|
+
FCOM?: Common & {
|
|
716
|
+
TYPE?: Common;
|
|
717
|
+
} & IEventDetailStructure;
|
|
718
|
+
GRAD?: Common & {
|
|
719
|
+
TYPE?: Common;
|
|
720
|
+
} & IEventDetailStructure;
|
|
721
|
+
IMMI?: Common & {
|
|
722
|
+
TYPE?: Common;
|
|
723
|
+
} & IEventDetailStructure;
|
|
724
|
+
NATU?: Common & {
|
|
725
|
+
TYPE?: Common;
|
|
726
|
+
} & IEventDetailStructure;
|
|
727
|
+
ORDN?: Common & {
|
|
728
|
+
TYPE?: Common;
|
|
729
|
+
} & IEventDetailStructure;
|
|
730
|
+
PROB?: Common & {
|
|
731
|
+
TYPE?: Common;
|
|
732
|
+
} & IEventDetailStructure;
|
|
733
|
+
RETI?: Common & {
|
|
734
|
+
TYPE?: Common;
|
|
735
|
+
} & IEventDetailStructure;
|
|
736
|
+
WILL?: Common & {
|
|
737
|
+
TYPE?: Common;
|
|
738
|
+
} & IEventDetailStructure;
|
|
739
|
+
ADOP?: Common & {
|
|
740
|
+
TYPE?: Common;
|
|
741
|
+
FAMC?: Common & {
|
|
742
|
+
ADOP?: Common & {
|
|
743
|
+
PHRASE?: Common;
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
} & IEventDetailStructure;
|
|
747
|
+
BIRT?: Common & {
|
|
748
|
+
TYPE?: Common;
|
|
749
|
+
FAMC?: Common;
|
|
750
|
+
} & IEventDetailStructure;
|
|
751
|
+
CHR?: Common & {
|
|
752
|
+
TYPE?: Common;
|
|
753
|
+
FAMC?: Common;
|
|
754
|
+
} & IEventDetailStructure;
|
|
755
|
+
EVEN?: Common & {
|
|
756
|
+
TYPE?: Common;
|
|
757
|
+
} & IEventDetailStructure;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
interface IIndividualStructure extends Common, IIndividualEventStructure, IChangeDateStructure, ICreationDateStructure, IAssociationStructure, IMultimediaLinkStructure, INonEventStructure, INoteStructure, ISourceCitationStructure {
|
|
761
|
+
NAME?: CommonName;
|
|
762
|
+
RESN?: Common;
|
|
763
|
+
SEX?: Common<"F" | "M">;
|
|
764
|
+
FAMC?: Common & {
|
|
765
|
+
PEDI?: Common & {
|
|
766
|
+
PHRASE?: Common;
|
|
767
|
+
};
|
|
768
|
+
STAT?: Common & {
|
|
769
|
+
PHRASE?: Common;
|
|
770
|
+
};
|
|
771
|
+
} & INoteStructure;
|
|
772
|
+
FAMS?: Common & INoteStructure;
|
|
773
|
+
SUBM?: Common;
|
|
774
|
+
ALIA?: Common & {
|
|
775
|
+
PHRASE?: Common;
|
|
776
|
+
};
|
|
777
|
+
ANCI?: Common;
|
|
778
|
+
DESI?: Common;
|
|
779
|
+
_WLNK?: Common & {
|
|
780
|
+
TITL?: Common;
|
|
781
|
+
NOTE?: CommonNote;
|
|
782
|
+
};
|
|
783
|
+
_FS_LINK?: Common;
|
|
784
|
+
_FS_ID?: Common;
|
|
785
|
+
INDIVIDUALINTERNALHYPERLINK?: Common;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
interface Place {
|
|
789
|
+
key: string;
|
|
790
|
+
index: number;
|
|
791
|
+
obj?: Common;
|
|
792
|
+
ref?: Common;
|
|
793
|
+
place?: string;
|
|
794
|
+
}
|
|
795
|
+
declare enum PlaceType {
|
|
796
|
+
All = "ALL",
|
|
797
|
+
Birth = "BIRT",
|
|
798
|
+
Marriage = "MARR",
|
|
799
|
+
Death = "DEAT",
|
|
800
|
+
Events = "EVEN",
|
|
801
|
+
Military = "_MILT",
|
|
802
|
+
MilitaryId = "_MILTID"
|
|
803
|
+
}
|
|
804
|
+
declare const getPlaces: (common: Common | List, type?: PlaceType | Tag | Array<PlaceType | Tag>, maxLevel?: number, level?: number, mainKey?: string) => Place[];
|
|
805
|
+
|
|
806
|
+
declare enum Existed {
|
|
807
|
+
SPOUSE = "spouse",
|
|
808
|
+
YES = "yes"
|
|
809
|
+
}
|
|
810
|
+
declare enum CustomTags {
|
|
811
|
+
UnknownGivenname = "Unknown givenname",
|
|
812
|
+
UnknownSurname = "Unknown surname",
|
|
813
|
+
UnattachedMember = "Unattached member",
|
|
814
|
+
IgnoredMember = "Ignored member",
|
|
815
|
+
UnknownAncestor = "Unknown Ancestor"
|
|
816
|
+
}
|
|
817
|
+
declare class Indi extends Common<string, IndiKey> implements IIndi {
|
|
818
|
+
private _isUnknownAncestor?;
|
|
819
|
+
private _isUnattachedMember?;
|
|
820
|
+
private _isOrphanFamilyMember?;
|
|
821
|
+
private _isUnknownGivenname?;
|
|
822
|
+
private _isUnknownSurname?;
|
|
823
|
+
private _isIgnoredPerson?;
|
|
824
|
+
private _isEmpty?;
|
|
825
|
+
private readonly _places?;
|
|
826
|
+
toName(): string;
|
|
827
|
+
toNaturalName(): string;
|
|
828
|
+
toList(): Individuals;
|
|
829
|
+
private generateTree;
|
|
830
|
+
getPlaces(type?: PlaceType | PlaceType[], maxLevel?: number): Place[];
|
|
831
|
+
getTree(props?: {
|
|
832
|
+
descendants?: boolean;
|
|
833
|
+
offspringSpouses?: boolean;
|
|
834
|
+
ancestorSpouses?: boolean;
|
|
835
|
+
onlyDescendants?: boolean;
|
|
836
|
+
maxGen?: number;
|
|
837
|
+
minGen?: number;
|
|
838
|
+
drawNonBiologicalAncestors?: boolean;
|
|
839
|
+
ancestorSiblings?: boolean;
|
|
840
|
+
}): {
|
|
841
|
+
gen: number;
|
|
842
|
+
indis: TreeMember<IndiType>[];
|
|
843
|
+
half: number;
|
|
844
|
+
}[];
|
|
845
|
+
getGenealogy(onlyStraight?: boolean, showDescendants?: boolean): MemberSide<IndiType, {
|
|
846
|
+
gen: number;
|
|
847
|
+
}>[];
|
|
848
|
+
ancestryLink(): string;
|
|
849
|
+
ancestryMedia(namespace?: string | number): Promise<MediaList>;
|
|
850
|
+
myheritageLink(poolId?: number): string;
|
|
851
|
+
myheritageMedia(): MediaList;
|
|
852
|
+
familySearchLink(): string | undefined;
|
|
853
|
+
hasFamilySearchMatches(): boolean;
|
|
854
|
+
getFamilySearchMatches(): FamilySearchMatch[];
|
|
855
|
+
hasFamilySearchSources(): boolean;
|
|
856
|
+
getFamilySearchSources(): FamilySearchSource[];
|
|
857
|
+
multimedia(namespace?: string | number): Promise<MediaList | undefined>;
|
|
858
|
+
link(poolId?: number): string;
|
|
859
|
+
toFamilies(list?: List): Families;
|
|
860
|
+
getFamilies(type: "FAMC" | "FAMS"): Families;
|
|
861
|
+
getFamiliesBiologicalFirst(type: "FAMC" | "FAMS"): Families;
|
|
862
|
+
getBirthDate(showDays?: boolean, shortNote?: boolean, showNote?: boolean): string;
|
|
863
|
+
getDeathDate(showDays?: boolean, shortNote?: boolean, showNote?: boolean): string;
|
|
864
|
+
getBirthPlace(): string;
|
|
865
|
+
getDeathPlace(): string;
|
|
866
|
+
isDead(): boolean;
|
|
867
|
+
isEmpty(): boolean;
|
|
868
|
+
isUnknownAncestor(): boolean;
|
|
869
|
+
isIgnoredMember(): boolean;
|
|
870
|
+
isUnattachedMember(): boolean;
|
|
871
|
+
isOrphanFamilyMember(): boolean;
|
|
872
|
+
isUnknownGivenname(): boolean;
|
|
873
|
+
isUnknownSurname(): boolean;
|
|
874
|
+
isNonRelevantMember(): boolean;
|
|
875
|
+
isMale(): boolean;
|
|
876
|
+
isFemale(): boolean;
|
|
877
|
+
isUnknownSex(): boolean;
|
|
878
|
+
getParentType(id: IndiType | IndiKey): RelationType;
|
|
879
|
+
hasFacts(): boolean;
|
|
880
|
+
getLinks(): List<IdType, Required<IIndividualStructure>["_WLNK"]> | undefined;
|
|
881
|
+
getAkas(limit?: number): List<IdType, Common<string, IdType>>;
|
|
882
|
+
getFacts(limit?: number, filter?: MultiTag | MultiTag[]): List<IdType, Common<string, IdType>>;
|
|
883
|
+
commonAncestor(person?: IndiKey | IndiType, options?: {
|
|
884
|
+
breakAfterSpouse?: boolean;
|
|
885
|
+
breakAfterNonBiological?: boolean;
|
|
886
|
+
}): IndiType | undefined;
|
|
887
|
+
path(person?: IndiKey | IndiType, options?: {
|
|
888
|
+
breakAfterSpouse?: boolean;
|
|
889
|
+
breakAfterNonBiological?: boolean;
|
|
890
|
+
}): ReducedPath | undefined;
|
|
891
|
+
kinship<T extends boolean | undefined>(other?: IndiKey | IndiType, showMainPerson?: boolean, lang?: Language, entirePath?: T, displayName?: "none" | "givenname" | "surname" | "all"): (T extends false | undefined ? string : Array<{
|
|
892
|
+
id?: IndiKey;
|
|
893
|
+
gen: number;
|
|
894
|
+
relative?: string;
|
|
895
|
+
absolute?: string;
|
|
896
|
+
}>) | undefined;
|
|
897
|
+
private isRelativeOf;
|
|
898
|
+
isSiblingOf(indi?: IndiKey | IndiType): boolean;
|
|
899
|
+
isFullSiblingOf(indi?: IndiKey | IndiType): boolean;
|
|
900
|
+
isHalfSiblingOf(indi?: IndiKey | IndiType): boolean;
|
|
901
|
+
isSpouseOf(indi?: IndiKey | IndiType): boolean;
|
|
902
|
+
isParentOf(indi?: IndiKey | IndiType): boolean;
|
|
903
|
+
isChildOf(indi?: IndiKey | IndiType): boolean;
|
|
904
|
+
isSiblingInLawOf(indi?: IndiKey | IndiType): boolean;
|
|
905
|
+
isParentInLawOf(indi?: IndiKey | IndiType): boolean;
|
|
906
|
+
isChildInLawOf(indi?: IndiKey | IndiType): boolean;
|
|
907
|
+
getRelativesOnDegree(degree?: number): Individuals;
|
|
908
|
+
getRelativesOnLevel(level?: number, filter?: Filter): Individuals;
|
|
909
|
+
getAscendants(level?: number, filter?: Filter): Individuals;
|
|
910
|
+
getDescendants(level?: number, filter?: Filter): Individuals;
|
|
911
|
+
getAllDescendantsRaw(individuals?: Individuals, containDescendantsInLaw?: boolean): {
|
|
912
|
+
relatives: Individuals;
|
|
913
|
+
generations: Record<number, Individuals>;
|
|
914
|
+
};
|
|
915
|
+
getAllDescendants(individuals?: Individuals, containDescendantsInLaw?: boolean): Individuals;
|
|
916
|
+
getAllAscendantsRaw(individuals?: Individuals): {
|
|
917
|
+
relatives: Individuals;
|
|
918
|
+
generations: Record<number, Individuals>;
|
|
919
|
+
};
|
|
920
|
+
getAllAscendants(individuals?: Individuals): Individuals;
|
|
921
|
+
getHalfSiblings(): Individuals;
|
|
922
|
+
getFullSiblings(): Individuals;
|
|
923
|
+
getSiblings(): Individuals;
|
|
924
|
+
getBrothers(): Individuals;
|
|
925
|
+
getSisters(): Individuals;
|
|
926
|
+
getChildren(filter?: Filter): Individuals;
|
|
927
|
+
private getChildrenFilteredByPedigree;
|
|
928
|
+
getBiologicalChildren(): Individuals;
|
|
929
|
+
getAdoptedChildren(): Individuals;
|
|
930
|
+
getBirthChildren(): Individuals;
|
|
931
|
+
getFosterChildren(): Individuals;
|
|
932
|
+
getSealingChildren(): Individuals;
|
|
933
|
+
getStepChildren(): Individuals;
|
|
934
|
+
getSons(): Individuals;
|
|
935
|
+
getBiologicalSons(): Individuals;
|
|
936
|
+
getAdoptedSons(): Individuals;
|
|
937
|
+
getBirthSons(): Individuals;
|
|
938
|
+
getFosterSons(): Individuals;
|
|
939
|
+
getSealingSons(): Individuals;
|
|
940
|
+
getStepSons(): Individuals;
|
|
941
|
+
getDaughters(): Individuals;
|
|
942
|
+
getBiologicalDaugthers(): Individuals;
|
|
943
|
+
getAdoptedDaughters(): Individuals;
|
|
944
|
+
getBirthDaughters(): Individuals;
|
|
945
|
+
getFosterDaughters(): Individuals;
|
|
946
|
+
getSealingDaughters(): Individuals;
|
|
947
|
+
getStepDaughters(): Individuals;
|
|
948
|
+
getParents(filter?: Filter): Individuals;
|
|
949
|
+
private getParentsFilteredByPedigree;
|
|
950
|
+
private getSpousesFilteredByPartner;
|
|
951
|
+
getBiologicalParents(): Individuals;
|
|
952
|
+
getAdoptedParents(): Individuals;
|
|
953
|
+
getBirthParents(): Individuals;
|
|
954
|
+
getFosterParents(): Individuals;
|
|
955
|
+
getSealingParents(): Individuals;
|
|
956
|
+
getStepParents(): Individuals;
|
|
957
|
+
getFathers(): Individuals;
|
|
958
|
+
getBiologicalFathers(): Individuals;
|
|
959
|
+
getAdoptedFathers(): Individuals;
|
|
960
|
+
getBirthFathers(): Individuals;
|
|
961
|
+
getFosterFathers(): Individuals;
|
|
962
|
+
getSealingFathers(): Individuals;
|
|
963
|
+
getStepFathers(): Individuals;
|
|
964
|
+
getMothers(): Individuals;
|
|
965
|
+
getBiologicalMothers(): Individuals;
|
|
966
|
+
getAdoptedMothers(): Individuals;
|
|
967
|
+
getBirthMothers(): Individuals;
|
|
968
|
+
getFosterMothers(): Individuals;
|
|
969
|
+
getSealingMothers(): Individuals;
|
|
970
|
+
getStepMothers(): Individuals;
|
|
971
|
+
getCoParents(): Individuals;
|
|
972
|
+
getSpouses(): Individuals;
|
|
973
|
+
getPartners(): Individuals;
|
|
974
|
+
getFriends(): Individuals;
|
|
975
|
+
getWives(): Individuals;
|
|
976
|
+
getHusbands(): Individuals;
|
|
977
|
+
getCousins(): Individuals;
|
|
978
|
+
getGrandParents(): Individuals;
|
|
979
|
+
getGrandFathers(): Individuals;
|
|
980
|
+
getGrandMothers(): Individuals;
|
|
981
|
+
getGrandChildren(): Individuals;
|
|
982
|
+
getGrandSons(): Individuals;
|
|
983
|
+
getGrandDaughters(): Individuals;
|
|
984
|
+
getGreatGrandParents(): Individuals;
|
|
985
|
+
getGreatGrandFathers(): Individuals;
|
|
986
|
+
getGreatGrandMothers(): Individuals;
|
|
987
|
+
getGreatGrandChildren(): Individuals;
|
|
988
|
+
getGreatGrandSons(): Individuals;
|
|
989
|
+
getGreatGrandDaughters(): Individuals;
|
|
990
|
+
getAuncles(): Individuals;
|
|
991
|
+
getAunts(): Individuals;
|
|
992
|
+
getUncles(): Individuals;
|
|
993
|
+
getNiblings(): Individuals;
|
|
994
|
+
getNieces(): Individuals;
|
|
995
|
+
getNephews(): Individuals;
|
|
996
|
+
getParentsInLaw(): Individuals;
|
|
997
|
+
getFathersInLaw(): Individuals;
|
|
998
|
+
getMothersInLaw(): Individuals;
|
|
999
|
+
getSiblingsInLaw(): Individuals;
|
|
1000
|
+
getBrothersInLaw(): Individuals;
|
|
1001
|
+
getSistersInLaw(): Individuals;
|
|
1002
|
+
getChildrenInLaw(): Individuals;
|
|
1003
|
+
getSonsInLaw(): Individuals;
|
|
1004
|
+
getDaughtersInLaw(): Individuals;
|
|
1005
|
+
get2ndCousins(): Individuals;
|
|
1006
|
+
get2ndGreatGrandParents(): Individuals;
|
|
1007
|
+
get2ndGreatGrandChildren(): Individuals;
|
|
1008
|
+
get3rdCousins(): Individuals;
|
|
1009
|
+
get3rdGreatGrandParents(): Individuals;
|
|
1010
|
+
get3rdGreatGrandChildren(): Individuals;
|
|
1011
|
+
get4thCousins(): Individuals;
|
|
1012
|
+
get4thGreatGrandParents(): Individuals;
|
|
1013
|
+
get4thGreatGrandChildren(): Individuals;
|
|
1014
|
+
get5thCousins(): Individuals;
|
|
1015
|
+
get5thGreatGrandParents(): Individuals;
|
|
1016
|
+
get5thGreatGrandChildren(): Individuals;
|
|
1017
|
+
get6thCousins(): Individuals;
|
|
1018
|
+
get6thGreatGrandParents(): Individuals;
|
|
1019
|
+
get6thGreatGrandChildren(): Individuals;
|
|
1020
|
+
get7thCousins(): Individuals;
|
|
1021
|
+
get7thGreatGrandParents(): Individuals;
|
|
1022
|
+
get7thGreatGrandChildren(): Individuals;
|
|
1023
|
+
get8thCousins(): Individuals;
|
|
1024
|
+
get8thGreatGrandParents(): Individuals;
|
|
1025
|
+
get8thGreatGrandChildren(): Individuals;
|
|
1026
|
+
get9thCousins(): Individuals;
|
|
1027
|
+
get9thGreatGrandParents(): Individuals;
|
|
1028
|
+
get9thGreatGrandChildren(): Individuals;
|
|
1029
|
+
}
|
|
1030
|
+
type IndiType = Indi & IIndividualStructure & GeneratedIndiMethods;
|
|
1031
|
+
interface FamilySearchMatch {
|
|
1032
|
+
id?: string;
|
|
1033
|
+
title?: string;
|
|
1034
|
+
type?: string;
|
|
1035
|
+
ref?: string;
|
|
1036
|
+
score?: number;
|
|
1037
|
+
text?: string;
|
|
1038
|
+
www?: string;
|
|
1039
|
+
notes?: string[];
|
|
1040
|
+
status?: string;
|
|
1041
|
+
gender?: string;
|
|
1042
|
+
lifespan?: string;
|
|
1043
|
+
birthDate?: string;
|
|
1044
|
+
birthPlace?: string;
|
|
1045
|
+
deathDate?: string;
|
|
1046
|
+
deathPlace?: string;
|
|
1047
|
+
marriageDate?: string;
|
|
1048
|
+
marriagePlace?: string;
|
|
1049
|
+
}
|
|
1050
|
+
interface FamilySearchSource {
|
|
1051
|
+
id?: string;
|
|
1052
|
+
title?: string;
|
|
1053
|
+
text?: string;
|
|
1054
|
+
www?: string;
|
|
1055
|
+
notes?: string[];
|
|
1056
|
+
}
|
|
1057
|
+
interface TreeMember<T = IndiType> {
|
|
1058
|
+
id: FamKey | IndiKey;
|
|
1059
|
+
index: number;
|
|
1060
|
+
father?: T;
|
|
1061
|
+
mother?: T;
|
|
1062
|
+
fatherSpouses?: T[];
|
|
1063
|
+
motherSpouses?: T[];
|
|
1064
|
+
}
|
|
1065
|
+
type GenealogyMember<T = IndiType> = TreeMember<T> & {
|
|
1066
|
+
fatherSiblings?: T[];
|
|
1067
|
+
motherSiblings?: T[];
|
|
1068
|
+
};
|
|
1069
|
+
interface IndiTree<T = IndiType> {
|
|
1070
|
+
existed: Record<IndiKey, Existed | undefined>;
|
|
1071
|
+
tree: Record<number, Array<TreeMember<T> | undefined>>;
|
|
1072
|
+
halves: Record<number, number | undefined>;
|
|
1073
|
+
lastItems: Record<number, TreeMember<T> | undefined>;
|
|
1074
|
+
}
|
|
1075
|
+
type IndiGenealogy<T = IndiType> = Pick<IndiTree<T>, "existed" | "halves" | "lastItems"> & {
|
|
1076
|
+
tree: Record<number, Array<GenealogyMember<T> | undefined>>;
|
|
1077
|
+
};
|
|
1078
|
+
interface IndiMarker<T = IndiType> {
|
|
1079
|
+
isPrev?: boolean;
|
|
1080
|
+
isNext?: boolean;
|
|
1081
|
+
items: Array<T | undefined>;
|
|
1082
|
+
}
|
|
1083
|
+
type MemberSide<T = IndiType, O extends object = object> = {
|
|
1084
|
+
left: Array<Array<T | undefined> | undefined>;
|
|
1085
|
+
right: Array<Array<T | undefined> | undefined>;
|
|
1086
|
+
} & O;
|
|
1087
|
+
type MemberMain<T = IndiType> = MemberSide<T> & {
|
|
1088
|
+
main: MemberSide<T>;
|
|
1089
|
+
};
|
|
1090
|
+
interface GenerationSpouseType {
|
|
1091
|
+
indi: IndiType;
|
|
1092
|
+
extra?: boolean;
|
|
1093
|
+
normal?: boolean;
|
|
1094
|
+
}
|
|
1095
|
+
interface GenerationIndiType {
|
|
1096
|
+
indi: IndiType;
|
|
1097
|
+
leftSpouses?: GenerationSpouseType[];
|
|
1098
|
+
rightSpouses?: GenerationSpouseType[];
|
|
1099
|
+
}
|
|
1100
|
+
type IndiGenealogyGenerations<T = IndiType> = Record<number, MemberMain<T>>;
|
|
1101
|
+
type IndiGenealogyResult<T = IndiType> = Record<number, MemberSide<T>>;
|
|
1102
|
+
type NonNullIndiGenealogyResult<T = IndiType> = Record<number, Array<Array<T | undefined>>>;
|
|
1103
|
+
interface PathItem {
|
|
1104
|
+
indi: IndiType;
|
|
1105
|
+
level: number;
|
|
1106
|
+
levelUp: number;
|
|
1107
|
+
levelDown: number;
|
|
1108
|
+
degree: number;
|
|
1109
|
+
kinship: Kinship;
|
|
1110
|
+
relation?: RelationType;
|
|
1111
|
+
inLaw?: boolean;
|
|
1112
|
+
breakOnNext?: boolean;
|
|
1113
|
+
breakAfterNext?: boolean;
|
|
1114
|
+
}
|
|
1115
|
+
type Path = PathItem[];
|
|
1116
|
+
type ReducedPath = Array<Omit<PathItem, "breakOnNext" | "breakAfterNext">>;
|
|
1117
|
+
type QueueItem = {
|
|
1118
|
+
path: Path;
|
|
1119
|
+
} & PathItem;
|
|
1120
|
+
type Queue = QueueItem[];
|
|
1121
|
+
declare const createIndi: (gedcom: GedComType, id: IndiKey, main?: Common, parent?: Common) => ProxyOriginal<IndiType>;
|
|
1122
|
+
|
|
1123
|
+
interface IIndividuals extends IList<IndiKey, IndiType> {
|
|
1124
|
+
toName: () => List;
|
|
1125
|
+
isParentOf: (indi?: IndiKey | IndiType, every?: boolean) => IndiKey | boolean;
|
|
1126
|
+
isChildOf: (indi?: IndiKey | IndiType, every?: boolean) => IndiKey | boolean;
|
|
1127
|
+
isSiblingOf: (indi?: IndiKey | IndiType, every?: boolean) => IndiKey | boolean;
|
|
1128
|
+
isSpouseOf: (indi?: IndiKey | IndiType, every?: boolean) => IndiKey | boolean;
|
|
1129
|
+
isParentInLawOf: (indi?: IndiKey | IndiType, every?: boolean) => IndiKey | boolean;
|
|
1130
|
+
isChildInLawOf: (indi?: IndiKey | IndiType, every?: boolean) => IndiKey | boolean;
|
|
1131
|
+
splitByFamily: (type: "Spouses" | "Children") => {
|
|
1132
|
+
items: Record<FamKey, Individuals | undefined>;
|
|
1133
|
+
lengthOfFamily: number;
|
|
1134
|
+
lengthOfIndividuals: number;
|
|
1135
|
+
};
|
|
1136
|
+
getAscendants: () => Individuals;
|
|
1137
|
+
getDescendants: () => Individuals;
|
|
1138
|
+
getAllAscendants: () => Individuals;
|
|
1139
|
+
getAllDescendants: () => Individuals;
|
|
1140
|
+
getRelativesOnLevel: () => Individuals;
|
|
1141
|
+
getRelativesOnDegree: () => Individuals;
|
|
1142
|
+
getSpouses: () => Individuals;
|
|
1143
|
+
getCoParents: () => Individuals;
|
|
1144
|
+
getSiblings: () => Individuals;
|
|
1145
|
+
getChildren: () => Individuals;
|
|
1146
|
+
getParents: () => Individuals;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
interface Settings {
|
|
1150
|
+
maxGivennames: number;
|
|
1151
|
+
maxSurnames: number;
|
|
1152
|
+
showSuffix: boolean;
|
|
1153
|
+
dateFormatPattern: string;
|
|
1154
|
+
nameOrder: NameOrder;
|
|
1155
|
+
placeOrder: PlaceOrder;
|
|
1156
|
+
linkedPersons?: LinkedPersons;
|
|
1157
|
+
linkingKey?: MultiTag;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
declare class Individuals extends List<IndiKey, IndiType> implements IIndividuals {
|
|
1161
|
+
copy(): Individuals;
|
|
1162
|
+
except(item: IndiType): Individuals;
|
|
1163
|
+
filter(filters: Filter | FilterIterator<IndiType, IndiKey>): Individuals;
|
|
1164
|
+
find(filters: Filter | FilterIterator<IndiType, IndiKey>): IndiType | undefined;
|
|
1165
|
+
unattachedFilter(useUnattached: boolean): Individuals;
|
|
1166
|
+
orderBy(orders: Order | OrderIterator<IndiType, IndiKey>): Individuals;
|
|
1167
|
+
getFirstEvent(): IndiType;
|
|
1168
|
+
getLastEvent(): IndiType;
|
|
1169
|
+
getFirstBirth(): IndiType;
|
|
1170
|
+
getLastBirth(): IndiType;
|
|
1171
|
+
getFirstDeath(): IndiType;
|
|
1172
|
+
getLastDeath(): IndiType;
|
|
1173
|
+
groupBy(group: Group | GroupIterator<IndiType, IndiKey>, sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number, lessOccuranceLabel?: string): Record<string, Individuals>;
|
|
1174
|
+
groupByFirstLetters(sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number, settings?: Settings): Record<string, Individuals>;
|
|
1175
|
+
groupBySurnames(sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number): Record<string, Individuals>;
|
|
1176
|
+
groupByTimeRanges(range: Range, sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number): Record<string, Individuals>;
|
|
1177
|
+
nestedGroupByPlacesAndTimeRanges(sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number, uniqueCounting?: boolean): NestedGroup;
|
|
1178
|
+
nestedGroupByTimeRangesAndPlaces(sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number, uniqueCounting?: boolean): NestedGroup;
|
|
1179
|
+
nestedGroupByPlaces(sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number, partOrder?: "original" | "reverse", translate?: boolean, uniqueCounting?: boolean, groupKeyTranslator?: (parts: string[]) => string | undefined): NestedGroup;
|
|
1180
|
+
groupByPlaces(sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number, partOrder?: "original" | "reverse", translate?: boolean, groupKeyTranslator?: (parts: string[]) => string | undefined): Record<string, Individuals>;
|
|
1181
|
+
getFacts(): List<IdType, Common<string, IdType>>;
|
|
1182
|
+
private isRelativeOf;
|
|
1183
|
+
isSiblingOf(indi?: IndiKey | IndiType, every?: boolean): boolean | `@I${number}@` | `@P${number}@` | `@XI${number}@` | `@XXI${number}@`;
|
|
1184
|
+
isSpouseOf(indi?: IndiKey | IndiType, every?: boolean): boolean | `@I${number}@` | `@P${number}@` | `@XI${number}@` | `@XXI${number}@`;
|
|
1185
|
+
isParentOf(indi?: IndiKey | IndiType, every?: boolean): boolean | `@I${number}@` | `@P${number}@` | `@XI${number}@` | `@XXI${number}@`;
|
|
1186
|
+
isChildOf(indi?: IndiKey | IndiType, every?: boolean): boolean | `@I${number}@` | `@P${number}@` | `@XI${number}@` | `@XXI${number}@`;
|
|
1187
|
+
isParentInLawOf(indi?: IndiKey | IndiType, every?: boolean): boolean | `@I${number}@` | `@P${number}@` | `@XI${number}@` | `@XXI${number}@`;
|
|
1188
|
+
isChildInLawOf(indi?: IndiKey | IndiType, every?: boolean): boolean | `@I${number}@` | `@P${number}@` | `@XI${number}@` | `@XXI${number}@`;
|
|
1189
|
+
splitByFamily(type: "Spouses" | "Parents" | "Children", relativeTo?: IndiType): {
|
|
1190
|
+
items: Record<`@F${number}@` | `@XF${number}@` | `@XXF${number}@`, Individuals>;
|
|
1191
|
+
lengthOfFamily: number;
|
|
1192
|
+
lengthOfIndividuals: number;
|
|
1193
|
+
};
|
|
1194
|
+
getRelativesOnDegree(degree?: number): Individuals;
|
|
1195
|
+
getRelativesOnLevel(level?: number, filter?: Filter): Individuals;
|
|
1196
|
+
getAscendants(level?: number, filter?: Filter): Individuals;
|
|
1197
|
+
getDescendants(level?: number, filter?: Filter): Individuals;
|
|
1198
|
+
getAllAscendants(individuals?: Individuals): Individuals;
|
|
1199
|
+
getAllDescendants(individuals?: Individuals, containDescendantsInLaw?: boolean): Individuals;
|
|
1200
|
+
getSiblings(): Individuals;
|
|
1201
|
+
getChildren(): Individuals;
|
|
1202
|
+
getParents(): Individuals;
|
|
1203
|
+
getCoParents(): Individuals;
|
|
1204
|
+
getSpouses(): Individuals;
|
|
1205
|
+
toName(): List<IdType, Common<string, IdType>>;
|
|
1206
|
+
toList(): Individuals;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
type ConvertType = "FAM" | "INDI" | "_INDI" | "OBJE" | "SOUR" | "REPO" | "SUBM";
|
|
1210
|
+
type IndiKey = `@${"I" | "P" | "XI" | "XXI"}${number}@`;
|
|
1211
|
+
type FamKey = `@${"F" | "XF" | "XXF"}${number}@`;
|
|
1212
|
+
type ObjeKey = `@O${number}@`;
|
|
1213
|
+
type RepoKey = `@R${number}@`;
|
|
1214
|
+
type SourKey = `@S${number}@`;
|
|
1215
|
+
type SubmKey = `@SUBM${number}@`;
|
|
1216
|
+
type TagKey = `@T${number}@`;
|
|
1217
|
+
type UnknownKey = `@U${number}@`;
|
|
1218
|
+
type IdType = IndiKey | FamKey | ObjeKey | SourKey | RepoKey | SubmKey | UnknownKey;
|
|
1219
|
+
declare enum RelationType {
|
|
1220
|
+
BIOLOGICAL = "biological",
|
|
1221
|
+
ADOPTED = "adopted",
|
|
1222
|
+
FOSTER = "foster",
|
|
1223
|
+
SEALING = "sealing",
|
|
1224
|
+
BIRTH = "birth",
|
|
1225
|
+
STEP = "step"
|
|
1226
|
+
}
|
|
1227
|
+
declare enum PartnerType {
|
|
1228
|
+
SPOUSE = "spouse",
|
|
1229
|
+
PARTNER = "partner",
|
|
1230
|
+
FRIEND = "friend",
|
|
1231
|
+
SINGLE = "single",
|
|
1232
|
+
OTHER = "other",
|
|
1233
|
+
UNKOWN = "unknown"
|
|
1234
|
+
}
|
|
1235
|
+
interface NonStandard {
|
|
1236
|
+
value?: any;
|
|
1237
|
+
id?: any;
|
|
1238
|
+
}
|
|
1239
|
+
interface Tags {
|
|
1240
|
+
_PRIM?: Common<"Y" | "N">;
|
|
1241
|
+
_EXPORTED_FROM_SITE_ID?: Common;
|
|
1242
|
+
_CLON?: Common;
|
|
1243
|
+
_MSER?: Common;
|
|
1244
|
+
_OID?: Common;
|
|
1245
|
+
_LKID?: Common;
|
|
1246
|
+
_PHOTO_RIN?: Common;
|
|
1247
|
+
_MTTAG?: Common & {
|
|
1248
|
+
NAME?: Common;
|
|
1249
|
+
};
|
|
1250
|
+
_MTCAT?: Common & {
|
|
1251
|
+
NAME?: Common;
|
|
1252
|
+
};
|
|
1253
|
+
_SREL?: Common;
|
|
1254
|
+
_FREL?: Common;
|
|
1255
|
+
_MREL?: Common;
|
|
1256
|
+
_MILT?: Common;
|
|
1257
|
+
_MILTID?: Common;
|
|
1258
|
+
_ORIG?: Common;
|
|
1259
|
+
_LABEL?: Common;
|
|
1260
|
+
_WLNK?: Common;
|
|
1261
|
+
_MARNM?: Common;
|
|
1262
|
+
_INDI?: Common;
|
|
1263
|
+
_GUESSEDORIGINAL?: Common;
|
|
1264
|
+
_FS_LINK?: Common;
|
|
1265
|
+
_FS_ID?: Common;
|
|
1266
|
+
_FS_MATCH?: Common;
|
|
1267
|
+
_FS_SOUR?: Common;
|
|
1268
|
+
_IS_ORPHAN_FAMILY?: Common<"Y" | "N">;
|
|
1269
|
+
SCORE?: Common;
|
|
1270
|
+
TEXT?: Common;
|
|
1271
|
+
REF?: Common;
|
|
1272
|
+
DISPLAYTEXT?: Common;
|
|
1273
|
+
FAM?: Common;
|
|
1274
|
+
INDIVIDUALINTERNALHYPERLINK?: Common;
|
|
1275
|
+
OBJE?: Common;
|
|
1276
|
+
FAMS?: Common;
|
|
1277
|
+
FAMC?: Common;
|
|
1278
|
+
ABBR?: Common;
|
|
1279
|
+
ADDR?: Common;
|
|
1280
|
+
ADR1?: Common;
|
|
1281
|
+
ADR2?: Common;
|
|
1282
|
+
ADOP?: Common;
|
|
1283
|
+
AFN?: Common;
|
|
1284
|
+
AGE?: Common;
|
|
1285
|
+
ALIA?: Common;
|
|
1286
|
+
ANUL?: Common;
|
|
1287
|
+
ARVL?: Common;
|
|
1288
|
+
AUTH?: Common;
|
|
1289
|
+
BAPL?: Common;
|
|
1290
|
+
BAPM?: Common;
|
|
1291
|
+
BARM?: Common;
|
|
1292
|
+
BASM?: Common;
|
|
1293
|
+
BIRT?: Common;
|
|
1294
|
+
CAST?: Common;
|
|
1295
|
+
CAUS?: Common;
|
|
1296
|
+
CENS?: Common;
|
|
1297
|
+
CHIL?: Common;
|
|
1298
|
+
CHR?: Common;
|
|
1299
|
+
CHRA?: Common;
|
|
1300
|
+
CITY?: Common;
|
|
1301
|
+
CONC?: Common;
|
|
1302
|
+
CONF?: Common;
|
|
1303
|
+
CONT?: Common;
|
|
1304
|
+
CONL?: Common;
|
|
1305
|
+
CORP?: Common;
|
|
1306
|
+
CTRY?: Common;
|
|
1307
|
+
DATE?: Common;
|
|
1308
|
+
YEAR?: Common;
|
|
1309
|
+
MONTH?: Common;
|
|
1310
|
+
DAY?: Common;
|
|
1311
|
+
DEAT?: Common;
|
|
1312
|
+
DESC?: Common;
|
|
1313
|
+
DIV?: Common;
|
|
1314
|
+
DIVF?: Common;
|
|
1315
|
+
DSCR?: Common;
|
|
1316
|
+
EDUC?: Common;
|
|
1317
|
+
EMIG?: Common;
|
|
1318
|
+
ENDL?: Common;
|
|
1319
|
+
ENGA?: Common;
|
|
1320
|
+
EVEN?: Common;
|
|
1321
|
+
FCOM?: Common;
|
|
1322
|
+
FOST?: Common;
|
|
1323
|
+
GIVN?: Common;
|
|
1324
|
+
GRAD?: Common;
|
|
1325
|
+
HEAD?: Common;
|
|
1326
|
+
HUSB?: Common;
|
|
1327
|
+
ILLE?: Common;
|
|
1328
|
+
IMMI?: Common;
|
|
1329
|
+
INDI?: Common;
|
|
1330
|
+
LANG?: Common;
|
|
1331
|
+
LEGA?: Common;
|
|
1332
|
+
LVG?: Common;
|
|
1333
|
+
MARB?: Common;
|
|
1334
|
+
MARC?: Common;
|
|
1335
|
+
MARL?: Common;
|
|
1336
|
+
MARR?: Common;
|
|
1337
|
+
MARS?: Common;
|
|
1338
|
+
MISC?: Common;
|
|
1339
|
+
NAME?: Common;
|
|
1340
|
+
NATI?: Common;
|
|
1341
|
+
NATU?: Common;
|
|
1342
|
+
NICK?: Common;
|
|
1343
|
+
NOTE?: Common;
|
|
1344
|
+
NPFX?: Common;
|
|
1345
|
+
NSFX?: Common;
|
|
1346
|
+
OCCU?: Common;
|
|
1347
|
+
OCCUPATION?: Common;
|
|
1348
|
+
OCCUPATIONS?: Common;
|
|
1349
|
+
ORDI?: Common;
|
|
1350
|
+
ORDL?: Common;
|
|
1351
|
+
ORDN?: Common;
|
|
1352
|
+
PEDI?: Common;
|
|
1353
|
+
PART?: Common;
|
|
1354
|
+
PHON?: Common;
|
|
1355
|
+
PLAC?: Common;
|
|
1356
|
+
POST?: Common;
|
|
1357
|
+
PRIV?: Common;
|
|
1358
|
+
PROB?: Common;
|
|
1359
|
+
RACE?: Common;
|
|
1360
|
+
RELI?: Common;
|
|
1361
|
+
RESI?: Common;
|
|
1362
|
+
RETI?: Common;
|
|
1363
|
+
SEX?: Common<"F" | "M">;
|
|
1364
|
+
SLGC?: Common;
|
|
1365
|
+
SLGS?: Common;
|
|
1366
|
+
SOUR?: Common;
|
|
1367
|
+
SPFX?: Common;
|
|
1368
|
+
SSN?: Common;
|
|
1369
|
+
STAE?: Common;
|
|
1370
|
+
STAT?: Common;
|
|
1371
|
+
STIL?: Common;
|
|
1372
|
+
SUBM?: Common;
|
|
1373
|
+
SURN?: Common;
|
|
1374
|
+
REPO?: Common;
|
|
1375
|
+
TEL?: Common;
|
|
1376
|
+
TEMP?: Common;
|
|
1377
|
+
TIME?: Common;
|
|
1378
|
+
TITL?: Common;
|
|
1379
|
+
WIFE?: Common;
|
|
1380
|
+
WILL?: Common;
|
|
1381
|
+
RIN?: Common;
|
|
1382
|
+
FILE?: Common;
|
|
1383
|
+
AKA?: Common;
|
|
1384
|
+
FACT?: Common;
|
|
1385
|
+
TYPE?: Common;
|
|
1386
|
+
VERS?: Common;
|
|
1387
|
+
FORM?: Common;
|
|
1388
|
+
WWW?: Common;
|
|
1389
|
+
BAPT?: Common;
|
|
1390
|
+
CHRI?: Common;
|
|
1391
|
+
BURI?: Common;
|
|
1392
|
+
}
|
|
1393
|
+
type Tag = keyof Tags | keyof NonStandard;
|
|
1394
|
+
type ListTag = `@@${keyof Tags}`;
|
|
1395
|
+
type MultiTag = ListTag | Tag | `${Tag}.${Tag}`;
|
|
1396
|
+
type FilterIterator<T, K> = (item: T, key: K | number, index: number) => boolean;
|
|
1397
|
+
type Filter<T = unknown> = Partial<Record<MultiTag, T>>;
|
|
1398
|
+
type RequiredFilter<T extends Tag, F = unknown> = Required<Pick<Filter<F>, T>> & Partial<Omit<Filter<F>, T>>;
|
|
1399
|
+
interface OrderDefinition {
|
|
1400
|
+
direction: "ASC" | "DESC";
|
|
1401
|
+
getter?: (orig: unknown, raw?: Common) => unknown;
|
|
1402
|
+
}
|
|
1403
|
+
type Order = MultiTag | Partial<Record<MultiTag, OrderDefinition>>;
|
|
1404
|
+
type OrderIterator<T, K> = (itemA: T, keyA: K | number, itemB: T, keyB: K | number) => number;
|
|
1405
|
+
interface GroupDefinition {
|
|
1406
|
+
getter?: (orig: unknown, raw?: Common) => unknown;
|
|
1407
|
+
}
|
|
1408
|
+
type Group = MultiTag | Partial<Record<MultiTag, GroupDefinition>>;
|
|
1409
|
+
type GroupMarker = {
|
|
1410
|
+
marker?: string;
|
|
1411
|
+
group: string;
|
|
1412
|
+
};
|
|
1413
|
+
type GroupIterator<T, K> = (item: T, key: K | number) => string | string[] | GroupMarker[];
|
|
1414
|
+
declare enum Range {
|
|
1415
|
+
Year = 1,
|
|
1416
|
+
FiveYear = 5,
|
|
1417
|
+
Decade = 10,
|
|
1418
|
+
FiftyYear = 50,
|
|
1419
|
+
Century = 100
|
|
1420
|
+
}
|
|
1421
|
+
type NestedGroup = {
|
|
1422
|
+
[Key: string]: NestedGroup;
|
|
1423
|
+
} & {
|
|
1424
|
+
items?: Individuals;
|
|
1425
|
+
length?: number;
|
|
1426
|
+
};
|
|
1427
|
+
type NameOrder = "first-last" | "last-first";
|
|
1428
|
+
type PlaceOrder = "country-to-city" | "city-to-country";
|
|
1429
|
+
type LinkedPersons = "merge" | "clone" | "skip";
|
|
1430
|
+
|
|
1431
|
+
interface IList<K extends IdType = IdType, T extends Common = Common> {
|
|
1432
|
+
readonly length: number;
|
|
1433
|
+
marker?: string;
|
|
1434
|
+
isListable: boolean;
|
|
1435
|
+
has: (item?: K | T) => boolean;
|
|
1436
|
+
get: (name: MultiTag) => List;
|
|
1437
|
+
keys: () => K[];
|
|
1438
|
+
values: () => Array<T | undefined>;
|
|
1439
|
+
entries: () => Array<[K, T | undefined]>;
|
|
1440
|
+
getIf: (name: MultiTag, condition: string, name2: MultiTag) => List;
|
|
1441
|
+
setLength: () => void;
|
|
1442
|
+
item: (name: K, value?: T) => T | undefined;
|
|
1443
|
+
removeItem: (name: K) => void;
|
|
1444
|
+
exclude: (mergedList: List<K, T>) => List<K, T>;
|
|
1445
|
+
prepend: (item: T) => List<K, T>;
|
|
1446
|
+
append: (item: T) => List<K, T>;
|
|
1447
|
+
merge: (mergedList: List<K, T>) => List<K, T>;
|
|
1448
|
+
intersection: (mergedList: List<K, T>) => List<K, T>;
|
|
1449
|
+
difference: (mergedList: List<K, T>) => List<K, T>;
|
|
1450
|
+
concat: (items: Partial<Record<K, T>>) => List<K, T>;
|
|
1451
|
+
delete: (item: T) => List<K, T>;
|
|
1452
|
+
copy: (ClassName?: typeof List<K, T>) => List<K, T>;
|
|
1453
|
+
except: (item: T, ClassName?: typeof List<K, T>) => List<K, T>;
|
|
1454
|
+
filter: (filters: Filter | FilterIterator<T, K>, ClassName?: typeof List<K, T>) => List<K, T>;
|
|
1455
|
+
find: (filters: Filter | FilterIterator<T, K>, ClassName?: typeof List<K, T>) => T | undefined;
|
|
1456
|
+
orderBy: (orders: Order | OrderIterator<T, K>, ClassName?: typeof List<K, T>) => List<K, T>;
|
|
1457
|
+
groupBy: (orders: Group | GroupIterator<T, K>, sort?: "length" | "group", minOccurance?: number, lessOccuranceLabel?: string, ClassName?: typeof List<K, T>) => Record<string, List<K, T>>;
|
|
1458
|
+
forEach: (iterate: (item: T, key: K | number, index: number) => void) => void;
|
|
1459
|
+
map: <R>(iterate: (item: T, key: K | number, index: number) => R) => void;
|
|
1460
|
+
findIndex: (item: T) => number;
|
|
1461
|
+
first: () => T | undefined;
|
|
1462
|
+
index: (index: number) => T | undefined;
|
|
1463
|
+
last: () => T | undefined;
|
|
1464
|
+
getItems: () => Partial<Record<K, T>>;
|
|
1465
|
+
toValue: (tag: MultiTag) => List;
|
|
1466
|
+
toProp: (tag: MultiTag) => List;
|
|
1467
|
+
toList: () => List;
|
|
1468
|
+
toValueList: () => List;
|
|
1469
|
+
toJson: (tag: MultiTag, options?: ConvertOptions) => string;
|
|
1470
|
+
toObject: (tag: MultiTag, options?: ConvertOptions) => Record<string, string | undefined | ({
|
|
1471
|
+
value?: string;
|
|
1472
|
+
} & Record<string, unknown>) | Array<string | undefined | ({
|
|
1473
|
+
value?: string;
|
|
1474
|
+
} & Record<string, unknown>)>>;
|
|
1475
|
+
toGedcomLines: (tag: MultiTag, level?: number, options?: ConvertOptions) => string[];
|
|
1476
|
+
toGedcom: (tag: MultiTag, level?: number, options?: ConvertOptions) => string;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
declare class List<K extends IdType = IdType, T extends Common = Common> implements IList<K, T> {
|
|
1480
|
+
private items;
|
|
1481
|
+
isListable: boolean;
|
|
1482
|
+
marker: string | undefined;
|
|
1483
|
+
constructor(items?: Partial<Record<K, T>> | T[]);
|
|
1484
|
+
get length(): number;
|
|
1485
|
+
has(indi?: K | T): boolean;
|
|
1486
|
+
get(name: MultiTag): List<IdType, Common<string, IdType>>;
|
|
1487
|
+
getIf(name: MultiTag, condition: string, name2: MultiTag): List<IdType, Common<string, IdType>>;
|
|
1488
|
+
keys(): K[];
|
|
1489
|
+
values(): (T | undefined)[];
|
|
1490
|
+
entries(): [K, T | undefined][];
|
|
1491
|
+
setLength(_type?: "increase" | "decrease"): void;
|
|
1492
|
+
first(): Partial<Record<K, T>>[K];
|
|
1493
|
+
last(): Partial<Record<K, T>>[K];
|
|
1494
|
+
index(index: number): Partial<Record<K, T>>[K];
|
|
1495
|
+
item(name: K, value?: T): T | undefined;
|
|
1496
|
+
removeItem(name: K): void;
|
|
1497
|
+
exclude(excludedList: List<K, T>): this;
|
|
1498
|
+
concat(items?: Partial<Record<K, T>> | T[]): this;
|
|
1499
|
+
merge(mergedList?: List<K, T>): this;
|
|
1500
|
+
intersection(mergedList?: List<K, T>): List<K, T>;
|
|
1501
|
+
difference(mergedList?: List<K, T>): List<K, T>;
|
|
1502
|
+
prepend(item: T): this;
|
|
1503
|
+
append(item: T): this;
|
|
1504
|
+
delete(item: T): this;
|
|
1505
|
+
copy(ClassName?: typeof List<K, T>): List<K, T>;
|
|
1506
|
+
except(item: T, ClassName?: typeof List<K, T>): List<K, T>;
|
|
1507
|
+
forEach(iterate: (item: T, key: K, index: number) => void): void;
|
|
1508
|
+
map<R>(iterate: (item: T, key: K, index: number) => R): R[];
|
|
1509
|
+
reduce<R>(iterate: (acc: R, item: T, key: K, index: number) => R, initialValue: R): R;
|
|
1510
|
+
filter(filters: Filter | FilterIterator<T, K>, ClassName?: typeof List<K, T>): List<K, T>;
|
|
1511
|
+
find(filters: Filter | FilterIterator<T, K>, _ClassName?: typeof List<K, T>): T;
|
|
1512
|
+
orderBy(orders: Order | OrderIterator<T, K>, ClassName?: typeof List<K, T>): List<K, T>;
|
|
1513
|
+
groupBy(groups: Group | GroupIterator<T, K>, sort?: "length" | "group" | OrderIterator<List<K, T>, string>, minOccurance?: number, lessOccuranceLabel?: string, ClassName?: typeof List<K, T>): Record<string, List<K, T>>;
|
|
1514
|
+
findIndex(item: T): number;
|
|
1515
|
+
getItems(): Partial<Record<K, T>>;
|
|
1516
|
+
toJson(tag: MultiTag, options?: ConvertOptions): string;
|
|
1517
|
+
toObject(tag: MultiTag, options?: ConvertOptions): Record<string, string | ({
|
|
1518
|
+
value?: string;
|
|
1519
|
+
} & Record<string, unknown>) | (string | ({
|
|
1520
|
+
value?: string;
|
|
1521
|
+
} & Record<string, unknown>))[]>;
|
|
1522
|
+
toGedcom(tag: MultiTag, level?: number, options?: ConvertOptions): string;
|
|
1523
|
+
toGedcomLines(tag: MultiTag, level?: number, options?: ConvertOptions): string[];
|
|
1524
|
+
toValue(): List<IdType, Common<string, IdType>>;
|
|
1525
|
+
toProp(tag: MultiTag): List<IdType, Common<string, IdType>>;
|
|
1526
|
+
toList(): List<IdType, Common<string, IdType>>;
|
|
1527
|
+
toValueList(): List<IdType, Common<string, IdType>>;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
interface ConvertOptions {
|
|
1531
|
+
original?: boolean;
|
|
1532
|
+
obje?: {
|
|
1533
|
+
standardize?: boolean;
|
|
1534
|
+
override?: boolean;
|
|
1535
|
+
namespace?: string | number;
|
|
1536
|
+
};
|
|
1537
|
+
super?: boolean;
|
|
1538
|
+
}
|
|
1539
|
+
interface ICommon<P = string, I extends IdType = IdType> {
|
|
1540
|
+
set value(value: P | undefined);
|
|
1541
|
+
get value(): P | undefined;
|
|
1542
|
+
isListable: boolean;
|
|
1543
|
+
refType?: MultiTag;
|
|
1544
|
+
id?: I;
|
|
1545
|
+
removeValue: () => void;
|
|
1546
|
+
set: <T extends Common | List = Common | List>(name: MultiTag, value: T) => T | undefined;
|
|
1547
|
+
get: <T extends Common | List = Common | List>(name: MultiTag) => T | undefined;
|
|
1548
|
+
remove: (name: MultiTag) => void;
|
|
1549
|
+
getIf: <T extends Common | List = Common | List>(name: MultiTag, condition: string, name2: MultiTag) => T | undefined;
|
|
1550
|
+
assign: <T extends Common | List = Common | List>(name: MultiTag, value: T) => T | undefined;
|
|
1551
|
+
toString: () => string;
|
|
1552
|
+
toValue: () => P | undefined;
|
|
1553
|
+
exportValue: () => P | undefined;
|
|
1554
|
+
toProp: (tag: MultiTag) => Common<P, I> | undefined;
|
|
1555
|
+
toList: () => List;
|
|
1556
|
+
toValueList: () => List;
|
|
1557
|
+
toJson: (tag?: MultiTag, options?: ConvertOptions) => string;
|
|
1558
|
+
toObject: (tag?: MultiTag, options?: ConvertOptions) => Record<string, string | undefined | ({
|
|
1559
|
+
value?: string;
|
|
1560
|
+
} & Record<string, unknown>) | Array<string | undefined | ({
|
|
1561
|
+
value?: string;
|
|
1562
|
+
} & Record<string, unknown>)>>;
|
|
1563
|
+
toGedcomLines: (tag?: MultiTag, level?: number, options?: ConvertOptions) => string[];
|
|
1564
|
+
toGedcom: (tag?: MultiTag, level?: number, options?: ConvertOptions) => string;
|
|
1565
|
+
fromGedcom: (value: string) => void;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
declare class Common<T = string, I extends IdType = IdType> implements ICommon<T, I> {
|
|
1569
|
+
protected _gedcom?: GedComType;
|
|
1570
|
+
protected _value?: T;
|
|
1571
|
+
protected _id?: I;
|
|
1572
|
+
protected _main?: Common;
|
|
1573
|
+
protected _parent?: Common;
|
|
1574
|
+
protected _uniqueId?: string | undefined;
|
|
1575
|
+
protected _type?: MultiTag;
|
|
1576
|
+
protected _refs?: List;
|
|
1577
|
+
isListable: boolean;
|
|
1578
|
+
refType?: ListTag;
|
|
1579
|
+
cloneOf?: string;
|
|
1580
|
+
clonedBy?: string;
|
|
1581
|
+
constructor(gedcom?: GedComType, id?: I, main?: Common, parent?: Common);
|
|
1582
|
+
set type(type: MultiTag | undefined);
|
|
1583
|
+
get type(): MultiTag | undefined;
|
|
1584
|
+
initUniqueId(): void;
|
|
1585
|
+
set uniqueId(id: string | undefined);
|
|
1586
|
+
get uniqueId(): string | undefined;
|
|
1587
|
+
set id(id: I | undefined);
|
|
1588
|
+
get id(): I | undefined;
|
|
1589
|
+
set value(value: T | undefined);
|
|
1590
|
+
get value(): T | undefined;
|
|
1591
|
+
/**
|
|
1592
|
+
* Set the gedcom reference for this object
|
|
1593
|
+
* @param gedcom - The GedComType to set as the gedcom reference
|
|
1594
|
+
*/
|
|
1595
|
+
setGedcom(gedcom: GedComType): void;
|
|
1596
|
+
get originalValue(): T;
|
|
1597
|
+
get ref(): Common<T, I> | undefined;
|
|
1598
|
+
get main(): Common<string, IdType>;
|
|
1599
|
+
get parent(): Common<string, IdType>;
|
|
1600
|
+
addRef(refNode: Common): void;
|
|
1601
|
+
getRefs(): List<IdType, Common<string, IdType>>;
|
|
1602
|
+
exportValue(): T;
|
|
1603
|
+
removeValue(): void;
|
|
1604
|
+
set<T extends Common | List = Common | List>(name: MultiTag, value: T | string): T | undefined;
|
|
1605
|
+
assign<T extends Common | List = Common | List>(name: MultiTag, value: T, unique?: boolean): T | undefined;
|
|
1606
|
+
get<T extends Common | List = Common | List>(name: MultiTag): T;
|
|
1607
|
+
remove(name: MultiTag): void;
|
|
1608
|
+
getGedcom(): GedComType;
|
|
1609
|
+
getIf<T extends Common | List = Common | List>(name: MultiTag, condition: string, name2: MultiTag): T;
|
|
1610
|
+
toString(): string;
|
|
1611
|
+
toValue(): T;
|
|
1612
|
+
toProp(tag: MultiTag): Common<T, I> | undefined;
|
|
1613
|
+
toList(): List<IdType, Common<string, IdType>>;
|
|
1614
|
+
toValueList(): List<IdType, Common<string, IdType>>;
|
|
1615
|
+
private standardizeObject;
|
|
1616
|
+
toJson(tag?: MultiTag, options?: ConvertOptions): string;
|
|
1617
|
+
toObject(tag?: MultiTag, options?: ConvertOptions): Record<string, string | ({
|
|
1618
|
+
value?: string;
|
|
1619
|
+
} & Record<string, unknown>) | (string | ({
|
|
1620
|
+
value?: string;
|
|
1621
|
+
} & Record<string, unknown>))[]>;
|
|
1622
|
+
merge(other: Common<T, I>, override?: boolean, avoidKeys?: MultiTag[]): this;
|
|
1623
|
+
clone(newId?: boolean, avoidKeys?: MultiTag[]): Common<T, I>;
|
|
1624
|
+
fromGedcom(_value: string): void;
|
|
1625
|
+
toGedcom(tag?: MultiTag, level?: number, options?: ConvertOptions): string;
|
|
1626
|
+
toGedcomLines(tag?: MultiTag, level?: number, options?: ConvertOptions): string[];
|
|
1627
|
+
isGenoPro(): boolean;
|
|
1628
|
+
isAhnenblatt(): boolean;
|
|
1629
|
+
isGeni(): boolean;
|
|
1630
|
+
isAncestry(): boolean;
|
|
1631
|
+
isMyHeritage(): boolean;
|
|
1632
|
+
isFamilySearch(): boolean;
|
|
1633
|
+
getAncestryTreeId(): string | undefined;
|
|
1634
|
+
getMyHeritageTreeId(): string | undefined;
|
|
1635
|
+
getTreeId(): string;
|
|
1636
|
+
getAncestryTreeName(): string | undefined;
|
|
1637
|
+
getMyHeritageTreeName(): string;
|
|
1638
|
+
getTreeName(): string;
|
|
1639
|
+
}
|
|
1640
|
+
type ProxyOriginal<T extends Common> = T & {
|
|
1641
|
+
unwrapped: T;
|
|
1642
|
+
};
|
|
1643
|
+
declare const createProxy: <T extends Common>(target: T) => T;
|
|
1644
|
+
declare const createCommon: (gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common) => ProxyOriginal<Common>;
|
|
1645
|
+
declare const isOnlyMainProp: (key: string | symbol) => key is MultiTag | "_value" | "value";
|
|
1646
|
+
declare const isValidKey: <T>(common: Common<T>, key: string | symbol) => key is MultiTag | "_value" | "value" | "id" | "_id";
|
|
1647
|
+
declare const getValidKeys: <T>(common: Common<T>) => Array<MultiTag | "_value" | "value" | "id" | "_id">;
|
|
1648
|
+
declare const getValidTag: (tag: string) => string;
|
|
1649
|
+
declare const getListTag: (tag: string) => ListTag;
|
|
1650
|
+
declare const getValidKey: (tag: string, id: string) => string;
|
|
1651
|
+
declare const isId: (string: string) => string is IdType;
|
|
1652
|
+
declare const idGetter: <T extends IdType>(id?: T) => T;
|
|
1653
|
+
|
|
1654
|
+
export { type RepoType as $, type Order as A, type OrderIterator as B, type Cases as C, type Group as D, type GroupMarker as E, type FamKey as F, type GroupDefinition as G, type GroupIterator as H, type IKinshipTranslator as I, type NestedGroup as J, type NameOrder as K, type Language as L, type MultiTag as M, type NonStandard as N, type ObjeKey as O, type PrimitiveRange as P, type PlaceOrder as Q, type Range$1 as R, type SplitResult as S, type TagKey as T, type UnknownKey as U, type LinkedPersons as V, RelationType as W, PartnerType as X, Range as Y, type ProxyOriginal as Z, type SourType as _, isIntersectedRange as a, createSour as a$, type SubmType as a0, type IndiType as a1, type TreeMember as a2, type GenealogyMember as a3, type IndiTree as a4, type IndiGenealogy as a5, type IndiMarker as a6, type MemberSide as a7, type MemberMain as a8, type GenerationSpouseType as a9, createCommonDate as aA, isCommonDate as aB, Fam as aC, createFam as aD, Families as aE, GedCom as aF, createGedCom as aG, isGedcomString as aH, validateGedcomContent as aI, mergeGedcoms as aJ, Indi as aK, type FamilySearchMatch as aL, type FamilySearchSource as aM, createIndi as aN, Individuals as aO, List as aP, CommonName as aQ, createCommonName as aR, CommonNote as aS, createCommonNote as aT, Obje as aU, createObje as aV, Objects as aW, Repo as aX, createRepo as aY, Repositories as aZ, Sour as a_, type GenerationIndiType as aa, type IndiGenealogyGenerations as ab, type IndiGenealogyResult as ac, type NonNullIndiGenealogyResult as ad, type PathItem as ae, type Path as af, type ReducedPath as ag, type QueueItem as ah, type Queue as ai, type FamType as aj, type GedComType as ak, type ObjeType as al, Existed as am, CustomTags as an, Common as ao, createProxy as ap, createCommon as aq, isOnlyMainProp as ar, isValidKey as as, getValidKeys as at, getValidTag as au, getListTag as av, getValidKey as aw, isId as ax, idGetter as ay, CommonDate as az, isRangeContained as b, Sources as b0, Subm as b1, createSubm as b2, Submitters as b3, type ICommon as b4, type IFam as b5, type IFamilies as b6, type IGedcom as b7, type IIndi as b8, type GeneratedIndiMethods as b9, type ISourceRepositoryCitationStructure as bA, type ISourceStructure as bB, type Place as bC, PlaceType as bD, getPlaces as bE, type IIndividuals as ba, type IList as bb, type IObje as bc, type IRepo as bd, type ISour as be, type ISubm as bf, type IAddressStructure as bg, type IAssociationStructure as bh, type IChangeDateStructure as bi, type ICreationDateStructure as bj, type IDateStructure as bk, type IEventDetailStructure as bl, type IFamilyStructure as bm, type IGedComStructure as bn, type IIndividualEventDetailStructure as bo, type IIndividualEventStructure as bp, type IIndividualStructure as bq, type ILdsOrdinanceDetailStructure as br, type ILdsSpouseSealingStructure as bs, type IMarriageDateStructure as bt, type IMultimediaLinkStructure as bu, type INonEventStructure as bv, type INoteStructure as bw, type IPlaceStructure as bx, type IRepositoryStructure as by, type ISourceCitationStructure as bz, splitOverlappingRanges as c, findMatchingRangeForSplitRange as d, extractSplitPoints as e, fromTuple as f, generateSplitRanges as g, extractSeparationYears as h, inRange as i, type CrossCase as j, type CrossCases as k, type Settings as l, type ConvertType as m, type IndiKey as n, type RepoKey as o, parseRangeBounds as p, type SourKey as q, type SubmKey as r, splitRange as s, type IdType as t, type Tag as u, type ListTag as v, type FilterIterator as w, type Filter as x, type RequiredFilter as y, type OrderDefinition as z };
|