@tricoteuses/assemblee 3.3.8 → 3.4.0

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 (40) hide show
  1. package/README.md +11 -2
  2. package/lib/{amendements-Co_qQeCl.js → amendements-D2X2TneW.js} +1 -1
  3. package/lib/{amendements-s-5GIY_X.js → amendements-DSXfagiR.js} +680 -710
  4. package/lib/cleaners.js +3 -3
  5. package/lib/derouleur.d.ts +77 -0
  6. package/lib/derouleur.js +87 -0
  7. package/lib/eliasse.d.ts +164 -0
  8. package/lib/eliasse.js +150 -0
  9. package/lib/git.js +1 -1
  10. package/lib/index.js +7 -4
  11. package/lib/{loaders-Bdc1oCGG.js → loaders-DYFDjudN.js} +2 -2
  12. package/lib/loaders.js +1 -1
  13. package/lib/parsers.js +492 -448
  14. package/lib/registries.d.ts +8 -8
  15. package/lib/schemas/clean/acteurs_et_organes.d.ts +37 -37
  16. package/lib/schemas/clean/amendements.d.ts +12 -12
  17. package/lib/schemas/clean/debats.d.ts +26 -26
  18. package/lib/schemas/clean/dossiers_legislatifs.d.ts +16 -16
  19. package/lib/schemas/clean/questions.d.ts +122 -122
  20. package/lib/schemas/clean/scrutins.d.ts +2 -2
  21. package/lib/schemas/enriched/acteurs_et_organes.d.ts +2 -2
  22. package/lib/schemas/enriched/amendements.d.ts +9 -9
  23. package/lib/schemas/enriched/dossiers_legislatifs.d.ts +12 -12
  24. package/lib/schemas/enriched/questions.d.ts +108 -108
  25. package/lib/schemas/enriched/scrutins.d.ts +2 -2
  26. package/lib/schemas/raw/acteurs_et_organes.d.ts +132 -132
  27. package/lib/schemas/raw/agendas.d.ts +97 -97
  28. package/lib/schemas/raw/amendements.d.ts +83 -83
  29. package/lib/schemas/raw/debats.d.ts +51 -51
  30. package/lib/schemas/raw/dossiers_legislatifs.d.ts +171 -171
  31. package/lib/schemas/raw/questions.d.ts +222 -222
  32. package/lib/schemas/raw/scrutins.d.ts +164 -164
  33. package/lib/scripts/dataset_safety.test.d.ts +1 -0
  34. package/lib/scripts/forgejo_pending_status.d.ts +9 -0
  35. package/lib/scripts/forgejo_pending_status.test.d.ts +1 -0
  36. package/lib/scripts/monitor_open_data_updates.d.ts +2 -0
  37. package/lib/scripts/shared/dataset-inputs.d.ts +5 -0
  38. package/lib/{scrutins-UjCZmd8a.js → scrutins-CGHd_VPY.js} +19 -18
  39. package/lib/zod_errors-DCnjCNGy.js +34 -0
  40. package/package.json +11 -1
package/README.md CHANGED
@@ -84,7 +84,16 @@ npm run data:retrieve_open_data ../assemblee-data -- --categories ComptesRendus
84
84
  - `--keepDir`: Keep Dir (Implement before cleaning data)
85
85
  - `--only-recent` (number): If files are already present, skip files that are above the specified number of days and skip old legislatures (e.g. `-only-recent 30`)
86
86
 
87
- If you use such options, use them in all subsequent commands too (_data:regorganize_data_ and _data:clean_data_).
87
+ If you use such options, use them in all subsequent commands too (_data:reorganize_data_ and _data:clean_data_).
88
+
89
+ Use `--dataset=Questions_ecrites_XVII` (or its `.json` filename) consistently for
90
+ retrieval, reorganization, raw validation and cleaning to process exactly one
91
+ dataset. Unknown names and names excluded by category/legislature fail before
92
+ output changes. Reorganization and cleaning preflight all selected input paths
93
+ before pulling or clearing outputs: missing, wrong-type or empty inputs are errors,
94
+ not instructions to publish an empty dataset. This is an input-presence guard,
95
+ not a proof that a nonempty archive is complete; retrieval and schema checks remain
96
+ necessary.
88
97
 
89
98
  ### Options for Data Retrieval
90
99
 
@@ -98,7 +107,7 @@ Note:
98
107
 
99
108
  ### Options for Cleaning Data
100
109
 
101
- - `--dataset` or `-d <name>`: Clean a specific dataset only
110
+ - `--dataset` or `-d <name>`: Process a specific dataset only (also supported by retrieval and reorganization)
102
111
  - `--fetchCrCommissions`: Retrieve and parse CR commissions
103
112
  - `--fetchVideos`: Retrieve videos
104
113
  - `--fetchDocuments` : Specify to retrieve documents
@@ -1,4 +1,4 @@
1
- import { j as e } from "./amendements-s-5GIY_X.js";
1
+ import { j as e } from "./amendements-DSXfagiR.js";
2
2
  import t from "node:assert";
3
3
  //#region src/cleaners/xml.ts
4
4
  var n = {