1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

feat: badges support

This commit is contained in:
James Cook 2022-01-31 23:13:05 +00:00
parent 5fe9686a51
commit b35dc528a6
3 changed files with 47 additions and 3 deletions

View file

@ -150,3 +150,33 @@ export interface Lesson {
pupil_note_raw: string;
}
export type LessonsResponse = Array<Lesson>;
export interface LessonPupilBehaviour {
// Not sure what to call this
reason: string;
score: number;
icon: string;
polarity: string;
timestamp: string;
teacher: {
title: string;
first_name: string;
last_name: string;
};
}
export interface PupilEvent {
timestamp: string;
lesson_pupil_behaviour: LessonPupilBehaviour;
event: {
label: string;
};
}
export interface Badge {
id: number;
name: string;
icon: string;
colour: string;
created_date: string;
pupil_badges: Array<PupilEvent>;
icon_url: string;
}
export type BadgesResponse = Array<Badge>;