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

fix: update types

This commit is contained in:
James Cook 2022-01-31 22:44:31 +00:00
parent df58288b2c
commit 5fe9686a51

View file

@ -79,7 +79,7 @@ export interface BehaviourPoint {
teacher_name: string; teacher_name: string;
room_name: string | null; room_name: string | null;
note: string; note: string;
_can_delete: string; _can_delete: boolean;
detention_date: string | null; detention_date: string | null;
detention_time: string | null; detention_time: string | null;
detention_location: string | null; detention_location: string | null;
@ -92,6 +92,12 @@ export interface GetHomeworkOptions {
fromDate?: string; fromDate?: string;
toDate?: string; toDate?: string;
} }
export interface ValidatedHomeworkAttachment {
id: number;
file_name: string;
file: string;
validated_file: string;
}
export interface Homework { export interface Homework {
lesson: string; lesson: string;
subject: string; subject: string;
@ -108,18 +114,18 @@ export interface Homework {
publish_time: string; publish_time: string;
status: { status: {
id: number; id: number;
state: null; state: any | null;
mark: null; mark: any | null;
mark_relative: number; mark_relative: number;
ticked: "yes" | "no"; ticked: "yes" | "no";
allow_attachments: string; allow_attachments: "yes" | "no";
first_seen_date: string; first_seen_date: string;
last_seen_date: string; last_seen_date: string;
attachments: Array<any>; attachments: Array<any>;
has_feedback: boolean; has_feedback: boolean;
}; };
validated_links: Array<any>; validated_links: Array<any>;
validated_attachments: Array<any>; validated_attachments: Array<ValidatedHomeworkAttachment>;
} }
export type HomeworksResponse = Array<Homework>; export type HomeworksResponse = Array<Homework>;
export interface GetLessonsOptions { export interface GetLessonsOptions {