@tricoteuses/assemblee 2.1.2 → 2.2.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.
- package/LICENSE.md +1 -1
- package/README.md +7 -13
- package/lib/cleaners.js +50 -48
- package/lib/index-COAP8XeF.js +8733 -0
- package/lib/index.js +548 -943
- package/lib/{loaders-GjkDsv4D.js → loaders-Csd5rgG_.js} +2110 -1411
- package/lib/loaders.d.ts +4 -0
- package/lib/loaders.js +18 -17
- package/lib/parsers/compte_rendu_commission.d.ts +2 -0
- package/lib/parsers.js +583 -9288
- package/lib/raw_types/dossiers_legislatifs.d.ts +1 -1
- package/lib/schemas/compte_rendu_commission/CompteRenduCommission.json +63 -0
- package/lib/schemas/debats.json +6 -0
- package/lib/schemas/dossiers_legislatifs.json +5 -1
- package/lib/scripts/retrieve_documents.d.ts +9 -0
- package/lib/scripts/shared/cli_helpers.d.ts +1 -0
- package/lib/types/debats.d.ts +2 -0
- package/lib/types/dossiers_legislatifs.d.ts +5 -1
- package/package.json +5 -5
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "CompteRenduCommission",
|
|
4
|
+
"description": "Compte-rendu d'une réunion en commission d'examen d'un texte de loi",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"reunionRef": {
|
|
8
|
+
"description": "Référence vers la réunion",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"interventions": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"description": "Prise de parole d'un orateur",
|
|
16
|
+
"properties": {
|
|
17
|
+
"acteurRef": {
|
|
18
|
+
"description": "Référence à l'acteur",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"nomActeur": {
|
|
22
|
+
"description": "Nom de l'orateur",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"groupe": {
|
|
26
|
+
"description": "Groupe parlementaire de l'orateur",
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"amendementRef": {
|
|
30
|
+
"description": "Amendement relatif à la prise de parole",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"nomActeur"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"scrutins": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"description": "Prise de parole d'un orateur",
|
|
44
|
+
"properties": {
|
|
45
|
+
"amendementRef": {
|
|
46
|
+
"description": "Référence à l'amendement",
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"resultat": {
|
|
50
|
+
"description": "Résultat du scrutin",
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"amendementRef"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"interventions"
|
|
62
|
+
]
|
|
63
|
+
}
|
package/lib/schemas/debats.json
CHANGED
|
@@ -3502,7 +3502,11 @@
|
|
|
3502
3502
|
},
|
|
3503
3503
|
"isbn": {
|
|
3504
3504
|
"type": "string",
|
|
3505
|
-
"description": "Le numéro ISBN du document imprimé (habituellement null)."
|
|
3505
|
+
"description": "Le numéro ISBN (International Standard Book Number) du document imprimé (habituellement null)."
|
|
3506
|
+
},
|
|
3507
|
+
"issn": {
|
|
3508
|
+
"type": "string",
|
|
3509
|
+
"description": "Le numéro ISSN (International Standard Serial Number) du document imprimé (habituellement null)."
|
|
3506
3510
|
},
|
|
3507
3511
|
"nbPage": {
|
|
3508
3512
|
"type": "string",
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import { Document } from '../types/dossiers_legislatifs';
|
|
2
|
+
import { Reunion } from '../types/agendas';
|
|
2
3
|
export declare function downloadAndParse(document: Document, documentsDir: string, options: any): Promise<void>;
|
|
4
|
+
export declare function toRomanLegislature(num: number): string;
|
|
5
|
+
export declare function downloadAndParseReunionCompteRenduCommissions(reunion: Reunion, _notUsedParam: unknown, options: {
|
|
6
|
+
dataDir?: string;
|
|
7
|
+
parseDocuments?: boolean;
|
|
8
|
+
legislature: number;
|
|
9
|
+
fetchDocuments?: boolean;
|
|
10
|
+
fullCompteRenduCommissions?: boolean;
|
|
11
|
+
}): Promise<void>;
|
package/lib/types/debats.d.ts
CHANGED
|
@@ -764,9 +764,13 @@ export interface Imprimerie {
|
|
|
764
764
|
*/
|
|
765
765
|
dian?: string;
|
|
766
766
|
/**
|
|
767
|
-
* Le numéro ISBN du document imprimé (habituellement null).
|
|
767
|
+
* Le numéro ISBN (International Standard Book Number) du document imprimé (habituellement null).
|
|
768
768
|
*/
|
|
769
769
|
isbn?: string;
|
|
770
|
+
/**
|
|
771
|
+
* Le numéro ISSN (International Standard Serial Number) du document imprimé (habituellement null).
|
|
772
|
+
*/
|
|
773
|
+
issn?: string;
|
|
770
774
|
/**
|
|
771
775
|
* Nombre de pages du document imprimé.
|
|
772
776
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tricoteuses/assemblee",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Retrieve, clean up & handle French Assemblée nationale's open data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Assemblée nationale",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"Loïc Dachary <loic@dachary.org>"
|
|
15
15
|
],
|
|
16
16
|
"bugs": {
|
|
17
|
-
"url": "https://git.
|
|
17
|
+
"url": "https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee/issues"
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://tricoteuses.fr/",
|
|
20
20
|
"license": "AGPL-3.0-or-later",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://git.
|
|
23
|
+
"url": "https://git.tricoteuses.fr/logiciels/tricoteuses-assemblee.git"
|
|
24
24
|
},
|
|
25
25
|
"type": "module",
|
|
26
26
|
"engines": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
|
-
"build": "vite build && npm run build:doc:api && npm run build:json-schemas",
|
|
59
|
+
"build": "vite build && npm run build:doc:api && npm run build:json-schemas && npm run prettier",
|
|
60
60
|
"build:doc:api": "typedoc --plugin typedoc-plugin-markdown --out ./doc/api --readme none",
|
|
61
61
|
"build:json-schemas": "tsx src/scripts/generate-json-schemas.ts && tsx src/scripts/copy-schemas.ts",
|
|
62
62
|
"clean": "rimraf lib",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"typedoc-plugin-markdown": "^4.6.4",
|
|
114
114
|
"typescript": "^5.8.3",
|
|
115
115
|
"typescript-eslint": "^8.32.1",
|
|
116
|
-
"vite": "^
|
|
116
|
+
"vite": "^7.0.4",
|
|
117
117
|
"vite-plugin-dts": "^4.5.4"
|
|
118
118
|
}
|
|
119
119
|
}
|