@tricoteuses/tisseuse 0.14.0 → 0.14.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.
- package/README.md +10 -1
- package/dist/{html-BKxA21Bq.js → html-BuWHzy52.js} +2164 -2118
- package/dist/index.js +4 -4
- package/dist/{resolver-dqOM1G7A.js → resolver-CLdkzY2R.js} +2 -20
- package/dist/server-f-legi.js +1 -1
- package/dist/server.js +2 -2
- package/dist/src/lib/extractors/links.european.test.d.ts +1 -0
- package/dist/src/lib/legi/canutes_resolver_europe.test.d.ts +1 -0
- package/dist/src/lib/server/administrative_acts_autocompletion.d.ts +20 -0
- package/dist/src/lib/server/administrative_acts_autocompletion.test.d.ts +1 -0
- package/dist/src/lib/server/ameli_autocompletion.d.ts +17 -0
- package/dist/src/lib/server/ameli_autocompletion.test.d.ts +1 -0
- package/dist/src/lib/server/bofip_autocompletion.d.ts +22 -0
- package/dist/src/lib/server/bofip_autocompletion.test.d.ts +1 -0
- package/dist/src/lib/server/boss_autocompletion.d.ts +18 -0
- package/dist/src/lib/server/boss_autocompletion.test.d.ts +1 -0
- package/dist/src/lib/server/europe_autocompletion.d.ts +18 -0
- package/dist/src/lib/server/europe_autocompletion.test.d.ts +1 -0
- package/dist/src/lib/server/international_treaties_autocompletion.d.ts +16 -0
- package/dist/src/lib/server/international_treaties_autocompletion.test.d.ts +1 -0
- package/dist/src/lib/server/local_acts_autocompletion.d.ts +20 -0
- package/dist/src/lib/server/local_acts_autocompletion.test.d.ts +1 -0
- package/dist/src/lib/server/raa_autocompletion.d.ts +20 -0
- package/dist/src/lib/server/raa_autocompletion.test.d.ts +1 -0
- package/dist/src/lib/server/sync_administrative_act_titles.d.ts +16 -0
- package/dist/src/lib/server/sync_administrative_act_titles.test.d.ts +1 -0
- package/dist/src/lib/server/sync_ameli_titles.d.ts +16 -0
- package/dist/src/lib/server/sync_boss_titles.d.ts +16 -0
- package/dist/src/lib/server/sync_europe_titles.d.ts +16 -0
- package/dist/src/lib/server/sync_international_treaty_titles.d.ts +16 -0
- package/dist/src/lib/server/sync_local_act_titles.d.ts +16 -0
- package/dist/src/lib/server/sync_local_act_titles.test.d.ts +1 -0
- package/dist/src/lib/server/sync_raa_titles.d.ts +16 -0
- package/dist/src/lib/server/typesense_blue_green.d.ts +15 -0
- package/dist/src/lib/server/typesense_blue_green.test.d.ts +1 -0
- package/dist/src/lib/server/typesense_index_lock.d.ts +9 -0
- package/dist/src/lib/server/typesense_index_lock.test.d.ts +1 -0
- package/dist/src/lib/text_parsers/portions.d.ts +2 -2
- package/dist/src/lib/text_parsers/simplifiers.d.ts +1 -1
- package/dist/src/scripts/shared/assemblee_legislature.d.ts +2 -0
- package/dist/src/scripts/shared/assemblee_legislature.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, A as t, At as n, B as r, Ct as i, Dt as a, Et as o, F as s, Ft as c, G as l, H as u, I as d, It as f, J as p, K as m, L as ee, Lt as te, M as ne, Mt as re, N as ie, Nt as ae, O as oe, Ot as se, P as ce, Pt as le, Q as ue, R as de, Rt as fe, St as pe, Tt as me, V as he, W as ge, X as _e, Z as ve, _t as ye, a as be, at as xe, b as Se, bt as Ce, c as we, ct as Te, d as Ee, dt as h, et as De, f as Oe, ft as ke, g as Ae, gt as je, h as Me, ht as Ne, i as g, it as Pe, j as Fe, jt as Ie, k as Le, kt as Re, l as _, lt as ze, m as Be, mt as Ve, n as He, nt as Ue, o as We, ot as Ge, p as Ke, pt as qe, q as Je, r as Ye, rt as Xe, s as Ze, st as Qe, t as $e, tt as et, u as tt, ut as v, wt as nt, xt as rt, yt as it, z as at } from "./html-
|
|
2
|
-
import { $ as ot, A as st, At as ct, B as lt, C as ut, Ct as y, D as b, E as dt, Et as x, F as S, Ft as C, G as ft, H as pt, I as w, J as mt, K as ht, M as gt, Mt as _t, N as vt, Nt as yt, O as bt, P as xt, Pt as St, Q as T, S as Ct, St as wt, T as Tt, Tt as E, W as Et, X as Dt, Y as Ot, Z as kt, _ as D, a as At, b as jt, bt as Mt, c as Nt, ct as Pt, d as Ft, dt as It, f as Lt, ft as Rt, g as zt, gt as O, h as Bt, i as Vt, it as Ht, j as Ut, jt as k, k as Wt, kt as A, l as Gt, lt as Kt, m as qt, o as Jt, ot as Yt, p as Xt, q as Zt, r as Qt, s as $t, t as en, tt as tn, u as nn, ut as rn, v as j, vt as an, w as on, wt as M, x as sn, y as cn, yt as ln, z as un } from "./resolver-
|
|
1
|
+
import { $ as e, A as t, At as n, B as r, Ct as i, Dt as a, Et as o, F as s, Ft as c, G as l, H as u, I as d, It as f, J as p, K as m, L as ee, Lt as te, M as ne, Mt as re, N as ie, Nt as ae, O as oe, Ot as se, P as ce, Pt as le, Q as ue, R as de, Rt as fe, St as pe, Tt as me, V as he, W as ge, X as _e, Z as ve, _t as ye, a as be, at as xe, b as Se, bt as Ce, c as we, ct as Te, d as Ee, dt as h, et as De, f as Oe, ft as ke, g as Ae, gt as je, h as Me, ht as Ne, i as g, it as Pe, j as Fe, jt as Ie, k as Le, kt as Re, l as _, lt as ze, m as Be, mt as Ve, n as He, nt as Ue, o as We, ot as Ge, p as Ke, pt as qe, q as Je, r as Ye, rt as Xe, s as Ze, st as Qe, t as $e, tt as et, u as tt, ut as v, wt as nt, xt as rt, yt as it, z as at } from "./html-BuWHzy52.js";
|
|
2
|
+
import { $ as ot, A as st, At as ct, B as lt, C as ut, Ct as y, D as b, E as dt, Et as x, F as S, Ft as C, G as ft, H as pt, I as w, J as mt, K as ht, M as gt, Mt as _t, N as vt, Nt as yt, O as bt, P as xt, Pt as St, Q as T, S as Ct, St as wt, T as Tt, Tt as E, W as Et, X as Dt, Y as Ot, Z as kt, _ as D, a as At, b as jt, bt as Mt, c as Nt, ct as Pt, d as Ft, dt as It, f as Lt, ft as Rt, g as zt, gt as O, h as Bt, i as Vt, it as Ht, j as Ut, jt as k, k as Wt, kt as A, l as Gt, lt as Kt, m as qt, o as Jt, ot as Yt, p as Xt, q as Zt, r as Qt, s as $t, t as en, tt as tn, u as nn, ut as rn, v as j, vt as an, w as on, wt as M, x as sn, y as cn, yt as ln, z as un } from "./resolver-CLdkzY2R.js";
|
|
3
3
|
//#region ../../node_modules/@tricoteuses/legifrance/dist/legal/index.js
|
|
4
4
|
function dn(e, t) {
|
|
5
5
|
if (e != null) {
|
|
@@ -410,8 +410,8 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
|
|
|
410
410
|
let { url: t, originalTransformation: n } = e;
|
|
411
411
|
if (t === void 0) continue;
|
|
412
412
|
if (n === void 0) throw Error(`Missing originalTransformation attribute in european text link: ${JSON.stringify(e, null, 2)}`);
|
|
413
|
-
let r = w(n, `<a class="lien_texte_european" href="${t}" target
|
|
414
|
-
u = u.slice(0, n.position.start + d) +
|
|
413
|
+
let r = S(u, n, d), i = w(n, `<a class="lien_texte_european" href="${t}"${t.startsWith("/") ? "" : " target=\"_blank\""}>${r}</a>`);
|
|
414
|
+
u = u.slice(0, n.position.start + d) + i + u.slice(n.position.stop + d), d += i.length - (n.position.stop - n.position.start);
|
|
415
415
|
break;
|
|
416
416
|
}
|
|
417
417
|
default: C("Link", e);
|
|
@@ -1482,8 +1482,7 @@ function V(e) {
|
|
|
1482
1482
|
};
|
|
1483
1483
|
}
|
|
1484
1484
|
function H(e) {
|
|
1485
|
-
|
|
1486
|
-
for (let [e, r] of [
|
|
1485
|
+
return L("Simplification des caractères unicodes", [
|
|
1487
1486
|
["À", "À"],
|
|
1488
1487
|
["Â", "Â"],
|
|
1489
1488
|
["Ä", "Ä"],
|
|
@@ -1518,24 +1517,7 @@ function H(e) {
|
|
|
1518
1517
|
[/[‐‑–·]/g, "-"],
|
|
1519
1518
|
[/’/g, "'"],
|
|
1520
1519
|
["İ", "I"]
|
|
1521
|
-
]
|
|
1522
|
-
let i = n.at(-2), a = {
|
|
1523
|
-
inputIndex: i,
|
|
1524
|
-
inputLength: e.length,
|
|
1525
|
-
outputIndex: i,
|
|
1526
|
-
outputLength: r.length
|
|
1527
|
-
};
|
|
1528
|
-
return t.push(a), r;
|
|
1529
|
-
});
|
|
1530
|
-
t.sort((e, t) => e.inputIndex - t.inputIndex);
|
|
1531
|
-
let r = 0;
|
|
1532
|
-
for (let e of t) e.outputIndex = e.inputIndex + r, r += e.outputLength - e.inputLength;
|
|
1533
|
-
return {
|
|
1534
|
-
input: e,
|
|
1535
|
-
output: n,
|
|
1536
|
-
sourceMap: t,
|
|
1537
|
-
title: "Simplification des caractères unicodes"
|
|
1538
|
-
};
|
|
1520
|
+
].map(([e, t]) => z(e, t)))(e);
|
|
1539
1521
|
}
|
|
1540
1522
|
//#endregion
|
|
1541
1523
|
//#region src/lib/text_parsers/texts.ts
|
package/dist/server-f-legi.js
CHANGED
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, D as t, E as n, Et as r, H as i, P as a, S as o, T as s, Tt as c, U as l, Y as u, _ as d, a as f, c as p, ct as m, d as h, ft as g, ht as _, m as ee, mt as v, n as y, o as b, pt as te, q as ne, t as re, v as x, vt as ie, w as ae, x as oe, y as se, z as S } from "./html-
|
|
2
|
-
import { Ct as C, D as ce, E as le, N as ue, Q as de, Tt as w, gt as T, i as fe, j as pe, jt as E, kt as D, n as me, ot as he, pt as ge, r as _e, t as ve, wt as O } from "./resolver-
|
|
1
|
+
import { C as e, D as t, E as n, Et as r, H as i, P as a, S as o, T as s, Tt as c, U as l, Y as u, _ as d, a as f, c as p, ct as m, d as h, ft as g, ht as _, m as ee, mt as v, n as y, o as b, pt as te, q as ne, t as re, v as x, vt as ie, w as ae, x as oe, y as se, z as S } from "./html-BuWHzy52.js";
|
|
2
|
+
import { Ct as C, D as ce, E as le, N as ue, Q as de, Tt as w, gt as T, i as fe, j as pe, jt as E, kt as D, n as me, ot as he, pt as ge, r as _e, t as ve, wt as O } from "./resolver-CLdkzY2R.js";
|
|
3
3
|
import * as ye from "node:crypto";
|
|
4
4
|
import { createHash as k } from "node:crypto";
|
|
5
5
|
import A from "fs-extra";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface AdministrativeActTitle {
|
|
2
|
+
id: string;
|
|
3
|
+
family: string;
|
|
4
|
+
title: string;
|
|
5
|
+
type: string | null;
|
|
6
|
+
reference: string | null;
|
|
7
|
+
nor: string | null;
|
|
8
|
+
version_id: string;
|
|
9
|
+
published_on: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare function administrativeActAutocompleteDocument(row: AdministrativeActTitle): {
|
|
12
|
+
date_day?: number | undefined;
|
|
13
|
+
id: string;
|
|
14
|
+
uid: string;
|
|
15
|
+
text_id: string;
|
|
16
|
+
type: string;
|
|
17
|
+
badge: string;
|
|
18
|
+
autocompletion: string;
|
|
19
|
+
page_path: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface AmeliTitle {
|
|
2
|
+
id: string;
|
|
3
|
+
reference: string;
|
|
4
|
+
title: string;
|
|
5
|
+
version_id: string;
|
|
6
|
+
published_on: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare function ameliAutocompleteDocument(row: AmeliTitle): {
|
|
9
|
+
date_day?: number | undefined;
|
|
10
|
+
id: string;
|
|
11
|
+
uid: string;
|
|
12
|
+
text_id: string;
|
|
13
|
+
type: string;
|
|
14
|
+
badge: string;
|
|
15
|
+
autocompletion: string;
|
|
16
|
+
page_path: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare function loadExistingBofipAutocompleteDocuments({ collectionRecreated, exportDocuments, }: {
|
|
2
|
+
collectionRecreated: boolean;
|
|
3
|
+
exportDocuments: () => Promise<string>;
|
|
4
|
+
}): Promise<Map<string, Record<string, unknown>>>;
|
|
5
|
+
export interface BofipTitle {
|
|
6
|
+
id: string;
|
|
7
|
+
document_legal_id: string;
|
|
8
|
+
kind: string;
|
|
9
|
+
title: string;
|
|
10
|
+
version_id: string;
|
|
11
|
+
publication_date: string | null;
|
|
12
|
+
}
|
|
13
|
+
export declare function bofipAutocompleteDocument(row: BofipTitle): {
|
|
14
|
+
date_day?: number | undefined;
|
|
15
|
+
id: string;
|
|
16
|
+
uid: string;
|
|
17
|
+
text_id: string;
|
|
18
|
+
type: string;
|
|
19
|
+
badge: string;
|
|
20
|
+
autocompletion: string;
|
|
21
|
+
page_path: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface BossTitle {
|
|
2
|
+
id: string;
|
|
3
|
+
kind: string;
|
|
4
|
+
title: string;
|
|
5
|
+
version_id: string;
|
|
6
|
+
effective_from: string | null;
|
|
7
|
+
number: string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function bossAutocompleteDocument(row: BossTitle): {
|
|
10
|
+
date_day?: number | undefined;
|
|
11
|
+
id: string;
|
|
12
|
+
uid: string;
|
|
13
|
+
text_id: string;
|
|
14
|
+
type: string;
|
|
15
|
+
badge: string;
|
|
16
|
+
autocompletion: string;
|
|
17
|
+
page_path: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface EuropeTitle {
|
|
2
|
+
celex_id: string;
|
|
3
|
+
document_date: string | null;
|
|
4
|
+
resource_types: string[];
|
|
5
|
+
title: string;
|
|
6
|
+
title_id: string | null;
|
|
7
|
+
version_id: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function europeAutocompleteDocument(row: EuropeTitle): {
|
|
10
|
+
date_day?: number | undefined;
|
|
11
|
+
id: string;
|
|
12
|
+
uid: string;
|
|
13
|
+
text_id: string;
|
|
14
|
+
type: string;
|
|
15
|
+
badge: string;
|
|
16
|
+
autocompletion: string;
|
|
17
|
+
page_path: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface InternationalTreatyTitle {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
agreement_type: string | null;
|
|
5
|
+
signature_date: string | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function internationalTreatyAutocompleteDocument(row: InternationalTreatyTitle): {
|
|
8
|
+
date_day?: number | undefined;
|
|
9
|
+
id: string;
|
|
10
|
+
uid: string;
|
|
11
|
+
text_id: string;
|
|
12
|
+
type: string;
|
|
13
|
+
badge: string;
|
|
14
|
+
autocompletion: string;
|
|
15
|
+
page_path: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface LocalActTitle {
|
|
2
|
+
id: string;
|
|
3
|
+
source_id: string;
|
|
4
|
+
publisher: string;
|
|
5
|
+
title: string;
|
|
6
|
+
nature: string | null;
|
|
7
|
+
reference: string | null;
|
|
8
|
+
version_id: string;
|
|
9
|
+
published_on: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare function localActAutocompleteDocument(row: LocalActTitle): {
|
|
12
|
+
date_day?: number | undefined;
|
|
13
|
+
id: string;
|
|
14
|
+
uid: string;
|
|
15
|
+
text_id: string;
|
|
16
|
+
type: string;
|
|
17
|
+
badge: string;
|
|
18
|
+
autocompletion: string;
|
|
19
|
+
page_path: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface RaaTitle {
|
|
2
|
+
act_id: string;
|
|
3
|
+
end_page: number;
|
|
4
|
+
published_on: string | null;
|
|
5
|
+
recueil_id: string;
|
|
6
|
+
source_id: string;
|
|
7
|
+
start_page: number;
|
|
8
|
+
title: string;
|
|
9
|
+
version_id: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function raaAutocompleteDocument(row: RaaTitle): {
|
|
12
|
+
date_day?: number | undefined;
|
|
13
|
+
id: string;
|
|
14
|
+
uid: string;
|
|
15
|
+
text_id: string;
|
|
16
|
+
type: string;
|
|
17
|
+
badge: string;
|
|
18
|
+
autocompletion: string;
|
|
19
|
+
page_path: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { administrativeActAutocompleteDocument } from './administrative_acts_autocompletion.js';
|
|
2
|
+
type AdministrativeActTitleDocument = ReturnType<typeof administrativeActAutocompleteDocument>;
|
|
3
|
+
export declare function syncAdministrativeActTitles({ documents, collectionRecreated, exportDocuments, importDocuments, deleteDocument, }: {
|
|
4
|
+
documents: AdministrativeActTitleDocument[];
|
|
5
|
+
collectionRecreated: boolean;
|
|
6
|
+
exportDocuments: () => Promise<string>;
|
|
7
|
+
importDocuments: (documents: AdministrativeActTitleDocument[]) => Promise<Array<{
|
|
8
|
+
success: boolean;
|
|
9
|
+
}>>;
|
|
10
|
+
deleteDocument: (id: string) => Promise<unknown>;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
changed: number;
|
|
13
|
+
removed: number;
|
|
14
|
+
total: number;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ameliAutocompleteDocument } from './ameli_autocompletion.js';
|
|
2
|
+
type AmeliTitleDocument = ReturnType<typeof ameliAutocompleteDocument>;
|
|
3
|
+
export declare function syncAmeliTitles({ documents, collectionRecreated, exportDocuments, importDocuments, deleteDocument, }: {
|
|
4
|
+
documents: AmeliTitleDocument[];
|
|
5
|
+
collectionRecreated: boolean;
|
|
6
|
+
exportDocuments: () => Promise<string>;
|
|
7
|
+
importDocuments: (documents: AmeliTitleDocument[]) => Promise<Array<{
|
|
8
|
+
success: boolean;
|
|
9
|
+
}>>;
|
|
10
|
+
deleteDocument: (id: string) => Promise<unknown>;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
changed: number;
|
|
13
|
+
removed: number;
|
|
14
|
+
total: number;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { bossAutocompleteDocument } from './boss_autocompletion.js';
|
|
2
|
+
type BossTitleDocument = ReturnType<typeof bossAutocompleteDocument>;
|
|
3
|
+
export declare function syncBossTitles({ documents, collectionRecreated, exportDocuments, importDocuments, deleteDocument, }: {
|
|
4
|
+
documents: BossTitleDocument[];
|
|
5
|
+
collectionRecreated: boolean;
|
|
6
|
+
exportDocuments: () => Promise<string>;
|
|
7
|
+
importDocuments: (documents: BossTitleDocument[]) => Promise<Array<{
|
|
8
|
+
success: boolean;
|
|
9
|
+
}>>;
|
|
10
|
+
deleteDocument: (id: string) => Promise<unknown>;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
changed: number;
|
|
13
|
+
removed: number;
|
|
14
|
+
total: number;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { europeAutocompleteDocument } from './europe_autocompletion.js';
|
|
2
|
+
type EuropeTitleDocument = ReturnType<typeof europeAutocompleteDocument>;
|
|
3
|
+
export declare function syncEuropeTitles({ collectionRecreated, deleteDocument, documents, exportDocuments, importDocuments, }: {
|
|
4
|
+
collectionRecreated: boolean;
|
|
5
|
+
deleteDocument: (id: string) => Promise<unknown>;
|
|
6
|
+
documents: EuropeTitleDocument[];
|
|
7
|
+
exportDocuments: () => Promise<string>;
|
|
8
|
+
importDocuments: (documents: EuropeTitleDocument[]) => Promise<Array<{
|
|
9
|
+
success: boolean;
|
|
10
|
+
}>>;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
changed: number;
|
|
13
|
+
removed: number;
|
|
14
|
+
total: number;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { internationalTreatyAutocompleteDocument } from './international_treaties_autocompletion.js';
|
|
2
|
+
type TreatyTitleDocument = ReturnType<typeof internationalTreatyAutocompleteDocument>;
|
|
3
|
+
export declare function syncInternationalTreatyTitles({ documents, collectionRecreated, exportDocuments, importDocuments, deleteDocument, }: {
|
|
4
|
+
documents: TreatyTitleDocument[];
|
|
5
|
+
collectionRecreated: boolean;
|
|
6
|
+
exportDocuments: () => Promise<string>;
|
|
7
|
+
importDocuments: (documents: TreatyTitleDocument[]) => Promise<Array<{
|
|
8
|
+
success: boolean;
|
|
9
|
+
}>>;
|
|
10
|
+
deleteDocument: (id: string) => Promise<unknown>;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
changed: number;
|
|
13
|
+
removed: number;
|
|
14
|
+
total: number;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { localActAutocompleteDocument } from './local_acts_autocompletion.js';
|
|
2
|
+
type LocalActTitleDocument = ReturnType<typeof localActAutocompleteDocument>;
|
|
3
|
+
export declare function syncLocalActTitles({ documents, collectionRecreated, exportDocuments, importDocuments, deleteDocument, }: {
|
|
4
|
+
documents: LocalActTitleDocument[];
|
|
5
|
+
collectionRecreated: boolean;
|
|
6
|
+
exportDocuments: () => Promise<string>;
|
|
7
|
+
importDocuments: (documents: LocalActTitleDocument[]) => Promise<Array<{
|
|
8
|
+
success: boolean;
|
|
9
|
+
}>>;
|
|
10
|
+
deleteDocument: (id: string) => Promise<unknown>;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
changed: number;
|
|
13
|
+
removed: number;
|
|
14
|
+
total: number;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { raaAutocompleteDocument } from './raa_autocompletion.js';
|
|
2
|
+
type Document = ReturnType<typeof raaAutocompleteDocument>;
|
|
3
|
+
export declare function syncRaaTitles({ documents, collectionRecreated, exportDocuments, importDocuments, deleteDocument, }: {
|
|
4
|
+
documents: Document[];
|
|
5
|
+
collectionRecreated: boolean;
|
|
6
|
+
exportDocuments: () => Promise<string>;
|
|
7
|
+
importDocuments: (documents: Document[]) => Promise<Array<{
|
|
8
|
+
success: boolean;
|
|
9
|
+
}>>;
|
|
10
|
+
deleteDocument: (id: string) => Promise<unknown>;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
changed: number;
|
|
13
|
+
removed: number;
|
|
14
|
+
total: number;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const defaultLegalTextsAlias = "textes_juridiques_live";
|
|
2
|
+
export declare const defaultLegalTextsPhysicalPrefix = "textes_juridiques_v";
|
|
3
|
+
export declare function legalTextsAlias(environment?: NodeJS.ProcessEnv): string;
|
|
4
|
+
export declare function legalTextsPhysicalPrefix(environment?: NodeJS.ProcessEnv): string;
|
|
5
|
+
export declare function newLegalTextsPhysicalName({ date, prefix, suffix, }?: {
|
|
6
|
+
date?: Date;
|
|
7
|
+
prefix?: string;
|
|
8
|
+
suffix?: string;
|
|
9
|
+
}): string;
|
|
10
|
+
export declare function obsoleteLegalTextsCollections({ collections, current, prefix, previous, }: {
|
|
11
|
+
collections: string[];
|
|
12
|
+
current: string;
|
|
13
|
+
prefix?: string;
|
|
14
|
+
previous?: string;
|
|
15
|
+
}): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Sql } from 'postgres';
|
|
2
|
+
/**
|
|
3
|
+
* Serialize Typesense writers across repositories through Canutes.
|
|
4
|
+
*
|
|
5
|
+
* A reserved PostgreSQL session owns the advisory lock. The heartbeat keeps
|
|
6
|
+
* roles with an idle-session timeout alive while the actual projection uses
|
|
7
|
+
* the regular pool and Typesense HTTP API.
|
|
8
|
+
*/
|
|
9
|
+
export declare function withTypesenseIndexLock<T>(db: Pick<Sql, "reserve">, task: () => Promise<T>): Promise<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -17,8 +17,8 @@ export declare const numeroPortion: TextParser<import('./ast.js').TextAst>;
|
|
|
17
17
|
*/
|
|
18
18
|
export declare const unePortion: TextParser<import('./ast.js').TextAst>;
|
|
19
19
|
/**
|
|
20
|
-
* Parser pour gérer des formes comme "alinéas 2 et 3"
|
|
21
|
-
*
|
|
20
|
+
* Parser pour gérer des formes comme "alinéas 2 et 3", "alinéas cinq à dix"
|
|
21
|
+
* ou "phrases 1, 2 et 3".
|
|
22
22
|
*/
|
|
23
23
|
export declare const quelquesPortionsNumerotees: TextParser<import('./ast.js').TextAst>;
|
|
24
24
|
export declare const numeroPortionOuUnePortion: TextParser<import('./ast.js').TextAst>;
|
|
@@ -12,4 +12,4 @@ export declare function simplifyHtml({ removeAWithHref, }?: {
|
|
|
12
12
|
}): TransformerNode;
|
|
13
13
|
export declare function simplifyPlainText(input: string): TransformationNode;
|
|
14
14
|
export declare function simplifyText(input: string): TransformationNode;
|
|
15
|
-
export declare function simplifyUnicodeCharacters(input: string):
|
|
15
|
+
export declare function simplifyUnicodeCharacters(input: string): TransformationNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|