ecoledirecte-api-types
Version:
If you need a EcoleDirecte client for JavaScript, this isn't the right place! This way: [ecoledirecte.js](https://github.com/a2br/ecoledirecte.js).
76 lines • 2.05 kB
TypeScript
import { failureRes } from "..";
export declare type textbookDateRes = textbookDateResSuccess | failureRes;
export declare type textbookDateResSuccess = {
code: 200;
token: string;
host: string;
data: textbookDateResData;
};
export declare type textbookDateResData = {
date: string;
matieres: Array<textbookDateAssignement>;
};
export declare type textbookDateAssignement = {
entityCode: string;
entityLibelle: string;
entityType: string;
matiere: string;
codeMatiere: string;
nomProf: string;
id: number;
interrogation: boolean;
blogActif: boolean;
nbJourMaxRenduDevoir: number;
aFaire?: {
idDevoir: number;
/** BASE64 */
contenu: string;
rendreEnLigne: boolean;
donneLe: string;
effectue: boolean;
ressource: string;
ressourceDocuments: unknown[];
documents: unknown[];
elementsProg: unknown[];
liensManuel: unknown[];
documentsRendus: unknown[];
/** The last one */
contenuDeSeance: {
/** BASE64 */
contenu: string;
documents: unknown[];
};
};
/** The one of the day */
contenuDeSeance?: {
idDevoir: number;
/** BASE64 */
contenu: string;
documents: Array<unknown>;
elementsProg: Array<unknown>;
liensManuel: Array<unknown>;
};
};
export declare type textbookRes = textbookResSuccess | failureRes;
export declare type textbookResSuccess = {
code: 200;
token: string;
host: string;
/**
* UNPREDICTABLE KEYS
* @example data["2020-01-14"]: Array<textbookAssignement>
*/
data: Record<string, Array<textbookAssignement>>;
};
export declare type textbookAssignement = {
matiere: string;
codeMatiere: string;
aFaire: boolean;
idDevoir: number;
documentsAFaire: boolean;
donneLe: string;
effectue: boolean;
interrogation: boolean;
rendreEnLigne: boolean;
};
//# sourceMappingURL=textbook.d.ts.map