@tricoteuses/assemblee 3.2.16 → 3.3.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/lib/cleaners.js +7 -7
- package/lib/index.d.ts +1 -0
- package/lib/index.js +20 -20
- package/lib/{loaders-Bqy18Qs1.js → loaders-DbLMTnJA.js} +152 -152
- package/lib/loaders.js +1 -1
- package/lib/open_data/artifacts.d.ts +38 -0
- package/lib/parsers/index.d.ts +2 -0
- package/lib/parsers/plf/credits.d.ts +2 -0
- package/lib/parsers/plf/credits.test.d.ts +1 -0
- package/lib/parsers/plf/depot.d.ts +2 -0
- package/lib/parsers/plf/depot.test.d.ts +1 -0
- package/lib/parsers/plf/index.d.ts +3 -0
- package/lib/parsers/plf/integration.test.d.ts +1 -0
- package/lib/parsers/plf/later_stage.d.ts +2 -0
- package/lib/parsers/plf/later_stage.test.d.ts +1 -0
- package/lib/parsers/plf/parser_utils.d.ts +11 -0
- package/lib/parsers/plf/test_utils.d.ts +18 -0
- package/lib/parsers/plf/variant_detection.d.ts +2 -0
- package/lib/parsers/plf/variant_detection.test.d.ts +1 -0
- package/lib/parsers/utils.d.ts +7 -0
- package/lib/parsers.js +3726 -3326
- package/lib/schemas/clean/dossiers_legislatifs.d.ts +97 -0
- package/lib/schemas/enriched/dossiers_legislatifs.d.ts +6 -0
- package/lib/scripts/monitor_open_data_updates.d.ts +2 -0
- package/lib/scripts/retrieve_open_data.d.ts +1 -0
- package/lib/{scrutins-D1qWLlRT.js → scrutins-CcBKz4TE.js} +156 -121
- package/package.json +1 -1
package/lib/cleaners.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as e, cr as t, tr as n } from "./scrutins-CcBKz4TE.js";
|
|
2
2
|
import { i as r, n as i, r as a, t as o } from "./amendements-C3RgTrF-.js";
|
|
3
|
-
import "./loaders-
|
|
3
|
+
import "./loaders-DbLMTnJA.js";
|
|
4
4
|
import s from "node:assert";
|
|
5
5
|
import "fs-extra";
|
|
6
6
|
import "node:path";
|
|
@@ -608,18 +608,18 @@ function D(e) {
|
|
|
608
608
|
//#endregion
|
|
609
609
|
//#region src/cleaners/questions.ts
|
|
610
610
|
function O(e) {
|
|
611
|
-
let
|
|
612
|
-
return r(
|
|
611
|
+
let t = n.parse(e);
|
|
612
|
+
return r(t, { recursive: !0 }), t;
|
|
613
613
|
}
|
|
614
614
|
//#endregion
|
|
615
615
|
//#region src/cleaners/debats.ts
|
|
616
|
-
function k(
|
|
617
|
-
let i =
|
|
616
|
+
function k(n) {
|
|
617
|
+
let i = t.safeParse(n);
|
|
618
618
|
if (i.success) {
|
|
619
619
|
let e = i.data;
|
|
620
620
|
return r(e, { recursive: !0 }), e;
|
|
621
621
|
}
|
|
622
|
-
return e.parse(
|
|
622
|
+
return e.parse(n);
|
|
623
623
|
}
|
|
624
624
|
//#endregion
|
|
625
625
|
export { c as cleanActeur, o as cleanAmendement, k as cleanCompteRendu, d as cleanDocumentOrDivision, _ as cleanDossierParlementaire, y as cleanOrgane, O as cleanQuestion, x as cleanReunion, E as cleanScrutin };
|
package/lib/index.d.ts
CHANGED
|
@@ -20,5 +20,6 @@ export { avantAApresOptions, etatAmendementCodeOptions, etatAmendementLibelleOpt
|
|
|
20
20
|
export { type CompteRenduClean as CompteRendu, CompteRenduCleanSchema as CompteRenduSchema, type ContenuClean as Contenu, ContenuCleanSchema as ContenuSchema, type FinSeanceClean as FinSeance, FinSeanceCleanSchema as FinSeanceSchema, type MetadonneesClean as Metadonnees, MetadonneesCleanSchema as MetadonneesSchema, type OrateurElementClean as OrateurElement, OrateurElementCleanSchema as OrateurElementSchema, type OrateursClean as Orateurs, OrateursCleanSchema as OrateursSchema, type PointClean as Point, PointCleanSchema as PointSchema, type QuantiemesClean as Quantiemes, QuantiemesCleanSchema as QuantiemesSchema, type SommaireClean as Sommaire, SommaireCleanSchema as SommaireSchema, type SommaireElementClean as SommaireElement, SommaireElementCleanSchema as SommaireElementSchema, type TexteClean as Texte, TexteCleanSchema as TexteSchema, type TitreStructClean as TitreStruct, TitreStructCleanSchema as TitreStructSchema, } from './schemas/clean/debats.js';
|
|
21
21
|
export { acteLegislatifXsiTypeOptions, documentXsiTypeOptions, dossierParlementaireXsiTypeOptions, type ActeLegislatifClean as ActeLegislatif, ActeLegislatifCleanSchema as ActeLegislatifSchema, type ActeLegislatifXsiType as TypeActeLegislatif, type AmendementsCommissionElementClean as AmendementsCommission, AmendementsCommissionElementCleanSchema as AmendementsCommissionSchema, type AmendementsSeanceClean as AmendementsSeance, AmendementsSeanceCleanSchema as AmendementsSeanceSchema, type AuteurActeurClean as AuteurActeur, AuteurActeurCleanSchema as AuteurActeurSchema, type AuteurClean as Auteur, AuteurCleanSchema as AuteurSchema, type Cause, type ChronoClean as ChronoDocument, ChronoCleanSchema as ChronoDocumentSchema, type ClassificationClean as Classification, ClassificationCleanSchema as ClassificationSchema, type ContributionInternauteClean as ContributionInternaute, ContributionInternauteCleanSchema as ContributionInternauteSchema, type CorrectionClean as Correction, CorrectionCleanSchema as CorrectionSchema, type CoSignataireElementClean as CoSignataireElement, CoSignataireElementCleanSchema as CoSignataireElementSchema, type CoSignataireOrganeClean as CoSignataireOrgane, CoSignataireOrganeCleanSchema as CoSignataireOrganeSchema, type CycleDeVieClean as CycleDeVieDocument, CycleDeVieCleanSchema as CycleDeVieDocumentSchema, type DepotAmendementsClean as DepotAmendements, DepotAmendementsCleanSchema as DepotAmendementsSchema, type DivisionClean as Division, DivisionCleanSchema as DivisionSchema, type DocumentClean as Document, DocumentCleanSchema as DocumentSchema, type DocumentDenominationStructurelle, type DocumentXsiType as TypeDocument, type DossierParlementaireClean as DossierParlementaire, DossierParlementaireCleanSchema as DossierParlementaireSchema, type DossierParlementaireXsiType, type EtudePlfClean as EtudePlf, EtudePlfCleanSchema as EtudePlfSchema, type FamCodeEtLibelleClean as FamCodeEtLibelle, FamCodeEtLibelleCleanSchema as FamCodeEtLibelleSchema, type FamilleClean as Famille, FamilleCleanSchema as FamilleSchema, type FusionDossierClean as FusionDossier, FusionDossierCleanSchema as FusionDossierSchema, type ImprimerieClean as Imprimerie, ImprimerieCleanSchema as ImprimerieSchema, type IndexationClean as Indexation, IndexationCleanSchema as IndexationSchema, type InfoJoceClean as InfoJoce, InfoJoceCleanSchema as InfoJoceSchema, type InfoJoElementClean as InfoJo, InfoJoElementCleanSchema as InfoJoSchema, type InitiateurActeurElementClean as InitiateurActeur, InitiateurActeurElementCleanSchema as InitiateurActeurSchema, type InitiateurClean as Initiateur, InitiateurCleanSchema as InitiateurSchema, type LibelleActeClean as LibelleActe, LibelleActeCleanSchema as LibelleActeSchema, type MissionMinefiElementClean as MissionMinefi, MissionMinefiElementCleanSchema as MissionMinefiSchema, type Motif, type NoticeClean as Notice, NoticeCleanSchema as NoticeSchema, type ProcedureParlementaireClean as ProcedureParlementaire, ProcedureParlementaireCleanSchema as ProcedureParlementaireSchema, type Provenance, type Qualite, type RapporteurClean as Rapporteur, RapporteurCleanSchema as RapporteurSchema, type SousTypeClean as SousType, SousTypeCleanSchema as SousTypeSchema, type StatutAdoption, type TexteAssocieElementClean as TexteAssocie, TexteAssocieElementCleanSchema as TexteAssocieSchema, type TexteEuropeenClean as TexteEuropeen, TexteEuropeenCleanSchema as TexteEuropeenSchema, type TexteExterneAssocieClean as TexteExterneAssocie, TexteExterneAssocieCleanSchema as TexteExterneAssocieSchema, type TexteExterneAssocieTypeDoc, type ThemeClean as Theme, ThemeCleanSchema as ThemeSchema, type ThemesClean as Themes, ThemesCleanSchema as ThemesSchema, type TitreDossierClean as TitreDossier, TitreDossierCleanSchema as TitreDossierSchema, type TitresClean as Titres, TitresCleanSchema as TitresSchema, type TypeBudget, type TypeCorrection, type TypeJo, type TypeMission, type TypeTexte, } from './schemas/clean/dossiers_legislatifs.js';
|
|
22
22
|
export { type ContenuSubdivisionEnriched as ContenuSubdivision, type SubdivisionEnriched as Subdivision, } from './schemas/enriched/dossiers_legislatifs.js';
|
|
23
|
+
export { PlfBudgetTypeSchema, PlfLigneSchema, PlfProgrammeSchema, PlfMissionSchema, PlfCreditsSectionSchema, type PlfBudgetType, type PlfLigne, type PlfProgramme, type PlfMission, type PlfCreditsSection, } from './schemas/clean/dossiers_legislatifs.js';
|
|
23
24
|
export { typeJoQuestionOptions, type AnalyseClean as Analyse, AnalyseCleanSchema as AnalyseSchema, type AuteurQuestionClean as AuteurQuestion, AuteurQuestionCleanSchema as AuteurQuestionSchema, type ClotureClean as Cloture, ClotureCleanSchema as ClotureSchema, type GroupeClean as Groupe, GroupeCleanSchema as GroupeSchema, type IdentifiantClean as Identifiant, IdentifiantCleanSchema as IdentifiantSchema, type IdentiteAuteurQuestionClean as IdentiteAuteurQuestion, IdentiteAuteurQuestionCleanSchema as IdentiteAuteurQuestionSchema, type IndexationAnClean as IndexationAn, IndexationAnCleanSchema as IndexationAnSchema, type InfoJoQuestionClean as InfoJoQuestion, InfoJoQuestionCleanSchema as InfoJoQuestionSchema, type MinAttribElementClean as MinAttribElement, MinAttribElementCleanSchema as MinAttribElementSchema, type MinAttribsClean as MinAttribs, MinAttribsCleanSchema as MinAttribsSchema, type QuestionClean as Question, QuestionCleanSchema as QuestionSchema, type RenouvellementClean as Renouvellement, RenouvellementCleanSchema as RenouvellementSchema, type RenouvellementCleans as Renouvellements, RenouvellementCleansSchema as RenouvellementsSchema, type SignalementClean as Signalement, SignalementCleanSchema as SignalementSchema, type TexteQuestionClean as TexteQuestion, TexteQuestionCleanSchema as TexteQuestionSchema, type TextesQuestionClean as TextesQuestion, TextesQuestionCleanSchema as TextesQuestionSchema, type TextesReponseClean as TextesReponse, TextesReponseCleanSchema as TextesReponseSchema, type TypeJoQuestion, } from './schemas/clean/questions.js';
|
|
24
25
|
export { type DossierLegislatifObjetClean as DossierLegislatifObjet, DossierLegislatifObjetCleanSchema as DossierLegislatifObjetSchema, type DecompteNominatifClean as DecompteNominatif, DecompteNominatifCleanSchema as DecompteNominatifSchema, type DecompteVoixClean as DecompteVoix, DecompteVoixCleanSchema as DecompteVoixSchema, type DemandeurClean as Demandeur, DemandeurCleanSchema as DemandeurSchema, type DysfonctionnementClean as Dysfonctionnement, DysfonctionnementCleanSchema as DysfonctionnementSchema, type MiseAuPointClean as MiseAuPoint, MiseAuPointCleanSchema as MiseAuPointSchema, type ObjetVoteClean as ObjetVote, ObjetVoteCleanSchema as ObjetVoteSchema, type ScrutinClean as Scrutin, ScrutinCleanSchema as ScrutinSchema, type SortScrutinClean as SortScrutin, SortScrutinCleanSchema as SortScrutinSchema, type SyntheseVoteClean as SyntheseVote, SyntheseVoteCleanSchema as SyntheseVoteSchema, type TypeVoteClean as TypeVote, TypeVoteCleanSchema as TypeVoteSchema, type VentilationVotesClean as VentilationVotes, VentilationVotesCleanSchema as VentilationVotesSchema, type VentilationVotesGroupeClean as VentilationVotesGroupe, VentilationVotesGroupeCleanSchema as VentilationVotesGroupeSchema, type VotantClean as Votant, VotantCleanSchema as VotantSchema, type VoteClean as Vote, VoteCleanSchema as VoteSchema, } from './schemas/clean/scrutins.js';
|
package/lib/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
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-DmjkxpwG.js";
|
|
2
|
-
import { $ as Te, $n as Ee, $
|
|
2
|
+
import { $ as Te, $n as Ee, $r as De, $t as Oe, A as ke, An as Ae, Ar as je, At as Me, B as Ne, Bn as Pe, Br as Fe, Bt as Ie, C as Le, Cn as Re, Cr as ze, Ct as Be, D as Ve, Dn as He, Dr as Ue, Dt 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, N as Et, Nn as Dt, Nr as Ot, Nt as kt, On as At, Or as jt, Ot as Mt, P as Nt, Pn as Pt, Pr as Ft, Pt as It, Qn as Lt, Qr as Rt, Qt as zt, R as Bt, Rn as Vt, Rr as Ht, Rt as Ut, S as Wt, Sn as Gt, Sr as Kt, St as qt, T as Jt, Tn as Yt, Tr as Xt, Tt as Zt, U as Qt, Un as $t, Ur 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, Xn as dn, Xr as fn, Xt as pn, Y as mn, Yn as hn, Yr as gn, Yt as _n, Z as vn, Zn as yn, Zr as bn, Zt as xn, _ as F, _n as Sn, _r as Cn, _t as wn, a as Tn, an as En, ar as Dn, at as On, b as kn, bn as An, br as jn, bt as Mn, c as Nn, cn as Pn, ct as Fn, d as In, dn as Ln, dr as Rn, dt as zn, ei as Bn, en as Vn, er as Hn, et as Un, f as Wn, fn as Gn, fr as Kn, ft as qn, g as Jn, gn as Yn, gr as Xn, gt as Zn, h as Qn, hn as $n, hr as er, ht as tr, i as nr, in as rr, ir, it as ar, j as or, jn as sr, jr as cr, jt as lr, k as ur, kn as dr, kr as fr, kt as pr, lr as mr, lt as hr, m as gr, mn as _r, mr as vr, mt as yr, n as br, ni as xr, nn as Sr, nr as Cr, nt as wr, o as Tr, on as Er, or as Dr, ot as Or, p as kr, pn as Ar, pr as jr, pt as Mr, q as Nr, qn as Pr, qr as Fr, qt as Ir, r as Lr, rn as Rr, rr as zr, rt as Br, s as Vr, sn as Hr, sr as Ur, st as Wr, t as Gr, tn as Kr, tt as qr, u as Jr, un as Yr, ur as Xr, ut as Zr, v as Qr, vn as $r, vr as ei, vt as ti, w as ni, wn as ri, wr as ii, wt as ai, x as oi, xn as si, xr as ci, xt as li, y as ui, yn as di, yr as fi, yt as pi, z as mi, zn as hi, zr as gi, zt as _i } from "./scrutins-CcBKz4TE.js";
|
|
3
3
|
//#region src/api.ts
|
|
4
4
|
var I = /* @__PURE__ */ function(e) {
|
|
5
5
|
return e.Amendements = "amendements", e;
|
|
6
|
-
}({}),
|
|
6
|
+
}({}), vi = 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
|
+
}({}), yi = Object.values(L);
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/strings.ts
|
|
11
|
-
function
|
|
11
|
+
function bi(e) {
|
|
12
12
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
13
13
|
}
|
|
14
14
|
function R(e) {
|
|
@@ -16,12 +16,12 @@ function R(e) {
|
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/dossiers_legislatifs.ts
|
|
19
|
-
var
|
|
19
|
+
var xi = /* @__PURE__ */ function(e) {
|
|
20
20
|
return e.Failure = "FAILURE", e.Success = "SUCCESS", e;
|
|
21
|
-
}({}),
|
|
21
|
+
}({}), Si = /* @__PURE__ */ function(e) {
|
|
22
22
|
return e.Failure = "FAILURE", e.InProgress = "IN_PROGRESS", e.Success = "SUCCESS", e;
|
|
23
23
|
}({});
|
|
24
|
-
function
|
|
24
|
+
function Ci(e) {
|
|
25
25
|
if (e.actesLegislatifs !== void 0) {
|
|
26
26
|
for (let t of H(e.actesLegislatifs)) if (t.codeActe.match(/^AN.*-COM-FOND-SAISIE$/) !== null && t.organeRef !== void 0 && t.organeRef !== "PO211494") return t.organeRef;
|
|
27
27
|
}
|
|
@@ -145,7 +145,7 @@ function V(e, t, n) {
|
|
|
145
145
|
}
|
|
146
146
|
return null;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function wi(e) {
|
|
149
149
|
let t = V(e, [], e.actesLegislatifs);
|
|
150
150
|
return t === null ? {
|
|
151
151
|
currentStatus: "IN_PROGRESS",
|
|
@@ -226,7 +226,7 @@ function G(e, t, n) {
|
|
|
226
226
|
}
|
|
227
227
|
return e;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Ti(e, t, n) {
|
|
230
230
|
if (!n.has(e.uid)) {
|
|
231
231
|
n.add(e.uid);
|
|
232
232
|
let r = e.signataires, i = r.auteur;
|
|
@@ -370,7 +370,7 @@ function Z(e, t, n) {
|
|
|
370
370
|
}
|
|
371
371
|
//#endregion
|
|
372
372
|
//#region src/organes.ts
|
|
373
|
-
function
|
|
373
|
+
function Ei(e) {
|
|
374
374
|
if (e == null) return "Organe inconnu";
|
|
375
375
|
switch (e.codeType) {
|
|
376
376
|
case "CMP": return "Commission mixte paritaire";
|
|
@@ -380,9 +380,9 @@ function xi(e) {
|
|
|
380
380
|
}
|
|
381
381
|
//#endregion
|
|
382
382
|
//#region src/urls.ts
|
|
383
|
-
var
|
|
383
|
+
var Di = /* @__PURE__ */ function(e) {
|
|
384
384
|
return e.Html = "html", e.Pdf = "pdf", e.RawHtml = "raw-html", e;
|
|
385
|
-
}({}), Q = /^AMANR\d+L(?<legislature>\d+)PO\d+[A-Z]+(?<texteNumero>\d+)P\d+D\d+N(?<numero>\d+)$/,
|
|
385
|
+
}({}), Q = /^AMANR\d+L(?<legislature>\d+)PO\d+[A-Z]+(?<texteNumero>\d+)P\d+D\d+N(?<numero>\d+)$/, Oi = {
|
|
386
386
|
ACIN: {
|
|
387
387
|
directory: "projets",
|
|
388
388
|
prefix: "pl",
|
|
@@ -494,14 +494,14 @@ var Si = /* @__PURE__ */ function(e) {
|
|
|
494
494
|
suffix: "-a0"
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
|
-
function
|
|
497
|
+
function ki(e) {
|
|
498
498
|
switch (e) {
|
|
499
499
|
case "html": return ".asp";
|
|
500
500
|
case "pdf": return ".pdf";
|
|
501
501
|
case "raw-html": return ".asp";
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function*
|
|
504
|
+
function* Ai(e, t = void 0, n = !1) {
|
|
505
505
|
if (t === void 0 || t === "raw-html") {
|
|
506
506
|
yield {
|
|
507
507
|
format: "raw-html",
|
|
@@ -545,11 +545,11 @@ function* Ti(e, t = void 0, n = !1) {
|
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function ji(e, t) {
|
|
549
549
|
let n = $(e, t);
|
|
550
550
|
return n === null ? null : n.url;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Mi(e, t) {
|
|
553
553
|
if (t === "json" || t === "xml") return Q.test(e) ? `https://www.assemblee-nationale.fr/dyn/opendata/${e}.${t}` : null;
|
|
554
554
|
let n = e.match(Q);
|
|
555
555
|
if (n?.groups === void 0) return null;
|
|
@@ -560,12 +560,12 @@ function Di(e, t) {
|
|
|
560
560
|
case "rtf": return `${o}.${t}`;
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Ni(e) {
|
|
564
564
|
let t = /^VTANR([0-9]+)L([0-9]+)V([0-9]+)$/.exec(e.uid);
|
|
565
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]}`;
|
|
566
566
|
}
|
|
567
567
|
function $(e, t, n = !1) {
|
|
568
|
-
let r =
|
|
568
|
+
let r = ki(t), i = /^(.{4})([ANS]*)(R[0-9])([LS]*)([0-9]*)([BTACP]*)(.*)$/.exec(e.uid);
|
|
569
569
|
if (i === null) return n && console.log(`Unable to generate URL from document or division with unexpected UID: "${e.uid}"`), null;
|
|
570
570
|
if (i[2] === "SN") return n && console.log(`Unable to generate URL for document or division in Sénat. UID: "${e.uid}"`), null;
|
|
571
571
|
let a = i[5], o = i[7];
|
|
@@ -579,7 +579,7 @@ function $(e, t, n = !1) {
|
|
|
579
579
|
TAP: "TADO"
|
|
580
580
|
}[i[6]] || i[1];
|
|
581
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}`);
|
|
582
|
-
let c =
|
|
582
|
+
let c = Oi[s];
|
|
583
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;
|
|
584
584
|
let l = t === "pdf" ? `pdf/${c.directory}` : c.directory;
|
|
585
585
|
return {
|
|
@@ -588,4 +588,4 @@ function $(e, t, n = !1) {
|
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
590
|
//#endregion
|
|
591
|
-
export { te as AccordGouvernementDepotHorsDelaiSchema,
|
|
591
|
+
export { te as AccordGouvernementDepotHorsDelaiSchema, st as ActeLegislatifSchema, Pn as ActeurSchema, oe as ActionSchema, Yr as AdresseSchema, M as AlineaSchema, C as AmendementSchema, yt as AmendementsCommissionSchema, k as AmendementsConvert, h as AmendementsSchema, Bt as AmendementsSeanceSchema, F as AnalyseSchema, mi as AuteurActeurSchema, pe as AuteurAmendementSchema, Qr as AuteurQuestionSchema, Ne as AuteurSchema, w as AvantAppelSchema, bt as CausePositionVoteSchema, tn as ChronoDocumentSchema, ln as ChronoSchema, Ln as CibleSchema, Ot as CivSchema, rt as ClassificationSchema, ui as ClotureSchema, Qt as CoSignataireElementSchema, on as CoSignataireOrganeSchema, Dr as CodeActeSchema, we as CodeEtatSchema, Ft as CodeNatureDepSchema, Vt as CodeSortScrutinSchema, Ze as CodeTypeOrganeSchema, hi as CodeTypeVoteSchema, Gn as CollaborateurSchema, Me as CompteRenduSchema, A as ContenuAmendementSchema, ge as ContenuAuteurSchema, lr as ContenuSchema, $e as ContributionInternauteSchema, y as CorpsAmendementSchema, ht as CorrectionSchema, Nr as CycleDeVieDocumentSchema, nt as CycleDeVieReunionSchema, N as CycleDeVieSchema, mr as DecisionSchema, Gr as DecompteNominatifSchema, br as DecompteVoixSchema, vt as DemandeurActeurSchema, Ir as DemandeurOrganeSchema, Lr as DemandeurSchema, mt as DemandeursSchema, lt as DepNaisSchema, Ar as DepartementSchema, _r as DeportSchema, dt as DepotAmendementsSchema, ve as DiscussionSchema, E as DispositifAmdtCreditPLFRSchema, u as DispositifAmdtCreditPLFSchema, mn as DivisionSchema, t as DivisionTypeSchema, un as DocumentSchema, Di as DocumentUrlFormat, nr as DossierLegislatifObjetSchema, vn as DossierParlementaireSchema, Tn as DysfonctionnementSchema, $n as ElectionSchema, p as EtatAmendementSchema, Yn as EtatCivilSchema, f as EtatDesTraitementsSchema, Rn as EtatSchema, Te as EtudePlfSchema, I as Facet, Un as FamCodeEtLibelleSchema, xt as FamSocProEnumSchema, qr as FamilleSchema, kt as FinSeanceSchema, xi as FinalStatus, L as Follow, Kn as FormatReunionSchema, wr as FusionDossierSchema, kn as GroupeSchema, _n as IdentPersonneAuditionneeSchema, Sn as IdentSchema, oi as IdentifiantSchema, pn as IdentifiantsSchema, fe as IdentificationSchema, Wt as IdentiteAuteurQuestionSchema, Br as ImprimerieSchema, Le as IndexationAnSchema, ar as IndexationSchema, ni as InfoJoQuestionSchema, On as InfoJoSchema, Or as InfoJoceSchema, $r as InfoNaissanceSchema, di as InfosQualiteSchema, xn as InfosReunionsInternationaleSchema, Wr as InitiateurActeurSchema, Fn as InitiateurSchema, hr as LibelleActeSchema, Ht as LibelleSchema, Pe as LibelleSortScrutinSchema, nn as LibelleTypeVoteSchema, zt as LieuReunionSchema, it as LieuVoteSchema, Ce as LigneCreditPLFRSchema, be as LigneCreditPLFSchema, he as LoiReferenceSchema, An as MandatSchema, gi as MandatXsiTypeSchema, si as MandatureSchema, It as MetadonneesSchema, Jt as MinAttribElementSchema, Ge as MinAttribsSchema, Tr as MiseAuPointSchema, Zr as MissionMinefiSchema, Se as MissionViseeSchema, $t as ModePublicationDesVotesSchema, jr as NatureTravauxOdjSchema, zn as NoticeSchema, Vr as ObjetVoteSchema, Oe as OdjSchema, Qe as OrateurElementSchema, ut as OrateursSchema, Re as OrganeLieuSchema, Gt as OrganeSchema, Fe as OrganeXsiTypeSchema, Vn as ParticipantInterneSchema, Kr as ParticipantsSchema, Sr as PersonneAuditionneeSchema, Rr as PersonneAuditionneeXsiTypeSchema, ri as PhotoSchema, qn as PlfBudgetTypeSchema, Mr as PlfCreditsSectionSchema, yr as PlfLigneSchema, tr as PlfMissionSchema, Zn as PlfProgrammeSchema, rr as PointOdjSchema, vr as PointOdjXsiTypeSchema, St as PointSchema, x as PointeurFragmentTexteDivisionSchema, se as PointeurFragmentTexteSchema, sn as PositionMajoritaireSchema, rn as PositionPolitiqueSchema, er as PresenceSchema, wn as ProcedureParlementaireSchema, Xn as ProcedureSchema, Yt as ProfessionSchema, n as ProgrammePlfSchema, Cn as QuantiemeSchema, Ut as QuantiemesSchema, Ve as QuestionSchema, Cr as QuestionXsiTypeSchema, ti as RapporteurSchema, at as RegimeSchema, Ke as RegionSchema, en as RegionTypeSchema, ur as RenouvellementSchema, ke as RenouvellementsSchema, xe as RepresentationSchema, En as ReunionSchema, ei as ReunionXsiTypeSchema, Nn as ScrutinSchema, He as SecretariatSchema, or as SignalementSchema, ce as SignatairesSchema, At as SocProcInseeSchema, Ie as SommaireElementSchema, _i as SommaireSchema, Jr as SortScrutinSchema, i as SousEtatAmendementSchema, pi as SousTypeSchema, Si as StatusOnly, r as StatutRepresentationSchema, dr as SuppleantSchema, In as SyntheseVoteSchema, Mn as TexteAssocieSchema, li as TexteEuropeenSchema, qt as TexteExterneAssocieSchema, ie as TexteLegislatifSchema, Ct as TexteQuestionSchema, an as TexteSchema, Et as TextesQuestionSchema, Nt as TextesReponseSchema, Be as ThemeSchema, ai as ThemesSchema, Zt as TitreDossierSchema, ot as TitreStructSchema, Je as TitresSchema, v as TotalSchema, ue as TypeAuteurSchema, et as TypeMajoriteSchema, e as TypeMimeSchema, fi as TypePointOdjSchema, s as TypePositionSchema, zr as TypeQuestionSchema, jn as TypeReunionSchema, Wn as TypeVoteSchema, ci as UidXsiTypeSchema, gr as VentilationVotesGroupeSchema, kr as VentilationVotesSchema, Ae as ViMoDeSchema, Qn as VotantSchema, Jn as VoteSchema, le as accordGouvernementDepotHorsDelaiOptions, We as acteLegislatifXsiTypeOptions, de as actionOptions, vi as allFacets, yi as allFollows, _ as avantAApresOptions, bi as capitalizeFirstLetter, gt as causePositionVoteOptions, cn as civOptions, Ur as codeActeOptions, o as codeEtatOptions, tt as codeNatureDepOptions, Pr as codeSortScrutinOptions, _t as codeTypeOrganeOptions, ft as codeTypeVoteOptions, Ci as commissionFondUidFromDossier, sr as compteRenduUidRegex, g as dateFromNullableDateOrIsoString, me as dateFromYearMonthDayTimezoneString, Xr as decisionOptions, Fr as depNaisOptions, T as displayDateFromLocalIsoString, ee as divisionTypeOptions, wt as documentUidRegex, Mt as documentXsiTypeOptions, pr as dossierParlementaireXsiTypeOptions, Dt as dossierUidRegex, ne as etatAmendementCodeOptions, re as etatAmendementLibelleOptions, Er as etatCycleDeVieOptions, Kt as etatOptions, j as existingDateToJson, pt as famSocProEnumOptions, _e as formatRelativeFrenchTime, ze as formatReunionOptions, b as frenchDateFormat, P as frenchDateSameYearShortFormat, ye as frenchDateWithoutDayOfWeekFromDateOrString, d as frenchTimeFormat, D as frenchTimeFromDateOrString, G as insertActeurReferences, Ti as insertAmendementReferences, q as insertDocumentReferences, J as insertDossierReferences, Y as insertOrganeReferences, X as insertReunionReferences, Z as insertScrutinReferences, Ai as iterDocumentOrDivisionUrls, xr as legislatureOptions, gn as libelleOptions, hn as libelleSortScrutinOptions, dn as libelleTypeVoteOptions, yn as lieuVoteOptions, S as localIso8601StringFromDate, fn as mandatXsiTypeOptions, Lt as modePublicationDesVotesOptions, ii as natureTravauxOdjOptions, bn as organeXsiTypeOptions, m as patchedDateToJson, Hr as personneAuditionneeXsiTypeOptions, Xt as pointOdjXsiTypeOptions, Ee as positionMajoritaireOptions, Rt as positionPolitiqueOptions, qe as presenceOptions, Ue as procedureOptions, jt as quantiemeOptions, Pt as questionUidRegex, ir as questionXsiTypeOptions, De as regimeOptions, Bn as regionTypeOptions, Xe as reunionUidRegex, fr as reunionXsiTypeOptions, ct as scrutinUidRegex, Ei as shortNameFromOrgane, ae as sortAmendementOptions, B as stateFromActePath, V as stateFromActes, wi as stateFromDossier, z as statusFromCodierLibelle, O as typeAuteurOptions, Ye as typeJoQuestionOptions, Hn as typeMajoriteOptions, a as typeMimeNomOptions, c as typeMimeTypeOptions, je as typePointOdjOptions, l as typePositionOptions, Dn as typeQuestionOptions, cr as typeReunionOptions, Tt as uidXsiTypeOptions, R as uncapitalizeFirstLetter, Mi as urlFromAmendementUid, ji as urlFromDocument, Ni as urlFromScrutin, H as walkActes, U as walkDocumentAndDivisions };
|