@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,711 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "definitions": {
4
- "Questions": {
5
- "type": "object",
6
- "properties": {
7
- "questions": {
8
- "type": "array",
9
- "items": {
10
- "$ref": "#/definitions/Question"
11
- }
12
- }
13
- },
14
- "required": [
15
- "questions"
16
- ],
17
- "additionalProperties": false
18
- },
19
- "Question": {
20
- "type": "object",
21
- "properties": {
22
- "schemaVersion": {
23
- "type": "string"
24
- },
25
- "@xsi:type": {
26
- "$ref": "#/definitions/QuestionXsiType",
27
- "description": "Type de question (QuestionEcrite_Type, QuestionGouvernement_Type, QuestionOrale_Type)."
28
- },
29
- "uid": {
30
- "type": "string",
31
- "description": "Identifiant unique."
32
- },
33
- "identifiant": {
34
- "$ref": "#/definitions/Identifiant"
35
- },
36
- "type": {
37
- "$ref": "#/definitions/TypeQuestion",
38
- "description": "Type de question abrégé (QE, QG, QOSD)."
39
- },
40
- "indexationAN": {
41
- "$ref": "#/definitions/IndexationAn"
42
- },
43
- "auteur": {
44
- "$ref": "#/definitions/AuteurQuestion"
45
- },
46
- "minInt": {
47
- "$ref": "#/definitions/Groupe"
48
- },
49
- "minAttribs": {
50
- "$ref": "#/definitions/MinAttribs"
51
- },
52
- "textesQuestion": {
53
- "anyOf": [
54
- {
55
- "$ref": "#/definitions/TextesQuestion"
56
- },
57
- {
58
- "type": "null"
59
- }
60
- ]
61
- },
62
- "textesReponse": {
63
- "anyOf": [
64
- {
65
- "$ref": "#/definitions/TextesReponse"
66
- },
67
- {
68
- "type": "null"
69
- }
70
- ]
71
- },
72
- "cloture": {
73
- "anyOf": [
74
- {
75
- "$ref": "#/definitions/Cloture"
76
- },
77
- {
78
- "type": "null"
79
- }
80
- ]
81
- },
82
- "signalement": {
83
- "anyOf": [
84
- {
85
- "$ref": "#/definitions/Signalement"
86
- },
87
- {
88
- "type": "null"
89
- }
90
- ]
91
- },
92
- "renouvellements": {
93
- "anyOf": [
94
- {
95
- "$ref": "#/definitions/Renouvellements"
96
- },
97
- {
98
- "type": "null"
99
- }
100
- ]
101
- }
102
- },
103
- "required": [
104
- "@xsi:type",
105
- "uid",
106
- "identifiant",
107
- "type",
108
- "indexationAN",
109
- "auteur",
110
- "minInt",
111
- "minAttribs"
112
- ],
113
- "additionalProperties": false,
114
- "description": "Question.\n\nQuestions écrites ou question au gouvernement posées par les députés."
115
- },
116
- "QuestionXsiType": {
117
- "type": "string",
118
- "enum": [
119
- "QuestionEcrite_Type",
120
- "QuestionGouvernement_Type",
121
- "QuestionOrale_Type"
122
- ]
123
- },
124
- "Identifiant": {
125
- "type": "object",
126
- "properties": {
127
- "numero": {
128
- "type": "string"
129
- },
130
- "regime": {
131
- "type": "string"
132
- },
133
- "legislature": {
134
- "type": "string"
135
- }
136
- },
137
- "required": [
138
- "numero",
139
- "regime",
140
- "legislature"
141
- ],
142
- "additionalProperties": false
143
- },
144
- "TypeQuestion": {
145
- "type": "string",
146
- "enum": [
147
- "QE",
148
- "QG",
149
- "QOSD"
150
- ]
151
- },
152
- "IndexationAn": {
153
- "type": "object",
154
- "properties": {
155
- "rubrique": {
156
- "type": [
157
- "string",
158
- "null"
159
- ]
160
- },
161
- "teteAnalyse": {
162
- "type": "null"
163
- },
164
- "analyses": {
165
- "$ref": "#/definitions/Analyse"
166
- }
167
- },
168
- "required": [
169
- "rubrique",
170
- "teteAnalyse",
171
- "analyses"
172
- ],
173
- "additionalProperties": false
174
- },
175
- "Analyse": {
176
- "type": "object",
177
- "properties": {
178
- "analyse": {
179
- "type": [
180
- "string",
181
- "null"
182
- ]
183
- }
184
- },
185
- "required": [
186
- "analyse"
187
- ],
188
- "additionalProperties": false
189
- },
190
- "AuteurQuestion": {
191
- "type": "object",
192
- "properties": {
193
- "identite": {
194
- "$ref": "#/definitions/IdentiteAuteurQuestion",
195
- "description": "Identité de l'auteur."
196
- },
197
- "groupe": {
198
- "$ref": "#/definitions/Groupe",
199
- "description": "Groupe politique de l'auteur."
200
- }
201
- },
202
- "required": [
203
- "identite",
204
- "groupe"
205
- ],
206
- "additionalProperties": false,
207
- "description": "Auteur d'une question."
208
- },
209
- "IdentiteAuteurQuestion": {
210
- "type": "object",
211
- "properties": {
212
- "acteurRef": {
213
- "type": "string",
214
- "description": "Identifiant unique de l' {@link Acteur acteur }"
215
- },
216
- "mandatRef": {
217
- "type": "string",
218
- "description": "Identifiant unique du {@link Mandat mandat }"
219
- }
220
- },
221
- "required": [
222
- "acteurRef",
223
- "mandatRef"
224
- ],
225
- "additionalProperties": false,
226
- "description": "Identité de l'auteur."
227
- },
228
- "Groupe": {
229
- "type": "object",
230
- "properties": {
231
- "organeRef": {
232
- "type": "string",
233
- "description": "Identifiant unique de l' {@link Organe organe }"
234
- },
235
- "abrege": {
236
- "type": "string"
237
- },
238
- "developpe": {
239
- "type": "string"
240
- }
241
- },
242
- "required": [
243
- "organeRef",
244
- "abrege",
245
- "developpe"
246
- ],
247
- "additionalProperties": false,
248
- "description": "Groupe politique de l'auteur."
249
- },
250
- "MinAttribs": {
251
- "type": "object",
252
- "properties": {
253
- "minAttrib": {
254
- "anyOf": [
255
- {
256
- "type": "array",
257
- "items": {
258
- "$ref": "#/definitions/MinAttribElement"
259
- }
260
- },
261
- {
262
- "$ref": "#/definitions/MinAttribElement"
263
- }
264
- ]
265
- }
266
- },
267
- "required": [
268
- "minAttrib"
269
- ],
270
- "additionalProperties": false
271
- },
272
- "MinAttribElement": {
273
- "type": "object",
274
- "properties": {
275
- "infoJO": {
276
- "$ref": "#/definitions/InfoJoQuestion"
277
- },
278
- "denomination": {
279
- "$ref": "#/definitions/Groupe"
280
- }
281
- },
282
- "required": [
283
- "infoJO",
284
- "denomination"
285
- ],
286
- "additionalProperties": false,
287
- "description": "MinAttribElement."
288
- },
289
- "InfoJoQuestion": {
290
- "type": "object",
291
- "properties": {
292
- "typeJO": {
293
- "anyOf": [
294
- {
295
- "$ref": "#/definitions/TypeJoQuestion"
296
- },
297
- {
298
- "type": "null"
299
- }
300
- ],
301
- "description": "Type de Journal Officiel."
302
- },
303
- "dateJO": {
304
- "type": "string",
305
- "format": "date-time",
306
- "description": "Date de publication au Journal Officiel."
307
- },
308
- "pageJO": {
309
- "type": [
310
- "string",
311
- "null"
312
- ],
313
- "description": "Page du Journal Officiel."
314
- },
315
- "numJO": {
316
- "type": [
317
- "string",
318
- "null"
319
- ],
320
- "description": "Numéro du Journal Officiel."
321
- },
322
- "urlLegifrance": {
323
- "type": [
324
- "string",
325
- "null"
326
- ],
327
- "description": "URL du texte promulgué sur le site https://www.legifrance.gouv.fr/"
328
- },
329
- "referenceNOR": {
330
- "type": [
331
- "string",
332
- "null"
333
- ],
334
- "description": "Numéro {@link https://fr.wikipedia.org/wiki/Syst%C3%A8me_NOR NOR } attribué au texte promulgué."
335
- }
336
- },
337
- "required": [
338
- "typeJO",
339
- "dateJO",
340
- "pageJO",
341
- "numJO",
342
- "urlLegifrance",
343
- "referenceNOR"
344
- ],
345
- "additionalProperties": false,
346
- "description": "Champs liés à la publication d'un texte promulgué au journal officiel."
347
- },
348
- "TypeJoQuestion": {
349
- "type": "string",
350
- "enum": [
351
- "JO_QUESTION",
352
- "JO_LOI_DECRET",
353
- "JO_DEBAT"
354
- ],
355
- "description": "TypeQuestion de Journal Officiel."
356
- },
357
- "TextesQuestion": {
358
- "type": "object",
359
- "properties": {
360
- "texteQuestion": {
361
- "anyOf": [
362
- {
363
- "type": "array",
364
- "items": {
365
- "$ref": "#/definitions/TexteQuestion"
366
- }
367
- },
368
- {
369
- "$ref": "#/definitions/TexteQuestion"
370
- }
371
- ]
372
- }
373
- },
374
- "required": [
375
- "texteQuestion"
376
- ],
377
- "additionalProperties": false
378
- },
379
- "TexteQuestion": {
380
- "type": "object",
381
- "properties": {
382
- "infoJO": {
383
- "$ref": "#/definitions/InfoJoQuestion"
384
- },
385
- "texte": {
386
- "type": [
387
- "string",
388
- "null"
389
- ]
390
- },
391
- "erratum": {
392
- "type": "string"
393
- }
394
- },
395
- "required": [
396
- "infoJO",
397
- "texte"
398
- ],
399
- "additionalProperties": false,
400
- "description": "Contenu de la question ou de la réponse."
401
- },
402
- "TextesReponse": {
403
- "type": "object",
404
- "properties": {
405
- "texteReponse": {
406
- "anyOf": [
407
- {
408
- "type": "array",
409
- "items": {
410
- "$ref": "#/definitions/TexteQuestion"
411
- }
412
- },
413
- {
414
- "$ref": "#/definitions/TexteQuestion"
415
- }
416
- ]
417
- }
418
- },
419
- "required": [
420
- "texteReponse"
421
- ],
422
- "additionalProperties": false
423
- },
424
- "Cloture": {
425
- "type": "object",
426
- "properties": {
427
- "codeCloture": {
428
- "type": "string",
429
- "description": "Code de la clôture."
430
- },
431
- "libelleCloture": {
432
- "type": "string",
433
- "description": "Libellé de la clôture."
434
- },
435
- "dateCloture": {
436
- "anyOf": [
437
- {
438
- "type": "string",
439
- "format": "date-time"
440
- },
441
- {
442
- "type": "null"
443
- }
444
- ],
445
- "description": "Date de clôture."
446
- },
447
- "infoJO": {
448
- "anyOf": [
449
- {
450
- "$ref": "#/definitions/InfoJoQuestion"
451
- },
452
- {
453
- "type": "null"
454
- }
455
- ],
456
- "description": "Informations Journal Officiel liées à la clôture."
457
- }
458
- },
459
- "required": [
460
- "codeCloture",
461
- "libelleCloture",
462
- "dateCloture",
463
- "infoJO"
464
- ],
465
- "additionalProperties": false,
466
- "description": "Champs liés à la cloture de la question."
467
- },
468
- "Signalement": {
469
- "type": "object",
470
- "properties": {
471
- "dateDepotSignal": {
472
- "type": "string",
473
- "description": "Date de dépôt du signalement."
474
- },
475
- "infoJO": {
476
- "$ref": "#/definitions/InfoJoQuestion",
477
- "description": "Informations Journal Officiel du signalement."
478
- }
479
- },
480
- "required": [
481
- "dateDepotSignal",
482
- "infoJO"
483
- ],
484
- "additionalProperties": false,
485
- "description": "Signalement."
486
- },
487
- "Renouvellements": {
488
- "type": "object",
489
- "properties": {
490
- "renouvellement": {
491
- "anyOf": [
492
- {
493
- "type": "array",
494
- "items": {
495
- "$ref": "#/definitions/Renouvellement"
496
- }
497
- },
498
- {
499
- "$ref": "#/definitions/Renouvellement"
500
- }
501
- ]
502
- }
503
- },
504
- "required": [
505
- "renouvellement"
506
- ],
507
- "additionalProperties": false
508
- },
509
- "Renouvellement": {
510
- "type": "object",
511
- "properties": {
512
- "infoJO": {
513
- "$ref": "#/definitions/InfoJoQuestion"
514
- }
515
- },
516
- "required": [
517
- "infoJO"
518
- ],
519
- "additionalProperties": false,
520
- "description": "Renouvellement."
521
- },
522
- "Convert": {
523
- "type": "object",
524
- "additionalProperties": false
525
- },
526
- "invalidValue": {
527
- "$comment": "(typ: any, val: any, key: any = \"\") => never",
528
- "type": "object",
529
- "properties": {
530
- "namedArgs": {
531
- "type": "object",
532
- "properties": {
533
- "typ": {},
534
- "val": {},
535
- "key": {}
536
- },
537
- "required": [
538
- "typ",
539
- "val"
540
- ],
541
- "additionalProperties": false
542
- }
543
- }
544
- },
545
- "jsonToJSProps": {
546
- "$comment": "(typ: any) => any",
547
- "type": "object",
548
- "properties": {
549
- "namedArgs": {
550
- "type": "object",
551
- "properties": {
552
- "typ": {}
553
- },
554
- "required": [
555
- "typ"
556
- ],
557
- "additionalProperties": false
558
- }
559
- }
560
- },
561
- "jsToJSONProps": {
562
- "$comment": "(typ: any) => any",
563
- "type": "object",
564
- "properties": {
565
- "namedArgs": {
566
- "type": "object",
567
- "properties": {
568
- "typ": {}
569
- },
570
- "required": [
571
- "typ"
572
- ],
573
- "additionalProperties": false
574
- }
575
- }
576
- },
577
- "transform": {
578
- "$comment": "(val: any, typ: any, getProps: any, key: any = \"\") => any",
579
- "type": "object",
580
- "properties": {
581
- "namedArgs": {
582
- "type": "object",
583
- "properties": {
584
- "val": {},
585
- "typ": {},
586
- "getProps": {},
587
- "key": {}
588
- },
589
- "required": [
590
- "val",
591
- "typ",
592
- "getProps"
593
- ],
594
- "additionalProperties": false
595
- }
596
- }
597
- },
598
- "cast": {
599
- "$comment": "(val: any, typ: any) => T",
600
- "type": "object",
601
- "properties": {
602
- "namedArgs": {
603
- "type": "object",
604
- "properties": {
605
- "val": {},
606
- "typ": {}
607
- },
608
- "required": [
609
- "val",
610
- "typ"
611
- ],
612
- "additionalProperties": false
613
- }
614
- }
615
- },
616
- "uncast": {
617
- "$comment": "(val: T, typ: any) => any",
618
- "type": "object",
619
- "properties": {
620
- "namedArgs": {
621
- "type": "object",
622
- "properties": {
623
- "val": {
624
- "description": "Failed to correctly infer type"
625
- },
626
- "typ": {}
627
- },
628
- "required": [
629
- "val",
630
- "typ"
631
- ],
632
- "additionalProperties": false
633
- }
634
- }
635
- },
636
- "a": {
637
- "$comment": "(typ: any) =>undefined",
638
- "type": "object",
639
- "properties": {
640
- "namedArgs": {
641
- "type": "object",
642
- "properties": {
643
- "typ": {}
644
- },
645
- "required": [
646
- "typ"
647
- ],
648
- "additionalProperties": false
649
- }
650
- }
651
- },
652
- "u": {
653
- "$comment": "(...typs: any[]) =>undefined",
654
- "type": "object",
655
- "properties": {
656
- "namedArgs": {
657
- "type": "object",
658
- "properties": {
659
- "typs": {
660
- "type": "array",
661
- "items": {}
662
- }
663
- },
664
- "required": [
665
- "typs"
666
- ],
667
- "additionalProperties": false
668
- }
669
- }
670
- },
671
- "o": {
672
- "$comment": "(props: any[], additional: any) =>undefined",
673
- "type": "object",
674
- "properties": {
675
- "namedArgs": {
676
- "type": "object",
677
- "properties": {
678
- "props": {
679
- "type": "array",
680
- "items": {}
681
- },
682
- "additional": {}
683
- },
684
- "required": [
685
- "props",
686
- "additional"
687
- ],
688
- "additionalProperties": false
689
- }
690
- }
691
- },
692
- "r": {
693
- "$comment": "(name: string) =>undefined",
694
- "type": "object",
695
- "properties": {
696
- "namedArgs": {
697
- "type": "object",
698
- "properties": {
699
- "name": {
700
- "type": "string"
701
- }
702
- },
703
- "required": [
704
- "name"
705
- ],
706
- "additionalProperties": false
707
- }
708
- }
709
- }
710
- }
711
- }