@treeviz/gedcom-parser 1.0.23 → 2.0.1

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.
@@ -85,12 +85,12 @@ declare class CommonDate extends Common<string> {
85
85
  constructor(gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common);
86
86
  set value(value: string | undefined);
87
87
  get value(): string | undefined;
88
- get rawValue(): Date;
89
- assign<T extends Common | List = Common | List>(name: MultiTag, value: T, unique?: boolean): T;
88
+ get rawValue(): Date | undefined;
89
+ assign<T extends Common | List = Common | List>(name: MultiTag, value: T, unique?: boolean): T | undefined;
90
90
  private isValidDateFormat;
91
91
  toNote(short?: boolean): string | undefined;
92
92
  toValue(dateFormat?: string, locale?: Locale | null): string | undefined;
93
- exportValue(): string;
93
+ exportValue(): string | undefined;
94
94
  inRange(range: Range$1, trueIfNoYear?: boolean): boolean;
95
95
  }
96
96
  declare const createCommonDate: (gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common) => ProxyOriginal<CommonDate>;
@@ -207,6 +207,45 @@ interface IAddressStructure extends Common {
207
207
  };
208
208
  }
209
209
 
210
+ interface ISourceCitationStructure extends Common, IMultimediaLinkStructure {
211
+ SOUR?: Common & {
212
+ PAGE?: Common;
213
+ DATA?: Common & {
214
+ DATE?: Common & {
215
+ TIME?: Common;
216
+ PHRASE?: Common;
217
+ };
218
+ TEXT?: Common & {
219
+ MIME?: Common;
220
+ LANG?: Common;
221
+ };
222
+ };
223
+ EVEN?: Common & {
224
+ PHRASE?: Common;
225
+ ROLE?: Common & {
226
+ PHRASE?: Common;
227
+ };
228
+ };
229
+ QUAY?: Common;
230
+ } & INoteStructure;
231
+ }
232
+
233
+ interface IEventDetailStructure extends IDateStructure, IPlaceStructure, IAddressStructure, IAssociationStructure, INoteStructure, ISourceCitationStructure, IMultimediaLinkStructure {
234
+ PHON?: Common;
235
+ EMAIL?: Common;
236
+ FAX?: Common;
237
+ WWW?: Common;
238
+ AGNC?: Common;
239
+ RELI?: Common;
240
+ CAUS?: Common;
241
+ RESN?: Common;
242
+ SDATE?: Common & {
243
+ TIME?: Common;
244
+ PHRASE?: Common;
245
+ };
246
+ UID?: Common;
247
+ }
248
+
210
249
  interface IGedComStructure extends Common, Omit<NonStandard, "id" | "value">, Partial<Record<`${ListTag}`, List>> {
211
250
  "@@INDI"?: Individuals;
212
251
  "@@_INDI"?: Individuals;
@@ -264,26 +303,26 @@ declare class GedCom extends Common implements IGedcom {
264
303
  constructor();
265
304
  private getMain;
266
305
  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>;
306
+ indis(): Individuals | undefined;
307
+ cloneIndis(target?: IndiKey | IndiType, source?: IndiKey | IndiType, avoidKeys?: MultiTag[], removeFromOriginalList?: boolean): this | undefined;
308
+ mergeIndis(target?: IndiKey | IndiType, source?: IndiKey | IndiType, removeFromOriginalList?: boolean): this | undefined;
309
+ fams(): Families | undefined;
310
+ objes(): Objects | undefined;
311
+ sours(): Sources | undefined;
312
+ repos(): Repositories | undefined;
313
+ subms(): Submitters | undefined;
314
+ tags(): List<IdType, Common<string, IdType>> | undefined;
315
+ customTags(): List<IdType, Common<string, IdType>> | undefined;
316
+ indi(index: number | IndiKey): IndiType | undefined;
317
+ fam(index: number | FamKey): FamType | undefined;
318
+ obje(index: number | ObjeKey): ObjeType | undefined;
319
+ sour(index: number | SourKey): SourType | undefined;
320
+ repo(index: number | RepoKey): RepoType | undefined;
321
+ subm(index: number | SubmKey): SubmType | undefined;
322
+ tag(index: number | SubmKey): Common<string, IdType> | undefined;
323
+ fromList(id?: string): Common<string, IdType> | undefined;
324
+ tagByName(name?: string): Common<string, IdType> | undefined;
325
+ customTag(index: number | SubmKey): Common<string, IdType> | undefined;
287
326
  private getIndiRelatedLists;
288
327
  private getDownloadHeader;
289
328
  toFiltered(indis: IndiKey[]): this | GedComType;
@@ -325,10 +364,10 @@ declare class GedCom extends Common implements IGedcom {
325
364
  unknown: number;
326
365
  };
327
366
  dateRange: {
328
- earliest: number;
329
- latest: number;
367
+ earliest: number | null;
368
+ latest: number | null;
330
369
  };
331
- averageLifespan: number;
370
+ averageLifespan: number | null;
332
371
  topSurnames: {
333
372
  surname: string;
334
373
  count: number;
@@ -337,8 +376,16 @@ declare class GedCom extends Common implements IGedcom {
337
376
  place: string;
338
377
  count: number;
339
378
  }[];
340
- firstPersonEvent: any;
341
- lastPersonEvent: any;
379
+ firstPersonEvent: {
380
+ type: string;
381
+ event: IEventDetailStructure | undefined;
382
+ person: IndiType | undefined;
383
+ } | null;
384
+ lastPersonEvent: {
385
+ type: string;
386
+ event: (Common<string, IdType> & IEventDetailStructure) | undefined;
387
+ person: IndiType | undefined;
388
+ } | null;
342
389
  };
343
390
  }
344
391
  type GedComType = GedCom & IGedComStructure;
@@ -379,33 +426,10 @@ declare class CommonNote extends Common<string> {
379
426
  constructor(gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common);
380
427
  set value(value: string | undefined);
381
428
  get value(): string | undefined;
382
- exportValue(): string;
429
+ exportValue(): string | undefined;
383
430
  }
384
431
  declare const createCommonNote: (gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common) => ProxyOriginal<CommonNote>;
385
432
 
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
433
  interface INoteStructure extends Common {
410
434
  NOTE?: CommonNote & {
411
435
  MIME?: Common;
@@ -657,22 +681,6 @@ declare class CommonName extends Common<string> {
657
681
  }
658
682
  declare const createCommonName: (gedcom?: GedComType, id?: IdType, main?: Common, parent?: Common) => ProxyOriginal<CommonName>;
659
683
 
660
- interface IEventDetailStructure extends IDateStructure, IPlaceStructure, IAddressStructure, IAssociationStructure, INoteStructure, ISourceCitationStructure, IMultimediaLinkStructure {
661
- PHON?: Common;
662
- EMAIL?: Common;
663
- FAX?: Common;
664
- WWW?: Common;
665
- AGNC?: Common;
666
- RELI?: Common;
667
- CAUS?: Common;
668
- RESN?: Common;
669
- SDATE?: Common & {
670
- TIME?: Common;
671
- PHRASE?: Common;
672
- };
673
- UID?: Common;
674
- }
675
-
676
684
  interface IIndividualEventDetailStructure extends IEventDetailStructure {
677
685
  AGE?: Common & {
678
686
  PHRASE?: Common;
@@ -824,8 +832,8 @@ declare class Indi extends Common<string, IndiKey> implements IIndi {
824
832
  private _isIgnoredPerson?;
825
833
  private _isEmpty?;
826
834
  private readonly _places?;
827
- toName(): string;
828
- toNaturalName(): string;
835
+ toName(): string | undefined;
836
+ toNaturalName(): string | undefined;
829
837
  toList(): Individuals;
830
838
  private generateTree;
831
839
  getPlaces(type?: PlaceType | PlaceType[], maxLevel?: number): Place[];
@@ -840,31 +848,33 @@ declare class Indi extends Common<string, IndiKey> implements IIndi {
840
848
  ancestorSiblings?: boolean;
841
849
  }): {
842
850
  gen: number;
843
- indis: TreeMember<IndiType>[];
844
- half: number;
851
+ indis: (TreeMember<IndiType> | undefined)[];
852
+ half: number | undefined;
845
853
  }[];
846
854
  getGenealogy(onlyStraight?: boolean, showDescendants?: boolean): MemberSide<IndiType, {
847
855
  gen: number;
848
- }>[];
849
- ancestryLink(): string;
856
+ }>[] | undefined;
857
+ ancestryLink(): string | undefined;
850
858
  ancestryMedia(namespace?: string | number): Promise<MediaList>;
851
- myheritageLink(poolId?: number): string;
852
- myheritageMedia(): MediaList;
853
- familySearchLink(): string;
859
+ myheritageLink(poolId?: number): string | undefined;
860
+ myheritageMedia(): MediaList | undefined;
861
+ familySearchLink(): string | undefined;
854
862
  hasFamilySearchMatches(): boolean;
855
863
  getFamilySearchMatches(): FamilySearchMatch[];
856
864
  hasFamilySearchSources(): boolean;
857
865
  getFamilySearchSources(): FamilySearchSource[];
866
+ geniMedia(): MediaList;
867
+ universalMedia(): MediaList;
858
868
  multimedia(namespace?: string | number): Promise<MediaList | undefined>;
859
869
  getProfilePicture(namespace?: string | number, onlyPrimary?: boolean): Promise<ProfilePicture | undefined>;
860
- link(poolId?: number): string;
870
+ link(poolId?: number): string | undefined;
861
871
  toFamilies(list?: List): Families;
862
872
  getFamilies(type: "FAMC" | "FAMS"): Families;
863
873
  getFamiliesBiologicalFirst(type: "FAMC" | "FAMS"): Families;
864
- getBirthDate(showDays?: boolean, shortNote?: boolean, showNote?: boolean): string;
865
- getDeathDate(showDays?: boolean, shortNote?: boolean, showNote?: boolean): string;
866
- getBirthPlace(): string;
867
- getDeathPlace(): string;
874
+ getBirthDate(showDays?: boolean, shortNote?: boolean, showNote?: boolean): string | undefined;
875
+ getDeathDate(showDays?: boolean, shortNote?: boolean, showNote?: boolean): string | undefined;
876
+ getBirthPlace(): string | undefined;
877
+ getDeathPlace(): string | undefined;
868
878
  /**
869
879
  * Get all marriage places for this individual
870
880
  * @returns Array of marriage place strings (may include undefined for marriages without place)
@@ -887,7 +897,7 @@ declare class Indi extends Common<string, IndiKey> implements IIndi {
887
897
  isMale(): boolean;
888
898
  isFemale(): boolean;
889
899
  isUnknownSex(): boolean;
890
- getParentType(id: IndiType | IndiKey): RelationType;
900
+ getParentType(id: IndiType | IndiKey): RelationType | undefined;
891
901
  hasFacts(): boolean;
892
902
  getLinks(): List<IdType, Required<IIndividualStructure>["_WLNK"]> | undefined;
893
903
  getAkas(limit?: number): List<IdType, Common<string, IdType>>;
@@ -922,12 +932,12 @@ declare class Indi extends Common<string, IndiKey> implements IIndi {
922
932
  getDescendants(level?: number, filter?: Filter): Individuals;
923
933
  getAllDescendantsRaw(individuals?: Individuals, containDescendantsInLaw?: boolean): {
924
934
  relatives: Individuals;
925
- generations: Record<number, Individuals>;
935
+ generations: Record<number, Individuals | undefined>;
926
936
  };
927
937
  getAllDescendants(individuals?: Individuals, containDescendantsInLaw?: boolean): Individuals;
928
938
  getAllAscendantsRaw(individuals?: Individuals): {
929
939
  relatives: Individuals;
930
- generations: Record<number, Individuals>;
940
+ generations: Record<number, Individuals | undefined>;
931
941
  };
932
942
  getAllAscendants(individuals?: Individuals): Individuals;
933
943
  getHalfSiblings(): Individuals;
@@ -1182,12 +1192,12 @@ declare class Individuals extends List<IndiKey, IndiType> implements IIndividual
1182
1192
  find(filters: Filter | FilterIterator<IndiType, IndiKey>): IndiType | undefined;
1183
1193
  unattachedFilter(useUnattached: boolean): Individuals;
1184
1194
  orderBy(orders: Order | OrderIterator<IndiType, IndiKey>): Individuals;
1185
- getFirstEvent(): IndiType;
1186
- getLastEvent(): IndiType;
1187
- getFirstBirth(): IndiType;
1188
- getLastBirth(): IndiType;
1189
- getFirstDeath(): IndiType;
1190
- getLastDeath(): IndiType;
1195
+ getFirstEvent(): IndiType | undefined;
1196
+ getLastEvent(): IndiType | undefined;
1197
+ getFirstBirth(): IndiType | undefined;
1198
+ getLastBirth(): IndiType | undefined;
1199
+ getFirstDeath(): IndiType | undefined;
1200
+ getLastDeath(): IndiType | undefined;
1191
1201
  groupBy(group: Group | GroupIterator<IndiType, IndiKey>, sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number, lessOccuranceLabel?: string): Record<string, Individuals>;
1192
1202
  groupByFirstLetters(sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number, settings?: Settings): Record<string, Individuals>;
1193
1203
  groupBySurnames(sort?: "length" | "group" | OrderIterator<Individuals, string>, minOccurance?: number): Record<string, Individuals>;
@@ -1205,7 +1215,7 @@ declare class Individuals extends List<IndiKey, IndiType> implements IIndividual
1205
1215
  isParentInLawOf(indi?: IndiKey | IndiType, every?: boolean): boolean | `@I${number}@` | `@P${number}@` | `@XI${number}@` | `@XXI${number}@`;
1206
1216
  isChildInLawOf(indi?: IndiKey | IndiType, every?: boolean): boolean | `@I${number}@` | `@P${number}@` | `@XI${number}@` | `@XXI${number}@`;
1207
1217
  splitByFamily(type: "Spouses" | "Parents" | "Children", relativeTo?: IndiType): {
1208
- items: Record<`@F${number}@` | `@XF${number}@` | `@XXF${number}@`, Individuals>;
1218
+ items: Record<`@F${number}@` | `@XF${number}@` | `@XXF${number}@`, Individuals | undefined>;
1209
1219
  lengthOfFamily: number;
1210
1220
  lengthOfIndividuals: number;
1211
1221
  };
@@ -1409,6 +1419,8 @@ interface Tags {
1409
1419
  BAPT?: Common;
1410
1420
  CHRI?: Common;
1411
1421
  BURI?: Common;
1422
+ GEDC?: Common;
1423
+ RFN?: Common;
1412
1424
  }
1413
1425
  type Tag = keyof Tags | keyof NonStandard;
1414
1426
  type ListTag = `@@${keyof Tags}`;
@@ -1528,7 +1540,7 @@ declare class List<K extends IdType = IdType, T extends Common = Common> impleme
1528
1540
  map<R>(iterate: (item: T, key: K, index: number) => R): R[];
1529
1541
  reduce<R>(iterate: (acc: R, item: T, key: K, index: number) => R, initialValue: R): R;
1530
1542
  filter(filters: Filter | FilterIterator<T, K>, ClassName?: typeof List<K, T>): List<K, T>;
1531
- find(filters: Filter | FilterIterator<T, K>, _ClassName?: typeof List<K, T>): T;
1543
+ find(filters: Filter | FilterIterator<T, K>, _ClassName?: typeof List<K, T>): T | undefined;
1532
1544
  orderBy(orders: Order | OrderIterator<T, K>, ClassName?: typeof List<K, T>): List<K, T>;
1533
1545
  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>>;
1534
1546
  findIndex(item: T): number;
@@ -1538,7 +1550,7 @@ declare class List<K extends IdType = IdType, T extends Common = Common> impleme
1538
1550
  value?: string;
1539
1551
  } & Record<string, unknown>) | (string | ({
1540
1552
  value?: string;
1541
- } & Record<string, unknown>))[]>;
1553
+ } & Record<string, unknown>) | undefined)[] | undefined>;
1542
1554
  toGedcom(tag: MultiTag, level?: number, options?: ConvertOptions): string;
1543
1555
  toGedcomLines(tag: MultiTag, level?: number, options?: ConvertOptions): string[];
1544
1556
  toValue(): List<IdType, Common<string, IdType>>;
@@ -1613,25 +1625,25 @@ declare class Common<T = string, I extends IdType = IdType> implements ICommon<T
1613
1625
  * @param gedcom - The GedComType to set as the gedcom reference
1614
1626
  */
1615
1627
  setGedcom(gedcom: GedComType): void;
1616
- get originalValue(): T;
1628
+ get originalValue(): T | undefined;
1617
1629
  get ref(): Common<T, I> | undefined;
1618
- get main(): Common<string, IdType>;
1619
- get parent(): Common<string, IdType>;
1630
+ get main(): Common<string, IdType> | undefined;
1631
+ get parent(): Common<string, IdType> | undefined;
1620
1632
  addRef(refNode: Common): void;
1621
- getRefs(): List<IdType, Common<string, IdType>>;
1622
- exportValue(): T;
1633
+ getRefs(): List<IdType, Common<string, IdType>> | undefined;
1634
+ exportValue(): T | undefined;
1623
1635
  removeValue(): void;
1624
1636
  set<T extends Common | List = Common | List>(name: MultiTag, value: T | string): T | undefined;
1625
1637
  assign<T extends Common | List = Common | List>(name: MultiTag, value: T, unique?: boolean): T | undefined;
1626
- get<T extends Common | List = Common | List>(name: MultiTag): T;
1638
+ get<T extends Common | List = Common | List>(name: MultiTag): T | undefined;
1627
1639
  remove(name: MultiTag): void;
1628
- getGedcom(): GedComType;
1629
- getIf<T extends Common | List = Common | List>(name: MultiTag, condition: string, name2: MultiTag): T;
1640
+ getGedcom(): GedComType | undefined;
1641
+ getIf<T extends Common | List = Common | List>(name: MultiTag, condition: string, name2: MultiTag): T | undefined;
1630
1642
  toString(): string;
1631
- toValue(): T;
1643
+ toValue(): T | undefined;
1632
1644
  toProp(tag: MultiTag): Common<T, I> | undefined;
1633
1645
  toList(): List<IdType, Common<string, IdType>>;
1634
- index(i: number): Common<string, IdType>;
1646
+ index(i: number): Common<string, IdType> | undefined;
1635
1647
  toValueList(): List<IdType, Common<string, IdType>>;
1636
1648
  private standardizeObject;
1637
1649
  toJson(tag?: MultiTag, options?: ConvertOptions): string;
@@ -1639,7 +1651,7 @@ declare class Common<T = string, I extends IdType = IdType> implements ICommon<T
1639
1651
  value?: string;
1640
1652
  } & Record<string, unknown>) | (string | ({
1641
1653
  value?: string;
1642
- } & Record<string, unknown>))[]>;
1654
+ } & Record<string, unknown>) | undefined)[] | undefined>;
1643
1655
  merge(other: Common<T, I>, override?: boolean, avoidKeys?: MultiTag[]): this;
1644
1656
  clone(newId?: boolean, avoidKeys?: MultiTag[]): Common<T, I>;
1645
1657
  fromGedcom(_value: string): void;
@@ -1650,12 +1662,38 @@ declare class Common<T = string, I extends IdType = IdType> implements ICommon<T
1650
1662
  isGeni(): boolean;
1651
1663
  isAncestry(): boolean;
1652
1664
  isMyHeritage(): boolean;
1665
+ /**
1666
+ * Get the source type as a string (for prefixing tree IDs and names)
1667
+ * Returns the detected source type or undefined if unknown
1668
+ */
1669
+ getSourceType(): string | undefined;
1653
1670
  isFamilySearch(): boolean;
1671
+ isGNO2GED(): boolean;
1654
1672
  getAncestryTreeId(): string | undefined;
1655
1673
  getMyHeritageTreeId(): string | undefined;
1656
1674
  getTreeId(): string;
1657
1675
  getAncestryTreeName(): string | undefined;
1658
- getMyHeritageTreeName(): string;
1676
+ getMyHeritageTreeName(): string | undefined;
1677
+ getFamilySearchTreeId(): string;
1678
+ getFamilySearchTreeName(): string;
1679
+ getAhnenblattTreeId(): string | undefined;
1680
+ getAhnenblattTreeName(): string | undefined;
1681
+ getGeniTreeId(): string | undefined;
1682
+ getGeniTreeName(): string | undefined;
1683
+ getGenoProTreeId(): string | undefined;
1684
+ getGenoProTreeName(): string | undefined;
1685
+ getGNO2GEDTreeId(): string;
1686
+ getGNO2GEDTreeName(): string;
1687
+ /**
1688
+ * Universal tree ID getter for unknown/unrecognized GEDCOM sources
1689
+ * Tries to extract an ID from various common locations
1690
+ */
1691
+ getUniversalTreeId(): string;
1692
+ /**
1693
+ * Universal tree name getter for unknown/unrecognized GEDCOM sources
1694
+ * Tries to extract a name from various common locations
1695
+ */
1696
+ getUniversalTreeName(): string;
1659
1697
  getTreeName(): string;
1660
1698
  }
1661
1699
  type ProxyOriginal<T extends Common> = T & {
@@ -1670,6 +1708,6 @@ declare const getValidTag: (tag: string) => string;
1670
1708
  declare const getListTag: (tag: string) => ListTag;
1671
1709
  declare const getValidKey: (tag: string, id: string) => string;
1672
1710
  declare const isId: (string: string) => string is IdType;
1673
- declare const idGetter: <T extends IdType>(id?: T) => T;
1711
+ declare const idGetter: <T extends IdType>(id?: T) => T | undefined;
1674
1712
 
1675
1713
  export { type IPlaceStructure as $, type ICommon as A, type ICreationDateStructure as B, type Cases as C, type IDateStructure as D, Existed as E, Fam as F, GedCom as G, type IEventDetailStructure as H, type IAddressStructure as I, type IFam as J, type IFamilies as K, type IFamilyStructure as L, type IGedcom as M, type IGedComStructure as N, type IIndi as O, type IIndividualStructure as P, type IIndividualEventStructure as Q, type IIndividualEventDetailStructure as R, type IIndividuals as S, type ILdsOrdinanceDetailStructure as T, type ILdsSpouseSealingStructure as U, type IList as V, type IMarriageDateStructure as W, type IMultimediaLinkStructure as X, type INonEventStructure as Y, type INoteStructure as Z, type IObje as _, Common as a, type SubmKey as a$, type IRepo as a0, type IRepositoryStructure as a1, type ISour as a2, type ISourceStructure as a3, type ISourceCitationStructure as a4, type ISourceRepositoryCitationStructure as a5, type ISubm as a6, type IdType as a7, Indi as a8, type IndiGenealogy as a9, PartnerType as aA, type Path as aB, type PathItem as aC, type Place as aD, type PlaceOrder as aE, PlaceType as aF, type PrimitiveRange as aG, type ProfilePicture as aH, type ProxyOriginal as aI, type Queue as aJ, type QueueItem as aK, Range as aL, type Range$1 as aM, type ReducedPath as aN, RelationType as aO, Repo as aP, type RepoKey as aQ, type RepoType as aR, Repositories as aS, type RequiredFilter as aT, type Settings as aU, Sour as aV, type SourKey as aW, type SourType as aX, Sources as aY, type SplitResult as aZ, Subm as a_, type IndiGenealogyGenerations as aa, type IndiGenealogyResult as ab, type IndiKey as ac, type IndiMarker as ad, type IndiTree as ae, type IndiType as af, Individuals as ag, type IKinshipTranslator as ah, type Language as ai, type LinkedPersons as aj, List as ak, type ListTag as al, type MemberMain as am, type MemberSide as an, type MultiTag as ao, type NameOrder as ap, type NestedGroup as aq, type NonNullIndiGenealogyResult as ar, type NonStandard as as, Obje as at, type ObjeKey as au, type ObjeType as av, Objects as aw, type Order as ax, type OrderDefinition as ay, type OrderIterator as az, CommonDate as b, type SubmType as b0, Submitters as b1, type Tag as b2, type TagKey as b3, type TreeMember as b4, type UnknownKey as b5, createCommon as b6, createCommonDate as b7, createCommonName as b8, createCommonNote as b9, isValidKey as bA, mergeGedcoms as bB, parseRangeBounds as bC, splitOverlappingRanges as bD, splitRange as bE, validateGedcomContent as bF, createFam as ba, createGedCom as bb, createIndi as bc, createObje as bd, createProxy as be, createRepo as bf, createSour as bg, createSubm as bh, extractSeparationYears as bi, extractSplitPoints as bj, findMatchingRangeForSplitRange as bk, fromTuple as bl, generateSplitRanges as bm, getListTag as bn, getPlaces as bo, getValidKey as bp, getValidKeys as bq, getValidTag as br, idGetter as bs, inRange as bt, isCommonDate as bu, isGedcomString as bv, isId as bw, isIntersectedRange as bx, isOnlyMainProp as by, isRangeContained as bz, CommonName as c, CommonNote as d, type ConvertType as e, type CrossCase as f, type CrossCases as g, CustomTags as h, type FamKey as i, type FamType as j, Families as k, type FamilySearchMatch as l, type FamilySearchSource as m, type Filter as n, type FilterIterator as o, type GedComType as p, type GenealogyMember as q, type GeneratedIndiMethods as r, type GenerationIndiType as s, type GenerationSpouseType as t, type Group as u, type GroupDefinition as v, type GroupIterator as w, type GroupMarker as x, type IAssociationStructure as y, type IChangeDateStructure as z };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { A as ACCEPTED_DATE_FORMATS, a as ACCEPTED_DATE_FORMATS_REGEX, G as GedcomTree, c as commonDateFormatter, b as create, d as dateFormatter, G as default, g as getAllProp, e as getFamilyWith, f as getName, h as getRawSize, i as getVersion, j as hungarianOrdinalize, k as implemented, l as isDevelopment, m as marriageDateFormatter, n as nameFormatter, o as notImplemented, p as noteDateFormatter, q as ordinalize, r as placeTranslator, s as setNestedGroup } from './place-translator-BYX8180A.js';
1
+ export { A as ACCEPTED_DATE_FORMATS, a as ACCEPTED_DATE_FORMATS_REGEX, G as GedcomTree, c as commonDateFormatter, b as create, d as dateFormatter, G as default, g as getAllProp, e as getFamilyWith, f as getName, h as getRawSize, i as getVersion, j as hungarianOrdinalize, k as implemented, l as isDevelopment, m as marriageDateFormatter, n as nameFormatter, o as notImplemented, p as noteDateFormatter, q as ordinalize, r as placeTranslator, s as setNestedGroup } from './place-translator-DPMyrsnu.js';
2
2
  export { CacheManagerFactory, DateLocaleProvider, I18nProvider, KinshipTranslatorConstructor, PlaceParserFunction, PlaceTranslatorFunction, getCacheManagerFactory, getDateLocale, getI18n, getKinshipTranslatorClass, getPlaceParserProvider, getPlaceTranslatorProvider, i18n, resetCacheManagerFactory, resetDateLocaleProvider, resetI18nProvider, resetKinshipTranslatorClass, resetPlaceParserProvider, resetPlaceTranslatorProvider, setCacheManagerFactory, setDateLocaleProvider, setI18nProvider, setKinshipTranslatorClass, setPlaceParserProvider, setPlaceTranslatorProvider } from './factories/index.js';
3
- export { C as CacheRelatives, I as ICacheManager, P as PlaceParts, g as getPlaceParts, p as pathCache, r as relativesCache, a as resetRelativesCache } from './place-parser-Dl5iva3h.js';
3
+ export { C as CacheRelatives, I as ICacheManager, P as PlaceParts, g as getPlaceParts, i as initializeCache, p as pathCache, a as profilePictureCache, r as relativesCache, b as resetRelativesCache } from './place-parser-BLwBjtXS.js';
4
4
  export { KinshipTranslator, KinshipTranslatorBasic, KinshipTranslatorDE, KinshipTranslatorEN, KinshipTranslatorES, KinshipTranslatorFR, KinshipTranslatorHU, translators } from './kinship-translator/index.js';
5
- export { C as Cases, a as Common, b as CommonDate, c as CommonName, d as CommonNote, e as ConvertType, f as CrossCase, g as CrossCases, h as CustomTags, E as Existed, F as Fam, i as FamKey, j as FamType, k as Families, l as FamilySearchMatch, m as FamilySearchSource, n as Filter, o as FilterIterator, G as GedCom, p as GedComType, q as GenealogyMember, r as GeneratedIndiMethods, s as GenerationIndiType, t as GenerationSpouseType, u as Group, v as GroupDefinition, w as GroupIterator, x as GroupMarker, I as IAddress, y as IAssociation, z as IChangeDate, A as ICommon, B as ICreationDate, D as IDate, H as IEventDetail, H as IEventDetailStructure, J as IFam, K as IFamilies, L as IFamily, M as IGedCom, N as IGedcomStructure, O as IIndi, P as IIndividual, Q as IIndividualEvent, R as IIndividualEventDetail, P as IIndividualStructure, S as IIndividuals, T as ILdsOrdinanceDetail, U as ILdsSpouseSealing, V as IList, W as IMarriageDate, X as IMultimediaLink, Y as INonEvent, Z as INote, _ as IObje, $ as IPlace, a0 as IRepo, a1 as IRepository, a2 as ISour, a3 as ISource, a4 as ISourceCitation, a5 as ISourceRepositoryCitation, a6 as ISubm, a7 as IdType, a8 as Indi, a9 as IndiGenealogy, aa as IndiGenealogyGenerations, ab as IndiGenealogyResult, ac as IndiKey, ad as IndiMarker, ae as IndiTree, af as IndiType, ag as Individuals, ah as KinshipTranslatorInterface, ai as Language, aj as LinkedPersons, ak as List, al as ListTag, am as MemberMain, an as MemberSide, ao as MultiTag, ap as NameOrder, aq as NestedGroup, ar as NonNullIndiGenealogyResult, as as NonStandard, at as Obje, au as ObjeKey, av as ObjeType, aw as Objects, ax as Order, ay as OrderDefinition, az as OrderIterator, aA as PartnerType, aB as Path, aC as PathItem, aD as Place, aE as PlaceOrder, aF as PlaceType, aG as PrimitiveRange, aH as ProfilePicture, aI as ProxyOriginal, aJ as Queue, aK as QueueItem, aL as Range, aM as RangeType, aN as ReducedPath, aO as RelationType, aP as Repo, aQ as RepoKey, aR as RepoType, aS as Repositories, aT as RequiredFilter, aU as Settings, aV as Sour, aW as SourKey, aX as SourType, aY as Sources, aZ as SplitResult, a_ as Subm, a$ as SubmKey, b0 as SubmType, b1 as Submitters, b2 as Tag, b3 as TagKey, b4 as TreeMember, b5 as UnknownKey, b6 as createCommon, b7 as createCommonDate, b8 as createCommonName, b9 as createCommonNote, ba as createFam, bb as createGedCom, bc as createIndi, bd as createObje, be as createProxy, bf as createRepo, bg as createSour, bh as createSubm, bi as extractSeparationYears, bj as extractSplitPoints, bk as findMatchingRangeForSplitRange, bl as fromTuple, bm as generateSplitRanges, bn as getListTag, bo as getPlaces, bp as getValidKey, bq as getValidKeys, br as getValidTag, bs as idGetter, bt as inRange, bu as isCommonDate, bv as isGedcomString, bw as isId, bx as isIntersectedRange, by as isOnlyMainProp, bz as isRangeContained, bA as isValidKey, bB as mergeGedcoms, bC as parseRangeBounds, bD as splitOverlappingRanges, bE as splitRange, bF as validateGedcomContent } from './index-CSjQRlxq.js';
5
+ export { C as Cases, a as Common, b as CommonDate, c as CommonName, d as CommonNote, e as ConvertType, f as CrossCase, g as CrossCases, h as CustomTags, E as Existed, F as Fam, i as FamKey, j as FamType, k as Families, l as FamilySearchMatch, m as FamilySearchSource, n as Filter, o as FilterIterator, G as GedCom, p as GedComType, q as GenealogyMember, r as GeneratedIndiMethods, s as GenerationIndiType, t as GenerationSpouseType, u as Group, v as GroupDefinition, w as GroupIterator, x as GroupMarker, I as IAddress, y as IAssociation, z as IChangeDate, A as ICommon, B as ICreationDate, D as IDate, H as IEventDetail, H as IEventDetailStructure, J as IFam, K as IFamilies, L as IFamily, M as IGedCom, N as IGedcomStructure, O as IIndi, P as IIndividual, Q as IIndividualEvent, R as IIndividualEventDetail, P as IIndividualStructure, S as IIndividuals, T as ILdsOrdinanceDetail, U as ILdsSpouseSealing, V as IList, W as IMarriageDate, X as IMultimediaLink, Y as INonEvent, Z as INote, _ as IObje, $ as IPlace, a0 as IRepo, a1 as IRepository, a2 as ISour, a3 as ISource, a4 as ISourceCitation, a5 as ISourceRepositoryCitation, a6 as ISubm, a7 as IdType, a8 as Indi, a9 as IndiGenealogy, aa as IndiGenealogyGenerations, ab as IndiGenealogyResult, ac as IndiKey, ad as IndiMarker, ae as IndiTree, af as IndiType, ag as Individuals, ah as KinshipTranslatorInterface, ai as Language, aj as LinkedPersons, ak as List, al as ListTag, am as MemberMain, an as MemberSide, ao as MultiTag, ap as NameOrder, aq as NestedGroup, ar as NonNullIndiGenealogyResult, as as NonStandard, at as Obje, au as ObjeKey, av as ObjeType, aw as Objects, ax as Order, ay as OrderDefinition, az as OrderIterator, aA as PartnerType, aB as Path, aC as PathItem, aD as Place, aE as PlaceOrder, aF as PlaceType, aG as PrimitiveRange, aH as ProfilePicture, aI as ProxyOriginal, aJ as Queue, aK as QueueItem, aL as Range, aM as RangeType, aN as ReducedPath, aO as RelationType, aP as Repo, aQ as RepoKey, aR as RepoType, aS as Repositories, aT as RequiredFilter, aU as Settings, aV as Sour, aW as SourKey, aX as SourType, aY as Sources, aZ as SplitResult, a_ as Subm, a$ as SubmKey, b0 as SubmType, b1 as Submitters, b2 as Tag, b3 as TagKey, b4 as TreeMember, b5 as UnknownKey, b6 as createCommon, b7 as createCommonDate, b8 as createCommonName, b9 as createCommonNote, ba as createFam, bb as createGedCom, bc as createIndi, bd as createObje, be as createProxy, bf as createRepo, bg as createSour, bh as createSubm, bi as extractSeparationYears, bj as extractSplitPoints, bk as findMatchingRangeForSplitRange, bl as fromTuple, bm as generateSplitRanges, bn as getListTag, bo as getPlaces, bp as getValidKey, bq as getValidKeys, br as getValidTag, bs as idGetter, bt as inRange, bu as isCommonDate, bv as isGedcomString, bw as isId, bx as isIntersectedRange, by as isOnlyMainProp, bz as isRangeContained, bA as isValidKey, bB as mergeGedcoms, bC as parseRangeBounds, bD as splitOverlappingRanges, bE as splitRange, bF as validateGedcomContent } from './index-B3Po1Kaw.js';
6
6
  export { AncestryMedia } from './types/index.js';
7
7
  export { ADOPTED, BIOLOGICAL, BIRTH, BIRTH_ASC, BIRTH_DESC, DATE_ASC, DATE_DESC, DEATH_ASC, DEATH_DESC, DEFAULT, EVERY, FEMALE, FOSTER, FRIEND, ID_GETTER_REG, ID_REG, ID_SPLIT_REG, LINE_REG, MALE, MAX_FILE_SIZE_TO_SYNC, OTHER, PARTNER, REF_LINE_REG, SEALING, SINGLE, SPOUSE, STEP, UNKOWN, getBirthAsc, getMarriageAsc, getMarriageAscAndBirth, getMarriageAscAndChildBirth, getNameAsc, getNameAscAndBirth, getNameDesc } from './constants/index.js';
8
8
  export { IPersonalName, IPersonalNamePieces } from './structures/index.js';