@tricoteuses/assemblee
Version:
Retrieve, clean up & handle French Assemblée nationale's open data
16 lines (15 loc) • 744 B
TypeScript
import { ReunionClean } from '../schemas/clean/agendas';
import { Point, Reunion } from '..';
export declare function cleanReunion(data: unknown): ReunionClean;
export declare function hasMissingOrNotFinalizedText(node: Point | undefined | null): boolean;
/**
* Remove compteRenduRef from reunion if the referenced compte rendu is missing or has missing/not finalized content,
* and delete the compte rendu file in that case.
*/
export declare function reconcileReunionCompteRenduRef(reunion: Reunion, datasetCleanDir: string, { dataDir, legislature, removeMissingSeanceCR, verbose, onlyRecent, }: {
dataDir: string;
legislature: number;
removeMissingSeanceCR?: boolean;
verbose?: boolean;
onlyRecent?: number;
}): void;