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