@tricoteuses/senat
Version:
Handle French Sénat's open data
25 lines (24 loc) • 801 B
TypeScript
export type L1Chapter = {
id: string;
label: string;
index: number;
};
export declare function getLevel1Chapters(dataNvs: string): L1Chapter[];
export declare function pickBestLevel1ChapterForAgenda(chapters: L1Chapter[], agendaTitle: string): {
chapter: L1Chapter;
score: number;
} | null;
export declare function getAgendaSegmentTimecodes(dataNvs: string, finalPlayerNvs: string, agendaTitleOrObjet: string): {
start: number;
end: number | null;
chapterId: string;
nextChapterId: string | null;
score: number;
} | null;
export declare function parseDataNvs(nvs: string): {
epoch?: number;
organes: string[];
firstChapterLabel?: string;
salle?: string;
};
export declare function buildSenatVodMasterM3u8FromNvs(nvsText: string): string | null;