@tricoteuses/assemblee 3.0.3 → 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.
@@ -4157,11 +4157,11 @@ export {
4157
4157
  $e as C,
4158
4158
  Qe as D,
4159
4159
  z as E,
4160
- Q as F,
4161
- U as G,
4162
- Fe as H,
4163
- $ as I,
4164
- I as J,
4160
+ I as F,
4161
+ $ as G,
4162
+ Q as H,
4163
+ U as I,
4164
+ Fe as J,
4165
4165
  Ha as K,
4166
4166
  $a as L,
4167
4167
  y as M,
@@ -1,5 +1,5 @@
1
1
  import f from "node:assert";
2
- import { u as m } from "./amendements-CZHXlq07.js";
2
+ import { u as m } from "./amendements-BKxlNgbH.js";
3
3
  const b = {
4
4
  false: !1,
5
5
  true: !0
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-CXmsqoof.js";
3
- import { d as ee } from "./amendements-CXmsqoof.js";
4
- import { a as H, C as Q } from "./questions-DXAzvI1T.js";
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 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-CZHXlq07.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, f as li, ac as di, al as mi, am as yi, ad as gi, ah as Ri, k as Si, g as vi, n as Ai, l as hi, $ as Oi, a1 as Ti, a3 as xi, m as _i, a5 as Pi, s as Ci, o as Ei, ai as Ui, t as Bi, a7 as Di, p as bi, v as Ii, x as Li, z as Ni, ae as Mi, r as ji, i as $i, af as Vi, A as Xi, ag as wi, an as qi, a9 as Fi, G as Gi, H as ki, J as Qi } from "./questions-DTO3nK5V.js";
3
- import { D as zi, Q as Hi, T as Wi, d as Yi, q as Ki, t as Zi } from "./questions-DXAzvI1T.js";
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 l of i.cosignatairesRefs || []) {
269
- const f = t.acteurByUid[l];
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 l = n[7];
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/${l}${i}`
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" && (l = l.replace(/-COMPA/, "-aCOMPA")), f == "AVCE" && (f = `AVCE${e.classification.famille?.classe.code}`);
624
- const d = D[f];
625
- if (d === void 0)
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/${d.directory}` : d.directory;
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}/${d.prefix}${l}${d.suffix}${i}`
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
- zi as DecisionSchema,
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
- Hi as QuestionXsiTypeSchema,
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
- Wi as TypeQuestionSchema,
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
- Yi as decisionOptions,
705
+ Ki as decisionOptions,
705
706
  li as depNaisOptions,
706
707
  ne as displayDateFromLocalIsoString,
707
708
  re as divisionTypeOptions,
708
- di as documentUidRegex,
709
- mi as documentXsiTypeOptions,
710
- yi as dossierParlementaireXsiTypeOptions,
711
- gi as dossierUidRegex,
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
- Ri as etatCycleDeVieOptions,
715
- Si as etatOptions,
715
+ Si as etatCycleDeVieOptions,
716
+ vi as etatOptions,
716
717
  ce as existingDateToJson,
717
- vi as famSocProEnumOptions,
718
+ Ai as famSocProEnumOptions,
718
719
  ue as formatRelativeFrenchTime,
719
- Ai as formatReunionOptions,
720
+ hi as formatReunionOptions,
720
721
  fe as frenchDateFormat,
721
722
  pe as frenchDateSameYearShortFormat,
722
- le as frenchDateWithoutDayOfWeekFromDateOrString,
723
- de as frenchTimeFormat,
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
- hi as libelleOptions,
734
- Oi as libelleSortScrutinOptions,
735
- Ti as libelleTypeVoteOptions,
736
- xi as lieuVoteOptions,
734
+ Oi as libelleOptions,
735
+ Ti as libelleSortScrutinOptions,
736
+ xi as libelleTypeVoteOptions,
737
+ _i as lieuVoteOptions,
737
738
  ye as localIso8601StringFromDate,
738
- _i as mandatXsiTypeOptions,
739
- Pi as modePublicationDesVotesOptions,
740
- Ci as natureTravauxOdjOptions,
741
- Ei as organeXsiTypeOptions,
739
+ Pi as mandatXsiTypeOptions,
740
+ Ci as modePublicationDesVotesOptions,
741
+ Ei as natureTravauxOdjOptions,
742
+ Ui as organeXsiTypeOptions,
742
743
  ge as patchedDateToJson,
743
- Ui as personneAuditionneeXsiTypeOptions,
744
- Bi as pointOdjXsiTypeOptions,
745
- Di as positionMajoritaireOptions,
746
- bi as positionPolitiqueOptions,
747
- Ii as presenceOptions,
748
- Li as procedureOptions,
749
- Ni as quantiemeOptions,
750
- Mi as questionUidRegex,
751
- Ki as questionXsiTypeOptions,
752
- ji as regimeOptions,
753
- $i as regionTypeOptions,
754
- Vi as reunionUidRegex,
755
- Xi as reunionXsiTypeOptions,
756
- wi as scrutinUidRegex,
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
- qi as typeJoQuestionOptions,
765
- Fi as typeMajoriteOptions,
765
+ Fi as typeJoQuestionOptions,
766
+ Gi as typeMajoriteOptions,
766
767
  ve as typeMimeNomOptions,
767
768
  Ae as typeMimeTypeOptions,
768
- Gi as typePointOdjOptions,
769
+ ki as typePointOdjOptions,
769
770
  he as typePositionOptions,
770
- Zi as typeQuestionOptions,
771
- ki as typeReunionOptions,
772
- Qi as uidXsiTypeOptions,
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,