@tricoteuses/assemblee 3.8.0 → 3.8.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.
@@ -87,4 +87,4 @@ export declare function conversionScopePath(dataDir: string): string;
87
87
  export declare function readConversionScope(dataDir: string): Promise<ConversionScope>;
88
88
  export declare function resetConversionScope(dataDir: string): Promise<void>;
89
89
  export declare function recordConversionScope(dataDir: string, datasetName: string, entry: ConversionScopeEntry): Promise<void>;
90
- export declare function shouldRunProcessing(scope: ConversionScope): boolean;
90
+ export declare function updatedDatasetNames(scope: ConversionScope): string[];
@@ -1 +1,9 @@
1
+ import { ConversionScope } from '../open_data/artifacts.js';
1
2
  export declare function dataDirArg(argv: string[]): string;
3
+ /**
4
+ * Returns the datasets to process. `undefined` means the scope is unknown, so
5
+ * everything must be processed (fail open); an empty array means nothing changed.
6
+ */
7
+ export declare function processingDatasetNames(scope: ConversionScope, { forceAgenda }?: {
8
+ forceAgenda?: boolean;
9
+ }): string[] | undefined;
@@ -106,5 +106,8 @@ export type DossierAnnexesIndex = {
106
106
  };
107
107
  export declare function annexesIndexPath(dataDir: string, dossierUid: string): string;
108
108
  export declare function annexFileName(url: string, existingNames: Set<string>): string;
109
+ export declare function shouldDownloadAnnexe(annexe: Pick<DossierAnnexeFileInfos, "status">, { notFound }: {
110
+ notFound: boolean;
111
+ }): boolean;
109
112
  export declare function retrieveDossierAnnexesForDossier(dossierUid: string, pageUrl: string, options: Options): Promise<void>;
110
113
  export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { EnabledDatasets, Datasets } from '../../datasets.js';
2
2
  /** Select before any clone, pull or output cleanup. Never mutate the catalogue. */
3
- export declare function selectProcessingDatasets(available: Datasets, enabled: EnabledDatasets, requested?: string): Datasets;
3
+ export declare function selectProcessingDatasets(available: Datasets, enabled: EnabledDatasets, requested?: string[]): Datasets;
4
4
  /** An absent/empty source is not an authoritative empty dataset. */
5
5
  export declare function requireDatasetInput(input: string, directory: boolean): void;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tricoteuses/assemblee",
3
- "version": "3.8.0",
3
+ "version": "3.8.2",
4
4
  "description": "Retrieve, clean up & handle French Assemblée nationale's open data",
5
5
  "keywords": [
6
6
  "Assemblée nationale",