@treeviz/gedcom-parser 2.0.1 → 2.0.3

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.
Files changed (254) hide show
  1. package/dist/classes/common.d.ts +118 -0
  2. package/dist/classes/common.d.ts.map +1 -0
  3. package/dist/classes/date.d.ts +27 -0
  4. package/dist/classes/date.d.ts.map +1 -0
  5. package/dist/classes/fam.d.ts +19 -0
  6. package/dist/classes/fam.d.ts.map +1 -0
  7. package/dist/classes/fams.d.ts +16 -0
  8. package/dist/classes/fams.d.ts.map +1 -0
  9. package/dist/classes/gedcom.d.ts +148 -0
  10. package/dist/classes/gedcom.d.ts.map +1 -0
  11. package/dist/classes/index.d.ts +28 -2
  12. package/dist/classes/index.d.ts.map +1 -0
  13. package/dist/classes/index.js +1 -1
  14. package/dist/classes/indi.d.ts +351 -0
  15. package/dist/classes/indi.d.ts.map +1 -0
  16. package/dist/classes/indis.d.ts +55 -0
  17. package/dist/classes/indis.d.ts.map +1 -0
  18. package/dist/classes/list.d.ts +55 -0
  19. package/dist/classes/list.d.ts.map +1 -0
  20. package/dist/classes/name.d.ts +20 -0
  21. package/dist/classes/name.d.ts.map +1 -0
  22. package/dist/classes/note.d.ts +12 -0
  23. package/dist/classes/note.d.ts.map +1 -0
  24. package/dist/classes/obje.d.ts +12 -0
  25. package/dist/classes/obje.d.ts.map +1 -0
  26. package/dist/classes/objes.d.ts +8 -0
  27. package/dist/classes/objes.d.ts.map +1 -0
  28. package/dist/classes/repo.d.ts +11 -0
  29. package/dist/classes/repo.d.ts.map +1 -0
  30. package/dist/classes/repos.d.ts +8 -0
  31. package/dist/classes/repos.d.ts.map +1 -0
  32. package/dist/classes/sour.d.ts +11 -0
  33. package/dist/classes/sour.d.ts.map +1 -0
  34. package/dist/classes/sours.d.ts +8 -0
  35. package/dist/classes/sours.d.ts.map +1 -0
  36. package/dist/classes/subm.d.ts +10 -0
  37. package/dist/classes/subm.d.ts.map +1 -0
  38. package/dist/classes/subms.d.ts +8 -0
  39. package/dist/classes/subms.d.ts.map +1 -0
  40. package/dist/cli/commands/convert.d.ts +3 -0
  41. package/dist/cli/commands/convert.d.ts.map +1 -0
  42. package/dist/cli/commands/extract.d.ts +3 -0
  43. package/dist/cli/commands/extract.d.ts.map +1 -0
  44. package/dist/cli/commands/find.d.ts +28 -0
  45. package/dist/cli/commands/find.d.ts.map +1 -0
  46. package/dist/cli/commands/get.d.ts +22 -0
  47. package/dist/cli/commands/get.d.ts.map +1 -0
  48. package/dist/cli/commands/info.d.ts +3 -0
  49. package/dist/cli/commands/info.d.ts.map +1 -0
  50. package/dist/cli/commands/merge.d.ts +3 -0
  51. package/dist/cli/commands/merge.d.ts.map +1 -0
  52. package/dist/cli/commands/open.d.ts +3 -0
  53. package/dist/cli/commands/open.d.ts.map +1 -0
  54. package/dist/cli/commands/relatives.d.ts +3 -0
  55. package/dist/cli/commands/relatives.d.ts.map +1 -0
  56. package/dist/cli/commands/select.d.ts +13 -0
  57. package/dist/cli/commands/select.d.ts.map +1 -0
  58. package/dist/cli/commands/show.d.ts +9 -0
  59. package/dist/cli/commands/show.d.ts.map +1 -0
  60. package/dist/cli/commands/stats.d.ts +8 -0
  61. package/dist/cli/commands/stats.d.ts.map +1 -0
  62. package/dist/cli/commands/validate.d.ts +3 -0
  63. package/dist/cli/commands/validate.d.ts.map +1 -0
  64. package/dist/cli/index.d.ts +3 -0
  65. package/dist/cli/index.d.ts.map +1 -0
  66. package/dist/cli/index.js +1 -1
  67. package/dist/cli/repl.d.ts +17 -0
  68. package/dist/cli/repl.d.ts.map +1 -0
  69. package/dist/cli/utils/formatters.d.ts +71 -0
  70. package/dist/cli/utils/formatters.d.ts.map +1 -0
  71. package/dist/cli/utils/helpers.d.ts +21 -0
  72. package/dist/cli/utils/helpers.d.ts.map +1 -0
  73. package/dist/constants/constants.d.ts +14 -0
  74. package/dist/constants/constants.d.ts.map +1 -0
  75. package/dist/constants/filters.d.ts +18 -0
  76. package/dist/constants/filters.d.ts.map +1 -0
  77. package/dist/constants/index.d.ts +4 -49
  78. package/dist/constants/index.d.ts.map +1 -0
  79. package/dist/constants/orders.d.ts +17 -0
  80. package/dist/constants/orders.d.ts.map +1 -0
  81. package/dist/factories/cache-factory.d.ts +30 -0
  82. package/dist/factories/cache-factory.d.ts.map +1 -0
  83. package/dist/factories/date-locale-factory.d.ts +30 -0
  84. package/dist/factories/date-locale-factory.d.ts.map +1 -0
  85. package/dist/factories/i18n-factory.d.ts +40 -0
  86. package/dist/factories/i18n-factory.d.ts.map +1 -0
  87. package/dist/factories/index.d.ts +13 -202
  88. package/dist/factories/index.d.ts.map +1 -0
  89. package/dist/factories/kinship-factory.d.ts +38 -0
  90. package/dist/factories/kinship-factory.d.ts.map +1 -0
  91. package/dist/factories/place-parser-provider.d.ts +32 -0
  92. package/dist/factories/place-parser-provider.d.ts.map +1 -0
  93. package/dist/factories/place-translator-provider.d.ts +32 -0
  94. package/dist/factories/place-translator-provider.d.ts.map +1 -0
  95. package/dist/index.d.ts +28 -9
  96. package/dist/index.d.ts.map +1 -0
  97. package/dist/index.js +1 -1
  98. package/dist/interfaces/common.d.ts +43 -0
  99. package/dist/interfaces/common.d.ts.map +1 -0
  100. package/dist/interfaces/fam.d.ts +11 -0
  101. package/dist/interfaces/fam.d.ts.map +1 -0
  102. package/dist/interfaces/fams.d.ts +9 -0
  103. package/dist/interfaces/fams.d.ts.map +1 -0
  104. package/dist/interfaces/gedcom.d.ts +30 -0
  105. package/dist/interfaces/gedcom.d.ts.map +1 -0
  106. package/dist/interfaces/index.d.ts +12 -2
  107. package/dist/interfaces/index.d.ts.map +1 -0
  108. package/dist/interfaces/indi.d.ts +114 -0
  109. package/dist/interfaces/indi.d.ts.map +1 -0
  110. package/dist/interfaces/indis.d.ts +31 -0
  111. package/dist/interfaces/indis.d.ts.map +1 -0
  112. package/dist/interfaces/list.d.ts +52 -0
  113. package/dist/interfaces/list.d.ts.map +1 -0
  114. package/dist/interfaces/obje.d.ts +7 -0
  115. package/dist/interfaces/obje.d.ts.map +1 -0
  116. package/dist/interfaces/repo.d.ts +7 -0
  117. package/dist/interfaces/repo.d.ts.map +1 -0
  118. package/dist/interfaces/sour.d.ts +7 -0
  119. package/dist/interfaces/sour.d.ts.map +1 -0
  120. package/dist/interfaces/subm.d.ts +6 -0
  121. package/dist/interfaces/subm.d.ts.map +1 -0
  122. package/dist/kinship-translator/index.d.ts +11 -146
  123. package/dist/kinship-translator/index.d.ts.map +1 -0
  124. package/dist/kinship-translator/kinship-translator.basic.d.ts +30 -0
  125. package/dist/kinship-translator/kinship-translator.basic.d.ts.map +1 -0
  126. package/dist/kinship-translator/kinship-translator.d.ts +26 -0
  127. package/dist/kinship-translator/kinship-translator.d.ts.map +1 -0
  128. package/dist/kinship-translator/kinship-translator.de.d.ts +18 -0
  129. package/dist/kinship-translator/kinship-translator.de.d.ts.map +1 -0
  130. package/dist/kinship-translator/kinship-translator.en.d.ts +18 -0
  131. package/dist/kinship-translator/kinship-translator.en.d.ts.map +1 -0
  132. package/dist/kinship-translator/kinship-translator.es.d.ts +18 -0
  133. package/dist/kinship-translator/kinship-translator.es.d.ts.map +1 -0
  134. package/dist/kinship-translator/kinship-translator.fr.d.ts +18 -0
  135. package/dist/kinship-translator/kinship-translator.fr.d.ts.map +1 -0
  136. package/dist/kinship-translator/kinship-translator.hu.d.ts +19 -0
  137. package/dist/kinship-translator/kinship-translator.hu.d.ts.map +1 -0
  138. package/dist/kinship-translator/kinship-translator.interface.d.ts +19 -0
  139. package/dist/kinship-translator/kinship-translator.interface.d.ts.map +1 -0
  140. package/dist/kinship-translator/patterns.de.d.ts +2 -0
  141. package/dist/kinship-translator/patterns.de.d.ts.map +1 -0
  142. package/dist/kinship-translator/patterns.en.d.ts +2 -0
  143. package/dist/kinship-translator/patterns.en.d.ts.map +1 -0
  144. package/dist/kinship-translator/patterns.es.d.ts +2 -0
  145. package/dist/kinship-translator/patterns.es.d.ts.map +1 -0
  146. package/dist/kinship-translator/patterns.fr.d.ts +2 -0
  147. package/dist/kinship-translator/patterns.fr.d.ts.map +1 -0
  148. package/dist/kinship-translator/patterns.hu.d.ts +6 -0
  149. package/dist/kinship-translator/patterns.hu.d.ts.map +1 -0
  150. package/dist/kinship-translator/translators.d.ts +6 -0
  151. package/dist/kinship-translator/translators.d.ts.map +1 -0
  152. package/dist/kinship-translator/types.d.ts +9 -0
  153. package/dist/kinship-translator/types.d.ts.map +1 -0
  154. package/dist/structures/address.d.ts +14 -0
  155. package/dist/structures/address.d.ts.map +1 -0
  156. package/dist/structures/association.d.ts +13 -0
  157. package/dist/structures/association.d.ts.map +1 -0
  158. package/dist/structures/change-date.d.ts +8 -0
  159. package/dist/structures/change-date.d.ts.map +1 -0
  160. package/dist/structures/creation-date.d.ts +7 -0
  161. package/dist/structures/creation-date.d.ts.map +1 -0
  162. package/dist/structures/date.d.ts +9 -0
  163. package/dist/structures/date.d.ts.map +1 -0
  164. package/dist/structures/event-detail-structure.d.ts +25 -0
  165. package/dist/structures/event-detail-structure.d.ts.map +1 -0
  166. package/dist/structures/family.d.ts +34 -0
  167. package/dist/structures/family.d.ts.map +1 -0
  168. package/dist/structures/gedcom.d.ts +59 -0
  169. package/dist/structures/gedcom.d.ts.map +1 -0
  170. package/dist/structures/index.d.ts +27 -25
  171. package/dist/structures/index.d.ts.map +1 -0
  172. package/dist/structures/individual-event-detail-structure.d.ts +9 -0
  173. package/dist/structures/individual-event-detail-structure.d.ts.map +1 -0
  174. package/dist/structures/individual-event-structure.d.ts +83 -0
  175. package/dist/structures/individual-event-structure.d.ts.map +1 -0
  176. package/dist/structures/individual.d.ts +40 -0
  177. package/dist/structures/individual.d.ts.map +1 -0
  178. package/dist/structures/lds-ordinance-detail.d.ts +17 -0
  179. package/dist/structures/lds-ordinance-detail.d.ts.map +1 -0
  180. package/dist/structures/lds-spouse-sealing.d.ts +7 -0
  181. package/dist/structures/lds-spouse-sealing.d.ts.map +1 -0
  182. package/dist/structures/marriage-date.d.ts +11 -0
  183. package/dist/structures/marriage-date.d.ts.map +1 -0
  184. package/dist/structures/multimedia-link.d.ts +16 -0
  185. package/dist/structures/multimedia-link.d.ts.map +1 -0
  186. package/dist/structures/non-event.d.ts +12 -0
  187. package/dist/structures/non-event.d.ts.map +1 -0
  188. package/dist/structures/note.d.ts +16 -0
  189. package/dist/structures/note.d.ts.map +1 -0
  190. package/dist/structures/personal-name-pieces.d.ts +11 -0
  191. package/dist/structures/personal-name-pieces.d.ts.map +1 -0
  192. package/dist/structures/personal-name.d.ts +16 -0
  193. package/dist/structures/personal-name.d.ts.map +1 -0
  194. package/dist/structures/place.d.ts +20 -0
  195. package/dist/structures/place.d.ts.map +1 -0
  196. package/dist/structures/repository.d.ts +6 -0
  197. package/dist/structures/repository.d.ts.map +1 -0
  198. package/dist/structures/source-citation.d.ts +27 -0
  199. package/dist/structures/source-citation.d.ts.map +1 -0
  200. package/dist/structures/source-repository-citation.d.ts +13 -0
  201. package/dist/structures/source-repository-citation.d.ts.map +1 -0
  202. package/dist/structures/source.d.ts +28 -0
  203. package/dist/structures/source.d.ts.map +1 -0
  204. package/dist/types/ancestry-media.d.ts +65 -0
  205. package/dist/types/ancestry-media.d.ts.map +1 -0
  206. package/dist/types/index.d.ts +8 -69
  207. package/dist/types/index.d.ts.map +1 -0
  208. package/dist/types/settings.d.ts +12 -0
  209. package/dist/types/settings.d.ts.map +1 -0
  210. package/dist/types/types.d.ts +229 -0
  211. package/dist/types/types.d.ts.map +1 -0
  212. package/dist/utils/cache.d.ts +26 -0
  213. package/dist/utils/cache.d.ts.map +1 -0
  214. package/dist/utils/common-creator.d.ts +13 -0
  215. package/dist/utils/common-creator.d.ts.map +1 -0
  216. package/dist/utils/date-formatter.d.ts +35 -0
  217. package/dist/utils/date-formatter.d.ts.map +1 -0
  218. package/dist/utils/get-all-prop.d.ts +4 -0
  219. package/dist/utils/get-all-prop.d.ts.map +1 -0
  220. package/dist/utils/get-family-with.d.ts +5 -0
  221. package/dist/utils/get-family-with.d.ts.map +1 -0
  222. package/dist/utils/get-places.d.ts +21 -0
  223. package/dist/utils/get-places.d.ts.map +1 -0
  224. package/dist/utils/get-product-details.d.ts +4 -0
  225. package/dist/utils/get-product-details.d.ts.map +1 -0
  226. package/dist/utils/get-raw-size.d.ts +2 -0
  227. package/dist/utils/get-raw-size.d.ts.map +1 -0
  228. package/dist/utils/index.d.ts +19 -19
  229. package/dist/utils/index.d.ts.map +1 -0
  230. package/dist/utils/index.js +1 -1
  231. package/dist/utils/logger.d.ts +3 -0
  232. package/dist/utils/logger.d.ts.map +1 -0
  233. package/dist/utils/media-utils.d.ts +13 -0
  234. package/dist/utils/media-utils.d.ts.map +1 -0
  235. package/dist/utils/name-formatter.d.ts +10 -0
  236. package/dist/utils/name-formatter.d.ts.map +1 -0
  237. package/dist/utils/nested-group.d.ts +4 -0
  238. package/dist/utils/nested-group.d.ts.map +1 -0
  239. package/dist/utils/ordinalize.d.ts +3 -0
  240. package/dist/utils/ordinalize.d.ts.map +1 -0
  241. package/dist/utils/parser.d.ts +22 -0
  242. package/dist/utils/parser.d.ts.map +1 -0
  243. package/dist/utils/place-parser.d.ts +16 -0
  244. package/dist/utils/place-parser.d.ts.map +1 -0
  245. package/dist/utils/place-translator.d.ts +6 -0
  246. package/dist/utils/place-translator.d.ts.map +1 -0
  247. package/dist/utils/place-types.d.ts +27 -0
  248. package/dist/utils/place-types.d.ts.map +1 -0
  249. package/dist/utils/range.d.ts +19 -0
  250. package/dist/utils/range.d.ts.map +1 -0
  251. package/package.json +12 -2
  252. package/dist/index-B3Po1Kaw.d.ts +0 -1713
  253. package/dist/place-parser-BLwBjtXS.d.ts +0 -40
  254. package/dist/place-translator-DPMyrsnu.d.ts +0 -93
@@ -0,0 +1,10 @@
1
+ import type ISubm from "../interfaces/subm";
2
+ import type { SubmKey } from "../types/types";
3
+ import { Common } from "./common";
4
+ import type { ProxyOriginal } from "./common";
5
+ import type { GedComType } from "./gedcom";
6
+ export declare class Subm extends Common<string, SubmKey> implements ISubm {
7
+ }
8
+ export type SubmType = Subm & ISubm;
9
+ export declare const createSubm: (gedcom: GedComType, id?: SubmKey, main?: Common, parent?: Common) => ProxyOriginal<SubmType>;
10
+ //# sourceMappingURL=subm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subm.d.ts","sourceRoot":"","sources":["../../src/classes/subm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAe,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAEzC,qBAAa,IAAK,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAE,YAAW,KAAK;CAAG;AAErE,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,KAAK,CAAC;AACpC,eAAO,MAAM,UAAU,GACtB,QAAQ,UAAU,EAClB,KAAK,OAAO,EACZ,OAAO,MAAM,EACb,SAAS,MAAM,KACb,aAAa,CAAC,QAAQ,CAIxB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { SubmKey } from "../types/types";
2
+ import { List } from "./list";
3
+ import type { SubmType } from "./subm";
4
+ export declare class Submitters extends List<SubmKey, SubmType> {
5
+ copy(): Submitters;
6
+ except(item: SubmType): Submitters;
7
+ }
8
+ //# sourceMappingURL=subms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subms.d.ts","sourceRoot":"","sources":["../../src/classes/subms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAErC,qBAAa,UAAW,SAAQ,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC;IACtD,IAAI;IAUJ,MAAM,CAAC,IAAI,EAAE,QAAQ;CAGrB"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerConvertCommand(program: Command): void;
3
+ //# sourceMappingURL=convert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAiG7D"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerExtractCommand(program: Command): void;
3
+ //# sourceMappingURL=extract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/extract.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAczC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6H7D"}
@@ -0,0 +1,28 @@
1
+ import type { Command } from "commander";
2
+ import type { GedCom } from "../../classes/gedcom";
3
+ import type { IndiType } from "../../classes/indi";
4
+ interface FindOptions {
5
+ id?: string;
6
+ name?: string;
7
+ birthYear?: string;
8
+ deathYear?: string;
9
+ json?: boolean;
10
+ }
11
+ /**
12
+ * Find individuals in a GEDCOM tree
13
+ * @param tree - The GEDCOM tree to search
14
+ * @param options - Search criteria
15
+ * @returns Array of matching individuals
16
+ */
17
+ export declare function findIndividuals(tree: GedCom, options: FindOptions & {
18
+ query?: string;
19
+ }): IndiType[];
20
+ /**
21
+ * Format find results for output
22
+ * @param results - Array of individuals
23
+ * @param json - Whether to format as JSON
24
+ */
25
+ export declare function formatFindResults(results: IndiType[], json?: boolean): void;
26
+ export declare function registerFindCommand(program: Command): void;
27
+ export {};
28
+ //# sourceMappingURL=find.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/find.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAkBnD,UAAU,WAAW;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,WAAW,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACvC,QAAQ,EAAE,CAkDZ;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,OAAO,EAAE,QAAQ,EAAE,EACnB,IAAI,GAAE,OAAe,GACnB,IAAI,CA6DN;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyB1D"}
@@ -0,0 +1,22 @@
1
+ import type { Command } from "commander";
2
+ import { List, Common } from "../../classes";
3
+ import type { GedCom } from "../../classes/gedcom";
4
+ interface GetOptions {
5
+ path?: string;
6
+ json?: boolean;
7
+ raw?: boolean;
8
+ }
9
+ /**
10
+ * Format the output value
11
+ * @param value - The value to format
12
+ * @param options - Formatting options
13
+ * @returns Formatted string
14
+ */
15
+ export declare function formatOutput(value: Common | List | undefined, options: GetOptions): string;
16
+ /**
17
+ * Get a value from a record (reusable core logic)
18
+ */
19
+ export declare function getValue(tree: GedCom, id: string, path?: string, json?: boolean, raw?: boolean): string;
20
+ export declare function registerGetCommand(program: Command): void;
21
+ export {};
22
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/get.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAMnD,UAAU,UAAU;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;CACd;AAeD;;;;;GAKG;AACH,wBAAgB,YAAY,CAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,EAAE,UAAU,GACjB,MAAM,CAgER;AAED;;GAEG;AACH,wBAAgB,QAAQ,CACvB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,IAAI,CAAC,EAAE,MAAM,EACb,IAAI,GAAE,OAAe,EACrB,GAAG,GAAE,OAAe,GAClB,MAAM,CAiFR;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyGzD"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerInfoCommand(program: Command): void;
3
+ //# sourceMappingURL=info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/info.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBzC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyG1D"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from 'commander';
2
+ export declare function registerMergeCommand(program: Command): void;
3
+ //# sourceMappingURL=merge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwBzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAoE3D"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerOpenCommand(program: Command): void;
3
+ //# sourceMappingURL=open.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/open.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAc1D"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerRelativesCommand(program: Command): void;
3
+ //# sourceMappingURL=relatives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relatives.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/relatives.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4BzC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyH/D"}
@@ -0,0 +1,13 @@
1
+ import type { Command } from "commander";
2
+ import type { GedCom } from "../../classes/gedcom";
3
+ import type { IndiType } from "../../classes/indi";
4
+ /**
5
+ * Select an individual from the tree by ID or from search results by index
6
+ */
7
+ export declare function selectIndividual(tree: GedCom, input: string, searchResults?: IndiType[]): IndiType | undefined;
8
+ /**
9
+ * Format selection result
10
+ */
11
+ export declare function formatSelectResult(individual: IndiType | undefined, input: string): void;
12
+ export declare function registerSelectCommand(program: Command): void;
13
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/select.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAWnD;;GAEG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,aAAa,CAAC,EAAE,QAAQ,EAAE,GACxB,QAAQ,GAAG,SAAS,CAYtB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CACjC,UAAU,EAAE,QAAQ,GAAG,SAAS,EAChC,KAAK,EAAE,MAAM,GACX,IAAI,CAWN;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAkB5D"}
@@ -0,0 +1,9 @@
1
+ import type { Command } from "commander";
2
+ import type { GedCom } from "../../classes/gedcom";
3
+ import type { IndiType } from "../../classes/indi";
4
+ /**
5
+ * Show detailed information about an individual (reusable core logic)
6
+ */
7
+ export declare function showIndividual(tree: GedCom, individual: IndiType): void;
8
+ export declare function registerShowCommand(program: Command): void;
9
+ //# sourceMappingURL=show.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/show.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAanD;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,GAAG,IAAI,CA+IvE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAoB1D"}
@@ -0,0 +1,8 @@
1
+ import type { Command } from "commander";
2
+ import type { GedCom } from "../../classes/gedcom";
3
+ /**
4
+ * Display statistics for a GEDCOM tree (reusable core logic)
5
+ */
6
+ export declare function displayStats(tree: GedCom, json?: boolean): void;
7
+ export declare function registerStatsCommand(program: Command): void;
8
+ //# sourceMappingURL=stats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/stats.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAcnD;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,OAAe,GAAG,IAAI,CAiDtE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAc3D"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerValidateCommand(program: Command): void;
3
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/validate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2BzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsN9D"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":""}
package/dist/cli/index.js CHANGED
@@ -6245,7 +6245,7 @@ var Families = class _Families extends List {
6245
6245
 
6246
6246
  // package.json
6247
6247
  var package_default = {
6248
- version: "2.0.1"};
6248
+ version: "2.0.3"};
6249
6249
 
6250
6250
  // src/utils/get-product-details.ts
6251
6251
  var isDevelopment = () => {
@@ -0,0 +1,17 @@
1
+ import type { GedComType } from "../classes/gedcom";
2
+ export declare class GedcomRepl {
3
+ private rl;
4
+ private context;
5
+ constructor(tree: GedComType);
6
+ private setupHandlers;
7
+ private handleCommand;
8
+ private showHelp;
9
+ private handleFind;
10
+ private handleSelect;
11
+ private handleShow;
12
+ private handleGet;
13
+ private handleRelatives;
14
+ private handleValidate;
15
+ start(): void;
16
+ }
17
+ //# sourceMappingURL=repl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../src/cli/repl.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAoEpD,qBAAa,UAAU;IACtB,OAAO,CAAC,EAAE,CAAqB;IAC/B,OAAO,CAAC,OAAO,CAAc;gBAEjB,IAAI,EAAE,UAAU;IAW5B,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,aAAa;IAkDrB,OAAO,CAAC,QAAQ;IAoKhB,OAAO,CAAC,UAAU;IAoDlB,OAAO,CAAC,YAAY;IAqBpB,OAAO,CAAC,UAAU;IA0BlB,OAAO,CAAC,SAAS;IA4DjB,OAAO,CAAC,eAAe;IAoHvB,OAAO,CAAC,cAAc;IA6LtB,KAAK,IAAI,IAAI;CAOb"}
@@ -0,0 +1,71 @@
1
+ import chalk from "chalk";
2
+ export { chalk };
3
+ /**
4
+ * Format a success message
5
+ */
6
+ export declare function formatSuccess(message: string): string;
7
+ /**
8
+ * Format a warning message
9
+ */
10
+ export declare function formatWarning(message: string): string;
11
+ /**
12
+ * Format an error message
13
+ */
14
+ export declare function formatError(message: string): string;
15
+ /**
16
+ * Format an info message
17
+ */
18
+ export declare function formatInfo(message: string): string;
19
+ /**
20
+ * Format a header
21
+ */
22
+ export declare function formatHeader(text: string): string;
23
+ /**
24
+ * Format a field label
25
+ */
26
+ export declare function formatLabel(label: string): string;
27
+ /**
28
+ * Format a value
29
+ */
30
+ export declare function formatValue(value: string | number | null | undefined): string;
31
+ /**
32
+ * Format an ID
33
+ */
34
+ export declare function formatId(id: string): string;
35
+ /**
36
+ * Format a count
37
+ */
38
+ export declare function formatCount(count: number): string;
39
+ /**
40
+ * Format a date
41
+ */
42
+ export declare function formatDate(date: string | null | undefined): string;
43
+ /**
44
+ * Format a place
45
+ */
46
+ export declare function formatPlace(place: string | null | undefined): string;
47
+ /**
48
+ * Format a name
49
+ */
50
+ export declare function formatName(name: string | null | undefined): string;
51
+ /**
52
+ * Format a list item
53
+ */
54
+ export declare function formatListItem(text: string, indent?: number): string;
55
+ /**
56
+ * Format a table row
57
+ */
58
+ export declare function formatTableRow(columns: string[], widths: number[]): string;
59
+ /**
60
+ * Format a table separator
61
+ */
62
+ export declare function formatTableSeparator(widths: number[]): string;
63
+ /**
64
+ * Pretty print JSON
65
+ */
66
+ export declare function formatJson(data: unknown): string;
67
+ /**
68
+ * Format a progress indicator
69
+ */
70
+ export declare function formatProgress(current: number, total: number): string;
71
+ //# sourceMappingURL=formatters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/formatters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAK7E;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAKlE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAKpE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAOlE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,GAAG,MAAM,CAGvE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAE1E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAE7D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAKrE"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Read a GEDCOM file
3
+ */
4
+ export declare function readGedcomFile(filePath: string): string;
5
+ /**
6
+ * Handle CLI errors
7
+ */
8
+ export declare function handleError(error: unknown, context?: string): never;
9
+ /**
10
+ * Validate file path
11
+ */
12
+ export declare function validateFilePath(filePath: string | undefined, paramName: string): string;
13
+ /**
14
+ * Clean GEDCOM name by removing slashes
15
+ */
16
+ export declare function cleanGedcomName(name: string | undefined | null): string;
17
+ /**
18
+ * Format lifespan string
19
+ */
20
+ export declare function formatLifespan(birthDate: string | null | undefined, deathDate: string | null | undefined): string;
21
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/helpers.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAWvD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAUnE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAMxF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAGvE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAIjH"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * GEDCOM Parsing Patterns
3
+ * Regular expressions for parsing GEDCOM files
4
+ */
5
+ export declare const REF_LINE_REG: RegExp;
6
+ export declare const LINE_REG: RegExp;
7
+ export declare const ID_REG: RegExp;
8
+ export declare const ID_GETTER_REG: RegExp;
9
+ export declare const ID_SPLIT_REG: RegExp;
10
+ /**
11
+ * File size limits
12
+ */
13
+ export declare const MAX_FILE_SIZE_TO_SYNC: number;
14
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,YAAY,QACqE,CAAC;AAC/F,eAAO,MAAM,QAAQ,QACsF,CAAC;AAC5G,eAAO,MAAM,MAAM,QAAqB,CAAC;AACzC,eAAO,MAAM,aAAa,QAAiC,CAAC;AAC5D,eAAO,MAAM,YAAY,QAAsB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAmB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { RelationType, PartnerType } from "../types/types";
2
+ import type { RequiredFilter, Filter } from "../types/types";
3
+ export declare const EVERY: Filter;
4
+ export declare const FEMALE: Filter;
5
+ export declare const MALE: Filter;
6
+ export declare const ADOPTED: RequiredFilter<"PEDI", RelationType>;
7
+ export declare const BIRTH: RequiredFilter<"PEDI", RelationType>;
8
+ export declare const FOSTER: RequiredFilter<"PEDI", RelationType>;
9
+ export declare const SEALING: RequiredFilter<"PEDI", RelationType>;
10
+ export declare const STEP: RequiredFilter<"PEDI", RelationType>;
11
+ export declare const BIOLOGICAL: RequiredFilter<"PEDI", RelationType>;
12
+ export declare const FRIEND: RequiredFilter<"PART", PartnerType>;
13
+ export declare const OTHER: RequiredFilter<"PART", PartnerType>;
14
+ export declare const PARTNER: RequiredFilter<"PART", PartnerType>;
15
+ export declare const SINGLE: RequiredFilter<"PART", PartnerType>;
16
+ export declare const SPOUSE: RequiredFilter<"PART", PartnerType>;
17
+ export declare const UNKOWN: RequiredFilter<"PART", PartnerType>;
18
+ //# sourceMappingURL=filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../src/constants/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,YAAY,EACZ,WAAW,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAC,cAAc,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAE3D,eAAO,MAAM,KAAK,EAAE,MAAW,CAAC;AAEhC,eAAO,MAAM,MAAM,EAAE,MAEpB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,MAElB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,YAAY,CAExD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,cAAc,CAAC,MAAM,EAAE,YAAY,CAEtD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,YAAY,CAEvD,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,YAAY,CAExD,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,cAAc,CAAC,MAAM,EAAE,YAAY,CAErD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,cAAc,CAAC,MAAM,EAAE,YAAY,CAE3D,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,WAAW,CAEtD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,cAAc,CAAC,MAAM,EAAE,WAAW,CAErD,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,WAAW,CAEvD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,WAAW,CAEtD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,WAAW,CAEtD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,WAAW,CAEtD,CAAC"}
@@ -1,49 +1,4 @@
1
- import { aT as RequiredFilter, aO as RelationType, n as Filter, aA as PartnerType, ax as Order, az as OrderIterator, af as IndiType, ac as IndiKey, ap as NameOrder } from '../index-B3Po1Kaw.js';
2
- import 'date-fns';
3
-
4
- /**
5
- * GEDCOM Parsing Patterns
6
- * Regular expressions for parsing GEDCOM files
7
- */
8
- declare const REF_LINE_REG: RegExp;
9
- declare const LINE_REG: RegExp;
10
- declare const ID_REG: RegExp;
11
- declare const ID_GETTER_REG: RegExp;
12
- declare const ID_SPLIT_REG: RegExp;
13
- /**
14
- * File size limits
15
- */
16
- declare const MAX_FILE_SIZE_TO_SYNC: number;
17
-
18
- declare const EVERY: Filter;
19
- declare const FEMALE: Filter;
20
- declare const MALE: Filter;
21
- declare const ADOPTED: RequiredFilter<"PEDI", RelationType>;
22
- declare const BIRTH: RequiredFilter<"PEDI", RelationType>;
23
- declare const FOSTER: RequiredFilter<"PEDI", RelationType>;
24
- declare const SEALING: RequiredFilter<"PEDI", RelationType>;
25
- declare const STEP: RequiredFilter<"PEDI", RelationType>;
26
- declare const BIOLOGICAL: RequiredFilter<"PEDI", RelationType>;
27
- declare const FRIEND: RequiredFilter<"PART", PartnerType>;
28
- declare const OTHER: RequiredFilter<"PART", PartnerType>;
29
- declare const PARTNER: RequiredFilter<"PART", PartnerType>;
30
- declare const SINGLE: RequiredFilter<"PART", PartnerType>;
31
- declare const SPOUSE: RequiredFilter<"PART", PartnerType>;
32
- declare const UNKOWN: RequiredFilter<"PART", PartnerType>;
33
-
34
- declare const DEFAULT: Order;
35
- declare const BIRTH_ASC: Order;
36
- declare const BIRTH_DESC: Order;
37
- declare const DEATH_ASC: Order;
38
- declare const DEATH_DESC: Order;
39
- declare const DATE_ASC: Order;
40
- declare const DATE_DESC: Order;
41
- declare const getNameDesc: (nameOrder?: NameOrder) => OrderIterator<IndiType, IndiKey>;
42
- declare const getNameAsc: (nameOrder?: NameOrder) => OrderIterator<IndiType, IndiKey>;
43
- declare const getBirthAsc: OrderIterator<IndiType, IndiKey>;
44
- declare const getNameAscAndBirth: (nameOrder?: NameOrder) => OrderIterator<IndiType, IndiKey>;
45
- declare const getMarriageAsc: (person?: IndiKey, famType?: "FAMS" | "FAMC") => OrderIterator<IndiType, IndiKey>;
46
- declare const getMarriageAscAndChildBirth: (person?: IndiKey) => OrderIterator<IndiType, IndiKey>;
47
- declare const getMarriageAscAndBirth: (person?: IndiKey) => OrderIterator<IndiType, IndiKey>;
48
-
49
- 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 };
1
+ export * from "./constants";
2
+ export * from "./filters";
3
+ export * from "./orders";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { IndiType } from "../classes/indi";
2
+ import type { OrderIterator, Order, IndiKey, NameOrder } from "../types/types";
3
+ export declare const DEFAULT: Order;
4
+ export declare const BIRTH_ASC: Order;
5
+ export declare const BIRTH_DESC: Order;
6
+ export declare const DEATH_ASC: Order;
7
+ export declare const DEATH_DESC: Order;
8
+ export declare const DATE_ASC: Order;
9
+ export declare const DATE_DESC: Order;
10
+ export declare const getNameDesc: (nameOrder?: NameOrder) => OrderIterator<IndiType, IndiKey>;
11
+ export declare const getNameAsc: (nameOrder?: NameOrder) => OrderIterator<IndiType, IndiKey>;
12
+ export declare const getBirthAsc: OrderIterator<IndiType, IndiKey>;
13
+ export declare const getNameAscAndBirth: (nameOrder?: NameOrder) => OrderIterator<IndiType, IndiKey>;
14
+ export declare const getMarriageAsc: (person?: IndiKey, famType?: "FAMS" | "FAMC") => OrderIterator<IndiType, IndiKey>;
15
+ export declare const getMarriageAscAndChildBirth: (person?: IndiKey) => OrderIterator<IndiType, IndiKey>;
16
+ export declare const getMarriageAscAndBirth: (person?: IndiKey) => OrderIterator<IndiType, IndiKey>;
17
+ //# sourceMappingURL=orders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../../src/constants/orders.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG/E,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAwGF,eAAO,MAAM,WAAW,EAAE,CACzB,SAAS,CAAC,EAAE,SAAS,KACjB,aAAa,CAAC,QAAQ,EAAE,OAAO,CAgBlC,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,CACxB,SAAS,CAAC,EAAE,SAAS,KACjB,aAAa,CAAC,QAAQ,EAAE,OAAO,CAgBlC,CAAC;AAEH,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,QAAQ,EAAE,OAAO,CAqBxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,CAChC,SAAS,CAAC,EAAE,SAAS,KACjB,aAAa,CAAC,QAAQ,EAAE,OAAO,CAUlC,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,CAC5B,MAAM,CAAC,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,KACrB,aAAa,CAAC,QAAQ,EAAE,OAAO,CAsBlC,CAAC;AAEH,eAAO,MAAM,2BAA2B,EAAE,CACzC,MAAM,CAAC,EAAE,OAAO,KACZ,aAAa,CAAC,QAAQ,EAAE,OAAO,CAelC,CAAC;AAEH,eAAO,MAAM,sBAAsB,EAAE,CACpC,MAAM,CAAC,EAAE,OAAO,KACZ,aAAa,CAAC,QAAQ,EAAE,OAAO,CAclC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { ICacheManager } from "../utils/cache";
2
+ /**
3
+ * Factory function type for creating cache manager instances.
4
+ * This allows the main project to inject custom cache implementations (e.g., IndexedDB).
5
+ */
6
+ export type CacheManagerFactory = <T>(name: string, store: string, type: string, encrypted: boolean) => ICacheManager<T>;
7
+ /**
8
+ * Set a custom cache manager factory.
9
+ * Call this from the main project to inject IndexedDB or other cache implementations.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * import { setCacheManagerFactory } from '@treeviz/gedcom-parser/factories/cache-factory';
14
+ * import { getInstance } from './utils/indexed-db-manager';
15
+ *
16
+ * setCacheManagerFactory(getInstance);
17
+ * ```
18
+ */
19
+ export declare const setCacheManagerFactory: (factory: CacheManagerFactory) => void;
20
+ /**
21
+ * Get the current cache manager factory.
22
+ * Used internally by the cache utility.
23
+ */
24
+ export declare const getCacheManagerFactory: () => CacheManagerFactory;
25
+ /**
26
+ * Reset to default in-memory cache factory.
27
+ * Useful for testing or when switching between projects.
28
+ */
29
+ export declare const resetCacheManagerFactory: () => void;
30
+ //# sourceMappingURL=cache-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-factory.d.ts","sourceRoot":"","sources":["../../src/factories/cache-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,EACnC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,OAAO,KACd,aAAa,CAAC,CAAC,CAAC,CAAC;AAkBtB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,mBAAmB,SAElE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAO,mBAEzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,YAEpC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { Locale } from "date-fns";
2
+ /**
3
+ * Date locale provider function type.
4
+ * Returns the date-fns Locale object for the current language.
5
+ */
6
+ export type DateLocaleProvider = () => Locale | undefined;
7
+ /**
8
+ * Set a custom date locale provider.
9
+ * This allows the main project or external projects to override the date locale logic.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * import { setDateLocaleProvider } from '@treeviz/gedcom-parser/factories/date-locale-factory';
14
+ * import { getDateFnsLocale } from './constants/ui-options';
15
+ *
16
+ * setDateLocaleProvider(getDateFnsLocale);
17
+ * ```
18
+ */
19
+ export declare const setDateLocaleProvider: (provider: DateLocaleProvider) => void;
20
+ /**
21
+ * Get the current date locale.
22
+ * Used internally by the Date class for formatting dates.
23
+ */
24
+ export declare const getDateLocale: () => Locale | undefined;
25
+ /**
26
+ * Reset to the default date locale provider.
27
+ * Useful for testing or when switching between projects.
28
+ */
29
+ export declare const resetDateLocaleProvider: () => void;
30
+ //# sourceMappingURL=date-locale-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-locale-factory.d.ts","sourceRoot":"","sources":["../../src/factories/date-locale-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,MAAM,GAAG,SAAS,CAAC;AAO1D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,GAAI,UAAU,kBAAkB,SAEjE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,QAAO,MAAM,GAAG,SAGzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,YAEnC,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * I18n provider factory for pluggable translation
3
+ * This allows the main project to inject its i18n instance
4
+ */
5
+ /**
6
+ * I18n provider function type.
7
+ * Mimics the i18next.t() function signature.
8
+ */
9
+ export type I18nProvider = (key: string, options?: Record<string, unknown>) => string;
10
+ /**
11
+ * Set a custom i18n provider.
12
+ * This allows the main project to inject its i18n translation function.
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * import { setI18nProvider } from '@treeviz/gedcom-parser/factories/i18n-factory';
17
+ * import i18n from './translation/i18n';
18
+ *
19
+ * setI18nProvider((key, options) => i18n.t(key, options));
20
+ * ```
21
+ */
22
+ export declare const setI18nProvider: (provider: I18nProvider) => void;
23
+ /**
24
+ * Get the current i18n provider.
25
+ * Used internally for translations.
26
+ */
27
+ export declare const getI18n: () => I18nProvider;
28
+ /**
29
+ * Reset to the default i18n provider.
30
+ * Useful for testing.
31
+ */
32
+ export declare const resetI18nProvider: () => void;
33
+ /**
34
+ * Helper object that mimics i18next interface
35
+ * Usage: i18n.t(key, options)
36
+ */
37
+ export declare const i18n: {
38
+ t: (key: string, options?: Record<string, unknown>) => string;
39
+ };
40
+ //# sourceMappingURL=i18n-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n-factory.d.ts","sourceRoot":"","sources":["../../src/factories/i18n-factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAC1B,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC7B,MAAM,CAAC;AAOZ;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,YAAY,SAErD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,QAAO,YAE1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,YAE7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI;aACP,MAAM,YAAY,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAElD,CAAC"}