1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 03:56:59 +00:00

fix: pupil types

This commit is contained in:
James Cook 2022-03-12 11:34:56 +00:00
parent ab73bd92cd
commit e1ac2b1364
2 changed files with 33 additions and 15 deletions

View file

@ -279,3 +279,24 @@ export interface Announcement {
}
export type AnnouncementsResponse = Array<Announcement>;
export interface Pupil extends Student {
school_name: string;
school_logo: string;
timezone: string;
display_covid_tests: boolean;
can_record_covid_tests: boolean;
detention_yes_count: number;
detention_no_count: number;
detention_pending_count: number;
detention_upscaled_count: number;
homework_todo_count: number;
homework_late_count: number;
homework_not_completed_count: number;
homework_excused_count: number;
homework_completed_count: number;
homework_submitted_count: number;
announcements_count: number;
messages_count: number;
}
export type GetPupilsResponse = Array<Pupil>;