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

fix: spelling error in types

This commit is contained in:
James Cook 2022-02-10 19:08:06 +00:00
parent 14241f0eac
commit d9e80a7152

View file

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
type BooleanHumean = "yes" | "no"; type BooleanHuman = "yes" | "no";
export interface Student { export interface Student {
id: number; id: number;
name: string; name: string;
@ -144,8 +144,8 @@ export interface Homework {
state: "not_completed" | "late" | "completed" | null; state: "not_completed" | "late" | "completed" | null;
mark: any | null; mark: any | null;
mark_relative: number; mark_relative: number;
ticked: BooleanHumean; ticked: BooleanHuman;
allow_attachments: BooleanHumean; allow_attachments: BooleanHuman;
first_seen_date: string; first_seen_date: string;
last_seen_date: string; last_seen_date: string;
attachments: Array<any>; attachments: Array<any>;
@ -213,7 +213,7 @@ export type BadgesResponse = Array<Badge>;
export interface Detention { export interface Detention {
id: number; id: number;
attended: BooleanHumean | "upscaled" | "pending"; attended: BooleanHuman | "upscaled" | "pending";
date: string | null; date: string | null;
length: number | null; length: number | null;
location: string | null; location: string | null;
@ -224,9 +224,9 @@ export interface Detention {
first_name: string; first_name: string;
last_name: string; last_name: string;
school: { school: {
opt_notes_names: BooleanHumean; opt_notes_names: BooleanHuman;
opt_notes_comments: BooleanHumean; opt_notes_comments: BooleanHuman;
opt_notes_comments_pupils: BooleanHumean; opt_notes_comments_pupils: BooleanHuman;
}; };
}; };
lesson: { lesson: {
@ -259,7 +259,7 @@ export interface Announcement {
school_name: string; school_name: string;
teacher_name: string; teacher_name: string;
school_logo: string | null; school_logo: string | null;
sticky: BooleanHumean; sticky: BooleanHuman;
state: string | null; state: string | null;
timestamp: string; timestamp: string;
attachments: Array<{ attachments: Array<{
@ -268,11 +268,11 @@ export interface Announcement {
}>; }>;
for_pupils: Array<any>; for_pupils: Array<any>;
comment_visibility: string; comment_visibility: string;
allow_comments: BooleanHumean; allow_comments: BooleanHuman;
allow_reactions: BooleanHumean; allow_reactions: BooleanHuman;
allow_consent: BooleanHumean; allow_consent: BooleanHuman;
priority_pinned: BooleanHumean; priority_pinned: BooleanHuman;
requires_consent: BooleanHumean; requires_consent: BooleanHuman;
can_change_consent: boolean; can_change_consent: boolean;
consent: string | null; consent: string | null;
pupil_consents: Array<any>; pupil_consents: Array<any>;