toggle exam
This commit is contained in:
@@ -50,7 +50,7 @@ export type BaseResponse<Data> = {
|
||||
};
|
||||
|
||||
export interface Lesson {
|
||||
_id: string;
|
||||
id: string;
|
||||
name: string;
|
||||
students: User[];
|
||||
date: string;
|
||||
@@ -79,10 +79,46 @@ export interface User {
|
||||
|
||||
export interface Course {
|
||||
_id: string;
|
||||
id: string;
|
||||
name: string;
|
||||
teachers: User[];
|
||||
lessons: Lesson[];
|
||||
lessons: string[];
|
||||
creator: User;
|
||||
startDt: string;
|
||||
examWithJury?: string;
|
||||
created: string;
|
||||
}
|
||||
|
||||
export interface PopulatedCourse extends Omit<Course, 'examWithJury' | 'lessons'> {
|
||||
examWithJury: ExamWithJury;
|
||||
lessons: Lesson[];
|
||||
}
|
||||
|
||||
interface ExamWithJury {
|
||||
name: string;
|
||||
description: string;
|
||||
jury: any[];
|
||||
date: string;
|
||||
created: string;
|
||||
criterias: Criteria[][];
|
||||
id: string;
|
||||
}
|
||||
|
||||
interface Criteria {
|
||||
title: string;
|
||||
type?: string;
|
||||
min?: number;
|
||||
max?: number;
|
||||
wight?: number;
|
||||
subcriterias?: Subcriteria[];
|
||||
}
|
||||
|
||||
interface Subcriteria {
|
||||
title: string;
|
||||
type: string;
|
||||
wight: number;
|
||||
trueText?: string;
|
||||
falseText?: string;
|
||||
min?: number;
|
||||
max?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user