@tricoteuses/assemblee 3.3.8 → 3.4.0

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.
Files changed (40) hide show
  1. package/README.md +11 -2
  2. package/lib/{amendements-Co_qQeCl.js → amendements-D2X2TneW.js} +1 -1
  3. package/lib/{amendements-s-5GIY_X.js → amendements-DSXfagiR.js} +680 -710
  4. package/lib/cleaners.js +3 -3
  5. package/lib/derouleur.d.ts +77 -0
  6. package/lib/derouleur.js +87 -0
  7. package/lib/eliasse.d.ts +164 -0
  8. package/lib/eliasse.js +150 -0
  9. package/lib/git.js +1 -1
  10. package/lib/index.js +7 -4
  11. package/lib/{loaders-Bdc1oCGG.js → loaders-DYFDjudN.js} +2 -2
  12. package/lib/loaders.js +1 -1
  13. package/lib/parsers.js +492 -448
  14. package/lib/registries.d.ts +8 -8
  15. package/lib/schemas/clean/acteurs_et_organes.d.ts +37 -37
  16. package/lib/schemas/clean/amendements.d.ts +12 -12
  17. package/lib/schemas/clean/debats.d.ts +26 -26
  18. package/lib/schemas/clean/dossiers_legislatifs.d.ts +16 -16
  19. package/lib/schemas/clean/questions.d.ts +122 -122
  20. package/lib/schemas/clean/scrutins.d.ts +2 -2
  21. package/lib/schemas/enriched/acteurs_et_organes.d.ts +2 -2
  22. package/lib/schemas/enriched/amendements.d.ts +9 -9
  23. package/lib/schemas/enriched/dossiers_legislatifs.d.ts +12 -12
  24. package/lib/schemas/enriched/questions.d.ts +108 -108
  25. package/lib/schemas/enriched/scrutins.d.ts +2 -2
  26. package/lib/schemas/raw/acteurs_et_organes.d.ts +132 -132
  27. package/lib/schemas/raw/agendas.d.ts +97 -97
  28. package/lib/schemas/raw/amendements.d.ts +83 -83
  29. package/lib/schemas/raw/debats.d.ts +51 -51
  30. package/lib/schemas/raw/dossiers_legislatifs.d.ts +171 -171
  31. package/lib/schemas/raw/questions.d.ts +222 -222
  32. package/lib/schemas/raw/scrutins.d.ts +164 -164
  33. package/lib/scripts/dataset_safety.test.d.ts +1 -0
  34. package/lib/scripts/forgejo_pending_status.d.ts +9 -0
  35. package/lib/scripts/forgejo_pending_status.test.d.ts +1 -0
  36. package/lib/scripts/monitor_open_data_updates.d.ts +2 -0
  37. package/lib/scripts/shared/dataset-inputs.d.ts +5 -0
  38. package/lib/{scrutins-UjCZmd8a.js → scrutins-CGHd_VPY.js} +19 -18
  39. package/lib/zod_errors-DCnjCNGy.js +34 -0
  40. package/package.json +11 -1
package/lib/cleaners.js CHANGED
@@ -1,6 +1,6 @@
1
- import { At as e, cr as t, tr as n } from "./scrutins-UjCZmd8a.js";
2
- import { i as r, n as i, r as a, t as o } from "./amendements-Co_qQeCl.js";
3
- import "./loaders-Bdc1oCGG.js";
1
+ import { At as e, cr as t, tr as n } from "./scrutins-CGHd_VPY.js";
2
+ import { i as r, n as i, r as a, t as o } from "./amendements-D2X2TneW.js";
3
+ import "./loaders-DYFDjudN.js";
4
4
  import s from "node:assert";
5
5
  import "fs-extra";
6
6
  import "node:path";
@@ -0,0 +1,77 @@
1
+ import { z } from 'zod';
2
+ export declare const derouleurDefaultBaseUrl = "https://www.assemblee-nationale.fr/";
3
+ export interface DerouleurFetchOptions {
4
+ baseUrl?: string;
5
+ signal?: AbortSignal;
6
+ }
7
+ export interface DerouleurJaune {
8
+ id?: string;
9
+ jaune_date_time?: string;
10
+ extract_date_time?: string;
11
+ }
12
+ export interface DerouleurLigne {
13
+ depute_tribun_id?: string;
14
+ ligne_amendement_derouleur_division_ancre?: string;
15
+ ligne_amendement_uid?: string;
16
+ ligne_amdts_identiques?: string;
17
+ ligne_dc_amdts?: string;
18
+ ligne_libelle_1?: string;
19
+ ligne_libelle_compl_1?: string;
20
+ ligne_type?: string;
21
+ texte_bibard?: string;
22
+ }
23
+ export interface DerouleurPhase {
24
+ ligne?: DerouleurLigne[] | DerouleurLigne;
25
+ phase_libelle?: string;
26
+ phase_type?: string;
27
+ }
28
+ export interface DerouleurPayload {
29
+ racine?: {
30
+ contenu?: {
31
+ phase?: DerouleurPhase[] | DerouleurPhase;
32
+ };
33
+ jaune?: DerouleurJaune;
34
+ };
35
+ }
36
+ export interface DerouleurAmendementDetail {
37
+ dispositif?: string;
38
+ division?: {
39
+ urlDivisionTexteVise?: string;
40
+ };
41
+ exposeSommaire?: string;
42
+ listeDesSignataires?: string;
43
+ }
44
+ export declare const derouleurLigneTypes: readonly ["ADT", "ARTICLE", "INSCRIT", "INSCRITQAG", "LIBRE", "NEXTSEANCEL1", "NEXTSEANCEL2", "NEXTSEANCEL3", "REPORTVOTE", "SSADT"];
45
+ export type DerouleurLigneType = (typeof derouleurLigneTypes)[number];
46
+ export declare const derouleurLigneSchema: z.ZodType<DerouleurLigne>;
47
+ export declare const derouleurPhaseSchema: z.ZodType<DerouleurPhase>;
48
+ export declare const derouleurPayloadSchema: z.ZodType<DerouleurPayload>;
49
+ export declare const derouleurAmendementDetailSchema: z.ZodType<DerouleurAmendementDetail>;
50
+ export interface DerouleurLigneOccurrence {
51
+ ligne: DerouleurLigne;
52
+ ligneIndex: number;
53
+ phase: DerouleurPhase;
54
+ }
55
+ export declare function getDerouleurLignes(payload: DerouleurPayload): DerouleurLigneOccurrence[];
56
+ export declare function isDerouleurAmendementLigne(ligne: DerouleurLigne): boolean;
57
+ export type FetchDerouleurResult = {
58
+ data: DerouleurPayload;
59
+ etag?: string;
60
+ notModified: false;
61
+ } | {
62
+ etag?: string;
63
+ notModified: true;
64
+ };
65
+ /**
66
+ * Fetch the current dérouleur payload with `ETag` support: pass the previously
67
+ * received `etag` and check `notModified` before processing.
68
+ */
69
+ export declare function fetchDerouleur(options?: DerouleurFetchOptions & {
70
+ etag?: string;
71
+ }): Promise<FetchDerouleurResult>;
72
+ /**
73
+ * Fetch the jaune detail of an amendment (dispositif, exposé sommaire, division
74
+ * URL and signatories label) by its open data UID. The detail is much poorer
75
+ * than the Eliasse amendment payload: no sort en séance, no author structure.
76
+ */
77
+ export declare function fetchDerouleurAmendementDetail(uidAmendement: string, options?: DerouleurFetchOptions): Promise<DerouleurAmendementDetail>;
@@ -0,0 +1,87 @@
1
+ import { t as e } from "./zod_errors-DCnjCNGy.js";
2
+ import { z as t } from "zod";
3
+ //#region src/derouleur.ts
4
+ var n = "https://www.assemblee-nationale.fr/", r = [
5
+ "ADT",
6
+ "ARTICLE",
7
+ "INSCRIT",
8
+ "INSCRITQAG",
9
+ "LIBRE",
10
+ "NEXTSEANCEL1",
11
+ "NEXTSEANCEL2",
12
+ "NEXTSEANCEL3",
13
+ "REPORTVOTE",
14
+ "SSADT"
15
+ ], i = t.object({
16
+ depute_tribun_id: t.string().optional(),
17
+ ligne_amendement_derouleur_division_ancre: t.string().optional(),
18
+ ligne_amendement_uid: t.string().optional(),
19
+ ligne_amdts_identiques: t.string().optional(),
20
+ ligne_dc_amdts: t.string().optional(),
21
+ ligne_libelle_1: t.string().optional(),
22
+ ligne_libelle_compl_1: t.string().optional(),
23
+ ligne_type: t.string().optional(),
24
+ texte_bibard: t.string().optional()
25
+ }), a = t.object({
26
+ ligne: t.union([t.array(i), i]).optional(),
27
+ phase_libelle: t.string().optional(),
28
+ phase_type: t.string().optional()
29
+ }), o = t.object({ racine: t.object({
30
+ contenu: t.object({ phase: t.union([t.array(a), a]).optional() }).optional(),
31
+ jaune: t.object({
32
+ id: t.string().optional(),
33
+ jaune_date_time: t.string().optional(),
34
+ extract_date_time: t.string().optional()
35
+ }).optional()
36
+ }).optional() }), s = t.object({
37
+ dispositif: t.string().optional(),
38
+ division: t.object({ urlDivisionTexteVise: t.string().optional() }).optional(),
39
+ exposeSommaire: t.string().optional(),
40
+ listeDesSignataires: t.string().optional()
41
+ });
42
+ function c(e) {
43
+ let t = u(e.racine?.contenu?.phase), n = [], r = 0;
44
+ for (let e of t) for (let t of u(e.ligne)) r += 1, n.push({
45
+ ligne: t,
46
+ ligneIndex: r,
47
+ phase: e
48
+ });
49
+ return n;
50
+ }
51
+ function l(e) {
52
+ return (e.ligne_type === "ADT" || e.ligne_type === "SSADT") && e.ligne_amendement_uid !== void 0;
53
+ }
54
+ function u(e) {
55
+ return e === void 0 ? [] : Array.isArray(e) ? e : [e];
56
+ }
57
+ async function d(e = {}) {
58
+ let t = new URL("/local/derouleur/derouleur.json", e.baseUrl ?? "https://www.assemblee-nationale.fr/"), n = {};
59
+ e.etag !== void 0 && (n["If-None-Match"] = e.etag);
60
+ let r = await fetch(t, {
61
+ headers: n,
62
+ signal: e.signal
63
+ }), i = r.headers.get("ETag") ?? void 0;
64
+ if (r.status === 304) return {
65
+ etag: i,
66
+ notModified: !0
67
+ };
68
+ if (!r.ok) throw Error(`Dérouleur request failed: ${r.status} ${r.statusText} ${t}`);
69
+ let a = await r.json();
70
+ return p(o, "dérouleur", t, a), {
71
+ data: a,
72
+ etag: i,
73
+ notModified: !1
74
+ };
75
+ }
76
+ async function f(e, t = {}) {
77
+ let n = new URL(`/dyn/api/amendements/jaune/${encodeURIComponent(e)}`, t.baseUrl ?? "https://www.assemblee-nationale.fr/"), r = await fetch(n, { signal: t.signal });
78
+ if (!r.ok) throw Error(`Dérouleur request failed: ${r.status} ${r.statusText} ${n}`);
79
+ let i = await r.json();
80
+ return p(s, "détail d'amendement jaune", n, i), i;
81
+ }
82
+ function p(t, n, r, i) {
83
+ let a = t.safeParse(i);
84
+ if (!a.success) throw Error(`Invalid ${n} received from ${r}:\n${e(n, a.error, i)}`);
85
+ }
86
+ //#endregion
87
+ export { s as derouleurAmendementDetailSchema, n as derouleurDefaultBaseUrl, i as derouleurLigneSchema, r as derouleurLigneTypes, o as derouleurPayloadSchema, a as derouleurPhaseSchema, d as fetchDerouleur, f as fetchDerouleurAmendementDetail, c as getDerouleurLignes, l as isDerouleurAmendementLigne };
@@ -0,0 +1,164 @@
1
+ import { z } from 'zod';
2
+ export declare const eliasseDefaultBaseUrl = "https://eliasse.assemblee-nationale.fr/api-eliasse/";
3
+ export interface EliasseFetchOptions {
4
+ baseUrl?: string;
5
+ signal?: AbortSignal;
6
+ }
7
+ export interface EliasseOrgane {
8
+ uid: string;
9
+ abreviation: string;
10
+ libelle: string;
11
+ libelleAbrege: string;
12
+ libelleAbregeRaccourci: string;
13
+ dateFin: string | null;
14
+ }
15
+ export declare const eliasseOrganeSchema: z.ZodType<EliasseOrgane>;
16
+ export interface EliasseExamenTexte {
17
+ uid: string;
18
+ libelle: string;
19
+ bibard: string;
20
+ partie: number;
21
+ }
22
+ export interface EliasseMission {
23
+ codeMinefi?: string | null;
24
+ libelle?: string | null;
25
+ missionLibelle?: string | null;
26
+ nombreAmendementsMissionTotal?: number | null;
27
+ nombreAmendementsMissionExamines?: number | null;
28
+ nombreAmendementsMissionRestants?: number | null;
29
+ }
30
+ export interface EliasseExamen {
31
+ uid: string;
32
+ organeRef: string;
33
+ statut: string;
34
+ texte: EliasseExamenTexte;
35
+ estSecondeDeliberation: boolean;
36
+ missions: EliasseMission[];
37
+ }
38
+ export declare const eliasseMissionSchema: z.ZodType<EliasseMission>;
39
+ export declare const eliasseExamenSchema: z.ZodType<EliasseExamen>;
40
+ export interface EliasseProchainADiscuter {
41
+ uidOrgane: string;
42
+ uidTexte: string;
43
+ uidExamen: string;
44
+ uidAmendement: string | null;
45
+ }
46
+ export declare const eliasseProchainADiscuterSchema: z.ZodType<EliasseProchainADiscuter>;
47
+ export interface EliasseDerouleurAuteur {
48
+ libelle: string;
49
+ }
50
+ export interface EliasseDerouleurAmendement {
51
+ id: string;
52
+ uid: string;
53
+ numero: string;
54
+ estSousAmendement: boolean;
55
+ sort: string | null;
56
+ ordre: string;
57
+ auteur: EliasseDerouleurAuteur;
58
+ positionDiscussionIdentique: string | null;
59
+ positionDiscussionCommune: string | null;
60
+ positionDiscussionIdentiqueSousAmendement: string | null;
61
+ positionDiscussionCommuneSousAmendement: string | null;
62
+ estVisible: boolean;
63
+ codeMinefi: string | null;
64
+ numeroParent?: string | null;
65
+ amendementParentRef?: string | null;
66
+ }
67
+ export interface EliasseDerouleurPlace {
68
+ id: string;
69
+ libelle: string;
70
+ amendements: EliasseDerouleurAmendement[];
71
+ }
72
+ export interface EliasseDerouleur {
73
+ places: EliasseDerouleurPlace[];
74
+ version: number;
75
+ }
76
+ export declare const eliasseDerouleurAuteurSchema: z.ZodType<EliasseDerouleurAuteur>;
77
+ export declare const eliasseDerouleurAmendementSchema: z.ZodType<EliasseDerouleurAmendement>;
78
+ export declare const eliasseDerouleurSchema: z.ZodType<EliasseDerouleur>;
79
+ export interface EliasseDivision {
80
+ divisionRef: string | null;
81
+ titre: string | null;
82
+ articleDesignationCourte: string | null;
83
+ articleDesignation: string | null;
84
+ type: string | null;
85
+ avantApres: string | null;
86
+ urlDivisionTexteVise: string | null;
87
+ estArticleAdditionnel: boolean;
88
+ estChapitreAdditionnel: boolean;
89
+ contenuHtml: string | null;
90
+ }
91
+ export interface EliasseAmendementAuteur {
92
+ typeAuteur: string | null;
93
+ ref: string | null;
94
+ libelle: string;
95
+ urlPhoto: string | null;
96
+ urlFicheActeur: string | null;
97
+ }
98
+ export interface EliasseCosignataire {
99
+ uid: string;
100
+ libelle: string;
101
+ prenom: string | null;
102
+ nom: string | null;
103
+ civilite: string | null;
104
+ urlPhoto: string | null;
105
+ urlFicheActeur: string | null;
106
+ }
107
+ export interface EliasseAmendement {
108
+ uid: string;
109
+ numero: string;
110
+ numeroParent: string | null;
111
+ amendementParentRef: string | null;
112
+ estSousAmendement: boolean;
113
+ sort: string | null;
114
+ ordre: string;
115
+ division: EliasseDivision | null;
116
+ auteur: EliasseAmendementAuteur | null;
117
+ auteurParent: EliasseAmendementAuteur | null;
118
+ cosignataires: EliasseCosignataire[];
119
+ cosignatairesSuffixe: string | null;
120
+ cosignatairesLibelle: string | null;
121
+ positionDiscussionIdentique: string | null;
122
+ positionDiscussionCommune: string | null;
123
+ positionDiscussionIdentiqueSousAmendement: string | null;
124
+ positionDiscussionCommuneSousAmendement: string | null;
125
+ dispositif: string | null;
126
+ exposeSommaire: string | null;
127
+ contenuHtmlDuTexteDeReference: string | null;
128
+ missionLibelle: string | null;
129
+ }
130
+ export declare const eliasseDivisionSchema: z.ZodType<EliasseDivision>;
131
+ export declare const eliasseAmendementAuteurSchema: z.ZodType<EliasseAmendementAuteur>;
132
+ export declare const eliasseCosignataireSchema: z.ZodType<EliasseCosignataire>;
133
+ export declare const eliasseAmendementSchema: z.ZodType<EliasseAmendement>;
134
+ export interface EliasseStatistiquesMission {
135
+ codeMinefi?: string | null;
136
+ missionLibelle?: string | null;
137
+ nombreAmendementsMissionTotal?: number | null;
138
+ nombreAmendementsMissionExamines?: number | null;
139
+ nombreAmendementsMissionRestants?: number | null;
140
+ }
141
+ export interface EliasseStatistiques {
142
+ nombreAmendementsTotal: number;
143
+ nombreAmendementsExamines: number;
144
+ nombreAmendementsRestants: number;
145
+ missions: EliasseStatistiquesMission[];
146
+ }
147
+ export declare const eliasseStatistiquesMissionSchema: z.ZodType<EliasseStatistiquesMission>;
148
+ export declare const eliasseStatistiquesSchema: z.ZodType<EliasseStatistiques>;
149
+ /**
150
+ * Extract the legislature from an Eliasse UID (examens, textes or
151
+ * amendements), eg. `17` for `EXANR5L17PO419610B3058P0D1`.
152
+ */
153
+ export declare function eliasseUidLegislature(uid: string): number | undefined;
154
+ export declare function fetchEliasseOrganes(options?: EliasseFetchOptions): Promise<EliasseOrgane[]>;
155
+ export declare function fetchEliasseExamens(options?: EliasseFetchOptions): Promise<EliasseExamen[]>;
156
+ export declare function fetchEliasseProchainsADiscuter(options?: EliasseFetchOptions): Promise<EliasseProchainADiscuter[]>;
157
+ export declare function fetchEliasseDerouleur(uidExamen: string, options?: EliasseFetchOptions): Promise<EliasseDerouleur>;
158
+ export declare function fetchEliasseStatistiques(uidExamen: string, options?: EliasseFetchOptions): Promise<EliasseStatistiques>;
159
+ /**
160
+ * Fetch the details of an amendment together with its neighbors in the
161
+ * discussion order. The result is an array of up to 5 amendments, centered on
162
+ * the requested one (shifted at the beginning or end of the discussion).
163
+ */
164
+ export declare function fetchEliasseAmendementWithNeighbors(uidTexte: string, uidExamen: string, uidAmendement: string, options?: EliasseFetchOptions): Promise<EliasseAmendement[]>;
package/lib/eliasse.js ADDED
@@ -0,0 +1,150 @@
1
+ import { t as e } from "./zod_errors-DCnjCNGy.js";
2
+ import { z as t } from "zod";
3
+ //#region src/eliasse.ts
4
+ var n = "https://eliasse.assemblee-nationale.fr/api-eliasse/", r = t.object({
5
+ uid: t.string(),
6
+ abreviation: t.string(),
7
+ libelle: t.string(),
8
+ libelleAbrege: t.string(),
9
+ libelleAbregeRaccourci: t.string(),
10
+ dateFin: t.string().nullable()
11
+ }), i = t.object({
12
+ codeMinefi: t.string().nullable().optional(),
13
+ libelle: t.string().nullable().optional(),
14
+ missionLibelle: t.string().nullable().optional(),
15
+ nombreAmendementsMissionTotal: t.number().nullable().optional(),
16
+ nombreAmendementsMissionExamines: t.number().nullable().optional(),
17
+ nombreAmendementsMissionRestants: t.number().nullable().optional()
18
+ }), a = t.object({
19
+ uid: t.string(),
20
+ organeRef: t.string(),
21
+ statut: t.string(),
22
+ texte: t.object({
23
+ uid: t.string(),
24
+ libelle: t.string(),
25
+ bibard: t.string(),
26
+ partie: t.number()
27
+ }),
28
+ estSecondeDeliberation: t.boolean(),
29
+ missions: t.array(i)
30
+ }), o = t.object({
31
+ uidOrgane: t.string(),
32
+ uidTexte: t.string(),
33
+ uidExamen: t.string(),
34
+ uidAmendement: t.string().nullable()
35
+ }), s = t.object({ libelle: t.string() }), c = t.object({
36
+ id: t.string(),
37
+ uid: t.string(),
38
+ numero: t.string(),
39
+ estSousAmendement: t.boolean(),
40
+ sort: t.string().nullable(),
41
+ ordre: t.string(),
42
+ auteur: s,
43
+ positionDiscussionIdentique: t.string().nullable(),
44
+ positionDiscussionCommune: t.string().nullable(),
45
+ positionDiscussionIdentiqueSousAmendement: t.string().nullable(),
46
+ positionDiscussionCommuneSousAmendement: t.string().nullable(),
47
+ estVisible: t.boolean(),
48
+ codeMinefi: t.string().nullable(),
49
+ numeroParent: t.string().nullable().optional(),
50
+ amendementParentRef: t.string().nullable().optional()
51
+ }), l = t.object({
52
+ places: t.array(t.object({
53
+ id: t.string(),
54
+ libelle: t.string(),
55
+ amendements: t.array(c)
56
+ })),
57
+ version: t.number()
58
+ }), u = t.object({
59
+ divisionRef: t.string().nullable(),
60
+ titre: t.string().nullable(),
61
+ articleDesignationCourte: t.string().nullable(),
62
+ articleDesignation: t.string().nullable(),
63
+ type: t.string().nullable(),
64
+ avantApres: t.string().nullable(),
65
+ urlDivisionTexteVise: t.string().nullable(),
66
+ estArticleAdditionnel: t.boolean(),
67
+ estChapitreAdditionnel: t.boolean(),
68
+ contenuHtml: t.string().nullable()
69
+ }), d = t.object({
70
+ typeAuteur: t.string().nullable(),
71
+ ref: t.string().nullable(),
72
+ libelle: t.string(),
73
+ urlPhoto: t.string().nullable(),
74
+ urlFicheActeur: t.string().nullable()
75
+ }), f = t.object({
76
+ uid: t.string(),
77
+ libelle: t.string(),
78
+ prenom: t.string().nullable(),
79
+ nom: t.string().nullable(),
80
+ civilite: t.string().nullable(),
81
+ urlPhoto: t.string().nullable(),
82
+ urlFicheActeur: t.string().nullable()
83
+ }), p = t.object({
84
+ uid: t.string(),
85
+ numero: t.string(),
86
+ numeroParent: t.string().nullable(),
87
+ amendementParentRef: t.string().nullable(),
88
+ estSousAmendement: t.boolean(),
89
+ sort: t.string().nullable(),
90
+ ordre: t.string(),
91
+ division: u.nullable(),
92
+ auteur: d.nullable(),
93
+ auteurParent: d.nullable(),
94
+ cosignataires: t.array(f),
95
+ cosignatairesSuffixe: t.string().nullable(),
96
+ cosignatairesLibelle: t.string().nullable(),
97
+ positionDiscussionIdentique: t.string().nullable(),
98
+ positionDiscussionCommune: t.string().nullable(),
99
+ positionDiscussionIdentiqueSousAmendement: t.string().nullable(),
100
+ positionDiscussionCommuneSousAmendement: t.string().nullable(),
101
+ dispositif: t.string().nullable(),
102
+ exposeSommaire: t.string().nullable(),
103
+ contenuHtmlDuTexteDeReference: t.string().nullable(),
104
+ missionLibelle: t.string().nullable()
105
+ }), m = t.object({
106
+ codeMinefi: t.string().nullable().optional(),
107
+ missionLibelle: t.string().nullable().optional(),
108
+ nombreAmendementsMissionTotal: t.number().nullable().optional(),
109
+ nombreAmendementsMissionExamines: t.number().nullable().optional(),
110
+ nombreAmendementsMissionRestants: t.number().nullable().optional()
111
+ }), h = t.object({
112
+ nombreAmendementsTotal: t.number(),
113
+ nombreAmendementsExamines: t.number(),
114
+ nombreAmendementsRestants: t.number(),
115
+ missions: t.array(m)
116
+ });
117
+ function g(e) {
118
+ let t = /L(\d+)/.exec(e);
119
+ return t === null ? void 0 : Number(t[1]);
120
+ }
121
+ async function _(t, n, r, i) {
122
+ let a = i?.baseUrl ?? "https://eliasse.assemblee-nationale.fr/api-eliasse/", o = new URL(t, a.endsWith("/") ? a : `${a}/`), s = await fetch(o, {
123
+ headers: { Accept: "application/json" },
124
+ signal: i?.signal
125
+ });
126
+ if (!s.ok) throw Error(`Eliasse request failed: ${s.status} ${s.statusText} ${o}`);
127
+ let c = await s.json(), l = n.safeParse(c);
128
+ if (!l.success) throw Error(`Invalid Eliasse ${r} received from ${o}:\n${e(r, l.error, c)}`);
129
+ return c;
130
+ }
131
+ function v(e) {
132
+ return _("organes", t.array(r), "organes", e);
133
+ }
134
+ function y(e) {
135
+ return _("examens", t.array(a), "examens", e);
136
+ }
137
+ function b(e) {
138
+ return _("prochainadiscuter", t.array(o), "prochains à discuter", e);
139
+ }
140
+ function x(e, t) {
141
+ return _(`examens/${encodeURIComponent(e)}/derouleur`, l, "dérouleur", t);
142
+ }
143
+ function S(e, t) {
144
+ return _(`examens/${encodeURIComponent(e)}/statistiques`, h, "statistiques", t);
145
+ }
146
+ function C(e, n, r, i) {
147
+ return _(`textes/${encodeURIComponent(e)}/examens/${encodeURIComponent(n)}/amendements/${encodeURIComponent(r)}/with_neighbors`, t.array(p), "amendements", i);
148
+ }
149
+ //#endregion
150
+ export { d as eliasseAmendementAuteurSchema, p as eliasseAmendementSchema, f as eliasseCosignataireSchema, n as eliasseDefaultBaseUrl, c as eliasseDerouleurAmendementSchema, s as eliasseDerouleurAuteurSchema, l as eliasseDerouleurSchema, u as eliasseDivisionSchema, a as eliasseExamenSchema, i as eliasseMissionSchema, r as eliasseOrganeSchema, o as eliasseProchainADiscuterSchema, m as eliasseStatistiquesMissionSchema, h as eliasseStatistiquesSchema, g as eliasseUidLegislature, C as fetchEliasseAmendementWithNeighbors, x as fetchEliasseDerouleur, y as fetchEliasseExamens, v as fetchEliasseOrganes, b as fetchEliasseProchainsADiscuter, S as fetchEliasseStatistiques };
package/lib/git.js CHANGED
@@ -2,7 +2,7 @@ import e from "fs-extra";
2
2
  import t from "node:path";
3
3
  import { execFileSync as n } from "node:child_process";
4
4
  //#region src/git.ts
5
- var r = 52428800;
5
+ var r = 50 * 1024 * 1024;
6
6
  function i(e) {
7
7
  return Array.isArray(e) ? e : e.trim().split(/\s+/).filter(Boolean);
8
8
  }
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 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-s-5GIY_X.js";
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-UjCZmd8a.js";
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, i as m, it as h, j as g, k as _, l as v, lt as y, m as b, mt as x, n as S, o as C, ot as w, p as T, pt as E, q as D, r as O, rt 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-DSXfagiR.js";
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-CGHd_VPY.js";
3
3
  //#region src/api.ts
4
4
  var I = /* @__PURE__ */ function(e) {
5
5
  return e.Amendements = "amendements", e;
@@ -80,7 +80,10 @@ function B(e, t) {
80
80
  ["rejeté", "rejetée"].includes(t) && e.actesLegislatifs !== void 0 && e.actesLegislatifs.length === 1 && (i = "FAILURE");
81
81
  break;
82
82
  case "PROCEDURE_PARLEMENTAIRE_8":
83
- case "PROCEDURE_PARLEMENTAIRE_22": r === "SUCCESS" ? i = "SUCCESS" : r === "FAILURE" && (i = "FAILURE");
83
+ case "PROCEDURE_PARLEMENTAIRE_22":
84
+ r === "SUCCESS" ? i = "SUCCESS" : r === "FAILURE" && (i = "FAILURE");
85
+ break;
86
+ default: break;
84
87
  }
85
88
  return {
86
89
  currentStatus: r,
@@ -585,4 +588,4 @@ function $(e, t, n = !1) {
585
588
  };
586
589
  }
587
590
  //#endregion
588
- 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 };
591
+ export { te as AccordGouvernementDepotHorsDelaiSchema, st as ActeLegislatifSchema, Pn as ActeurSchema, oe as ActionSchema, Yr as AdresseSchema, M as AlineaSchema, S as AmendementSchema, yt as AmendementsCommissionSchema, O as AmendementsConvert, m as AmendementsSchema, Bt as AmendementsSeanceSchema, F as AnalyseSchema, mi as AuteurActeurSchema, pe as AuteurAmendementSchema, Qr as AuteurQuestionSchema, Ne as AuteurSchema, C 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, v 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, T 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, b 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, _ 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, g 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, k as dateFromNullableDateOrIsoString, h as dateFromYearMonthDayTimezoneString, Xr as decisionOptions, Fr as depNaisOptions, me 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, w as existingDateToJson, pt as famSocProEnumOptions, j as formatRelativeFrenchTime, ze as formatReunionOptions, _e as frenchDateFormat, y as frenchDateSameYearShortFormat, P as frenchDateWithoutDayOfWeekFromDateOrString, ye 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, E as localIso8601StringFromDate, fn as mandatXsiTypeOptions, Lt as modePublicationDesVotesOptions, ii as natureTravauxOdjOptions, bn as organeXsiTypeOptions, x 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, D 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 };
@@ -1,5 +1,5 @@
1
- import { r as e } from "./amendements-s-5GIY_X.js";
2
- import { Fn as t, In as n, Mn as r, Mt as i, Nn as a, O as o, Pn as s, Q as c, Ut as l, jn as u, l as d, ln as f, ti as p } from "./scrutins-UjCZmd8a.js";
1
+ import { r as e } from "./amendements-DSXfagiR.js";
2
+ import { Fn as t, In as n, Mn as r, Mt as i, Nn as a, O as o, Pn as s, Q as c, Ut as l, jn as u, l as d, ln as f, ti as p } from "./scrutins-CGHd_VPY.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-Bdc1oCGG.js";
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-DYFDjudN.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 };