@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,186 +0,0 @@
1
- export interface ComptesRendus {
2
- comptesRendus: CompteRendu[];
3
- }
4
- /**
5
- * Débat.
6
- *
7
- * Compte rendu des débats en séance.
8
- */
9
- export interface CompteRendu {
10
- schemaVersion?: string;
11
- /**
12
- * Identifiant unique.
13
- */
14
- uid: string;
15
- seanceRef: string;
16
- sessionRef: string;
17
- metadonnees: Metadonnees;
18
- contenu: Contenu;
19
- videoUrl?: string;
20
- videoTimecode?: number;
21
- }
22
- /**
23
- * Contenu de la séance du débat.
24
- */
25
- export interface Contenu {
26
- quantiemes: Quantiemes;
27
- ouvertureSeance?: Point[] | Point;
28
- point: Point[] | Point;
29
- finSeance?: FinSeance;
30
- paragraphe?: Point[];
31
- }
32
- export interface FinSeance {
33
- point: Point;
34
- }
35
- export interface Orateurs {
36
- orateur: OrateurElement[] | OrateurElement;
37
- }
38
- /**
39
- * Orateur de la séance du débat.
40
- */
41
- export interface OrateurElement {
42
- nom: string | undefined;
43
- id: string | undefined;
44
- qualite: string | undefined;
45
- }
46
- /**
47
- * Texte de la séance du débat.
48
- */
49
- export interface Texte {
50
- _?: string;
51
- id_syceron?: string;
52
- stime?: string;
53
- sup?: string;
54
- lienAdt?: Texte[] | Texte;
55
- }
56
- /**
57
- * Décision prise à l'issue du point de débat.
58
- */
59
- export declare enum Decision {
60
- AdoptionAmendementMainLevéeAdt = "ADOPTION amendement (main lev\u00E9e) adt",
61
- AdoptionDUnArticleVoteÀMainLevée = "ADOPTION d\u2019un article (vote \u00E0 main lev\u00E9e)",
62
- AdoptionDUnSousAmendementMainLevéeSsAdt = "ADOPTION d\u2019un sous-amendement (main lev\u00E9e) ss-adt",
63
- AdoptionDePlusieursAmendementsMainLevéeAdts = "ADOPTION de plusieurs amendements (main lev\u00E9e) adts",
64
- AdoptionDePlusieursSousAmendementsMainLevéeSsAdts = "ADOPTION de plusieurs sous-amendements (main lev\u00E9e) ss-adts",
65
- Empty = "",
66
- RejetDUnAmendementMainLevéeAdt = "REJET d\u2019un amendement (main lev\u00E9e) adt",
67
- RejetDUnArticleVoteÀMainLevée = "REJET d\u2019un article (vote \u00E0 main lev\u00E9e)",
68
- RejetDUnSousAmendementMainLevéeSsAdt = "REJET d\u2019un sous-amendement (main lev\u00E9e) ss-adt",
69
- RejetDePlusieursAmendementsMainLevéeAdts = "REJET de plusieurs amendements (main lev\u00E9e) adts",
70
- RejetDePlusieursSousAmendementsMainLevéeSsAdts = "REJET de plusieurs sous-amendements (main lev\u00E9e) ss-adts",
71
- RejetMotionDeRejetPréalableMainLevée = "REJET motion de rejet pr\u00E9alable (main lev\u00E9e)"
72
- }
73
- /**
74
- * Point de la séance du débat.
75
- */
76
- export interface Point {
77
- nivpoint?: string;
78
- valeur_ptsodj?: string;
79
- ordinal_prise?: string;
80
- id_preparation?: string;
81
- ordre_absolu_seance?: string;
82
- code_grammaire?: string;
83
- code_style?: string;
84
- code_parole?: string;
85
- sommaire?: string;
86
- id_syceron?: string;
87
- valeur?: string;
88
- orateurs?: Orateurs | string;
89
- texte?: Texte | string;
90
- paragraphe?: Point[] | Point;
91
- interExtraction?: Point[] | Point;
92
- point?: Point[] | Point;
93
- structure?: string;
94
- id_acteur?: string;
95
- id_mandat?: string;
96
- id_nomination_oe?: string;
97
- id_nomination_op?: string;
98
- orateur?: string;
99
- bibard?: string;
100
- art?: string;
101
- adt?: string;
102
- ssadt?: string;
103
- roledebat?: string;
104
- changementPresidence?: Point[] | Point;
105
- type_debat?: string;
106
- /**
107
- * Décision prise à l'issue du point de débat.
108
- */
109
- decision?: Decision;
110
- ouvertureSeance?: Point;
111
- nom_orateur?: string;
112
- qualite?: string;
113
- }
114
- export interface Quantiemes {
115
- journee: string;
116
- session: string;
117
- }
118
- /**
119
- * Données de la séance du débat.
120
- */
121
- export interface Metadonnees {
122
- dateSeance: string;
123
- dateSeanceJour: string;
124
- numSeanceJour: string;
125
- numSeance: string;
126
- typeAssemblee: string;
127
- legislature: string;
128
- session: string;
129
- nomFichierJo: string;
130
- validite: string;
131
- etat: string;
132
- diffusion: string;
133
- version: string;
134
- environnement: string;
135
- heureGeneration?: Date;
136
- sommaire: Sommaire;
137
- }
138
- /**
139
- * Sommaire de la séance du débat.
140
- */
141
- export interface Sommaire {
142
- /**
143
- * Président de la séance.
144
- */
145
- presidentSeance: Texte;
146
- /**
147
- * Premier niveau de sommaire.
148
- */
149
- sommaire1: SommaireElement[] | SommaireElement;
150
- /**
151
- * Troisième niveau de sommaire.
152
- */
153
- sommaire3?: SommaireElement[] | SommaireElement;
154
- /**
155
- * Second niveau de sommaire.
156
- */
157
- sommaire2?: SommaireElement[] | SommaireElement;
158
- /**
159
- * Paragraphe de texte libre dans le sommaire.
160
- */
161
- para?: Texte[] | Texte;
162
- }
163
- /**
164
- * Sommaire de la séance du débat.
165
- */
166
- export interface SommaireElement {
167
- valeur_pts_odj?: string;
168
- titreStruct: TitreStruct;
169
- para?: Array<Texte | string> | Texte;
170
- sommaire2?: SommaireElement[] | SommaireElement;
171
- sommaire3?: SommaireElement[] | SommaireElement;
172
- presidentSeance?: Texte[] | Texte;
173
- type_debat?: string;
174
- }
175
- export interface TitreStruct {
176
- id_syceron: string;
177
- intitule?: string;
178
- sousIntitule?: string;
179
- type_debat?: string;
180
- }
181
- export declare class Convert {
182
- static toComptesRendus(json: string): ComptesRendus;
183
- static comptesRendusToJson(value: ComptesRendus): string;
184
- static toCompteRendu(json: string): CompteRendu;
185
- static compteRenduToJson(value: CompteRendu): string;
186
- }