@tricoteuses/senat 2.5.6 → 2.5.7
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/README.md +3 -3
- package/lib/model/dosleg.d.ts +2 -0
- package/lib/model/dosleg.js +1 -0
- package/lib/scripts/shared/cli_helpers.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,16 +48,16 @@ Data from other sources is also available :
|
|
|
48
48
|
# Retrieval of textes and rapports from Sénat's website
|
|
49
49
|
# Available options for optional `formats` parameter : xml, html, pdf
|
|
50
50
|
# Available options for optional `types` parameter : textes, rapports
|
|
51
|
-
npm run data:retrieve_documents ../senat-data -- --fromSession
|
|
51
|
+
npm run data:retrieve_documents ../senat-data -- --fromSession 2022 [--formats xml pdf] [--types textes]
|
|
52
52
|
|
|
53
53
|
# Retrieval & parsing (textes in xml format only for now)
|
|
54
|
-
npm run data:retrieve_documents ../senat-data -- --fromSession
|
|
54
|
+
npm run data:retrieve_documents ../senat-data -- --fromSession 2022 --parseDocuments
|
|
55
55
|
|
|
56
56
|
# Parsing only
|
|
57
57
|
npm run data:parse_textes_lois ../senat-data
|
|
58
58
|
|
|
59
59
|
# Retrieval (& parsing) of agenda from Sénat's website
|
|
60
|
-
npm run data:retrieve_agenda ../senat-data -- --fromSession
|
|
60
|
+
npm run data:retrieve_agenda ../senat-data -- --fromSession 2022 [--parseAgenda]
|
|
61
61
|
|
|
62
62
|
# Retrieval of sénateurs' pictures from Sénat's website
|
|
63
63
|
npm run data:retrieve_senateurs_photos ../senat-data
|
package/lib/model/dosleg.d.ts
CHANGED
|
@@ -104,6 +104,7 @@ declare const findAllQuery: import("kysely").SelectQueryBuilder<{
|
|
|
104
104
|
libelle_organisme: string | null;
|
|
105
105
|
code_organisme: string | null;
|
|
106
106
|
ordre_lecture_assemblee: string;
|
|
107
|
+
session: string | null;
|
|
107
108
|
textes: {
|
|
108
109
|
url: string;
|
|
109
110
|
date: string;
|
|
@@ -169,6 +170,7 @@ export declare function findAll(): AsyncIterableIterator<{
|
|
|
169
170
|
libelle_organisme: string | null;
|
|
170
171
|
code_organisme: string | null;
|
|
171
172
|
ordre_lecture_assemblee: string;
|
|
173
|
+
session: string | null;
|
|
172
174
|
textes: {
|
|
173
175
|
url: string;
|
|
174
176
|
date: string;
|
package/lib/model/dosleg.js
CHANGED
|
@@ -106,6 +106,7 @@ function lecturesAssemblee(lectureId) {
|
|
|
106
106
|
"org.orgnom as libelle_organisme",
|
|
107
107
|
"org.senorgcod as code_organisme",
|
|
108
108
|
"lecass.ordreass as ordre_lecture_assemblee",
|
|
109
|
+
"lecass.sesann as session",
|
|
109
110
|
textes(ref("lecass.lecassidt")).as("textes"),
|
|
110
111
|
rapports(ref("lecass.lecassidt")).as("rapports"),
|
|
111
112
|
datesSeances(ref("lecass.lecassidt")).as("dates_seances"),
|
|
@@ -13,8 +13,8 @@ export const dataDirDefaultOption = {
|
|
|
13
13
|
type: String,
|
|
14
14
|
};
|
|
15
15
|
export const fromSessionOption = {
|
|
16
|
-
defaultValue:
|
|
17
|
-
help: "session year to retrieve data from; default
|
|
16
|
+
defaultValue: 2022,
|
|
17
|
+
help: "session year to retrieve data from; default 2022",
|
|
18
18
|
name: "fromSession",
|
|
19
19
|
type: Number,
|
|
20
20
|
};
|