@tricoteuses/assemblee 3.8.5 → 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.
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retry windows for the per-reunion harvests (videos and commission reports)
|
|
3
|
+
* run while cleaning agendas.
|
|
4
|
+
*
|
|
5
|
+
* Measured on the public repositories (reunions from April to November 2026):
|
|
6
|
+
* - videos are online within 2.4 days for 99% of reunions; 2 of 1030 appeared
|
|
7
|
+
* after 30 days;
|
|
8
|
+
* - commission reports have a 9-day median delay, but 9% appear after
|
|
9
|
+
* 30 days and the slowest one after 112 days.
|
|
10
|
+
*/
|
|
11
|
+
/** Stop retrying a missing commission report after this many days. */
|
|
12
|
+
export declare const CR_COMMISSION_RETRY_DAYS = 120;
|
|
13
|
+
export declare function reunionStartMs(timestampDebut: string | Date): number;
|
|
14
|
+
/**
|
|
15
|
+
* - `search`: query the video site;
|
|
16
|
+
* - `use-cache`: reuse the already downloaded `.nvs` files;
|
|
17
|
+
* - `skip`: do nothing (reunion not held yet, or older than the window with
|
|
18
|
+
* no video found).
|
|
19
|
+
*/
|
|
20
|
+
export type VideoHarvestDecision = "search" | "use-cache" | "skip";
|
|
21
|
+
export declare function videoHarvestDecision({ hasCachedVideo, nowMs, onlyRecentDays, startMs, }: {
|
|
22
|
+
hasCachedVideo: boolean;
|
|
23
|
+
nowMs: number;
|
|
24
|
+
onlyRecentDays: number | undefined;
|
|
25
|
+
startMs: number;
|
|
26
|
+
}): VideoHarvestDecision;
|
|
27
|
+
export declare function shouldFetchCrCommission({ hasContent, nowMs, onlyRecentDays, startMs, }: {
|
|
28
|
+
hasContent: boolean;
|
|
29
|
+
nowMs: number;
|
|
30
|
+
onlyRecentDays: number | undefined;
|
|
31
|
+
startMs: number;
|
|
32
|
+
}): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tricoteuses/assemblee",
|
|
3
|
-
"version": "3.8.
|
|
4
|
-
"description": "Retrieve, clean up & handle French
|
|
3
|
+
"version": "3.8.6",
|
|
4
|
+
"description": "Retrieve, clean up & handle French Assemblée nationale's open data",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
6
|
+
"Assemblée nationale",
|
|
7
7
|
"France",
|
|
8
8
|
"open data",
|
|
9
9
|
"Parliament"
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"author": "Emmanuel Raviart <emmanuel@raviart.com>",
|
|
12
12
|
"contributors": [
|
|
13
13
|
"Henry Boisgibault <henry.boisgibault@proton.me>",
|
|
14
|
-
"
|
|
14
|
+
"Jérémie Corpinot <jerem.freelance@codingbox.fr>",
|
|
15
15
|
"Mathilde Couvreur <mathilde.couvreur@gmail.com>",
|
|
16
|
-
"
|
|
16
|
+
"Loïc Dachary <loic@dachary.org>",
|
|
17
17
|
"Pierre Drege <dregop@proton.me>",
|
|
18
18
|
"Nelson Herbin <nelson@herbin.info>",
|
|
19
19
|
"implicitdef",
|
|
20
|
-
"
|
|
21
|
-
"Pauline
|
|
20
|
+
"Hélène Jonin <helene.jonin@gmail.com>",
|
|
21
|
+
"Pauline Léon <paulineleon@tutanota.com>",
|
|
22
22
|
"Paul-Henry Ngounou <ngpaulhenry@gmail.com>"
|
|
23
23
|
],
|
|
24
24
|
"bugs": {
|