@tricoteuses/senat 2.7.1 → 2.8.4
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/aggregates.d.ts +52 -0
- package/lib/aggregates.js +949 -0
- package/lib/aggregates.mjs +726 -0
- package/lib/aggregates.ts +852 -0
- package/lib/config.mjs +16 -0
- package/lib/config.ts +26 -0
- package/lib/databases.mjs +55 -0
- package/lib/databases.ts +68 -0
- package/lib/datasets.mjs +78 -0
- package/lib/datasets.ts +118 -0
- package/lib/fields.d.ts +10 -0
- package/lib/fields.js +68 -0
- package/lib/fields.mjs +22 -0
- package/lib/fields.ts +29 -0
- package/lib/index.mjs +7 -0
- package/lib/index.ts +64 -0
- package/lib/inserters.d.ts +98 -0
- package/lib/inserters.js +500 -0
- package/lib/inserters.mjs +360 -0
- package/lib/inserters.ts +521 -0
- package/lib/loaders.d.ts +1 -0
- package/lib/loaders.js +5 -0
- package/lib/loaders.mjs +97 -0
- package/lib/loaders.ts +173 -0
- package/lib/model/agenda.js +22 -22
- package/lib/model/ameli.mjs +57 -0
- package/lib/model/ameli.ts +86 -0
- package/lib/model/debats.mjs +43 -0
- package/lib/model/debats.ts +68 -0
- package/lib/model/dosleg.mjs +163 -0
- package/lib/model/dosleg.ts +204 -0
- package/lib/model/index.mjs +4 -0
- package/lib/model/index.ts +13 -0
- package/lib/model/questions.d.ts +0 -20
- package/lib/model/questions.js +1 -32
- package/lib/model/questions.mjs +76 -0
- package/lib/model/questions.ts +102 -0
- package/lib/model/sens.mjs +339 -0
- package/lib/model/sens.ts +432 -0
- package/lib/model/texte.mjs +156 -0
- package/lib/model/texte.ts +174 -0
- package/lib/raw_types/ameli.d.ts +20 -0
- package/lib/raw_types/questions.d.ts +4 -70
- package/lib/raw_types_kysely/ameli.d.ts +915 -0
- package/lib/raw_types_kysely/ameli.js +7 -0
- package/lib/raw_types_kysely/ameli.mjs +5 -0
- package/lib/raw_types_kysely/ameli.ts +951 -0
- package/lib/raw_types_kysely/debats.d.ts +207 -0
- package/lib/raw_types_kysely/debats.js +7 -0
- package/lib/raw_types_kysely/debats.mjs +5 -0
- package/lib/raw_types_kysely/debats.ts +222 -0
- package/lib/raw_types_kysely/dosleg.d.ts +3532 -0
- package/lib/raw_types_kysely/dosleg.js +7 -0
- package/lib/raw_types_kysely/dosleg.mjs +5 -0
- package/lib/raw_types_kysely/dosleg.ts +3621 -0
- package/lib/raw_types_kysely/questions.d.ts +414 -0
- package/lib/raw_types_kysely/questions.js +7 -0
- package/lib/raw_types_kysely/questions.mjs +5 -0
- package/lib/raw_types_kysely/questions.ts +426 -0
- package/lib/raw_types_kysely/sens.d.ts +4394 -0
- package/lib/raw_types_kysely/sens.js +7 -0
- package/lib/raw_types_kysely/sens.mjs +5 -0
- package/lib/raw_types_kysely/sens.ts +4499 -0
- package/lib/raw_types_schemats/ameli.mjs +2 -0
- package/lib/raw_types_schemats/ameli.ts +601 -0
- package/lib/raw_types_schemats/debats.mjs +2 -0
- package/lib/raw_types_schemats/debats.ts +145 -0
- package/lib/raw_types_schemats/dosleg.mjs +2 -0
- package/lib/raw_types_schemats/dosleg.ts +2193 -0
- package/lib/raw_types_schemats/questions.mjs +2 -0
- package/lib/raw_types_schemats/questions.ts +249 -0
- package/lib/raw_types_schemats/sens.mjs +2 -0
- package/lib/raw_types_schemats/sens.ts +2907 -0
- package/lib/scripts/convert_data.mjs +95 -0
- package/lib/scripts/convert_data.ts +119 -0
- package/lib/scripts/data-download.d.ts +1 -0
- package/lib/scripts/data-download.js +9 -0
- package/lib/scripts/datautil.mjs +16 -0
- package/lib/scripts/datautil.ts +19 -0
- package/lib/scripts/images/transparent_150x192.jpg +0 -0
- package/lib/scripts/images/transparent_155x225.jpg +0 -0
- package/lib/scripts/parse_textes.mjs +38 -0
- package/lib/scripts/parse_textes.ts +52 -0
- package/lib/scripts/retrieve_documents.mjs +243 -0
- package/lib/scripts/retrieve_documents.ts +279 -0
- package/lib/scripts/retrieve_open_data.js +11 -9
- package/lib/scripts/retrieve_open_data.mjs +214 -0
- package/lib/scripts/retrieve_open_data.ts +261 -0
- package/lib/scripts/retrieve_senateurs_photos.mjs +147 -0
- package/lib/scripts/retrieve_senateurs_photos.ts +177 -0
- package/lib/scripts/retrieve_textes.d.ts +1 -0
- package/lib/scripts/retrieve_textes.mjs +165 -0
- package/lib/scripts/retrieve_textes.ts +79 -0
- package/lib/scripts/shared/cli_helpers.ts +36 -0
- package/lib/scripts/shared/util.ts +33 -0
- package/lib/strings.mjs +18 -0
- package/lib/strings.ts +26 -0
- package/lib/types/ameli.mjs +13 -0
- package/lib/types/ameli.ts +21 -0
- package/lib/types/debats.mjs +2 -0
- package/lib/types/debats.ts +6 -0
- package/lib/types/dosleg.mjs +151 -0
- package/lib/types/dosleg.ts +284 -0
- package/lib/types/questions.mjs +1 -0
- package/lib/types/questions.ts +3 -0
- package/lib/types/sens.mjs +1 -0
- package/lib/types/sens.ts +12 -0
- package/lib/types/sessions.mjs +43 -0
- package/lib/types/sessions.ts +42 -0
- package/lib/types/texte.mjs +16 -0
- package/lib/types/texte.ts +66 -0
- package/lib/typings/windows-1252.d.js +2 -0
- package/lib/typings/windows-1252.d.mjs +2 -0
- package/lib/typings/windows-1252.d.ts +11 -0
- package/lib/validators/config.mjs +54 -0
- package/lib/validators/config.ts +79 -0
- package/lib/validators/senat.mjs +24 -0
- package/lib/validators/senat.ts +26 -0
- package/package.json +7 -5
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AUTO-GENERATED FILE - DO NOT EDIT!
|
|
5
|
+
*
|
|
6
|
+
* This file was automatically generated by schemats v.1.1.2
|
|
7
|
+
* $ schemats generate -c postgres://username:password@localhost:5432/questions -s questions
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export namespace etatquestionFields {
|
|
12
|
+
export type etaquecod = string
|
|
13
|
+
export type etaquelib = string | null
|
|
14
|
+
export type etaquenumtri = number | null
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface etatquestion {
|
|
18
|
+
etaquecod: etatquestionFields.etaquecod
|
|
19
|
+
etaquelib: etatquestionFields.etaquelib
|
|
20
|
+
etaquenumtri: etatquestionFields.etaquenumtri
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace legquestionFields {
|
|
24
|
+
export type legdatdeb = Date | null
|
|
25
|
+
export type legdatfin = Date | null
|
|
26
|
+
export type legislature = number
|
|
27
|
+
export type leglib = string | null
|
|
28
|
+
export type republique = number | null
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface legquestion {
|
|
32
|
+
legdatdeb: legquestionFields.legdatdeb
|
|
33
|
+
legdatfin: legquestionFields.legdatfin
|
|
34
|
+
legislature: legquestionFields.legislature
|
|
35
|
+
leglib: legquestionFields.leglib
|
|
36
|
+
republique: legquestionFields.republique
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export namespace naturequestionFields {
|
|
40
|
+
export type natquecod = string
|
|
41
|
+
export type natquelib = string | null
|
|
42
|
+
export type natquenumtri = number | null
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface naturequestion {
|
|
46
|
+
natquecod: naturequestionFields.natquecod
|
|
47
|
+
natquelib: naturequestionFields.natquelib
|
|
48
|
+
natquenumtri: naturequestionFields.natquenumtri
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export namespace sortquestionFields {
|
|
52
|
+
export type sorquecod = string
|
|
53
|
+
export type sorquelib = string | null
|
|
54
|
+
export type sorquenumtri = number | null
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface sortquestion {
|
|
58
|
+
sorquecod: sortquestionFields.sorquecod
|
|
59
|
+
sorquelib: sortquestionFields.sorquelib
|
|
60
|
+
sorquenumtri: sortquestionFields.sorquenumtri
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export namespace tam_ministeresFields {
|
|
64
|
+
export type datedebut = Date | null
|
|
65
|
+
export type datefin = Date | null
|
|
66
|
+
export type intitulejo = string | null
|
|
67
|
+
export type libelle = string | null
|
|
68
|
+
export type libellelong = string | null
|
|
69
|
+
export type minid = number
|
|
70
|
+
export type minidremp = number | null
|
|
71
|
+
export type nomministre = string | null
|
|
72
|
+
export type ordreprotocolaire = number | null
|
|
73
|
+
export type titreministre = string | null
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface tam_ministeres {
|
|
77
|
+
datedebut: tam_ministeresFields.datedebut
|
|
78
|
+
datefin: tam_ministeresFields.datefin
|
|
79
|
+
intitulejo: tam_ministeresFields.intitulejo
|
|
80
|
+
libelle: tam_ministeresFields.libelle
|
|
81
|
+
libellelong: tam_ministeresFields.libellelong
|
|
82
|
+
minid: tam_ministeresFields.minid
|
|
83
|
+
minidremp: tam_ministeresFields.minidremp
|
|
84
|
+
nomministre: tam_ministeresFields.nomministre
|
|
85
|
+
ordreprotocolaire: tam_ministeresFields.ordreprotocolaire
|
|
86
|
+
titreministre: tam_ministeresFields.titreministre
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export namespace tam_questionsFields {
|
|
90
|
+
export type circonscription = string | null
|
|
91
|
+
export type cirnum = number | null
|
|
92
|
+
export type codequalite = string | null
|
|
93
|
+
export type compub = string | null
|
|
94
|
+
export type datecloture = Date | null
|
|
95
|
+
export type dateerr = Date | null
|
|
96
|
+
export type datejodepot = Date | null
|
|
97
|
+
export type datejorep1 = Date | null
|
|
98
|
+
export type datejotran = Date | null
|
|
99
|
+
export type daterappel = Date | null
|
|
100
|
+
export type dateseance = Date | null
|
|
101
|
+
export type datesignal = Date | null
|
|
102
|
+
export type datesynctam = Date | null
|
|
103
|
+
export type dattrans = Date | null
|
|
104
|
+
export type dattransori = Date | null
|
|
105
|
+
export type delaijours = number | null
|
|
106
|
+
export type delaijoursrep1 = number | null
|
|
107
|
+
export type etaquecod = number | null
|
|
108
|
+
export type groupe = string | null
|
|
109
|
+
export type id = number
|
|
110
|
+
export type legislature = number | null
|
|
111
|
+
export type matricule = string
|
|
112
|
+
export type mindepotid = number | null
|
|
113
|
+
export type mindepotlib = string | null
|
|
114
|
+
export type minrepid1 = number | null
|
|
115
|
+
export type minreplib1 = string | null
|
|
116
|
+
export type mintranid = number | null
|
|
117
|
+
export type mintranlib = string | null
|
|
118
|
+
export type natquecod = string | null
|
|
119
|
+
export type natqueord = number | null
|
|
120
|
+
export type nom = string | null
|
|
121
|
+
export type nomtechnique = string | null
|
|
122
|
+
export type numero = string | null
|
|
123
|
+
export type pageerr = number | null
|
|
124
|
+
export type pagejodepot = number | null
|
|
125
|
+
export type prenom = string | null
|
|
126
|
+
export type ratgrp = string | null
|
|
127
|
+
export type reference = string | null
|
|
128
|
+
export type refquerappelee = string | null
|
|
129
|
+
export type renvoi1 = string | null
|
|
130
|
+
export type renvoi2 = string | null
|
|
131
|
+
export type renvoi3 = string | null
|
|
132
|
+
export type repub = number | null
|
|
133
|
+
export type rubrique = string | null
|
|
134
|
+
export type sorquecod = number | null
|
|
135
|
+
export type thecrible = string | null
|
|
136
|
+
export type themes = string | null
|
|
137
|
+
export type titre = string | null
|
|
138
|
+
export type tranisreattr = string | null
|
|
139
|
+
export type txterrque = string | null
|
|
140
|
+
export type txtque = string | null
|
|
141
|
+
export type uuid = string | null
|
|
142
|
+
export type uuidquerappelee = string | null
|
|
143
|
+
export type uuidtrans = string | null
|
|
144
|
+
export type uuidtransori = string | null
|
|
145
|
+
export type version = number | null
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface tam_questions {
|
|
149
|
+
circonscription: tam_questionsFields.circonscription
|
|
150
|
+
cirnum: tam_questionsFields.cirnum
|
|
151
|
+
codequalite: tam_questionsFields.codequalite
|
|
152
|
+
compub: tam_questionsFields.compub
|
|
153
|
+
datecloture: tam_questionsFields.datecloture
|
|
154
|
+
dateerr: tam_questionsFields.dateerr
|
|
155
|
+
datejodepot: tam_questionsFields.datejodepot
|
|
156
|
+
datejorep1: tam_questionsFields.datejorep1
|
|
157
|
+
datejotran: tam_questionsFields.datejotran
|
|
158
|
+
daterappel: tam_questionsFields.daterappel
|
|
159
|
+
dateseance: tam_questionsFields.dateseance
|
|
160
|
+
datesignal: tam_questionsFields.datesignal
|
|
161
|
+
datesynctam: tam_questionsFields.datesynctam
|
|
162
|
+
dattrans: tam_questionsFields.dattrans
|
|
163
|
+
dattransori: tam_questionsFields.dattransori
|
|
164
|
+
delaijours: tam_questionsFields.delaijours
|
|
165
|
+
delaijoursrep1: tam_questionsFields.delaijoursrep1
|
|
166
|
+
etaquecod: tam_questionsFields.etaquecod
|
|
167
|
+
groupe: tam_questionsFields.groupe
|
|
168
|
+
id: tam_questionsFields.id
|
|
169
|
+
legislature: tam_questionsFields.legislature
|
|
170
|
+
matricule: tam_questionsFields.matricule
|
|
171
|
+
mindepotid: tam_questionsFields.mindepotid
|
|
172
|
+
mindepotlib: tam_questionsFields.mindepotlib
|
|
173
|
+
minrepid1: tam_questionsFields.minrepid1
|
|
174
|
+
minreplib1: tam_questionsFields.minreplib1
|
|
175
|
+
mintranid: tam_questionsFields.mintranid
|
|
176
|
+
mintranlib: tam_questionsFields.mintranlib
|
|
177
|
+
natquecod: tam_questionsFields.natquecod
|
|
178
|
+
natqueord: tam_questionsFields.natqueord
|
|
179
|
+
nom: tam_questionsFields.nom
|
|
180
|
+
nomtechnique: tam_questionsFields.nomtechnique
|
|
181
|
+
numero: tam_questionsFields.numero
|
|
182
|
+
pageerr: tam_questionsFields.pageerr
|
|
183
|
+
pagejodepot: tam_questionsFields.pagejodepot
|
|
184
|
+
prenom: tam_questionsFields.prenom
|
|
185
|
+
ratgrp: tam_questionsFields.ratgrp
|
|
186
|
+
reference: tam_questionsFields.reference
|
|
187
|
+
refquerappelee: tam_questionsFields.refquerappelee
|
|
188
|
+
renvoi1: tam_questionsFields.renvoi1
|
|
189
|
+
renvoi2: tam_questionsFields.renvoi2
|
|
190
|
+
renvoi3: tam_questionsFields.renvoi3
|
|
191
|
+
repub: tam_questionsFields.repub
|
|
192
|
+
rubrique: tam_questionsFields.rubrique
|
|
193
|
+
sorquecod: tam_questionsFields.sorquecod
|
|
194
|
+
thecrible: tam_questionsFields.thecrible
|
|
195
|
+
themes: tam_questionsFields.themes
|
|
196
|
+
titre: tam_questionsFields.titre
|
|
197
|
+
tranisreattr: tam_questionsFields.tranisreattr
|
|
198
|
+
txterrque: tam_questionsFields.txterrque
|
|
199
|
+
txtque: tam_questionsFields.txtque
|
|
200
|
+
uuid: tam_questionsFields.uuid
|
|
201
|
+
uuidquerappelee: tam_questionsFields.uuidquerappelee
|
|
202
|
+
uuidtrans: tam_questionsFields.uuidtrans
|
|
203
|
+
uuidtransori: tam_questionsFields.uuidtransori
|
|
204
|
+
version: tam_questionsFields.version
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export namespace tam_reponsesFields {
|
|
208
|
+
export type datejorep = Date | null
|
|
209
|
+
export type delaijoursrep = number | null
|
|
210
|
+
export type errdate = Date | null
|
|
211
|
+
export type errpage = number | null
|
|
212
|
+
export type idque = number
|
|
213
|
+
export type idrepunique = string | null
|
|
214
|
+
export type minrepid = number | null
|
|
215
|
+
export type minreplib = string | null
|
|
216
|
+
export type pagejorep = number | null
|
|
217
|
+
export type txterrrep = string | null
|
|
218
|
+
export type txtrep = string | null
|
|
219
|
+
export type urlrep = string | null
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface tam_reponses {
|
|
223
|
+
datejorep: tam_reponsesFields.datejorep
|
|
224
|
+
delaijoursrep: tam_reponsesFields.delaijoursrep
|
|
225
|
+
errdate: tam_reponsesFields.errdate
|
|
226
|
+
errpage: tam_reponsesFields.errpage
|
|
227
|
+
idque: tam_reponsesFields.idque
|
|
228
|
+
idrepunique: tam_reponsesFields.idrepunique
|
|
229
|
+
minrepid: tam_reponsesFields.minrepid
|
|
230
|
+
minreplib: tam_reponsesFields.minreplib
|
|
231
|
+
pagejorep: tam_reponsesFields.pagejorep
|
|
232
|
+
txterrrep: tam_reponsesFields.txterrrep
|
|
233
|
+
txtrep: tam_reponsesFields.txtrep
|
|
234
|
+
urlrep: tam_reponsesFields.urlrep
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export namespace theFields {
|
|
238
|
+
export type theali = string | null
|
|
239
|
+
export type thecle = number
|
|
240
|
+
export type thelib = string
|
|
241
|
+
export type thenouidt = number | null
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface the {
|
|
245
|
+
theali: theFields.theali
|
|
246
|
+
thecle: theFields.thecle
|
|
247
|
+
thelib: theFields.thelib
|
|
248
|
+
thenouidt: theFields.thenouidt
|
|
249
|
+
}
|