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

fix: types & format

This commit is contained in:
James Cook 2024-05-28 13:39:04 +01:00
parent 731672f23a
commit 515ac76f22

View file

@ -113,7 +113,7 @@ export interface GetActivityOptions {
export interface ActivityPoint {
id: number;
type: string;
polarity: "positive" | "blank" | "negative" | string & {};
polarity: "positive" | "blank" | "negative" | (string & {});
reason: string;
score: number;
timestamp: string;
@ -217,7 +217,7 @@ export interface Homework {
allow_marking_completed: boolean;
first_seen_date: string | null;
last_seen_date: string | null;
attachments: HomeworkAttachment[];
attachments: StudentHomeworkAttachment[];
has_feedback: boolean;
};
validated_links: ValidatedLink[];
@ -396,10 +396,7 @@ export interface Announcement {
pupil_consents: unknown[];
}
export type AnnouncementsResponse = ClassChartsResponse<
Announcement[],
[]
>;
export type AnnouncementsResponse = ClassChartsResponse<Announcement[], []>;
export interface Pupil extends Student {
school_name: string;
@ -446,7 +443,7 @@ export interface GetAttendanceOptions {
export interface AttendancePeriod {
code: string;
status: "present" | "ignore" | string & {};
status: "present" | "ignore" | (string & {});
late_minutes: number | string;
lesson_name?: string;
room_name?: string;