mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
fix: types & format
This commit is contained in:
parent
731672f23a
commit
515ac76f22
1 changed files with 14 additions and 17 deletions
11
src/types.ts
11
src/types.ts
|
|
@ -113,7 +113,7 @@ export interface GetActivityOptions {
|
||||||
export interface ActivityPoint {
|
export interface ActivityPoint {
|
||||||
id: number;
|
id: number;
|
||||||
type: string;
|
type: string;
|
||||||
polarity: "positive" | "blank" | "negative" | string & {};
|
polarity: "positive" | "blank" | "negative" | (string & {});
|
||||||
reason: string;
|
reason: string;
|
||||||
score: number;
|
score: number;
|
||||||
timestamp: string;
|
timestamp: string;
|
||||||
|
|
@ -217,7 +217,7 @@ export interface Homework {
|
||||||
allow_marking_completed: boolean;
|
allow_marking_completed: boolean;
|
||||||
first_seen_date: string | null;
|
first_seen_date: string | null;
|
||||||
last_seen_date: string | null;
|
last_seen_date: string | null;
|
||||||
attachments: HomeworkAttachment[];
|
attachments: StudentHomeworkAttachment[];
|
||||||
has_feedback: boolean;
|
has_feedback: boolean;
|
||||||
};
|
};
|
||||||
validated_links: ValidatedLink[];
|
validated_links: ValidatedLink[];
|
||||||
|
|
@ -396,10 +396,7 @@ export interface Announcement {
|
||||||
pupil_consents: unknown[];
|
pupil_consents: unknown[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AnnouncementsResponse = ClassChartsResponse<
|
export type AnnouncementsResponse = ClassChartsResponse<Announcement[], []>;
|
||||||
Announcement[],
|
|
||||||
[]
|
|
||||||
>;
|
|
||||||
|
|
||||||
export interface Pupil extends Student {
|
export interface Pupil extends Student {
|
||||||
school_name: string;
|
school_name: string;
|
||||||
|
|
@ -446,7 +443,7 @@ export interface GetAttendanceOptions {
|
||||||
|
|
||||||
export interface AttendancePeriod {
|
export interface AttendancePeriod {
|
||||||
code: string;
|
code: string;
|
||||||
status: "present" | "ignore" | string & {};
|
status: "present" | "ignore" | (string & {});
|
||||||
late_minutes: number | string;
|
late_minutes: number | string;
|
||||||
lesson_name?: string;
|
lesson_name?: string;
|
||||||
room_name?: string;
|
room_name?: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue