@tricoteuses/assemblee 3.8.6 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cleaners/debats.d.ts +24 -1
- package/lib/cleaners/debats.test.d.ts +1 -0
- package/lib/cleaners/reunions.d.ts +0 -13
- package/lib/cleaners.js +38 -13
- package/lib/debats-B9QGOiey.js +334 -0
- package/lib/git.js +9 -9
- package/lib/index.js +3 -2
- package/lib/loaders.js +864 -2
- package/lib/schemas/clean/debats.d.ts +19 -0
- package/lib/schemas/enriched/debats.d.ts +10 -0
- package/lib/scripts/retrieve_documents.d.ts +1 -4
- package/lib/scripts/retrieve_documents.test.d.ts +1 -0
- package/lib/scripts/retrieve_videos.d.ts +6 -0
- package/lib/scripts/shared/harvest_windows.d.ts +28 -4
- package/lib/scrutins-BlgNbmer.js +1774 -0
- package/package.json +1 -1
- package/lib/loaders-Dd8i-E7o.js +0 -863
- package/lib/scrutins-CLWnMYLE.js +0 -2095
package/lib/cleaners/debats.d.ts
CHANGED
|
@@ -1,2 +1,25 @@
|
|
|
1
|
-
import { CompteRenduClean } from '../schemas/clean/debats';
|
|
1
|
+
import { CompteRenduClean, EtatPublicationCompteRendu } from '../schemas/clean/debats';
|
|
2
|
+
/**
|
|
3
|
+
* Publication state deduced from the report content alone: looks for the
|
|
4
|
+
* upstream marker sentences in every string below `contenu`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function etatPublicationFromContenu(contenu: unknown): EtatPublicationCompteRendu;
|
|
7
|
+
/**
|
|
8
|
+
* Publication state of a sitting or commission report.
|
|
9
|
+
*
|
|
10
|
+
* - `en_cours_de_finalisation` when upstream still flags the report as
|
|
11
|
+
* `metadonnees.etat = "provisoire"` (its text keeps changing until it
|
|
12
|
+
* becomes `complet`) or when the content contains the
|
|
13
|
+
* "en cours de finalisation" placeholder (which sometimes survives for days
|
|
14
|
+
* in a `complet` report);
|
|
15
|
+
* - `sans_compte_rendu_ecrit` when the content says that there is no written
|
|
16
|
+
* report;
|
|
17
|
+
* - `finalise` otherwise.
|
|
18
|
+
*/
|
|
19
|
+
export declare function computeEtatPublicationCompteRendu(compteRendu: {
|
|
20
|
+
contenu?: unknown;
|
|
21
|
+
metadonnees?: {
|
|
22
|
+
etat?: unknown;
|
|
23
|
+
} | null;
|
|
24
|
+
}): EtatPublicationCompteRendu;
|
|
2
25
|
export declare function cleanCompteRendu(compteRendu: unknown): CompteRenduClean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
import { ReunionClean } from '../schemas/clean/agendas';
|
|
2
|
-
import { Point, Reunion } from '..';
|
|
3
2
|
export declare function cleanReunion(data: unknown): ReunionClean;
|
|
4
|
-
export declare function hasMissingOrNotFinalizedText(node: Point | undefined | null): boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Remove compteRenduRef from reunion if the referenced compte rendu is missing or has missing/not finalized content,
|
|
7
|
-
* and delete the compte rendu file in that case.
|
|
8
|
-
*/
|
|
9
|
-
export declare function reconcileReunionCompteRenduRef(reunion: Reunion, datasetCleanDir: string, { dataDir, legislature, removeMissingSeanceCR, verbose, onlyRecent, }: {
|
|
10
|
-
dataDir: string;
|
|
11
|
-
legislature: number;
|
|
12
|
-
removeMissingSeanceCR?: boolean;
|
|
13
|
-
verbose?: boolean;
|
|
14
|
-
onlyRecent?: number;
|
|
15
|
-
}): void;
|
package/lib/cleaners.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as e, t, y as n } from "./debats-B9QGOiey.js";
|
|
2
2
|
import { i as r, n as i, r as a, t as o } from "./amendements-BtCdrXW8.js";
|
|
3
|
-
import "./loaders-Dd8i-E7o.js";
|
|
4
3
|
import s from "node:assert";
|
|
5
|
-
import "fs-extra";
|
|
6
|
-
import "node:path";
|
|
7
4
|
//#region src/cleaners/acteurs.ts
|
|
8
5
|
function c(e) {
|
|
9
6
|
let t = e;
|
|
@@ -624,19 +621,47 @@ function O(e) {
|
|
|
624
621
|
}
|
|
625
622
|
//#endregion
|
|
626
623
|
//#region src/cleaners/questions.ts
|
|
627
|
-
function k(
|
|
628
|
-
let
|
|
629
|
-
return r(
|
|
624
|
+
function k(t) {
|
|
625
|
+
let n = e.parse(t);
|
|
626
|
+
return r(n, { recursive: !0 }), n;
|
|
630
627
|
}
|
|
631
628
|
//#endregion
|
|
632
629
|
//#region src/cleaners/debats.ts
|
|
633
|
-
|
|
634
|
-
|
|
630
|
+
var A = ["Cette partie de la séance est en cours de finalisation"], j = [
|
|
631
|
+
"Cette audition n'a pas fait l'objet d'un compte rendu écrit",
|
|
632
|
+
"Cette réunion ne fait pas l'objet d'un compte rendu écrit",
|
|
633
|
+
"Ce point de l'ordre du jour ne fait pas l'objet d'un compte rendu écrit"
|
|
634
|
+
];
|
|
635
|
+
function M(e) {
|
|
636
|
+
return e.replace(/[’ʼ]/g, "'");
|
|
637
|
+
}
|
|
638
|
+
function* N(e) {
|
|
639
|
+
if (typeof e == "string") yield e;
|
|
640
|
+
else if (Array.isArray(e)) for (let t of e) yield* N(t);
|
|
641
|
+
else if (typeof e == "object" && e) for (let t of Object.values(e)) yield* N(t);
|
|
642
|
+
}
|
|
643
|
+
function P(e) {
|
|
644
|
+
let t = !1;
|
|
645
|
+
for (let n of N(e)) {
|
|
646
|
+
if (A.some((e) => n.includes(e))) return "en_cours_de_finalisation";
|
|
647
|
+
if (!t) {
|
|
648
|
+
let e = M(n);
|
|
649
|
+
t = j.some((t) => e.includes(t));
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return t ? "sans_compte_rendu_ecrit" : "finalise";
|
|
653
|
+
}
|
|
654
|
+
function F(e) {
|
|
655
|
+
let t = P(e.contenu);
|
|
656
|
+
return t === "finalise" && e.metadonnees?.etat === "provisoire" ? "en_cours_de_finalisation" : t;
|
|
657
|
+
}
|
|
658
|
+
function I(e) {
|
|
659
|
+
let i = n.safeParse(e), a;
|
|
635
660
|
if (i.success) {
|
|
636
661
|
let e = i.data;
|
|
637
|
-
|
|
638
|
-
}
|
|
639
|
-
return
|
|
662
|
+
r(e, { recursive: !0 }), a = e;
|
|
663
|
+
} else a = t.parse(e);
|
|
664
|
+
return a.etatPublication = F(a), a;
|
|
640
665
|
}
|
|
641
666
|
//#endregion
|
|
642
|
-
export { c as cleanActeur, o as cleanAmendement,
|
|
667
|
+
export { c as cleanActeur, o as cleanAmendement, I as cleanCompteRendu, f as cleanDocumentOrDivision, v as cleanDossierParlementaire, b as cleanOrgane, k as cleanQuestion, S as cleanReunion, D as cleanScrutin };
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { Ct as e, St as t, Tt as n, bt as r, vt as i, wt as a, xt as o, yt as s } from "./amendements-DfZse75q.js";
|
|
2
|
+
import { t as ee } from "./zod_errors-qS8sQ67W.js";
|
|
3
|
+
import { z as c } from "zod";
|
|
4
|
+
//#region src/schemas/raw/debats.ts
|
|
5
|
+
var l = [
|
|
6
|
+
"",
|
|
7
|
+
"ADOPTION amendement (main levée) adt",
|
|
8
|
+
"ADOPTION d’un article (vote à main levée)",
|
|
9
|
+
"ADOPTION d’un sous-amendement (main levée) ss-adt",
|
|
10
|
+
"ADOPTION de plusieurs amendements (main levée) adts",
|
|
11
|
+
"ADOPTION de plusieurs sous-amendements (main levée) ss-adts",
|
|
12
|
+
"REJET d’un amendement (main levée) adt",
|
|
13
|
+
"REJET d’un article (vote à main levée)",
|
|
14
|
+
"REJET d’un sous-amendement (main levée) ss-adt",
|
|
15
|
+
"REJET de plusieurs amendements (main levée) adts",
|
|
16
|
+
"REJET de plusieurs sous-amendements (main levée) ss-adts",
|
|
17
|
+
"REJET motion de rejet préalable (main levée)"
|
|
18
|
+
], u = c.enum(l), d = c.lazy(() => c.object({
|
|
19
|
+
_: e(),
|
|
20
|
+
id_syceron: e(),
|
|
21
|
+
stime: e(),
|
|
22
|
+
sup: e(),
|
|
23
|
+
lienAdt: o(d).optional()
|
|
24
|
+
})), te = c.object({
|
|
25
|
+
nom: e(),
|
|
26
|
+
id: a(),
|
|
27
|
+
qualite: e()
|
|
28
|
+
}), f = c.object({ orateur: o(te) }), p = c.lazy(() => c.object({
|
|
29
|
+
id_preparation: e(),
|
|
30
|
+
ordre_absolu_seance: e(),
|
|
31
|
+
code_grammaire: e(),
|
|
32
|
+
sommaire: e(),
|
|
33
|
+
id_syceron: e(),
|
|
34
|
+
valeur_ptsodj: e(),
|
|
35
|
+
nivpoint: e(),
|
|
36
|
+
ordinal_prise: e(),
|
|
37
|
+
code_style: e(),
|
|
38
|
+
code_parole: e(),
|
|
39
|
+
valeur: e(),
|
|
40
|
+
orateurs: c.union([f, c.string()]).optional(),
|
|
41
|
+
texte: c.union([d, c.string()]).optional(),
|
|
42
|
+
paragraphe: o(p).optional(),
|
|
43
|
+
interExtraction: o(p).optional(),
|
|
44
|
+
point: o(p).optional(),
|
|
45
|
+
structure: e(),
|
|
46
|
+
id_acteur: e(),
|
|
47
|
+
id_mandat: e(),
|
|
48
|
+
id_nomination_oe: e(),
|
|
49
|
+
id_nomination_op: e(),
|
|
50
|
+
orateur: e(),
|
|
51
|
+
bibard: e(),
|
|
52
|
+
art: e(),
|
|
53
|
+
adt: e(),
|
|
54
|
+
ssadt: e(),
|
|
55
|
+
roledebat: e(),
|
|
56
|
+
changementPresidence: o(p).optional(),
|
|
57
|
+
type_debat: e(),
|
|
58
|
+
decision: u.optional(),
|
|
59
|
+
ouvertureSeance: p.optional(),
|
|
60
|
+
qualite: e(),
|
|
61
|
+
nom_orateur: e()
|
|
62
|
+
})), m = c.object({ point: p }), h = c.object({
|
|
63
|
+
journee: c.string(),
|
|
64
|
+
session: c.string()
|
|
65
|
+
}), ne = c.object({
|
|
66
|
+
quantiemes: h,
|
|
67
|
+
ouvertureSeance: o(p).optional(),
|
|
68
|
+
point: o(p),
|
|
69
|
+
finSeance: m.optional(),
|
|
70
|
+
paragraphe: o(p).optional()
|
|
71
|
+
}), g = c.object({
|
|
72
|
+
id_syceron: c.string(),
|
|
73
|
+
intitule: e(),
|
|
74
|
+
sousIntitule: e(),
|
|
75
|
+
type_debat: e()
|
|
76
|
+
}), _ = c.lazy(() => c.object({
|
|
77
|
+
valeur_pts_odj: e(),
|
|
78
|
+
titreStruct: g,
|
|
79
|
+
para: o(c.union([d, c.string()])).optional(),
|
|
80
|
+
sommaire2: o(_).optional(),
|
|
81
|
+
sommaire3: o(_).optional(),
|
|
82
|
+
presidentSeance: o(d).optional(),
|
|
83
|
+
type_debat: e()
|
|
84
|
+
})), v = c.object({
|
|
85
|
+
presidentSeance: d,
|
|
86
|
+
sommaire1: o(_),
|
|
87
|
+
sommaire2: o(_).optional(),
|
|
88
|
+
sommaire3: o(_).optional(),
|
|
89
|
+
para: o(d).optional()
|
|
90
|
+
}), y = c.object({
|
|
91
|
+
dateSeance: c.string(),
|
|
92
|
+
dateSeanceJour: c.string(),
|
|
93
|
+
numSeanceJour: c.string(),
|
|
94
|
+
numSeance: c.string(),
|
|
95
|
+
typeAssemblee: c.string(),
|
|
96
|
+
legislature: c.string(),
|
|
97
|
+
session: c.string(),
|
|
98
|
+
nomFichierJo: c.string(),
|
|
99
|
+
validite: c.string(),
|
|
100
|
+
etat: c.string(),
|
|
101
|
+
diffusion: c.string(),
|
|
102
|
+
version: c.string(),
|
|
103
|
+
environnement: c.string(),
|
|
104
|
+
heureGeneration: c.iso.datetime({ offset: !0 }),
|
|
105
|
+
sommaire: v
|
|
106
|
+
}), b = c.object({
|
|
107
|
+
xmlns: c.string(),
|
|
108
|
+
uid: n(),
|
|
109
|
+
seanceRef: c.string(),
|
|
110
|
+
sessionRef: c.string(),
|
|
111
|
+
metadonnees: y,
|
|
112
|
+
contenu: ne
|
|
113
|
+
});
|
|
114
|
+
c.object({ compteRendu: b });
|
|
115
|
+
var re = c.object({ compteRendu: o(b) });
|
|
116
|
+
c.object({ compteRendu: re });
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/schemas/raw/questions.ts
|
|
119
|
+
var x = [
|
|
120
|
+
"QuestionEcrite_Type",
|
|
121
|
+
"QuestionGouvernement_Type",
|
|
122
|
+
"QuestionOrale_Type"
|
|
123
|
+
], S = c.enum(x), C = [
|
|
124
|
+
"QE",
|
|
125
|
+
"QG",
|
|
126
|
+
"QOSD"
|
|
127
|
+
], w = c.enum(C), ie = w, ae = c.enum([
|
|
128
|
+
"JO_QUESTION",
|
|
129
|
+
"JO_LOI_DECRET",
|
|
130
|
+
"JO_DEBAT"
|
|
131
|
+
]), oe = c.object({
|
|
132
|
+
numero: c.string(),
|
|
133
|
+
regime: c.string(),
|
|
134
|
+
legislature: c.string()
|
|
135
|
+
}), T = c.object({
|
|
136
|
+
organeRef: t().meta({ description: "Référence à l'organe." }),
|
|
137
|
+
abrege: c.string(),
|
|
138
|
+
developpe: c.string()
|
|
139
|
+
}), se = c.object({
|
|
140
|
+
acteurRef: i().meta({ description: "Référence à l'acteur." }),
|
|
141
|
+
mandatRef: c.string()
|
|
142
|
+
}), ce = c.object({
|
|
143
|
+
identite: se,
|
|
144
|
+
groupe: T
|
|
145
|
+
}), E = c.object({
|
|
146
|
+
typeJO: ae.nullable(),
|
|
147
|
+
dateJO: s().describe("Date de publication au Journal Officiel"),
|
|
148
|
+
pageJO: a().nullable(),
|
|
149
|
+
numJO: a().nullable(),
|
|
150
|
+
urlLegifrance: a().nullable(),
|
|
151
|
+
referenceNOR: a().nullable()
|
|
152
|
+
}), D = c.object({ analyse: a().nullable() }), O = c.object({
|
|
153
|
+
rubrique: a().nullable(),
|
|
154
|
+
teteAnalyse: c.null(),
|
|
155
|
+
analyses: D
|
|
156
|
+
}), k = c.object({
|
|
157
|
+
infoJO: E,
|
|
158
|
+
denomination: T
|
|
159
|
+
}), A = c.object({ minAttrib: o(k) }), j = c.object({
|
|
160
|
+
infoJO: E,
|
|
161
|
+
texte: a().nullable(),
|
|
162
|
+
erratum: c.string().optional()
|
|
163
|
+
}), M = c.object({ texteQuestion: o(j) }), N = c.object({ texteReponse: o(j) }), P = c.object({
|
|
164
|
+
codeCloture: c.string(),
|
|
165
|
+
libelleCloture: c.string(),
|
|
166
|
+
dateCloture: s(),
|
|
167
|
+
infoJO: E.nullable()
|
|
168
|
+
}), F = c.object({
|
|
169
|
+
dateDepotSignal: r().describe("Date de dépôt du signalement"),
|
|
170
|
+
infoJO: E
|
|
171
|
+
}), I = c.object({ infoJO: E }), L = c.object({ renouvellement: o(I) }), R = c.object({
|
|
172
|
+
"@xmlns": c.string().optional(),
|
|
173
|
+
"@xmlns:xsi": c.string(),
|
|
174
|
+
"@xsi:type": S,
|
|
175
|
+
uid: n().meta({ description: "Identifiant unique de la question." }),
|
|
176
|
+
identifiant: oe,
|
|
177
|
+
type: ie,
|
|
178
|
+
indexationAN: O,
|
|
179
|
+
auteur: ce,
|
|
180
|
+
minInt: T,
|
|
181
|
+
minAttribs: A,
|
|
182
|
+
textesQuestion: M.nullable().optional(),
|
|
183
|
+
textesReponse: N.nullable().optional(),
|
|
184
|
+
cloture: P.nullable().optional(),
|
|
185
|
+
signalement: F.nullable().optional(),
|
|
186
|
+
renouvellements: L.nullable().optional()
|
|
187
|
+
});
|
|
188
|
+
c.object({ question: R });
|
|
189
|
+
var z = c.object({ question: c.array(R) });
|
|
190
|
+
c.object({ questions: z });
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/schemas/clean/debats.ts
|
|
193
|
+
var B = c.lazy(() => c.object({
|
|
194
|
+
_: c.string().optional(),
|
|
195
|
+
id_syceron: c.string().optional(),
|
|
196
|
+
stime: c.string().optional(),
|
|
197
|
+
sup: c.string().optional(),
|
|
198
|
+
lienAdt: c.array(B).optional()
|
|
199
|
+
}).meta({ description: "Texte de la séance du débat." })), V = c.object({
|
|
200
|
+
nom: c.string().optional(),
|
|
201
|
+
id: c.string().optional(),
|
|
202
|
+
qualite: c.string().optional()
|
|
203
|
+
}).meta({ description: "Orateur de la séance du débat." }), H = c.object({ orateur: o(V) }), U = c.union([
|
|
204
|
+
H,
|
|
205
|
+
o(V),
|
|
206
|
+
V,
|
|
207
|
+
c.string()
|
|
208
|
+
]), W = c.lazy(() => c.object({
|
|
209
|
+
id_preparation: c.string().optional(),
|
|
210
|
+
ordre_absolu_seance: c.string().optional(),
|
|
211
|
+
code_grammaire: c.string().optional(),
|
|
212
|
+
sommaire: c.string().optional(),
|
|
213
|
+
id_syceron: c.string().optional(),
|
|
214
|
+
valeur_ptsodj: c.string().optional(),
|
|
215
|
+
nivpoint: c.string().optional(),
|
|
216
|
+
ordinal_prise: c.string().optional(),
|
|
217
|
+
code_style: c.string().optional(),
|
|
218
|
+
code_parole: c.string().optional(),
|
|
219
|
+
valeur: c.string().optional(),
|
|
220
|
+
orateurs: U.optional(),
|
|
221
|
+
texte: c.union([B, c.string()]).optional(),
|
|
222
|
+
paragraphe: o(W).optional(),
|
|
223
|
+
interExtraction: o(W).optional(),
|
|
224
|
+
point: o(W).optional(),
|
|
225
|
+
structure: c.string().optional(),
|
|
226
|
+
id_acteur: c.string().optional(),
|
|
227
|
+
id_mandat: c.string().optional(),
|
|
228
|
+
id_nomination_oe: c.string().optional(),
|
|
229
|
+
id_nomination_op: c.string().optional(),
|
|
230
|
+
orateur: c.string().optional(),
|
|
231
|
+
bibard: c.string().optional(),
|
|
232
|
+
art: c.string().optional(),
|
|
233
|
+
adt: c.string().optional(),
|
|
234
|
+
ssadt: c.string().optional(),
|
|
235
|
+
roledebat: c.string().optional(),
|
|
236
|
+
changementPresidence: o(W).optional(),
|
|
237
|
+
type_debat: c.string().optional(),
|
|
238
|
+
decision: u.optional().meta({ description: "Décision prise à l'issue du point de débat." }),
|
|
239
|
+
ouvertureSeance: W.optional(),
|
|
240
|
+
qualite: c.string().optional(),
|
|
241
|
+
nom_orateur: c.string().optional()
|
|
242
|
+
}).meta({ description: "Point de la séance du débat." })), G = c.object({ point: W }), K = c.object({
|
|
243
|
+
journee: c.string(),
|
|
244
|
+
session: c.string()
|
|
245
|
+
}), q = c.object({
|
|
246
|
+
quantiemes: K,
|
|
247
|
+
ouvertureSeance: o(W).optional(),
|
|
248
|
+
point: o(W),
|
|
249
|
+
finSeance: G.optional(),
|
|
250
|
+
paragraphe: o(W).optional()
|
|
251
|
+
}).meta({ description: "Contenu de la séance du débat." }), J = c.object({
|
|
252
|
+
id_syceron: c.string(),
|
|
253
|
+
intitule: c.string().optional(),
|
|
254
|
+
sousIntitule: c.string().optional(),
|
|
255
|
+
type_debat: c.string().optional()
|
|
256
|
+
}), Y = c.lazy(() => c.object({
|
|
257
|
+
valeur_pts_odj: c.string().optional(),
|
|
258
|
+
titreStruct: J,
|
|
259
|
+
para: o(c.union([
|
|
260
|
+
B,
|
|
261
|
+
c.string(),
|
|
262
|
+
c.unknown()
|
|
263
|
+
])).optional(),
|
|
264
|
+
sommaire2: o(Y).optional(),
|
|
265
|
+
sommaire3: o(Y).optional(),
|
|
266
|
+
presidentSeance: o(B).optional(),
|
|
267
|
+
type_debat: c.string().optional()
|
|
268
|
+
}).meta({ description: "Sommaire de la séance du débat." })), X = c.object({
|
|
269
|
+
presidentSeance: B.meta({ description: "Président de la séance." }),
|
|
270
|
+
sommaire1: o(Y).meta({ description: "Premier niveau de sommaire." }),
|
|
271
|
+
sommaire3: o(Y).optional().meta({ description: "Troisième niveau de sommaire." }),
|
|
272
|
+
sommaire2: o(Y).optional().meta({ description: "Second niveau de sommaire." }),
|
|
273
|
+
para: o(B).optional().meta({ description: "Paragraphe de texte libre dans le sommaire." })
|
|
274
|
+
}).meta({ description: "Sommaire de la séance du débat." }), Z = c.object({
|
|
275
|
+
dateSeance: c.string(),
|
|
276
|
+
dateSeanceJour: c.string(),
|
|
277
|
+
numSeanceJour: c.string(),
|
|
278
|
+
numSeance: c.string(),
|
|
279
|
+
typeAssemblee: c.string(),
|
|
280
|
+
legislature: c.string(),
|
|
281
|
+
session: c.string(),
|
|
282
|
+
nomFichierJo: c.string(),
|
|
283
|
+
validite: c.string(),
|
|
284
|
+
etat: c.string(),
|
|
285
|
+
diffusion: c.string(),
|
|
286
|
+
version: c.string(),
|
|
287
|
+
environnement: c.string(),
|
|
288
|
+
heureGeneration: c.iso.datetime({ offset: !0 }).optional(),
|
|
289
|
+
sommaire: X
|
|
290
|
+
}).meta({ description: "Données de la séance du débat." }), le = c.enum([
|
|
291
|
+
"finalise",
|
|
292
|
+
"en_cours_de_finalisation",
|
|
293
|
+
"sans_compte_rendu_ecrit"
|
|
294
|
+
]).meta({ description: "État de publication du compte rendu : `finalise` (texte définitif ou complet), `en_cours_de_finalisation` (état temporaire : compte rendu provisoire ou contenant « Cette partie de la séance est en cours de finalisation ») ou `sans_compte_rendu_ecrit` (état définitif : la réunion, l'audition ou le point « ne fait pas / n'a pas fait l'objet d'un compte rendu écrit »). Absent des données produites avant la version 3.9.0, où il faut le lire comme `finalise`." }), Q = c.object({
|
|
295
|
+
schemaVersion: c.string().optional(),
|
|
296
|
+
uid: n().meta({ description: "Identifiant unique du compte rendu" }),
|
|
297
|
+
seanceRef: c.string(),
|
|
298
|
+
sessionRef: c.string(),
|
|
299
|
+
metadonnees: Z,
|
|
300
|
+
contenu: q,
|
|
301
|
+
etatPublication: le.optional(),
|
|
302
|
+
videoUrl: c.string().optional(),
|
|
303
|
+
videoTimecode: c.number().optional()
|
|
304
|
+
}).meta({
|
|
305
|
+
title: "Débat",
|
|
306
|
+
description: "Compte rendu des débats en séance."
|
|
307
|
+
}), ue = c.object({ comptesRendus: c.array(Q) });
|
|
308
|
+
function de(e) {
|
|
309
|
+
let t = JSON.parse(e), n = Q.safeParse(t);
|
|
310
|
+
if (!n.success) throw Error($("CompteRenduClean", n.error, t));
|
|
311
|
+
return n.data;
|
|
312
|
+
}
|
|
313
|
+
function fe(e) {
|
|
314
|
+
let t = JSON.parse(e), n = ue.safeParse(t);
|
|
315
|
+
if (!n.success) throw Error($("ComptesRendusClean", n.error, t));
|
|
316
|
+
return n.data;
|
|
317
|
+
}
|
|
318
|
+
function pe(e) {
|
|
319
|
+
return JSON.stringify(e, null, 2);
|
|
320
|
+
}
|
|
321
|
+
function me(e) {
|
|
322
|
+
return JSON.stringify(e, null, 2);
|
|
323
|
+
}
|
|
324
|
+
function $(e, t, n) {
|
|
325
|
+
return ee(e, t, n);
|
|
326
|
+
}
|
|
327
|
+
var he = {
|
|
328
|
+
toCompteRendu: de,
|
|
329
|
+
compteRenduToJson: pe,
|
|
330
|
+
toComptesRendus: fe,
|
|
331
|
+
comptesRendusToJson: me
|
|
332
|
+
};
|
|
333
|
+
//#endregion
|
|
334
|
+
export { x as _, Z as a, u as b, W as c, Y as d, B as f, w as g, S as h, G as i, K as l, R as m, q as n, V as o, J as p, he as r, H as s, Q as t, X as u, C as v, l as x, b as y };
|
package/lib/git.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
1
|
+
import { execFileSync as e } from "node:child_process";
|
|
2
|
+
import t from "fs-extra";
|
|
3
|
+
import n from "node:path";
|
|
4
4
|
//#region src/git.ts
|
|
5
5
|
var r = 52428800;
|
|
6
6
|
function i(e) {
|
|
7
7
|
return Array.isArray(e) ? e : e.trim().split(/\s+/).filter(Boolean);
|
|
8
8
|
}
|
|
9
|
-
function a(
|
|
10
|
-
return
|
|
11
|
-
cwd:
|
|
9
|
+
function a(t, { cwd: n, encoding: r = "utf-8", maxBuffer: a, stdio: o }) {
|
|
10
|
+
return e("git", i(t), {
|
|
11
|
+
cwd: n,
|
|
12
12
|
env: process.env,
|
|
13
13
|
encoding: r,
|
|
14
14
|
maxBuffer: a,
|
|
15
15
|
stdio: o
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function o(
|
|
19
|
-
|
|
20
|
-
cwd:
|
|
18
|
+
function o(e) {
|
|
19
|
+
t.existsSync(n.join(e, ".git")) || (t.ensureDirSync(e), a(["init"], {
|
|
20
|
+
cwd: e,
|
|
21
21
|
stdio: [
|
|
22
22
|
"ignore",
|
|
23
23
|
"ignore",
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./browser-Dl6SgoZX.js";
|
|
2
2
|
import { $ as t, A as n, At as r, B as i, C as a, D as o, Dt as s, E as c, Et as l, 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 ee, M as y, Mt as b, N as x, Nt as te, O as S, Ot as C, P as w, Pt as T, Q as E, R as D, S as O, St as k, T as A, Tt as j, U as ne, V as re, W as ie, X as ae, Y as oe, Z as se, _ as ce, _t as le, a as ue, at as de, b as fe, c as pe, ct as me, d as he, dt as ge, et as _e, f as ve, ft as ye, g as be, gt as xe, h as Se, ht as Ce, i as we, it as Te, j as Ee, jt as De, k as Oe, kt as ke, l as Ae, lt as je, m as Me, mt as Ne, n as Pe, nt as Fe, o as Ie, ot as Le, p as Re, pt as ze, q as Be, r as Ve, rt as M, s as He, st as Ue, t as We, tt as N, u as Ge, ut as Ke, v as qe, vt as P, w as Je, x as Ye, xt as Xe, y as Ze, z as Qe } from "./amendements-DfZse75q.js";
|
|
3
|
-
import { $ as $e, $n as et, $
|
|
3
|
+
import { $ as $e, $n as et, $t as tt, A as nt, An as rt, Ar as it, B as at, Bn as ot, Bt as st, C as ct, Cn as lt, Cr as ut, Ct as dt, D as ft, Dn as pt, Dr as mt, Dt as ht, E as gt, En as _t, Er as vt, Et as yt, F as bt, Fn as xt, Fr as St, Ft as Ct, G as wt, Gn as Tt, Gt as Et, H as Dt, Hn as Ot, Ht as kt, I as At, In as jt, It as Mt, J as Nt, Jn as Pt, Jt as Ft, K as It, Kn as Lt, Kt as Rt, L as zt, Ln as Bt, Lt as Vt, M as Ht, Mn as Ut, Mr as Wt, Mt as Gt, N as Kt, Nn as qt, Nr as Jt, Nt as Yt, On as Xt, Or as Zt, Ot as Qt, P as $t, Pn as en, Pt as tn, Qn as nn, Qt as rn, R as an, Rn as on, Rt as sn, S as cn, Sn as ln, Sr as un, St as dn, T as fn, Tn as pn, Tr as mn, Tt as hn, U as gn, Un as _n, Ut as vn, V as yn, Vn as bn, Vt as xn, W as Sn, Wn as Cn, Wt as wn, X as Tn, Xn as En, Y as Dn, Yn as On, Yt as kn, Z as An, Zn as jn, Zt as Mn, _ as Nn, _n as Pn, _r as Fn, _t as In, a as Ln, an as Rn, ar as zn, at as Bn, b as Vn, bn as Hn, br as Un, bt as Wn, c as Gn, cn as Kn, cr as qn, ct as Jn, d as Yn, dn as Xn, dr as Zn, dt as Qn, en as $n, er, et as tr, f as nr, fn as rr, fr as ir, ft as ar, g as or, gn as sr, gr as cr, gt as lr, h as ur, hn as dr, hr as fr, ht as pr, i as mr, in as hr, ir as gr, it as _r, j as vr, jn as yr, jr as br, jt as xr, k as Sr, kn as Cr, kr as wr, kt as Tr, ln as Er, lr as Dr, lt as Or, m as kr, mn as Ar, mr as jr, mt as Mr, n as Nr, nn as Pr, nr as Fr, nt as Ir, o as Lr, on as Rr, or as zr, ot as Br, p as Vr, pn as Hr, pr as Ur, pt as Wr, q as Gr, qn as Kr, qt as qr, r as Jr, rn as Yr, rr as Xr, rt as Zr, s as Qr, sn as $r, sr as ei, st as ti, t as ni, tn as ri, tr as ii, tt as ai, u as oi, un as si, ur as ci, ut as li, v as ui, vn as di, vr as fi, vt as pi, w as mi, wn as hi, wr as gi, wt as _i, x as vi, xn as yi, xr as bi, xt as xi, y as Si, yn as Ci, yr as wi, yt as Ti, z as Ei, zn as Di, zt as Oi } from "./scrutins-BlgNbmer.js";
|
|
4
4
|
import { t as F } from "./zod_errors-qS8sQ67W.js";
|
|
5
|
+
import { _ as ki, a as Ai, b as ji, c as Mi, d as Ni, f as Pi, g as Fi, h as Ii, i as Li, l as Ri, n as zi, o as Bi, p as Vi, s as Hi, t as Ui, u as Wi, v as Gi, x as Ki } from "./debats-B9QGOiey.js";
|
|
5
6
|
import { z as I } from "zod";
|
|
6
7
|
//#region src/api.ts
|
|
7
8
|
var qi = /* @__PURE__ */ function(e) {
|
|
@@ -1082,4 +1083,4 @@ var vo = {
|
|
|
1082
1083
|
toAmendements: _o
|
|
1083
1084
|
};
|
|
1084
1085
|
//#endregion
|
|
1085
|
-
export { ae as AccordGouvernementDepotHorsDelaiSchema,
|
|
1086
|
+
export { ae as AccordGouvernementDepotHorsDelaiSchema, At as ActeLegislatifSchema, kn as ActeurSchema, se as ActionSchema, Mn as AdresseSchema, We as AlineaSchema, _a as AlineaXiiiRawSchema, ao as AlineaXiiiSchema, Pe as AmendementSchema, q as AmendementXiiiRawSchema, $ as AmendementXiiiSchema, E as AmendementXivRawSchema, Ve as AmendementXivSchema, Ta as AmendementsClassXiiiRawSchema, zt as AmendementsCommissionSchema, we as AmendementsConvert, ue as AmendementsSchema, an as AmendementsSeanceSchema, vo as AmendementsXiiiCleanConvert, ho as AmendementsXiiiCleanSchema, Aa as AmendementsXiiiRawConvert, Da as AmendementsXiiiRawSchema, Ie as AmendementsXivCleanConvert, t as AmendementsXivRawConvert, _e as AmendementsXivRawSchema, Nn as AnalyseSchema, Ei as AuteurActeurSchema, He as AuteurAmendementSchema, ui as AuteurQuestionSchema, at as AuteurSchema, ma as AuteurXiiiRawSchema, no as AuteurXiiiSchema, pe as AvantAppelSchema, hi as CausePositionVoteSchema, yn as ChronoDocumentSchema, xr as ChronoSchema, rn as CibleSchema, ir as CivSchema, Dt as ClassificationSchema, Si as ClotureSchema, gn as CoSignataireElementSchema, Sn as CoSignataireOrganeSchema, Ot as CodeActeSchema, Fe as CodeEtatSchema, Ur as CodeNatureDepSchema, pn as CodeSortScrutinSchema, jr as CodeTypeOrganeSchema, _t as CodeTypeVoteSchema, tt as CollaborateurSchema, Ui as CompteRenduSchema, Ae as ContenuAmendementSchema, Ge as ContenuAuteurSchema, zi as ContenuSchema, wt as ContributionInternauteSchema, he as CorpsAmendementSchema, Ca as CorpsXiiiRawSchema, fo as CorpsXiiiSchema, ve as CorpsXivSchema, It as CorrectionSchema, Gr as CycleDeVieDocumentSchema, Gt as CycleDeVieReunionSchema, Re as CycleDeVieSchema, ji as DecisionSchema, ni as DecompteNominatifSchema, Nr as DecompteVoixSchema, Yt as DemandeurActeurSchema, tn as DemandeurOrganeSchema, Jr as DemandeurSchema, Ct as DemandeursSchema, fr as DepNaisSchema, $n as DepartementSchema, ri as DeportSchema, Nt as DepotAmendementsSchema, Me as DiscussionSchema, be as DispositifAmdtCreditPLFRSchema, Se as DispositifAmdtCreditPLFSchema, Sa as DispositifAmdtCreditXiiiRawSchema, uo as DispositifAmdtCreditXiiiSchema, ce as DispositifAmdtCreditXivSchema, Dn as DivisionSchema, M as DivisionTypeSchema, ga as DivisionXiiiRawSchema, io as DivisionXiiiSchema, Tn as DocumentSchema, qa as DocumentUrlFormat, mr as DossierLegislatifObjetSchema, An as DossierParlementaireSchema, Ln as DysfonctionnementSchema, Pr as ElectionSchema, Ze as EtatAmendementSchema, Yr as EtatCivilSchema, fe as EtatDesTraitementsSchema, Cn as EtatSchema, Te as EtatXivSchema, $e as EtudePlfSchema, qi as Facet, tr as FamCodeEtLibelleSchema, cr as FamSocProEnumSchema, ai as FamilleSchema, Li as FinSeanceSchema, Qi as FinalStatus, Yi as Follow, Tt as FormatReunionSchema, Ir as FusionDossierSchema, Vn as GroupeSchema, Mt as IdentPersonneAuditionneeSchema, hr as IdentSchema, vi as IdentifiantSchema, Vt as IdentifiantsSchema, Ye as IdentificationSchema, pa as IdentificationXiiiRawSchema, to as IdentificationXiiiSchema, O as IdentificationXivSchema, cn as IdentiteAuteurQuestionSchema, Zr as ImprimerieSchema, ct as IndexationAnSchema, _r as IndexationSchema, mi as InfoJoQuestionSchema, Bn as InfoJoSchema, Br as InfoJoceSchema, Rn as InfoNaissanceSchema, Rr as InfosQualiteSchema, sn as InfosReunionsInternationaleSchema, ti as InitiateurActeurSchema, Jn as InitiateurSchema, Or as LibelleActeSchema, Fn as LibelleSchema, pt as LibelleSortScrutinSchema, Xt as LibelleTypeVoteSchema, Oi as LieuReunionSchema, Cr as LieuVoteSchema, Je as LigneCreditPLFRSchema, a as LigneCreditPLFSchema, ba as LigneCreditXiiiRawSchema, co as LigneCreditXiiiSchema, A as LigneCreditXivSchema, c as LoiReferenceSchema, $r as MandatSchema, fi as MandatXsiTypeSchema, Kn as MandatureSchema, Ai as MetadonneesSchema, fn as MinAttribElementSchema, gt as MinAttribsSchema, Lr as MiseAuPointSchema, li as MissionMinefiSchema, o as MissionViseeSchema, va as MissionViseeXiiiRawSchema, oo as MissionViseeXiiiSchema, S as MissionViseeXivSchema, rt as ModePublicationDesVotesSchema, K as MontantXiiiRawSchema, Q as MontantXiiiSchema, Oe as MontantXivSchema, Lt as NatureTravauxOdjSchema, Qn as NoticeSchema, Qr as ObjetVoteSchema, st as OdjSchema, Bi as OrateurElementSchema, Hi as OrateursSchema, si as OrganeLieuSchema, Er as OrganeSchema, wi as OrganeXsiTypeSchema, xn as ParticipantInterneSchema, kt as ParticipantsSchema, vn as PersonneAuditionneeSchema, wn as PersonneAuditionneeXsiTypeSchema, Xn as PhotoSchema, ar as PlfBudgetTypeSchema, Wr as PlfCreditsSectionSchema, Mr as PlfLigneSchema, pr as PlfMissionSchema, lr as PlfProgrammeSchema, Et as PointOdjSchema, Kr as PointOdjXsiTypeSchema, Mi as PointSchema, qe as PointeurFragmentTexteDivisionSchema, n as PointeurFragmentTexteSchema, ya as PointeurFragmentTexteXiiiRawSchema, so as PointeurFragmentTexteXiiiSchema, Ee as PointeurFragmentTexteXivSchema, yr as PositionMajoritaireSchema, Un as PositionPolitiqueSchema, Pt as PresenceSchema, In as ProcedureParlementaireSchema, On as ProcedureSchema, rr as ProfessionSchema, y as ProgrammePlfSchema, xa as ProgrammeXiiiRawSchema, lo as ProgrammeXiiiSchema, x as ProgrammeXivSchema, En as QuantiemeSchema, Ri as QuantiemesSchema, ft as QuestionSchema, Ii as QuestionXsiTypeSchema, pi as RapporteurSchema, bi as RegimeSchema, Hr as RegionSchema, un as RegionTypeSchema, Sr as RenouvellementSchema, nt as RenouvellementsSchema, w as RepresentationSchema, Rt as ReunionSchema, jn as ReunionXsiTypeSchema, fa as SaisineXiiiRawSchema, eo as SaisineXiiiSchema, u as SaisineXivSchema, Gn as ScrutinSchema, Ar as SecretariatSchema, vr as SignalementSchema, m as SignatairesSchema, ha as SignatairesXiiiRawSchema, ro as SignatairesXiiiSchema, dr as SocProcInseeSchema, Ni as SommaireElementSchema, Wi as SommaireSchema, da as SortEnSeanceXiiiSchema, de as SortEnSeanceXivSchema, oi as SortScrutinSchema, wa as SortXiiiRawSchema, po as SortXiiiSchema, v as SortXivSchema, D as SousEtatAmendementSchema, Ti as SousTypeSchema, $i as StatusOnly, Qe as StatutRepresentationSchema, sr as SuppleantSchema, Yn as SyntheseVoteSchema, Wn as TexteAssocieSchema, xi as TexteEuropeenSchema, dn as TexteExterneAssocieSchema, i as TexteLegislatifSchema, mo as TexteLegislatifXiiiCleanSchema, Ea as TexteLegislatifXiiiRawSchema, Le as TexteLegislatifXivRawSchema, Ht as TexteQuestionSchema, Pi as TexteSchema, Kt as TextesQuestionSchema, $t as TextesReponseSchema, dt as ThemeSchema, _i as ThemesSchema, hn as TitreDossierSchema, Vi as TitreStructSchema, yt as TitresSchema, re as TotalSchema, p as TotalXivSchema, Ue as TypeAuteurSchema, G as TypeAuteurXiiiSchema, me as TypeAuteurXivSchema, Ut as TypeMajoriteSchema, ne as TypeMimeSchema, nn as TypePointOdjSchema, je as TypePositionSchema, Fi as TypeQuestionSchema, et as TypeReunionSchema, nr as TypeVoteSchema, er as UidXsiTypeSchema, kr as VentilationVotesGroupeSchema, Vr as VentilationVotesSchema, Pn as ViMoDeSchema, ur as VotantSchema, or as VoteSchema, Ke as accordGouvernementDepotHorsDelaiOptions, ht as acteLegislatifXsiTypeOptions, ge as actionOptions, Ji as allFacets, Xi as allFollows, J as amendementXiiiUid, ie as avantAApresOptions, Zi as capitalizeFirstLetter, qt as causePositionVoteOptions, ut as civOptions, Ka as cleanAmendementXiii, _n as codeActeOptions, ye as codeEtatOptions, gi as codeNatureDepOptions, en as codeSortScrutinOptions, mn as codeTypeOrganeOptions, xt as codeTypeVoteOptions, ea as commissionFondUidFromDossier, di as compteRenduUidRegex, l as dateFromNullableDateOrIsoString, s as dateFromYearMonthDayTimezoneString, Ki as decisionOptions, Ma as decodeXiiiHtml, vt as depNaisOptions, C as displayDateFromLocalIsoString, ze as divisionTypeOptions, Ci as documentUidRegex, Qt as documentXsiTypeOptions, Tr as dossierParlementaireXsiTypeOptions, Hn as dossierUidRegex, f as etatAmendementCodeOptions, _ as etatAmendementLibelleOptions, qr as etatCycleDeVieOptions, ii as etatOptions, ke as existingDateToJson, mt as famSocProEnumOptions, r as formatRelativeFrenchTime, Fr as formatReunionOptions, De as frenchDateFormat, b as frenchDateSameYearShortFormat, te as frenchDateWithoutDayOfWeekFromDateOrString, T as frenchTimeFormat, d as frenchTimeFromDateOrString, V as insertActeurReferences, aa as insertAmendementReferences, H as insertDocumentReferences, U as insertDossierReferences, W as insertOrganeReferences, sa as insertReunionReferences, ca as insertScrutinReferences, Xa as iterDocumentOrDivisionUrls, St as legislatureOptions, Zt as libelleOptions, jt as libelleSortScrutinOptions, Bt as libelleTypeVoteOptions, on as lieuVoteOptions, h as localIso8601StringFromDate, wr as mandatXsiTypeOptions, Di as modePublicationDesVotesOptions, Xr as natureTravauxOdjOptions, it as organeXsiTypeOptions, Ga as parseAmendementXiiiPage, ee as patchedDateToJson, Ft as personneAuditionneeXsiTypeOptions, gr as pointOdjXsiTypeOptions, ot as positionMajoritaireOptions, br as positionPolitiqueOptions, zn as presenceOptions, zr as procedureOptions, ei as quantiemeOptions, yi as questionUidRegex, ki as questionXsiTypeOptions, Wt as regimeOptions, Jt as regionTypeOptions, ln as reunionUidRegex, qn as reunionXsiTypeOptions, lt as scrutinUidRegex, la as shortNameFromOrgane, Be as sortAmendementOptions, ua as sortEnSeanceXiiiOptions, Ne as sortEnSeanceXivOptions, ta as stateFromActePath, z as stateFromActes, na as stateFromDossier, R as statusFromCodierLibelle, Ce as typeAuteurOptions, xe as typeAuteurXivOptions, bt as typeJoQuestionOptions, bn as typeMajoriteOptions, g as typeMimeNomOptions, oe as typeMimeTypeOptions, Dr as typePointOdjOptions, le as typePositionOptions, Gi as typeQuestionOptions, ci as typeReunionOptions, Zn as uidXsiTypeOptions, L as uncapitalizeFirstLetter, Qa as urlFromAmendementUid, Za as urlFromDocument, $a as urlFromScrutin, B as walkActes, ra as walkDocumentAndDivisions, Pa as xiiiAmendementPdfUrl, Na as xiiiAmendementUrl, Fa as xiiiListeUrl };
|