@treeviz/gedcom-parser 1.0.15 → 1.0.16

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.
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/types/types.ts"],"names":["RelationType","PartnerType","Range"],"mappings":";AA6BO,IAAK,YAAA,qBAAAA,aAAAA,KAAL;AACN,EAAAA,cAAA,YAAA,CAAA,GAAa,YAAA;AACb,EAAAA,cAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,cAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,cAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,cAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,cAAA,MAAA,CAAA,GAAO,MAAA;AANI,EAAA,OAAAA,aAAAA;AAAA,CAAA,EAAA,YAAA,IAAA,EAAA;AASL,IAAK,WAAA,qBAAAC,YAAAA,KAAL;AACN,EAAAA,aAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,aAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,aAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,aAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,aAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,aAAA,QAAA,CAAA,GAAS,SAAA;AANE,EAAA,OAAAA,YAAAA;AAAA,CAAA,EAAA,WAAA,IAAA,EAAA;AAmNL,IAAK,KAAA,qBAAAC,MAAAA,KAAL;AACN,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,UAAO,CAAA,CAAA,GAAP,MAAA;AACA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,cAAW,CAAA,CAAA,GAAX,UAAA;AACA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,YAAS,EAAA,CAAA,GAAT,QAAA;AACA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,eAAY,EAAA,CAAA,GAAZ,WAAA;AACA,EAAAA,MAAAA,CAAAA,MAAAA,CAAA,aAAU,GAAA,CAAA,GAAV,SAAA;AALW,EAAA,OAAAA,MAAAA;AAAA,CAAA,EAAA,KAAA,IAAA,EAAA","file":"index.js","sourcesContent":["import type { Common } from \"../classes/common\";\nimport type { Individuals } from \"../classes/indis\";\n\nexport type ConvertType =\n\t| \"FAM\"\n\t| \"INDI\"\n\t| \"_INDI\"\n\t| \"OBJE\"\n\t| \"SOUR\"\n\t| \"REPO\"\n\t| \"SUBM\";\n\nexport type IndiKey = `@${\"I\" | \"P\" | \"XI\" | \"XXI\"}${number}@`;\nexport type FamKey = `@${\"F\" | \"XF\" | \"XXF\"}${number}@`;\nexport type ObjeKey = `@O${number}@`;\nexport type RepoKey = `@R${number}@`;\nexport type SourKey = `@S${number}@`;\nexport type SubmKey = `@SUBM${number}@`;\nexport type TagKey = `@T${number}@`;\nexport type UnknownKey = `@U${number}@`;\nexport type IdType =\n\t| IndiKey\n\t| FamKey\n\t| ObjeKey\n\t| SourKey\n\t| RepoKey\n\t| SubmKey\n\t| UnknownKey;\n\nexport enum RelationType {\n\tBIOLOGICAL = \"biological\",\n\tADOPTED = \"adopted\",\n\tFOSTER = \"foster\",\n\tSEALING = \"sealing\",\n\tBIRTH = \"birth\",\n\tSTEP = \"step\",\n}\n\nexport enum PartnerType {\n\tSPOUSE = \"spouse\",\n\tPARTNER = \"partner\",\n\tFRIEND = \"friend\",\n\tSINGLE = \"single\",\n\tOTHER = \"other\",\n\tUNKOWN = \"unknown\",\n}\n\nexport interface NonStandard {\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tvalue?: any; // Specific type for value, not part of GEDCOM standard\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tid?: any;\n}\n\ninterface Tags {\n\t_PRIM?: Common<\"Y\" | \"N\">;\n\t_EXPORTED_FROM_SITE_ID?: Common;\n\t_CLON?: Common;\n\t_MSER?: Common;\n\t_OID?: Common;\n\t_LKID?: Common;\n\t_PHOTO_RIN?: Common;\n\t_MTTAG?: Common & { NAME?: Common };\n\t_MTCAT?: Common & { NAME?: Common };\n\t_SREL?: Common;\n\t_FREL?: Common;\n\t_MREL?: Common;\n\t_MILT?: Common;\n\t_MILTID?: Common;\n\t_ORIG?: Common;\n\t_LABEL?: Common;\n\t_WLNK?: Common;\n\t_MARNM?: Common;\n\t_INDI?: Common; // Individual\n\t_GUESSEDORIGINAL?: Common;\n\t_FS_LINK?: Common; // FamilySearch link\n\t_FS_ID?: Common; // FamilySearch ID\n\t_FS_MATCH?: Common; // FamilySearch Matches\n\t_FS_SOUR?: Common; // FamilySearch Sources\n\t_IS_ORPHAN_FAMILY?: Common<\"Y\" | \"N\">;\n\tSCORE?: Common; // Match score\n\tTEXT?: Common; // Match citation text\n\tREF?: Common; // Match reference ID\n\tDISPLAYTEXT?: Common;\n\n\tFAM?: Common;\n\tINDIVIDUALINTERNALHYPERLINK?: Common;\n\tOBJE?: Common;\n\tFAMS?: Common; // Family where perons is a spouse\n\tFAMC?: Common; // Family where perons is a children\n\tABBR?: Common; // Abbreviation for a name or title\n\tADDR?: Common; // Address, usually mailing address\n\tADR1?: Common; // First line of an address\n\tADR2?: Common; // Second line of an address\n\tADOP?: Common; // Adoption\n\tAFN?: Common; // Ancestral File number (LDS)\n\tAGE?: Common; // Age at time of event\n\tALIA?: Common; // Alias\n\tANUL?: Common; // Annulment\n\tARVL?: Common; // Arrival\n\tAUTH?: Common; // Author of the information\n\tBAPL?: Common; // LDS baptism\n\tBAPM?: Common; // Baptism\n\tBARM?: Common; // Bar Mitzvah\n\tBASM?: Common; // Bas (or Bat) Mitzvah\n\tBIRT?: Common; // Birth\n\tCAST?: Common; // Caste\n\tCAUS?: Common; // Cause of event, such as death\n\tCENS?: Common; // Census\n\tCHIL?: Common; // Child -- natural or adopted\n\tCHR?: Common; // Christening\n\tCHRA?: Common; // Adult Christening\n\tCITY?: Common; // City\n\tCONC?: Common; // Continue with the previous text; do not leave spaces\n\tCONF?: Common; // Confirmation\n\tCONT?: Common; // Content of note\n\tCONL?: Common; // LDS Confirmation\n\tCORP?: Common; // Corporation information\n\tCTRY?: Common; // Country (name or code)\n\tDATE?: Common; // Date\n\tYEAR?: Common; // Date\n\tMONTH?: Common; // Date\n\tDAY?: Common; // Date\n\tDEAT?: Common; // Death\n\tDESC?: Common; // Descendants\n\tDIV?: Common; // Divorce\n\tDIVF?: Common; // Divorce filed\n\tDSCR?: Common; // Physical description of a person, place, or thing\n\tEDUC?: Common; // Education\n\tEMIG?: Common; // Emigration\n\tENDL?: Common; // Endowment (LDS)\n\tENGA?: Common; // Engagement\n\tEVEN?: Common; // Event (noteworthy event)\n\tFCOM?: Common; // First Communion\n\tFOST?: Common; // Foster\n\tGIVN?: Common; // Given name\n\tGRAD?: Common; // Graduation\n\tHEAD?: Common; // Header\n\tHUSB?: Common; // Husband\n\tILLE?: Common; // Illegitimate\n\tIMMI?: Common; // Immigration\n\tINDI?: Common; // Individual\n\tLANG?: Common; // Language\n\tLEGA?: Common; // Legatee\n\tLVG?: Common; // Living\n\tMARB?: Common; // Marriage banns\n\tMARC?: Common; // Marriage contract\n\tMARL?: Common; // Marriage license\n\tMARR?: Common; // Marriage\n\tMARS?: Common; // Marriage settlement\n\tMISC?: Common; // Miscellaneous\n\tNAME?: Common; // Name\n\tNATI?: Common; // Nationality\n\tNATU?: Common; // Naturalization\n\tNICK?: Common; // Nickname\n\tNOTE?: Common; // Additional information\n\tNPFX?: Common; // Name prefix\n\tNSFX?: Common; // Name suffix (Jr. or Sr. etc.)\n\tOCCU?: Common; // Occupation\n\tOCCUPATION?: Common; // Occupation\n\tOCCUPATIONS?: Common; // Occupation\n\tORDI?: Common; // Ordinance (religious)\n\tORDL?: Common; // Ordination (LDS)\n\tORDN?: Common; // Ordination (non-LDS)\n\tPEDI?: Common; // Pedigree\n\tPART?: Common; // Partner\n\tPHON?: Common; // Phone number\n\tPLAC?: Common; // Place\n\tPOST?: Common; // Postal code\n\tPRIV?: Common; // Private\n\tPROB?: Common; // Probate\n\tRACE?: Common; // Race\n\tRELI?: Common; // Religion (denomination)\n\tRESI?: Common; // Residence\n\tRETI?: Common; // Retirement\n\tSEX?: Common<\"F\" | \"M\">; // Sex (male or female)\n\tSLGC?: Common; // Sealing of a child (LDS)\n\tSLGS?: Common; // Sealing of a spouse (LDS)\n\tSOUR?: Common; // Source\n\tSPFX?: Common; // Surname prefix\n\tSSN?: Common; // Social Security number\n\tSTAE?: Common; // State\n\tSTAT?: Common; // Statistics\n\tSTIL?: Common; // Stillborn\n\tSUBM?: Common; // Submitter\n\tSURN?: Common; // Surname\n\tREPO?: Common; // Repository\n\tTEL?: Common; // Telephone Number\n\tTEMP?: Common; // Temple (LDS)\n\tTIME?: Common; // Time\n\tTITL?: Common; // Title\n\tWIFE?: Common; // Wife\n\tWILL?: Common; // Will,\n\tRIN?: Common;\n\tFILE?: Common;\n\tAKA?: Common;\n\tFACT?: Common;\n\tTYPE?: Common;\n\tVERS?: Common;\n\tFORM?: Common;\n\tWWW?: Common;\n\tBAPT?: Common;\n\tCHRI?: Common;\n\tBURI?: Common;\n}\n\nexport type Tag = keyof Tags | keyof NonStandard;\nexport type ListTag = `@@${keyof Tags}`;\nexport type MultiTag = ListTag | Tag | `${Tag}.${Tag}`;\n\nexport type FilterIterator<T, K> = (\n\titem: T,\n\tkey: K | number,\n\tindex: number\n) => boolean;\nexport type Filter<T = unknown> = Partial<Record<MultiTag, T>>;\nexport type RequiredFilter<T extends Tag, F = unknown> = Required<\n\tPick<Filter<F>, T>\n> &\n\tPartial<Omit<Filter<F>, T>>;\n\nexport interface OrderDefinition {\n\tdirection: \"ASC\" | \"DESC\";\n\tgetter?: (orig: unknown, raw?: Common) => unknown;\n}\nexport type Order = MultiTag | Partial<Record<MultiTag, OrderDefinition>>;\n\nexport type OrderIterator<T, K> = (\n\titemA: T,\n\tkeyA: K | number,\n\titemB: T,\n\tkeyB: K | number\n) => number;\n\nexport interface GroupDefinition {\n\tgetter?: (orig: unknown, raw?: Common) => unknown;\n}\n\nexport type Group = MultiTag | Partial<Record<MultiTag, GroupDefinition>>;\nexport type GroupMarker = {\n\tmarker?: string;\n\tgroup: string;\n};\n\nexport type GroupIterator<T, K> = (\n\titem: T,\n\tkey: K | number\n) => string | string[] | GroupMarker[];\n\nexport enum Range {\n\tYear = 1,\n\tFiveYear = 5,\n\tDecade = 10,\n\tFiftyYear = 50,\n\tCentury = 100,\n}\n\nexport type NestedGroup = { [Key: string]: NestedGroup } & {\n\titems?: Individuals;\n\tlength?: number;\n};\n\nexport type NameOrder = \"first-last\" | \"last-first\";\nexport type PlaceOrder = \"country-to-city\" | \"city-to-country\";\nexport type LinkedPersons = \"merge\" | \"clone\" | \"skip\";\n"]}