toggle exam

This commit is contained in:
Primakov Alexandr Alexandrovich
2024-08-29 08:10:03 +03:00
parent bdf6c5e8a1
commit 52b60ed1f5
13 changed files with 2040 additions and 270 deletions

View File

@@ -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;
}