@tricoteuses/assemblee 3.3.3 → 3.3.5

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.
@@ -920,6 +920,7 @@ export declare const PlfCreditsSectionSchema: z.ZodObject<{
920
920
  }, z.core.$strip>>>;
921
921
  }, z.core.$strip>>;
922
922
  }, z.core.$strip>>;
923
+ estConformeVersionPrecedente: z.ZodDefault<z.ZodBoolean>;
923
924
  total: z.ZodOptional<z.ZodObject<{
924
925
  autorisationEngagement: z.ZodOptional<z.ZodNumber>;
925
926
  creditPaiement: z.ZodOptional<z.ZodNumber>;
@@ -1,11 +1,12 @@
1
1
  import { Dataset } from '../datasets.js';
2
+ import { ArtifactVersion } from '../open_data/artifacts.js';
2
3
  export interface MonitoredDataset {
3
4
  category: string;
4
5
  dataset: Dataset;
5
6
  legislature: number;
6
7
  seedSlots: string[];
7
8
  }
8
- interface PendingUpdate {
9
+ export interface PendingUpdate {
9
10
  expiresAt: string;
10
11
  pipelineId?: number;
11
12
  versionKey: string;
@@ -16,9 +17,15 @@ export interface DatasetState {
16
17
  seenOrigins: string[];
17
18
  }
18
19
  export declare function buildMonitoredDatasets(): MonitoredDataset[];
20
+ export declare function pendingWasAccepted(pending: PendingUpdate, accepted: ArtifactVersion | undefined): boolean;
19
21
  export declare function isDatasetDue(monitored: MonitoredDataset, datasetState: DatasetState, now: Date): boolean;
22
+ export declare function selectedTriggerProvider(configured: "auto" | "forgejo" | "gitlab", environment?: NodeJS.ProcessEnv): "forgejo" | "gitlab";
23
+ export declare function forgejoDispatchUrl({ apiUrl, repository, workflow, }: {
24
+ apiUrl: string;
25
+ repository: string;
26
+ workflow: string;
27
+ }): string;
20
28
  export declare function updatePipelineLabel(monitored: MonitoredDataset): string;
21
29
  export declare function checkErrorEvent(monitored: MonitoredDataset, error: unknown): Record<string, unknown>;
22
30
  export declare function delayBeforeDeadline(delay: number, deadline: number, now?: number): number;
23
31
  export declare function scheduledPipelineIsStale(maxStartDelayMinutes: number, pipelineSource?: string | undefined, pipelineCreatedAt?: string | undefined, now?: number): boolean;
24
- export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -12,6 +12,14 @@ declare const retrieveDocumentsParser: import('zod-opts').Parser<{
12
12
  description: string;
13
13
  type: z.ZodDefault<z.ZodArray<z.ZodString>>;
14
14
  };
15
+ checkpointBranch: {
16
+ description: string;
17
+ type: z.ZodOptional<z.ZodString>;
18
+ };
19
+ checkpointSize: {
20
+ description: string;
21
+ type: z.ZodDefault<z.ZodNumber>;
22
+ };
15
23
  forceParseDocuments: {
16
24
  description: string;
17
25
  type: z.ZodDefault<z.ZodBoolean>;
@@ -107,6 +107,7 @@ declare const retrieveOpenDataParser: import('zod-opts').Parser<{
107
107
  }]>;
108
108
  type Options = ReturnType<typeof retrieveOpenDataParser.parse>;
109
109
  export declare function formatParisDateTime(value: string): string;
110
+ export declare function extractZip(zipFilePath: string, outputDir: string): Promise<void>;
110
111
  export declare function publishDataset(stagedDataPath: string, dataPath: string, partZipPath: string | undefined, zipPath: string): Promise<void>;
111
112
  export declare function recoverPublication(dataPath: string): Promise<void>;
112
113
  /**
@@ -1,4 +1,4 @@
1
- import { $ as e, Q as t, X as n, Y as r, Z as i, et as a, nt as o, rt as s, tt as c } from "./amendements-DmjkxpwG.js";
1
+ import { $ as e, Q as t, X as n, Y as r, Z as i, et as a, nt as o, rt as s, tt as c } from "./amendements-Cpku2Ut-.js";
2
2
  import { z as l } from "zod";
3
3
  //#region src/legislatures.ts
4
4
  var ee = /* @__PURE__ */ function(e) {
@@ -1766,6 +1766,7 @@ var io = {
1766
1766
  budgetType: zo,
1767
1767
  libelle: l.string(),
1768
1768
  missions: l.array(Ho),
1769
+ estConformeVersionPrecedente: l.boolean().default(!1),
1769
1770
  total: l.object({
1770
1771
  autorisationEngagement: l.number().optional(),
1771
1772
  creditPaiement: l.number().optional(),
package/package.json CHANGED
@@ -1,135 +1,136 @@
1
- {
2
- "name": "@tricoteuses/assemblee",
3
- "version": "3.3.3",
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
- }
1
+ {
2
+ "name": "@tricoteuses/assemblee",
3
+ "version": "3.3.5",
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
+ "data:validate_raw_data": "tsx src/scripts/reorganize_data.ts --validate-only",
84
+ "lint": "eslint .",
85
+ "prepare": "npm run build",
86
+ "prettier": "prettier --write \"src/**/*.ts\"",
87
+ "test": "vitest run",
88
+ "test:iter_load": "tsx src/scripts/test_iter_load.ts",
89
+ "type-check": "tsc --noEmit",
90
+ "type-check:watch": "npm run type-check -- --watch"
91
+ },
92
+ "dependencies": {
93
+ "cheerio": "^1.2.0",
94
+ "date-fns": "^4.4.0",
95
+ "deep-equal": "^2.2.3",
96
+ "deep-object-diff": "^1.1.9",
97
+ "fast-xml-parser": "^5.9.3",
98
+ "fs-extra": "^11.3.5",
99
+ "glob": "^13.0.6",
100
+ "js-yaml": "^5.2.0",
101
+ "node-html-parser": "^8.0.3",
102
+ "node-stream-zip": "^1.15.0",
103
+ "p-limit": "^7.3.0",
104
+ "sharp": "^0.35.2",
105
+ "zod": "^4.4.3",
106
+ "zod-opts": "^1.0.0"
107
+ },
108
+ "devDependencies": {
109
+ "@eslint/js": "^10.0.1",
110
+ "@types/deep-equal": "^1.0.4",
111
+ "@types/fs-extra": "^11.0.4",
112
+ "@types/js-yaml": "^4.0.9",
113
+ "@types/node": "^26.0.1",
114
+ "@types/temp": "^0.9.4",
115
+ "@types/unzipper": "^0.10.11",
116
+ "ajv": "^8.20.0",
117
+ "eslint": "^10.6.0",
118
+ "globals": "^17.7.0",
119
+ "prettier": "^3.9.1",
120
+ "rimraf": "^6.1.3",
121
+ "temp": "^0.9.4",
122
+ "ts-json-schema-generator": "^2.9.0",
123
+ "tslib": "^2.8.1",
124
+ "tsx": "^4.22.4",
125
+ "typedoc": "^0.28.19",
126
+ "typedoc-plugin-markdown": "^4.12.0",
127
+ "typescript": "^6.0.3",
128
+ "typescript-eslint": "^8.62.0",
129
+ "vite": "^8.1.0",
130
+ "vite-plugin-dts": "^5.0.3",
131
+ "vitest": "^4.1.9"
132
+ },
133
+ "overrides": {
134
+ "@microsoft/api-extractor": "7.55.0"
135
+ }
136
+ }