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

types: improve activity point

This commit is contained in:
veloii 2024-05-27 22:41:36 +01:00
parent 2abfef3d40
commit e03e0e2ab5
No known key found for this signature in database

View file

@ -113,7 +113,7 @@ export interface GetActivityOptions {
export interface ActivityPoint { export interface ActivityPoint {
id: number; id: number;
type: string; type: string;
polarity: string; polarity: "positive" | "blank" | "negative" | string & {};
reason: string; reason: string;
score: number; score: number;
timestamp: string; timestamp: string;
@ -124,11 +124,11 @@ export interface ActivityPoint {
}; };
pupil_name: string; pupil_name: string;
lesson_name: string | null; lesson_name: string | null;
teacher_name: string; teacher_name: string | null;
room_name: string | null; room_name: string | null;
note: string | null; note: string | null;
_can_delete: boolean; _can_delete: boolean;
badges: string | undefined; badges: string;
detention_date: string | null; detention_date: string | null;
detention_time: string | null; detention_time: string | null;
detention_location: string | null; detention_location: string | null;