@tricoteuses/assemblee 3.8.4 → 3.8.6
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 +2 -2
- package/lib/{amendements-BYKlEcWb.js → amendements-BtCdrXW8.js} +36 -33
- package/lib/{amendements-CvlD2dI4.js → amendements-DfZse75q.js} +924 -672
- package/lib/amendements-xiii.d.ts +56 -0
- package/lib/amendements-xiii.test.d.ts +1 -0
- package/lib/browser-Dl6SgoZX.js +8164 -0
- package/lib/cleaners/amendements-xiv.test.d.ts +1 -0
- package/lib/cleaners/amendements.d.ts +18 -1
- package/lib/cleaners.js +3 -3
- package/lib/index.d.ts +5 -2
- package/lib/index.js +596 -99
- package/lib/inserters.d.ts +2 -2
- package/lib/{loaders-BNXs79lC.js → loaders-Dd8i-E7o.js} +11 -2
- package/lib/loaders.js +1 -1
- package/lib/open_data/artifacts.d.ts +12 -0
- package/lib/parsers.js +359 -8521
- package/lib/schemas/clean/amendements-xiii.d.ts +579 -0
- package/lib/schemas/clean/amendements.d.ts +502 -11
- package/lib/schemas/enriched/amendements.d.ts +6 -6
- package/lib/schemas/raw/amendements-xiii.d.ts +754 -0
- package/lib/schemas/raw/amendements-xiv.test.d.ts +1 -0
- package/lib/schemas/raw/amendements.d.ts +1769 -2
- package/lib/schemas/raw/amendements.test.d.ts +1 -0
- package/lib/scripts/clean_reorganized_data.test.d.ts +1 -0
- package/lib/scripts/data-download.d.ts +132 -0
- package/lib/scripts/retrieve_amendements_xiii.d.ts +51 -0
- package/lib/scripts/retrieve_open_data.d.ts +39 -24
- package/lib/scripts/shared/amendements_xiv_stream.d.ts +29 -0
- package/lib/scripts/shared/amendements_xiv_stream.test.d.ts +1 -0
- package/lib/scripts/shared/cli_helpers.d.ts +20 -0
- package/lib/scripts/shared/harvest_windows.d.ts +32 -0
- package/lib/scripts/shared/harvest_windows.test.d.ts +1 -0
- package/lib/{scrutins-BUVxV-QV.js → scrutins-CLWnMYLE.js} +266 -266
- package/package.json +1 -1
package/lib/inserters.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare function insertAmendementReferences(amendement: Amendement, data:
|
|
|
42
42
|
pointeurFragmentTexte: {
|
|
43
43
|
division?: {
|
|
44
44
|
type: "ANNEXE" | "ARTICLE" | "CHAPITRE" | "TITRE";
|
|
45
|
-
avantAApres: "A" | "
|
|
45
|
+
avantAApres: "A" | "Apres" | "Avant";
|
|
46
46
|
articleAdditionnel: string;
|
|
47
47
|
chapitreAdditionnel: string;
|
|
48
48
|
titre?: string | undefined;
|
|
@@ -52,7 +52,7 @@ export declare function insertAmendementReferences(amendement: Amendement, data:
|
|
|
52
52
|
urlDivisionTexteVise?: string | undefined;
|
|
53
53
|
} | undefined;
|
|
54
54
|
alinea?: {
|
|
55
|
-
avantAApres?: "A" | "
|
|
55
|
+
avantAApres?: "A" | "Apres" | "Avant" | undefined;
|
|
56
56
|
numero?: string | undefined;
|
|
57
57
|
alineaDesignation?: string | undefined;
|
|
58
58
|
} | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Fn as t, In as n, Mn as r, Mt as i, Nn as a, O as o, Pn as s, Q as c, Ut as l, jn as u, l as d, ln as f, ti as p } from "./scrutins-
|
|
1
|
+
import { i as e } from "./amendements-DfZse75q.js";
|
|
2
|
+
import { Fn as t, In as n, Mn as r, Mt as i, Nn as a, O as o, Pn as s, Q as c, Ut as l, jn as u, l as d, ln as f, ti as p } from "./scrutins-CLWnMYLE.js";
|
|
3
3
|
import { getChangedFilesSinceCommit as m } from "./git.js";
|
|
4
4
|
import h from "node:assert";
|
|
5
5
|
import g from "fs-extra";
|
|
@@ -248,6 +248,15 @@ var x = {
|
|
|
248
248
|
structure: v.SegmentedFiles,
|
|
249
249
|
title: "Amendements de la XVème législature",
|
|
250
250
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/15/loi/amendements_legis/Amendements_XV.json.zip"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
filename: "Amendements_XIV.json",
|
|
254
|
+
name: "Amendements_XIV",
|
|
255
|
+
ignoreForWeb: !0,
|
|
256
|
+
legislature: p.Quatorze,
|
|
257
|
+
structure: v.SingleFile,
|
|
258
|
+
title: "Amendements de la XIVème législature",
|
|
259
|
+
url: "https://data.assemblee-nationale.fr/static/openData/repository/14/loi/amendements_legis_XIV/Amendements_XIV.json.zip"
|
|
251
260
|
}
|
|
252
261
|
],
|
|
253
262
|
dossiersLegislatifs: [
|
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-Dd8i-E7o.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 };
|
|
@@ -25,6 +25,12 @@ export interface DownloadOptions {
|
|
|
25
25
|
onRetry?: (event: DownloadRetryEvent) => void;
|
|
26
26
|
retries?: number;
|
|
27
27
|
sleep?: (milliseconds: number) => Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Abort a request when no byte (nor the response headers) arrived for this
|
|
30
|
+
* long, then resume from the bytes already written. The CDN sometimes keeps
|
|
31
|
+
* a connection open for minutes without sending data before closing it.
|
|
32
|
+
*/
|
|
33
|
+
stallTimeoutMs?: number;
|
|
28
34
|
timeoutMs?: number;
|
|
29
35
|
}
|
|
30
36
|
export interface DownloadRetryEvent {
|
|
@@ -68,6 +74,12 @@ export declare function versionFromResponse(response: Response, sourceUrl: strin
|
|
|
68
74
|
export declare function compareArtifactVersions(left: ArtifactVersion, right: ArtifactVersion): number;
|
|
69
75
|
export declare function isStrictlyNewer(candidate: ArtifactVersion, accepted: ArtifactVersion | undefined): boolean;
|
|
70
76
|
export declare function artifactVersionKey(version: ArtifactVersion): string;
|
|
77
|
+
/**
|
|
78
|
+
* True when two probed versions are byte-identical for skip purposes:
|
|
79
|
+
* same Last-Modified AND same ETag AND same Content-Length.
|
|
80
|
+
* Used to log "same identity" vs "same timestamp but ambiguous identity".
|
|
81
|
+
*/
|
|
82
|
+
export declare function isSameArtifactVersion(left: ArtifactVersion, right: ArtifactVersion): boolean;
|
|
71
83
|
export declare function probeArtifact(url: string, options?: DiscoveryOptions): Promise<ArtifactVersion>;
|
|
72
84
|
export declare function discoverFreshestArtifact(url: string, options?: DiscoveryOptions): Promise<{
|
|
73
85
|
freshest: ArtifactVersion;
|