@tricoteuses/assemblee 0.25.3 → 0.26.2
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 +5 -3
- package/lib/bugs/acteur-00010.js +3 -3
- package/lib/bugs/agenda-00002.js +3 -3
- package/lib/bugs/agenda-00008.js +3 -3
- package/lib/bugs/agenda-00011.js +3 -3
- package/lib/bugs.js +2 -2
- package/lib/cleaners/acteurs.js +39 -2
- package/lib/cleaners/acteurs.mjs +25 -1
- package/lib/cleaners/documents.js +3 -1
- package/lib/cleaners/documents.mjs +3 -1
- package/lib/cleaners/organes.js +19 -2
- package/lib/cleaners/organes.mjs +18 -1
- package/lib/cleaners/reunions.js +1 -1
- package/lib/file_systems.js +7 -3
- package/lib/parsers/documents.js +2 -2
- package/lib/parsers/documents.mjs +2 -2
- package/lib/parsers/recherche_amendements.js +2 -2
- package/lib/raw_types/acteurs_et_organes.d.ts +181 -13
- package/lib/raw_types/acteurs_et_organes.js +327 -60
- package/lib/raw_types/acteurs_et_organes.mjs +318 -55
- package/lib/raw_types/agendas.d.ts +3 -1
- package/lib/raw_types/agendas.js +7 -5
- package/lib/raw_types/agendas.mjs +5 -3
- package/lib/raw_types/amendements.d.ts +2 -2
- package/lib/raw_types/amendements.js +5 -5
- package/lib/raw_types/amendements.mjs +3 -3
- package/lib/raw_types/dossiers_legislatifs.d.ts +77 -435
- package/lib/raw_types/dossiers_legislatifs.js +294 -1439
- package/lib/raw_types/dossiers_legislatifs.mjs +290 -1432
- package/lib/raw_types/scrutins.js +2 -2
- package/lib/scripts/bugs_helper.js +2 -2
- package/lib/scripts/clean_data.js +2 -2
- package/lib/scripts/clean_data.mjs +2 -2
- package/lib/scripts/clean_reorganized_data.js +1 -1
- package/lib/scripts/document_dossiers_legislatifs.js +10 -10
- package/lib/scripts/reorganize_data.js +195 -136
- package/lib/scripts/reorganize_data.mjs +46 -2
- package/lib/scripts/retrieve_documents.js +2 -2
- package/lib/scripts/retrieve_open_data.js +2 -2
- package/lib/scripts/retrieve_open_data.mjs +2 -2
- package/lib/scripts/retrieve_pending_amendments.js +2 -2
- package/lib/scripts/retrieve_textes_lois.js +2 -2
- package/lib/scripts/test_load.js +2 -2
- package/lib/scripts/test_load.mjs +2 -2
- package/lib/scripts/test_load_big_files.js +2 -2
- package/lib/scripts/test_load_big_files.mjs +2 -2
- package/lib/scripts/validate_json.js +2 -2
- package/lib/shared_types/codes_actes.js +3 -3
- package/lib/shared_types/codes_actes.mjs +1 -1
- package/lib/types/acteurs_et_organes.d.ts +48 -27
- package/lib/types/acteurs_et_organes.js +132 -39
- package/lib/types/acteurs_et_organes.mjs +128 -35
- package/lib/types/agendas.js +2 -2
- package/lib/types/amendements.js +2 -2
- package/lib/types/dossiers_legislatifs.d.ts +2 -0
- package/lib/types/dossiers_legislatifs.js +11 -3
- package/lib/types/dossiers_legislatifs.mjs +9 -1
- package/lib/types/scrutins.js +2 -2
- package/package.json +7 -7
|
@@ -43,9 +43,123 @@ export declare enum Civ {
|
|
|
43
43
|
export interface PurpleInfoNaissance {
|
|
44
44
|
dateNais: UriHatvpClass | Date | null;
|
|
45
45
|
villeNais: UriHatvpClass | null | string;
|
|
46
|
-
depNais: UriHatvpClass |
|
|
46
|
+
depNais: UriHatvpClass | DepNais | null;
|
|
47
47
|
paysNais: UriHatvpClass | PaysNaisEnum | null;
|
|
48
48
|
}
|
|
49
|
+
export declare enum DepNais {
|
|
50
|
+
Ain = "Ain",
|
|
51
|
+
Aisne = "Aisne",
|
|
52
|
+
Allier = "Allier",
|
|
53
|
+
AlpesDeHauteProvence = "Alpes-de-Haute-Provence",
|
|
54
|
+
AlpesMaritimes = "Alpes-Maritimes",
|
|
55
|
+
Ardennes = "Ardennes",
|
|
56
|
+
Ardèche = "Ard\u00E8che",
|
|
57
|
+
Ariège = "Ari\u00E8ge",
|
|
58
|
+
Aube = "Aube",
|
|
59
|
+
Aude = "Aude",
|
|
60
|
+
Aveyron = "Aveyron",
|
|
61
|
+
BasRhin = "Bas-Rhin",
|
|
62
|
+
BouchesDuRhône = "Bouches-du-Rh\u00F4ne",
|
|
63
|
+
Calvados = "Calvados",
|
|
64
|
+
Cantal = "Cantal",
|
|
65
|
+
Charente = "Charente",
|
|
66
|
+
CharenteMaritime = "Charente-Maritime",
|
|
67
|
+
Cher = "Cher",
|
|
68
|
+
Comores = "Comores",
|
|
69
|
+
Corrèze = "Corr\u00E8ze",
|
|
70
|
+
Corse = "Corse",
|
|
71
|
+
CorseDuSud = "Corse-du-Sud",
|
|
72
|
+
Creuse = "Creuse",
|
|
73
|
+
CôteDOr = "C\u00F4te-d'Or",
|
|
74
|
+
CôtesDArmor = "C\u00F4tes-d'Armor",
|
|
75
|
+
CôtesDuNord = "C\u00F4tes-du-Nord",
|
|
76
|
+
DeuxSèvres = "Deux-S\u00E8vres",
|
|
77
|
+
Dordogne = "Dordogne",
|
|
78
|
+
Doubs = "Doubs",
|
|
79
|
+
Drôme = "Dr\u00F4me",
|
|
80
|
+
Essonne = "Essonne",
|
|
81
|
+
Eure = "Eure",
|
|
82
|
+
EureEtLoir = "Eure-et-Loir",
|
|
83
|
+
Finistère = "Finist\u00E8re",
|
|
84
|
+
FrançaisÉtablisHorsDeFrance = "Fran\u00E7ais \u00E9tablis hors de France",
|
|
85
|
+
Gard = "Gard",
|
|
86
|
+
Gers = "Gers",
|
|
87
|
+
Gironde = "Gironde",
|
|
88
|
+
Guadeloupe = "Guadeloupe",
|
|
89
|
+
Guyane = "Guyane",
|
|
90
|
+
HautRhin = "Haut-Rhin",
|
|
91
|
+
HauteCorse = "Haute-Corse",
|
|
92
|
+
HauteGaronne = "Haute-Garonne",
|
|
93
|
+
HauteLoire = "Haute-Loire",
|
|
94
|
+
HauteMarne = "Haute-Marne",
|
|
95
|
+
HauteSavoie = "Haute-Savoie",
|
|
96
|
+
HauteSaône = "Haute-Sa\u00F4ne",
|
|
97
|
+
HauteVienne = "Haute-Vienne",
|
|
98
|
+
HautesAlpes = "Hautes-Alpes",
|
|
99
|
+
HautesPyrénées = "Hautes-Pyr\u00E9n\u00E9es",
|
|
100
|
+
HautsDeSeine = "Hauts-de-Seine",
|
|
101
|
+
Hérault = "H\u00E9rault",
|
|
102
|
+
IlleEtVilaine = "Ille-et-Vilaine",
|
|
103
|
+
Indre = "Indre",
|
|
104
|
+
IndreEtLoire = "Indre-et-Loire",
|
|
105
|
+
Isère = "Is\u00E8re",
|
|
106
|
+
Jura = "Jura",
|
|
107
|
+
Landes = "Landes",
|
|
108
|
+
LoirEtCher = "Loir-et-Cher",
|
|
109
|
+
Loire = "Loire",
|
|
110
|
+
LoireAtlantique = "Loire-Atlantique",
|
|
111
|
+
Loiret = "Loiret",
|
|
112
|
+
Lot = "Lot",
|
|
113
|
+
LotEtGaronne = "Lot-et-Garonne",
|
|
114
|
+
Lozère = "Loz\u00E8re",
|
|
115
|
+
MaineEtLoire = "Maine-et-Loire",
|
|
116
|
+
Manche = "Manche",
|
|
117
|
+
Marne = "Marne",
|
|
118
|
+
Martinique = "Martinique",
|
|
119
|
+
Mayenne = "Mayenne",
|
|
120
|
+
Mayotte = "Mayotte",
|
|
121
|
+
MeurtheEtMoselle = "Meurthe-et-Moselle",
|
|
122
|
+
Meuse = "Meuse",
|
|
123
|
+
Morbihan = "Morbihan",
|
|
124
|
+
Moselle = "Moselle",
|
|
125
|
+
Nièvre = "Ni\u00E8vre",
|
|
126
|
+
Nord = "Nord",
|
|
127
|
+
NouvelleCalédonie = "Nouvelle-Cal\u00E9donie",
|
|
128
|
+
Oise = "Oise",
|
|
129
|
+
Orne = "Orne",
|
|
130
|
+
Paris = "Paris",
|
|
131
|
+
PasDeCalais = "Pas-de-Calais",
|
|
132
|
+
PolynésieFrançaise = "Polyn\u00E9sie Fran\u00E7aise",
|
|
133
|
+
PuyDeDôme = "Puy-de-D\u00F4me",
|
|
134
|
+
PyrénéesAtlantiques = "Pyr\u00E9n\u00E9es-Atlantiques",
|
|
135
|
+
PyrénéesOrientales = "Pyr\u00E9n\u00E9es-Orientales",
|
|
136
|
+
Rhône = "Rh\u00F4ne",
|
|
137
|
+
Réunion = "R\u00E9union",
|
|
138
|
+
SaintBarthélemyEtSaintMartin = "Saint-Barth\u00E9lemy et Saint-Martin",
|
|
139
|
+
SaintMartin = "Saint-Martin",
|
|
140
|
+
SaintPierreEtMiquelon = "Saint-Pierre-et-Miquelon",
|
|
141
|
+
Sarthe = "Sarthe",
|
|
142
|
+
Savoie = "Savoie",
|
|
143
|
+
SaôneEtLoire = "Sa\u00F4ne-et-Loire",
|
|
144
|
+
SeineEtMarne = "Seine-et-Marne",
|
|
145
|
+
SeineInférieure = "Seine-Inf\u00E9rieure",
|
|
146
|
+
SeineMaritime = "Seine-Maritime",
|
|
147
|
+
SeineSaintDenis = "Seine-Saint-Denis",
|
|
148
|
+
Somme = "Somme",
|
|
149
|
+
Tarn = "Tarn",
|
|
150
|
+
TarnEtGaronne = "Tarn-et-Garonne",
|
|
151
|
+
TerritoireDeBelfort = "Territoire de Belfort",
|
|
152
|
+
ValDOise = "Val-d'Oise",
|
|
153
|
+
ValDeMarne = "Val-de-Marne",
|
|
154
|
+
Var = "Var",
|
|
155
|
+
Vaucluse = "Vaucluse",
|
|
156
|
+
Vendée = "Vend\u00E9e",
|
|
157
|
+
Vienne = "Vienne",
|
|
158
|
+
Vosges = "Vosges",
|
|
159
|
+
WallisEtFutuna = "Wallis-et-Futuna",
|
|
160
|
+
Yonne = "Yonne",
|
|
161
|
+
Yvelines = "Yvelines"
|
|
162
|
+
}
|
|
49
163
|
export declare enum PaysNaisEnum {
|
|
50
164
|
Algérie = "Alg\u00E9rie",
|
|
51
165
|
Allemagne = "Allemagne",
|
|
@@ -114,7 +228,7 @@ export interface PurpleMandat {
|
|
|
114
228
|
chambre?: null;
|
|
115
229
|
election?: PurpleElection;
|
|
116
230
|
mandature?: Mandature;
|
|
117
|
-
collaborateurs?: null[] |
|
|
231
|
+
collaborateurs?: null[] | Collaborateurs | null;
|
|
118
232
|
}
|
|
119
233
|
export declare enum MandatXsiType {
|
|
120
234
|
MandatAvecSuppleantType = "MandatAvecSuppleant_Type",
|
|
@@ -122,7 +236,7 @@ export declare enum MandatXsiType {
|
|
|
122
236
|
MandatParlementaireType = "MandatParlementaire_type",
|
|
123
237
|
MandatSimpleType = "MandatSimple_Type"
|
|
124
238
|
}
|
|
125
|
-
export interface
|
|
239
|
+
export interface Collaborateurs {
|
|
126
240
|
collaborateur: CollaborateurElement[] | CollaborateurElement;
|
|
127
241
|
}
|
|
128
242
|
export interface CollaborateurElement {
|
|
@@ -133,18 +247,18 @@ export interface CollaborateurElement {
|
|
|
133
247
|
dateFin: null;
|
|
134
248
|
}
|
|
135
249
|
export interface PurpleElection {
|
|
136
|
-
lieu:
|
|
250
|
+
lieu: ElectionLieu;
|
|
137
251
|
causeMandat: null | string;
|
|
138
252
|
refCirconscription?: null | string;
|
|
139
253
|
}
|
|
140
|
-
export interface
|
|
141
|
-
region:
|
|
142
|
-
regionType:
|
|
143
|
-
departement:
|
|
254
|
+
export interface ElectionLieu {
|
|
255
|
+
region: Libelle | null;
|
|
256
|
+
regionType: Type | null;
|
|
257
|
+
departement: DepNais | null;
|
|
144
258
|
numDepartement: null | string;
|
|
145
259
|
numCirco: null | string;
|
|
146
260
|
}
|
|
147
|
-
export declare enum
|
|
261
|
+
export declare enum Libelle {
|
|
148
262
|
AuvergneRhôneAlpes = "Auvergne-Rh\u00F4ne-Alpes",
|
|
149
263
|
BourgogneFrancheComté = "Bourgogne-Franche-Comt\u00E9",
|
|
150
264
|
Bretagne = "Bretagne",
|
|
@@ -170,7 +284,7 @@ export declare enum Region {
|
|
|
170
284
|
SaintPierreEtMiquelon = "Saint-Pierre-et-Miquelon",
|
|
171
285
|
WallisEtFutuna = "Wallis-et-Futuna"
|
|
172
286
|
}
|
|
173
|
-
export declare enum
|
|
287
|
+
export declare enum Type {
|
|
174
288
|
CollectivitésDOutreMerEtNouvelleCalédonie = "Collectivit\u00E9s d'outre-mer et Nouvelle-Cal\u00E9donie",
|
|
175
289
|
Dom = "Dom",
|
|
176
290
|
FrançaisÉtablisHorsDeFrance = "Fran\u00E7ais \u00E9tablis hors de France",
|
|
@@ -187,6 +301,7 @@ export interface Mandature {
|
|
|
187
301
|
premiereElection: null | string;
|
|
188
302
|
placeHemicycle: null | string;
|
|
189
303
|
mandatRemplaceRef?: null | string;
|
|
304
|
+
matriculeVote?: null | string;
|
|
190
305
|
}
|
|
191
306
|
export interface PurpleOrganes {
|
|
192
307
|
organeRef: string[] | string;
|
|
@@ -202,6 +317,7 @@ export interface Suppleant {
|
|
|
202
317
|
export declare enum CodeType {
|
|
203
318
|
Api = "API",
|
|
204
319
|
Assemblee = "ASSEMBLEE",
|
|
320
|
+
Circonscription = "CIRCONSCRIPTION",
|
|
205
321
|
Cjr = "CJR",
|
|
206
322
|
Cmp = "CMP",
|
|
207
323
|
Cnpe = "CNPE",
|
|
@@ -283,6 +399,33 @@ export interface PurpleUid {
|
|
|
283
399
|
export declare enum UidXsiType {
|
|
284
400
|
IdActeurType = "IdActeur_type"
|
|
285
401
|
}
|
|
402
|
+
export interface Deport {
|
|
403
|
+
deport: DeportClass;
|
|
404
|
+
}
|
|
405
|
+
export interface DeportClass {
|
|
406
|
+
"@xmlns": string;
|
|
407
|
+
"@xmlns:xsi": string;
|
|
408
|
+
uid: string;
|
|
409
|
+
chronotag: string;
|
|
410
|
+
legislature: string;
|
|
411
|
+
refActeur: string;
|
|
412
|
+
dateCreation: Date;
|
|
413
|
+
datePublication: Date;
|
|
414
|
+
portee: Instance;
|
|
415
|
+
lecture: Instance;
|
|
416
|
+
instance: Instance;
|
|
417
|
+
cible: Cible;
|
|
418
|
+
explication: null | string;
|
|
419
|
+
}
|
|
420
|
+
export interface Cible {
|
|
421
|
+
type: Instance;
|
|
422
|
+
referenceTextuelle: string;
|
|
423
|
+
references: null;
|
|
424
|
+
}
|
|
425
|
+
export interface Instance {
|
|
426
|
+
code: string;
|
|
427
|
+
libelle: string;
|
|
428
|
+
}
|
|
286
429
|
export interface Organe {
|
|
287
430
|
organe: OrganeOrgane;
|
|
288
431
|
}
|
|
@@ -305,6 +448,8 @@ export interface OrganeOrgane {
|
|
|
305
448
|
siteInternet?: null | string;
|
|
306
449
|
nombreReunionsAnnuelles?: null | string;
|
|
307
450
|
secretariat?: Secretariat;
|
|
451
|
+
numero?: null | string;
|
|
452
|
+
lieu?: OrganeLieu;
|
|
308
453
|
positionPolitique?: PositionPolitique | null;
|
|
309
454
|
preseance?: null | string;
|
|
310
455
|
couleurAssociee?: null | string;
|
|
@@ -312,11 +457,31 @@ export interface OrganeOrgane {
|
|
|
312
457
|
}
|
|
313
458
|
export declare enum OrganeXsiType {
|
|
314
459
|
GroupePolitiqueType = "GroupePolitique_type",
|
|
460
|
+
OrganeCirconscriptionType = "OrganeCirconscription_type",
|
|
315
461
|
OrganeExterneType = "OrganeExterne_Type",
|
|
316
462
|
OrganeExtraParlementaireType = "OrganeExtraParlementaire_type",
|
|
317
463
|
OrganeParlementaireInternational = "OrganeParlementaireInternational",
|
|
318
464
|
OrganeParlementaireType = "OrganeParlementaire_Type"
|
|
319
465
|
}
|
|
466
|
+
export interface OrganeLieu {
|
|
467
|
+
region: Region;
|
|
468
|
+
departement: Departement;
|
|
469
|
+
}
|
|
470
|
+
export interface Departement {
|
|
471
|
+
codeNatureDep: CodeNatureDep | null;
|
|
472
|
+
code: null | string;
|
|
473
|
+
libelle: DepNais | null;
|
|
474
|
+
}
|
|
475
|
+
export declare enum CodeNatureDep {
|
|
476
|
+
H = "H",
|
|
477
|
+
M = "M",
|
|
478
|
+
O = "O",
|
|
479
|
+
T = "T"
|
|
480
|
+
}
|
|
481
|
+
export interface Region {
|
|
482
|
+
type: Type | null;
|
|
483
|
+
libelle: Libelle | null;
|
|
484
|
+
}
|
|
320
485
|
export interface ListePays {
|
|
321
486
|
paysRef: string;
|
|
322
487
|
}
|
|
@@ -356,6 +521,7 @@ export declare enum PositionPolitique {
|
|
|
356
521
|
export declare enum Regime {
|
|
357
522
|
AssembléeConsultativeProvisoire = "Assembl\u00E9e consultative provisoire",
|
|
358
523
|
AssembléesNationalesConstituantes = "Assembl\u00E9es nationales constituantes",
|
|
524
|
+
The3ÈmeRépublique = "3\u00E8me R\u00E9publique",
|
|
359
525
|
The4ÈmeRépublique = "4\u00E8me R\u00E9publique",
|
|
360
526
|
The5ÈmeRépublique = "5\u00E8me R\u00E9publique"
|
|
361
527
|
}
|
|
@@ -388,7 +554,7 @@ export interface TentacledMandat {
|
|
|
388
554
|
chambre?: null;
|
|
389
555
|
election?: PurpleElection;
|
|
390
556
|
mandature?: Mandature;
|
|
391
|
-
collaborateurs?:
|
|
557
|
+
collaborateurs?: Collaborateurs | null;
|
|
392
558
|
libelle?: null | string;
|
|
393
559
|
missionSuivanteRef?: null | string;
|
|
394
560
|
missionPrecedenteRef?: null | string;
|
|
@@ -425,7 +591,7 @@ export interface FluffyIdent {
|
|
|
425
591
|
export interface FluffyInfoNaissance {
|
|
426
592
|
dateNais: Date;
|
|
427
593
|
villeNais: null | string;
|
|
428
|
-
depNais:
|
|
594
|
+
depNais: DepNais | null;
|
|
429
595
|
paysNais: PaysNaisEnum | null;
|
|
430
596
|
}
|
|
431
597
|
export interface FluffyMandats {
|
|
@@ -474,7 +640,7 @@ export interface IndigoMandat {
|
|
|
474
640
|
mandature: Mandature;
|
|
475
641
|
}
|
|
476
642
|
export interface FluffyElection {
|
|
477
|
-
lieu:
|
|
643
|
+
lieu: ElectionLieu;
|
|
478
644
|
causeMandat: null;
|
|
479
645
|
}
|
|
480
646
|
export interface FluffyUid {
|
|
@@ -502,6 +668,8 @@ export interface OrganeElement {
|
|
|
502
668
|
export declare class Convert {
|
|
503
669
|
static toActeur(json: string): Acteur;
|
|
504
670
|
static acteurToJson(value: Acteur): string;
|
|
671
|
+
static toDeport(json: string): Deport;
|
|
672
|
+
static deportToJson(value: Deport): string;
|
|
505
673
|
static toOrgane(json: string): Organe;
|
|
506
674
|
static organeToJson(value: Organe): string;
|
|
507
675
|
static toMandat(json: string): Mandat;
|