@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.
@@ -831,6 +831,103 @@ export declare const EtudePlfCleanSchema: z.ZodObject<{
831
831
  ordreCommission: z.ZodString;
832
832
  }, z.core.$strip>;
833
833
  export type EtudePlfClean = z.infer<typeof EtudePlfCleanSchema>;
834
+ export declare const PlfBudgetTypeSchema: z.ZodEnum<{
835
+ budgetGeneral: "budgetGeneral";
836
+ budgetsAnnexes: "budgetsAnnexes";
837
+ comptesSpeciaux: "comptesSpeciaux";
838
+ }>;
839
+ export type PlfBudgetType = z.infer<typeof PlfBudgetTypeSchema>;
840
+ export declare const PlfLigneSchema: z.ZodObject<{
841
+ libelle: z.ZodString;
842
+ autorisationEngagement: z.ZodOptional<z.ZodNumber>;
843
+ creditPaiement: z.ZodOptional<z.ZodNumber>;
844
+ autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
845
+ creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
846
+ }, z.core.$strip>;
847
+ export type PlfLigne = z.infer<typeof PlfLigneSchema>;
848
+ export declare const PlfProgrammeSchema: z.ZodObject<{
849
+ libelle: z.ZodString;
850
+ autorisationEngagement: z.ZodOptional<z.ZodNumber>;
851
+ creditPaiement: z.ZodOptional<z.ZodNumber>;
852
+ autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
853
+ creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
854
+ lignes: z.ZodOptional<z.ZodArray<z.ZodObject<{
855
+ libelle: z.ZodString;
856
+ autorisationEngagement: z.ZodOptional<z.ZodNumber>;
857
+ creditPaiement: z.ZodOptional<z.ZodNumber>;
858
+ autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
859
+ creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
860
+ }, z.core.$strip>>>;
861
+ }, z.core.$strip>;
862
+ export type PlfProgramme = z.infer<typeof PlfProgrammeSchema>;
863
+ export declare const PlfMissionSchema: z.ZodObject<{
864
+ budgetType: z.ZodEnum<{
865
+ budgetGeneral: "budgetGeneral";
866
+ budgetsAnnexes: "budgetsAnnexes";
867
+ comptesSpeciaux: "comptesSpeciaux";
868
+ }>;
869
+ libelle: z.ZodString;
870
+ autorisationEngagement: z.ZodOptional<z.ZodNumber>;
871
+ creditPaiement: z.ZodOptional<z.ZodNumber>;
872
+ autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
873
+ creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
874
+ programmes: z.ZodArray<z.ZodObject<{
875
+ libelle: z.ZodString;
876
+ autorisationEngagement: z.ZodOptional<z.ZodNumber>;
877
+ creditPaiement: z.ZodOptional<z.ZodNumber>;
878
+ autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
879
+ creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
880
+ lignes: z.ZodOptional<z.ZodArray<z.ZodObject<{
881
+ libelle: z.ZodString;
882
+ autorisationEngagement: z.ZodOptional<z.ZodNumber>;
883
+ creditPaiement: z.ZodOptional<z.ZodNumber>;
884
+ autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
885
+ creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
886
+ }, z.core.$strip>>>;
887
+ }, z.core.$strip>>;
888
+ }, z.core.$strip>;
889
+ export type PlfMission = z.infer<typeof PlfMissionSchema>;
890
+ export declare const PlfCreditsSectionSchema: z.ZodObject<{
891
+ budgetType: z.ZodEnum<{
892
+ budgetGeneral: "budgetGeneral";
893
+ budgetsAnnexes: "budgetsAnnexes";
894
+ comptesSpeciaux: "comptesSpeciaux";
895
+ }>;
896
+ libelle: z.ZodString;
897
+ missions: z.ZodArray<z.ZodObject<{
898
+ budgetType: z.ZodEnum<{
899
+ budgetGeneral: "budgetGeneral";
900
+ budgetsAnnexes: "budgetsAnnexes";
901
+ comptesSpeciaux: "comptesSpeciaux";
902
+ }>;
903
+ libelle: z.ZodString;
904
+ autorisationEngagement: z.ZodOptional<z.ZodNumber>;
905
+ creditPaiement: z.ZodOptional<z.ZodNumber>;
906
+ autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
907
+ creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
908
+ programmes: z.ZodArray<z.ZodObject<{
909
+ libelle: z.ZodString;
910
+ autorisationEngagement: z.ZodOptional<z.ZodNumber>;
911
+ creditPaiement: z.ZodOptional<z.ZodNumber>;
912
+ autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
913
+ creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
914
+ lignes: z.ZodOptional<z.ZodArray<z.ZodObject<{
915
+ libelle: z.ZodString;
916
+ autorisationEngagement: z.ZodOptional<z.ZodNumber>;
917
+ creditPaiement: z.ZodOptional<z.ZodNumber>;
918
+ autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
919
+ creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
920
+ }, z.core.$strip>>>;
921
+ }, z.core.$strip>>;
922
+ }, z.core.$strip>>;
923
+ total: z.ZodOptional<z.ZodObject<{
924
+ autorisationEngagement: z.ZodOptional<z.ZodNumber>;
925
+ creditPaiement: z.ZodOptional<z.ZodNumber>;
926
+ autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
927
+ creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
928
+ }, z.core.$strip>>;
929
+ }, z.core.$strip>;
930
+ export type PlfCreditsSection = z.infer<typeof PlfCreditsSectionSchema>;
834
931
  /**
835
932
  * Fam code et libellé clean
836
933
  *
@@ -410,6 +410,12 @@ export declare const SubdivisionEnrichedSchema: z.ZodObject<{
410
410
  html: z.ZodOptional<z.ZodString>;
411
411
  html_avec_liens: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
412
  }, z.core.$strip>>>;
413
+ exposeDesMotifs: z.ZodOptional<z.ZodArray<z.ZodObject<{
414
+ texte: z.ZodOptional<z.ZodString>;
415
+ texte_avec_liens: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ html: z.ZodOptional<z.ZodString>;
417
+ html_avec_liens: z.ZodOptional<z.ZodNullable<z.ZodString>>;
418
+ }, z.core.$strip>>>;
413
419
  }, z.core.$strip>;
414
420
  export type SubdivisionEnriched = z.infer<typeof SubdivisionEnrichedSchema>;
415
421
  /**
@@ -17,6 +17,8 @@ export interface DatasetState {
17
17
  }
18
18
  export declare function buildMonitoredDatasets(): MonitoredDataset[];
19
19
  export declare function isDatasetDue(monitored: MonitoredDataset, datasetState: DatasetState, now: Date): boolean;
20
+ export declare function updatePipelineLabel(monitored: MonitoredDataset): string;
21
+ export declare function checkErrorEvent(monitored: MonitoredDataset, error: unknown): Record<string, unknown>;
20
22
  export declare function delayBeforeDeadline(delay: number, deadline: number, now?: number): number;
21
23
  export declare function scheduledPipelineIsStale(maxStartDelayMinutes: number, pipelineSource?: string | undefined, pipelineCreatedAt?: string | undefined, now?: number): boolean;
22
24
  export {};
@@ -106,6 +106,7 @@ declare const retrieveOpenDataParser: import('zod-opts').Parser<{
106
106
  name: "dataDir";
107
107
  }]>;
108
108
  type Options = ReturnType<typeof retrieveOpenDataParser.parse>;
109
+ export declare function formatParisDateTime(value: string): string;
109
110
  export declare function publishDataset(stagedDataPath: string, dataPath: string, partZipPath: string | undefined, zipPath: string): Promise<void>;
110
111
  export declare function recoverPublication(dataPath: string): Promise<void>;
111
112
  /**
@@ -1737,55 +1737,90 @@ var io = {
1737
1737
  missionMinefi: Lo.optional(),
1738
1738
  ordreDiqs: l.string(),
1739
1739
  ordreCommission: l.string()
1740
+ }), zo = l.enum([
1741
+ "budgetGeneral",
1742
+ "budgetsAnnexes",
1743
+ "comptesSpeciaux"
1744
+ ]), Bo = l.object({
1745
+ libelle: l.string(),
1746
+ autorisationEngagement: l.number().optional(),
1747
+ creditPaiement: l.number().optional(),
1748
+ autorisationEngagementAnnule: l.number().optional(),
1749
+ creditPaiementAnnule: l.number().optional()
1750
+ }), Vo = l.object({
1751
+ libelle: l.string(),
1752
+ autorisationEngagement: l.number().optional(),
1753
+ creditPaiement: l.number().optional(),
1754
+ autorisationEngagementAnnule: l.number().optional(),
1755
+ creditPaiementAnnule: l.number().optional(),
1756
+ lignes: l.array(Bo).optional()
1757
+ }), Ho = l.object({
1758
+ budgetType: zo,
1759
+ libelle: l.string(),
1760
+ autorisationEngagement: l.number().optional(),
1761
+ creditPaiement: l.number().optional(),
1762
+ autorisationEngagementAnnule: l.number().optional(),
1763
+ creditPaiementAnnule: l.number().optional(),
1764
+ programmes: l.array(Vo)
1765
+ }), Uo = l.object({
1766
+ budgetType: zo,
1767
+ libelle: l.string(),
1768
+ missions: l.array(Ho),
1769
+ total: l.object({
1770
+ autorisationEngagement: l.number().optional(),
1771
+ creditPaiement: l.number().optional(),
1772
+ autorisationEngagementAnnule: l.number().optional(),
1773
+ creditPaiementAnnule: l.number().optional()
1774
+ }).optional()
1740
1775
  }), J = l.object({
1741
1776
  famCode: l.string(),
1742
1777
  libelle: l.string().optional()
1743
- }), zo = l.object({
1778
+ }), Wo = l.object({
1744
1779
  nomCanonique: l.string(),
1745
1780
  libelleCourt: l.string().optional()
1746
- }), Bo = l.object({
1781
+ }), Go = l.object({
1747
1782
  dateOuverture: l.string().optional(),
1748
1783
  dateFermeture: l.string().optional()
1749
- }), Vo = l.object({
1784
+ }), Ko = l.object({
1750
1785
  typeTexte: _n,
1751
1786
  texteAssocieRef: l.string()
1752
- }), Ho = l.object({
1787
+ }), qo = l.object({
1753
1788
  typeJo: yn,
1754
1789
  dateJo: l.string(),
1755
1790
  numJo: l.string(),
1756
1791
  urlLegifrance: l.string().optional(),
1757
1792
  referenceNor: l.string().optional()
1758
- }), Uo = l.object({
1793
+ }), Jo = l.object({
1759
1794
  typeTexteEuropeen: l.string(),
1760
1795
  titreTexteEuropeen: l.string()
1761
- }), Wo = l.object({
1796
+ }), Yo = l.object({
1762
1797
  refJoce: l.string(),
1763
1798
  dateJoce: l.string()
1764
- }), Go = l.object({
1799
+ }), Xo = l.object({
1765
1800
  typeDoc: xn,
1766
1801
  texteRef: l.string(),
1767
1802
  titreDoc: l.string(),
1768
1803
  urlDoc: l.string()
1769
- }), Ko = l.lazy(() => l.object({
1804
+ }), Y = l.lazy(() => l.object({
1770
1805
  xsiType: uo,
1771
1806
  uid: o().meta({ description: "Identifiant unique de l'acte législatif" }),
1772
1807
  codeActe: an,
1773
- libelleActe: zo,
1808
+ libelleActe: Wo,
1774
1809
  organeRef: l.string().optional(),
1775
1810
  dateActe: n(),
1776
- actesLegislatifs: l.array(Ko).optional(),
1811
+ actesLegislatifs: l.array(Y).optional(),
1777
1812
  anneeDecision: l.string().optional(),
1778
1813
  auteurMotion: l.string().optional(),
1779
1814
  auteursRefs: l.array(l.string()).optional(),
1780
1815
  casSaisine: J.optional(),
1781
1816
  codeLoi: l.string().optional(),
1782
- contributionInternaute: Bo.optional(),
1817
+ contributionInternaute: Go.optional(),
1783
1818
  decision: J.optional(),
1784
1819
  depotInitialLectureDefinitiveRef: l.string().optional(),
1785
1820
  formuleDecision: l.string().optional(),
1786
- infoJo: Ho.optional(),
1787
- infoJoce: Wo.optional(),
1788
- infoJoRect: l.array(Ho).optional(),
1821
+ infoJo: qo.optional(),
1822
+ infoJoce: Yo.optional(),
1823
+ infoJoRect: l.array(qo).optional(),
1789
1824
  initiateur: Po.optional(),
1790
1825
  motif: vn.optional(),
1791
1826
  numDecision: l.string().optional(),
@@ -1798,10 +1833,10 @@ var io = {
1798
1833
  statutConclusion: J.optional(),
1799
1834
  texteAdopteRef: l.string().optional(),
1800
1835
  texteAssocieRef: l.string().optional(),
1801
- texteEuropeen: Uo.optional(),
1802
- texteExterneAssocie: Go.optional(),
1836
+ texteEuropeen: Jo.optional(),
1837
+ texteExterneAssocie: Xo.optional(),
1803
1838
  texteLoiRef: l.string().optional(),
1804
- textesAssocies: l.array(Vo).optional(),
1839
+ textesAssocies: l.array(Ko).optional(),
1805
1840
  titreLoi: l.string().optional(),
1806
1841
  typeDeclaration: J.optional(),
1807
1842
  typeMotion: J.optional(),
@@ -1810,7 +1845,7 @@ var io = {
1810
1845
  urlEcheancierLoi: l.string().optional(),
1811
1846
  urlLegifrance: l.string().optional(),
1812
1847
  voteRefs: l.array(l.string()).optional()
1813
- })), Y = l.object({
1848
+ })), Zo = l.object({
1814
1849
  schemaVersion: l.string().optional(),
1815
1850
  xsiType: co.optional(),
1816
1851
  uid: o().meta({ description: "Identifiant unique du dossier parlementaire" }),
@@ -1818,58 +1853,58 @@ var io = {
1818
1853
  titreDossier: Mo,
1819
1854
  procedureParlementaire: K,
1820
1855
  initiateur: Po.optional(),
1821
- actesLegislatifs: l.array(Ko).optional(),
1856
+ actesLegislatifs: l.array(Y).optional(),
1822
1857
  fusionDossier: Fo.optional(),
1823
1858
  indexation: q.optional(),
1824
1859
  plf: l.array(Ro).optional()
1825
- }), qo = l.object({
1860
+ }), Qo = l.object({
1826
1861
  textesLegislatifs: l.array(jo),
1827
- dossiersParlementaires: l.array(Y)
1862
+ dossiersParlementaires: l.array(Zo)
1828
1863
  });
1829
- function Jo(e) {
1864
+ function $o(e) {
1830
1865
  let t = JSON.parse(e), n = jo.safeParse(t);
1831
- if (!n.success) throw Error(es("DocumentClean", n.error, t));
1866
+ if (!n.success) throw Error(as("DocumentClean", n.error, t));
1832
1867
  return n.data;
1833
1868
  }
1834
- function Yo(e) {
1835
- let t = JSON.parse(e), n = Y.safeParse(t);
1836
- if (!n.success) throw Error(es("DossierParlementaireClean", n.error, t));
1869
+ function es(e) {
1870
+ let t = JSON.parse(e), n = Zo.safeParse(t);
1871
+ if (!n.success) throw Error(as("DossierParlementaireClean", n.error, t));
1837
1872
  return n.data;
1838
1873
  }
1839
- function Xo(e) {
1840
- let t = JSON.parse(e), n = qo.safeParse(t);
1841
- if (!n.success) throw Error(es("DossiersLegislatifsClean", n.error, t));
1874
+ function ts(e) {
1875
+ let t = JSON.parse(e), n = Qo.safeParse(t);
1876
+ if (!n.success) throw Error(as("DossiersLegislatifsClean", n.error, t));
1842
1877
  return n.data;
1843
1878
  }
1844
- function Zo(e) {
1879
+ function ns(e) {
1845
1880
  return JSON.stringify(e, null, 2);
1846
1881
  }
1847
- function Qo(e) {
1882
+ function rs(e) {
1848
1883
  return JSON.stringify(e, null, 2);
1849
1884
  }
1850
- function $o(e) {
1885
+ function is(e) {
1851
1886
  return JSON.stringify(e, null, 2);
1852
1887
  }
1853
- function es(e, t, n) {
1888
+ function as(e, t, n) {
1854
1889
  return s(e, t, n);
1855
1890
  }
1856
- var ts = {
1857
- toDocument: Jo,
1858
- documentToJson: Zo,
1859
- toDossierParlementaire: Yo,
1860
- dossierParlementaireToJson: Qo,
1861
- toDossiersLegislatifs: Xo,
1862
- dossiersLegislatifsToJson: $o
1863
- }, ns = [
1891
+ var os = {
1892
+ toDocument: $o,
1893
+ documentToJson: ns,
1894
+ toDossierParlementaire: es,
1895
+ dossierParlementaireToJson: rs,
1896
+ toDossiersLegislatifs: ts,
1897
+ dossiersLegislatifsToJson: is
1898
+ }, ss = [
1864
1899
  "JO_QUESTION",
1865
1900
  "JO_LOI_DECRET",
1866
1901
  "JO_DEBAT"
1867
- ], rs = l.enum(ns), X = l.preprocess((e) => {
1902
+ ], cs = l.enum(ss), X = l.preprocess((e) => {
1868
1903
  if (e == null) return;
1869
1904
  if (typeof e != "string") return e;
1870
1905
  let t = e.trim();
1871
1906
  return t === "" ? void 0 : t;
1872
- }, l.string().optional()), is = l.object({
1907
+ }, l.string().optional()), ls = l.object({
1873
1908
  numero: l.string().meta({ description: "Numéro de la question." }),
1874
1909
  regime: l.string().meta({ description: "Régime." }),
1875
1910
  legislature: l.string().meta({ description: "Législature." })
@@ -1877,138 +1912,138 @@ var ts = {
1877
1912
  organeRef: e().meta({ description: "Référence à l'organe" }),
1878
1913
  abrege: l.string().meta({ description: "Abrégé." }),
1879
1914
  developpe: l.string().meta({ description: "Développé." })
1880
- }), as = l.object({
1915
+ }), us = l.object({
1881
1916
  acteurRef: r().meta({ description: "Référence à l'acteur" }),
1882
1917
  mandatRef: l.string().meta({ description: "Identifiant unique du {@link Mandat | mandat}." })
1883
- }), os = l.object({
1884
- identite: as.meta({ description: "Identité de l'auteur." }),
1918
+ }), ds = l.object({
1919
+ identite: us.meta({ description: "Identité de l'auteur." }),
1885
1920
  groupe: Z.meta({ description: "Groupe politique de l'auteur." })
1886
1921
  }), Q = l.object({
1887
- typeJO: rs.optional().meta({ description: "Type de Journal Officiel." }),
1922
+ typeJO: cs.optional().meta({ description: "Type de Journal Officiel." }),
1888
1923
  dateJO: X.meta({ description: "Date de publication au Journal Officiel." }),
1889
1924
  pageJO: X.meta({ description: "Page du Journal Officiel." }),
1890
1925
  numJO: X.meta({ description: "Numéro du Journal Officiel." }),
1891
1926
  urlLegifrance: X.meta({ description: "URL du texte promulgué sur le site https://www.legifrance.gouv.fr/" }),
1892
1927
  referenceNOR: X.meta({ description: "Numéro {@link https://fr.wikipedia.org/wiki/Syst%C3%A8me_NOR | NOR} attribué au texte promulgué." })
1893
- }), ss = l.object({ analyse: l.string().optional().meta({ description: "Analyse." }) }), cs = l.object({
1928
+ }), fs = l.object({ analyse: l.string().optional().meta({ description: "Analyse." }) }), ps = l.object({
1894
1929
  rubrique: l.string().optional().meta({ description: "Rubrique." }),
1895
- analyses: ss.optional().meta({ description: "Analyses." })
1896
- }), ls = l.object({
1930
+ analyses: fs.optional().meta({ description: "Analyses." })
1931
+ }), ms = l.object({
1897
1932
  infoJO: Q.meta({ description: "Informations Journal Officiel." }),
1898
1933
  denomination: Z.meta({ description: "Dénomination." })
1899
- }), us = l.object({ minAttrib: t(ls).meta({ description: "Attributions ministérielles." }) }), ds = l.object({
1934
+ }), hs = l.object({ minAttrib: t(ms).meta({ description: "Attributions ministérielles." }) }), gs = l.object({
1900
1935
  infoJO: Q.meta({ description: "Informations Journal Officiel." }),
1901
1936
  texte: l.string().optional().meta({ description: "Texte de la question ou de la réponse." }),
1902
1937
  erratum: l.string().optional().meta({ description: "Erratum." })
1903
- }), fs = l.object({ texteQuestion: t(ds).meta({ description: "Textes de la question." }) }), ps = l.object({ texteReponse: t(ds).meta({ description: "Textes de la réponse." }) }), ms = l.object({
1938
+ }), _s = l.object({ texteQuestion: t(gs).meta({ description: "Textes de la question." }) }), vs = l.object({ texteReponse: t(gs).meta({ description: "Textes de la réponse." }) }), ys = l.object({
1904
1939
  codeCloture: l.string().meta({ description: "Code de la clôture." }),
1905
1940
  libelleCloture: l.string().meta({ description: "Libellé de la clôture." }),
1906
1941
  dateCloture: X.meta({ description: "Date de clôture." }),
1907
1942
  infoJO: Q.nullish().meta({ description: "Informations Journal Officiel liées à la clôture." })
1908
- }), hs = l.object({
1943
+ }), bs = l.object({
1909
1944
  dateDepotSignal: l.string().meta({ description: "Date de dépôt du signalement." }),
1910
1945
  infoJO: Q.meta({ description: "Informations Journal Officiel du signalement." })
1911
- }), gs = l.object({ infoJO: Q.meta({ description: "Informations Journal Officiel." }) }), _s = l.object({ renouvellement: l.array(gs).meta({ description: "Renouvellements." }) }), vs = l.object({
1946
+ }), xs = l.object({ infoJO: Q.meta({ description: "Informations Journal Officiel." }) }), Ss = l.object({ renouvellement: l.array(xs).meta({ description: "Renouvellements." }) }), Cs = l.object({
1912
1947
  schemaVersion: l.string().optional().meta({ description: "Version du schéma." }),
1913
1948
  "@xsi:type": Er.optional().meta({ description: "Type de question (QuestionEcrite_Type, QuestionGouvernement_Type, QuestionOrale_Type)." }),
1914
1949
  uid: o().meta({ description: "Identifiant unique de la question" }),
1915
- identifiant: is.meta({ description: "Identifiant." }),
1950
+ identifiant: ls.meta({ description: "Identifiant." }),
1916
1951
  type: Or.meta({ description: "Type de question abrégé (QE, QG, QOSD)." }),
1917
- indexationAN: cs.optional().meta({ description: "Indexation Assemblée Nationale." }),
1918
- auteur: os.meta({ description: "Auteur de la question." }),
1952
+ indexationAN: ps.optional().meta({ description: "Indexation Assemblée Nationale." }),
1953
+ auteur: ds.meta({ description: "Auteur de la question." }),
1919
1954
  minInt: Z.meta({ description: "Ministère interrogé." }),
1920
- minAttribs: us.meta({ description: "Attributions ministérielles." }),
1921
- textesQuestion: fs.optional().meta({ description: "Textes de la question." }),
1922
- textesReponse: ps.optional().meta({ description: "Textes de la réponse." }),
1923
- cloture: ms.optional().meta({ description: "Clôture de la question." }),
1924
- signalement: hs.optional().meta({ description: "Signalement." }),
1925
- renouvellements: _s.optional().meta({ description: "Renouvellements." })
1926
- }), ys = l.object({ questions: l.array(vs).meta({ description: "Liste des questions." }) });
1927
- function bs(e) {
1928
- let t = JSON.parse(e), n = vs.safeParse(t);
1929
- if (!n.success) throw Error(ws("QuestionClean", n.error, t));
1955
+ minAttribs: hs.meta({ description: "Attributions ministérielles." }),
1956
+ textesQuestion: _s.optional().meta({ description: "Textes de la question." }),
1957
+ textesReponse: vs.optional().meta({ description: "Textes de la réponse." }),
1958
+ cloture: ys.optional().meta({ description: "Clôture de la question." }),
1959
+ signalement: bs.optional().meta({ description: "Signalement." }),
1960
+ renouvellements: Ss.optional().meta({ description: "Renouvellements." })
1961
+ }), ws = l.object({ questions: l.array(Cs).meta({ description: "Liste des questions." }) });
1962
+ function Ts(e) {
1963
+ let t = JSON.parse(e), n = Cs.safeParse(t);
1964
+ if (!n.success) throw Error(ks("QuestionClean", n.error, t));
1930
1965
  return n.data;
1931
1966
  }
1932
- function xs(e) {
1933
- let t = JSON.parse(e), n = ys.safeParse(t);
1934
- if (!n.success) throw Error(ws("QuestionsClean", n.error, t));
1967
+ function Es(e) {
1968
+ let t = JSON.parse(e), n = ws.safeParse(t);
1969
+ if (!n.success) throw Error(ks("QuestionsClean", n.error, t));
1935
1970
  return n.data;
1936
1971
  }
1937
- function Ss(e) {
1972
+ function Ds(e) {
1938
1973
  return JSON.stringify(e, null, 2);
1939
1974
  }
1940
- function Cs(e) {
1975
+ function Os(e) {
1941
1976
  return JSON.stringify(e, null, 2);
1942
1977
  }
1943
- function ws(e, t, n) {
1978
+ function ks(e, t, n) {
1944
1979
  return s(e, t, n);
1945
1980
  }
1946
- var Ts = {
1947
- toQuestion: bs,
1948
- questionToJson: Ss,
1949
- toQuestions: xs,
1950
- questionsToJson: Cs
1951
- }, Es = l.object({ texte: l.string().optional() }), Ds = l.object({
1981
+ var As = {
1982
+ toQuestion: Ts,
1983
+ questionToJson: Ds,
1984
+ toQuestions: Es,
1985
+ questionsToJson: Os
1986
+ }, js = l.object({ texte: l.string().optional() }), Ms = l.object({
1952
1987
  libelle: l.string(),
1953
1988
  dossierRef: l.string()
1954
- }), Os = l.object({
1989
+ }), Ns = l.object({
1955
1990
  libelle: l.string(),
1956
- dossierLegislatif: Ds.optional()
1957
- }), ks = l.object({
1991
+ dossierLegislatif: Ms.optional()
1992
+ }), Ps = l.object({
1958
1993
  code: Zr,
1959
1994
  libelle: L
1960
- }), As = l.object({
1995
+ }), Fs = l.object({
1961
1996
  codeTypeVote: $r,
1962
1997
  libelleTypeVote: ni,
1963
1998
  typeMajorite: ui.meta({ description: "Indication textuelle de la majorité requise. Les formulations observées sont hétérogènes et doivent être interprétées avec le contexte du scrutin (type de vote, suffrages exprimés, nombre requis), plutôt que comme un enum métier parfaitement fiable." })
1964
- }), js = l.object({
1999
+ }), Is = l.object({
1965
2000
  pour: l.string().meta({ description: "Nombre total de votes pour." }),
1966
2001
  contre: l.string().meta({ description: "Nombre total de votes contre." }),
1967
2002
  abstentions: l.string().optional().meta({ description: "Nombre total d'abstentions." }),
1968
2003
  nonVotants: l.string().optional().meta({ description: "Nombre total de non votants" }),
1969
2004
  nonVotantsVolontaires: l.string().optional().meta({ description: "Nombre total de non votants volontaires." })
1970
- }), Ms = l.object({
2005
+ }), Ls = l.object({
1971
2006
  nombreVotants: l.string().meta({ description: "Nombre de votants, c'est à dire de {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/les-votes-a-l-assemblee-nationale | sièges occupés dans l'hémicycle}." }),
1972
2007
  suffragesExprimes: l.string().meta({ description: "Nombre de suffrages exprimés." }),
1973
2008
  nbrSuffragesRequis: l.string().meta({ description: "Nombre de suffrages requis, le {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/les-votes-a-l-assemblee-nationale | cas échéant}." }),
1974
2009
  annonce: L,
1975
- decompte: js
2010
+ decompte: Is
1976
2011
  }), $ = l.object({
1977
2012
  acteurRef: r().meta({ description: "Référence à l'acteur votant" }),
1978
2013
  mandatRef: l.string(),
1979
2014
  parDelegation: l.boolean().optional(),
1980
2015
  numPlace: l.number().optional(),
1981
2016
  causePositionVote: Yr.optional().meta({ description: "Motif réglementaire d'une non-participation au vote. Ce champ n'apparait en pratique que pour les non-votants du décompte nominatif." })
1982
- }), Ns = l.object({
2017
+ }), Rs = l.object({
1983
2018
  nonVotants: l.array($).optional(),
1984
2019
  pour: l.array($).optional(),
1985
2020
  contre: l.array($).optional(),
1986
2021
  abstentions: l.array($).optional()
1987
- }), Ps = l.object({
2022
+ }), zs = l.object({
1988
2023
  positionMajoritaire: ci.meta({ description: "Position majoritaire du groupe. Dans les jeux observés, en cas d'égalité entre pour et contre, la valeur est généralement 'pour', sauf quand les abstentions sont au moins aussi nombreuses que les votes pour." }),
1989
- decompteVoix: js,
1990
- decompteNominatif: Ns
1991
- }), Fs = l.object({
2024
+ decompteVoix: Is,
2025
+ decompteNominatif: Rs
2026
+ }), Bs = l.object({
1992
2027
  organeRef: e(),
1993
2028
  nombreMembresGroupe: l.string(),
1994
- vote: Ps
1995
- }), Is = l.object({
2029
+ vote: zs
2030
+ }), Vs = l.object({
1996
2031
  organeRef: e(),
1997
- groupes: l.array(Fs)
1998
- }), Ls = l.object({
2032
+ groupes: l.array(Bs)
2033
+ }), Hs = l.object({
1999
2034
  nonVotants: l.array($).optional(),
2000
2035
  pour: l.array($).optional(),
2001
2036
  contre: l.array($).optional(),
2002
2037
  abstentions: l.array($).optional(),
2003
2038
  nonVotantsVolontaires: l.array($).optional()
2004
- }), Rs = l.object({
2039
+ }), Us = l.object({
2005
2040
  nonVotants: l.array($).optional(),
2006
2041
  pour: l.array($).optional(),
2007
2042
  contre: l.array($).optional(),
2008
2043
  abstentions: l.array($).optional(),
2009
2044
  nonVotantsVolontaires: l.array($).optional(),
2010
- dysfonctionnement: Ls.optional()
2011
- }), zs = l.object({
2045
+ dysfonctionnement: Hs.optional()
2046
+ }), Ws = l.object({
2012
2047
  schemaVersion: l.string().optional(),
2013
2048
  uid: o(),
2014
2049
  numero: l.string().meta({ description: "Numéro unique du vote, relativement à la législature, débutant par 1 et par incrément de 1. On le retrouve aussi à la fin de l'identifiant unique du vote (uid)." }),
@@ -2018,41 +2053,41 @@ var Ts = {
2018
2053
  seanceRef: l.string().meta({ description: "Identifiant unique (uid) de l'entrée de l'{@link Reunion | agenda} correspondant au moment ou le vote a lieu." }),
2019
2054
  dateScrutin: i().meta({ description: "Date à laquelle le vote a eu lieu." }),
2020
2055
  quantiemeJourSeance: l.string().meta({ description: "Numéro de la séance dans la journée." }),
2021
- typeVote: As,
2022
- sort: ks,
2056
+ typeVote: Fs,
2057
+ sort: Ps,
2023
2058
  titre: l.string().meta({ description: "Objet du vote." }),
2024
- demandeur: Es,
2025
- objet: Os,
2059
+ demandeur: js,
2060
+ objet: Ns,
2026
2061
  modePublicationDesVotes: oi.meta({ description: "La signification de ce champ n'est pas définie." }),
2027
- syntheseVote: Ms,
2028
- ventilationVotes: Is,
2029
- miseAuPoint: Rs.optional(),
2062
+ syntheseVote: Ls,
2063
+ ventilationVotes: Vs,
2064
+ miseAuPoint: Us.optional(),
2030
2065
  lieuVote: ii.optional()
2031
- }), Bs = l.object({ scrutins: l.array(zs) });
2032
- function Vs(e) {
2033
- let t = JSON.parse(e), n = zs.safeParse(t);
2034
- if (!n.success) throw Error(Gs("ScrutinClean", n.error, t));
2066
+ }), Gs = l.object({ scrutins: l.array(Ws) });
2067
+ function Ks(e) {
2068
+ let t = JSON.parse(e), n = Ws.safeParse(t);
2069
+ if (!n.success) throw Error(Xs("ScrutinClean", n.error, t));
2035
2070
  return n.data;
2036
2071
  }
2037
- function Hs(e) {
2038
- let t = JSON.parse(e), n = Bs.safeParse(t);
2039
- if (!n.success) throw Error(Gs("ScrutinsClean", n.error, t));
2072
+ function qs(e) {
2073
+ let t = JSON.parse(e), n = Gs.safeParse(t);
2074
+ if (!n.success) throw Error(Xs("ScrutinsClean", n.error, t));
2040
2075
  return n.data;
2041
2076
  }
2042
- function Us(e) {
2077
+ function Js(e) {
2043
2078
  return JSON.stringify(e, null, 2);
2044
2079
  }
2045
- function Ws(e) {
2080
+ function Ys(e) {
2046
2081
  return JSON.stringify(e, null, 2);
2047
2082
  }
2048
- function Gs(e, t, n) {
2083
+ function Xs(e, t, n) {
2049
2084
  return s(e, t, n);
2050
2085
  }
2051
- var Ks = {
2052
- toScrutin: Vs,
2053
- scrutinToJson: Us,
2054
- toScrutins: Hs,
2055
- scrutinsToJson: Ws
2086
+ var Zs = {
2087
+ toScrutin: Ks,
2088
+ scrutinToJson: Js,
2089
+ toScrutins: qs,
2090
+ scrutinsToJson: Ys
2056
2091
  };
2057
2092
  //#endregion
2058
- export { Ro as $, Tr as $n, Ca as $t, _s as A, Pi as An, u as Ar, U as At, yo as B, ui as Bn, ie as Br, Sa as Bt, cs as C, Hi as Cn, ot as Cr, ao as Ct, vs as D, Mi as Dn, ht as Dr, io as Dt, us as E, Ii as En, ft as Er, qa as Et, ns as F, L as Fn, m as Fr, G as Ft, Bo as G, ti as Gn, ue as Gr, Na as Gt, mo as H, Xr as Hn, oe as Hr, Ea as Ht, Ko as I, ni as In, h as Ir, H as It, ko as J, si as Jn, me as Jr, wa as Jt, bo as K, ri as Kn, fe as Kr, Pa as Kt, Oo as L, ii as Ln, g as Lr, Ja as Lt, ds as M, Yr as Mn, ce as Mr, W as Mt, fs as N, Zr as Nn, p as Nr, Ka as Nt, Ts as O, Ni as On, d as Or, Ga as Ot, ps as P, $r as Pn, de as Pr, Ya as Pt, ts as Q, Or as Qn, ba as Qt, Do as R, oi as Rn, _ as Rr, Ha as Rt, as as S, ta as Sn, at as Sr, lo as St, ls as T, ea as Tn, ut as Tr, Za as Tt, Eo as U, Qr as Un, se as Ur, Da as Ut, ho as V, Jr as Vn, ne as Vr, Ta as Vt, To as W, ei as Wn, le as Wr, Aa as Wt, jo as X, Kr as Xn, ee as Xr, Ma as Xt, Ao as Y, li as Yn, he as Yr, ka as Yt, Y as Z, Er as Zn, te as Zr, ja as Zt, ss as _, z as _n, pt as _r, Go as _t, Ls as a, Wi as an, Gt as ar, Ho as at, Z as b, Ui as bn, tt as br, Mo as bt, zs as c, na as cn, et as cr, Po as ct, Ms as d, Vi as dn, b as dr, xo as dt, Fa as en, Dr as er, J as et, As as f, zi as fn, st as fr, K as ft, Ps as g, Xi as gn, gt as gr, Uo as gt, $ as h, Zi as hn, x as hr, Vo as ht, Ds as i, ga as in, Kt as ir, q as it, hs as j, Fi as jn, f as jr, Ua as jt, gs as k, Li as kn, ae as kr, Xa as kt, Ks as l, oa as ln, nt as lr, zo as lt, Fs as m, Gi as mn, dt as mr, fo as mt, js as n, ya as nn, rn as nr, Fo as nt, Rs as o, aa as on, mt as or, Wo as ot, Is as p, Bi as pn, lt as pr, Io as pt, go as q, ai as qn, pe as qr, Oa as qt, Es as r, $i as rn, tn as rr, So as rt, Os as s, Yi as sn, Qe as sr, No as st, Ns as t, _a as tn, an as tr, po as tt, ks as u, Ji as un, it as ur, Lo as ut, os as v, ia as vn, Ze as vr, Co as vt, Q as w, Ki as wn, ct as wr, so as wt, is as x, ra as xn, rt as xr, _o as xt, ms as y, Qi as yn, $e as yr, wo as yt, vo as z, ci as zn, re as zr, xa as zt };
2093
+ export { Ro as $, si as $n, me as $r, wa as $t, Ss as A, ea as An, ut as Ar, Za as At, yo as B, L as Bn, m as Br, G as Bt, ps as C, ia as Cn, Ze as Cr, Co as Ct, Cs as D, ta as Dn, at as Dr, lo as Dt, hs as E, ra as En, rt as Er, _o as Et, ss as F, Pi as Fn, u as Fr, U as Ft, Go as G, ui as Gn, ie as Gr, Sa as Gt, mo as H, ii as Hn, g as Hr, Ja as Ht, Y as I, Fi as In, f as Ir, Ua as It, ko as J, Qr as Jn, se as Jr, Da as Jt, bo as K, Jr as Kn, ne as Kr, Ta as Kt, Oo as L, Yr as Ln, ce as Lr, W as Lt, gs as M, Mi as Mn, ht as Mr, io as Mt, _s as N, Ni as Nn, d as Nr, Ga as Nt, As as O, Hi as On, ot as Or, ao as Ot, vs as P, Li as Pn, ae as Pr, Xa as Pt, os as Q, ai as Qn, pe as Qr, Oa as Qt, Do as R, Zr as Rn, p as Rr, Ka as Rt, us as S, z as Sn, pt as Sr, Xo as St, ms as T, Ui as Tn, tt as Tr, Mo as Tt, Eo as U, oi as Un, _ as Ur, Ha as Ut, ho as V, ni as Vn, h as Vr, H as Vt, To as W, ci as Wn, re as Wr, xa as Wt, jo as X, ti as Xn, ue as Xr, Na as Xt, Ao as Y, ei as Yn, le as Yr, Aa as Yt, Zo as Z, ri as Zn, fe as Zr, Pa as Zt, fs as _, zi as _n, st as _r, K as _t, Hs as a, Fa as an, Dr as ar, qo as at, Z as b, Zi as bn, x as br, Ko as bt, Ws as c, $i as cn, tn as cr, Po as ct, Ls as d, aa as dn, mt as dr, xo as dt, he as ei, ka as en, li as er, J as et, Fs as f, Yi as fn, Qe as fr, zo as ft, zs as g, Vi as gn, b as gr, Vo as gt, $ as h, Ji as hn, it as hr, Ho as ht, Ms as i, Ca as in, Tr as ir, q as it, bs as j, Ii as jn, ft as jr, qa as jt, xs as k, Ki as kn, ct as kr, so as kt, Zs as l, ga as ln, Kt as lr, Wo as lt, Bs as m, oa as mn, nt as mr, Bo as mt, Is as n, te as ni, ja as nn, Er as nr, Fo as nt, Us as o, _a as on, an as or, Yo as ot, Vs as p, na as pn, et as pr, Uo as pt, go as q, Xr as qn, oe as qr, Ea as qt, js as r, ba as rn, Or as rr, So as rt, Ns as s, ya as sn, rn as sr, No as st, Rs as t, ee as ti, Ma as tn, Kr as tr, po as tt, Ps as u, Wi as un, Gt as ur, Lo as ut, ds as v, Bi as vn, lt as vr, Io as vt, Q as w, Qi as wn, $e as wr, wo as wt, ls as x, Xi as xn, gt as xr, Jo as xt, ys as y, Gi as yn, dt as yr, fo as yt, vo as z, $r as zn, de as zr, Ya as zt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tricoteuses/assemblee",
3
- "version": "3.2.16",
3
+ "version": "3.3.1",
4
4
  "description": "Retrieve, clean up & handle French Assemblée nationale's open data",
5
5
  "keywords": [
6
6
  "Assemblée nationale",