@tricoteuses/tisseuse 0.14.1 → 0.14.2

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -28,9 +28,11 @@ export { article, articles, definitionArticleDansCitation, definitionArticleDans
28
28
  export { actionTargets, compoundReferencesSeparators, divisionTypes, europeanLawNatures, frenchLawNatures, internationalLawNatures, isTextAstAtomicReference, isTextAstDivision, isTextAstPortion, lawNatures, localizationAdverbs, portionTypes, type ActionTarget, type CompoundReferencesSeparator, type DivisionType, type EuropeanLawNature, type FrenchLawNature, type InternationalLawNature, type LawNature, type LocalizationAdverb, type PortionType, type TextAst, type TextAstAction, type TextAstActionDirective, type TextAstActionDirectiveOperation, type TextAstActionTargetScope, type TextAstApplicabilityClause, type TextAstArticle, type TextAstAtomicReference, type TextAstBoundedInterval, type TextAstCitation, type TextAstCompoundReference, type TextAstConseilConstitutionnelDecision, type TextAstCountedInterval, type TextAstDivision, type TextAstEnumeration, type TextAstExclusion, type TextAstIncompleteHeader, type TextAstLocalization, type TextAstModificationBlock, type TextAstModificationItem, type TextAstNumber, type TextAstParentChild, type TextAstPortion, type TextAstPosition, type TextAstReference, type TextAstReferenceAndAction, type TextAstText, type TextAstTextIdentification, type TextAstTextInfos, type TextInfosByWordsTree, type TextInfosByWordsTreeNode, } from './text_parsers/ast.js';
29
29
  export { citation, citationToText, citationLigne, citationSimple, } from './text_parsers/citations.js';
30
30
  export { date, duDate } from './text_parsers/dates.js';
31
+ export { referenceDoctrinale, referenceDoctrinaleArticleAvantSource, referenceDoctrinaleArticlesAvantSource, referenceDoctrinaleSourceAvantArticle, } from './text_parsers/doctrinal_references.js';
31
32
  export { definitionDivision, designationDivision, division, divisions, natureDivisionSingulier, numeroDivision, } from './text_parsers/divisions.js';
32
33
  export type { FragmentPosition, FragmentReverseTransformation, } from './text_parsers/fragments.js';
33
34
  export { addChildLeftToLastChild, createEnumerationOrBoundedInterval, createParentChildTreeFromReferences, iterAtomicFirstParentReferences, iterAtomicReferences, iterIncludedReferences, } from './text_parsers/helpers.js';
35
+ export { texteFrancaisAbrege } from './text_parsers/legal_text_aliases.js';
34
36
  export { adjectifNumeralCardinal, adjectifNumeralOrdinalCourt, adverbeMultiplicatifLatin, nombreAsTextAstNumber, nombreCardinal, nombreRomainCardinal, nombreRomainOrdinal, nombreRomainOu0iAsTextAstNumber, } from './text_parsers/numbers.js';
35
37
  export { alternatives, chain, convert, optional, parseText, regExp, repeat, TextParserContext, variable, wordsTree, } from './text_parsers/parsers.js';
36
38
  export { auPortion, auxPortions, numeroPortion, portions, unePortion, } from './text_parsers/portions.js';
@@ -0,0 +1,10 @@
1
+ export declare function sharedLegalTextSectionSelection({ rebuild, jo, reunions, scrutins, }: {
2
+ rebuild: boolean;
3
+ jo: boolean;
4
+ reunions: boolean;
5
+ scrutins: boolean;
6
+ }): {
7
+ jo: boolean;
8
+ reunions: boolean;
9
+ scrutins: boolean;
10
+ };
@@ -0,0 +1,17 @@
1
+ type AssembleeLegalTextDocument = Record<string, unknown> & {
2
+ id: string;
3
+ type: "Assemblée document" | "Assemblée dossier";
4
+ };
5
+ export declare function syncAssembleeLegalTextDocuments({ documents, exportDocuments, importDocuments, deleteDocument, }: {
6
+ documents: AssembleeLegalTextDocument[];
7
+ exportDocuments: () => Promise<string>;
8
+ importDocuments: (documents: AssembleeLegalTextDocument[]) => Promise<Array<{
9
+ success: boolean;
10
+ }>>;
11
+ deleteDocument: (id: string) => Promise<unknown>;
12
+ }): Promise<{
13
+ changed: number;
14
+ removed: number;
15
+ total: number;
16
+ }>;
17
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Doctrine often puts the abbreviated source before the article, contrary to
3
+ * parliamentary drafting conventions: "CGI, art. 39" or
4
+ * "CGI, ann. III, art. 38 quinquies".
5
+ *
6
+ * A trailing "et suiv." is intentionally left outside the reference. It does
7
+ * not provide a safe upper bound, but the first article can still be linked.
8
+ */
9
+ export declare const referenceDoctrinaleSourceAvantArticle: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
10
+ /**
11
+ * BOSS and, less often, BOFiP omit "article" and sometimes the preposition
12
+ * before an acronym: "L. 131-6-4 CSS", "L. 243-7 du CSS" or "article 39 CGI".
13
+ */
14
+ export declare const referenceDoctrinaleArticleAvantSource: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
15
+ /**
16
+ * Tables also share a trailing source between several prefixed articles:
17
+ * "L. 241-18 et L. 241-18-1 CSS". Each article remains distinct while the
18
+ * acronym supplies their common parent text.
19
+ */
20
+ export declare const referenceDoctrinaleArticlesAvantSource: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
21
+ export declare const referenceDoctrinale: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
@@ -0,0 +1,12 @@
1
+ import { TextAstPosition, TextAstText } from './ast.js';
2
+ import { TextParser } from './parsers.js';
3
+ export type LegalTextAliasInfo = {
4
+ cid: string;
5
+ nature: "CODE";
6
+ title: string;
7
+ };
8
+ export declare const legalTextAliasRegExpSource: string;
9
+ export declare const cgiAnnexInfoByRomanNumber: Record<string, LegalTextAliasInfo>;
10
+ export declare function legalTextInfoFromAlias(value: string): LegalTextAliasInfo | undefined;
11
+ export declare function legalTextFromAlias(value: string, position: TextAstPosition["position"]): (TextAstText & TextAstPosition) | undefined;
12
+ export declare const texteFrancaisAbrege: TextParser<import('./ast.js').TextAst>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tricoteuses/tisseuse",
3
3
  "description": "Find links in/to French legislative documents",
4
- "version": "0.14.1",
4
+ "version": "0.14.2",
5
5
  "keywords": [
6
6
  "Assemblée nationale",
7
7
  "France",