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:
parent
6d0942afe4
commit
d357afffb6
1 changed files with 7 additions and 13 deletions
20
src/types.ts
20
src/types.ts
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue