@tricoteuses/senat 1.1.1 → 1.3.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/README.md +53 -15
- package/lib/aggregates.d.ts +4 -6
- package/lib/aggregates.mjs +908 -780
- package/lib/aggregates.ts +8 -122
- package/lib/data/legislatures.json +38 -0
- package/lib/databases.d.ts +9 -0
- package/lib/databases.js +41 -11
- package/lib/databases.mjs +32 -1
- package/lib/databases.ts +40 -1
- package/lib/fields.mjs +64 -18
- package/lib/index.d.ts +5 -6
- package/lib/index.js +8 -99
- package/lib/index.mjs +4 -6
- package/lib/index.ts +9 -26
- package/lib/inserters.d.ts +0 -4
- package/lib/inserters.mjs +461 -337
- package/lib/inserters.ts +0 -24
- package/lib/legislatures.json +38 -0
- package/lib/loaders.d.ts +64 -0
- package/lib/loaders.js +682 -0
- package/lib/loaders.mjs +158 -0
- package/lib/loaders.ts +271 -0
- package/lib/model/ameli.d.ts +105 -4
- package/lib/model/ameli.js +20 -160
- package/lib/model/ameli.mjs +84 -57
- package/lib/model/ameli.ts +94 -80
- package/lib/model/debats.d.ts +0 -4
- package/lib/model/debats.js +1 -122
- package/lib/model/debats.mjs +1 -43
- package/lib/model/debats.ts +0 -68
- package/lib/model/dosleg.d.ts +227 -29
- package/lib/model/dosleg.js +92 -832
- package/lib/model/dosleg.mjs +196 -337
- package/lib/model/dosleg.ts +213 -531
- package/lib/model/index.d.ts +4 -5
- package/lib/model/index.js +14 -15
- package/lib/model/index.mjs +4 -5
- package/lib/model/index.ts +8 -5
- package/lib/model/questions.d.ts +88 -2
- package/lib/model/questions.js +40 -45
- package/lib/model/questions.mjs +71 -8
- package/lib/model/questions.ts +90 -11
- package/lib/model/sens.d.ts +524 -2
- package/lib/model/sens.js +172 -49
- package/lib/model/sens.mjs +415 -9
- package/lib/model/sens.ts +514 -16
- package/lib/model/texte.d.ts +7 -0
- package/lib/model/texte.js +321 -0
- package/lib/model/texte.mjs +208 -0
- package/lib/model/texte.ts +229 -0
- package/lib/model/util.d.ts +7 -1
- package/lib/model/util.js +37 -53
- package/lib/model/util.mjs +19 -10
- package/lib/model/util.ts +30 -14
- package/lib/raw_types/ameli.d.ts +912 -538
- package/lib/raw_types/ameli.js +1 -39
- package/lib/raw_types/ameli.mjs +4 -1
- package/lib/raw_types/ameli.ts +947 -597
- package/lib/raw_types/debats.d.ts +204 -124
- package/lib/raw_types/debats.js +1 -18
- package/lib/raw_types/debats.mjs +4 -1
- package/lib/raw_types/debats.ts +218 -141
- package/lib/raw_types/dosleg.d.ts +3533 -2024
- package/lib/raw_types/dosleg.js +1 -92
- package/lib/raw_types/dosleg.mjs +4 -1
- package/lib/raw_types/dosleg.ts +3621 -2189
- package/lib/raw_types/questions.d.ts +404 -220
- package/lib/raw_types/questions.js +1 -18
- package/lib/raw_types/questions.mjs +4 -1
- package/lib/raw_types/questions.ts +404 -226
- package/lib/raw_types/sens.d.ts +4391 -2706
- package/lib/raw_types/sens.js +1 -108
- package/lib/raw_types/sens.mjs +4 -1
- package/lib/raw_types/sens.ts +4495 -2903
- package/lib/raw_types_kysely/ameli.d.ts +6 -0
- package/lib/raw_types_kysely/ameli.mjs +7 -0
- package/lib/raw_types_kysely/ameli.ts +6 -0
- package/lib/raw_types_kysely/debats.d.ts +6 -0
- package/lib/raw_types_kysely/debats.mjs +7 -0
- package/lib/raw_types_kysely/debats.ts +6 -0
- package/lib/raw_types_kysely/dosleg.d.ts +6 -0
- package/lib/raw_types_kysely/dosleg.mjs +7 -0
- package/lib/raw_types_kysely/dosleg.ts +6 -0
- package/lib/raw_types_kysely/questions.d.ts +6 -0
- package/lib/raw_types_kysely/questions.mjs +7 -0
- package/lib/raw_types_kysely/questions.ts +6 -0
- package/lib/raw_types_kysely/sens.d.ts +6 -0
- package/lib/raw_types_kysely/sens.mjs +7 -0
- package/lib/raw_types_kysely/sens.ts +6 -0
- package/lib/raw_types_kysely/texte.d.ts +45 -0
- package/lib/raw_types_kysely/texte.mjs +7 -0
- package/lib/raw_types_kysely/texte.ts +53 -0
- package/lib/raw_types_schemats/ameli.d.ts +541 -0
- package/lib/raw_types_schemats/ameli.js +45 -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.d.ts +127 -0
- package/lib/raw_types_schemats/debats.js +24 -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.d.ts +2029 -0
- package/lib/raw_types_schemats/dosleg.js +98 -0
- package/lib/raw_types_schemats/dosleg.mjs +2 -0
- package/lib/raw_types_schemats/dosleg.ts +2195 -0
- package/lib/raw_types_schemats/questions.d.ts +233 -0
- package/lib/raw_types_schemats/questions.js +24 -0
- package/lib/raw_types_schemats/questions.mjs +2 -0
- package/lib/raw_types_schemats/questions.ts +251 -0
- package/lib/raw_types_schemats/sens.d.ts +2709 -0
- package/lib/raw_types_schemats/sens.js +114 -0
- package/lib/raw_types_schemats/sens.mjs +2 -0
- package/lib/raw_types_schemats/sens.ts +2907 -0
- package/lib/scripts/convert_data.js +574 -215
- package/lib/scripts/convert_data.mjs +134 -99
- package/lib/scripts/convert_data.ts +173 -112
- package/lib/scripts/datautil.d.ts +5 -0
- package/lib/scripts/datautil.js +64 -0
- package/lib/scripts/datautil.mjs +16 -0
- package/lib/scripts/datautil.ts +19 -0
- package/lib/scripts/parse_textes.js +132 -0
- package/lib/scripts/parse_textes.mjs +46 -0
- package/lib/scripts/parse_textes.ts +65 -0
- package/lib/scripts/retrieve_documents.d.ts +1 -0
- package/lib/scripts/retrieve_documents.js +521 -0
- package/lib/scripts/retrieve_documents.mjs +249 -0
- package/lib/scripts/retrieve_documents.ts +298 -0
- package/lib/scripts/retrieve_open_data.js +77 -69
- package/lib/scripts/retrieve_open_data.mjs +48 -49
- package/lib/scripts/retrieve_open_data.ts +74 -58
- package/lib/scripts/retrieve_senateurs_photos.js +45 -63
- package/lib/scripts/retrieve_senateurs_photos.mjs +4 -21
- package/lib/scripts/retrieve_senateurs_photos.ts +6 -29
- package/lib/scripts/retrieve_textes.mjs +325 -74
- package/lib/scripts/retrieve_textes.ts +111 -63
- package/lib/scripts/shared/cli_helpers.d.ts +44 -0
- package/lib/scripts/shared/cli_helpers.js +35 -0
- package/lib/scripts/shared/cli_helpers.ts +36 -0
- package/lib/scripts/shared/util.d.ts +3 -0
- package/lib/scripts/shared/util.js +102 -0
- package/lib/scripts/shared/util.ts +33 -0
- package/lib/src/aggregates.d.ts +52 -0
- package/lib/src/aggregates.mjs +726 -0
- package/lib/src/config.d.ts +2 -0
- package/lib/src/config.mjs +16 -0
- package/lib/src/databases.d.ts +18 -0
- package/lib/src/databases.mjs +55 -0
- package/lib/src/datasets.d.ts +28 -0
- package/lib/src/datasets.mjs +78 -0
- package/lib/src/fields.d.ts +10 -0
- package/lib/src/fields.mjs +22 -0
- package/lib/src/index.d.ts +8 -0
- package/lib/src/index.mjs +7 -0
- package/lib/src/inserters.d.ts +98 -0
- package/lib/src/inserters.mjs +360 -0
- package/lib/src/loaders.d.ts +36 -0
- package/lib/src/loaders.mjs +107 -0
- package/lib/src/model/ameli.d.ts +4 -0
- package/lib/src/model/ameli.js +57 -0
- package/lib/src/model/debats.d.ts +4 -0
- package/lib/src/model/debats.js +43 -0
- package/lib/src/model/dosleg.d.ts +197 -0
- package/lib/src/model/dosleg.js +169 -0
- package/lib/src/model/index.d.ts +4 -0
- package/lib/src/model/index.js +4 -0
- package/lib/src/model/questions.d.ts +89 -0
- package/lib/src/model/questions.js +76 -0
- package/lib/src/model/sens.d.ts +390 -0
- package/lib/src/model/sens.js +339 -0
- package/lib/src/model/texte.d.ts +7 -0
- package/lib/src/model/texte.js +183 -0
- package/lib/src/raw_types_kysely/ameli.d.ts +915 -0
- package/lib/src/raw_types_kysely/ameli.js +5 -0
- package/lib/src/raw_types_kysely/debats.d.ts +207 -0
- package/lib/src/raw_types_kysely/debats.js +5 -0
- package/lib/src/raw_types_kysely/dosleg.d.ts +3532 -0
- package/lib/src/raw_types_kysely/dosleg.js +5 -0
- package/lib/src/raw_types_kysely/questions.d.ts +414 -0
- package/lib/src/raw_types_kysely/questions.js +5 -0
- package/lib/src/raw_types_kysely/sens.d.ts +4394 -0
- package/lib/src/raw_types_kysely/sens.js +5 -0
- package/lib/src/raw_types_schemats/ameli.d.ts +541 -0
- package/lib/src/raw_types_schemats/ameli.js +2 -0
- package/lib/src/raw_types_schemats/debats.d.ts +127 -0
- package/lib/src/raw_types_schemats/debats.js +2 -0
- package/lib/src/raw_types_schemats/dosleg.d.ts +2027 -0
- package/lib/src/raw_types_schemats/dosleg.js +2 -0
- package/lib/src/raw_types_schemats/questions.d.ts +231 -0
- package/lib/src/raw_types_schemats/questions.js +2 -0
- package/lib/src/raw_types_schemats/sens.d.ts +2709 -0
- package/lib/src/raw_types_schemats/sens.js +2 -0
- package/lib/src/scripts/convert_data.d.ts +1 -0
- package/lib/src/scripts/convert_data.js +95 -0
- package/lib/src/scripts/datautil.d.ts +5 -0
- package/lib/src/scripts/datautil.js +16 -0
- package/lib/src/scripts/parse_textes.d.ts +1 -0
- package/lib/src/scripts/parse_textes.js +47 -0
- package/lib/src/scripts/retrieve_documents.d.ts +1 -0
- package/lib/src/scripts/retrieve_documents.js +258 -0
- package/lib/src/scripts/retrieve_open_data.d.ts +1 -0
- package/lib/src/scripts/retrieve_open_data.js +214 -0
- package/lib/src/scripts/retrieve_senateurs_photos.d.ts +1 -0
- package/lib/src/scripts/retrieve_senateurs_photos.js +147 -0
- package/lib/src/scripts/shared/cli_helpers.d.ts +44 -0
- package/lib/src/scripts/shared/cli_helpers.js +32 -0
- package/lib/src/scripts/shared/util.d.ts +3 -0
- package/lib/src/scripts/shared/util.js +28 -0
- package/lib/src/strings.d.ts +1 -0
- package/lib/src/strings.mjs +18 -0
- package/lib/src/types/ameli.d.ts +10 -0
- package/lib/src/types/ameli.js +13 -0
- package/lib/src/types/debats.d.ts +4 -0
- package/lib/src/types/debats.js +2 -0
- package/lib/src/types/dosleg.d.ts +98 -0
- package/lib/src/types/dosleg.js +151 -0
- package/lib/src/types/questions.d.ts +2 -0
- package/lib/src/types/questions.js +1 -0
- package/lib/src/types/sens.d.ts +10 -0
- package/lib/src/types/sens.js +1 -0
- package/lib/src/types/sessions.d.ts +42 -0
- package/lib/src/types/sessions.js +43 -0
- package/lib/src/types/texte.d.ts +61 -0
- package/lib/src/types/texte.js +16 -0
- package/lib/src/validators/config.d.ts +1 -0
- package/lib/src/validators/config.js +54 -0
- package/lib/src/validators/senat.d.ts +0 -0
- package/lib/src/validators/senat.js +24 -0
- package/lib/types/ameli.d.ts +1 -1
- package/lib/types/ameli.js +2 -2
- package/lib/types/ameli.ts +1 -1
- package/lib/types/debats.d.ts +1 -1
- package/lib/types/debats.js +2 -2
- package/lib/types/debats.ts +1 -1
- package/lib/types/dosleg.d.ts +2 -2
- package/lib/types/dosleg.js +2 -2
- package/lib/types/dosleg.ts +2 -2
- package/lib/types/questions.d.ts +1 -1
- package/lib/types/questions.js +2 -2
- package/lib/types/questions.ts +1 -1
- package/lib/types/sens.d.ts +1 -3
- package/lib/types/sens.js +2 -5
- package/lib/types/sens.mjs +1 -23
- package/lib/types/sens.ts +1 -25
- package/lib/types/sessions.d.ts +42 -0
- package/lib/types/sessions.js +51 -0
- package/lib/types/sessions.mjs +43 -0
- package/lib/types/sessions.ts +42 -0
- package/lib/types/texte.d.ts +65 -0
- package/lib/types/texte.js +24 -0
- package/lib/types/texte.mjs +16 -0
- package/lib/types/texte.ts +76 -0
- package/package.json +35 -10
- package/lib/aggregates.js +0 -1122
- package/lib/fields.js +0 -68
- package/lib/inserters.js +0 -518
- package/lib/scripts/fix_db.js +0 -144
- package/lib/scripts/fix_db.mjs +0 -64
- package/lib/scripts/fix_db.ts +0 -75
- package/lib/scripts/retrieve_textes.js +0 -179
- /package/lib/scripts/{fix_db.d.ts → parse_textes.d.ts} +0 -0
|
@@ -1,249 +1,427 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* This file was automatically generated by schemats v.1.0.1
|
|
7
|
-
* $ schemats generate -c postgres://username:password@localhost:5432/questions -t etatquestion -t legquestion -t naturequestion -t sortquestion -t tam_ministeres -t tam_questions -t tam_reponses -t the -s public
|
|
8
|
-
*
|
|
2
|
+
* This file was generated by kysely-codegen.
|
|
3
|
+
* Please do not edit it manually.
|
|
9
4
|
*/
|
|
10
5
|
|
|
11
|
-
|
|
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
|
-
}
|
|
6
|
+
import type { ColumnType } from "kysely";
|
|
44
7
|
|
|
45
|
-
export
|
|
46
|
-
natquecod: naturequestionFields.natquecod
|
|
47
|
-
natquelib: naturequestionFields.natquelib
|
|
48
|
-
natquenumtri: naturequestionFields.natquenumtri
|
|
49
|
-
}
|
|
8
|
+
export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
|
|
50
9
|
|
|
51
|
-
export
|
|
52
|
-
export type sorquecod = string
|
|
53
|
-
export type sorquelib = string | null
|
|
54
|
-
export type sorquenumtri = number | null
|
|
55
|
-
}
|
|
10
|
+
export type Timestamp = ColumnType<Date, Date | string, Date | string>;
|
|
56
11
|
|
|
57
|
-
export interface
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
12
|
+
export interface Etatquestion {
|
|
13
|
+
/**
|
|
14
|
+
* Code état
|
|
15
|
+
*/
|
|
16
|
+
etaquecod: string;
|
|
17
|
+
/**
|
|
18
|
+
* Libellé de l'état
|
|
19
|
+
*/
|
|
20
|
+
etaquelib: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Critère de tri
|
|
23
|
+
*/
|
|
24
|
+
etaquenumtri: Int8 | null;
|
|
61
25
|
}
|
|
62
26
|
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
27
|
+
export interface Legquestion {
|
|
28
|
+
/**
|
|
29
|
+
* Date de début de la législature
|
|
30
|
+
*/
|
|
31
|
+
legdatdeb: Timestamp | null;
|
|
32
|
+
/**
|
|
33
|
+
* Date de fin de la législature
|
|
34
|
+
*/
|
|
35
|
+
legdatfin: Timestamp | null;
|
|
36
|
+
/**
|
|
37
|
+
* Numéro de législature
|
|
38
|
+
*/
|
|
39
|
+
legislature: Int8;
|
|
40
|
+
/**
|
|
41
|
+
* Libellé de la législature
|
|
42
|
+
*/
|
|
43
|
+
leglib: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Numéro de république
|
|
46
|
+
*/
|
|
47
|
+
republique: Int8 | null;
|
|
74
48
|
}
|
|
75
49
|
|
|
76
|
-
export interface
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
50
|
+
export interface Naturequestion {
|
|
51
|
+
/**
|
|
52
|
+
* Code nature
|
|
53
|
+
*/
|
|
54
|
+
natquecod: string;
|
|
55
|
+
/**
|
|
56
|
+
* Libellé de la nature
|
|
57
|
+
*/
|
|
58
|
+
natquelib: string | null;
|
|
59
|
+
natquelibcousin: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Critère de tri
|
|
62
|
+
*/
|
|
63
|
+
natquenumtri: Int8 | null;
|
|
87
64
|
}
|
|
88
65
|
|
|
89
|
-
export
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
|
66
|
+
export interface Sortquestion {
|
|
67
|
+
/**
|
|
68
|
+
* Code sort
|
|
69
|
+
*/
|
|
70
|
+
sorquecod: string;
|
|
71
|
+
/**
|
|
72
|
+
* Libellé du sort
|
|
73
|
+
*/
|
|
74
|
+
sorquelib: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Critère de tri
|
|
77
|
+
*/
|
|
78
|
+
sorquenumtri: Int8 | null;
|
|
146
79
|
}
|
|
147
80
|
|
|
148
|
-
export interface
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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
|
|
81
|
+
export interface TamMinisteres {
|
|
82
|
+
/**
|
|
83
|
+
* Date de début du ministère
|
|
84
|
+
*/
|
|
85
|
+
datedebut: Timestamp | null;
|
|
86
|
+
/**
|
|
87
|
+
* Date de fin du ministère
|
|
88
|
+
*/
|
|
89
|
+
datefin: Timestamp | null;
|
|
90
|
+
/**
|
|
91
|
+
* Intitulé JO du ministère
|
|
92
|
+
*/
|
|
93
|
+
intitulejo: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Libellé du ministère
|
|
96
|
+
*/
|
|
97
|
+
libelle: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Libellé long du ministère
|
|
100
|
+
*/
|
|
101
|
+
libellelong: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* Identifiant du ministère
|
|
104
|
+
*/
|
|
105
|
+
minid: Int8;
|
|
106
|
+
/**
|
|
107
|
+
* Identifiant du ministère de remplacement
|
|
108
|
+
*/
|
|
109
|
+
minidremp: Int8 | null;
|
|
110
|
+
/**
|
|
111
|
+
* Nom du ministre
|
|
112
|
+
*/
|
|
113
|
+
nomministre: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Ordre protocolaire
|
|
116
|
+
*/
|
|
117
|
+
ordreprotocolaire: Int8 | null;
|
|
118
|
+
/**
|
|
119
|
+
* Titre du ministre
|
|
120
|
+
*/
|
|
121
|
+
titreministre: string | null;
|
|
205
122
|
}
|
|
206
123
|
|
|
207
|
-
export
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
124
|
+
export interface TamQuestions {
|
|
125
|
+
/**
|
|
126
|
+
* Libellé de la circonscription
|
|
127
|
+
*/
|
|
128
|
+
circonscription: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* Numéro de circonscription
|
|
131
|
+
*/
|
|
132
|
+
cirnum: Int8 | null;
|
|
133
|
+
/**
|
|
134
|
+
* Civilité du sénateur
|
|
135
|
+
*/
|
|
136
|
+
codequalite: string | null;
|
|
137
|
+
/**
|
|
138
|
+
* Commentaire public
|
|
139
|
+
*/
|
|
140
|
+
compub: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* Date de clôture
|
|
143
|
+
*/
|
|
144
|
+
datecloture: Timestamp | null;
|
|
145
|
+
/**
|
|
146
|
+
* Date publication JO de l'erratum question
|
|
147
|
+
*/
|
|
148
|
+
dateerr: Timestamp | null;
|
|
149
|
+
/**
|
|
150
|
+
* Date de publication au JO
|
|
151
|
+
*/
|
|
152
|
+
datejodepot: Timestamp | null;
|
|
153
|
+
/**
|
|
154
|
+
* Date de publication JO de la réponse
|
|
155
|
+
*/
|
|
156
|
+
datejorep1: Timestamp | null;
|
|
157
|
+
/**
|
|
158
|
+
* Date de parution du JO faisant état de la transmission de la question
|
|
159
|
+
*/
|
|
160
|
+
datejotran: Timestamp | null;
|
|
161
|
+
/**
|
|
162
|
+
* Date du rappel
|
|
163
|
+
*/
|
|
164
|
+
daterappel: Timestamp | null;
|
|
165
|
+
dateseance: Timestamp | null;
|
|
166
|
+
/**
|
|
167
|
+
* Date de signalement de la question
|
|
168
|
+
*/
|
|
169
|
+
datesignal: Timestamp | null;
|
|
170
|
+
/**
|
|
171
|
+
* Date technique (obsolète)
|
|
172
|
+
*/
|
|
173
|
+
datesynctam: Timestamp | null;
|
|
174
|
+
/**
|
|
175
|
+
* Date de la transformation de la question
|
|
176
|
+
*/
|
|
177
|
+
dattrans: Timestamp | null;
|
|
178
|
+
/**
|
|
179
|
+
* Date de la question d'origine (avant transmission)
|
|
180
|
+
*/
|
|
181
|
+
dattransori: Timestamp | null;
|
|
182
|
+
/**
|
|
183
|
+
* Délai de clôture
|
|
184
|
+
*/
|
|
185
|
+
delaijours: Int8 | null;
|
|
186
|
+
/**
|
|
187
|
+
* Libellé du ministère ayant repondu à la question
|
|
188
|
+
*/
|
|
189
|
+
delaijoursrep1: Int8 | null;
|
|
190
|
+
/**
|
|
191
|
+
* Code état
|
|
192
|
+
*/
|
|
193
|
+
etaquecod: Int8 | null;
|
|
194
|
+
/**
|
|
195
|
+
* Groupe politique du sénateur
|
|
196
|
+
*/
|
|
197
|
+
groupe: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* Identifiant de base
|
|
200
|
+
*/
|
|
201
|
+
id: Int8;
|
|
202
|
+
/**
|
|
203
|
+
* Numéro de législature
|
|
204
|
+
*/
|
|
205
|
+
legislature: Int8 | null;
|
|
206
|
+
/**
|
|
207
|
+
* Matricule du sénateur à l'origine de la question
|
|
208
|
+
*/
|
|
209
|
+
matricule: string;
|
|
210
|
+
/**
|
|
211
|
+
* Identifiant du ministère auprès duquel la question a été déposée
|
|
212
|
+
*/
|
|
213
|
+
mindepotid: Int8 | null;
|
|
214
|
+
/**
|
|
215
|
+
* Libellé du ministère auprès duquel la question a été déposée
|
|
216
|
+
*/
|
|
217
|
+
mindepotlib: string | null;
|
|
218
|
+
/**
|
|
219
|
+
* Identifiant du ministère ayant repondu à la question
|
|
220
|
+
*/
|
|
221
|
+
minrepid1: Int8 | null;
|
|
222
|
+
/**
|
|
223
|
+
* Libellé du ministère ayant repondu à la question
|
|
224
|
+
*/
|
|
225
|
+
minreplib1: string | null;
|
|
226
|
+
/**
|
|
227
|
+
* Identifiant du ministère auprès duquel la question a été transmise
|
|
228
|
+
*/
|
|
229
|
+
mintranid: Int8 | null;
|
|
230
|
+
/**
|
|
231
|
+
* Libellé du ministère auprès duquel la question a été transmise
|
|
232
|
+
*/
|
|
233
|
+
mintranlib: string | null;
|
|
234
|
+
/**
|
|
235
|
+
* Code nature
|
|
236
|
+
*/
|
|
237
|
+
natquecod: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* Ordre de tri des natures des questions
|
|
240
|
+
*/
|
|
241
|
+
natqueord: Int8 | null;
|
|
242
|
+
/**
|
|
243
|
+
* Nom du sénateur
|
|
244
|
+
*/
|
|
245
|
+
nom: string | null;
|
|
246
|
+
/**
|
|
247
|
+
* Nom technique
|
|
248
|
+
*/
|
|
249
|
+
nomtechnique: string | null;
|
|
250
|
+
/**
|
|
251
|
+
* Numéro public
|
|
252
|
+
*/
|
|
253
|
+
numero: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* Page de publication JO de l'erratum question
|
|
256
|
+
*/
|
|
257
|
+
pageerr: Int8 | null;
|
|
258
|
+
/**
|
|
259
|
+
* Page de publication JO de la question
|
|
260
|
+
*/
|
|
261
|
+
pagejodepot: Int8 | null;
|
|
262
|
+
/**
|
|
263
|
+
* Prénom du sénateur
|
|
264
|
+
*/
|
|
265
|
+
prenom: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* Type Appartenance
|
|
268
|
+
*/
|
|
269
|
+
ratgrp: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* Référence unique
|
|
272
|
+
*/
|
|
273
|
+
reference: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Référence unique de la question à l'origine de cette question de rappel
|
|
276
|
+
*/
|
|
277
|
+
refquerappelee: string | null;
|
|
278
|
+
/**
|
|
279
|
+
* Renvoi de rubrique 1
|
|
280
|
+
*/
|
|
281
|
+
renvoi1: string | null;
|
|
282
|
+
/**
|
|
283
|
+
* Renvoi de rubrique 2
|
|
284
|
+
*/
|
|
285
|
+
renvoi2: string | null;
|
|
286
|
+
/**
|
|
287
|
+
* Renvoi de rubrique 3
|
|
288
|
+
*/
|
|
289
|
+
renvoi3: string | null;
|
|
290
|
+
/**
|
|
291
|
+
* Numéro de la république
|
|
292
|
+
*/
|
|
293
|
+
repub: Int8 | null;
|
|
294
|
+
/**
|
|
295
|
+
* Rubrique
|
|
296
|
+
*/
|
|
297
|
+
rubrique: string | null;
|
|
298
|
+
/**
|
|
299
|
+
* Code sort
|
|
300
|
+
*/
|
|
301
|
+
sorquecod: Int8 | null;
|
|
302
|
+
/**
|
|
303
|
+
* Thème QCT
|
|
304
|
+
*/
|
|
305
|
+
thecrible: string | null;
|
|
306
|
+
/**
|
|
307
|
+
* Thème(s)
|
|
308
|
+
*/
|
|
309
|
+
themes: string | null;
|
|
310
|
+
/**
|
|
311
|
+
* Titre
|
|
312
|
+
*/
|
|
313
|
+
titre: string | null;
|
|
314
|
+
/**
|
|
315
|
+
* Vaut N s'il s'agit d'une réaffectation ou O s'il s'agit d'une réattribution
|
|
316
|
+
*/
|
|
317
|
+
tranisreattr: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* Texte de l'erratum question
|
|
320
|
+
*/
|
|
321
|
+
txterrque: string | null;
|
|
322
|
+
/**
|
|
323
|
+
* Texte de la question
|
|
324
|
+
*/
|
|
325
|
+
txtque: string | null;
|
|
326
|
+
/**
|
|
327
|
+
* Identifiant unique
|
|
328
|
+
*/
|
|
329
|
+
uuid: string | null;
|
|
330
|
+
/**
|
|
331
|
+
* Identifiant unique de la question à l'origine de cette question de rappel
|
|
332
|
+
*/
|
|
333
|
+
uuidquerappelee: string | null;
|
|
334
|
+
/**
|
|
335
|
+
* Identifiant unique de la question crée après transmission
|
|
336
|
+
*/
|
|
337
|
+
uuidtrans: string | null;
|
|
338
|
+
/**
|
|
339
|
+
* Identifiant unique de la question d'origine (avant transmission)
|
|
340
|
+
*/
|
|
341
|
+
uuidtransori: string | null;
|
|
342
|
+
/**
|
|
343
|
+
* Version
|
|
344
|
+
*/
|
|
345
|
+
version: Int8 | null;
|
|
220
346
|
}
|
|
221
347
|
|
|
222
|
-
export interface
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
348
|
+
export interface TamReponses {
|
|
349
|
+
/**
|
|
350
|
+
* Date publication JO de la réponse
|
|
351
|
+
*/
|
|
352
|
+
datejorep: Timestamp | null;
|
|
353
|
+
/**
|
|
354
|
+
* Délai en jours de la réponse
|
|
355
|
+
*/
|
|
356
|
+
delaijoursrep: Int8 | null;
|
|
357
|
+
/**
|
|
358
|
+
* Date publication JO de l'erratum réponse
|
|
359
|
+
*/
|
|
360
|
+
errdate: Timestamp | null;
|
|
361
|
+
/**
|
|
362
|
+
* Page de publication JO de l'erratum réponse
|
|
363
|
+
*/
|
|
364
|
+
errpage: Int8 | null;
|
|
365
|
+
/**
|
|
366
|
+
* Identifiant de base de la question
|
|
367
|
+
*/
|
|
368
|
+
idque: Int8;
|
|
369
|
+
/**
|
|
370
|
+
* Identifiant de base de la réponse dans le cas de réponses communes
|
|
371
|
+
*/
|
|
372
|
+
idrepunique: string | null;
|
|
373
|
+
/**
|
|
374
|
+
* Identifiant du ministère ayant repondu à la question
|
|
375
|
+
*/
|
|
376
|
+
minrepid: Int8 | null;
|
|
377
|
+
/**
|
|
378
|
+
* Libellé du ministère ayant repondu à la question
|
|
379
|
+
*/
|
|
380
|
+
minreplib: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* Page de publication JO de la réponse
|
|
383
|
+
*/
|
|
384
|
+
pagejorep: Int8 | null;
|
|
385
|
+
/**
|
|
386
|
+
* Texte de l'erratum réponse
|
|
387
|
+
*/
|
|
388
|
+
txterrrep: string | null;
|
|
389
|
+
/**
|
|
390
|
+
* Texte de la réponse
|
|
391
|
+
*/
|
|
392
|
+
txtrep: string | null;
|
|
393
|
+
/**
|
|
394
|
+
* URL du compte rendu où figure la réponse sur senat.fr
|
|
395
|
+
*/
|
|
396
|
+
urlrep: string | null;
|
|
235
397
|
}
|
|
236
398
|
|
|
237
|
-
export
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
399
|
+
export interface The {
|
|
400
|
+
/**
|
|
401
|
+
* Libellé d'édition thème
|
|
402
|
+
*/
|
|
403
|
+
theali: string | null;
|
|
404
|
+
/**
|
|
405
|
+
* Code thème
|
|
406
|
+
*/
|
|
407
|
+
thecle: number;
|
|
408
|
+
/**
|
|
409
|
+
* Libellé du thème
|
|
410
|
+
*/
|
|
411
|
+
thelib: string;
|
|
412
|
+
/**
|
|
413
|
+
* Critère de tri
|
|
414
|
+
*/
|
|
415
|
+
thenouidt: Int8 | null;
|
|
242
416
|
}
|
|
243
417
|
|
|
244
|
-
export interface
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
418
|
+
export interface DB {
|
|
419
|
+
etatquestion: Etatquestion;
|
|
420
|
+
legquestion: Legquestion;
|
|
421
|
+
naturequestion: Naturequestion;
|
|
422
|
+
sortquestion: Sortquestion;
|
|
423
|
+
tam_ministeres: TamMinisteres;
|
|
424
|
+
tam_questions: TamQuestions;
|
|
425
|
+
tam_reponses: TamReponses;
|
|
426
|
+
the: The;
|
|
249
427
|
}
|