@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.
- package/lib/open_data/artifacts.d.ts +1 -1
- package/lib/scripts/data-download.d.ts +8 -0
- package/lib/scripts/retrieve_dossier_annexes.d.ts +3 -0
- package/lib/scripts/retrieve_dossier_annexes.test.d.ts +1 -0
- package/lib/scripts/shared/dataset-inputs.d.ts +1 -1
- package/lib/scripts/shared/dataset-inputs.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
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 {};
|