UNPKG

ecoledirecte.js

Version:

Good-looking client for EcoleDirecte's private API.

24 lines (23 loc) 647 B
import { loginRes } from "ecoledirecte-api-types/v3"; import { Family, Staff, Student, Teacher } from "./accounts"; export declare class Session { private _username; private _password; /** * @async * @returns EcoleDirecte login response */ loginRes?: loginRes; private _token; get token(): string; set token(value: string); constructor(username: string, password: string); login(context?: Record<string, unknown>): Promise<Family | Staff | Student | Teacher>; /** * @returns Given credentials */ get credentials(): { username: string; password: string; }; }