UNPKG

ecoledirecte.js

Version:

Good-looking client for EcoleDirecte's private API.

21 lines (20 loc) 808 B
import { textbookDateResSuccess, textbookDateAssignement } from "ecoledirecte-api-types/v3"; /** * @param id Account id * @param token Auth token */ export declare function getUpcomingAssignementDates(id: number, token: string, context?: Record<string, unknown>): Promise<{ dates: string[]; token: string; }>; /** * @param id Account id * @param token Auth token * @param date Date of the textbook page (YYYY-MM-DD) */ export declare function getTextbookPage(id: number, token: string, date: string, context?: Record<string, unknown>): Promise<textbookDateResSuccess>; export declare function tickAssignement(id: number, token: string, assignement: textbookDateAssignement, state?: boolean, context?: Record<string, unknown>): Promise<{ code: 200; token: string; host: string; }>;