@tricoteuses/senat 2.10.4 → 2.11.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.
- package/lib/databases.d.ts +1 -28
- package/lib/databases.js +0 -6
- package/lib/datasets.d.ts +6 -0
- package/lib/datasets.js +233 -0
- package/lib/index.d.ts +1 -1
- package/lib/model/ameli.d.ts +31 -143
- package/lib/model/ameli.js +102 -95
- package/lib/model/debats.d.ts +13 -51
- package/lib/model/documents.d.ts +2 -0
- package/lib/model/documents.js +37 -0
- package/lib/model/dosleg.d.ts +9 -104
- package/lib/model/dosleg.js +76 -108
- package/lib/model/index.d.ts +4 -2
- package/lib/model/index.js +4 -2
- package/lib/model/questions.d.ts +10 -458
- package/lib/model/scrutins.d.ts +3 -0
- package/lib/model/scrutins.js +74 -0
- package/lib/model/sens.d.ts +28 -1002
- package/lib/model/sens.js +65 -33
- package/lib/raw_types/ameli.d.ts +778 -1521
- package/lib/raw_types/ameli.js +5 -345
- package/lib/raw_types/db.d.ts +11389 -0
- package/lib/raw_types/db.js +5 -0
- package/lib/raw_types/debats.d.ts +163 -306
- package/lib/raw_types/debats.js +5 -84
- package/lib/raw_types/dosleg.d.ts +1349 -2293
- package/lib/raw_types/dosleg.js +5 -550
- package/lib/raw_types/questions.d.ts +374 -519
- package/lib/raw_types/questions.js +5 -84
- package/lib/raw_types/senat.d.ts +11389 -0
- package/lib/raw_types/senat.js +5 -0
- package/lib/raw_types/sens.d.ts +6729 -12571
- package/lib/raw_types/sens.js +5 -2944
- package/lib/raw_types_schemats/ameli.d.ts +2 -2
- package/lib/raw_types_schemats/debats.d.ts +2 -2
- package/lib/raw_types_schemats/dosleg.d.ts +2 -2
- package/lib/raw_types_schemats/questions.d.ts +2 -2
- package/lib/raw_types_schemats/sens.d.ts +2 -2
- package/lib/scripts/convert_data.js +37 -31
- package/lib/scripts/retrieve_open_data.js +35 -1
- package/package.json +10 -10
package/lib/raw_types/ameli.js
CHANGED
|
@@ -1,345 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
requiredForInsert: ['id', 'etaid', 'nomentid', 'txtid'],
|
|
7
|
-
primaryKey: 'id',
|
|
8
|
-
foreignKeys: {
|
|
9
|
-
subid: { table: 'sub', column: 'id', $type: null },
|
|
10
|
-
amdperid: { table: 'amd', column: 'id', $type: null },
|
|
11
|
-
motid: { table: 'mot', column: 'id', $type: null },
|
|
12
|
-
nomentid: { table: 'ent', column: 'id', $type: null },
|
|
13
|
-
sorid: { table: 'sor', column: 'id', $type: null },
|
|
14
|
-
avcid: { table: 'avicom', column: 'id', $type: null },
|
|
15
|
-
avgid: { table: 'avigvt', column: 'id', $type: null },
|
|
16
|
-
irrid: { table: 'irr', column: 'id', $type: null },
|
|
17
|
-
txtid: { table: 'txt_ameli', column: 'id', $type: null },
|
|
18
|
-
opmid: { table: 'ent', column: 'id', $type: null },
|
|
19
|
-
ocmid: { table: 'ent', column: 'id', $type: null },
|
|
20
|
-
subidder: { table: 'sub', column: 'id', $type: null },
|
|
21
|
-
typrectid: { table: 'typrect', column: 'id', $type: null },
|
|
22
|
-
irrsaisiepar: { table: 'ent', column: 'id', $type: null },
|
|
23
|
-
},
|
|
24
|
-
$type: null,
|
|
25
|
-
$input: null
|
|
26
|
-
};
|
|
27
|
-
const amdsen = {
|
|
28
|
-
tableName: 'amdsen',
|
|
29
|
-
columns: ['amdid', 'senid', 'rng', 'qua', 'nomuse', 'prenomuse', 'hom', 'grpid'],
|
|
30
|
-
requiredForInsert: ['amdid', 'senid'],
|
|
31
|
-
primaryKey: 'amdid',
|
|
32
|
-
foreignKeys: {
|
|
33
|
-
amdid: { table: 'amd', column: 'id', $type: null },
|
|
34
|
-
senid: { table: 'sen_ameli', column: 'entid', $type: null },
|
|
35
|
-
grpid: { table: 'grppol_ameli', column: 'entid', $type: null },
|
|
36
|
-
},
|
|
37
|
-
$type: null,
|
|
38
|
-
$input: null
|
|
39
|
-
};
|
|
40
|
-
const avicom = {
|
|
41
|
-
tableName: 'avicom',
|
|
42
|
-
columns: ['id', 'lib', 'cod'],
|
|
43
|
-
requiredForInsert: ['id', 'lib', 'cod'],
|
|
44
|
-
primaryKey: 'id',
|
|
45
|
-
foreignKeys: {},
|
|
46
|
-
$type: null,
|
|
47
|
-
$input: null
|
|
48
|
-
};
|
|
49
|
-
const avigvt = {
|
|
50
|
-
tableName: 'avigvt',
|
|
51
|
-
columns: ['id', 'lib', 'cod'],
|
|
52
|
-
requiredForInsert: ['id', 'lib', 'cod'],
|
|
53
|
-
primaryKey: 'id',
|
|
54
|
-
foreignKeys: {},
|
|
55
|
-
$type: null,
|
|
56
|
-
$input: null
|
|
57
|
-
};
|
|
58
|
-
const cab = {
|
|
59
|
-
tableName: 'cab',
|
|
60
|
-
columns: ['entid', 'codint', 'lil'],
|
|
61
|
-
requiredForInsert: ['entid', 'codint'],
|
|
62
|
-
primaryKey: 'entid',
|
|
63
|
-
foreignKeys: { entid: { table: 'ent', column: 'id', $type: null }, },
|
|
64
|
-
$type: null,
|
|
65
|
-
$input: null
|
|
66
|
-
};
|
|
67
|
-
const com_ameli = {
|
|
68
|
-
tableName: 'com_ameli',
|
|
69
|
-
columns: ['entid', 'cod', 'lib', 'lil', 'spc', 'codint', 'tri'],
|
|
70
|
-
requiredForInsert: ['entid', 'cod', 'lib', 'lil', 'codint'],
|
|
71
|
-
primaryKey: 'entid',
|
|
72
|
-
foreignKeys: { entid: { table: 'ent', column: 'id', $type: null }, },
|
|
73
|
-
$type: null,
|
|
74
|
-
$input: null
|
|
75
|
-
};
|
|
76
|
-
const ent = {
|
|
77
|
-
tableName: 'ent',
|
|
78
|
-
columns: ['id', 'typ', 'act'],
|
|
79
|
-
requiredForInsert: ['id', 'typ'],
|
|
80
|
-
primaryKey: 'id',
|
|
81
|
-
foreignKeys: {},
|
|
82
|
-
$type: null,
|
|
83
|
-
$input: null
|
|
84
|
-
};
|
|
85
|
-
const etatxt = {
|
|
86
|
-
tableName: 'etatxt',
|
|
87
|
-
columns: ['id', 'lic', 'lib', 'txttyp'],
|
|
88
|
-
requiredForInsert: ['id', 'lic', 'lib'],
|
|
89
|
-
primaryKey: 'id',
|
|
90
|
-
foreignKeys: {},
|
|
91
|
-
$type: null,
|
|
92
|
-
$input: null
|
|
93
|
-
};
|
|
94
|
-
const fbu = {
|
|
95
|
-
tableName: 'fbu',
|
|
96
|
-
columns: ['id', 'lib', 'lic', 'sesid'],
|
|
97
|
-
requiredForInsert: ['id', 'lib', 'lic', 'sesid'],
|
|
98
|
-
primaryKey: 'id',
|
|
99
|
-
foreignKeys: { sesid: { table: 'ses', column: 'id', $type: null }, },
|
|
100
|
-
$type: null,
|
|
101
|
-
$input: null
|
|
102
|
-
};
|
|
103
|
-
const grppol_ameli = {
|
|
104
|
-
tableName: 'grppol_ameli',
|
|
105
|
-
columns: ['entid', 'cod', 'libcou', 'lilcou', 'codint', 'tri'],
|
|
106
|
-
requiredForInsert: ['entid', 'cod', 'libcou', 'lilcou', 'codint'],
|
|
107
|
-
primaryKey: 'entid',
|
|
108
|
-
foreignKeys: { entid: { table: 'ent', column: 'id', $type: null }, },
|
|
109
|
-
$type: null,
|
|
110
|
-
$input: null
|
|
111
|
-
};
|
|
112
|
-
const gvt = {
|
|
113
|
-
tableName: 'gvt',
|
|
114
|
-
columns: ['entid', 'nom', 'pre', 'qua', 'tit'],
|
|
115
|
-
requiredForInsert: ['entid', 'nom', 'pre', 'qua', 'tit'],
|
|
116
|
-
primaryKey: 'entid',
|
|
117
|
-
foreignKeys: { entid: { table: 'ent', column: 'id', $type: null }, },
|
|
118
|
-
$type: null,
|
|
119
|
-
$input: null
|
|
120
|
-
};
|
|
121
|
-
const intora = {
|
|
122
|
-
tableName: 'intora',
|
|
123
|
-
columns: ['id', 'subid', 'entid', 'entid2', 'txtid', 'seaid', 'mom', 'ord', 'rolcod', 'temps'],
|
|
124
|
-
requiredForInsert: ['id', 'entid', 'txtid', 'mom', 'ord'],
|
|
125
|
-
primaryKey: 'id',
|
|
126
|
-
foreignKeys: {
|
|
127
|
-
subid: { table: 'sub', column: 'id', $type: null },
|
|
128
|
-
entid: { table: 'ent', column: 'id', $type: null },
|
|
129
|
-
entid2: { table: 'ent', column: 'id', $type: null },
|
|
130
|
-
txtid: { table: 'txt_ameli', column: 'id', $type: null },
|
|
131
|
-
seaid: { table: 'sea', column: 'id', $type: null },
|
|
132
|
-
rolcod: { table: 'orarol', column: 'cod', $type: null },
|
|
133
|
-
},
|
|
134
|
-
$type: null,
|
|
135
|
-
$input: null
|
|
136
|
-
};
|
|
137
|
-
const irr = {
|
|
138
|
-
tableName: 'irr',
|
|
139
|
-
columns: ['id', 'lib', 'cod', 'libirr', 'art', 'lilmin', 'par'],
|
|
140
|
-
requiredForInsert: ['id', 'lib', 'cod'],
|
|
141
|
-
primaryKey: 'id',
|
|
142
|
-
foreignKeys: {},
|
|
143
|
-
$type: null,
|
|
144
|
-
$input: null
|
|
145
|
-
};
|
|
146
|
-
const lec_ameli = {
|
|
147
|
-
tableName: 'lec_ameli',
|
|
148
|
-
columns: ['id', 'lib', 'lecpreid'],
|
|
149
|
-
requiredForInsert: ['id', 'lib'],
|
|
150
|
-
primaryKey: 'id',
|
|
151
|
-
foreignKeys: { lecpreid: { table: 'lec_ameli', column: 'id', $type: null }, },
|
|
152
|
-
$type: null,
|
|
153
|
-
$input: null
|
|
154
|
-
};
|
|
155
|
-
const mot = {
|
|
156
|
-
tableName: 'mot',
|
|
157
|
-
columns: ['id', 'lib', 'int', 'cod', 'ord', 'libnbe'],
|
|
158
|
-
requiredForInsert: ['id', 'lib', 'ord'],
|
|
159
|
-
primaryKey: 'id',
|
|
160
|
-
foreignKeys: {},
|
|
161
|
-
$type: null,
|
|
162
|
-
$input: null
|
|
163
|
-
};
|
|
164
|
-
const nat = {
|
|
165
|
-
tableName: 'nat',
|
|
166
|
-
columns: ['id', 'lib', 'libcourt'],
|
|
167
|
-
requiredForInsert: ['id', 'lib'],
|
|
168
|
-
primaryKey: 'id',
|
|
169
|
-
foreignKeys: {},
|
|
170
|
-
$type: null,
|
|
171
|
-
$input: null
|
|
172
|
-
};
|
|
173
|
-
const orarol = {
|
|
174
|
-
tableName: 'orarol',
|
|
175
|
-
columns: ['cod', 'lib', 'entreq'],
|
|
176
|
-
requiredForInsert: ['cod'],
|
|
177
|
-
primaryKey: 'cod',
|
|
178
|
-
foreignKeys: {},
|
|
179
|
-
$type: null,
|
|
180
|
-
$input: null
|
|
181
|
-
};
|
|
182
|
-
const sai = {
|
|
183
|
-
tableName: 'sai',
|
|
184
|
-
columns: ['id', 'txtid', 'comid', 'sesid', 'numrap', 'saityp', 'isdelegfond'],
|
|
185
|
-
requiredForInsert: ['id', 'txtid', 'comid', 'sesid', 'saityp'],
|
|
186
|
-
primaryKey: 'id',
|
|
187
|
-
foreignKeys: {
|
|
188
|
-
txtid: { table: 'txt_ameli', column: 'id', $type: null },
|
|
189
|
-
comid: { table: 'com_ameli', column: 'entid', $type: null },
|
|
190
|
-
sesid: { table: 'ses', column: 'id', $type: null },
|
|
191
|
-
},
|
|
192
|
-
$type: null,
|
|
193
|
-
$input: null
|
|
194
|
-
};
|
|
195
|
-
const saisen = {
|
|
196
|
-
tableName: 'saisen',
|
|
197
|
-
columns: ['id', 'senid', 'ord'],
|
|
198
|
-
requiredForInsert: ['id', 'senid'],
|
|
199
|
-
primaryKey: 'id',
|
|
200
|
-
foreignKeys: {
|
|
201
|
-
id: { table: 'sai', column: 'id', $type: null },
|
|
202
|
-
senid: { table: 'sen_ameli', column: 'entid', $type: null },
|
|
203
|
-
},
|
|
204
|
-
$type: null,
|
|
205
|
-
$input: null
|
|
206
|
-
};
|
|
207
|
-
const sea = {
|
|
208
|
-
tableName: 'sea',
|
|
209
|
-
columns: ['id', 'sesid', 'dat', 'num'],
|
|
210
|
-
requiredForInsert: ['id', 'sesid'],
|
|
211
|
-
primaryKey: 'id',
|
|
212
|
-
foreignKeys: { sesid: { table: 'ses', column: 'id', $type: null }, },
|
|
213
|
-
$type: null,
|
|
214
|
-
$input: null
|
|
215
|
-
};
|
|
216
|
-
const sen_ameli = {
|
|
217
|
-
tableName: 'sen_ameli',
|
|
218
|
-
columns: ['entid', 'grpid', 'comid', 'comspcid', 'mat', 'qua', 'nomuse', 'prenomuse', 'nomtec', 'hom', 'app', 'ratt', 'nomusemin', 'senfem'],
|
|
219
|
-
requiredForInsert: ['entid', 'grpid', 'mat', 'qua', 'nomuse', 'prenomuse', 'nomusemin'],
|
|
220
|
-
primaryKey: 'entid',
|
|
221
|
-
foreignKeys: {
|
|
222
|
-
entid: { table: 'ent', column: 'id', $type: null },
|
|
223
|
-
grpid: { table: 'grppol_ameli', column: 'entid', $type: null },
|
|
224
|
-
comid: { table: 'com_ameli', column: 'entid', $type: null },
|
|
225
|
-
comspcid: { table: 'com_ameli', column: 'entid', $type: null },
|
|
226
|
-
},
|
|
227
|
-
$type: null,
|
|
228
|
-
$input: null
|
|
229
|
-
};
|
|
230
|
-
const ses = {
|
|
231
|
-
tableName: 'ses',
|
|
232
|
-
columns: ['id', 'typid', 'ann', 'lil'],
|
|
233
|
-
requiredForInsert: ['id', 'typid', 'ann', 'lil'],
|
|
234
|
-
primaryKey: 'id',
|
|
235
|
-
foreignKeys: { typid: { table: 'typses', column: 'id', $type: null }, },
|
|
236
|
-
$type: null,
|
|
237
|
-
$input: null
|
|
238
|
-
};
|
|
239
|
-
const sor = {
|
|
240
|
-
tableName: 'sor',
|
|
241
|
-
columns: ['id', 'lib', 'cod', 'typ'],
|
|
242
|
-
requiredForInsert: ['id', 'lib', 'cod'],
|
|
243
|
-
primaryKey: 'id',
|
|
244
|
-
foreignKeys: {},
|
|
245
|
-
$type: null,
|
|
246
|
-
$input: null
|
|
247
|
-
};
|
|
248
|
-
const sub = {
|
|
249
|
-
tableName: 'sub',
|
|
250
|
-
columns: ['id', 'txtid', 'merid', 'typid', 'lic', 'lib', 'pos', 'sig', 'posder', 'prires', 'dupl', 'subamd', 'sorid', 'txtidder', 'style', 'islec', 'comdelid'],
|
|
251
|
-
requiredForInsert: ['id', 'txtid'],
|
|
252
|
-
primaryKey: 'id',
|
|
253
|
-
foreignKeys: {
|
|
254
|
-
txtid: { table: 'txt_ameli', column: 'id', $type: null },
|
|
255
|
-
merid: { table: 'sub', column: 'id', $type: null },
|
|
256
|
-
typid: { table: 'typsub', column: 'id', $type: null },
|
|
257
|
-
comdelid: { table: 'com_ameli', column: 'entid', $type: null },
|
|
258
|
-
},
|
|
259
|
-
$type: null,
|
|
260
|
-
$input: null
|
|
261
|
-
};
|
|
262
|
-
const txt_ameli = {
|
|
263
|
-
tableName: 'txt_ameli',
|
|
264
|
-
columns: ['id', 'natid', 'lecid', 'sesinsid', 'sesdepid', 'fbuid', 'num', 'int', 'inl', 'datdep', 'urg', 'dis', 'secdel', 'loifin', 'loifinpar', 'txtamd', 'datado', 'numado', 'txtexa', 'pubdellim', 'numabs', 'libdelim', 'libcplnat', 'doslegsignet', 'proacc', 'txttyp', 'ordsnddelib', 'txtetaid', 'fusderid', 'fusder', 'fusderord', 'fusdertyp'],
|
|
265
|
-
requiredForInsert: ['id', 'natid', 'lecid', 'sesdepid', 'num', 'int', 'datdep'],
|
|
266
|
-
primaryKey: 'id',
|
|
267
|
-
foreignKeys: {
|
|
268
|
-
natid: { table: 'nat', column: 'id', $type: null },
|
|
269
|
-
lecid: { table: 'lec_ameli', column: 'id', $type: null },
|
|
270
|
-
sesinsid: { table: 'ses', column: 'id', $type: null },
|
|
271
|
-
sesdepid: { table: 'ses', column: 'id', $type: null },
|
|
272
|
-
fbuid: { table: 'fbu', column: 'id', $type: null },
|
|
273
|
-
txtetaid: { table: 'etatxt', column: 'id', $type: null },
|
|
274
|
-
fusderid: { table: 'txt_ameli', column: 'id', $type: null },
|
|
275
|
-
},
|
|
276
|
-
$type: null,
|
|
277
|
-
$input: null
|
|
278
|
-
};
|
|
279
|
-
const typrect = {
|
|
280
|
-
tableName: 'typrect',
|
|
281
|
-
columns: ['id', 'lib', 'ord'],
|
|
282
|
-
requiredForInsert: ['id', 'lib', 'ord'],
|
|
283
|
-
primaryKey: 'id',
|
|
284
|
-
foreignKeys: {},
|
|
285
|
-
$type: null,
|
|
286
|
-
$input: null
|
|
287
|
-
};
|
|
288
|
-
const typses = {
|
|
289
|
-
tableName: 'typses',
|
|
290
|
-
columns: ['id', 'lib'],
|
|
291
|
-
requiredForInsert: ['id'],
|
|
292
|
-
primaryKey: 'id',
|
|
293
|
-
foreignKeys: {},
|
|
294
|
-
$type: null,
|
|
295
|
-
$input: null
|
|
296
|
-
};
|
|
297
|
-
const typsub = {
|
|
298
|
-
tableName: 'typsub',
|
|
299
|
-
columns: ['id', 'lib'],
|
|
300
|
-
requiredForInsert: ['id', 'lib'],
|
|
301
|
-
primaryKey: 'id',
|
|
302
|
-
foreignKeys: {},
|
|
303
|
-
$type: null,
|
|
304
|
-
$input: null
|
|
305
|
-
};
|
|
306
|
-
const w_nivrec = {
|
|
307
|
-
tableName: 'w_nivrec',
|
|
308
|
-
columns: ['num', 'lib'],
|
|
309
|
-
requiredForInsert: ['num'],
|
|
310
|
-
primaryKey: 'num',
|
|
311
|
-
foreignKeys: {},
|
|
312
|
-
$type: null,
|
|
313
|
-
$input: null
|
|
314
|
-
};
|
|
315
|
-
export const tables = {
|
|
316
|
-
amd,
|
|
317
|
-
amdsen,
|
|
318
|
-
avicom,
|
|
319
|
-
avigvt,
|
|
320
|
-
cab,
|
|
321
|
-
com_ameli,
|
|
322
|
-
ent,
|
|
323
|
-
etatxt,
|
|
324
|
-
fbu,
|
|
325
|
-
grppol_ameli,
|
|
326
|
-
gvt,
|
|
327
|
-
intora,
|
|
328
|
-
irr,
|
|
329
|
-
lec_ameli,
|
|
330
|
-
mot,
|
|
331
|
-
nat,
|
|
332
|
-
orarol,
|
|
333
|
-
sai,
|
|
334
|
-
saisen,
|
|
335
|
-
sea,
|
|
336
|
-
sen_ameli,
|
|
337
|
-
ses,
|
|
338
|
-
sor,
|
|
339
|
-
sub,
|
|
340
|
-
txt_ameli,
|
|
341
|
-
typrect,
|
|
342
|
-
typses,
|
|
343
|
-
typsub,
|
|
344
|
-
w_nivrec,
|
|
345
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by kysely-codegen.
|
|
3
|
+
* Please do not edit it manually.
|
|
4
|
+
*/
|
|
5
|
+
export {};
|