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;
|
||||
}
|
||||
/**
|
||||
* Teacher uploaded attachments
|
||||
*/
|
||||
export interface ValidatedHomeworkAttachment {
|
||||
|
||||
export interface TeacherValidatedHomeworkAttachment {
|
||||
id: number;
|
||||
file_name: string;
|
||||
file: string;
|
||||
validated_file: string;
|
||||
}
|
||||
/**
|
||||
* Teacher uploaded links
|
||||
*/
|
||||
export interface ValidatedLink {
|
||||
|
||||
export interface TeacherValidatedHomeworkLink {
|
||||
link: string;
|
||||
validated_link: string;
|
||||
}
|
||||
/**
|
||||
* User uploaded attachments
|
||||
*/
|
||||
|
||||
export interface StudentHomeworkAttachment {
|
||||
id: number;
|
||||
file_name: string;
|
||||
|
|
@ -220,8 +214,8 @@ export interface Homework {
|
|||
attachments: StudentHomeworkAttachment[];
|
||||
has_feedback: boolean;
|
||||
};
|
||||
validated_links: ValidatedLink[];
|
||||
validated_attachments: ValidatedHomeworkAttachment[];
|
||||
validated_links: TeacherValidatedHomeworkLink[];
|
||||
validated_attachments: TeacherValidatedHomeworkAttachment[];
|
||||
}
|
||||
export type HomeworksResponseData = Homework[];
|
||||
export interface HomeworksResponseMeta {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue