@tricoteuses/assemblee 3.2.13 → 3.2.14
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 +38 -38
- package/README.md +153 -153
- package/lib/cleaners.js +2 -2
- package/lib/index.js +1 -1
- package/lib/{loaders-IUehTy2k.js → loaders-Bqy18Qs1.js} +1 -1
- package/lib/loaders.js +1 -1
- package/lib/schemas/raw/questions.d.ts +34 -34
- package/lib/scripts/monitor_open_data_updates.d.ts +1 -0
- package/lib/{scrutins-CiEVPprJ.js → scrutins-D1qWLlRT.js} +1 -1
- package/package.json +135 -134
package/LICENSE.md
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
# Tricoteuses-Assemblee
|
|
2
|
-
|
|
3
|
-
## _Retrieve, clean up & handle French Assemblée nationale's open data_
|
|
4
|
-
|
|
5
|
-
By:
|
|
6
|
-
|
|
7
|
-
- Henry Boisgibault <mailto:henry.boisgibault@proton.me>
|
|
8
|
-
- Jérémie Corpinot <mailto:jerem.freelance@codingbox.fr>
|
|
9
|
-
- Mathilde Couvreur <mailto:mathilde.couvreur@gmail.com>
|
|
10
|
-
- Loïc Dachary <mailto:loic@dachary.org>
|
|
11
|
-
- Pierre Drege <mailto:dregop@proton.me>
|
|
12
|
-
- Nelson Herbin <mailto:nelson@herbin.info>
|
|
13
|
-
- implicitdef
|
|
14
|
-
- Hélène Jonin <mailto:helene.jonin@gmail.com>
|
|
15
|
-
- Pauline Léon <mailto:paulineleon@tutanota.com>
|
|
16
|
-
- Paul-Henry Ngounou <mailto:ngpaulhenry@gmail.com>
|
|
17
|
-
- Emmanuel Raviart <mailto:emmanuel@raviart.com>
|
|
18
|
-
|
|
19
|
-
Copyright:
|
|
20
|
-
|
|
21
|
-
- © 2019, 2020, 2021 Loïc Dachary & Emmanuel Raviart
|
|
22
|
-
- © 2022 Emmanuel Raviart
|
|
23
|
-
- © 2023, 2024, 2025, 2026 Logora & Emmanuel Raviart
|
|
24
|
-
|
|
25
|
-
https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee
|
|
26
|
-
|
|
27
|
-
> Tricoteuses-Assemblee is free software; you can redistribute it and/or modify
|
|
28
|
-
> it under the terms of the GNU Affero General Public License as
|
|
29
|
-
> published by the Free Software Foundation, either version 3 of the
|
|
30
|
-
> License, or (at your option) any later version.
|
|
31
|
-
>
|
|
32
|
-
> Tricoteuses-Assemblee is distributed in the hope that it will be useful,
|
|
33
|
-
> but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
34
|
-
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
35
|
-
> GNU Affero General Public License for more details.
|
|
36
|
-
>
|
|
37
|
-
> You should have received a copy of the GNU Affero General Public License
|
|
38
|
-
> along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
1
|
+
# Tricoteuses-Assemblee
|
|
2
|
+
|
|
3
|
+
## _Retrieve, clean up & handle French Assemblée nationale's open data_
|
|
4
|
+
|
|
5
|
+
By:
|
|
6
|
+
|
|
7
|
+
- Henry Boisgibault <mailto:henry.boisgibault@proton.me>
|
|
8
|
+
- Jérémie Corpinot <mailto:jerem.freelance@codingbox.fr>
|
|
9
|
+
- Mathilde Couvreur <mailto:mathilde.couvreur@gmail.com>
|
|
10
|
+
- Loïc Dachary <mailto:loic@dachary.org>
|
|
11
|
+
- Pierre Drege <mailto:dregop@proton.me>
|
|
12
|
+
- Nelson Herbin <mailto:nelson@herbin.info>
|
|
13
|
+
- implicitdef
|
|
14
|
+
- Hélène Jonin <mailto:helene.jonin@gmail.com>
|
|
15
|
+
- Pauline Léon <mailto:paulineleon@tutanota.com>
|
|
16
|
+
- Paul-Henry Ngounou <mailto:ngpaulhenry@gmail.com>
|
|
17
|
+
- Emmanuel Raviart <mailto:emmanuel@raviart.com>
|
|
18
|
+
|
|
19
|
+
Copyright:
|
|
20
|
+
|
|
21
|
+
- © 2019, 2020, 2021 Loïc Dachary & Emmanuel Raviart
|
|
22
|
+
- © 2022 Emmanuel Raviart
|
|
23
|
+
- © 2023, 2024, 2025, 2026 Logora & Emmanuel Raviart
|
|
24
|
+
|
|
25
|
+
https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee
|
|
26
|
+
|
|
27
|
+
> Tricoteuses-Assemblee is free software; you can redistribute it and/or modify
|
|
28
|
+
> it under the terms of the GNU Affero General Public License as
|
|
29
|
+
> published by the Free Software Foundation, either version 3 of the
|
|
30
|
+
> License, or (at your option) any later version.
|
|
31
|
+
>
|
|
32
|
+
> Tricoteuses-Assemblee is distributed in the hope that it will be useful,
|
|
33
|
+
> but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
34
|
+
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
35
|
+
> GNU Affero General Public License for more details.
|
|
36
|
+
>
|
|
37
|
+
> You should have received a copy of the GNU Affero General Public License
|
|
38
|
+
> along with this program. If not, see <http://www.gnu.org/licenses/>.
|
package/README.md
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
# Tricoteuses-Assemblee
|
|
2
|
-
|
|
3
|
-
## _Retrieve, clean up & handle French Assemblée nationale's open data_
|
|
4
|
-
|
|
5
|
-
_Tricoteuses Légifrance_ is free and open source software.
|
|
6
|
-
|
|
7
|
-
- [software repository](https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee)
|
|
8
|
-
- [GNU Affero General Public License version 3 or greater](https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee/-/tree/master/LICENSE.md)
|
|
9
|
-
|
|
10
|
-
## documentation
|
|
11
|
-
|
|
12
|
-
- [Architecture](doc/architecture.md)
|
|
13
|
-
- [Browser Usage](doc/BROWSER_USAGE.md) - Using this package in browser/Vite projects
|
|
14
|
-
|
|
15
|
-
## Installation
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
git clone https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee
|
|
19
|
-
cd tricoteuses-assemblee/
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npm install
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Download and clean data
|
|
27
|
-
|
|
28
|
-
### Basic usage
|
|
29
|
-
|
|
30
|
-
Create a directory to store the data, then run the following command to download, reorganize and clean the data.
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
mkdir ../assemblee-data/
|
|
34
|
-
npm run data:download ../assemblee-data
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Available Commands
|
|
38
|
-
|
|
39
|
-
- `npm run data:download <dir>`: Download, reorganize, and clean data
|
|
40
|
-
- `npm run data:retrieve_open_data <dir>`: Download raw data files.
|
|
41
|
-
- `npm run data:reorganize_data <dir>`: Reorganize raw files by entity.
|
|
42
|
-
- `npm run data:clean_data <dir>`: Clean and validate reorganized files.
|
|
43
|
-
- `npm run data:retrieve_deputes_photos <dir>`: Retrieval of députés' pictures from Assemblée nationale's website
|
|
44
|
-
- `npm run data:retrieve_senateurs_photos <dir>`: Retrieval of sénateurs' pictures from Assemblée nationale's website
|
|
45
|
-
- `npm run data:retrieve_documents <dir>`: Retrieval of legislative documents from Assemblée nationale's website
|
|
46
|
-
- `npm run data:retrieve_pending_amendements <dir>`: Retrieval of pending amendments from Assemblée nationale's website (waiting to be processed by Assemblée services)
|
|
47
|
-
|
|
48
|
-
_Notes_:
|
|
49
|
-
|
|
50
|
-
- Reorganized files (generated by the _data:reorganize_data_ command) are also available in [Tricoteuses / Data / Données brutes de l'Assemblée](https://git.en-root.org/tricoteuses/data/assemblee-brut). They are updated on a regular basis.
|
|
51
|
-
- Split & cleaned files (generated by the _data:clean_data_ command) are also available in [Tricoteuses / Data / Données nettoyées de l'Assemblée](https://git.en-root.org/tricoteuses/data/assemblee-nettoye) with the `_nettoye` suffix. They are updated on a regular basis.
|
|
52
|
-
|
|
53
|
-
### Filtering Options
|
|
54
|
-
|
|
55
|
-
Downloading and cleaning all the data is long and takes up a lot of disk space. It is possible to choose the type of data that you want to retrieve to reduce the load.
|
|
56
|
-
|
|
57
|
-
Examples:
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
# Only download amendments
|
|
61
|
-
npm run data:download ../assemblee-data -- -k Amendements
|
|
62
|
-
|
|
63
|
-
# Only process 16th and 17th legislatures
|
|
64
|
-
npm run data:download ../assemblee-data -- -l 16 -l 17
|
|
65
|
-
|
|
66
|
-
# Retrieve comptes rendus de seance and commissions for one legislature
|
|
67
|
-
npm run data:retrieve_open_data ../assemblee-data -- --categories ComptesRendus --legislature 17 --fetchCrCommissions
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Common Options
|
|
71
|
-
|
|
72
|
-
- `--categories` or `-k <name>`: Filter by dataset categories (Available options : `ActeursEtOrganes`, `Agendas`, `Amendements`, `DossiersLegislatifs`, `Photos`, `Scrutins`, `Questions`, `ComptesRendus`)
|
|
73
|
-
|
|
74
|
-
- `--legislature` or `-l <number>`: Specify one or more legislatures to process (e.g., `-l 15 -l 16`)
|
|
75
|
-
- `--dataDir <path>` (Mandatory): Path to the working directory where all data is stored (required)
|
|
76
|
-
- `--silent` or `-s`: Disable logging
|
|
77
|
-
- `--verbose` or `-v`: Enable verbose logging
|
|
78
|
-
- `--fetch` or `-f`: Force re-download of data even if already present
|
|
79
|
-
- `--commit` or `-c`: Automatically commit cleaned data
|
|
80
|
-
- `--pull` or `-p`: Pull repositories before starting
|
|
81
|
-
- `--clone` or `-C <url>`: Clone Git repositories from a remote group or organization
|
|
82
|
-
- `--remote` or `-r <name>`: Push commits to specified Git remote(s)
|
|
83
|
-
- `--keepDir`: Keep Dir (Implement before cleaning data)
|
|
84
|
-
- `--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`)
|
|
85
|
-
|
|
86
|
-
If you use such options, use them in all subsequent commands too (_data:regorganize_data_ and _data:clean_data_).
|
|
87
|
-
|
|
88
|
-
### Options for Data Retrieval
|
|
89
|
-
|
|
90
|
-
With `data:retrieve_open_data`,
|
|
91
|
-
|
|
92
|
-
- use `--categories=ComptesRendus` to retrieve comptes rendus de séance for the selected legislature(s).
|
|
93
|
-
|
|
94
|
-
Note:
|
|
95
|
-
|
|
96
|
-
- Comptes-rendus & videos of commissions are retrieved when cleaning agendas data.
|
|
97
|
-
|
|
98
|
-
### Options for Cleaning Data
|
|
99
|
-
|
|
100
|
-
- `--dataset` or `-d <name>`: Clean a specific dataset only
|
|
101
|
-
- `--fetchCrCommissions`: Retrieve and parse CR commissions
|
|
102
|
-
- `--fetchVideos`: Retrieve videos
|
|
103
|
-
- `--fetchDocuments` : Specify to retrieve documents
|
|
104
|
-
- `--no-reset-after-commit`: Skip Git reset after committing (useful to preserve local changes)
|
|
105
|
-
- `--no-validate` or `-V`: Skip schema validation during cleaning
|
|
106
|
-
- `--parseDocuments`: Specify to parse documents into cleaned json
|
|
107
|
-
|
|
108
|
-
Note:
|
|
109
|
-
|
|
110
|
-
- use `--categories=Agendas` together with `--fetchCrCommissions` to retrieve comptes rendus de commission.
|
|
111
|
-
- use `--categories=Agendas` together with `--fetchVideos` to retrieve videos of commissions.
|
|
112
|
-
|
|
113
|
-
### Options for Retrieving Documents
|
|
114
|
-
|
|
115
|
-
- `--full` or `-f`: Retrieve all documents, even those already downloaded
|
|
116
|
-
- `--document-type` or `-T <type>`: Restrict to specific document types (e.g., `PION`)
|
|
117
|
-
|
|
118
|
-
## Download using Docker
|
|
119
|
-
|
|
120
|
-
A Docker image that downloads and cleans the data all at once is available. Build it locally or run it from the container registry.
|
|
121
|
-
Use the environment variables `LEGISLATURE` and `CATEGORIES` if needed.
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
docker run --pull always --name tricoteuses-assemblee -v ../assemblee-data:/app/assemblee-data -e LEGISLATURE=17 -d git.tricoteuses.fr/logiciels/tricoteuses-assemblee:latest
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
## Using the data
|
|
128
|
-
|
|
129
|
-
Once the data is downloaded and cleaned, you can use loaders to retrieve it.
|
|
130
|
-
To use loaders in your project, you can install the _@tricoteuses/assemblee_ package, and import the iterator functions that you need.
|
|
131
|
-
|
|
132
|
-
```bash
|
|
133
|
-
npm install @tricoteuses/assemblee
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
```js
|
|
137
|
-
import {
|
|
138
|
-
iterLoadAssembleeActeurs,
|
|
139
|
-
iterLoadAssembleeOrganes,
|
|
140
|
-
iterLoadAssembleeReunions,
|
|
141
|
-
iterLoadAssembleeScrutins,
|
|
142
|
-
iterLoadAssembleeDocuments,
|
|
143
|
-
iterLoadAssembleeDossiersParlementaires,
|
|
144
|
-
iterLoadAssembleeAmendements,
|
|
145
|
-
iterLoadAssembleeQuestions,
|
|
146
|
-
iterLoadAssembleeComptesRendus,
|
|
147
|
-
} from "@tricoteuses/assemblee/loaders"
|
|
148
|
-
|
|
149
|
-
// Pass data directory and legislature as arguments
|
|
150
|
-
for (const { acteur } of iterLoadAssembleeActeurs("../assemblee-data", 17)) {
|
|
151
|
-
console.log(acteur.uid)
|
|
152
|
-
}
|
|
153
|
-
```
|
|
1
|
+
# Tricoteuses-Assemblee
|
|
2
|
+
|
|
3
|
+
## _Retrieve, clean up & handle French Assemblée nationale's open data_
|
|
4
|
+
|
|
5
|
+
_Tricoteuses Légifrance_ is free and open source software.
|
|
6
|
+
|
|
7
|
+
- [software repository](https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee)
|
|
8
|
+
- [GNU Affero General Public License version 3 or greater](https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee/-/tree/master/LICENSE.md)
|
|
9
|
+
|
|
10
|
+
## documentation
|
|
11
|
+
|
|
12
|
+
- [Architecture](doc/architecture.md)
|
|
13
|
+
- [Browser Usage](doc/BROWSER_USAGE.md) - Using this package in browser/Vite projects
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
git clone https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee
|
|
19
|
+
cd tricoteuses-assemblee/
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Download and clean data
|
|
27
|
+
|
|
28
|
+
### Basic usage
|
|
29
|
+
|
|
30
|
+
Create a directory to store the data, then run the following command to download, reorganize and clean the data.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
mkdir ../assemblee-data/
|
|
34
|
+
npm run data:download ../assemblee-data
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Available Commands
|
|
38
|
+
|
|
39
|
+
- `npm run data:download <dir>`: Download, reorganize, and clean data
|
|
40
|
+
- `npm run data:retrieve_open_data <dir>`: Download raw data files.
|
|
41
|
+
- `npm run data:reorganize_data <dir>`: Reorganize raw files by entity.
|
|
42
|
+
- `npm run data:clean_data <dir>`: Clean and validate reorganized files.
|
|
43
|
+
- `npm run data:retrieve_deputes_photos <dir>`: Retrieval of députés' pictures from Assemblée nationale's website
|
|
44
|
+
- `npm run data:retrieve_senateurs_photos <dir>`: Retrieval of sénateurs' pictures from Assemblée nationale's website
|
|
45
|
+
- `npm run data:retrieve_documents <dir>`: Retrieval of legislative documents from Assemblée nationale's website
|
|
46
|
+
- `npm run data:retrieve_pending_amendements <dir>`: Retrieval of pending amendments from Assemblée nationale's website (waiting to be processed by Assemblée services)
|
|
47
|
+
|
|
48
|
+
_Notes_:
|
|
49
|
+
|
|
50
|
+
- Reorganized files (generated by the _data:reorganize_data_ command) are also available in [Tricoteuses / Data / Données brutes de l'Assemblée](https://git.en-root.org/tricoteuses/data/assemblee-brut). They are updated on a regular basis.
|
|
51
|
+
- Split & cleaned files (generated by the _data:clean_data_ command) are also available in [Tricoteuses / Data / Données nettoyées de l'Assemblée](https://git.en-root.org/tricoteuses/data/assemblee-nettoye) with the `_nettoye` suffix. They are updated on a regular basis.
|
|
52
|
+
|
|
53
|
+
### Filtering Options
|
|
54
|
+
|
|
55
|
+
Downloading and cleaning all the data is long and takes up a lot of disk space. It is possible to choose the type of data that you want to retrieve to reduce the load.
|
|
56
|
+
|
|
57
|
+
Examples:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Only download amendments
|
|
61
|
+
npm run data:download ../assemblee-data -- -k Amendements
|
|
62
|
+
|
|
63
|
+
# Only process 16th and 17th legislatures
|
|
64
|
+
npm run data:download ../assemblee-data -- -l 16 -l 17
|
|
65
|
+
|
|
66
|
+
# Retrieve comptes rendus de seance and commissions for one legislature
|
|
67
|
+
npm run data:retrieve_open_data ../assemblee-data -- --categories ComptesRendus --legislature 17 --fetchCrCommissions
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Common Options
|
|
71
|
+
|
|
72
|
+
- `--categories` or `-k <name>`: Filter by dataset categories (Available options : `ActeursEtOrganes`, `Agendas`, `Amendements`, `DossiersLegislatifs`, `Photos`, `Scrutins`, `Questions`, `ComptesRendus`)
|
|
73
|
+
|
|
74
|
+
- `--legislature` or `-l <number>`: Specify one or more legislatures to process (e.g., `-l 15 -l 16`)
|
|
75
|
+
- `--dataDir <path>` (Mandatory): Path to the working directory where all data is stored (required)
|
|
76
|
+
- `--silent` or `-s`: Disable logging
|
|
77
|
+
- `--verbose` or `-v`: Enable verbose logging
|
|
78
|
+
- `--fetch` or `-f`: Force re-download of data even if already present
|
|
79
|
+
- `--commit` or `-c`: Automatically commit cleaned data
|
|
80
|
+
- `--pull` or `-p`: Pull repositories before starting
|
|
81
|
+
- `--clone` or `-C <url>`: Clone Git repositories from a remote group or organization
|
|
82
|
+
- `--remote` or `-r <name>`: Push commits to specified Git remote(s)
|
|
83
|
+
- `--keepDir`: Keep Dir (Implement before cleaning data)
|
|
84
|
+
- `--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`)
|
|
85
|
+
|
|
86
|
+
If you use such options, use them in all subsequent commands too (_data:regorganize_data_ and _data:clean_data_).
|
|
87
|
+
|
|
88
|
+
### Options for Data Retrieval
|
|
89
|
+
|
|
90
|
+
With `data:retrieve_open_data`,
|
|
91
|
+
|
|
92
|
+
- use `--categories=ComptesRendus` to retrieve comptes rendus de séance for the selected legislature(s).
|
|
93
|
+
|
|
94
|
+
Note:
|
|
95
|
+
|
|
96
|
+
- Comptes-rendus & videos of commissions are retrieved when cleaning agendas data.
|
|
97
|
+
|
|
98
|
+
### Options for Cleaning Data
|
|
99
|
+
|
|
100
|
+
- `--dataset` or `-d <name>`: Clean a specific dataset only
|
|
101
|
+
- `--fetchCrCommissions`: Retrieve and parse CR commissions
|
|
102
|
+
- `--fetchVideos`: Retrieve videos
|
|
103
|
+
- `--fetchDocuments` : Specify to retrieve documents
|
|
104
|
+
- `--no-reset-after-commit`: Skip Git reset after committing (useful to preserve local changes)
|
|
105
|
+
- `--no-validate` or `-V`: Skip schema validation during cleaning
|
|
106
|
+
- `--parseDocuments`: Specify to parse documents into cleaned json
|
|
107
|
+
|
|
108
|
+
Note:
|
|
109
|
+
|
|
110
|
+
- use `--categories=Agendas` together with `--fetchCrCommissions` to retrieve comptes rendus de commission.
|
|
111
|
+
- use `--categories=Agendas` together with `--fetchVideos` to retrieve videos of commissions.
|
|
112
|
+
|
|
113
|
+
### Options for Retrieving Documents
|
|
114
|
+
|
|
115
|
+
- `--full` or `-f`: Retrieve all documents, even those already downloaded
|
|
116
|
+
- `--document-type` or `-T <type>`: Restrict to specific document types (e.g., `PION`)
|
|
117
|
+
|
|
118
|
+
## Download using Docker
|
|
119
|
+
|
|
120
|
+
A Docker image that downloads and cleans the data all at once is available. Build it locally or run it from the container registry.
|
|
121
|
+
Use the environment variables `LEGISLATURE` and `CATEGORIES` if needed.
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
docker run --pull always --name tricoteuses-assemblee -v ../assemblee-data:/app/assemblee-data -e LEGISLATURE=17 -d git.tricoteuses.fr/logiciels/tricoteuses-assemblee:latest
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Using the data
|
|
128
|
+
|
|
129
|
+
Once the data is downloaded and cleaned, you can use loaders to retrieve it.
|
|
130
|
+
To use loaders in your project, you can install the _@tricoteuses/assemblee_ package, and import the iterator functions that you need.
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
npm install @tricoteuses/assemblee
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
```js
|
|
137
|
+
import {
|
|
138
|
+
iterLoadAssembleeActeurs,
|
|
139
|
+
iterLoadAssembleeOrganes,
|
|
140
|
+
iterLoadAssembleeReunions,
|
|
141
|
+
iterLoadAssembleeScrutins,
|
|
142
|
+
iterLoadAssembleeDocuments,
|
|
143
|
+
iterLoadAssembleeDossiersParlementaires,
|
|
144
|
+
iterLoadAssembleeAmendements,
|
|
145
|
+
iterLoadAssembleeQuestions,
|
|
146
|
+
iterLoadAssembleeComptesRendus,
|
|
147
|
+
} from "@tricoteuses/assemblee/loaders"
|
|
148
|
+
|
|
149
|
+
// Pass data directory and legislature as arguments
|
|
150
|
+
for (const { acteur } of iterLoadAssembleeActeurs("../assemblee-data", 17)) {
|
|
151
|
+
console.log(acteur.uid)
|
|
152
|
+
}
|
|
153
|
+
```
|
package/lib/cleaners.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tt as e, Xn as t, rr as n } from "./scrutins-
|
|
1
|
+
import { Tt as e, Xn as t, rr as n } from "./scrutins-D1qWLlRT.js";
|
|
2
2
|
import { i as r, n as i, r as a, t as o } from "./amendements-C3RgTrF-.js";
|
|
3
|
-
import "./loaders-
|
|
3
|
+
import "./loaders-Bqy18Qs1.js";
|
|
4
4
|
import s from "node:assert";
|
|
5
5
|
import "fs-extra";
|
|
6
6
|
import "node:path";
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as ee, L as te, M as ne, N as re, O as ie, P as ae, R as oe, S as se, T as ce, U as le, V as ue, W as de, _ as fe, a as pe, at as me, b as he, c as ge, ct as _e, d as ve, dt as ye, f as u, ft as d, g as f, h as p, ht as m, i as h, it as g, j as _, k as v, l as y, lt as b, m as x, mt as S, n as C, o as w, ot as T, p as E, pt as D, q as O, r as k, s as A, st as j, t as M, u as N, ut as P, v as be, w as xe, x as Se, y as Ce, z as we } from "./amendements-DmjkxpwG.js";
|
|
2
|
-
import { $ as Te, $n as Ee, $t as De, A as Oe, An as ke, Ar as Ae, At as je, B as Me, Bn as Ne, Br as Pe, Bt as Fe, C as Ie, Cn as Le, Cr as Re, Ct as ze, D as Be, Dn as Ve, Dr as He, E as Ue, En as We, Er as Ge, Et as Ke, F as qe, Fn as Je, Fr as Ye, Ft as Xe, G as Ze, Gn as Qe, Gr as $e, Gt as et, H as tt, Hn as nt, Hr as rt, Ht as it, I as at, In as ot, Ir as st, It as ct, J as lt, Jn as ut, Jr as dt, Jt as ft, K as pt, Kn as mt, Kr as ht, Kt as gt, L as _t, Ln as vt, Lr as yt, Lt as bt, M as xt, Mn as St, Mr as Ct, Mt as wt, N as Tt, Nn as Et, Nr as Dt, Nt as Ot, On as kt, Or as At, Ot as jt, P as Mt, Pn as Nt, Pr as Pt, Pt as Ft, Qn as It, Qt as Lt, R as Rt, Rn as zt, Rr as Bt, S as Vt, Sn as Ht, Sr as Ut, St as Wt, T as Gt, Tn as Kt, Tr as qt, Tt as Jt, U as Yt, Un as Xt, Ur as Zt, Ut as Qt, V as $t, Vn as en, Vr as tn, Vt as nn, W as rn, Wn as an, Wr as on, Wt as sn, X as cn, Xt as ln, Y as un, Yn as dn, Yr as fn, Yt as pn, Z as mn, Zn as hn, Zr as gn, Zt as _n, _ as vn, _n as yn, _r as bn, _t as xn, a as F, an as Sn, ar as Cn, at as wn, b as Tn, bn as En, br as Dn, bt as On, c as kn, cn as An, cr as jn, ct as Mn, d as Nn, dn as Pn, dr as Fn, dt as In, en as Ln, er as Rn, et as zn, f as Bn, fn as Vn, fr as Hn, ft as Un, g as Wn, gn as Gn, gr as Kn, gt as qn, h as Jn, hn as Yn, hr as Xn, ht as Zn, i as Qn, ir as $n, it as er, j as tr, jn as nr, jr as rr, jt as ir, k as ar, kn as or, kr as sr, kt as cr, ln as lr, lr as ur, lt as dr, m as fr, mn as pr, mr, mt as hr, n as gr, nn as _r, nr as vr, nt as yr, o as br, on as xr, or as Sr, ot as Cr, p as wr, pn as Tr, pr as Er, pt as Dr, q as Or, qn as kr, qr as Ar, qt as jr, r as Mr, rn as Nr, rt as Pr, s as Fr, sn as Ir, sr as Lr, st as Rr, t as zr, tn as Br, tr as Vr, tt as Hr, u as Ur, un as Wr, ur as Gr, ut as Kr, v as qr, vn as Jr, vr as Yr, vt as Xr, w as Zr, wn as Qr, wr as $r, wt as ei, x as ti, xn as ni, xr as ri, xt as ii, y as ai, yn as oi, yr as si, yt as ci, z as li, zn as ui, zr as di, zt as fi } from "./scrutins-
|
|
2
|
+
import { $ as Te, $n as Ee, $t as De, A as Oe, An as ke, Ar as Ae, At as je, B as Me, Bn as Ne, Br as Pe, Bt as Fe, C as Ie, Cn as Le, Cr as Re, Ct as ze, D as Be, Dn as Ve, Dr as He, E as Ue, En as We, Er as Ge, Et as Ke, F as qe, Fn as Je, Fr as Ye, Ft as Xe, G as Ze, Gn as Qe, Gr as $e, Gt as et, H as tt, Hn as nt, Hr as rt, Ht as it, I as at, In as ot, Ir as st, It as ct, J as lt, Jn as ut, Jr as dt, Jt as ft, K as pt, Kn as mt, Kr as ht, Kt as gt, L as _t, Ln as vt, Lr as yt, Lt as bt, M as xt, Mn as St, Mr as Ct, Mt as wt, N as Tt, Nn as Et, Nr as Dt, Nt as Ot, On as kt, Or as At, Ot as jt, P as Mt, Pn as Nt, Pr as Pt, Pt as Ft, Qn as It, Qt as Lt, R as Rt, Rn as zt, Rr as Bt, S as Vt, Sn as Ht, Sr as Ut, St as Wt, T as Gt, Tn as Kt, Tr as qt, Tt as Jt, U as Yt, Un as Xt, Ur as Zt, Ut as Qt, V as $t, Vn as en, Vr as tn, Vt as nn, W as rn, Wn as an, Wr as on, Wt as sn, X as cn, Xt as ln, Y as un, Yn as dn, Yr as fn, Yt as pn, Z as mn, Zn as hn, Zr as gn, Zt as _n, _ as vn, _n as yn, _r as bn, _t as xn, a as F, an as Sn, ar as Cn, at as wn, b as Tn, bn as En, br as Dn, bt as On, c as kn, cn as An, cr as jn, ct as Mn, d as Nn, dn as Pn, dr as Fn, dt as In, en as Ln, er as Rn, et as zn, f as Bn, fn as Vn, fr as Hn, ft as Un, g as Wn, gn as Gn, gr as Kn, gt as qn, h as Jn, hn as Yn, hr as Xn, ht as Zn, i as Qn, ir as $n, it as er, j as tr, jn as nr, jr as rr, jt as ir, k as ar, kn as or, kr as sr, kt as cr, ln as lr, lr as ur, lt as dr, m as fr, mn as pr, mr, mt as hr, n as gr, nn as _r, nr as vr, nt as yr, o as br, on as xr, or as Sr, ot as Cr, p as wr, pn as Tr, pr as Er, pt as Dr, q as Or, qn as kr, qr as Ar, qt as jr, r as Mr, rn as Nr, rt as Pr, s as Fr, sn as Ir, sr as Lr, st as Rr, t as zr, tn as Br, tr as Vr, tt as Hr, u as Ur, un as Wr, ur as Gr, ut as Kr, v as qr, vn as Jr, vr as Yr, vt as Xr, w as Zr, wn as Qr, wr as $r, wt as ei, x as ti, xn as ni, xr as ri, xt as ii, y as ai, yn as oi, yr as si, yt as ci, z as li, zn as ui, zr as di, zt as fi } from "./scrutins-D1qWLlRT.js";
|
|
3
3
|
//#region src/api.ts
|
|
4
4
|
var I = /* @__PURE__ */ function(e) {
|
|
5
5
|
return e.Amendements = "amendements", e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./amendements-DmjkxpwG.js";
|
|
2
|
-
import { An as t, Dn as n, Dt as r, En as i, O as a, On as o, Q as s, Rt as c, Xr as l, in as u, jn as d, kn as f, l as p } from "./scrutins-
|
|
2
|
+
import { An as t, Dn as n, Dt as r, En as i, O as a, On as o, Q as s, Rt as c, Xr as l, in as u, jn as d, kn as f, l as p } from "./scrutins-D1qWLlRT.js";
|
|
3
3
|
import { getChangedFilesSinceCommit as m } from "./git.js";
|
|
4
4
|
import h from "node:assert";
|
|
5
5
|
import g from "fs-extra";
|
package/lib/loaders.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "./loaders-
|
|
1
|
+
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "./loaders-Bqy18Qs1.js";
|
|
2
2
|
export { e as EnabledDatasets, v as datasets, p as iterLoadAssembleeActeurs, g as iterLoadAssembleeAmendements, u as iterLoadAssembleeComptesRendus, r as iterLoadAssembleeDocuments, m as iterLoadAssembleeDossiersParlementaires, _ as iterLoadAssembleeOrganes, a as iterLoadAssembleeQuestions, d as iterLoadAssembleeReunions, y as iterLoadAssembleeScrutins, o as loadAssembleeData, s as loadAssembleeDataFromBigFiles, h as loadAssembleeDocumentFile, f as loadAssembleePhotosDeputes, l as loadAssembleePhotosSenateurs, c as pathFromCompteRenduUid, n as pathFromDocumentUid, b as pathFromDossierParlementaireUid, S as pathFromQuestionUid, i as pathFromReunionUid, x as pathFromScrutinUid, t as walkDir };
|
|
@@ -107,7 +107,7 @@ export declare const InfoJoRawSchema: z.ZodObject<{
|
|
|
107
107
|
JO_QUESTION: "JO_QUESTION";
|
|
108
108
|
JO_DEBAT: "JO_DEBAT";
|
|
109
109
|
}>>;
|
|
110
|
-
dateJO: z.
|
|
110
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
111
111
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
112
112
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
113
113
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -142,7 +142,7 @@ export declare const MinAttribElementRawSchema: z.ZodObject<{
|
|
|
142
142
|
JO_QUESTION: "JO_QUESTION";
|
|
143
143
|
JO_DEBAT: "JO_DEBAT";
|
|
144
144
|
}>>;
|
|
145
|
-
dateJO: z.
|
|
145
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
146
146
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
147
147
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
148
148
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -166,7 +166,7 @@ export declare const MinAttribsRawSchema: z.ZodObject<{
|
|
|
166
166
|
JO_QUESTION: "JO_QUESTION";
|
|
167
167
|
JO_DEBAT: "JO_DEBAT";
|
|
168
168
|
}>>;
|
|
169
|
-
dateJO: z.
|
|
169
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
170
170
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
171
171
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
172
172
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -190,7 +190,7 @@ export declare const TexteQuestionRawSchema: z.ZodObject<{
|
|
|
190
190
|
JO_QUESTION: "JO_QUESTION";
|
|
191
191
|
JO_DEBAT: "JO_DEBAT";
|
|
192
192
|
}>>;
|
|
193
|
-
dateJO: z.
|
|
193
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
194
194
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
195
195
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
196
196
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -211,7 +211,7 @@ export declare const TextesQuestionRawSchema: z.ZodObject<{
|
|
|
211
211
|
JO_QUESTION: "JO_QUESTION";
|
|
212
212
|
JO_DEBAT: "JO_DEBAT";
|
|
213
213
|
}>>;
|
|
214
|
-
dateJO: z.
|
|
214
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
215
215
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
216
216
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
217
217
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -233,7 +233,7 @@ export declare const TextesReponseRawSchema: z.ZodObject<{
|
|
|
233
233
|
JO_QUESTION: "JO_QUESTION";
|
|
234
234
|
JO_DEBAT: "JO_DEBAT";
|
|
235
235
|
}>>;
|
|
236
|
-
dateJO: z.
|
|
236
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
237
237
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
238
238
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
239
239
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -257,7 +257,7 @@ export declare const ClotureRawSchema: z.ZodObject<{
|
|
|
257
257
|
JO_QUESTION: "JO_QUESTION";
|
|
258
258
|
JO_DEBAT: "JO_DEBAT";
|
|
259
259
|
}>>;
|
|
260
|
-
dateJO: z.
|
|
260
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
261
261
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
262
262
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
263
263
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -276,7 +276,7 @@ export declare const SignalementRawSchema: z.ZodObject<{
|
|
|
276
276
|
JO_QUESTION: "JO_QUESTION";
|
|
277
277
|
JO_DEBAT: "JO_DEBAT";
|
|
278
278
|
}>>;
|
|
279
|
-
dateJO: z.
|
|
279
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
280
280
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
281
281
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
282
282
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -294,7 +294,7 @@ export declare const RenouvellementRawSchema: z.ZodObject<{
|
|
|
294
294
|
JO_QUESTION: "JO_QUESTION";
|
|
295
295
|
JO_DEBAT: "JO_DEBAT";
|
|
296
296
|
}>>;
|
|
297
|
-
dateJO: z.
|
|
297
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
298
298
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
299
299
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
300
300
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -313,7 +313,7 @@ export declare const RenouvellementRawsSchema: z.ZodObject<{
|
|
|
313
313
|
JO_QUESTION: "JO_QUESTION";
|
|
314
314
|
JO_DEBAT: "JO_DEBAT";
|
|
315
315
|
}>>;
|
|
316
|
-
dateJO: z.
|
|
316
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
317
317
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
318
318
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
319
319
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -375,7 +375,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
375
375
|
JO_QUESTION: "JO_QUESTION";
|
|
376
376
|
JO_DEBAT: "JO_DEBAT";
|
|
377
377
|
}>>;
|
|
378
|
-
dateJO: z.
|
|
378
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
379
379
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
380
380
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
381
381
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -396,7 +396,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
396
396
|
JO_QUESTION: "JO_QUESTION";
|
|
397
397
|
JO_DEBAT: "JO_DEBAT";
|
|
398
398
|
}>>;
|
|
399
|
-
dateJO: z.
|
|
399
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
400
400
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
401
401
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
402
402
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -414,7 +414,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
414
414
|
JO_QUESTION: "JO_QUESTION";
|
|
415
415
|
JO_DEBAT: "JO_DEBAT";
|
|
416
416
|
}>>;
|
|
417
|
-
dateJO: z.
|
|
417
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
418
418
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
419
419
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
420
420
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -434,7 +434,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
434
434
|
JO_QUESTION: "JO_QUESTION";
|
|
435
435
|
JO_DEBAT: "JO_DEBAT";
|
|
436
436
|
}>>;
|
|
437
|
-
dateJO: z.
|
|
437
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
438
438
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
439
439
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
440
440
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -449,7 +449,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
449
449
|
JO_QUESTION: "JO_QUESTION";
|
|
450
450
|
JO_DEBAT: "JO_DEBAT";
|
|
451
451
|
}>>;
|
|
452
|
-
dateJO: z.
|
|
452
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
453
453
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
454
454
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
455
455
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -464,7 +464,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
464
464
|
JO_QUESTION: "JO_QUESTION";
|
|
465
465
|
JO_DEBAT: "JO_DEBAT";
|
|
466
466
|
}>>;
|
|
467
|
-
dateJO: z.
|
|
467
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
468
468
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
469
469
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
470
470
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -528,7 +528,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
528
528
|
JO_QUESTION: "JO_QUESTION";
|
|
529
529
|
JO_DEBAT: "JO_DEBAT";
|
|
530
530
|
}>>;
|
|
531
|
-
dateJO: z.
|
|
531
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
532
532
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
533
533
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
534
534
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -549,7 +549,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
549
549
|
JO_QUESTION: "JO_QUESTION";
|
|
550
550
|
JO_DEBAT: "JO_DEBAT";
|
|
551
551
|
}>>;
|
|
552
|
-
dateJO: z.
|
|
552
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
553
553
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
554
554
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
555
555
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -567,7 +567,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
567
567
|
JO_QUESTION: "JO_QUESTION";
|
|
568
568
|
JO_DEBAT: "JO_DEBAT";
|
|
569
569
|
}>>;
|
|
570
|
-
dateJO: z.
|
|
570
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
571
571
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
572
572
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
573
573
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -587,7 +587,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
587
587
|
JO_QUESTION: "JO_QUESTION";
|
|
588
588
|
JO_DEBAT: "JO_DEBAT";
|
|
589
589
|
}>>;
|
|
590
|
-
dateJO: z.
|
|
590
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
591
591
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
592
592
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
593
593
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -602,7 +602,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
602
602
|
JO_QUESTION: "JO_QUESTION";
|
|
603
603
|
JO_DEBAT: "JO_DEBAT";
|
|
604
604
|
}>>;
|
|
605
|
-
dateJO: z.
|
|
605
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
606
606
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
607
607
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
608
608
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -617,7 +617,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
617
617
|
JO_QUESTION: "JO_QUESTION";
|
|
618
618
|
JO_DEBAT: "JO_DEBAT";
|
|
619
619
|
}>>;
|
|
620
|
-
dateJO: z.
|
|
620
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
621
621
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
622
622
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
623
623
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -682,7 +682,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
682
682
|
JO_QUESTION: "JO_QUESTION";
|
|
683
683
|
JO_DEBAT: "JO_DEBAT";
|
|
684
684
|
}>>;
|
|
685
|
-
dateJO: z.
|
|
685
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
686
686
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
687
687
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
688
688
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -703,7 +703,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
703
703
|
JO_QUESTION: "JO_QUESTION";
|
|
704
704
|
JO_DEBAT: "JO_DEBAT";
|
|
705
705
|
}>>;
|
|
706
|
-
dateJO: z.
|
|
706
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
707
707
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
708
708
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
709
709
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -721,7 +721,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
721
721
|
JO_QUESTION: "JO_QUESTION";
|
|
722
722
|
JO_DEBAT: "JO_DEBAT";
|
|
723
723
|
}>>;
|
|
724
|
-
dateJO: z.
|
|
724
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
725
725
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
726
726
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
727
727
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -741,7 +741,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
741
741
|
JO_QUESTION: "JO_QUESTION";
|
|
742
742
|
JO_DEBAT: "JO_DEBAT";
|
|
743
743
|
}>>;
|
|
744
|
-
dateJO: z.
|
|
744
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
745
745
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
746
746
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
747
747
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -756,7 +756,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
756
756
|
JO_QUESTION: "JO_QUESTION";
|
|
757
757
|
JO_DEBAT: "JO_DEBAT";
|
|
758
758
|
}>>;
|
|
759
|
-
dateJO: z.
|
|
759
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
760
760
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
761
761
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
762
762
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -771,7 +771,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
771
771
|
JO_QUESTION: "JO_QUESTION";
|
|
772
772
|
JO_DEBAT: "JO_DEBAT";
|
|
773
773
|
}>>;
|
|
774
|
-
dateJO: z.
|
|
774
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
775
775
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
776
776
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
777
777
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -837,7 +837,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
837
837
|
JO_QUESTION: "JO_QUESTION";
|
|
838
838
|
JO_DEBAT: "JO_DEBAT";
|
|
839
839
|
}>>;
|
|
840
|
-
dateJO: z.
|
|
840
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
841
841
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
842
842
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
843
843
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -858,7 +858,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
858
858
|
JO_QUESTION: "JO_QUESTION";
|
|
859
859
|
JO_DEBAT: "JO_DEBAT";
|
|
860
860
|
}>>;
|
|
861
|
-
dateJO: z.
|
|
861
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
862
862
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
863
863
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
864
864
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -876,7 +876,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
876
876
|
JO_QUESTION: "JO_QUESTION";
|
|
877
877
|
JO_DEBAT: "JO_DEBAT";
|
|
878
878
|
}>>;
|
|
879
|
-
dateJO: z.
|
|
879
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
880
880
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
881
881
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
882
882
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -896,7 +896,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
896
896
|
JO_QUESTION: "JO_QUESTION";
|
|
897
897
|
JO_DEBAT: "JO_DEBAT";
|
|
898
898
|
}>>;
|
|
899
|
-
dateJO: z.
|
|
899
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
900
900
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
901
901
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
902
902
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -911,7 +911,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
911
911
|
JO_QUESTION: "JO_QUESTION";
|
|
912
912
|
JO_DEBAT: "JO_DEBAT";
|
|
913
913
|
}>>;
|
|
914
|
-
dateJO: z.
|
|
914
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
915
915
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
916
916
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
917
917
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -926,7 +926,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
926
926
|
JO_QUESTION: "JO_QUESTION";
|
|
927
927
|
JO_DEBAT: "JO_DEBAT";
|
|
928
928
|
}>>;
|
|
929
|
-
dateJO: z.
|
|
929
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
930
930
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
931
931
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
932
932
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -917,7 +917,7 @@ var Tr = [
|
|
|
917
917
|
groupe: Mr
|
|
918
918
|
}), I = l.object({
|
|
919
919
|
typeJO: Ar.nullable(),
|
|
920
|
-
dateJO:
|
|
920
|
+
dateJO: n().describe("Date de publication au Journal Officiel"),
|
|
921
921
|
pageJO: c().nullable(),
|
|
922
922
|
numJO: c().nullable(),
|
|
923
923
|
urlLegifrance: c().nullable(),
|
package/package.json
CHANGED
|
@@ -1,134 +1,135 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tricoteuses/assemblee",
|
|
3
|
-
"version": "3.2.
|
|
4
|
-
"description": "Retrieve, clean up & handle French Assemblée nationale's open data",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"Assemblée nationale",
|
|
7
|
-
"France",
|
|
8
|
-
"open data",
|
|
9
|
-
"Parliament"
|
|
10
|
-
],
|
|
11
|
-
"author": "Emmanuel Raviart <emmanuel@raviart.com>",
|
|
12
|
-
"contributors": [
|
|
13
|
-
"Henry Boisgibault <henry.boisgibault@proton.me>",
|
|
14
|
-
"Jérémie Corpinot <jerem.freelance@codingbox.fr>",
|
|
15
|
-
"Mathilde Couvreur <mathilde.couvreur@gmail.com>",
|
|
16
|
-
"Loïc Dachary <loic@dachary.org>",
|
|
17
|
-
"Pierre Drege <dregop@proton.me>",
|
|
18
|
-
"Nelson Herbin <nelson@herbin.info>",
|
|
19
|
-
"implicitdef",
|
|
20
|
-
"Hélène Jonin <helene.jonin@gmail.com>",
|
|
21
|
-
"Pauline Léon <paulineleon@tutanota.com>",
|
|
22
|
-
"Paul-Henry Ngounou <ngpaulhenry@gmail.com>"
|
|
23
|
-
],
|
|
24
|
-
"bugs": {
|
|
25
|
-
"url": "https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee/issues"
|
|
26
|
-
},
|
|
27
|
-
"homepage": "https://tricoteuses.fr/",
|
|
28
|
-
"license": "AGPL-3.0-or-later",
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee.git"
|
|
32
|
-
},
|
|
33
|
-
"type": "module",
|
|
34
|
-
"engines": {
|
|
35
|
-
"node": ">=20.0.0"
|
|
36
|
-
},
|
|
37
|
-
"files": [
|
|
38
|
-
"lib"
|
|
39
|
-
],
|
|
40
|
-
"exports": {
|
|
41
|
-
".": {
|
|
42
|
-
"typedoc": "./src/index.ts",
|
|
43
|
-
"import": "./lib/index.js",
|
|
44
|
-
"types": "./lib/index.d.ts"
|
|
45
|
-
},
|
|
46
|
-
"./cleaners": {
|
|
47
|
-
"typedoc": "./src/cleaners/index.ts",
|
|
48
|
-
"import": "./lib/cleaners.js",
|
|
49
|
-
"types": "./lib/cleaners/index.d.ts"
|
|
50
|
-
},
|
|
51
|
-
"./git": {
|
|
52
|
-
"typedoc": "./src/git.ts",
|
|
53
|
-
"import": "./lib/git.js",
|
|
54
|
-
"types": "./lib/git.d.ts"
|
|
55
|
-
},
|
|
56
|
-
"./loaders": {
|
|
57
|
-
"typedoc": "./src/loaders.ts",
|
|
58
|
-
"import": "./lib/loaders.js",
|
|
59
|
-
"types": "./lib/loaders.d.ts"
|
|
60
|
-
},
|
|
61
|
-
"./parsers": {
|
|
62
|
-
"typedoc": "./src/parsers/index.ts",
|
|
63
|
-
"import": "./lib/parsers.js",
|
|
64
|
-
"types": "./lib/parsers/index.d.ts"
|
|
65
|
-
},
|
|
66
|
-
"./package.json": "./package.json"
|
|
67
|
-
},
|
|
68
|
-
"publishConfig": {
|
|
69
|
-
"access": "public"
|
|
70
|
-
},
|
|
71
|
-
"scripts": {
|
|
72
|
-
"build": "vite build && npm run prettier",
|
|
73
|
-
"clean": "rimraf lib",
|
|
74
|
-
"data:clean_data": "tsx src/scripts/clean_reorganized_data.ts --no-validate",
|
|
75
|
-
"data:download": "tsx src/scripts/data-download.ts",
|
|
76
|
-
"data:
|
|
77
|
-
"data:
|
|
78
|
-
"data:
|
|
79
|
-
"data:
|
|
80
|
-
"data:
|
|
81
|
-
"data:
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"test
|
|
87
|
-
"
|
|
88
|
-
"type-check
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"deep-
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"node-
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"zod
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"@
|
|
109
|
-
"@types/
|
|
110
|
-
"@types/
|
|
111
|
-
"@types/
|
|
112
|
-
"@types/
|
|
113
|
-
"@types/
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"typedoc
|
|
125
|
-
"
|
|
126
|
-
"typescript
|
|
127
|
-
"
|
|
128
|
-
"vite
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tricoteuses/assemblee",
|
|
3
|
+
"version": "3.2.14",
|
|
4
|
+
"description": "Retrieve, clean up & handle French Assemblée nationale's open data",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Assemblée nationale",
|
|
7
|
+
"France",
|
|
8
|
+
"open data",
|
|
9
|
+
"Parliament"
|
|
10
|
+
],
|
|
11
|
+
"author": "Emmanuel Raviart <emmanuel@raviart.com>",
|
|
12
|
+
"contributors": [
|
|
13
|
+
"Henry Boisgibault <henry.boisgibault@proton.me>",
|
|
14
|
+
"Jérémie Corpinot <jerem.freelance@codingbox.fr>",
|
|
15
|
+
"Mathilde Couvreur <mathilde.couvreur@gmail.com>",
|
|
16
|
+
"Loïc Dachary <loic@dachary.org>",
|
|
17
|
+
"Pierre Drege <dregop@proton.me>",
|
|
18
|
+
"Nelson Herbin <nelson@herbin.info>",
|
|
19
|
+
"implicitdef",
|
|
20
|
+
"Hélène Jonin <helene.jonin@gmail.com>",
|
|
21
|
+
"Pauline Léon <paulineleon@tutanota.com>",
|
|
22
|
+
"Paul-Henry Ngounou <ngpaulhenry@gmail.com>"
|
|
23
|
+
],
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://tricoteuses.fr/",
|
|
28
|
+
"license": "AGPL-3.0-or-later",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee.git"
|
|
32
|
+
},
|
|
33
|
+
"type": "module",
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=20.0.0"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"lib"
|
|
39
|
+
],
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"typedoc": "./src/index.ts",
|
|
43
|
+
"import": "./lib/index.js",
|
|
44
|
+
"types": "./lib/index.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./cleaners": {
|
|
47
|
+
"typedoc": "./src/cleaners/index.ts",
|
|
48
|
+
"import": "./lib/cleaners.js",
|
|
49
|
+
"types": "./lib/cleaners/index.d.ts"
|
|
50
|
+
},
|
|
51
|
+
"./git": {
|
|
52
|
+
"typedoc": "./src/git.ts",
|
|
53
|
+
"import": "./lib/git.js",
|
|
54
|
+
"types": "./lib/git.d.ts"
|
|
55
|
+
},
|
|
56
|
+
"./loaders": {
|
|
57
|
+
"typedoc": "./src/loaders.ts",
|
|
58
|
+
"import": "./lib/loaders.js",
|
|
59
|
+
"types": "./lib/loaders.d.ts"
|
|
60
|
+
},
|
|
61
|
+
"./parsers": {
|
|
62
|
+
"typedoc": "./src/parsers/index.ts",
|
|
63
|
+
"import": "./lib/parsers.js",
|
|
64
|
+
"types": "./lib/parsers/index.d.ts"
|
|
65
|
+
},
|
|
66
|
+
"./package.json": "./package.json"
|
|
67
|
+
},
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "vite build && npm run prettier",
|
|
73
|
+
"clean": "rimraf lib",
|
|
74
|
+
"data:clean_data": "tsx src/scripts/clean_reorganized_data.ts --no-validate",
|
|
75
|
+
"data:download": "tsx src/scripts/data-download.ts",
|
|
76
|
+
"data:monitor_open_data_updates": "tsx src/scripts/monitor_open_data_updates.ts",
|
|
77
|
+
"data:reorganize_data": "tsx src/scripts/reorganize_data.ts --no-validate-raw",
|
|
78
|
+
"data:retrieve_deputes_photos": "tsx src/scripts/retrieve_deputes_photos.ts --fetch",
|
|
79
|
+
"data:retrieve_documents": "tsx src/scripts/retrieve_documents.ts",
|
|
80
|
+
"data:retrieve_open_data": "tsx src/scripts/retrieve_open_data.ts --fetch",
|
|
81
|
+
"data:retrieve_pending_amendements": "tsx src/scripts/retrieve_pending_amendments.ts --incremental",
|
|
82
|
+
"data:retrieve_senateurs_photos": "tsx src/scripts/retrieve_senateurs_photos.ts --fetch",
|
|
83
|
+
"lint": "eslint .",
|
|
84
|
+
"prepare": "npm run build",
|
|
85
|
+
"prettier": "prettier --write \"src/**/*.ts\"",
|
|
86
|
+
"test": "vitest run",
|
|
87
|
+
"test:iter_load": "tsx src/scripts/test_iter_load.ts",
|
|
88
|
+
"type-check": "tsc --noEmit",
|
|
89
|
+
"type-check:watch": "npm run type-check -- --watch"
|
|
90
|
+
},
|
|
91
|
+
"dependencies": {
|
|
92
|
+
"cheerio": "^1.2.0",
|
|
93
|
+
"date-fns": "^4.4.0",
|
|
94
|
+
"deep-equal": "^2.2.3",
|
|
95
|
+
"deep-object-diff": "^1.1.9",
|
|
96
|
+
"fast-xml-parser": "^5.9.3",
|
|
97
|
+
"fs-extra": "^11.3.5",
|
|
98
|
+
"glob": "^13.0.6",
|
|
99
|
+
"js-yaml": "^5.2.0",
|
|
100
|
+
"node-html-parser": "^8.0.3",
|
|
101
|
+
"node-stream-zip": "^1.15.0",
|
|
102
|
+
"p-limit": "^7.3.0",
|
|
103
|
+
"sharp": "^0.35.2",
|
|
104
|
+
"zod": "^4.4.3",
|
|
105
|
+
"zod-opts": "^1.0.0"
|
|
106
|
+
},
|
|
107
|
+
"devDependencies": {
|
|
108
|
+
"@eslint/js": "^10.0.1",
|
|
109
|
+
"@types/deep-equal": "^1.0.4",
|
|
110
|
+
"@types/fs-extra": "^11.0.4",
|
|
111
|
+
"@types/js-yaml": "^4.0.9",
|
|
112
|
+
"@types/node": "^26.0.1",
|
|
113
|
+
"@types/temp": "^0.9.4",
|
|
114
|
+
"@types/unzipper": "^0.10.11",
|
|
115
|
+
"ajv": "^8.20.0",
|
|
116
|
+
"eslint": "^10.6.0",
|
|
117
|
+
"globals": "^17.7.0",
|
|
118
|
+
"prettier": "^3.9.1",
|
|
119
|
+
"rimraf": "^6.1.3",
|
|
120
|
+
"temp": "^0.9.4",
|
|
121
|
+
"ts-json-schema-generator": "^2.9.0",
|
|
122
|
+
"tslib": "^2.8.1",
|
|
123
|
+
"tsx": "^4.22.4",
|
|
124
|
+
"typedoc": "^0.28.19",
|
|
125
|
+
"typedoc-plugin-markdown": "^4.12.0",
|
|
126
|
+
"typescript": "^6.0.3",
|
|
127
|
+
"typescript-eslint": "^8.62.0",
|
|
128
|
+
"vite": "^8.1.0",
|
|
129
|
+
"vite-plugin-dts": "^5.0.3",
|
|
130
|
+
"vitest": "^4.1.9"
|
|
131
|
+
},
|
|
132
|
+
"overrides": {
|
|
133
|
+
"@microsoft/api-extractor": "7.55.0"
|
|
134
|
+
}
|
|
135
|
+
}
|