-
Notifications
You must be signed in to change notification settings - Fork 0
Attendance
github-actions[bot] edited this page Jul 25, 2026
·
1 revision
The attendance module makes it super easy to check on a student's absences, delays, and any disciplinary events (like punishments) in EcoleDirecte.
To fetch attendance, you'll use the getAttendance function.
import { getAttendance } from "linkdirecte";
const data = await getAttendance();
if (data.absences && data.absences.length > 0) {
console.log(`Oh! You have ${data.absences.length} registered absence(s).`);
data.absences.forEach(absence => {
console.log(`- Date: ${absence.date.toLocaleDateString()} | Reason: ${absence.motif || "No reason specified"}`);
});
} else {
console.log("Hooray! No absences recorded.");
}Fetches the student's full attendance history, including delays and punishments.
function getAttendance(): Promise<AttendanceResult>A promise that resolves to an AttendanceResult object.
interface AttendanceResult {
absences?: AttendanceEntry[];
delays?: AttendanceEntry[];
punishments?: AttendanceEntry[];
attendance?: AttendanceEntry[];
parametrage?: Record<string, unknown>;
}| Property | Type | Description |
|---|---|---|
id |
number |
Unique ID of the attendance event. |
date |
Date |
The date of the event. |
type |
string |
The type code of the event. |
libelleMatiere |
string (optional)
|
Subject related to the event. |
justifie |
boolean (optional)
|
Whether the event is marked as justified. |
typeJustification |
string (optional)
|
Type category of justification. |
nomProf |
string (optional)
|
Teacher related to the event. |
pointsPermis |
number (optional)
|
Demerit points associated. |
idEleve |
number (optional)
|
Student ID. |
motif |
string (optional)
|
The reason or motif. |
justifieEd |
boolean (optional)
|
EcoleDirecte justified status flag. |
dontNeedJustifiePrim |
boolean (optional)
|
Primary education flag. |
jour |
Date (optional)
|
Exact day. |
© 2026 typeof (Scolup) | Licensed under AGPL 3.0