feat(pages): add pretest screen
This commit is contained in:
@ -4,6 +4,49 @@ interface CreatedBy {
|
||||
email: string;
|
||||
}
|
||||
|
||||
export interface Subject {
|
||||
name: string;
|
||||
section: string;
|
||||
parent_id: string;
|
||||
id: string;
|
||||
slug: string;
|
||||
parent_name: string;
|
||||
}
|
||||
|
||||
export interface Question {
|
||||
text: string;
|
||||
context: string;
|
||||
context_image_url: string;
|
||||
type: string;
|
||||
section: string;
|
||||
image_url: string;
|
||||
index: number;
|
||||
id: string;
|
||||
options: any[];
|
||||
topics: Topic[];
|
||||
correct_answer: string;
|
||||
explanation: string;
|
||||
}
|
||||
|
||||
export interface Topic {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface Module {
|
||||
title: string;
|
||||
duration: number;
|
||||
section: string;
|
||||
difficulty: string;
|
||||
description: string;
|
||||
sequence_order: number;
|
||||
id: string;
|
||||
practice_sheet_id: string;
|
||||
subject: Subject;
|
||||
questions: Question[];
|
||||
questions_count: number;
|
||||
}
|
||||
|
||||
export interface PracticeSheet {
|
||||
title: string;
|
||||
difficulty: string;
|
||||
@ -15,9 +58,9 @@ export interface PracticeSheet {
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
questions_count: number;
|
||||
topics: string[];
|
||||
topics: Topic[];
|
||||
created_by: CreatedBy;
|
||||
modules: string[];
|
||||
modules: Module[];
|
||||
user_status: string;
|
||||
modules_count: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user