@tricoteuses/assemblee 2.1.1 → 2.1.2

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 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { Acteur } from '../types/acteurs_et_organes';
2
2
  export declare function cloneAndUpdateGitRepository(photosDirName: string, options: any): void;
3
- export declare function resizePhoto(acteur: Acteur, width: number, height: number, photosDir: string, photoFilename: string, options: any): void;
3
+ export declare function resizePhoto(acteur: Acteur, width: number, height: number, photosDir: string, photoFilename: string, options: any): Promise<void>;
4
4
  export declare function downloadPhoto(urlPhoto: string, photoTempFilePath: string, photoFilePath: string, missingPhotoFilePath: string, retries?: number): Promise<void>;
5
- export declare function createMosaic(acteurUids: string[], photosDir: string, photosWidth: number, photosHeight: number, mosaicFilename: string): void;
5
+ export declare function createMosaic(acteurUids: string[], photosDir: string, photosWidth: number, photosHeight: number, mosaicFilename: string): Promise<void>;
@@ -1 +1,2 @@
1
- export declare function downloadAndParse(document: any, documentsDir: string, options: any): Promise<void>;
1
+ import { Document } from '../types/dossiers_legislatifs';
2
+ export declare function downloadAndParse(document: Document, documentsDir: string, options: any): Promise<void>;
@@ -53,6 +53,12 @@ export declare const documentFormatOption: {
53
53
  name: string;
54
54
  type: StringConstructor;
55
55
  };
56
+ export declare const notFoundOption: {
57
+ alias: string;
58
+ help: string;
59
+ name: string;
60
+ type: BooleanConstructor;
61
+ };
56
62
  export declare const cloneOption: {
57
63
  alias: string;
58
64
  help: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tricoteuses/assemblee",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Retrieve, clean up & handle French Assemblée nationale's open data",
5
5
  "keywords": [
6
6
  "Assemblée nationale",
@@ -61,7 +61,7 @@
61
61
  "build:json-schemas": "tsx src/scripts/generate-json-schemas.ts && tsx src/scripts/copy-schemas.ts",
62
62
  "clean": "rimraf lib",
63
63
  "data:clean_data": "tsx src/scripts/clean_reorganized_data.ts --no-validate",
64
- "data:download": "bash -c 'npm run data:retrieve_open_data -- $@ && npm run data:reorganize_data -- $@ && npm run data:clean_data -- $@' bash",
64
+ "data:download": "tsx src/scripts/data-download.ts",
65
65
  "data:reorganize_data": "tsx src/scripts/reorganize_data.ts --no-validate-raw",
66
66
  "data:retrieve_deputes_photos": "tsx src/scripts/retrieve_deputes_photos.ts --fetch",
67
67
  "data:retrieve_documents": "tsx src/scripts/retrieve_documents.ts",
@@ -75,6 +75,7 @@
75
75
  "type-check:watch": "npm run type-check -- --watch"
76
76
  },
77
77
  "dependencies": {
78
+ "cheerio": "^1.1.0",
78
79
  "command-line-args": "^6.0.1",
79
80
  "command-line-usage": "^7.0.3",
80
81
  "date-fns": "^4.1.0",
@@ -85,9 +86,9 @@
85
86
  "fs-extra": "^11.2.0",
86
87
  "glob": "^11.0.0",
87
88
  "js-yaml": "^4.0.0",
88
- "jsdom": "^26.0.0",
89
89
  "node-html-parser": "^7.0.1",
90
- "node-stream-zip": "^1.11.6"
90
+ "node-stream-zip": "^1.11.6",
91
+ "sharp": "^0.34.2"
91
92
  },
92
93
  "devDependencies": {
93
94
  "@eslint/js": "^9.27.0",
@@ -96,7 +97,6 @@
96
97
  "@types/deep-equal": "^1.0.4",
97
98
  "@types/fs-extra": "^11.0.4",
98
99
  "@types/js-yaml": "^4.0.0",
99
- "@types/jsdom": "^21.1.7",
100
100
  "@types/node": "^22.7.6",
101
101
  "@types/temp": "^0.9.0",
102
102
  "@types/unzipper": "^0.10.3",
@@ -1 +0,0 @@
1
- export declare function parseTexte(assembleeUrl: string, page: string): any;