@tricoteuses/assemblee 3.2.4 → 3.2.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-Aa0U8Egw.js → amendements-DCRG5V86.js} +1 -1
- package/lib/{amendements-DHZKmvto.js → amendements-DePQCX4s.js} +415 -382
- package/lib/cleaners.js +3 -3
- package/lib/index.js +3 -3
- package/lib/inserters.d.ts +1 -1
- package/lib/{loaders-DUazQFWL.js → loaders-bWVuhSOp.js} +2 -2
- package/lib/loaders.js +1 -1
- package/lib/parsers.js +25 -25
- package/lib/schemas/clean/agendas.d.ts +4 -0
- package/lib/schemas/enriched/agendas.d.ts +2 -0
- package/lib/schemas/raw/agendas.d.ts +10 -1
- package/lib/schemas/zod_errors.d.ts +2 -0
- package/lib/scrutins-BQYUa4nr.js +2057 -0
- package/package.json +1 -1
- package/lib/scrutins-B7gvdRyt.js +0 -2053
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-BQYUa4nr.js";
|
|
2
|
+
import { i as r, n as i, r as a, t as o } from "./amendements-DCRG5V86.js";
|
|
3
|
+
import "./loaders-bWVuhSOp.js";
|
|
4
4
|
import s from "node:assert";
|
|
5
5
|
import "fs-extra";
|
|
6
6
|
import "node:path";
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 be, ft as xe, g as u, h as d,
|
|
2
|
-
import { $ as De, $n as Oe, $t as ke, A as Ae, An as je, Ar as Me, At as Ne, B as Pe, Bn as Fe, Br as Ie, Bt as Le, C as Re, Cn as ze, Cr as Be, Ct as Ve, D as He, Dn as Ue, Dr as We, E as Ge, En as Ke, Er as qe, Et as Je, F as Ye, Fn as Xe, Fr as Ze, Ft as Qe, G as $e, Gn as et, Gr as tt, Gt as nt, H as rt, Hn as it, Hr as at, Ht as ot, I as st, In as ct, Ir as lt, It as ut, J as dt, Jn as ft, Jr as pt, Jt as mt, K as ht, Kn as gt, Kr as _t, Kt as vt, L as yt, Ln as bt, Lr as xt, Lt as St, M as Ct, Mn as wt, Mr as Tt, Mt as Et, N as Dt, Nn as Ot, Nr as kt, Nt as At, On as jt, Or as Mt, Ot as Nt, P as Pt, Pn as Ft, Pr as It, Pt as Lt, Qn as Rt, Qt as zt, R as Bt, Rn as Vt, Rr as Ht, S as Ut, Sn as Wt, Sr as Gt, St as Kt, T as qt, Tn as Jt, Tr as Yt, Tt as Xt, U as Zt, Un as Qt, Ur as $t, Ut as en, V as tn, Vn as nn, Vr as rn, Vt as an, W as on, Wn as sn, Wr as cn, Wt as ln, X as un, Xt as dn, Y as fn, Yn as pn, Yr as mn, Yt as hn, Z as gn, Zn as _n, Zr as vn, Zt as yn, _ as bn, _n as xn, _r as Sn, _t as Cn, a as N, an as wn, ar as Tn, at as En, b as Dn, bn as On, br as kn, bt as An, c as jn, cn as Mn, cr as Nn, ct as Pn, d as Fn, dn as In, dr as Ln, dt as Rn, en as zn, er as Bn, et as Vn, f as Hn, fn as Un, fr as Wn, ft as Gn, g as Kn, gn as qn, gr as Jn, gt as Yn, h as Xn, hn as Zn, hr as Qn, ht as $n, i as er, ir as tr, it as nr, j as rr, jn as ir, jr as ar, jt as or, k as sr, kn as cr, kr as lr, kt as ur, ln as dr, lr as fr, lt as pr, m as mr, mn as hr, mr as gr, mt as _r, n as vr, nn as yr, nr as br, nt as xr, o as Sr, on as Cr, or as wr, ot as Tr, p as Er, pn as Dr, pr as Or, pt as kr, q as Ar, qn as jr, qr as Mr, qt as Nr, r as Pr, rn as Fr, rt as Ir, s as Lr, sn as Rr, sr as zr, st as Br, t as Vr, tn as Hr, tr as Ur, tt as Wr, u as Gr, un as Kr, ur as qr, ut as Jr, v as Yr, vn as Xr, vr as Zr, vt as Qr, w as $r, wn as ei, wr as ti, wt as ni, x as ri, xn as ii, xr as ai, xt as oi, y as si, yn as ci, yr as li, yt as ui, z as di, zn as fi, zr as pi, zt as mi } from "./scrutins-
|
|
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 be, ft as xe, g as u, h as d, ht as f, i as p, it as m, j as h, k as g, l as _, lt as v, m as y, mt as b, n as x, o as S, ot as C, p as w, pt as T, q as E, r as D, s as O, st as k, t as A, u as j, ut as M, v as Se, w as Ce, x as we, y as Te, z as Ee } from "./amendements-DePQCX4s.js";
|
|
2
|
+
import { $ as De, $n as Oe, $t as ke, A as Ae, An as je, Ar as Me, At as Ne, B as Pe, Bn as Fe, Br as Ie, Bt as Le, C as Re, Cn as ze, Cr as Be, Ct as Ve, D as He, Dn as Ue, Dr as We, E as Ge, En as Ke, Er as qe, Et as Je, F as Ye, Fn as Xe, Fr as Ze, Ft as Qe, G as $e, Gn as et, Gr as tt, Gt as nt, H as rt, Hn as it, Hr as at, Ht as ot, I as st, In as ct, Ir as lt, It as ut, J as dt, Jn as ft, Jr as pt, Jt as mt, K as ht, Kn as gt, Kr as _t, Kt as vt, L as yt, Ln as bt, Lr as xt, Lt as St, M as Ct, Mn as wt, Mr as Tt, Mt as Et, N as Dt, Nn as Ot, Nr as kt, Nt as At, On as jt, Or as Mt, Ot as Nt, P as Pt, Pn as Ft, Pr as It, Pt as Lt, Qn as Rt, Qt as zt, R as Bt, Rn as Vt, Rr as Ht, S as Ut, Sn as Wt, Sr as Gt, St as Kt, T as qt, Tn as Jt, Tr as Yt, Tt as Xt, U as Zt, Un as Qt, Ur as $t, Ut as en, V as tn, Vn as nn, Vr as rn, Vt as an, W as on, Wn as sn, Wr as cn, Wt as ln, X as un, Xt as dn, Y as fn, Yn as pn, Yr as mn, Yt as hn, Z as gn, Zn as _n, Zr as vn, Zt as yn, _ as bn, _n as xn, _r as Sn, _t as Cn, a as N, an as wn, ar as Tn, at as En, b as Dn, bn as On, br as kn, bt as An, c as jn, cn as Mn, cr as Nn, ct as Pn, d as Fn, dn as In, dr as Ln, dt as Rn, en as zn, er as Bn, et as Vn, f as Hn, fn as Un, fr as Wn, ft as Gn, g as Kn, gn as qn, gr as Jn, gt as Yn, h as Xn, hn as Zn, hr as Qn, ht as $n, i as er, ir as tr, it as nr, j as rr, jn as ir, jr as ar, jt as or, k as sr, kn as cr, kr as lr, kt as ur, ln as dr, lr as fr, lt as pr, m as mr, mn as hr, mr as gr, mt as _r, n as vr, nn as yr, nr as br, nt as xr, o as Sr, on as Cr, or as wr, ot as Tr, p as Er, pn as Dr, pr as Or, pt as kr, q as Ar, qn as jr, qr as Mr, qt as Nr, r as Pr, rn as Fr, rt as Ir, s as Lr, sn as Rr, sr as zr, st as Br, t as Vr, tn as Hr, tr as Ur, tt as Wr, u as Gr, un as Kr, ur as qr, ut as Jr, v as Yr, vn as Xr, vr as Zr, vt as Qr, w as $r, wn as ei, wr as ti, wt as ni, x as ri, xn as ii, xr as ai, xt as oi, y as si, yn as ci, yr as li, yt as ui, z as di, zn as fi, zr as pi, zt as mi } from "./scrutins-BQYUa4nr.js";
|
|
3
3
|
//#region src/api.ts
|
|
4
4
|
var P = /* @__PURE__ */ function(e) {
|
|
5
5
|
return e.Amendements = "amendements", e;
|
|
@@ -577,4 +577,4 @@ function $(e, t, n = !1) {
|
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
579
|
//#endregion
|
|
580
|
-
export { te as AccordGouvernementDepotHorsDelaiSchema, st as ActeLegislatifSchema, Fr as ActeurSchema, oe as ActionSchema, wn as AdresseSchema, A as AlineaSchema,
|
|
580
|
+
export { te as AccordGouvernementDepotHorsDelaiSchema, st as ActeLegislatifSchema, Fr as ActeurSchema, oe as ActionSchema, wn as AdresseSchema, A as AlineaSchema, x as AmendementSchema, yt as AmendementsCommissionSchema, D as AmendementsConvert, p as AmendementsSchema, Bt as AmendementsSeanceSchema, bn as AnalyseSchema, di as AuteurActeurSchema, pe as AuteurAmendementSchema, Yr as AuteurQuestionSchema, Pe as AuteurSchema, S as AvantAppelSchema, wt as CausePositionVoteSchema, tn as ChronoDocumentSchema, mi as ChronoSchema, Cr as CibleSchema, Mt as CivSchema, rt as ClassificationSchema, si as ClotureSchema, Zt as CoSignataireElementSchema, on as CoSignataireOrganeSchema, Ur as CodeActeSchema, Ee as CodeEtatSchema, lr as CodeNatureDepSchema, Ot as CodeSortScrutinSchema, Me as CodeTypeOrganeSchema, Ft as CodeTypeVoteSchema, Rr as CollaborateurSchema, Xt as CompteRenduSchema, O as ContenuAmendementSchema, ge as ContenuAuteurSchema, Je as ContenuSchema, $e as ContributionInternauteSchema, _ as CorpsAmendementSchema, ht as CorrectionSchema, Ar as CycleDeVieDocumentSchema, Le as CycleDeVieReunionSchema, j as CycleDeVieSchema, tr as DecisionSchema, Vr as DecompteNominatifSchema, vr as DecompteVoixSchema, an as DemandeurActeurSchema, ot as DemandeurOrganeSchema, Pr as DemandeurSchema, en as DemandeursSchema, ar as DepNaisSchema, Mn as DepartementSchema, dr as DeportSchema, dt as DepotAmendementsSchema, ve as DiscussionSchema, w as DispositifAmdtCreditPLFRSchema, be as DispositifAmdtCreditPLFSchema, fn as DivisionSchema, t as DivisionTypeSchema, un as DocumentSchema, Q as DocumentUrlFormat, er as DossierLegislatifObjetSchema, gn as DossierParlementaireSchema, N as DysfonctionnementSchema, Kr as ElectionSchema, d as EtatAmendementSchema, In as EtatCivilSchema, u as EtatDesTraitementsSchema, wr as EtatSchema, De as EtudePlfSchema, P as Facet, Vn as FamCodeEtLibelleSchema, Tt as FamSocProEnumSchema, Wr as FamilleSchema, Nt as FinSeanceSchema, L as FinalStatus, F as Follow, zr as FormatReunionSchema, xr as FusionDossierSchema, Dn as GroupeSchema, ln as IdentPersonneAuditionneeSchema, Un as IdentSchema, ri as IdentifiantSchema, nt as IdentifiantsSchema, fe as IdentificationSchema, Ut as IdentiteAuteurQuestionSchema, Ir as ImprimerieSchema, Re as IndexationAnSchema, nr as IndexationSchema, $r as InfoJoQuestionSchema, En as InfoJoSchema, Tr as InfoJoceSchema, Dr as InfoNaissanceSchema, hr as InfosQualiteSchema, vt as InfosReunionsInternationaleSchema, Br as InitiateurActeurSchema, Pn as InitiateurSchema, pr as LibelleActeSchema, kt as LibelleSchema, Xe as LibelleSortScrutinSchema, ct as LibelleTypeVoteSchema, Nr as LieuReunionSchema, bt as LieuVoteSchema, Te as LigneCreditPLFRSchema, Se as LigneCreditPLFSchema, he as LoiReferenceSchema, Zn as MandatSchema, It as MandatXsiTypeSchema, qn as MandatureSchema, ur as MetadonneesSchema, qt as MinAttribElementSchema, Ge as MinAttribsSchema, Sr as MiseAuPointSchema, Jr as MissionMinefiSchema, we as MissionViseeSchema, Vt as ModePublicationDesVotesSchema, Nn as NatureTravauxOdjSchema, Rn as NoticeSchema, Lr as ObjetVoteSchema, mt as OdjSchema, Ne as OrateurElementSchema, or as OrateursSchema, Xr as OrganeLieuSchema, xn as OrganeSchema, Ze as OrganeXsiTypeSchema, hn as ParticipantInterneSchema, dn as ParticipantsSchema, yn as PersonneAuditionneeSchema, zt as PersonneAuditionneeXsiTypeSchema, ci as PhotoSchema, ke as PointOdjSchema, fr as PointOdjXsiTypeSchema, Et as PointSchema, y as PointeurFragmentTexteDivisionSchema, se as PointeurFragmentTexteSchema, fi as PositionMajoritaireSchema, lt as PositionPolitiqueSchema, qr as PresenceSchema, Gn as ProcedureParlementaireSchema, Ln as ProcedureSchema, On as ProfessionSchema, n as ProgrammePlfSchema, Wn as QuantiemeSchema, At as QuantiemesSchema, He as QuestionSchema, _n as QuestionXsiTypeSchema, kr as RapporteurSchema, xt as RegimeSchema, ii as RegionSchema, Ht as RegionTypeSchema, sr as RenouvellementSchema, Ae as RenouvellementsSchema, Ce as RepresentationSchema, zn as ReunionSchema, Or as ReunionXsiTypeSchema, jn as ScrutinSchema, Wt as SecretariatSchema, rr as SignalementSchema, ce as SignatairesSchema, ze as SocProcInseeSchema, Qe as SommaireElementSchema, Lt as SommaireSchema, Gr as SortScrutinSchema, i as SousEtatAmendementSchema, _r as SousTypeSchema, R as StatusOnly, r as StatutRepresentationSchema, ei as SuppleantSchema, Fn as SyntheseVoteSchema, $n as TexteAssocieSchema, Yn as TexteEuropeenSchema, Cn as TexteExterneAssocieSchema, ie as TexteLegislatifSchema, Ct as TexteQuestionSchema, ut as TexteSchema, Dt as TextesQuestionSchema, Pt as TextesReponseSchema, Qr as ThemeSchema, ui as ThemesSchema, An as TitreDossierSchema, St as TitreStructSchema, oi as TitresSchema, g as TotalSchema, ue as TypeAuteurSchema, Fe as TypeMajoriteSchema, e as TypeMimeSchema, gr as TypePointOdjSchema, s as TypePositionSchema, Rt as TypeQuestionSchema, Qn as TypeReunionSchema, Hn as TypeVoteSchema, Jn as UidXsiTypeSchema, mr as VentilationVotesGroupeSchema, Er as VentilationVotesSchema, Jt as ViMoDeSchema, Xn as VotantSchema, Kn as VoteSchema, le as accordGouvernementDepotHorsDelaiOptions, Kt as acteLegislatifXsiTypeOptions, de as actionOptions, hi as allFacets, gi as allFollows, h as avantAApresOptions, _i as capitalizeFirstLetter, nn as causePositionVoteOptions, pi as civOptions, br as codeActeOptions, o as codeEtatOptions, Ie as codeNatureDepOptions, it as codeSortScrutinOptions, rn as codeTypeOrganeOptions, Qt as codeTypeVoteOptions, vi as commissionFondUidFromDossier, Ke as compteRenduUidRegex, m as dateFromNullableDateOrIsoString, me as dateFromYearMonthDayTimezoneString, Tn as decisionOptions, at as depNaisOptions, C as displayDateFromLocalIsoString, ee as divisionTypeOptions, Ue as documentUidRegex, Ve as documentXsiTypeOptions, ni as dossierParlementaireXsiTypeOptions, jt as dossierUidRegex, ne as etatAmendementCodeOptions, re as etatAmendementLibelleOptions, Hr as etatCycleDeVieOptions, Sn as etatOptions, k as existingDateToJson, $t as famSocProEnumOptions, _e as formatRelativeFrenchTime, Zr as formatReunionOptions, v as frenchDateFormat, M as frenchDateSameYearShortFormat, ye as frenchDateWithoutDayOfWeekFromDateOrString, xe as frenchTimeFormat, T as frenchTimeFromDateOrString, G as insertActeurReferences, bi as insertAmendementReferences, q as insertDocumentReferences, J as insertDossierReferences, Y as insertOrganeReferences, X as insertReunionReferences, Z as insertScrutinReferences, wi as iterDocumentOrDivisionUrls, vn as legislatureOptions, cn as libelleOptions, sn as libelleSortScrutinOptions, et as libelleTypeVoteOptions, gt as lieuVoteOptions, b as localIso8601StringFromDate, tt as mandatXsiTypeOptions, jr as modePublicationDesVotesOptions, li as natureTravauxOdjOptions, _t as organeXsiTypeOptions, f as patchedDateToJson, yr as personneAuditionneeXsiTypeOptions, kn as pointOdjXsiTypeOptions, ft as positionMajoritaireOptions, Mr as positionPolitiqueOptions, ai as presenceOptions, Gt as procedureOptions, Be as quantiemeOptions, cr as questionUidRegex, Oe as questionXsiTypeOptions, pt as regimeOptions, mn as regionTypeOptions, je as reunionUidRegex, ti as reunionXsiTypeOptions, ir as scrutinUidRegex, xi as shortNameFromOrgane, ae as sortAmendementOptions, B as stateFromActePath, V as stateFromActes, yi as stateFromDossier, z as statusFromCodierLibelle, E as typeAuteurOptions, Ye as typeJoQuestionOptions, pn as typeMajoriteOptions, a as typeMimeNomOptions, c as typeMimeTypeOptions, Yt as typePointOdjOptions, l as typePositionOptions, Bn as typeQuestionOptions, qe as typeReunionOptions, We as uidXsiTypeOptions, I as uncapitalizeFirstLetter, Ti as urlFromDocument, Ei as urlFromScrutin, H as walkActes, U as walkDocumentAndDivisions };
|
package/lib/inserters.d.ts
CHANGED
|
@@ -274,7 +274,7 @@ export declare function insertReunionReferences(reunion: Reunion, data: OutputDa
|
|
|
274
274
|
comiteSecret: boolean;
|
|
275
275
|
procedure?: "discussion générale commune" | "procédure d'examen simplifiée-Article 103" | "procédure d'examen simplifiée-Article 106" | "procédure d'examen simplifiée-Article 107" | "procédure de législation en commission-Article 107-1" | undefined;
|
|
276
276
|
dossiersLegislatifsRefs?: string[] | undefined;
|
|
277
|
-
natureTravauxOdj?: "ODJPR" | "ODJSN" | undefined;
|
|
277
|
+
natureTravauxOdj?: "ODJAN" | "ODJPR" | "ODJSN" | undefined;
|
|
278
278
|
dateConfPres?: Date | undefined;
|
|
279
279
|
dateLettreMinistre?: Date | undefined;
|
|
280
280
|
}[] | undefined;
|
|
@@ -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-DePQCX4s.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-BQYUa4nr.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-bWVuhSOp.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 };
|
package/lib/parsers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _t as e, gt as t,
|
|
2
|
-
import { t as a } from "./amendements-
|
|
1
|
+
import { _t as e, gt as t, r as n, vt as r, yt as i } from "./amendements-DePQCX4s.js";
|
|
2
|
+
import { t as a } from "./amendements-DCRG5V86.js";
|
|
3
3
|
import o from "node:assert";
|
|
4
4
|
import s from "fs-extra";
|
|
5
5
|
import c from "node:path";
|
|
@@ -8407,22 +8407,22 @@ function Hu(e, t) {
|
|
|
8407
8407
|
}
|
|
8408
8408
|
//#endregion
|
|
8409
8409
|
//#region node_modules/date-fns/formatISO.js
|
|
8410
|
-
function Uu(
|
|
8411
|
-
let
|
|
8412
|
-
if (isNaN(+
|
|
8413
|
-
let a =
|
|
8410
|
+
function Uu(e, t) {
|
|
8411
|
+
let n = i(e, t?.in);
|
|
8412
|
+
if (isNaN(+n)) throw RangeError("Invalid time value");
|
|
8413
|
+
let a = t?.format ?? "extended", o = t?.representation ?? "complete", s = "", c = "", l = a === "extended" ? "-" : "", u = a === "extended" ? ":" : "";
|
|
8414
8414
|
if (o !== "time") {
|
|
8415
|
-
let
|
|
8416
|
-
s = `${
|
|
8415
|
+
let e = r(n.getDate(), 2), t = r(n.getMonth() + 1, 2);
|
|
8416
|
+
s = `${r(n.getFullYear(), 4)}${l}${t}${l}${e}`;
|
|
8417
8417
|
}
|
|
8418
8418
|
if (o !== "date") {
|
|
8419
|
-
let
|
|
8420
|
-
if (
|
|
8421
|
-
let
|
|
8422
|
-
c = `${
|
|
8419
|
+
let e = n.getTimezoneOffset();
|
|
8420
|
+
if (e !== 0) {
|
|
8421
|
+
let t = Math.abs(e), n = r(Math.trunc(t / 60), 2), i = r(t % 60, 2);
|
|
8422
|
+
c = `${e < 0 ? "+" : "-"}${n}:${i}`;
|
|
8423
8423
|
} else c = "Z";
|
|
8424
|
-
let
|
|
8425
|
-
|
|
8424
|
+
let t = r(n.getHours(), 2), i = r(n.getMinutes(), 2), a = r(n.getSeconds(), 2), o = s === "" ? "" : "T", l = [
|
|
8425
|
+
t,
|
|
8426
8426
|
i,
|
|
8427
8427
|
a
|
|
8428
8428
|
].join(u);
|
|
@@ -8432,11 +8432,11 @@ function Uu(t, n) {
|
|
|
8432
8432
|
}
|
|
8433
8433
|
//#endregion
|
|
8434
8434
|
//#region src/parsers/recherche_amendements.ts
|
|
8435
|
-
async function* Wu(e, t,
|
|
8436
|
-
for await (let [c, l] of Gu(e, t,
|
|
8435
|
+
async function* Wu(e, t, r, i, o, s = {}) {
|
|
8436
|
+
for await (let [c, l] of Gu(e, t, r, i, o, s)) a(l), yield [c, n.toAmendement(JSON.stringify(l))];
|
|
8437
8437
|
}
|
|
8438
|
-
async function* Gu(
|
|
8439
|
-
await s.ensureDir(
|
|
8438
|
+
async function* Gu(n, r, i, a, p, m = {}) {
|
|
8439
|
+
await s.ensureDir(n), o.strictEqual(/[?&]date_depot=/.exec(r), null, `URL ${r} already contains a deposit date`), o.strictEqual(/[?&]order=/.exec(r), null, `URL ${r} already contains a sort order`), o.strictEqual(/[?&]page=/.exec(r), null, `URL ${r} already contains a page number`), i && o.notStrictEqual(/[?&]etat=/.exec(r), null, `In incremental mode, URL ${r} must contain an "etat" query parameter`), r += (r.includes("?") ? "&" : "?") + "order=date_depot,desc&page=1", a != null && o.notStrictEqual(/\d{4}-\d{2}-\d{2}/.exec(a), null, `Invalid format for minimum date: ${a}`);
|
|
8440
8440
|
let ee = 0;
|
|
8441
8441
|
iterSearchPages: for (;;) {
|
|
8442
8442
|
m.verbose && console.log(`Fetching amendements search page at ${r}…`);
|
|
@@ -8470,21 +8470,21 @@ async function* Gu(e, r, i, a, p, m = {}) {
|
|
|
8470
8470
|
o.notStrictEqual(ie.length, 0);
|
|
8471
8471
|
for (let l of ie) {
|
|
8472
8472
|
if (ee++, a != null || p != null) {
|
|
8473
|
-
let
|
|
8474
|
-
if (o.strictEqual(
|
|
8475
|
-
let r =
|
|
8476
|
-
if (Uu(
|
|
8473
|
+
let n = l.querySelectorAll("td");
|
|
8474
|
+
if (o.strictEqual(n.length, 11, `Unexpected number of columns in amendment row: ${l.outerHTML}`), a != null) {
|
|
8475
|
+
let r = n[10];
|
|
8476
|
+
if (Uu(t(r.text, "d MMMM y", /* @__PURE__ */ new Date(), { locale: e }), { representation: "date" }) < a) break iterSearchPages;
|
|
8477
8477
|
}
|
|
8478
8478
|
if (p != null) {
|
|
8479
|
-
let r =
|
|
8480
|
-
if (r.text && Uu(
|
|
8479
|
+
let r = n[7];
|
|
8480
|
+
if (r.text && Uu(t(r.text, "d MMMM y", /* @__PURE__ */ new Date(), { locale: e }), { representation: "date" }) < p) continue;
|
|
8481
8481
|
}
|
|
8482
8482
|
}
|
|
8483
8483
|
let h = l.getAttribute("data-href");
|
|
8484
8484
|
o.notStrictEqual(h, void 0);
|
|
8485
8485
|
let g = h.split("/");
|
|
8486
8486
|
o.strictEqual(g[0], "", `Unexpected URL path for amendement: ${h}`), o.strictEqual(g[1], "dyn", `Unexpected URL path for amendement: ${h}`);
|
|
8487
|
-
let _ = c.join(
|
|
8487
|
+
let _ = c.join(n, ...g.slice(2)) + ".html";
|
|
8488
8488
|
await s.ensureDir(c.dirname(_));
|
|
8489
8489
|
let v = await s.pathExists(_) ? await s.readFile(_, "utf8") : null, ne = l.outerHTML, re = `---\n${d.dump({
|
|
8490
8490
|
position: te - ee,
|
|
@@ -141,6 +141,7 @@ export declare const PointOdjCleanSchema: z.ZodObject<{
|
|
|
141
141
|
}>;
|
|
142
142
|
comiteSecret: z.ZodBoolean;
|
|
143
143
|
natureTravauxOdj: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
ODJAN: "ODJAN";
|
|
144
145
|
ODJPR: "ODJPR";
|
|
145
146
|
ODJSN: "ODJSN";
|
|
146
147
|
}>>;
|
|
@@ -223,6 +224,7 @@ export declare const OdjCleanSchema: z.ZodObject<{
|
|
|
223
224
|
}>;
|
|
224
225
|
comiteSecret: z.ZodBoolean;
|
|
225
226
|
natureTravauxOdj: z.ZodOptional<z.ZodEnum<{
|
|
227
|
+
ODJAN: "ODJAN";
|
|
226
228
|
ODJPR: "ODJPR";
|
|
227
229
|
ODJSN: "ODJSN";
|
|
228
230
|
}>>;
|
|
@@ -553,6 +555,7 @@ export declare const ReunionCleanSchema: z.ZodObject<{
|
|
|
553
555
|
}>;
|
|
554
556
|
comiteSecret: z.ZodBoolean;
|
|
555
557
|
natureTravauxOdj: z.ZodOptional<z.ZodEnum<{
|
|
558
|
+
ODJAN: "ODJAN";
|
|
556
559
|
ODJPR: "ODJPR";
|
|
557
560
|
ODJSN: "ODJSN";
|
|
558
561
|
}>>;
|
|
@@ -740,6 +743,7 @@ export declare const AgendasCleanSchema: z.ZodObject<{
|
|
|
740
743
|
}>;
|
|
741
744
|
comiteSecret: z.ZodBoolean;
|
|
742
745
|
natureTravauxOdj: z.ZodOptional<z.ZodEnum<{
|
|
746
|
+
ODJAN: "ODJAN";
|
|
743
747
|
ODJPR: "ODJPR";
|
|
744
748
|
ODJSN: "ODJSN";
|
|
745
749
|
}>>;
|
|
@@ -196,6 +196,7 @@ export declare const ReunionEnrichedSchema: z.ZodObject<{
|
|
|
196
196
|
}>;
|
|
197
197
|
comiteSecret: z.ZodBoolean;
|
|
198
198
|
natureTravauxOdj: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
ODJAN: "ODJAN";
|
|
199
200
|
ODJPR: "ODJPR";
|
|
200
201
|
ODJSN: "ODJSN";
|
|
201
202
|
}>>;
|
|
@@ -387,6 +388,7 @@ export declare const AgendasEnrichedSchema: z.ZodObject<{
|
|
|
387
388
|
}>;
|
|
388
389
|
comiteSecret: z.ZodBoolean;
|
|
389
390
|
natureTravauxOdj: z.ZodOptional<z.ZodEnum<{
|
|
391
|
+
ODJAN: "ODJAN";
|
|
390
392
|
ODJPR: "ODJPR";
|
|
391
393
|
ODJSN: "ODJSN";
|
|
392
394
|
}>>;
|
|
@@ -19,11 +19,12 @@ export type FormatReunion = z.infer<typeof FormatReunionSchema>;
|
|
|
19
19
|
/**
|
|
20
20
|
* Available options for nature des travaux de l'ordre du jour.
|
|
21
21
|
*/
|
|
22
|
-
export declare const natureTravauxOdjOptions: readonly ["ODJPR", "ODJSN"];
|
|
22
|
+
export declare const natureTravauxOdjOptions: readonly ["ODJAN", "ODJPR", "ODJSN"];
|
|
23
23
|
/**
|
|
24
24
|
* Zod schema for nature des travaux de l'ordre du jour.
|
|
25
25
|
*/
|
|
26
26
|
export declare const NatureTravauxOdjSchema: z.ZodEnum<{
|
|
27
|
+
ODJAN: "ODJAN";
|
|
27
28
|
ODJPR: "ODJPR";
|
|
28
29
|
ODJSN: "ODJSN";
|
|
29
30
|
}>;
|
|
@@ -321,6 +322,7 @@ export declare const PointOdjElementRawSchema: z.ZodObject<{
|
|
|
321
322
|
comiteSecret: z.ZodString;
|
|
322
323
|
textesAssocies: z.ZodNull;
|
|
323
324
|
natureTravauxODJ: z.ZodOptional<z.ZodEnum<{
|
|
325
|
+
ODJAN: "ODJAN";
|
|
324
326
|
ODJPR: "ODJPR";
|
|
325
327
|
ODJSN: "ODJSN";
|
|
326
328
|
}>>;
|
|
@@ -401,6 +403,7 @@ export declare const PointsOdjRawSchema: z.ZodObject<{
|
|
|
401
403
|
comiteSecret: z.ZodString;
|
|
402
404
|
textesAssocies: z.ZodNull;
|
|
403
405
|
natureTravauxODJ: z.ZodOptional<z.ZodEnum<{
|
|
406
|
+
ODJAN: "ODJAN";
|
|
404
407
|
ODJPR: "ODJPR";
|
|
405
408
|
ODJSN: "ODJSN";
|
|
406
409
|
}>>;
|
|
@@ -489,6 +492,7 @@ export declare const OdjRawSchema: z.ZodObject<{
|
|
|
489
492
|
comiteSecret: z.ZodString;
|
|
490
493
|
textesAssocies: z.ZodNull;
|
|
491
494
|
natureTravauxODJ: z.ZodOptional<z.ZodEnum<{
|
|
495
|
+
ODJAN: "ODJAN";
|
|
492
496
|
ODJPR: "ODJPR";
|
|
493
497
|
ODJSN: "ODJSN";
|
|
494
498
|
}>>;
|
|
@@ -918,6 +922,7 @@ export declare const ReunionReunionRawSchema: z.ZodObject<{
|
|
|
918
922
|
comiteSecret: z.ZodString;
|
|
919
923
|
textesAssocies: z.ZodNull;
|
|
920
924
|
natureTravauxODJ: z.ZodOptional<z.ZodEnum<{
|
|
925
|
+
ODJAN: "ODJAN";
|
|
921
926
|
ODJPR: "ODJPR";
|
|
922
927
|
ODJSN: "ODJSN";
|
|
923
928
|
}>>;
|
|
@@ -1111,6 +1116,7 @@ export declare const ReunionRawSchema: z.ZodObject<{
|
|
|
1111
1116
|
comiteSecret: z.ZodString;
|
|
1112
1117
|
textesAssocies: z.ZodNull;
|
|
1113
1118
|
natureTravauxODJ: z.ZodOptional<z.ZodEnum<{
|
|
1119
|
+
ODJAN: "ODJAN";
|
|
1114
1120
|
ODJPR: "ODJPR";
|
|
1115
1121
|
ODJSN: "ODJSN";
|
|
1116
1122
|
}>>;
|
|
@@ -1309,6 +1315,7 @@ export declare const ReunionElementRawSchema: z.ZodObject<{
|
|
|
1309
1315
|
comiteSecret: z.ZodString;
|
|
1310
1316
|
textesAssocies: z.ZodNull;
|
|
1311
1317
|
natureTravauxODJ: z.ZodOptional<z.ZodEnum<{
|
|
1318
|
+
ODJAN: "ODJAN";
|
|
1312
1319
|
ODJPR: "ODJPR";
|
|
1313
1320
|
ODJSN: "ODJSN";
|
|
1314
1321
|
}>>;
|
|
@@ -1491,6 +1498,7 @@ export declare const ReunionsRawSchema: z.ZodObject<{
|
|
|
1491
1498
|
comiteSecret: z.ZodString;
|
|
1492
1499
|
textesAssocies: z.ZodNull;
|
|
1493
1500
|
natureTravauxODJ: z.ZodOptional<z.ZodEnum<{
|
|
1501
|
+
ODJAN: "ODJAN";
|
|
1494
1502
|
ODJPR: "ODJPR";
|
|
1495
1503
|
ODJSN: "ODJSN";
|
|
1496
1504
|
}>>;
|
|
@@ -1675,6 +1683,7 @@ export declare const AgendasRawSchema: z.ZodObject<{
|
|
|
1675
1683
|
comiteSecret: z.ZodString;
|
|
1676
1684
|
textesAssocies: z.ZodNull;
|
|
1677
1685
|
natureTravauxODJ: z.ZodOptional<z.ZodEnum<{
|
|
1686
|
+
ODJAN: "ODJAN";
|
|
1678
1687
|
ODJPR: "ODJPR";
|
|
1679
1688
|
ODJSN: "ODJSN";
|
|
1680
1689
|
}>>;
|