@tricoteuses/assemblee 3.0.2 → 3.0.5
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-CZHXlq07.js → amendements-BKxlNgbH.js} +5 -5
- package/lib/{amendements-CXmsqoof.js → amendements-BUdzERgg.js} +1 -1
- package/lib/cleaners.js +3 -3
- package/lib/index.d.ts +1 -0
- package/lib/index.js +55 -54
- package/lib/loaders-Ch211Vc0.js +4908 -0
- package/lib/loaders.js +29 -2138
- package/lib/parsers.js +2 -2
- package/lib/{questions-DXAzvI1T.js → questions-DhG4JHWF.js} +1 -1
- package/package.json +1 -1
- package/lib/questions-DTO3nK5V.js +0 -2777
package/lib/cleaners.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "node:assert";
|
|
2
|
-
import { c, a as b, b as _ } from "./amendements-
|
|
3
|
-
import { d as ee } from "./amendements-
|
|
4
|
-
import { a as H, C as Q } from "./questions-
|
|
2
|
+
import { c, a as b, b as _ } from "./amendements-BUdzERgg.js";
|
|
3
|
+
import { d as ee } from "./amendements-BUdzERgg.js";
|
|
4
|
+
import { a as H, C as Q } from "./questions-DhG4JHWF.js";
|
|
5
5
|
function W(e) {
|
|
6
6
|
c(e), t.strictEqual(e.uid["@xsi:type"], "IdActeur_type"), e.uid = e.uid["#text"], t(e.uid);
|
|
7
7
|
const s = e.etatCivil;
|
package/lib/index.d.ts
CHANGED
|
@@ -22,3 +22,4 @@ export { acteLegislatifXsiTypeOptions, documentXsiTypeOptions, dossierParlementa
|
|
|
22
22
|
export { type ContenuSubdivisionEnriched as ContenuSubdivision, type SubdivisionEnriched as Subdivision, } from './schemas/enriched/dossiers_legislatifs.js';
|
|
23
23
|
export { typeJoQuestionOptions, type AnalyseClean as Analyse, type AuteurQuestionClean as AuteurQuestion, type ClotureClean as Cloture, type GroupeClean as Groupe, type IdentifiantClean as Identifiant, type IdentiteAuteurQuestionClean as IdentiteAuteurQuestion, type IndexationAnClean as IndexationAn, type InfoJoQuestionClean as InfoJoQuestion, type MinAttribElementClean as MinAttribElement, type MinAttribsClean as MinAttribs, type QuestionClean as Question, type RenouvellementClean as Renouvellement, type RenouvellementCleans as Renouvellements, type SignalementClean as Signalement, type TexteQuestionClean as TexteQuestion, type TextesQuestionClean as TextesQuestion, type TextesReponseClean as TextesReponse, type TypeJoQuestion, } from './schemas/clean/questions.js';
|
|
24
24
|
export { type DecompteNominatifClean as DecompteNominatif, type DecompteVoixClean as DecompteVoix, type DemandeurClean as Demandeur, type DysfonctionnementClean as Dysfonctionnement, type MiseAuPointClean as MiseAuPoint, type ObjetVoteClean as ObjetVote, type ScrutinClean as Scrutin, type SortScrutinClean as SortScrutin, type SyntheseVoteClean as SyntheseVote, type TypeVoteClean as TypeVote, type VentilationVotesClean as VentilationVotes, type VentilationVotesGroupeClean as VentilationVotesGroupe, type VotantClean as Votant, type VoteClean as Vote, } from './schemas/clean/scrutins.js';
|
|
25
|
+
export { datasets } from './loaders.js';
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as k, n as Q, B as J, C as z, D as H, T as W, s as Y, k as K, m as Z, u as ee, o as ie, d as te, a as oe, b as ne, q as re, v as se, w as ae, e as ce, f as ue, c as fe, g as pe, h as
|
|
2
|
-
import { W as Te, C as xe, S as _e, b as Pe, Y as Ce, e as Ee, _ as Ue, D as Be, E as De, F as be, q as Ie, L as Le, h as Ne, a0 as Me, a2 as je, a4 as $e, M as Ve, a6 as Xe, N as we, O as qe, aj as Fe, u as Ge, a8 as ke, P as Qe, w as Je, y as ze, Q as He, R as We, j as Ye, B as Ke, aa as Ze, T as ei, I as ii, U as ti, ak as oi, V as ni, c as ri, K as si, a as ai, X as ci, d as ui, Z as fi, ab as pi, f as li, ac as
|
|
3
|
-
import { D as
|
|
1
|
+
import { A as k, n as Q, B as J, C as z, D as H, T as W, s as Y, k as K, m as Z, u as ee, o as ie, d as te, a as oe, b as ne, q as re, v as se, w as ae, e as ce, f as ue, c as fe, g as pe, h as de, i as le, j as me, l as ye, p as ge, x as Re, t as Se, y as ve, z as Ae, r as he } from "./amendements-BKxlNgbH.js";
|
|
2
|
+
import { W as Te, C as xe, S as _e, b as Pe, Y as Ce, e as Ee, _ as Ue, D as Be, E as De, F as be, q as Ie, L as Le, h as Ne, a0 as Me, a2 as je, a4 as $e, M as Ve, a6 as Xe, N as we, O as qe, aj as Fe, u as Ge, a8 as ke, P as Qe, w as Je, y as ze, Q as He, R as We, j as Ye, B as Ke, aa as Ze, T as ei, I as ii, U as ti, ak as oi, V as ni, c as ri, K as si, a as ai, X as ci, d as ui, Z as fi, ab as pi, ao as di, f as li, ac as mi, al as yi, am as gi, ad as Ri, ah as Si, k as vi, g as Ai, n as hi, l as Oi, $ as Ti, a1 as xi, a3 as _i, m as Pi, a5 as Ci, s as Ei, o as Ui, ai as Bi, t as Di, a7 as bi, p as Ii, v as Li, x as Ni, z as Mi, ae as ji, r as $i, i as Vi, af as Xi, A as wi, ag as qi, an as Fi, a9 as Gi, G as ki, H as Qi, J as Ji } from "./loaders-Ch211Vc0.js";
|
|
3
|
+
import { D as Hi, Q as Wi, T as Yi, d as Ki, q as Zi, t as et } from "./questions-DhG4JHWF.js";
|
|
4
4
|
var R = /* @__PURE__ */ ((e) => (e.Amendements = "amendements", e))(R || {});
|
|
5
5
|
const I = Object.values(R);
|
|
6
6
|
var S = /* @__PURE__ */ ((e) => (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))(S || {});
|
|
@@ -265,8 +265,8 @@ function $(e, t, o) {
|
|
|
265
265
|
}
|
|
266
266
|
if (t.acteurByUid !== void 0 && i.cosignatairesRefs !== void 0) {
|
|
267
267
|
const s = [];
|
|
268
|
-
for (const
|
|
269
|
-
const f = t.acteurByUid[
|
|
268
|
+
for (const d of i.cosignatairesRefs || []) {
|
|
269
|
+
const f = t.acteurByUid[d];
|
|
270
270
|
f !== void 0 && (s.push(f), p(f, t, o));
|
|
271
271
|
}
|
|
272
272
|
i.cosignataires = s;
|
|
@@ -609,27 +609,27 @@ function y(e, t, o = !1) {
|
|
|
609
609
|
`Unable to generate URL for document or division in Sénat. UID: "${e.uid}"`
|
|
610
610
|
), null;
|
|
611
611
|
const s = n[5];
|
|
612
|
-
let
|
|
612
|
+
let d = n[7];
|
|
613
613
|
if (t === "raw-html")
|
|
614
614
|
return {
|
|
615
615
|
directory: "textes",
|
|
616
|
-
url: `https://www.assemblee-nationale.fr/${s}/textes/${
|
|
616
|
+
url: `https://www.assemblee-nationale.fr/${s}/textes/${d}${i}`
|
|
617
617
|
};
|
|
618
618
|
let f = {
|
|
619
619
|
BTC: "TCOM",
|
|
620
620
|
BTA: "TADO",
|
|
621
621
|
TAP: "TADO"
|
|
622
622
|
}[n[6]] || n[1];
|
|
623
|
-
e.classification !== void 0 && e.classification.sousType !== void 0 && e.classification.sousType.code === "COMPA" && (
|
|
624
|
-
const
|
|
625
|
-
if (
|
|
623
|
+
e.classification !== void 0 && e.classification.sousType !== void 0 && e.classification.sousType.code === "COMPA" && (d = d.replace(/-COMPA/, "-aCOMPA")), f == "AVCE" && (f = `AVCE${e.classification.famille?.classe.code}`);
|
|
624
|
+
const l = D[f];
|
|
625
|
+
if (l === void 0)
|
|
626
626
|
return o && console.log(
|
|
627
627
|
`Unable to generate URL from document or division of UID "${e.uid}" and type "${f}"`
|
|
628
628
|
), null;
|
|
629
|
-
const g = t === "pdf" ? `pdf/${
|
|
629
|
+
const g = t === "pdf" ? `pdf/${l.directory}` : l.directory;
|
|
630
630
|
return {
|
|
631
631
|
directory: g,
|
|
632
|
-
url: `https://www.assemblee-nationale.fr/${s}/${g}/${
|
|
632
|
+
url: `https://www.assemblee-nationale.fr/${s}/${g}/${l.prefix}${d}${l.suffix}${i}`
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
635
|
export {
|
|
@@ -644,7 +644,7 @@ export {
|
|
|
644
644
|
Ce as CodeSortScrutinSchema,
|
|
645
645
|
Ee as CodeTypeOrganeSchema,
|
|
646
646
|
Ue as CodeTypeVoteSchema,
|
|
647
|
-
|
|
647
|
+
Hi as DecisionSchema,
|
|
648
648
|
Be as DepNaisSchema,
|
|
649
649
|
H as DivisionTypeSchema,
|
|
650
650
|
B as DocumentUrlFormat,
|
|
@@ -670,7 +670,7 @@ export {
|
|
|
670
670
|
Je as PresenceSchema,
|
|
671
671
|
ze as ProcedureSchema,
|
|
672
672
|
He as QuantiemeSchema,
|
|
673
|
-
|
|
673
|
+
Wi as QuestionXsiTypeSchema,
|
|
674
674
|
We as RegimeSchema,
|
|
675
675
|
Ye as RegionTypeSchema,
|
|
676
676
|
Ke as ReunionXsiTypeSchema,
|
|
@@ -679,7 +679,7 @@ export {
|
|
|
679
679
|
Ze as TypeMajoriteSchema,
|
|
680
680
|
ei as TypePointOdjSchema,
|
|
681
681
|
Y as TypePositionSchema,
|
|
682
|
-
|
|
682
|
+
Yi as TypeQuestionSchema,
|
|
683
683
|
ii as TypeReunionSchema,
|
|
684
684
|
ti as UidXsiTypeSchema,
|
|
685
685
|
K as accordGouvernementDepotHorsDelaiOptions,
|
|
@@ -699,28 +699,29 @@ export {
|
|
|
699
699
|
fi as codeTypeVoteOptions,
|
|
700
700
|
M as commissionFondUidFromDossier,
|
|
701
701
|
pi as compteRenduUidRegex,
|
|
702
|
+
di as datasets,
|
|
702
703
|
te as dateFromNullableDateOrIsoString,
|
|
703
704
|
oe as dateFromYearMonthDayTimezoneString,
|
|
704
|
-
|
|
705
|
+
Ki as decisionOptions,
|
|
705
706
|
li as depNaisOptions,
|
|
706
707
|
ne as displayDateFromLocalIsoString,
|
|
707
708
|
re as divisionTypeOptions,
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
709
|
+
mi as documentUidRegex,
|
|
710
|
+
yi as documentXsiTypeOptions,
|
|
711
|
+
gi as dossierParlementaireXsiTypeOptions,
|
|
712
|
+
Ri as dossierUidRegex,
|
|
712
713
|
se as etatAmendementCodeOptions,
|
|
713
714
|
ae as etatAmendementLibelleOptions,
|
|
714
|
-
|
|
715
|
-
|
|
715
|
+
Si as etatCycleDeVieOptions,
|
|
716
|
+
vi as etatOptions,
|
|
716
717
|
ce as existingDateToJson,
|
|
717
|
-
|
|
718
|
+
Ai as famSocProEnumOptions,
|
|
718
719
|
ue as formatRelativeFrenchTime,
|
|
719
|
-
|
|
720
|
+
hi as formatReunionOptions,
|
|
720
721
|
fe as frenchDateFormat,
|
|
721
722
|
pe as frenchDateSameYearShortFormat,
|
|
722
|
-
|
|
723
|
-
|
|
723
|
+
de as frenchDateWithoutDayOfWeekFromDateOrString,
|
|
724
|
+
le as frenchTimeFormat,
|
|
724
725
|
me as frenchTimeFromDateOrString,
|
|
725
726
|
p as insertActeurReferences,
|
|
726
727
|
$ as insertAmendementReferences,
|
|
@@ -730,30 +731,30 @@ export {
|
|
|
730
731
|
E as insertReunionReferences,
|
|
731
732
|
U as insertScrutinReferences,
|
|
732
733
|
X as iterDocumentOrDivisionUrls,
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
734
|
+
Oi as libelleOptions,
|
|
735
|
+
Ti as libelleSortScrutinOptions,
|
|
736
|
+
xi as libelleTypeVoteOptions,
|
|
737
|
+
_i as lieuVoteOptions,
|
|
737
738
|
ye as localIso8601StringFromDate,
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
739
|
+
Pi as mandatXsiTypeOptions,
|
|
740
|
+
Ci as modePublicationDesVotesOptions,
|
|
741
|
+
Ei as natureTravauxOdjOptions,
|
|
742
|
+
Ui as organeXsiTypeOptions,
|
|
742
743
|
ge as patchedDateToJson,
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
744
|
+
Bi as personneAuditionneeXsiTypeOptions,
|
|
745
|
+
Di as pointOdjXsiTypeOptions,
|
|
746
|
+
bi as positionMajoritaireOptions,
|
|
747
|
+
Ii as positionPolitiqueOptions,
|
|
748
|
+
Li as presenceOptions,
|
|
749
|
+
Ni as procedureOptions,
|
|
750
|
+
Mi as quantiemeOptions,
|
|
751
|
+
ji as questionUidRegex,
|
|
752
|
+
Zi as questionXsiTypeOptions,
|
|
753
|
+
$i as regimeOptions,
|
|
754
|
+
Vi as regionTypeOptions,
|
|
755
|
+
Xi as reunionUidRegex,
|
|
756
|
+
wi as reunionXsiTypeOptions,
|
|
757
|
+
qi as scrutinUidRegex,
|
|
757
758
|
V as shortNameFromOrgane,
|
|
758
759
|
Re as sortAmendementOptions,
|
|
759
760
|
P as stateFromActePath,
|
|
@@ -761,15 +762,15 @@ export {
|
|
|
761
762
|
j as stateFromDossier,
|
|
762
763
|
u as statusFromCodierLibelle,
|
|
763
764
|
Se as typeAuteurOptions,
|
|
764
|
-
|
|
765
|
-
|
|
765
|
+
Fi as typeJoQuestionOptions,
|
|
766
|
+
Gi as typeMajoriteOptions,
|
|
766
767
|
ve as typeMimeNomOptions,
|
|
767
768
|
Ae as typeMimeTypeOptions,
|
|
768
|
-
|
|
769
|
+
ki as typePointOdjOptions,
|
|
769
770
|
he as typePositionOptions,
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
771
|
+
et as typeQuestionOptions,
|
|
772
|
+
Qi as typeReunionOptions,
|
|
773
|
+
Ji as uidXsiTypeOptions,
|
|
773
774
|
c as uncapitalizeFirstLetter,
|
|
774
775
|
w as urlFromDocument,
|
|
775
776
|
q as urlFromScrutin,
|