@tricoteuses/assemblee 3.0.17 → 3.0.18
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/cleaners/reunions.d.ts +12 -0
- package/lib/cleaners.js +27 -24
- package/lib/index.js +78 -79
- package/lib/loaders.js +534 -496
- package/lib/{questions-DgERya4J.js → questions-BiakXZ6q.js} +1161 -936
- package/lib/scripts/retrieve_documents.d.ts +4 -1
- package/package.json +1 -1
- package/lib/questions-C3qN4PsC.js +0 -230
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
import { ReunionClean } from '../schemas/clean/agendas';
|
|
2
|
+
import { Point, Reunion } from '..';
|
|
2
3
|
export declare function cleanReunion(reunion: any): ReunionClean;
|
|
4
|
+
export declare function hasMissingOrNotFinalizedText(node: Point | undefined | null): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Remove compteRenduRef from reunion if the referenced compte rendu is missing or has missing/not finalized content,
|
|
7
|
+
* and delete the compte rendu file in that case.
|
|
8
|
+
*/
|
|
9
|
+
export declare function reconcileReunionCompteRenduRef(reunion: Reunion, datasetCleanDir: string, { dataDir, legislature, removeMissingSeanceCR, verbose, }: {
|
|
10
|
+
dataDir: string;
|
|
11
|
+
legislature: number;
|
|
12
|
+
removeMissingSeanceCR?: boolean;
|
|
13
|
+
verbose?: boolean;
|
|
14
|
+
}): void;
|
package/lib/cleaners.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import t from "node:assert";
|
|
2
2
|
import { c, a as b, b as _ } from "./amendements-BKGwufEi.js";
|
|
3
|
-
import { d as
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
import { d as ie } from "./amendements-BKGwufEi.js";
|
|
4
|
+
import "fs-extra";
|
|
5
|
+
import "node:path";
|
|
6
|
+
import "./loaders.js";
|
|
7
|
+
import { au as H, av as Q } from "./questions-BiakXZ6q.js";
|
|
8
|
+
function G(e) {
|
|
6
9
|
c(e), t.strictEqual(e.uid["@xsi:type"], "IdActeur_type"), e.uid = e.uid["#text"], t(e.uid);
|
|
7
10
|
const s = e.etatCivil;
|
|
8
11
|
{
|
|
@@ -182,7 +185,7 @@ function F(e) {
|
|
|
182
185
|
const l = e.decision;
|
|
183
186
|
l !== void 0 && h(l);
|
|
184
187
|
const v = e.infoJO;
|
|
185
|
-
v !== void 0 && (
|
|
188
|
+
v !== void 0 && (C(v), e.infoJo = v, delete e.infoJO);
|
|
186
189
|
const o = e.infoJOCE;
|
|
187
190
|
if (o !== void 0) {
|
|
188
191
|
e.infoJoce = o, delete e.infoJOCE;
|
|
@@ -195,7 +198,7 @@ function F(e) {
|
|
|
195
198
|
if (r !== void 0) {
|
|
196
199
|
Array.isArray(r) || (r = [r]), e.infoJoRect = r, delete e.infoJORect;
|
|
197
200
|
for (const S of r)
|
|
198
|
-
|
|
201
|
+
C(S);
|
|
199
202
|
}
|
|
200
203
|
M(e);
|
|
201
204
|
let f = e.initiateurs;
|
|
@@ -255,7 +258,7 @@ function M(e) {
|
|
|
255
258
|
function h(e) {
|
|
256
259
|
e.famCode = e.fam_code, delete e.fam_code, t(e.famCode), e.libelle || (e.libelle = e.famCode);
|
|
257
260
|
}
|
|
258
|
-
function
|
|
261
|
+
function C(e) {
|
|
259
262
|
c(e);
|
|
260
263
|
const s = e.typeJO;
|
|
261
264
|
s !== void 0 && (e.typeJo = s, delete e.typeJO);
|
|
@@ -266,7 +269,7 @@ function V(e) {
|
|
|
266
269
|
const u = e.referenceNOR;
|
|
267
270
|
u !== void 0 && (e.referenceNor = u, delete e.referenceNOR);
|
|
268
271
|
}
|
|
269
|
-
function
|
|
272
|
+
function K(e) {
|
|
270
273
|
c(e);
|
|
271
274
|
const s = e["@xsi:type"];
|
|
272
275
|
s !== void 0 && (e.xsiType = s, delete e["@xsi:type"]);
|
|
@@ -302,7 +305,7 @@ function w(e) {
|
|
|
302
305
|
w(a);
|
|
303
306
|
}
|
|
304
307
|
}
|
|
305
|
-
function
|
|
308
|
+
function Y(e) {
|
|
306
309
|
c(e);
|
|
307
310
|
const s = e["@xsi:type"];
|
|
308
311
|
s !== void 0 && (e.xsiType = s, delete e["@xsi:type"]);
|
|
@@ -336,7 +339,7 @@ function P(e) {
|
|
|
336
339
|
n !== void 0 && (t.strictEqual(typeof n, "string"), n = new Date(n), s.cloture = n);
|
|
337
340
|
}
|
|
338
341
|
}
|
|
339
|
-
function
|
|
342
|
+
function Z(e) {
|
|
340
343
|
c(e), b(e, "captationVideo"), b(e, "comiteSecret"), b(e, "ouverturePresse");
|
|
341
344
|
const s = e["@xsi:type"];
|
|
342
345
|
s !== void 0 && (e.xsiType = s, delete e["@xsi:type"]);
|
|
@@ -447,7 +450,7 @@ function G(e) {
|
|
|
447
450
|
}
|
|
448
451
|
return e;
|
|
449
452
|
}
|
|
450
|
-
function
|
|
453
|
+
function V(e) {
|
|
451
454
|
c(e);
|
|
452
455
|
let s = e.nonVotants;
|
|
453
456
|
if (s === void 0 ? (s = e.nonVotant, delete e.nonVotant) : t.strictEqual(e.nonVotant, void 0), s !== void 0) {
|
|
@@ -516,7 +519,7 @@ function C(e) {
|
|
|
516
519
|
function g(e) {
|
|
517
520
|
c(e), e.abstention !== void 0 && (t.strictEqual(e.abstentions, void 0), e.abstentions = e.abstention, delete e.abstention), e.nonVotant !== void 0 && (t.strictEqual(e.nonVotants, void 0), e.nonVotants = e.nonVotant, delete e.nonVotant);
|
|
518
521
|
}
|
|
519
|
-
function
|
|
522
|
+
function N(e) {
|
|
520
523
|
c(e);
|
|
521
524
|
const s = e.demandeur;
|
|
522
525
|
t(s), c(s), t.strictEqual(s.referenceLegislative, void 0);
|
|
@@ -524,9 +527,9 @@ function K(e) {
|
|
|
524
527
|
t(a), c(a), t.strictEqual(a.referenceLegislative, void 0);
|
|
525
528
|
const n = e.miseAuPoint;
|
|
526
529
|
if (n !== void 0) {
|
|
527
|
-
|
|
530
|
+
V(n);
|
|
528
531
|
let v = n.dysfonctionnement;
|
|
529
|
-
v !== void 0 && (
|
|
532
|
+
v !== void 0 && (V(v), Object.values(v).filter((o) => o !== void 0).length === 0 && delete n.dysfonctionnement), Object.values(n).filter((o) => o !== void 0).length === 0 && delete e.miseAuPoint;
|
|
530
533
|
}
|
|
531
534
|
let u = e.syntheseVote;
|
|
532
535
|
t(u);
|
|
@@ -549,7 +552,7 @@ function K(e) {
|
|
|
549
552
|
const f = r.decompteVoix;
|
|
550
553
|
t(f), g(f);
|
|
551
554
|
const A = r.decompteNominatif;
|
|
552
|
-
t(A),
|
|
555
|
+
t(A), V(A);
|
|
553
556
|
}
|
|
554
557
|
}
|
|
555
558
|
l.groupes = v;
|
|
@@ -561,22 +564,22 @@ function K(e) {
|
|
|
561
564
|
function T(e) {
|
|
562
565
|
b(e, "parDelegation"), _(e, "numPlace");
|
|
563
566
|
}
|
|
564
|
-
function
|
|
567
|
+
function L(e) {
|
|
565
568
|
const s = H.parse(e);
|
|
566
569
|
return c(s, { recursive: !0 }), s;
|
|
567
570
|
}
|
|
568
|
-
function
|
|
571
|
+
function ee(e) {
|
|
569
572
|
const s = Q.parse(e);
|
|
570
573
|
return c(s, { recursive: !0 }), s;
|
|
571
574
|
}
|
|
572
575
|
export {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
+
G as cleanActeur,
|
|
577
|
+
ie as cleanAmendement,
|
|
578
|
+
ee as cleanCompteRendu,
|
|
576
579
|
$ as cleanDocumentOrDivision,
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
580
|
+
K as cleanDossierParlementaire,
|
|
581
|
+
Y as cleanOrgane,
|
|
582
|
+
L as cleanQuestion,
|
|
583
|
+
Z as cleanReunion,
|
|
584
|
+
N as cleanScrutin
|
|
582
585
|
};
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
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 le, i as de, 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-Bab1iUCY.js";
|
|
2
|
-
import {
|
|
3
|
-
import { D as zi, Q as Hi, T as Wi, d as Yi, q as Ki, t as Zi } from "./questions-C3qN4PsC.js";
|
|
2
|
+
import { a0 as Te, C as xe, W as _e, b as Pe, a2 as Ce, e as Ee, a4 as Ue, S as Be, D as De, E as be, F as Ie, q as Le, L as Ne, a6 as Me, a8 as je, aa as $e, M as Ve, ac as Xe, N as we, O as qe, ap as Fe, u as Ge, ae as ke, P as Qe, w as Je, y as ze, Q as He, Y as We, R as Ye, j as Ke, B as Ze, ag as ei, T as ii, _ as ti, I as oi, U as ni, aq as ri, $ as si, c as ai, V as ci, a as ui, a1 as fi, d as pi, a3 as li, ah as di, K as mi, f as yi, ai as gi, ar as Ri, as as Si, aj as vi, an as Ai, k as hi, g as Oi, n as Ti, l as xi, h as _i, a5 as Pi, a7 as Ci, a9 as Ei, m as Ui, ab as Bi, s as Di, o as bi, ao as Ii, t as Li, ad as Ni, p as Mi, v as ji, x as $i, z as Vi, ak as Xi, X as wi, r as qi, i as Fi, al as Gi, A as ki, am as Qi, at as Ji, af as zi, G as Hi, Z as Wi, H as Yi, J as Ki } from "./questions-BiakXZ6q.js";
|
|
4
3
|
var R = /* @__PURE__ */ ((e) => (e.Amendements = "amendements", e))(R || {});
|
|
5
4
|
const I = Object.values(R);
|
|
6
5
|
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 || {});
|
|
@@ -644,78 +643,78 @@ export {
|
|
|
644
643
|
Ce as CodeSortScrutinSchema,
|
|
645
644
|
Ee as CodeTypeOrganeSchema,
|
|
646
645
|
Ue as CodeTypeVoteSchema,
|
|
647
|
-
|
|
648
|
-
|
|
646
|
+
Be as DecisionSchema,
|
|
647
|
+
De as DepNaisSchema,
|
|
649
648
|
H as DivisionTypeSchema,
|
|
650
649
|
B as DocumentUrlFormat,
|
|
651
|
-
|
|
650
|
+
be as EtatSchema,
|
|
652
651
|
R as Facet,
|
|
653
|
-
|
|
652
|
+
Ie as FamSocProEnumSchema,
|
|
654
653
|
x as FinalStatus,
|
|
655
654
|
S as Follow,
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
655
|
+
Le as FormatReunionSchema,
|
|
656
|
+
Ne as LibelleSchema,
|
|
657
|
+
Me as LibelleSortScrutinSchema,
|
|
658
|
+
je as LibelleTypeVoteSchema,
|
|
659
|
+
$e as LieuVoteSchema,
|
|
660
|
+
Ve as MandatXsiTypeSchema,
|
|
661
|
+
Xe as ModePublicationDesVotesSchema,
|
|
662
|
+
we as NatureTravauxOdjSchema,
|
|
663
|
+
qe as OrganeXsiTypeSchema,
|
|
664
|
+
Fe as PersonneAuditionneeXsiTypeSchema,
|
|
665
|
+
Ge as PointOdjXsiTypeSchema,
|
|
666
|
+
ke as PositionMajoritaireSchema,
|
|
667
|
+
Qe as PositionPolitiqueSchema,
|
|
668
|
+
Je as PresenceSchema,
|
|
669
|
+
ze as ProcedureSchema,
|
|
670
|
+
He as QuantiemeSchema,
|
|
671
|
+
We as QuestionXsiTypeSchema,
|
|
672
|
+
Ye as RegimeSchema,
|
|
673
|
+
Ke as RegionTypeSchema,
|
|
674
|
+
Ze as ReunionXsiTypeSchema,
|
|
676
675
|
_ as StatusOnly,
|
|
677
676
|
W as TypeAuteurSchema,
|
|
678
|
-
|
|
679
|
-
|
|
677
|
+
ei as TypeMajoriteSchema,
|
|
678
|
+
ii as TypePointOdjSchema,
|
|
680
679
|
Y as TypePositionSchema,
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
680
|
+
ti as TypeQuestionSchema,
|
|
681
|
+
oi as TypeReunionSchema,
|
|
682
|
+
ni as UidXsiTypeSchema,
|
|
684
683
|
K as accordGouvernementDepotHorsDelaiOptions,
|
|
685
|
-
|
|
684
|
+
ri as acteLegislatifXsiTypeOptions,
|
|
686
685
|
Z as actionOptions,
|
|
687
686
|
I as allFacets,
|
|
688
687
|
L as allFollows,
|
|
689
688
|
ee as avantAApresOptions,
|
|
690
689
|
N as capitalizeFirstLetter,
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
690
|
+
si as causePositionVoteOptions,
|
|
691
|
+
ai as civOptions,
|
|
692
|
+
ci as codeActeOptions,
|
|
694
693
|
ie as codeEtatOptions,
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
694
|
+
ui as codeNatureDepOptions,
|
|
695
|
+
fi as codeSortScrutinOptions,
|
|
696
|
+
pi as codeTypeOrganeOptions,
|
|
697
|
+
li as codeTypeVoteOptions,
|
|
699
698
|
M as commissionFondUidFromDossier,
|
|
700
|
-
|
|
699
|
+
di as compteRenduUidRegex,
|
|
701
700
|
te as dateFromNullableDateOrIsoString,
|
|
702
701
|
oe as dateFromYearMonthDayTimezoneString,
|
|
703
|
-
|
|
704
|
-
|
|
702
|
+
mi as decisionOptions,
|
|
703
|
+
yi as depNaisOptions,
|
|
705
704
|
ne as displayDateFromLocalIsoString,
|
|
706
705
|
re as divisionTypeOptions,
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
706
|
+
gi as documentUidRegex,
|
|
707
|
+
Ri as documentXsiTypeOptions,
|
|
708
|
+
Si as dossierParlementaireXsiTypeOptions,
|
|
709
|
+
vi as dossierUidRegex,
|
|
711
710
|
se as etatAmendementCodeOptions,
|
|
712
711
|
ae as etatAmendementLibelleOptions,
|
|
713
|
-
|
|
714
|
-
|
|
712
|
+
Ai as etatCycleDeVieOptions,
|
|
713
|
+
hi as etatOptions,
|
|
715
714
|
ce as existingDateToJson,
|
|
716
|
-
|
|
715
|
+
Oi as famSocProEnumOptions,
|
|
717
716
|
ue as formatRelativeFrenchTime,
|
|
718
|
-
|
|
717
|
+
Ti as formatReunionOptions,
|
|
719
718
|
fe as frenchDateFormat,
|
|
720
719
|
pe as frenchDateSameYearShortFormat,
|
|
721
720
|
le as frenchDateWithoutDayOfWeekFromDateOrString,
|
|
@@ -729,31 +728,31 @@ export {
|
|
|
729
728
|
E as insertReunionReferences,
|
|
730
729
|
U as insertScrutinReferences,
|
|
731
730
|
X as iterDocumentOrDivisionUrls,
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
731
|
+
xi as legislatureOptions,
|
|
732
|
+
_i as libelleOptions,
|
|
733
|
+
Pi as libelleSortScrutinOptions,
|
|
734
|
+
Ci as libelleTypeVoteOptions,
|
|
735
|
+
Ei as lieuVoteOptions,
|
|
737
736
|
ye as localIso8601StringFromDate,
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
737
|
+
Ui as mandatXsiTypeOptions,
|
|
738
|
+
Bi as modePublicationDesVotesOptions,
|
|
739
|
+
Di as natureTravauxOdjOptions,
|
|
740
|
+
bi as organeXsiTypeOptions,
|
|
742
741
|
ge as patchedDateToJson,
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
742
|
+
Ii as personneAuditionneeXsiTypeOptions,
|
|
743
|
+
Li as pointOdjXsiTypeOptions,
|
|
744
|
+
Ni as positionMajoritaireOptions,
|
|
745
|
+
Mi as positionPolitiqueOptions,
|
|
746
|
+
ji as presenceOptions,
|
|
747
|
+
$i as procedureOptions,
|
|
748
|
+
Vi as quantiemeOptions,
|
|
749
|
+
Xi as questionUidRegex,
|
|
750
|
+
wi as questionXsiTypeOptions,
|
|
751
|
+
qi as regimeOptions,
|
|
752
|
+
Fi as regionTypeOptions,
|
|
753
|
+
Gi as reunionUidRegex,
|
|
754
|
+
ki as reunionXsiTypeOptions,
|
|
755
|
+
Qi as scrutinUidRegex,
|
|
757
756
|
V as shortNameFromOrgane,
|
|
758
757
|
Re as sortAmendementOptions,
|
|
759
758
|
P as stateFromActePath,
|
|
@@ -761,15 +760,15 @@ export {
|
|
|
761
760
|
j as stateFromDossier,
|
|
762
761
|
u as statusFromCodierLibelle,
|
|
763
762
|
Se as typeAuteurOptions,
|
|
764
|
-
|
|
765
|
-
|
|
763
|
+
Ji as typeJoQuestionOptions,
|
|
764
|
+
zi as typeMajoriteOptions,
|
|
766
765
|
ve as typeMimeNomOptions,
|
|
767
766
|
Ae as typeMimeTypeOptions,
|
|
768
|
-
|
|
767
|
+
Hi as typePointOdjOptions,
|
|
769
768
|
he as typePositionOptions,
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
769
|
+
Wi as typeQuestionOptions,
|
|
770
|
+
Yi as typeReunionOptions,
|
|
771
|
+
Ki as uidXsiTypeOptions,
|
|
773
772
|
c as uncapitalizeFirstLetter,
|
|
774
773
|
w as urlFromDocument,
|
|
775
774
|
q as urlFromScrutin,
|