@tricoteuses/assemblee 3.0.16 → 3.0.18
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/reunions.d.ts +12 -0
- package/lib/cleaners.js +27 -24
- package/lib/datasets.d.ts +3 -1
- package/lib/index.js +78 -79
- package/lib/loaders.js +559 -521
- package/lib/{questions-DgERya4J.js → questions-BiakXZ6q.js} +1161 -936
- package/lib/scripts/retrieve_documents.d.ts +4 -1
- package/package.json +1 -1
- package/lib/questions-C3qN4PsC.js +0 -230
|
@@ -102,6 +102,9 @@ export declare function downloadAndParse(document: Document, _datasetDir: string
|
|
|
102
102
|
forceParseDocuments?: boolean;
|
|
103
103
|
parseDocuments?: boolean;
|
|
104
104
|
}): Promise<void>;
|
|
105
|
-
export declare function downloadAndParseVideosAndComptesRendus(reunion: Reunion, datasetCleanDir: string, options: Options
|
|
105
|
+
export declare function downloadAndParseVideosAndComptesRendus(reunion: Reunion, datasetCleanDir: string, options: Options, { removeMissingSeanceCR, legislature, }?: {
|
|
106
|
+
removeMissingSeanceCR?: boolean;
|
|
107
|
+
legislature?: number;
|
|
108
|
+
}): Promise<void>;
|
|
106
109
|
export declare function parseDocumentOrDivisionHtml(documentOrDivision: Document | Division, documentsFilesDir: string): Promise<void>;
|
|
107
110
|
export {};
|
package/package.json
CHANGED
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { z as e } from "zod";
|
|
2
|
-
import { J as n, K as t, L as o, H as l, I as b, F as R, G as m, E as S } from "./amendements-Bab1iUCY.js";
|
|
3
|
-
const g = [
|
|
4
|
-
"",
|
|
5
|
-
"ADOPTION amendement (main levée) adt",
|
|
6
|
-
"ADOPTION d’un article (vote à main levée)",
|
|
7
|
-
"ADOPTION d’un sous-amendement (main levée) ss-adt",
|
|
8
|
-
"ADOPTION de plusieurs amendements (main levée) adts",
|
|
9
|
-
"ADOPTION de plusieurs sous-amendements (main levée) ss-adts",
|
|
10
|
-
"REJET d’un amendement (main levée) adt",
|
|
11
|
-
"REJET d’un article (vote à main levée)",
|
|
12
|
-
"REJET d’un sous-amendement (main levée) ss-adt",
|
|
13
|
-
"REJET de plusieurs amendements (main levée) adts",
|
|
14
|
-
"REJET de plusieurs sous-amendements (main levée) ss-adts",
|
|
15
|
-
"REJET motion de rejet préalable (main levée)"
|
|
16
|
-
], h = e.enum(g), i = e.lazy(
|
|
17
|
-
() => e.object({
|
|
18
|
-
_: t(),
|
|
19
|
-
id_syceron: t(),
|
|
20
|
-
stime: t(),
|
|
21
|
-
sup: t(),
|
|
22
|
-
lienAdt: n(i).optional()
|
|
23
|
-
})
|
|
24
|
-
), j = e.object({
|
|
25
|
-
nom: t(),
|
|
26
|
-
id: o(),
|
|
27
|
-
qualite: t()
|
|
28
|
-
}), O = e.object({
|
|
29
|
-
orateur: n(j)
|
|
30
|
-
}), a = e.lazy(
|
|
31
|
-
() => e.object({
|
|
32
|
-
id_preparation: t(),
|
|
33
|
-
ordre_absolu_seance: t(),
|
|
34
|
-
code_grammaire: t(),
|
|
35
|
-
sommaire: t(),
|
|
36
|
-
id_syceron: t(),
|
|
37
|
-
valeur_ptsodj: t(),
|
|
38
|
-
nivpoint: t(),
|
|
39
|
-
ordinal_prise: t(),
|
|
40
|
-
code_style: t(),
|
|
41
|
-
code_parole: t(),
|
|
42
|
-
valeur: t(),
|
|
43
|
-
orateurs: e.union([O, e.string()]).optional(),
|
|
44
|
-
texte: e.union([i, e.string()]).optional(),
|
|
45
|
-
paragraphe: n(a).optional(),
|
|
46
|
-
interExtraction: n(a).optional(),
|
|
47
|
-
point: n(a).optional(),
|
|
48
|
-
structure: t(),
|
|
49
|
-
id_acteur: t(),
|
|
50
|
-
id_mandat: t(),
|
|
51
|
-
id_nomination_oe: t(),
|
|
52
|
-
id_nomination_op: t(),
|
|
53
|
-
orateur: t(),
|
|
54
|
-
bibard: t(),
|
|
55
|
-
art: t(),
|
|
56
|
-
adt: t(),
|
|
57
|
-
ssadt: t(),
|
|
58
|
-
roledebat: t(),
|
|
59
|
-
changementPresidence: n(a).optional(),
|
|
60
|
-
type_debat: t(),
|
|
61
|
-
decision: h.optional(),
|
|
62
|
-
ouvertureSeance: a.optional(),
|
|
63
|
-
qualite: t(),
|
|
64
|
-
nom_orateur: t()
|
|
65
|
-
})
|
|
66
|
-
), w = e.object({
|
|
67
|
-
point: a
|
|
68
|
-
}), _ = e.object({
|
|
69
|
-
journee: e.string(),
|
|
70
|
-
session: e.string()
|
|
71
|
-
}), y = e.object({
|
|
72
|
-
quantiemes: _,
|
|
73
|
-
ouvertureSeance: n(a).optional(),
|
|
74
|
-
point: n(a),
|
|
75
|
-
finSeance: w.optional(),
|
|
76
|
-
paragraphe: n(a).optional()
|
|
77
|
-
}), f = e.object({
|
|
78
|
-
id_syceron: e.string(),
|
|
79
|
-
intitule: t(),
|
|
80
|
-
sousIntitule: t(),
|
|
81
|
-
type_debat: t()
|
|
82
|
-
}), s = e.lazy(
|
|
83
|
-
() => e.object({
|
|
84
|
-
valeur_pts_odj: t(),
|
|
85
|
-
titreStruct: f,
|
|
86
|
-
para: n(e.union([i, e.string()])).optional(),
|
|
87
|
-
sommaire2: n(s).optional(),
|
|
88
|
-
sommaire3: n(s).optional(),
|
|
89
|
-
presidentSeance: n(i).optional(),
|
|
90
|
-
type_debat: t()
|
|
91
|
-
})
|
|
92
|
-
), v = e.object({
|
|
93
|
-
presidentSeance: i,
|
|
94
|
-
sommaire1: n(s),
|
|
95
|
-
sommaire2: n(s).optional(),
|
|
96
|
-
sommaire3: n(s).optional(),
|
|
97
|
-
para: n(i).optional()
|
|
98
|
-
}), T = e.object({
|
|
99
|
-
dateSeance: e.string(),
|
|
100
|
-
dateSeanceJour: e.string(),
|
|
101
|
-
numSeanceJour: e.string(),
|
|
102
|
-
numSeance: e.string(),
|
|
103
|
-
typeAssemblee: e.string(),
|
|
104
|
-
legislature: e.string(),
|
|
105
|
-
session: e.string(),
|
|
106
|
-
nomFichierJo: e.string(),
|
|
107
|
-
validite: e.string(),
|
|
108
|
-
etat: e.string(),
|
|
109
|
-
diffusion: e.string(),
|
|
110
|
-
version: e.string(),
|
|
111
|
-
environnement: e.string(),
|
|
112
|
-
heureGeneration: e.iso.datetime({ offset: !0 }),
|
|
113
|
-
sommaire: v
|
|
114
|
-
}), u = e.object({
|
|
115
|
-
xmlns: e.string(),
|
|
116
|
-
uid: l(),
|
|
117
|
-
seanceRef: e.string(),
|
|
118
|
-
sessionRef: e.string(),
|
|
119
|
-
metadonnees: T,
|
|
120
|
-
contenu: y
|
|
121
|
-
});
|
|
122
|
-
e.object({
|
|
123
|
-
compteRendu: u
|
|
124
|
-
});
|
|
125
|
-
const J = e.object({
|
|
126
|
-
compteRendu: n(u)
|
|
127
|
-
});
|
|
128
|
-
e.object({
|
|
129
|
-
compteRendu: J
|
|
130
|
-
});
|
|
131
|
-
const E = [
|
|
132
|
-
"QuestionEcrite_Type",
|
|
133
|
-
"QuestionGouvernement_Type",
|
|
134
|
-
"QuestionOrale_Type"
|
|
135
|
-
], x = e.enum(E), A = ["QE", "QG", "QOSD"], Q = e.enum(A), I = Q, D = [
|
|
136
|
-
"JO_QUESTION",
|
|
137
|
-
"JO_LOI_DECRET",
|
|
138
|
-
"JO_DEBAT"
|
|
139
|
-
], q = e.enum(D), C = e.object({
|
|
140
|
-
numero: e.string(),
|
|
141
|
-
regime: e.string(),
|
|
142
|
-
legislature: e.string()
|
|
143
|
-
}), c = e.object({
|
|
144
|
-
organeRef: b().meta({ description: "Référence à l'organe." }),
|
|
145
|
-
abrege: e.string(),
|
|
146
|
-
developpe: e.string()
|
|
147
|
-
}), N = e.object({
|
|
148
|
-
acteurRef: R().meta({ description: "Référence à l'acteur." }),
|
|
149
|
-
mandatRef: e.string()
|
|
150
|
-
}), P = e.object({
|
|
151
|
-
identite: N,
|
|
152
|
-
groupe: c
|
|
153
|
-
}), r = e.object({
|
|
154
|
-
typeJO: q.nullable(),
|
|
155
|
-
dateJO: m().describe(
|
|
156
|
-
"Date de publication au Journal Officiel"
|
|
157
|
-
),
|
|
158
|
-
pageJO: o().nullable(),
|
|
159
|
-
numJO: o().nullable(),
|
|
160
|
-
urlLegifrance: o().nullable(),
|
|
161
|
-
referenceNOR: o().nullable()
|
|
162
|
-
}), G = e.object({
|
|
163
|
-
analyse: o().nullable()
|
|
164
|
-
}), z = e.object({
|
|
165
|
-
rubrique: o().nullable(),
|
|
166
|
-
teteAnalyse: e.null(),
|
|
167
|
-
analyses: G
|
|
168
|
-
}), F = e.object({
|
|
169
|
-
infoJO: r,
|
|
170
|
-
denomination: c
|
|
171
|
-
}), L = e.object({
|
|
172
|
-
minAttrib: n(F)
|
|
173
|
-
}), d = e.object({
|
|
174
|
-
infoJO: r,
|
|
175
|
-
texte: o().nullable(),
|
|
176
|
-
erratum: e.string().optional()
|
|
177
|
-
}), M = e.object({
|
|
178
|
-
texteQuestion: n(d)
|
|
179
|
-
}), X = e.object({
|
|
180
|
-
texteReponse: n(d)
|
|
181
|
-
}), B = e.object({
|
|
182
|
-
codeCloture: e.string(),
|
|
183
|
-
libelleCloture: e.string(),
|
|
184
|
-
dateCloture: S(),
|
|
185
|
-
infoJO: r.nullable()
|
|
186
|
-
}), H = e.object({
|
|
187
|
-
dateDepotSignal: m().describe(
|
|
188
|
-
"Date de dépôt du signalement"
|
|
189
|
-
),
|
|
190
|
-
infoJO: r
|
|
191
|
-
}), K = e.object({
|
|
192
|
-
infoJO: r
|
|
193
|
-
}), U = e.object({
|
|
194
|
-
renouvellement: n(K)
|
|
195
|
-
}), p = e.object({
|
|
196
|
-
"@xmlns": e.string().optional(),
|
|
197
|
-
"@xmlns:xsi": e.string(),
|
|
198
|
-
"@xsi:type": x,
|
|
199
|
-
uid: l().meta({ description: "Identifiant unique de la question." }),
|
|
200
|
-
identifiant: C,
|
|
201
|
-
type: I,
|
|
202
|
-
indexationAN: z,
|
|
203
|
-
auteur: P,
|
|
204
|
-
minInt: c,
|
|
205
|
-
minAttribs: L,
|
|
206
|
-
textesQuestion: M.nullable().optional(),
|
|
207
|
-
textesReponse: X.nullable().optional(),
|
|
208
|
-
cloture: B.nullable().optional(),
|
|
209
|
-
signalement: H.nullable().optional(),
|
|
210
|
-
renouvellements: U.nullable().optional()
|
|
211
|
-
});
|
|
212
|
-
e.object({
|
|
213
|
-
question: p
|
|
214
|
-
});
|
|
215
|
-
const k = e.object({
|
|
216
|
-
question: e.array(p)
|
|
217
|
-
});
|
|
218
|
-
e.object({
|
|
219
|
-
questions: k
|
|
220
|
-
});
|
|
221
|
-
export {
|
|
222
|
-
u as C,
|
|
223
|
-
h as D,
|
|
224
|
-
x as Q,
|
|
225
|
-
Q as T,
|
|
226
|
-
p as a,
|
|
227
|
-
g as d,
|
|
228
|
-
E as q,
|
|
229
|
-
A as t
|
|
230
|
-
};
|