@tricoteuses/assemblee 3.2.7 → 3.2.9
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/lib/{amendements-BXPskmEj.js → amendements-DFejZtrB.js} +1 -1
- package/lib/{amendements-DvACs8jj.js → amendements-Xaw7TqV2.js} +5 -5
- package/lib/cleaners.js +3 -3
- package/lib/index.js +69 -58
- package/lib/{loaders-Dd4mhFYb.js → loaders-CXywwmAa.js} +2 -2
- package/lib/loaders.js +1 -1
- package/lib/parsers.js +8 -8
- package/lib/{scrutins-Dgargfhk.js → scrutins-98SJXpIE.js} +391 -390
- package/lib/{index.d.ts → src/index.d.ts} +1 -1
- package/lib/{registries.d.ts → src/registries.d.ts} +8 -8
- package/lib/{schemas → src/schemas}/clean/acteurs_et_organes.d.ts +37 -37
- package/lib/{schemas → src/schemas}/clean/amendements.d.ts +12 -12
- package/lib/{schemas → src/schemas}/clean/debats.d.ts +26 -26
- package/lib/{schemas → src/schemas}/clean/dossiers_legislatifs.d.ts +16 -16
- package/lib/{schemas → src/schemas}/clean/questions.d.ts +122 -122
- package/lib/{schemas → src/schemas}/clean/scrutins.d.ts +2 -2
- package/lib/{schemas → src/schemas}/enriched/acteurs_et_organes.d.ts +2 -2
- package/lib/{schemas → src/schemas}/enriched/amendements.d.ts +9 -9
- package/lib/{schemas → src/schemas}/enriched/dossiers_legislatifs.d.ts +12 -12
- package/lib/{schemas → src/schemas}/enriched/questions.d.ts +108 -108
- package/lib/{schemas → src/schemas}/enriched/scrutins.d.ts +2 -2
- package/lib/{schemas → src/schemas}/raw/acteurs_et_organes.d.ts +132 -132
- package/lib/{schemas → src/schemas}/raw/agendas.d.ts +97 -97
- package/lib/{schemas → src/schemas}/raw/amendements.d.ts +83 -83
- package/lib/{schemas → src/schemas}/raw/debats.d.ts +51 -51
- package/lib/{schemas → src/schemas}/raw/dossiers_legislatifs.d.ts +187 -182
- package/lib/src/schemas/raw/questions.d.ts +983 -0
- package/lib/{schemas → src/schemas}/raw/scrutins.d.ts +164 -164
- package/lib/src/scripts/validate_json.d.ts +1 -0
- package/lib/{urls.d.ts → src/urls.d.ts} +2 -0
- package/lib/src/urls.test.d.ts +1 -0
- package/package.json +20 -18
- package/lib/schemas/raw/questions.d.ts +0 -983
- /package/lib/{api.d.ts → src/api.d.ts} +0 -0
- /package/lib/{cleaners → src/cleaners}/actes_legislatifs.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/acteurs.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/amendements.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/debats.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/documents.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/dossiers_legislatifs.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/index.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/organes.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/questions.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/reunions.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/scrutins.d.ts +0 -0
- /package/lib/{cleaners → src/cleaners}/xml.d.ts +0 -0
- /package/lib/{datasets.d.ts → src/datasets.d.ts} +0 -0
- /package/lib/{dates.d.ts → src/dates.d.ts} +0 -0
- /package/lib/{dossiers_legislatifs.d.ts → src/dossiers_legislatifs.d.ts} +0 -0
- /package/lib/{file_systems.d.ts → src/file_systems.d.ts} +0 -0
- /package/lib/{git.d.ts → src/git.d.ts} +0 -0
- /package/lib/{inserters.d.ts → src/inserters.d.ts} +0 -0
- /package/lib/{legislatures.d.ts → src/legislatures.d.ts} +0 -0
- /package/lib/{loaders.d.ts → src/loaders.d.ts} +0 -0
- /package/lib/{logger.d.ts → src/logger.d.ts} +0 -0
- /package/lib/{numbers.d.ts → src/numbers.d.ts} +0 -0
- /package/lib/{organes.d.ts → src/organes.d.ts} +0 -0
- /package/lib/{parsers → src/parsers}/compte_rendu_commission.d.ts +0 -0
- /package/lib/{parsers → src/parsers}/index.d.ts +0 -0
- /package/lib/{parsers → src/parsers}/recherche_amendements.d.ts +0 -0
- /package/lib/{parsers → src/parsers}/textes_lois.d.ts +0 -0
- /package/lib/{parsers → src/parsers}/videos.d.ts +0 -0
- /package/lib/{schemas → src/schemas}/clean/agendas.d.ts +0 -0
- /package/lib/{schemas → src/schemas}/enriched/agendas.d.ts +0 -0
- /package/lib/{schemas → src/schemas}/enriched/debats.d.ts +0 -0
- /package/lib/{scripts/clean_reorganized_data.d.ts → src/schemas/raw/dossiers_legislatifs.test.d.ts} +0 -0
- /package/lib/{schemas → src/schemas}/zod_errors.d.ts +0 -0
- /package/lib/{scripts/data-download.d.ts → src/scripts/clean_reorganized_data.d.ts} +0 -0
- /package/lib/{scripts/diff_amendements.d.ts → src/scripts/data-download.d.ts} +0 -0
- /package/lib/{scripts/document_dossiers_legislatifs.d.ts → src/scripts/diff_amendements.d.ts} +0 -0
- /package/lib/{scripts/get_today_reunions.d.ts → src/scripts/document_dossiers_legislatifs.d.ts} +0 -0
- /package/lib/{scripts/merge_scrutins.d.ts → src/scripts/get_today_reunions.d.ts} +0 -0
- /package/lib/{scripts/reorganize_data.d.ts → src/scripts/merge_scrutins.d.ts} +0 -0
- /package/lib/{scripts → src/scripts}/raw_types_from_amendements.d.ts +0 -0
- /package/lib/{scripts/retrieve_pending_amendments.d.ts → src/scripts/reorganize_data.d.ts} +0 -0
- /package/lib/{scripts → src/scripts}/retrieve_deputes_photos.d.ts +0 -0
- /package/lib/{scripts → src/scripts}/retrieve_documents.d.ts +0 -0
- /package/lib/{scripts → src/scripts}/retrieve_open_data.d.ts +0 -0
- /package/lib/{scripts/retrieve_senateurs_photos.d.ts → src/scripts/retrieve_pending_amendments.d.ts} +0 -0
- /package/lib/{scripts/test_iter_load.d.ts → src/scripts/retrieve_senateurs_photos.d.ts} +0 -0
- /package/lib/{scripts → src/scripts}/retrieve_videos.d.ts +0 -0
- /package/lib/{scripts → src/scripts}/shared/cli_helpers.d.ts +0 -0
- /package/lib/{scripts → src/scripts}/shared/photos.d.ts +0 -0
- /package/lib/{scripts → src/scripts}/shared/utils.d.ts +0 -0
- /package/lib/{scripts/validate_json.d.ts → src/scripts/test_iter_load.d.ts} +0 -0
- /package/lib/{scripts → src/scripts}/test_load.d.ts +0 -0
- /package/lib/{scripts → src/scripts}/test_load_big_files.d.ts +0 -0
- /package/lib/{strings.d.ts → src/strings.d.ts} +0 -0
- /package/lib/{uids.d.ts → src/uids.d.ts} +0 -0
|
@@ -664,7 +664,7 @@ var x = {
|
|
|
664
664
|
night: "night"
|
|
665
665
|
}, be = {
|
|
666
666
|
G: function(e, t, n) {
|
|
667
|
-
let r = e.getFullYear() > 0
|
|
667
|
+
let r = +(e.getFullYear() > 0);
|
|
668
668
|
switch (t) {
|
|
669
669
|
case "G":
|
|
670
670
|
case "GG":
|
|
@@ -1564,7 +1564,7 @@ function $e(e) {
|
|
|
1564
1564
|
return typeof e == "function" && e.prototype?.constructor === e;
|
|
1565
1565
|
}
|
|
1566
1566
|
//#endregion
|
|
1567
|
-
//#region \0@oxc-project+runtime@0.
|
|
1567
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
1568
1568
|
function O(e) {
|
|
1569
1569
|
"@babel/helpers - typeof";
|
|
1570
1570
|
return O = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -1574,7 +1574,7 @@ function O(e) {
|
|
|
1574
1574
|
}, O(e);
|
|
1575
1575
|
}
|
|
1576
1576
|
//#endregion
|
|
1577
|
-
//#region \0@oxc-project+runtime@0.
|
|
1577
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
1578
1578
|
function et(e, t) {
|
|
1579
1579
|
if (O(e) != "object" || !e) return e;
|
|
1580
1580
|
var n = e[Symbol.toPrimitive];
|
|
@@ -1586,13 +1586,13 @@ function et(e, t) {
|
|
|
1586
1586
|
return (t === "string" ? String : Number)(e);
|
|
1587
1587
|
}
|
|
1588
1588
|
//#endregion
|
|
1589
|
-
//#region \0@oxc-project+runtime@0.
|
|
1589
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
1590
1590
|
function tt(e) {
|
|
1591
1591
|
var t = et(e, "string");
|
|
1592
1592
|
return O(t) == "symbol" ? t : t + "";
|
|
1593
1593
|
}
|
|
1594
1594
|
//#endregion
|
|
1595
|
-
//#region \0@oxc-project+runtime@0.
|
|
1595
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
1596
1596
|
function k(e, t, n) {
|
|
1597
1597
|
return (t = tt(t)) in e ? Object.defineProperty(e, t, {
|
|
1598
1598
|
value: n,
|
package/lib/cleaners.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tt as e, Xn as t, rr as n } from "./scrutins-
|
|
2
|
-
import { i as r, n as i, r as a, t as o } from "./amendements-
|
|
3
|
-
import "./loaders-
|
|
1
|
+
import { Tt as e, Xn as t, rr as n } from "./scrutins-98SJXpIE.js";
|
|
2
|
+
import { i as r, n as i, r as a, t as o } from "./amendements-DFejZtrB.js";
|
|
3
|
+
import "./loaders-CXywwmAa.js";
|
|
4
4
|
import s from "node:assert";
|
|
5
5
|
import "fs-extra";
|
|
6
6
|
import "node:path";
|
package/lib/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as ee, L as te, M as ne, N as re, O as ie, P as ae, R as oe, S as se, T as ce, U as le, V as ue, W as de, _ as fe, a as pe, at as me, b as he, c as ge, ct as _e, d as ve, dt as ye, f as
|
|
2
|
-
import { $ as
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as ee, L as te, M as ne, N as re, O as ie, P as ae, R as oe, S as se, T as ce, U as le, V as ue, W as de, _ as fe, a as pe, at as me, b as he, c as ge, ct as _e, d as ve, dt as ye, f as u, ft as d, g as f, h as p, ht as m, i as h, it as g, j as _, k as v, l as y, lt as b, m as x, mt as S, n as C, o as w, ot as T, p as E, pt as D, q as O, r as k, s as A, st as j, t as M, u as N, ut as P, v as be, w as xe, x as Se, y as Ce, z as we } from "./amendements-Xaw7TqV2.js";
|
|
2
|
+
import { $ as Te, $n as Ee, $t as De, A as Oe, An as ke, Ar as Ae, At as je, B as Me, Bn as Ne, Br as Pe, Bt as Fe, C as Ie, Cn as Le, Cr as Re, Ct as ze, D as Be, Dn as Ve, Dr as He, E as Ue, En as We, Er as Ge, Et as Ke, F as qe, Fn as Je, Fr as Ye, Ft as Xe, G as Ze, Gn as Qe, Gr as $e, Gt as et, H as tt, Hn as nt, Hr as rt, Ht as it, I as at, In as ot, Ir as st, It as ct, J as lt, Jn as ut, Jr as dt, Jt as ft, K as pt, Kn as mt, Kr as ht, Kt as gt, L as _t, Ln as vt, Lr as yt, Lt as bt, M as xt, Mn as St, Mr as Ct, Mt as wt, N as Tt, Nn as Et, Nr as Dt, Nt as Ot, On as kt, Or as At, Ot as jt, P as Mt, Pn as Nt, Pr as Pt, Pt as Ft, Qn as It, Qt as Lt, R as Rt, Rn as zt, Rr as Bt, S as Vt, Sn as Ht, Sr as Ut, St as Wt, T as Gt, Tn as Kt, Tr as qt, Tt as Jt, U as Yt, Un as Xt, Ur as Zt, Ut as Qt, V as $t, Vn as en, Vr as tn, Vt as nn, W as rn, Wn as an, Wr as on, Wt as sn, X as cn, Xt as ln, Y as un, Yn as dn, Yr as fn, Yt as pn, Z as mn, Zn as hn, Zr as gn, Zt as _n, _ as vn, _n as yn, _r as bn, _t as xn, a as F, an as Sn, ar as Cn, at as wn, b as Tn, bn as En, br as Dn, bt as On, c as kn, cn as An, cr as jn, ct as Mn, d as Nn, dn as Pn, dr as Fn, dt as In, en as Ln, er as Rn, et as zn, f as Bn, fn as Vn, fr as Hn, ft as Un, g as Wn, gn as Gn, gr as Kn, gt as qn, h as Jn, hn as Yn, hr as Xn, ht as Zn, i as Qn, ir as $n, it as er, j as tr, jn as nr, jr as rr, jt as ir, k as ar, kn as or, kr as sr, kt as cr, ln as lr, lr as ur, lt as dr, m as fr, mn as pr, mr, mt as hr, n as gr, nn as _r, nr as vr, nt as yr, o as br, on as xr, or as Sr, ot as Cr, p as wr, pn as Tr, pr as Er, pt as Dr, q as Or, qn as kr, qr as Ar, qt as jr, r as Mr, rn as Nr, rt as Pr, s as Fr, sn as Ir, sr as Lr, st as Rr, t as zr, tn as Br, tr as Vr, tt as Hr, u as Ur, un as Wr, ur as Gr, ut as Kr, v as qr, vn as Jr, vr as Yr, vt as Xr, w as Zr, wn as Qr, wr as $r, wt as ei, x as ti, xn as ni, xr as ri, xt as ii, y as ai, yn as oi, yr as si, yt as ci, z as li, zn as ui, zr as di, zt as fi } from "./scrutins-98SJXpIE.js";
|
|
3
3
|
//#region src/api.ts
|
|
4
|
-
var
|
|
4
|
+
var I = /* @__PURE__ */ function(e) {
|
|
5
5
|
return e.Amendements = "amendements", e;
|
|
6
|
-
}({}),
|
|
6
|
+
}({}), pi = Object.values(I), L = /* @__PURE__ */ function(e) {
|
|
7
7
|
return e.Acte_organe = "acte.organe", e.Acte_provenance = "acte.provenance", e.Acte_rapporteurs_acteur = "acte.rapporteurs.acteur", e.Acte_reunion = "acte.reunion", e.Acte_texteAdopte = "acte.texteAdopte", e.Acte_texteAssocie = "acte.texteAssocie", e.Acte_textesAssocies_texteAssocie = "acte.textesAssocies.texteAssocie", e.Acte_votes = "acte.votes", e.Acteur_mandats_organes = "acteur.mandats.organes", e.Amendement_signataires_auteur_acteur = "amendement.signataires.auteur.acteur", e.Amendement_signataires_auteur_auteurRapporteurOrgane = "amendement.signataires.auteur.auteurRapporteurOrgane", e.Amendement_signataires_auteur_gouvernement = "amendement.signataires.auteur.gouvernement", e.Amendement_signataires_auteur_groupePolitique = "amendement.signataires.auteur.groupePolitique", e.Amendement_signataires_cosignataires = "amendement.signataires.cosignataires", e.Amendement_texteLegislatif = "amendement.texteLegislatif", e.Document_auteurs_acteur_acteur = "document.auteurs.acteur.acteur", e.Document_auteurs_organe = "document.auteurs.organe", e.Document_dossier = "document.dossier", e.Dossier_initiateur_acteurs_acteur = "dossier.initiateur.acteurs.acteur", e.Dossier_initiateur_organe = "dossier.initiateur.organe", e.Organe_organeParent = "organe.organeParent", e.Organe_organePrecedent = "organe.organePrecedent", e.Reunion_demandeurs_acteurs_acteur = "reunion.demandeurs.acteurs.acteur", e.Reunion_demandeurs_organe_organe = "reunion.demandeurs.organe.organe", e.Reunion_organeReuni = "reunion.organeReuni", e.Reunion_participants_participantsInternes_acteur = "reunion.participants.participantsInternes.acteur", e.Scrutin_miseAuPoint = "scrutin.miseAuPoint", e.Scrutin_organe = "scrutin.organe", e.Scrutin_ventilationVotes_groupes_organe = "scrutin.ventilationVotes.groupes.organe", e;
|
|
8
|
-
}({}),
|
|
8
|
+
}({}), mi = Object.values(L);
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/strings.ts
|
|
11
|
-
function
|
|
11
|
+
function hi(e) {
|
|
12
12
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function R(e) {
|
|
15
15
|
return e.charAt(0).toLowerCase() + e.slice(1);
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/dossiers_legislatifs.ts
|
|
19
|
-
var
|
|
19
|
+
var gi = /* @__PURE__ */ function(e) {
|
|
20
20
|
return e.Failure = "FAILURE", e.Success = "SUCCESS", e;
|
|
21
|
-
}({}),
|
|
21
|
+
}({}), _i = /* @__PURE__ */ function(e) {
|
|
22
22
|
return e.Failure = "FAILURE", e.InProgress = "IN_PROGRESS", e.Success = "SUCCESS", e;
|
|
23
23
|
}({});
|
|
24
24
|
function vi(e) {
|
|
@@ -37,21 +37,21 @@ function z(e) {
|
|
|
37
37
|
case "Conforme":
|
|
38
38
|
case "considérée comme définitive en application de l'article 151-7 du Règlement":
|
|
39
39
|
case "considérée comme définitive en application de l'article 151-9 du Règlement":
|
|
40
|
-
case "Motion adopté(e)": return
|
|
40
|
+
case "Motion adopté(e)": return "SUCCESS";
|
|
41
41
|
case "Désaccord":
|
|
42
42
|
case "Motion rejeté(e)":
|
|
43
43
|
case "rejeté":
|
|
44
|
-
case "rejetée": return
|
|
44
|
+
case "rejetée": return "FAILURE";
|
|
45
45
|
case "adopté avec modifications":
|
|
46
46
|
case "adoptée avec modifications":
|
|
47
47
|
case "De droit (article 61 alinéa 1 de la Constitution)":
|
|
48
48
|
case "modifié":
|
|
49
49
|
case "modifiée":
|
|
50
50
|
case "Motion de censure 49-2":
|
|
51
|
-
case "Partiellement conforme": return
|
|
51
|
+
case "Partiellement conforme": return "IN_PROGRESS";
|
|
52
52
|
case "Soixante députés au moins":
|
|
53
53
|
case "Soixante sénateurs au moins": return "CONSTITU";
|
|
54
|
-
default: return
|
|
54
|
+
default: return "IN_PROGRESS";
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
function B(e, t) {
|
|
@@ -61,14 +61,14 @@ function B(e, t) {
|
|
|
61
61
|
let e = n.statutAdoption.libelle;
|
|
62
62
|
return e === void 0 ? null : {
|
|
63
63
|
currentStatus: z(e),
|
|
64
|
-
label:
|
|
64
|
+
label: R(e)
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
case "ConclusionEtapeCC_Type": {
|
|
68
68
|
let e = n.statutConclusion.libelle;
|
|
69
69
|
return e === void 0 ? null : {
|
|
70
70
|
currentStatus: z(e),
|
|
71
|
-
label:
|
|
71
|
+
label: R(e)
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
case "Decision_Type": {
|
|
@@ -77,36 +77,36 @@ function B(e, t) {
|
|
|
77
77
|
let r = z(t), i;
|
|
78
78
|
switch (e.procedureParlementaire.code) {
|
|
79
79
|
case "PROCEDURE_PARLEMENTAIRE_2":
|
|
80
|
-
["rejeté", "rejetée"].includes(t) && e.actesLegislatifs !== void 0 && e.actesLegislatifs.length === 1 && (i =
|
|
80
|
+
["rejeté", "rejetée"].includes(t) && e.actesLegislatifs !== void 0 && e.actesLegislatifs.length === 1 && (i = "FAILURE");
|
|
81
81
|
break;
|
|
82
82
|
case "PROCEDURE_PARLEMENTAIRE_8":
|
|
83
83
|
case "PROCEDURE_PARLEMENTAIRE_22":
|
|
84
|
-
r ===
|
|
84
|
+
r === "SUCCESS" ? i = "SUCCESS" : r === "FAILURE" && (i = "FAILURE");
|
|
85
85
|
break;
|
|
86
86
|
default: break;
|
|
87
87
|
}
|
|
88
88
|
return {
|
|
89
89
|
currentStatus: r,
|
|
90
90
|
finalStatus: i,
|
|
91
|
-
label:
|
|
91
|
+
label: R(t)
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
case "DecisionMotionCensure_Type": return r = n.decision.libelle, r === void 0 ? null : {
|
|
95
95
|
currentStatus: z(r),
|
|
96
|
-
finalStatus: e.procedureParlementaire.code === "PROCEDURE_PARLEMENTAIRE_13" && r === "Motion rejeté(e)" ?
|
|
97
|
-
label:
|
|
96
|
+
finalStatus: e.procedureParlementaire.code === "PROCEDURE_PARLEMENTAIRE_13" && r === "Motion rejeté(e)" ? "FAILURE" : "SUCCESS",
|
|
97
|
+
label: R(r)
|
|
98
98
|
};
|
|
99
99
|
case "DecisionRecevabiliteBureau_Type": return r = n.decision.libelle, r === void 0 ? null : {
|
|
100
100
|
currentStatus: z(r),
|
|
101
|
-
label:
|
|
101
|
+
label: R(r)
|
|
102
102
|
};
|
|
103
103
|
case "DeclarationGouvernement_Type": return r = n.typeDeclaration.libelle, r === void 0 ? null : {
|
|
104
104
|
currentStatus: z(r),
|
|
105
|
-
label:
|
|
105
|
+
label: R(r)
|
|
106
106
|
};
|
|
107
107
|
case "DepotMotionCensure_Type": return r = n.typeMotionCensure.libelle, r === void 0 ? null : {
|
|
108
108
|
currentStatus: z(r),
|
|
109
|
-
label:
|
|
109
|
+
label: R(r)
|
|
110
110
|
};
|
|
111
111
|
case "DepotRapport_Type": return [
|
|
112
112
|
"DossierCommissionEnquete_Type",
|
|
@@ -114,26 +114,26 @@ function B(e, t) {
|
|
|
114
114
|
"DossierMissionInformation_Type"
|
|
115
115
|
].includes(e.xsiType) ? {
|
|
116
116
|
currentStatus: t[0].organe.codeType,
|
|
117
|
-
finalStatus:
|
|
117
|
+
finalStatus: "SUCCESS",
|
|
118
118
|
label: "rapport déposé"
|
|
119
119
|
} : null;
|
|
120
120
|
case "MotionProcedure_Type": return r = n.typeMotion.libelle, r === void 0 ? null : {
|
|
121
121
|
currentStatus: z(r),
|
|
122
|
-
label:
|
|
122
|
+
label: R(r)
|
|
123
123
|
};
|
|
124
124
|
case "Promulgation_Type": return {
|
|
125
|
-
currentStatus:
|
|
126
|
-
finalStatus:
|
|
125
|
+
currentStatus: "SUCCESS",
|
|
126
|
+
finalStatus: "SUCCESS",
|
|
127
127
|
label: "promulgué"
|
|
128
128
|
};
|
|
129
129
|
case "RetraitInitiative_Type": return {
|
|
130
|
-
currentStatus:
|
|
131
|
-
finalStatus:
|
|
130
|
+
currentStatus: "FAILURE",
|
|
131
|
+
finalStatus: "FAILURE",
|
|
132
132
|
label: "retiré"
|
|
133
133
|
};
|
|
134
134
|
case "SaisineConseilConstit_Type": return r = n.casSaisine.libelle, r === void 0 ? null : {
|
|
135
135
|
currentStatus: z(r),
|
|
136
|
-
label:
|
|
136
|
+
label: R(r)
|
|
137
137
|
};
|
|
138
138
|
default: return null;
|
|
139
139
|
}
|
|
@@ -148,7 +148,7 @@ function V(e, t, n) {
|
|
|
148
148
|
function yi(e) {
|
|
149
149
|
let t = V(e, [], e.actesLegislatifs);
|
|
150
150
|
return t === null ? {
|
|
151
|
-
currentStatus:
|
|
151
|
+
currentStatus: "IN_PROGRESS",
|
|
152
152
|
label: "en cours"
|
|
153
153
|
} : t;
|
|
154
154
|
}
|
|
@@ -380,9 +380,9 @@ function xi(e) {
|
|
|
380
380
|
}
|
|
381
381
|
//#endregion
|
|
382
382
|
//#region src/urls.ts
|
|
383
|
-
var
|
|
383
|
+
var Si = /* @__PURE__ */ function(e) {
|
|
384
384
|
return e.Html = "html", e.Pdf = "pdf", e.RawHtml = "raw-html", e;
|
|
385
|
-
}({}),
|
|
385
|
+
}({}), Q = /^AMANR\d+L(?<legislature>\d+)PO\d+[A-Z]+(?<texteNumero>\d+)P\d+D\d+N(?<numero>\d+)$/, Ci = {
|
|
386
386
|
ACIN: {
|
|
387
387
|
directory: "projets",
|
|
388
388
|
prefix: "pl",
|
|
@@ -494,71 +494,82 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
494
494
|
suffix: "-a0"
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
|
-
function
|
|
497
|
+
function wi(e) {
|
|
498
498
|
switch (e) {
|
|
499
|
-
case
|
|
500
|
-
case
|
|
501
|
-
case
|
|
499
|
+
case "html": return ".asp";
|
|
500
|
+
case "pdf": return ".pdf";
|
|
501
|
+
case "raw-html": return ".asp";
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function*
|
|
505
|
-
if (t === void 0 || t ===
|
|
504
|
+
function* Ti(e, t = void 0, n = !1) {
|
|
505
|
+
if (t === void 0 || t === "raw-html") {
|
|
506
506
|
yield {
|
|
507
|
-
format:
|
|
507
|
+
format: "raw-html",
|
|
508
508
|
type: "dyn-opendata",
|
|
509
509
|
url: `https://www.assemblee-nationale.fr/dyn/opendata/${e.uid}.html`
|
|
510
510
|
}, yield {
|
|
511
|
-
format:
|
|
511
|
+
format: "raw-html",
|
|
512
512
|
type: "dyn-docs",
|
|
513
513
|
url: `https://www.assemblee-nationale.fr/dyn/docs/${e.uid}.raw`
|
|
514
514
|
};
|
|
515
|
-
let t = $(e,
|
|
515
|
+
let t = $(e, "raw-html", n);
|
|
516
516
|
t !== null && (yield {
|
|
517
|
-
format:
|
|
517
|
+
format: "raw-html",
|
|
518
518
|
type: t.directory.replaceAll("/", "-"),
|
|
519
519
|
url: t.url
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
|
-
if (t === void 0 || t ===
|
|
523
|
-
let t = $(e,
|
|
522
|
+
if (t === void 0 || t === "html") {
|
|
523
|
+
let t = $(e, "html", n);
|
|
524
524
|
t !== null && (yield {
|
|
525
|
-
format:
|
|
525
|
+
format: "html",
|
|
526
526
|
type: t.directory.replaceAll("/", "-"),
|
|
527
527
|
url: t.url
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
|
-
if (t === void 0 || t ===
|
|
530
|
+
if (t === void 0 || t === "pdf") {
|
|
531
531
|
yield {
|
|
532
|
-
format:
|
|
532
|
+
format: "raw-html",
|
|
533
533
|
type: "dyn-opendata",
|
|
534
534
|
url: `https://www.assemblee-nationale.fr/dyn/opendata/${e.uid}.html`
|
|
535
535
|
}, yield {
|
|
536
|
-
format:
|
|
536
|
+
format: "pdf",
|
|
537
537
|
type: "dyn-docs",
|
|
538
538
|
url: `https://www.assemblee-nationale.fr/dyn/docs/${e.uid}.pdf`
|
|
539
539
|
};
|
|
540
|
-
let t = $(e,
|
|
540
|
+
let t = $(e, "pdf");
|
|
541
541
|
t !== null && (yield {
|
|
542
|
-
format:
|
|
542
|
+
format: "pdf",
|
|
543
543
|
type: t.directory.replaceAll("/", "-"),
|
|
544
544
|
url: t.url
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Ei(e, t) {
|
|
549
549
|
let n = $(e, t);
|
|
550
550
|
return n === null ? null : n.url;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Di(e, t) {
|
|
553
|
+
if (t === "json" || t === "xml") return Q.test(e) ? `https://www.assemblee-nationale.fr/dyn/opendata/${e}.${t}` : null;
|
|
554
|
+
let n = e.match(Q);
|
|
555
|
+
if (n?.groups === void 0) return null;
|
|
556
|
+
let { legislature: r, texteNumero: i, numero: a } = n.groups, o = `https://www.assemblee-nationale.fr/dyn/${Number.parseInt(r, 10)}/amendements/${i}/AN/${Number.parseInt(a, 10)}`;
|
|
557
|
+
switch (t) {
|
|
558
|
+
case "html": return o;
|
|
559
|
+
case "pdf":
|
|
560
|
+
case "rtf": return `${o}.${t}`;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
function Oi(e) {
|
|
553
564
|
let t = /^VTANR([0-9]+)L([0-9]+)V([0-9]+)$/.exec(e.uid);
|
|
554
565
|
return t === null ? (console.log(`Unable to generate URL from scrutin with unexpected UID: "${e.uid}"`), null) : `http://www2.assemblee-nationale.fr/scrutins/detail/(legislature)/${t[2]}/(num)/${t[3]}`;
|
|
555
566
|
}
|
|
556
567
|
function $(e, t, n = !1) {
|
|
557
|
-
let r =
|
|
568
|
+
let r = wi(t), i = /^(.{4})([ANS]*)(R[0-9])([LS]*)([0-9]*)([BTACP]*)(.*)$/.exec(e.uid);
|
|
558
569
|
if (i === null) return n && console.log(`Unable to generate URL from document or division with unexpected UID: "${e.uid}"`), null;
|
|
559
570
|
if (i[2] === "SN") return n && console.log(`Unable to generate URL for document or division in Sénat. UID: "${e.uid}"`), null;
|
|
560
571
|
let a = i[5], o = i[7];
|
|
561
|
-
if (t ===
|
|
572
|
+
if (t === "raw-html") return {
|
|
562
573
|
directory: "textes",
|
|
563
574
|
url: `https://www.assemblee-nationale.fr/${a}/textes/${o}${r}`
|
|
564
575
|
};
|
|
@@ -568,13 +579,13 @@ function $(e, t, n = !1) {
|
|
|
568
579
|
TAP: "TADO"
|
|
569
580
|
}[i[6]] || i[1];
|
|
570
581
|
e.classification !== void 0 && e.classification.sousType !== void 0 && e.classification.sousType.code === "COMPA" && (o = o.replace(/-COMPA/, "-aCOMPA")), s == "AVCE" && (s = `AVCE${e.classification.famille?.classe.code}`);
|
|
571
|
-
let c =
|
|
582
|
+
let c = Ci[s];
|
|
572
583
|
if (c === void 0) return n && console.log(`Unable to generate URL from document or division of UID "${e.uid}" and type "${s}"`), null;
|
|
573
|
-
let l = t ===
|
|
584
|
+
let l = t === "pdf" ? `pdf/${c.directory}` : c.directory;
|
|
574
585
|
return {
|
|
575
586
|
directory: l,
|
|
576
587
|
url: `https://www.assemblee-nationale.fr/${a}/${l}/${c.prefix}${o}${c.suffix}${r}`
|
|
577
588
|
};
|
|
578
589
|
}
|
|
579
590
|
//#endregion
|
|
580
|
-
export { te as AccordGouvernementDepotHorsDelaiSchema,
|
|
591
|
+
export { te as AccordGouvernementDepotHorsDelaiSchema, at as ActeLegislatifSchema, Nr as ActeurSchema, oe as ActionSchema, Sn as AdresseSchema, M as AlineaSchema, C as AmendementSchema, _t as AmendementsCommissionSchema, k as AmendementsConvert, h as AmendementsSchema, Rt as AmendementsSeanceSchema, vn as AnalyseSchema, li as AuteurActeurSchema, pe as AuteurAmendementSchema, qr as AuteurQuestionSchema, Me as AuteurSchema, w as AvantAppelSchema, St as CausePositionVoteSchema, $t as ChronoDocumentSchema, fi as ChronoSchema, xr as CibleSchema, At as CivSchema, tt as ClassificationSchema, ai as ClotureSchema, Yt as CoSignataireElementSchema, rn as CoSignataireOrganeSchema, Vr as CodeActeSchema, we as CodeEtatSchema, sr as CodeNatureDepSchema, Et as CodeSortScrutinSchema, Ae as CodeTypeOrganeSchema, Nt as CodeTypeVoteSchema, Ir as CollaborateurSchema, Jt as CompteRenduSchema, A as ContenuAmendementSchema, ge as ContenuAuteurSchema, Ke as ContenuSchema, Ze as ContributionInternauteSchema, y as CorpsAmendementSchema, pt as CorrectionSchema, Or as CycleDeVieDocumentSchema, Fe as CycleDeVieReunionSchema, N as CycleDeVieSchema, $n as DecisionSchema, zr as DecompteNominatifSchema, gr as DecompteVoixSchema, nn as DemandeurActeurSchema, it as DemandeurOrganeSchema, Mr as DemandeurSchema, Qt as DemandeursSchema, rr as DepNaisSchema, An as DepartementSchema, lr as DeportSchema, lt as DepotAmendementsSchema, ve as DiscussionSchema, E as DispositifAmdtCreditPLFRSchema, u as DispositifAmdtCreditPLFSchema, un as DivisionSchema, t as DivisionTypeSchema, cn as DocumentSchema, Si as DocumentUrlFormat, Qn as DossierLegislatifObjetSchema, mn as DossierParlementaireSchema, F as DysfonctionnementSchema, Wr as ElectionSchema, p as EtatAmendementSchema, Pn as EtatCivilSchema, f as EtatDesTraitementsSchema, Sr as EtatSchema, Te as EtudePlfSchema, I as Facet, zn as FamCodeEtLibelleSchema, Ct as FamSocProEnumSchema, Hr as FamilleSchema, jt as FinSeanceSchema, gi as FinalStatus, L as Follow, Lr as FormatReunionSchema, yr as FusionDossierSchema, Tn as GroupeSchema, sn as IdentPersonneAuditionneeSchema, Vn as IdentSchema, ti as IdentifiantSchema, et as IdentifiantsSchema, fe as IdentificationSchema, Vt as IdentiteAuteurQuestionSchema, Pr as ImprimerieSchema, Ie as IndexationAnSchema, er as IndexationSchema, Zr as InfoJoQuestionSchema, wn as InfoJoSchema, Cr as InfoJoceSchema, Tr as InfoNaissanceSchema, pr as InfosQualiteSchema, gt as InfosReunionsInternationaleSchema, Rr as InitiateurActeurSchema, Mn as InitiateurSchema, dr as LibelleActeSchema, Dt as LibelleSchema, Je as LibelleSortScrutinSchema, ot as LibelleTypeVoteSchema, jr as LieuReunionSchema, vt as LieuVoteSchema, Ce as LigneCreditPLFRSchema, be as LigneCreditPLFSchema, he as LoiReferenceSchema, Yn as MandatSchema, Pt as MandatXsiTypeSchema, Gn as MandatureSchema, cr as MetadonneesSchema, Gt as MinAttribElementSchema, Ue as MinAttribsSchema, br as MiseAuPointSchema, Kr as MissionMinefiSchema, Se as MissionViseeSchema, zt as ModePublicationDesVotesSchema, jn as NatureTravauxOdjSchema, In as NoticeSchema, Fr as ObjetVoteSchema, ft as OdjSchema, je as OrateurElementSchema, ir as OrateursSchema, Jr as OrganeLieuSchema, yn as OrganeSchema, Ye as OrganeXsiTypeSchema, pn as ParticipantInterneSchema, ln as ParticipantsSchema, _n as PersonneAuditionneeSchema, Lt as PersonneAuditionneeXsiTypeSchema, oi as PhotoSchema, De as PointOdjSchema, ur as PointOdjXsiTypeSchema, wt as PointSchema, x as PointeurFragmentTexteDivisionSchema, se as PointeurFragmentTexteSchema, ui as PositionMajoritaireSchema, st as PositionPolitiqueSchema, Gr as PresenceSchema, Un as ProcedureParlementaireSchema, Fn as ProcedureSchema, En as ProfessionSchema, n as ProgrammePlfSchema, Hn as QuantiemeSchema, Ot as QuantiemesSchema, Be as QuestionSchema, hn as QuestionXsiTypeSchema, Dr as RapporteurSchema, yt as RegimeSchema, ni as RegionSchema, Bt as RegionTypeSchema, ar as RenouvellementSchema, Oe as RenouvellementsSchema, xe as RepresentationSchema, Ln as ReunionSchema, Er as ReunionXsiTypeSchema, kn as ScrutinSchema, Ht as SecretariatSchema, tr as SignalementSchema, ce as SignatairesSchema, Le as SocProcInseeSchema, Xe as SommaireElementSchema, Ft as SommaireSchema, Ur as SortScrutinSchema, i as SousEtatAmendementSchema, hr as SousTypeSchema, _i as StatusOnly, r as StatutRepresentationSchema, Qr as SuppleantSchema, Nn as SyntheseVoteSchema, Zn as TexteAssocieSchema, qn as TexteEuropeenSchema, xn as TexteExterneAssocieSchema, ie as TexteLegislatifSchema, xt as TexteQuestionSchema, ct as TexteSchema, Tt as TextesQuestionSchema, Mt as TextesReponseSchema, Xr as ThemeSchema, ci as ThemesSchema, On as TitreDossierSchema, bt as TitreStructSchema, ii as TitresSchema, v as TotalSchema, ue as TypeAuteurSchema, Ne as TypeMajoriteSchema, e as TypeMimeSchema, mr as TypePointOdjSchema, s as TypePositionSchema, It as TypeQuestionSchema, Xn as TypeReunionSchema, Bn as TypeVoteSchema, Kn as UidXsiTypeSchema, fr as VentilationVotesGroupeSchema, wr as VentilationVotesSchema, Kt as ViMoDeSchema, Jn as VotantSchema, Wn as VoteSchema, le as accordGouvernementDepotHorsDelaiOptions, Wt as acteLegislatifXsiTypeOptions, de as actionOptions, pi as allFacets, mi as allFollows, _ as avantAApresOptions, hi as capitalizeFirstLetter, en as causePositionVoteOptions, di as civOptions, vr as codeActeOptions, o as codeEtatOptions, Pe as codeNatureDepOptions, nt as codeSortScrutinOptions, tn as codeTypeOrganeOptions, Xt as codeTypeVoteOptions, vi as commissionFondUidFromDossier, We as compteRenduUidRegex, g as dateFromNullableDateOrIsoString, me as dateFromYearMonthDayTimezoneString, Cn as decisionOptions, rt as depNaisOptions, T as displayDateFromLocalIsoString, ee as divisionTypeOptions, Ve as documentUidRegex, ze as documentXsiTypeOptions, ei as dossierParlementaireXsiTypeOptions, kt as dossierUidRegex, ne as etatAmendementCodeOptions, re as etatAmendementLibelleOptions, Br as etatCycleDeVieOptions, bn as etatOptions, j as existingDateToJson, Zt as famSocProEnumOptions, _e as formatRelativeFrenchTime, Yr as formatReunionOptions, b as frenchDateFormat, P as frenchDateSameYearShortFormat, ye as frenchDateWithoutDayOfWeekFromDateOrString, d as frenchTimeFormat, D as frenchTimeFromDateOrString, G as insertActeurReferences, bi as insertAmendementReferences, q as insertDocumentReferences, J as insertDossierReferences, Y as insertOrganeReferences, X as insertReunionReferences, Z as insertScrutinReferences, Ti as iterDocumentOrDivisionUrls, gn as legislatureOptions, on as libelleOptions, an as libelleSortScrutinOptions, Qe as libelleTypeVoteOptions, mt as lieuVoteOptions, S as localIso8601StringFromDate, $e as mandatXsiTypeOptions, kr as modePublicationDesVotesOptions, si as natureTravauxOdjOptions, ht as organeXsiTypeOptions, m as patchedDateToJson, _r as personneAuditionneeXsiTypeOptions, Dn as pointOdjXsiTypeOptions, ut as positionMajoritaireOptions, Ar as positionPolitiqueOptions, ri as presenceOptions, Ut as procedureOptions, Re as quantiemeOptions, or as questionUidRegex, Ee as questionXsiTypeOptions, dt as regimeOptions, fn as regionTypeOptions, ke as reunionUidRegex, $r as reunionXsiTypeOptions, nr as scrutinUidRegex, xi as shortNameFromOrgane, ae as sortAmendementOptions, B as stateFromActePath, V as stateFromActes, yi as stateFromDossier, z as statusFromCodierLibelle, O as typeAuteurOptions, qe as typeJoQuestionOptions, dn as typeMajoriteOptions, a as typeMimeNomOptions, c as typeMimeTypeOptions, qt as typePointOdjOptions, l as typePositionOptions, Rn as typeQuestionOptions, Ge as typeReunionOptions, He as uidXsiTypeOptions, R as uncapitalizeFirstLetter, Di as urlFromAmendementUid, Ei as urlFromDocument, Oi as urlFromScrutin, H as walkActes, U as walkDocumentAndDivisions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e } from "./amendements-
|
|
2
|
-
import { An as t, Dn as n, Dt as r, En as i, O as a, On as o, Q as s, Rt as c, Xr as l, in as u, jn as d, kn as f, l as p } from "./scrutins-
|
|
1
|
+
import { r as e } from "./amendements-Xaw7TqV2.js";
|
|
2
|
+
import { An as t, Dn as n, Dt as r, En as i, O as a, On as o, Q as s, Rt as c, Xr as l, in as u, jn as d, kn as f, l as p } from "./scrutins-98SJXpIE.js";
|
|
3
3
|
import { getChangedFilesSinceCommit as m } from "./git.js";
|
|
4
4
|
import h from "node:assert";
|
|
5
5
|
import g from "fs-extra";
|
package/lib/loaders.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "./loaders-
|
|
1
|
+
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "./loaders-CXywwmAa.js";
|
|
2
2
|
export { e as EnabledDatasets, v as datasets, p as iterLoadAssembleeActeurs, g as iterLoadAssembleeAmendements, u as iterLoadAssembleeComptesRendus, r as iterLoadAssembleeDocuments, m as iterLoadAssembleeDossiersParlementaires, _ as iterLoadAssembleeOrganes, a as iterLoadAssembleeQuestions, d as iterLoadAssembleeReunions, y as iterLoadAssembleeScrutins, o as loadAssembleeData, s as loadAssembleeDataFromBigFiles, h as loadAssembleeDocumentFile, f as loadAssembleePhotosDeputes, l as loadAssembleePhotosSenateurs, c as pathFromCompteRenduUid, n as pathFromDocumentUid, b as pathFromDossierParlementaireUid, S as pathFromQuestionUid, i as pathFromReunionUid, x as pathFromScrutinUid, t as walkDir };
|