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:
parent
5fe9686a51
commit
b35dc528a6
3 changed files with 47 additions and 3 deletions
30
src/types.ts
30
src/types.ts
|
|
@ -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>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue