@tricoteuses/senat 3.1.18 → 3.1.20

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.
Files changed (66) hide show
  1. package/lib/src/config.d.ts +0 -22
  2. package/lib/src/config.js +7 -17
  3. package/lib/src/conversion_textes.js +1 -5
  4. package/lib/src/databases.d.ts +2 -0
  5. package/lib/src/databases.js +26 -0
  6. package/lib/src/datasets.d.ts +0 -4
  7. package/lib/src/datasets.js +2 -16
  8. package/lib/src/git.d.ts +0 -1
  9. package/lib/src/git.js +11 -45
  10. package/lib/src/loaders.d.ts +12 -12
  11. package/lib/src/loaders.js +8 -14
  12. package/lib/src/model/agenda.d.ts +1 -1
  13. package/lib/src/model/agenda.js +3 -3
  14. package/lib/src/model/ameli.d.ts +52 -64
  15. package/lib/src/model/ameli.js +145 -147
  16. package/lib/src/model/commission.d.ts +4 -5
  17. package/lib/src/model/commission.js +6 -6
  18. package/lib/src/model/debats.d.ts +66 -38
  19. package/lib/src/model/debats.js +93 -110
  20. package/lib/src/model/documents.d.ts +12 -32
  21. package/lib/src/model/documents.js +130 -171
  22. package/lib/src/model/dosleg.d.ts +5 -142
  23. package/lib/src/model/dosleg.js +156 -298
  24. package/lib/src/model/index.d.ts +7 -7
  25. package/lib/src/model/index.js +7 -7
  26. package/lib/src/model/questions.d.ts +45 -54
  27. package/lib/src/model/questions.js +87 -89
  28. package/lib/src/model/scrutins.d.ts +13 -48
  29. package/lib/src/model/scrutins.js +111 -118
  30. package/lib/src/model/seance.d.ts +1 -1
  31. package/lib/src/model/seance.js +7 -7
  32. package/lib/src/model/sens.d.ts +179 -109
  33. package/lib/src/model/sens.js +484 -384
  34. package/lib/src/model/util.d.ts +8 -0
  35. package/lib/src/model/util.js +23 -0
  36. package/lib/src/raw_types/ameli.d.ts +800 -1648
  37. package/lib/src/raw_types/ameli.js +5 -1074
  38. package/lib/src/raw_types/debats.d.ts +180 -353
  39. package/lib/src/raw_types/debats.js +5 -266
  40. package/lib/src/raw_types/dosleg.d.ts +1523 -2858
  41. package/lib/src/raw_types/dosleg.js +5 -2005
  42. package/lib/src/raw_types/questions.d.ts +395 -671
  43. package/lib/src/raw_types/questions.js +5 -493
  44. package/lib/src/raw_types/senat.d.ts +11372 -0
  45. package/lib/src/raw_types/senat.js +5 -0
  46. package/lib/src/raw_types/sens.d.ts +8148 -7743
  47. package/lib/src/raw_types/sens.js +5 -4691
  48. package/lib/src/raw_types_schemats/ameli.d.ts +2 -4
  49. package/lib/src/raw_types_schemats/debats.d.ts +2 -2
  50. package/lib/src/raw_types_schemats/dosleg.d.ts +2 -2
  51. package/lib/src/raw_types_schemats/questions.d.ts +2 -2
  52. package/lib/src/raw_types_schemats/sens.d.ts +4235 -29
  53. package/lib/src/scripts/retrieve_videos.js +5 -1
  54. package/lib/src/scripts/test_iter_load.d.ts +1 -0
  55. package/lib/src/scripts/test_iter_load.js +12 -0
  56. package/lib/src/types/ameli.d.ts +4 -4
  57. package/lib/src/types/dosleg.d.ts +39 -39
  58. package/lib/src/types/questions.d.ts +2 -2
  59. package/lib/src/types/sens.d.ts +2 -0
  60. package/lib/src/types/texte.d.ts +2 -2
  61. package/lib/src/utils/reunion_odj_building.js +27 -11
  62. package/package.json +1 -1
  63. package/lib/src/databases_postgres.d.ts +0 -4
  64. package/lib/src/databases_postgres.js +0 -23
  65. package/lib/src/scripts/debug_dosleg_query.d.ts +0 -6
  66. package/lib/src/scripts/debug_dosleg_query.js +0 -50
@@ -1,112 +1,182 @@
1
- export interface FonctionRow {
2
- date_debut: string | null;
3
- date_fin: string | null;
4
- libelle: string | null;
5
- }
6
- export interface MandatSenateurRow {
7
- code_circonscription: string | null;
8
- date_debut: string | null;
9
- date_fin: string | null;
10
- etat: string | null;
11
- etat_debut: string | null;
12
- etat_fin: string | null;
13
- }
14
- export interface MandatOrganismeRow {
15
- code_organisme: string;
16
- date_debut: string | null;
17
- date_fin: string | null;
18
- etat: string | null;
19
- fonctions: FonctionRow[];
20
- libelle: string | null;
21
- type_code_organisme: string | null;
22
- type_organisme: string | null;
23
- }
24
- export interface AdressePointContactRow {
25
- bureau_distributeur: string | null;
26
- code_cedex: string | null;
27
- code_postal: string | null;
28
- commune: string | null;
29
- complement: string | null;
30
- complement2: string | null;
31
- libelle_cedex: string | null;
32
- nom_voie: string | null;
33
- numero_voie: string | null;
34
- }
35
- export interface TelephonePointContactRow {
36
- numero: string | null;
37
- type: string;
38
- }
39
- export interface PointContactRow {
40
- adresses: AdressePointContactRow[];
41
- id: string;
42
- libelle: string | null;
43
- telephones: TelephonePointContactRow[];
44
- type: string;
45
- }
46
- export interface UrlRow {
47
- code_url: string;
1
+ import { InferResult } from "kysely";
2
+ export type SenateurResult = InferResult<typeof findAllQuery>[0];
3
+ export type CirconscriptionResult = InferResult<typeof findAllCirconscriptionsQuery>[0];
4
+ export type OrganismeResult = InferResult<typeof findAllOrganismesQuery>[0];
5
+ declare const findAllQuery: import("kysely").SelectQueryBuilder<{
6
+ [x: string]: any;
7
+ [x: number]: any;
8
+ [x: symbol]: any;
9
+ }, "sen" | "etasen" | "pcs" | "pcs42" | "pcs24" | "pcs8" | "grppol" | "com", {
10
+ [x: string]: any;
11
+ date_naissance: string;
12
+ date_deces: string;
13
+ urls: {
14
+ code_url: any;
15
+ url: any;
16
+ }[];
17
+ mandats_senateur: {
18
+ [x: string]: any;
19
+ date_debut: string;
20
+ date_fin: string;
21
+ }[];
22
+ commissions: {
23
+ [x: string]: any;
24
+ date_debut: string;
25
+ date_fin: string;
26
+ fonctions: {
27
+ date_debut: string;
28
+ date_fin: string;
29
+ libelle: unknown;
30
+ }[];
31
+ }[];
32
+ delegations: {
33
+ [x: string]: any;
34
+ date_debut: string;
35
+ date_fin: string;
36
+ fonctions: {
37
+ date_debut: string;
38
+ date_fin: string;
39
+ libelle: unknown;
40
+ }[];
41
+ }[];
42
+ groupes: {
43
+ [x: string]: any;
44
+ date_debut: string;
45
+ date_fin: string;
46
+ fonctions: {
47
+ date_debut: string;
48
+ date_fin: string;
49
+ libelle: unknown;
50
+ }[];
51
+ }[];
52
+ fonctions_bureau: {
53
+ date_debut: string;
54
+ date_fin: string;
55
+ libelle: unknown;
56
+ }[];
57
+ points_contact: {
58
+ [x: string]: any;
59
+ adresses: {
60
+ numero_voie: any;
61
+ nom_voie: any;
62
+ complement: any;
63
+ complement2: any;
64
+ code_postal: any;
65
+ commune: any;
66
+ code_cedex: any;
67
+ libelle_cedex: any;
68
+ bureau_distributeur: any;
69
+ }[];
70
+ telephones: {
71
+ type: any;
72
+ numero: any;
73
+ }[];
74
+ }[];
75
+ }>;
76
+ declare const findAllCirconscriptionsQuery: import("kysely").SelectQueryBuilder<{
77
+ [x: string]: any;
78
+ [x: number]: any;
79
+ [x: symbol]: any;
80
+ }, "dpt" | "reg", {
81
+ [x: string]: any;
82
+ date_debut: string;
83
+ date_fin: string;
84
+ }>;
85
+ declare const findAllOrganismesQuery: import("kysely").SelectQueryBuilder<{
86
+ [x: string]: any;
87
+ [x: number]: any;
88
+ [x: symbol]: any;
89
+ }, "typorg" | "all_organismes", {
90
+ [x: string]: any;
48
91
  url: string;
49
- }
50
- export interface SenateurResult {
51
- PCS_INSEE: string | null;
52
- PCS_INSEE_24: string | null;
53
- PCS_INSEE_42: string | null;
54
- PCS_INSEE_8: string | null;
55
- circonscription: string | null;
56
- code_circonscription: string | null;
57
- code_commission_permanente: string | null;
58
- code_groupe_politique: string | null;
59
- commission_permanente: string | null;
60
- commissions: MandatOrganismeRow[];
61
- courrier_electronique: string | null;
62
- date_deces: string | null;
63
- date_naissance: string | null;
64
- delegations: MandatOrganismeRow[];
65
- description_profession: string | null;
66
- etat: string;
67
- fonction_bureau_senat: string | null;
68
- fonctions_bureau: FonctionRow[];
69
- groupe_politique: string | null;
70
- groupes: MandatOrganismeRow[];
71
- mandats_senateur: MandatSenateurRow[];
72
- matricule: string;
73
- nom_usuel: string | null;
74
- points_contact: PointContactRow[];
75
- prenom_usuel: string;
76
- qualite: string;
77
- siege: string | null;
78
- url_hatvp: string | null;
79
- urls: UrlRow[];
80
- }
81
- export interface CirconscriptionResult {
82
- article: string | null;
83
- code: string;
84
- date_debut: string | null;
85
- date_fin: string | null;
86
- etat: string | null;
87
- identifiant: string;
88
- libelle_departement: string;
89
- libelle_region: string;
90
- nombre_senateurs: string | null;
91
- url: string | null;
92
- }
93
- export interface OrganismeResult {
94
- code: string;
95
- date_debut: string | null;
96
- date_fin: string | null;
97
- etat: string | null;
98
- libelle: string | null;
99
- libelle_court: string | null;
100
- libelle_long: string | null;
101
- type_code: string;
102
- type_libelle: string | null;
103
- url: string | null;
104
- }
105
- export declare function findAll(): AsyncGenerator<SenateurResult, void, unknown>;
106
- export declare function findAllCirconscriptions(): AsyncGenerator<CirconscriptionResult, void, unknown>;
107
- export declare function findAllOrganismes(): AsyncGenerator<OrganismeResult, void, unknown>;
108
- export declare function findActif(): AsyncGenerator<{
92
+ date_debut: string;
93
+ date_fin: string;
94
+ libelle_long: string;
95
+ type_libelle: string;
96
+ }>;
97
+ export declare function findAll(): AsyncIterableIterator<{
98
+ [x: string]: any;
99
+ date_naissance: string;
100
+ date_deces: string;
101
+ urls: {
102
+ code_url: any;
103
+ url: any;
104
+ }[];
105
+ mandats_senateur: {
106
+ [x: string]: any;
107
+ date_debut: string;
108
+ date_fin: string;
109
+ }[];
110
+ commissions: {
111
+ [x: string]: any;
112
+ date_debut: string;
113
+ date_fin: string;
114
+ fonctions: {
115
+ date_debut: string;
116
+ date_fin: string;
117
+ libelle: unknown;
118
+ }[];
119
+ }[];
120
+ delegations: {
121
+ [x: string]: any;
122
+ date_debut: string;
123
+ date_fin: string;
124
+ fonctions: {
125
+ date_debut: string;
126
+ date_fin: string;
127
+ libelle: unknown;
128
+ }[];
129
+ }[];
130
+ groupes: {
131
+ [x: string]: any;
132
+ date_debut: string;
133
+ date_fin: string;
134
+ fonctions: {
135
+ date_debut: string;
136
+ date_fin: string;
137
+ libelle: unknown;
138
+ }[];
139
+ }[];
140
+ fonctions_bureau: {
141
+ date_debut: string;
142
+ date_fin: string;
143
+ libelle: unknown;
144
+ }[];
145
+ points_contact: {
146
+ [x: string]: any;
147
+ adresses: {
148
+ numero_voie: any;
149
+ nom_voie: any;
150
+ complement: any;
151
+ complement2: any;
152
+ code_postal: any;
153
+ commune: any;
154
+ code_cedex: any;
155
+ libelle_cedex: any;
156
+ bureau_distributeur: any;
157
+ }[];
158
+ telephones: {
159
+ type: any;
160
+ numero: any;
161
+ }[];
162
+ }[];
163
+ }>;
164
+ export declare function findAllCirconscriptions(): AsyncIterableIterator<{
165
+ [x: string]: any;
166
+ date_debut: string;
167
+ date_fin: string;
168
+ }>;
169
+ export declare function findAllOrganismes(): AsyncIterableIterator<{
170
+ [x: string]: any;
171
+ url: string;
172
+ date_debut: string;
173
+ date_fin: string;
174
+ libelle_long: string;
175
+ type_libelle: string;
176
+ }>;
177
+ export declare function findActif(): AsyncIterableIterator<{
109
178
  senmat: string;
110
- sennomuse: string | null;
179
+ sennomuse: string;
111
180
  senprenomuse: string;
112
- }, void, unknown>;
181
+ }>;
182
+ export {};