1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

fix: make attachment interface names clearer

This commit is contained in:
James Cook 2024-05-28 14:07:55 +01:00
parent 6d0942afe4
commit d357afffb6

View file

@ -165,25 +165,19 @@ export interface GetHomeworkOptions {
*/ */
to?: string; to?: string;
} }
/**
* Teacher uploaded attachments export interface TeacherValidatedHomeworkAttachment {
*/
export interface ValidatedHomeworkAttachment {
id: number; id: number;
file_name: string; file_name: string;
file: string; file: string;
validated_file: string; validated_file: string;
} }
/**
* Teacher uploaded links export interface TeacherValidatedHomeworkLink {
*/
export interface ValidatedLink {
link: string; link: string;
validated_link: string; validated_link: string;
} }
/**
* User uploaded attachments
*/
export interface StudentHomeworkAttachment { export interface StudentHomeworkAttachment {
id: number; id: number;
file_name: string; file_name: string;
@ -220,8 +214,8 @@ export interface Homework {
attachments: StudentHomeworkAttachment[]; attachments: StudentHomeworkAttachment[];
has_feedback: boolean; has_feedback: boolean;
}; };
validated_links: ValidatedLink[]; validated_links: TeacherValidatedHomeworkLink[];
validated_attachments: ValidatedHomeworkAttachment[]; validated_attachments: TeacherValidatedHomeworkAttachment[];
} }
export type HomeworksResponseData = Homework[]; export type HomeworksResponseData = Homework[];
export interface HomeworksResponseMeta { export interface HomeworksResponseMeta {