From 5fe9686a5127ec2f6c7164d5fdfc1bb655490496 Mon Sep 17 00:00:00 2001 From: James Cook Date: Mon, 31 Jan 2022 22:44:31 +0000 Subject: [PATCH] fix: update types --- src/types.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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 {