UNPKG

@tricoteuses/assemblee

Version:

Retrieve, clean up & handle French Assemblée nationale's open data

116 lines (115 loc) 2.78 kB
export interface Questions { questions: QuestionsClass; } export interface QuestionsClass { question: Question[]; } export interface QuestionWrapper { question: Question; } export interface Question { "@xmlns"?: string; "@xmlns:xsi": string; "@xsi:type": QuestionXsiType; uid: string; identifiant: Identifiant; type: Type; indexationAN: IndexationAn; auteur: Auteur; minInt: Groupe; minAttribs: MinAttribs; textesQuestion?: TextesQuestion | null; textesReponse?: TextesReponse | null; cloture?: Cloture | null; signalement?: Signalement | null; renouvellements?: Renouvellements | null; } export declare enum QuestionXsiType { QuestionEcrite = "QuestionEcrite_Type", QuestionGouvernement = "QuestionGouvernement_Type", QuestionOrale = "QuestionOrale_Type" } export interface Auteur { identite: Identite; groupe: Groupe; } export interface Groupe { organeRef: string; abrege: string; developpe: string; } export interface Identite { acteurRef: string; mandatRef: string; } export interface Cloture { codeCloture: string; libelleCloture: string; dateCloture: string; infoJO: InfoJo | null; } export declare enum TypeJo { JoQuestion = "JO_QUESTION", JoLoiDecret = "JO_LOI_DECRET", JoDebate = "JO_DEBAT" } export interface Identifiant { numero: string; regime: string; legislature: string; } export interface IndexationAn { rubrique: string | null; teteAnalyse: null; analyses: Analyse; } export interface Analyse { analyse: string | null; } export interface MinAttribs { minAttrib: MinAttribElement[] | MinAttribElement; } export interface MinAttribElement { infoJO: InfoJo; denomination: Groupe; } export interface TextesQuestion { texteQuestion: Texte[] | Texte; } export interface Texte { infoJO: InfoJo; texte: string | null; erratum?: string; } export interface InfoJo { typeJO: TypeJo | null; dateJO: string; pageJO: string | null; numJO: string | null; urlLegifrance: string | null; referenceNOR: string | null; } export interface TextesReponse { texteReponse: Texte[] | Texte; } export interface Signalement { dateDepotSignal: string; infoJO: InfoJo; } export interface Renouvellements { renouvellement: Renouvellement[] | Renouvellement; } export interface Renouvellement { infoJO: InfoJo; } export declare enum Type { Qe = "QE", Qg = "QG", Qosd = "QOSD" } export declare class Convert { static toQuestions(json: string): Questions; static questionsToJson(value: Questions): string; static toQuestionWrapper(json: string): QuestionWrapper; static questionWrapperToJson(value: QuestionWrapper): string; }