@tricoteuses/assemblee 2.5.31 → 3.0.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.
Files changed (94) hide show
  1. package/LICENSE.md +16 -6
  2. package/README.md +1 -19
  3. package/lib/amendements-CXmsqoof.js +170 -0
  4. package/lib/amendements-CZHXlq07.js +4198 -0
  5. package/lib/cleaners/acteurs.d.ts +2 -1
  6. package/lib/cleaners/amendements.d.ts +2 -1
  7. package/lib/cleaners/debats.d.ts +2 -1
  8. package/lib/cleaners/documents.d.ts +2 -1
  9. package/lib/cleaners/dossiers_legislatifs.d.ts +2 -1
  10. package/lib/cleaners/organes.d.ts +2 -1
  11. package/lib/cleaners/questions.d.ts +2 -1
  12. package/lib/cleaners/reunions.d.ts +2 -1
  13. package/lib/cleaners/scrutins.d.ts +2 -1
  14. package/lib/cleaners/xml.d.ts +5 -5
  15. package/lib/cleaners.js +186 -179
  16. package/lib/datasets.d.ts +5 -7
  17. package/lib/dossiers_legislatifs.d.ts +5 -2
  18. package/lib/file_systems.d.ts +9 -4
  19. package/lib/index.d.ts +24 -19
  20. package/lib/index.js +390 -1234
  21. package/lib/inserters.d.ts +466 -9
  22. package/lib/loaders.d.ts +13 -12
  23. package/lib/loaders.js +1900 -538
  24. package/lib/organes.d.ts +1 -1
  25. package/lib/parsers/compte_rendu.d.ts +2 -1
  26. package/lib/parsers/compte_rendu_commission.d.ts +1 -1
  27. package/lib/parsers/recherche_amendements.d.ts +2 -2
  28. package/lib/parsers/textes_lois.d.ts +1 -1
  29. package/lib/parsers.js +2109 -2075
  30. package/lib/questions-DTO3nK5V.js +2777 -0
  31. package/lib/questions-DXAzvI1T.js +230 -0
  32. package/lib/registries.d.ts +112 -0
  33. package/lib/schemas/clean/acteurs_et_organes.d.ts +2377 -0
  34. package/lib/schemas/clean/agendas.d.ts +830 -0
  35. package/lib/schemas/clean/amendements.d.ts +2305 -0
  36. package/lib/schemas/clean/debats.d.ts +300 -0
  37. package/lib/schemas/clean/dossiers_legislatifs.d.ts +1365 -0
  38. package/lib/schemas/clean/questions.d.ts +625 -0
  39. package/lib/schemas/clean/scrutins.d.ts +1137 -0
  40. package/lib/schemas/enriched/acteurs_et_organes.d.ts +112 -0
  41. package/lib/schemas/enriched/agendas.d.ts +501 -0
  42. package/lib/schemas/enriched/amendements.d.ts +1230 -0
  43. package/lib/schemas/enriched/debats.d.ts +308 -0
  44. package/lib/schemas/enriched/dossiers_legislatifs.d.ts +1131 -0
  45. package/lib/schemas/enriched/questions.d.ts +589 -0
  46. package/lib/schemas/enriched/scrutins.d.ts +1094 -0
  47. package/lib/schemas/raw/acteurs_et_organes.d.ts +5870 -0
  48. package/lib/schemas/raw/agendas.d.ts +1734 -0
  49. package/lib/schemas/raw/amendements.d.ts +4758 -0
  50. package/lib/schemas/raw/debats.d.ts +410 -0
  51. package/lib/schemas/raw/dossiers_legislatifs.d.ts +3252 -0
  52. package/lib/schemas/raw/questions.d.ts +983 -0
  53. package/lib/schemas/raw/scrutins.d.ts +2763 -0
  54. package/lib/scripts/retrieve_deputes_photos.d.ts +58 -4
  55. package/lib/scripts/retrieve_documents.d.ts +100 -12
  56. package/lib/scripts/retrieve_open_data.d.ts +75 -4
  57. package/lib/scripts/retrieve_videos.d.ts +1 -1
  58. package/lib/scripts/shared/cli_helpers.d.ts +103 -77
  59. package/lib/scripts/shared/photos.d.ts +106 -0
  60. package/lib/scripts/shared/utils.d.ts +4 -1
  61. package/lib/urls.d.ts +2 -2
  62. package/package.json +16 -12
  63. package/lib/amendements-40Z7OJLT.js +0 -682
  64. package/lib/amendements-J6Sx61n8.js +0 -154
  65. package/lib/datasets-Cb3wpfRH.js +0 -3580
  66. package/lib/parse-Ccs6wcUg.js +0 -2512
  67. package/lib/raw_types/acteurs_et_organes.d.ts +0 -464
  68. package/lib/raw_types/agendas.d.ts +0 -265
  69. package/lib/raw_types/amendements.d.ts +0 -365
  70. package/lib/raw_types/debats.d.ts +0 -140
  71. package/lib/raw_types/dossiers_legislatifs.d.ts +0 -567
  72. package/lib/raw_types/questions.d.ts +0 -115
  73. package/lib/raw_types/scrutins.d.ts +0 -187
  74. package/lib/schemas/acteurs_et_organes.json +0 -1167
  75. package/lib/schemas/agendas.json +0 -1757
  76. package/lib/schemas/amendements.json +0 -2087
  77. package/lib/schemas/compte_rendu_commission/CompteRenduCommission.json +0 -63
  78. package/lib/schemas/debats.json +0 -847
  79. package/lib/schemas/dossiers_legislatifs.json +0 -3884
  80. package/lib/schemas/legislatures.json +0 -17
  81. package/lib/schemas/questions.json +0 -711
  82. package/lib/schemas/scrutins.json +0 -701
  83. package/lib/scripts/copy-schemas.d.ts +0 -1
  84. package/lib/scripts/generate-json-schemas.d.ts +0 -1
  85. package/lib/shared_types/acteurs_et_organes.d.ts +0 -149
  86. package/lib/shared_types/dossiers_legislatifs.d.ts +0 -222
  87. package/lib/types/acteurs_et_organes.d.ts +0 -598
  88. package/lib/types/agendas.d.ts +0 -442
  89. package/lib/types/amendements.d.ts +0 -615
  90. package/lib/types/debats.d.ts +0 -186
  91. package/lib/types/dossiers_legislatifs.d.ts +0 -826
  92. package/lib/types/questions.d.ts +0 -203
  93. package/lib/types/scrutins.d.ts +0 -254
  94. /package/lib/{types/legislatures.d.ts → legislatures.d.ts} +0 -0
@@ -1,203 +0,0 @@
1
- export interface Questions {
2
- questions: Question[];
3
- }
4
- /**
5
- * Question.
6
- *
7
- * Questions écrites ou question au gouvernement posées par les députés.
8
- */
9
- export interface Question {
10
- schemaVersion?: string;
11
- /**
12
- * Type de question (QuestionEcrite_Type, QuestionGouvernement_Type, QuestionOrale_Type).
13
- */
14
- "@xsi:type": QuestionXsiType;
15
- /**
16
- * Identifiant unique.
17
- */
18
- uid: string;
19
- identifiant: Identifiant;
20
- /**
21
- * Type de question abrégé (QE, QG, QOSD).
22
- */
23
- type: TypeQuestion;
24
- indexationAN: IndexationAn;
25
- auteur: AuteurQuestion;
26
- minInt: Groupe;
27
- minAttribs: MinAttribs;
28
- textesQuestion?: TextesQuestion | null;
29
- textesReponse?: TextesReponse | null;
30
- cloture?: Cloture | null;
31
- signalement?: Signalement | null;
32
- renouvellements?: Renouvellements | null;
33
- }
34
- export declare enum QuestionXsiType {
35
- QuestionEcrite = "QuestionEcrite_Type",
36
- QuestionGouvernement = "QuestionGouvernement_Type",
37
- QuestionOrale = "QuestionOrale_Type"
38
- }
39
- /**
40
- * Auteur d'une question.
41
- */
42
- export interface AuteurQuestion {
43
- /**
44
- * Identité de l'auteur.
45
- */
46
- identite: IdentiteAuteurQuestion;
47
- /**
48
- * Groupe politique de l'auteur.
49
- */
50
- groupe: Groupe;
51
- }
52
- /**
53
- * Groupe politique de l'auteur.
54
- */
55
- export interface Groupe {
56
- /**
57
- * Identifiant unique de l'{@link Organe | organe}
58
- */
59
- organeRef: string;
60
- abrege: string;
61
- developpe: string;
62
- }
63
- /**
64
- * Identité de l'auteur.
65
- */
66
- export interface IdentiteAuteurQuestion {
67
- /**
68
- * Identifiant unique de l'{@link Acteur | acteur}
69
- */
70
- acteurRef: string;
71
- /**
72
- * Identifiant unique du {@link Mandat | mandat}
73
- */
74
- mandatRef: string;
75
- }
76
- /**
77
- * Champs liés à la cloture de la question.
78
- */
79
- export interface Cloture {
80
- /**
81
- * Code de la clôture.
82
- */
83
- codeCloture: string;
84
- /**
85
- * Libellé de la clôture.
86
- */
87
- libelleCloture: string;
88
- /**
89
- * Date de clôture.
90
- */
91
- dateCloture: Date | null;
92
- /**
93
- * Informations Journal Officiel liées à la clôture.
94
- */
95
- infoJO: InfoJoQuestion | null;
96
- }
97
- /**
98
- * TypeQuestion de Journal Officiel.
99
- */
100
- export declare enum TypeJoQuestion {
101
- JoQuestion = "JO_QUESTION",
102
- JoLoiDecret = "JO_LOI_DECRET",
103
- JoDebate = "JO_DEBAT"
104
- }
105
- export interface Identifiant {
106
- numero: string;
107
- regime: string;
108
- legislature: string;
109
- }
110
- export interface IndexationAn {
111
- rubrique: string | null;
112
- teteAnalyse: null;
113
- analyses: Analyse;
114
- }
115
- export interface Analyse {
116
- analyse: string | null;
117
- }
118
- export interface MinAttribs {
119
- minAttrib: MinAttribElement[] | MinAttribElement;
120
- }
121
- /**
122
- * MinAttribElement.
123
- */
124
- export interface MinAttribElement {
125
- infoJO: InfoJoQuestion;
126
- denomination: Groupe;
127
- }
128
- export interface TextesQuestion {
129
- texteQuestion: TexteQuestion[] | TexteQuestion;
130
- }
131
- /**
132
- * Contenu de la question ou de la réponse.
133
- */
134
- export interface TexteQuestion {
135
- infoJO: InfoJoQuestion;
136
- texte: string | null;
137
- erratum?: string;
138
- }
139
- /**
140
- * Champs liés à la publication d'un texte promulgué au journal officiel.
141
- */
142
- export interface InfoJoQuestion {
143
- /**
144
- * Type de Journal Officiel.
145
- */
146
- typeJO: TypeJoQuestion | null;
147
- /**
148
- * Date de publication au Journal Officiel.
149
- */
150
- dateJO: Date;
151
- /**
152
- * Page du Journal Officiel.
153
- */
154
- pageJO: string | null;
155
- /**
156
- * Numéro du Journal Officiel.
157
- */
158
- numJO: string | null;
159
- /**
160
- * URL du texte promulgué sur le site https://www.legifrance.gouv.fr/
161
- */
162
- urlLegifrance: string | null;
163
- /**
164
- * Numéro {@link https://fr.wikipedia.org/wiki/Syst%C3%A8me_NOR | NOR} attribué au texte promulgué.
165
- */
166
- referenceNOR: string | null;
167
- }
168
- export interface TextesReponse {
169
- texteReponse: TexteQuestion[] | TexteQuestion;
170
- }
171
- /**
172
- * Signalement.
173
- */
174
- export interface Signalement {
175
- /**
176
- * Date de dépôt du signalement.
177
- */
178
- dateDepotSignal: string;
179
- /**
180
- * Informations Journal Officiel du signalement.
181
- */
182
- infoJO: InfoJoQuestion;
183
- }
184
- export interface Renouvellements {
185
- renouvellement: Renouvellement[] | Renouvellement;
186
- }
187
- /**
188
- * Renouvellement.
189
- */
190
- export interface Renouvellement {
191
- infoJO: InfoJoQuestion;
192
- }
193
- export declare enum TypeQuestion {
194
- Qe = "QE",
195
- Qg = "QG",
196
- Qosd = "QOSD"
197
- }
198
- export declare class Convert {
199
- static toQuestions(json: string): Questions;
200
- static questionsToJson(value: Questions): string;
201
- static toQuestion(json: string): Question;
202
- static questionToJson(value: Question): string;
203
- }
@@ -1,254 +0,0 @@
1
- export interface Scrutins {
2
- scrutins: Scrutin[];
3
- }
4
- /**
5
- * Scrutin
6
- *
7
- * Les positions de vote (pour, contre ou abstention) de chaque député pour les {@link https://www.vie-publique.fr/fiches/19498-comment-votent-les-parlementaires | scrutins solennels}, les déclarations du Gouvernement, les motions de procédure et les autres scrutins publics.
8
- */
9
- export interface Scrutin {
10
- schemaVersion?: string;
11
- /**
12
- * Identifiant unique.
13
- */
14
- uid: string;
15
- /**
16
- * Numéro unique du vote, relativement à la législature, débutant par 1 et par incrément de 1. On le retrouve aussi à la fin de l'identifiant unique du vote (uid).
17
- */
18
- numero: string;
19
- /**
20
- * L'identifiant unique (uid) de l'{@link Organe | organe} au sein duquel se déroule le vote. Il s'agit toujours de l'Assemblée Nationale mais son uid varie en fonction de la législature.
21
- */
22
- organeRef: string;
23
- /**
24
- * Numéro de {@link https://fr.wikipedia.org/wiki/Liste_des_l%C3%A9gislatures_fran%C3%A7aises | la législature} sous laquelle a été créé le scrutin. Nombre entier.
25
- */
26
- legislature: string;
27
- /**
28
- * Le contenu de ce champ n'est pas défini.
29
- */
30
- sessionRef: string;
31
- /**
32
- * Identifiant unique (uid) de l'entrée de l'{@link Reunion | agenda} correspondant au moment ou le vote a lieu.
33
- */
34
- seanceRef: string;
35
- /**
36
- * Date à laquelle le vote a eu lieu.
37
- */
38
- dateScrutin: Date;
39
- /**
40
- * Numéro de la séance dans la journée.
41
- */
42
- quantiemeJourSeance: string;
43
- /**
44
- * Type de vote: MOC pour motion de censure, SAT pour scrutin à la tribune, SPO pour scrutin public ordinaire, SPS pour scrutin public solennel et SSG pour scrutin solennel congrès
45
- */
46
- typeVote: TypeVote;
47
- /**
48
- * Résultat du vote (adopté ou non).
49
- */
50
- sort: SortScrutin;
51
- /**
52
- * Objet du vote.
53
- */
54
- titre: string;
55
- /**
56
- * L'{@link Acteur | acteur} ou l'{@link Organe | organe} qui {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/les-votes-a-l-assemblee-nationale | demande le vote}. C'est un texte libre destiné à l'affichage.
57
- */
58
- demandeur: Demandeur;
59
- /**
60
- * Objet du vote, toujours identique au champ titre.
61
- */
62
- objet: ObjetVote;
63
- /**
64
- * La signification de ce champ n'est pas définie.
65
- */
66
- modePublicationDesVotes: ModePublicationDesVotes;
67
- /**
68
- * Résultat du vote (adopté ou non) et le décompte des voix.
69
- */
70
- syntheseVote: SyntheseVote;
71
- ventilationVotes: VentilationVotes;
72
- miseAuPoint?: MiseAuPoint;
73
- lieuVote?: LieuVote;
74
- }
75
- /**
76
- * L'{@link Acteur | acteur} ou l'{@link Organe | organe} qui {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/les-votes-a-l-assemblee-nationale | demande le vote}. C'est un texte libre destiné à l'affichage.
77
- */
78
- export interface Demandeur {
79
- texte?: string;
80
- }
81
- export interface MiseAuPoint {
82
- nonVotants?: Votant[];
83
- pour?: Votant[];
84
- contre?: Votant[];
85
- abstentions?: Votant[];
86
- nonVotantsVolontaires?: Votant[];
87
- dysfonctionnement?: Dysfonctionnement;
88
- }
89
- export interface Dysfonctionnement {
90
- nonVotants?: Votant[];
91
- pour?: Votant[];
92
- contre?: Votant[];
93
- abstentions?: Votant[];
94
- nonVotantsVolontaires?: Votant[];
95
- }
96
- /**
97
- * La signification de ce champ n'est pas définie.
98
- */
99
- export declare enum ModePublicationDesVotes {
100
- DecompteDissidentsPositionGroupe = "DecompteDissidentsPositionGroupe",
101
- DecompteNominatif = "DecompteNominatif"
102
- }
103
- /**
104
- * Objet du vote, toujours identique au champ titre.
105
- */
106
- export interface ObjetVote {
107
- libelle: string;
108
- }
109
- /**
110
- * Résultat du vote (adopté ou non).
111
- */
112
- export interface SortScrutin {
113
- code: CodeSortScrutin;
114
- libelle: LibelleSortScrutin;
115
- }
116
- export declare enum CodeSortScrutin {
117
- Adopté = "adopt\u00E9",
118
- Rejeté = "rejet\u00E9"
119
- }
120
- export declare enum LibelleSortScrutin {
121
- LAssembléeNationaleAAdopté = "l'Assembl\u00E9e nationale a adopt\u00E9",
122
- LAssembléeNationaleNAPasAdopté = "L'Assembl\u00E9e nationale n'a pas adopt\u00E9",
123
- LeCongrèsDuParlementAAdopté = "Le Congr\u00E8s du Parlement a adopt\u00E9",
124
- LeCongrèsDuParlementNAPasAdopté = "Le Congr\u00E8s du Parlement n'a pas adopt\u00E9"
125
- }
126
- /**
127
- * Résultat du vote (adopté ou non) et le décompte des voix.
128
- */
129
- export interface SyntheseVote {
130
- /**
131
- * Nombre de votants, c'est à dire de {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/les-votes-a-l-assemblee-nationale | sièges occupés dans l'hémicycle}.
132
- */
133
- nombreVotants: string;
134
- /**
135
- * Nombre de suffrages exprimés.
136
- */
137
- suffragesExprimes: string;
138
- /**
139
- * Nombre de suffrages requis, le {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/les-votes-a-l-assemblee-nationale | cas échéant}.
140
- */
141
- nbrSuffragesRequis: string;
142
- annonce: LibelleSortScrutin;
143
- decompte: DecompteVoix;
144
- }
145
- /**
146
- * Type de vote: MOC pour motion de censure, SAT pour scrutin à la tribune, SPO pour scrutin public ordinaire, SPS pour scrutin public solennel et SSG pour scrutin solennel congrès
147
- */
148
- export interface TypeVote {
149
- codeTypeVote: CodeTypeVote;
150
- libelleTypeVote: LibelleTypeVote;
151
- /**
152
- * La signification de ce champ n'est pas définie.
153
- */
154
- typeMajorite: TypeMajorite;
155
- }
156
- export declare enum CodeTypeVote {
157
- Moc = "MOC",
158
- Sat = "SAT",
159
- Spo = "SPO",
160
- Sps = "SPS",
161
- Ssg = "SSG"
162
- }
163
- export declare enum LibelleTypeVote {
164
- MotionDeCensure = "motion de censure",
165
- ScrutinPublicOrdinaire = "scrutin public ordinaire",
166
- ScrutinPublicSolennel = "scrutin public solennel",
167
- ScrutinÀLaTribune = "scrutin \u00E0 la tribune",
168
- ScrutinSolennelCongrès = "Scrutin solennel congr\u00E8s"
169
- }
170
- /**
171
- * La signification de ce champ n'est pas définie.
172
- */
173
- export declare enum TypeMajorite {
174
- MajoritéAbsolueDesSuffragesExprimés = "Majorit\u00E9 absolue des suffrages exprim\u00E9s",
175
- majoritéAbsolueDesSuffragesExprimés = "majorit\u00E9 absolue des suffrages exprim\u00E9s",
176
- majoritéDesMembresComposantLAssembléeNationale = "majorit\u00E9 des membres composant l'Assembl\u00E9e nationale",
177
- majoritéDesMembresComposantsComposantLAssemblée = "majorit\u00E9 des membres composants composant l'Assembl\u00E9e",
178
- majoritéDesMembresComposantsComposantLAssembléeNationale = "majorit\u00E9 des membres composants composant l'Assembl\u00E9e nationale",
179
- MajoritéRequisePourUnCongrès = "Majorit\u00E9 requise pour un Congr\u00E8s",
180
- MajoritéRequisePourUneMotionDeCensure = "Majorit\u00E9 requise pour une motion de censure"
181
- }
182
- export interface VentilationVotes {
183
- organeRef: string;
184
- groupes: VentilationVotesGroupe[];
185
- }
186
- export interface VentilationVotesGroupe {
187
- organeRef: string;
188
- nombreMembresGroupe: string;
189
- vote: Vote;
190
- }
191
- export interface Vote {
192
- positionMajoritaire: PositionMajoritaire;
193
- decompteVoix: DecompteVoix;
194
- decompteNominatif: DecompteNominatif;
195
- }
196
- export interface DecompteNominatif {
197
- nonVotants?: Votant[];
198
- pour?: Votant[];
199
- contre?: Votant[];
200
- abstentions?: Votant[];
201
- }
202
- export interface Votant {
203
- acteurRef: string;
204
- mandatRef: string;
205
- parDelegation?: boolean;
206
- numPlace?: number;
207
- causePositionVote?: CausePositionVote;
208
- }
209
- export declare enum CausePositionVote {
210
- Mg = "MG",
211
- Pan = "PAN",
212
- Pse = "PSE"
213
- }
214
- /**
215
- * Decompte des voix
216
- */
217
- export interface DecompteVoix {
218
- /**
219
- * Nombre total de votes contre.
220
- */
221
- pour: string;
222
- /**
223
- * Nombre total de votes contre.
224
- */
225
- contre: string;
226
- /**
227
- * Nombre total de non votants
228
- */
229
- nonVotants?: string;
230
- /**
231
- * Nombre total d'abstentions.
232
- */
233
- abstentions?: string;
234
- /**
235
- * Nombre total de non votants volontaires.
236
- */
237
- nonVotantsVolontaires?: string;
238
- }
239
- export declare enum PositionMajoritaire {
240
- Abstention = "abstention",
241
- Contre = "contre",
242
- Pour = "pour"
243
- }
244
- export declare enum LieuVote {
245
- Congrès = "Congr\u00E8s",
246
- Hémicycle = "H\u00E9micycle",
247
- Salons = "Salons"
248
- }
249
- export declare class Convert {
250
- static toScrutins(json: string): Scrutins;
251
- static scrutinsToJson(value: Scrutins): string;
252
- static toScrutin(json: string): Scrutin;
253
- static scrutinToJson(value: Scrutin): string;
254
- }