@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.
- package/LICENSE.md +16 -6
- package/README.md +1 -19
- package/lib/amendements-CXmsqoof.js +170 -0
- package/lib/amendements-CZHXlq07.js +4198 -0
- package/lib/cleaners/acteurs.d.ts +2 -1
- package/lib/cleaners/amendements.d.ts +2 -1
- package/lib/cleaners/debats.d.ts +2 -1
- package/lib/cleaners/documents.d.ts +2 -1
- package/lib/cleaners/dossiers_legislatifs.d.ts +2 -1
- package/lib/cleaners/organes.d.ts +2 -1
- package/lib/cleaners/questions.d.ts +2 -1
- package/lib/cleaners/reunions.d.ts +2 -1
- package/lib/cleaners/scrutins.d.ts +2 -1
- package/lib/cleaners/xml.d.ts +5 -5
- package/lib/cleaners.js +186 -179
- package/lib/datasets.d.ts +5 -7
- package/lib/dossiers_legislatifs.d.ts +5 -2
- package/lib/file_systems.d.ts +9 -4
- package/lib/index.d.ts +24 -19
- package/lib/index.js +390 -1234
- package/lib/inserters.d.ts +466 -9
- package/lib/loaders.d.ts +13 -12
- package/lib/loaders.js +1900 -538
- package/lib/organes.d.ts +1 -1
- package/lib/parsers/compte_rendu.d.ts +2 -1
- package/lib/parsers/compte_rendu_commission.d.ts +1 -1
- package/lib/parsers/recherche_amendements.d.ts +2 -2
- package/lib/parsers/textes_lois.d.ts +1 -1
- package/lib/parsers.js +2109 -2075
- package/lib/questions-DTO3nK5V.js +2777 -0
- package/lib/questions-DXAzvI1T.js +230 -0
- package/lib/registries.d.ts +112 -0
- package/lib/schemas/clean/acteurs_et_organes.d.ts +2377 -0
- package/lib/schemas/clean/agendas.d.ts +830 -0
- package/lib/schemas/clean/amendements.d.ts +2305 -0
- package/lib/schemas/clean/debats.d.ts +300 -0
- package/lib/schemas/clean/dossiers_legislatifs.d.ts +1365 -0
- package/lib/schemas/clean/questions.d.ts +625 -0
- package/lib/schemas/clean/scrutins.d.ts +1137 -0
- package/lib/schemas/enriched/acteurs_et_organes.d.ts +112 -0
- package/lib/schemas/enriched/agendas.d.ts +501 -0
- package/lib/schemas/enriched/amendements.d.ts +1230 -0
- package/lib/schemas/enriched/debats.d.ts +308 -0
- package/lib/schemas/enriched/dossiers_legislatifs.d.ts +1131 -0
- package/lib/schemas/enriched/questions.d.ts +589 -0
- package/lib/schemas/enriched/scrutins.d.ts +1094 -0
- package/lib/schemas/raw/acteurs_et_organes.d.ts +5870 -0
- package/lib/schemas/raw/agendas.d.ts +1734 -0
- package/lib/schemas/raw/amendements.d.ts +4758 -0
- package/lib/schemas/raw/debats.d.ts +410 -0
- package/lib/schemas/raw/dossiers_legislatifs.d.ts +3252 -0
- package/lib/schemas/raw/questions.d.ts +983 -0
- package/lib/schemas/raw/scrutins.d.ts +2763 -0
- package/lib/scripts/retrieve_deputes_photos.d.ts +58 -4
- package/lib/scripts/retrieve_documents.d.ts +100 -12
- package/lib/scripts/retrieve_open_data.d.ts +75 -4
- package/lib/scripts/retrieve_videos.d.ts +1 -1
- package/lib/scripts/shared/cli_helpers.d.ts +103 -77
- package/lib/scripts/shared/photos.d.ts +106 -0
- package/lib/scripts/shared/utils.d.ts +4 -1
- package/lib/urls.d.ts +2 -2
- package/package.json +16 -12
- package/lib/amendements-40Z7OJLT.js +0 -682
- package/lib/amendements-J6Sx61n8.js +0 -154
- package/lib/datasets-Cb3wpfRH.js +0 -3580
- package/lib/parse-Ccs6wcUg.js +0 -2512
- package/lib/raw_types/acteurs_et_organes.d.ts +0 -464
- package/lib/raw_types/agendas.d.ts +0 -265
- package/lib/raw_types/amendements.d.ts +0 -365
- package/lib/raw_types/debats.d.ts +0 -140
- package/lib/raw_types/dossiers_legislatifs.d.ts +0 -567
- package/lib/raw_types/questions.d.ts +0 -115
- package/lib/raw_types/scrutins.d.ts +0 -187
- package/lib/schemas/acteurs_et_organes.json +0 -1167
- package/lib/schemas/agendas.json +0 -1757
- package/lib/schemas/amendements.json +0 -2087
- package/lib/schemas/compte_rendu_commission/CompteRenduCommission.json +0 -63
- package/lib/schemas/debats.json +0 -847
- package/lib/schemas/dossiers_legislatifs.json +0 -3884
- package/lib/schemas/legislatures.json +0 -17
- package/lib/schemas/questions.json +0 -711
- package/lib/schemas/scrutins.json +0 -701
- package/lib/scripts/copy-schemas.d.ts +0 -1
- package/lib/scripts/generate-json-schemas.d.ts +0 -1
- package/lib/shared_types/acteurs_et_organes.d.ts +0 -149
- package/lib/shared_types/dossiers_legislatifs.d.ts +0 -222
- package/lib/types/acteurs_et_organes.d.ts +0 -598
- package/lib/types/agendas.d.ts +0 -442
- package/lib/types/amendements.d.ts +0 -615
- package/lib/types/debats.d.ts +0 -186
- package/lib/types/dossiers_legislatifs.d.ts +0 -826
- package/lib/types/questions.d.ts +0 -203
- package/lib/types/scrutins.d.ts +0 -254
- /package/lib/{types/legislatures.d.ts → legislatures.d.ts} +0 -0
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
export interface Questions {
|
|
2
|
-
questions: QuestionsClass;
|
|
3
|
-
}
|
|
4
|
-
export interface QuestionsClass {
|
|
5
|
-
question: Question[];
|
|
6
|
-
}
|
|
7
|
-
export interface QuestionWrapper {
|
|
8
|
-
question: Question;
|
|
9
|
-
}
|
|
10
|
-
export interface Question {
|
|
11
|
-
"@xmlns"?: string;
|
|
12
|
-
"@xmlns:xsi": string;
|
|
13
|
-
"@xsi:type": QuestionXsiType;
|
|
14
|
-
uid: string;
|
|
15
|
-
identifiant: Identifiant;
|
|
16
|
-
type: Type;
|
|
17
|
-
indexationAN: IndexationAn;
|
|
18
|
-
auteur: Auteur;
|
|
19
|
-
minInt: Groupe;
|
|
20
|
-
minAttribs: MinAttribs;
|
|
21
|
-
textesQuestion?: TextesQuestion | null;
|
|
22
|
-
textesReponse?: TextesReponse | null;
|
|
23
|
-
cloture?: Cloture | null;
|
|
24
|
-
signalement?: Signalement | null;
|
|
25
|
-
renouvellements?: Renouvellements | null;
|
|
26
|
-
}
|
|
27
|
-
export declare enum QuestionXsiType {
|
|
28
|
-
QuestionEcrite = "QuestionEcrite_Type",
|
|
29
|
-
QuestionGouvernement = "QuestionGouvernement_Type",
|
|
30
|
-
QuestionOrale = "QuestionOrale_Type"
|
|
31
|
-
}
|
|
32
|
-
export interface Auteur {
|
|
33
|
-
identite: Identite;
|
|
34
|
-
groupe: Groupe;
|
|
35
|
-
}
|
|
36
|
-
export interface Groupe {
|
|
37
|
-
organeRef: string;
|
|
38
|
-
abrege: string;
|
|
39
|
-
developpe: string;
|
|
40
|
-
}
|
|
41
|
-
export interface Identite {
|
|
42
|
-
acteurRef: string;
|
|
43
|
-
mandatRef: string;
|
|
44
|
-
}
|
|
45
|
-
export interface Cloture {
|
|
46
|
-
codeCloture: string;
|
|
47
|
-
libelleCloture: string;
|
|
48
|
-
dateCloture: string | null;
|
|
49
|
-
infoJO: InfoJo | null;
|
|
50
|
-
}
|
|
51
|
-
export declare enum TypeJo {
|
|
52
|
-
JoQuestion = "JO_QUESTION",
|
|
53
|
-
JoLoiDecret = "JO_LOI_DECRET",
|
|
54
|
-
JoDebate = "JO_DEBAT"
|
|
55
|
-
}
|
|
56
|
-
export interface Identifiant {
|
|
57
|
-
numero: string;
|
|
58
|
-
regime: string;
|
|
59
|
-
legislature: string;
|
|
60
|
-
}
|
|
61
|
-
export interface IndexationAn {
|
|
62
|
-
rubrique: string | null;
|
|
63
|
-
teteAnalyse: null;
|
|
64
|
-
analyses: Analyse;
|
|
65
|
-
}
|
|
66
|
-
export interface Analyse {
|
|
67
|
-
analyse: string | null;
|
|
68
|
-
}
|
|
69
|
-
export interface MinAttribs {
|
|
70
|
-
minAttrib: MinAttribElement[] | MinAttribElement;
|
|
71
|
-
}
|
|
72
|
-
export interface MinAttribElement {
|
|
73
|
-
infoJO: InfoJo;
|
|
74
|
-
denomination: Groupe;
|
|
75
|
-
}
|
|
76
|
-
export interface TextesQuestion {
|
|
77
|
-
texteQuestion: Texte[] | Texte;
|
|
78
|
-
}
|
|
79
|
-
export interface Texte {
|
|
80
|
-
infoJO: InfoJo;
|
|
81
|
-
texte: string | null;
|
|
82
|
-
erratum?: string;
|
|
83
|
-
}
|
|
84
|
-
export interface InfoJo {
|
|
85
|
-
typeJO: TypeJo | null;
|
|
86
|
-
dateJO: string;
|
|
87
|
-
pageJO: string | null;
|
|
88
|
-
numJO: string | null;
|
|
89
|
-
urlLegifrance: string | null;
|
|
90
|
-
referenceNOR: string | null;
|
|
91
|
-
}
|
|
92
|
-
export interface TextesReponse {
|
|
93
|
-
texteReponse: Texte[] | Texte;
|
|
94
|
-
}
|
|
95
|
-
export interface Signalement {
|
|
96
|
-
dateDepotSignal: string;
|
|
97
|
-
infoJO: InfoJo;
|
|
98
|
-
}
|
|
99
|
-
export interface Renouvellements {
|
|
100
|
-
renouvellement: Renouvellement[] | Renouvellement;
|
|
101
|
-
}
|
|
102
|
-
export interface Renouvellement {
|
|
103
|
-
infoJO: InfoJo;
|
|
104
|
-
}
|
|
105
|
-
export declare enum Type {
|
|
106
|
-
Qe = "QE",
|
|
107
|
-
Qg = "QG",
|
|
108
|
-
Qosd = "QOSD"
|
|
109
|
-
}
|
|
110
|
-
export declare class Convert {
|
|
111
|
-
static toQuestions(json: string): Questions;
|
|
112
|
-
static questionsToJson(value: Questions): string;
|
|
113
|
-
static toQuestionWrapper(json: string): QuestionWrapper;
|
|
114
|
-
static questionWrapperToJson(value: QuestionWrapper): string;
|
|
115
|
-
}
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
export interface Scrutins {
|
|
2
|
-
scrutins: ScrutinsClass;
|
|
3
|
-
}
|
|
4
|
-
export interface ScrutinsClass {
|
|
5
|
-
scrutin: Scrutin[];
|
|
6
|
-
}
|
|
7
|
-
export interface ScrutinWrapper {
|
|
8
|
-
scrutin: Scrutin;
|
|
9
|
-
}
|
|
10
|
-
export interface Scrutin {
|
|
11
|
-
"@xmlns:xsi": string;
|
|
12
|
-
uid: string;
|
|
13
|
-
numero: string;
|
|
14
|
-
organeRef: string;
|
|
15
|
-
legislature: string;
|
|
16
|
-
sessionRef: string;
|
|
17
|
-
seanceRef: string;
|
|
18
|
-
dateScrutin: Date;
|
|
19
|
-
quantiemeJourSeance: string;
|
|
20
|
-
typeVote: TypeVote;
|
|
21
|
-
sort: Sort;
|
|
22
|
-
titre: string;
|
|
23
|
-
demandeur: Demandeur;
|
|
24
|
-
objet: Objet;
|
|
25
|
-
modePublicationDesVotes: ModePublicationDesVotes;
|
|
26
|
-
syntheseVote: SyntheseVote;
|
|
27
|
-
ventilationVotes: VentilationVotes;
|
|
28
|
-
miseAuPoint: MiseAuPoint | null;
|
|
29
|
-
lieuVote?: LieuVote;
|
|
30
|
-
"@xmlns"?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface Demandeur {
|
|
33
|
-
texte: null | string;
|
|
34
|
-
referenceLegislative: null;
|
|
35
|
-
}
|
|
36
|
-
export interface MiseAuPoint {
|
|
37
|
-
nonVotants: Array<VotantsClass | null> | null;
|
|
38
|
-
pour?: VotantsClass | null;
|
|
39
|
-
contre?: VotantsClass | null;
|
|
40
|
-
abstentions: Array<VotantsClass | null> | VotantsClass | null;
|
|
41
|
-
nonVotantsVolontaires: Array<VotantsClass | null> | VotantsClass | null;
|
|
42
|
-
pours?: VotantsClass | null;
|
|
43
|
-
contres?: VotantsClass | null;
|
|
44
|
-
dysfonctionnement?: Dysfonctionnement;
|
|
45
|
-
}
|
|
46
|
-
export interface Dysfonctionnement {
|
|
47
|
-
nonVotants: VotantsClass | null;
|
|
48
|
-
pour: VotantsClass | null;
|
|
49
|
-
contre: VotantsClass | null;
|
|
50
|
-
abstentions: VotantsClass | null;
|
|
51
|
-
nonVotantsVolontaires: VotantsClass | null;
|
|
52
|
-
}
|
|
53
|
-
export declare enum ModePublicationDesVotes {
|
|
54
|
-
DecompteDissidentsPositionGroupe = "DecompteDissidentsPositionGroupe",
|
|
55
|
-
DecompteNominatif = "DecompteNominatif"
|
|
56
|
-
}
|
|
57
|
-
export interface Objet {
|
|
58
|
-
libelle: string;
|
|
59
|
-
referenceLegislative: null;
|
|
60
|
-
dossierLegislatif?: null;
|
|
61
|
-
}
|
|
62
|
-
export interface Sort {
|
|
63
|
-
code: Code;
|
|
64
|
-
libelle: Libelle;
|
|
65
|
-
}
|
|
66
|
-
export declare enum Code {
|
|
67
|
-
Adopté = "adopt\u00E9",
|
|
68
|
-
Rejeté = "rejet\u00E9"
|
|
69
|
-
}
|
|
70
|
-
export declare enum Libelle {
|
|
71
|
-
LAssembléeNationaleAAdopté = "l'Assembl\u00E9e nationale a adopt\u00E9",
|
|
72
|
-
LAssembléeNationaleNAPasAdopté = "L'Assembl\u00E9e nationale n'a pas adopt\u00E9",
|
|
73
|
-
LeCongrèsDuParlementAAdopté = "Le Congr\u00E8s du Parlement a adopt\u00E9",
|
|
74
|
-
LeCongrèsDuParlementNAPasAdopté = "Le Congr\u00E8s du Parlement n'a pas adopt\u00E9"
|
|
75
|
-
}
|
|
76
|
-
export interface SyntheseVote {
|
|
77
|
-
nombreVotants: string;
|
|
78
|
-
suffragesExprimes: string;
|
|
79
|
-
nbrSuffragesRequis: string;
|
|
80
|
-
annonce: Libelle;
|
|
81
|
-
decompte: Decompte;
|
|
82
|
-
}
|
|
83
|
-
export interface Decompte {
|
|
84
|
-
pour: string;
|
|
85
|
-
contre: string;
|
|
86
|
-
abstentions: string;
|
|
87
|
-
nonVotants: string | null;
|
|
88
|
-
nonVotantsVolontaires?: string;
|
|
89
|
-
}
|
|
90
|
-
export interface TypeVote {
|
|
91
|
-
codeTypeVote: CodeTypeVote;
|
|
92
|
-
libelleTypeVote: LibelleTypeVote;
|
|
93
|
-
typeMajorite: TypeMajorite;
|
|
94
|
-
}
|
|
95
|
-
export declare enum CodeTypeVote {
|
|
96
|
-
Moc = "MOC",
|
|
97
|
-
Sat = "SAT",
|
|
98
|
-
Spo = "SPO",
|
|
99
|
-
Sps = "SPS",
|
|
100
|
-
Ssg = "SSG"
|
|
101
|
-
}
|
|
102
|
-
export declare enum LibelleTypeVote {
|
|
103
|
-
MotionDeCensure = "motion de censure",
|
|
104
|
-
ScrutinPublicOrdinaire = "scrutin public ordinaire",
|
|
105
|
-
ScrutinPublicSolennel = "scrutin public solennel",
|
|
106
|
-
ScrutinÀLaTribune = "scrutin \u00E0 la tribune",
|
|
107
|
-
ScrutinSolennelCongrès = "Scrutin solennel congr\u00E8s"
|
|
108
|
-
}
|
|
109
|
-
export declare enum TypeMajorite {
|
|
110
|
-
MajoritéAbsolueDesSuffragesExprimés = "Majorit\u00E9 absolue des suffrages exprim\u00E9s",
|
|
111
|
-
majoritéAbsolueDesSuffragesExprimés = "majorit\u00E9 absolue des suffrages exprim\u00E9s",
|
|
112
|
-
majoritéDesMembresComposantLAssembléeNationale = "majorit\u00E9 des membres composant l'Assembl\u00E9e nationale",
|
|
113
|
-
majoritéDesMembresComposantsComposantLAssemblée = "majorit\u00E9 des membres composants composant l'Assembl\u00E9e",
|
|
114
|
-
majoritéDesMembresComposantsComposantLAssembléeNationale = "majorit\u00E9 des membres composants composant l'Assembl\u00E9e nationale",
|
|
115
|
-
MajoritéRequisePourUnCongrès = "Majorit\u00E9 requise pour un Congr\u00E8s",
|
|
116
|
-
MajoritéRequisePourUneMotionDeCensure = "Majorit\u00E9 requise pour une motion de censure"
|
|
117
|
-
}
|
|
118
|
-
export interface VentilationVotes {
|
|
119
|
-
organe: Organe;
|
|
120
|
-
}
|
|
121
|
-
export interface Organe {
|
|
122
|
-
organeRef: string;
|
|
123
|
-
groupes: Groupes;
|
|
124
|
-
}
|
|
125
|
-
export interface Groupes {
|
|
126
|
-
groupe: Groupe[];
|
|
127
|
-
}
|
|
128
|
-
export interface Groupe {
|
|
129
|
-
organeRef: string;
|
|
130
|
-
nombreMembresGroupe: string;
|
|
131
|
-
vote: Vote;
|
|
132
|
-
}
|
|
133
|
-
export interface Vote {
|
|
134
|
-
positionMajoritaire: PositionMajoritaire;
|
|
135
|
-
decompteVoix: DecompteVoix;
|
|
136
|
-
decompteNominatif: DecompteNominatif;
|
|
137
|
-
}
|
|
138
|
-
export interface DecompteNominatif {
|
|
139
|
-
nonVotant?: null;
|
|
140
|
-
nonVotants?: VotantsClass | null | string;
|
|
141
|
-
pour?: VotantsClass | null;
|
|
142
|
-
contre?: VotantsClass | null;
|
|
143
|
-
abstention?: VotantsClass | null;
|
|
144
|
-
abstentions?: VotantsClass | null;
|
|
145
|
-
pours?: VotantsClass | null;
|
|
146
|
-
contres?: VotantsClass | null;
|
|
147
|
-
}
|
|
148
|
-
export interface VotantsClass {
|
|
149
|
-
votant: Votant[] | Votant;
|
|
150
|
-
}
|
|
151
|
-
export interface Votant {
|
|
152
|
-
acteurRef: string;
|
|
153
|
-
mandatRef: string;
|
|
154
|
-
parDelegation?: string;
|
|
155
|
-
numPlace?: string | null;
|
|
156
|
-
causePositionVote?: CausePositionVote;
|
|
157
|
-
}
|
|
158
|
-
export declare enum CausePositionVote {
|
|
159
|
-
Mg = "MG",
|
|
160
|
-
Pan = "PAN",
|
|
161
|
-
Pse = "PSE"
|
|
162
|
-
}
|
|
163
|
-
export interface DecompteVoix {
|
|
164
|
-
pour: string;
|
|
165
|
-
contre: string;
|
|
166
|
-
abstention?: string;
|
|
167
|
-
nonVotant?: string | null;
|
|
168
|
-
nonVotants?: string;
|
|
169
|
-
abstentions?: string;
|
|
170
|
-
nonVotantsVolontaires?: string;
|
|
171
|
-
}
|
|
172
|
-
export declare enum PositionMajoritaire {
|
|
173
|
-
Abstention = "abstention",
|
|
174
|
-
Contre = "contre",
|
|
175
|
-
Pour = "pour"
|
|
176
|
-
}
|
|
177
|
-
export declare enum LieuVote {
|
|
178
|
-
Congrès = "Congr\u00E8s",
|
|
179
|
-
Hémicycle = "H\u00E9micycle",
|
|
180
|
-
Salons = "Salons"
|
|
181
|
-
}
|
|
182
|
-
export declare class Convert {
|
|
183
|
-
static toScrutins(json: string): Scrutins;
|
|
184
|
-
static scrutinsToJson(value: Scrutins): string;
|
|
185
|
-
static toScrutinWrapper(json: string): ScrutinWrapper;
|
|
186
|
-
static scrutinWrapperToJson(value: ScrutinWrapper): string;
|
|
187
|
-
}
|