@tricoteuses/senat
Version:
Handle French Sénat's open data
87 lines (86 loc) • 3 kB
TypeScript
import { InferResult } from "kysely";
export type QuestionResult = InferResult<typeof findAllQuery>[0];
declare const findAllQuery: import("kysely").SelectQueryBuilder<{
the: import("../raw_types/questions").The;
tam_questions: import("../raw_types/questions").TamQuestions;
etatquestion: import("kysely").Nullable<import("../raw_types/questions").Etatquestion>;
legquestion: import("../raw_types/questions").Legquestion;
naturequestion: import("kysely").Nullable<import("../raw_types/questions").Naturequestion>;
sortquestion: import("kysely").Nullable<import("../raw_types/questions").Sortquestion>;
tam_ministeres: import("kysely").Nullable<import("../raw_types/questions").TamMinisteres>;
tam_reponses: import("../raw_types/questions").TamReponses;
}, "tam_questions" | "etatquestion" | "naturequestion" | "sortquestion" | "tam_ministeres", {
date_publication_JO: string;
republique: string | null;
legislature: string | null;
sort: string | null;
nature: string | null;
numero: string | null;
reference: string | null;
titre: string | null;
nom: string | null;
prenom: string | null;
civilite: string | null;
matricule: string;
circonscription: string | null;
groupe: string | null;
type_appartenance: string | null;
ministere_depot: string;
ministere_depot_date_debut: string;
date_transmission: string;
ministere_transmission: string | null;
date_reponse_JO: string;
ministere_reponse: string | null;
date_cloture: string;
reference_question_rappelee: string | null;
texte: string | null;
texte_erratum: string | null;
rubrique: string | null;
themes: {
libelle: string;
}[];
reponses: {
date_reponse_JO: string;
ministere_reponse: string | null;
texte: string | null;
texte_erratum: string | null;
}[];
}>;
export declare function findAll(): AsyncIterableIterator<{
date_publication_JO: string;
republique: string | null;
legislature: string | null;
sort: string | null;
nature: string | null;
numero: string | null;
reference: string | null;
titre: string | null;
nom: string | null;
prenom: string | null;
civilite: string | null;
matricule: string;
circonscription: string | null;
groupe: string | null;
type_appartenance: string | null;
ministere_depot: string;
ministere_depot_date_debut: string;
date_transmission: string;
ministere_transmission: string | null;
date_reponse_JO: string;
ministere_reponse: string | null;
date_cloture: string;
reference_question_rappelee: string | null;
texte: string | null;
texte_erratum: string | null;
rubrique: string | null;
themes: {
libelle: string;
}[];
reponses: {
date_reponse_JO: string;
ministere_reponse: string | null;
texte: string | null;
texte_erratum: string | null;
}[];
}>;
export {};