add quastion to api
This commit is contained in:
parent
dcf0385a87
commit
76f8ab120a
2 changed files with 37 additions and 3 deletions
|
|
@ -150,7 +150,6 @@ export interface LessonContentData {
|
|||
presigned_url: string | null; // Presigned URL for attachment
|
||||
}[];
|
||||
quiz?: {
|
||||
|
||||
id: number;
|
||||
title: MultiLangText;
|
||||
description: MultiLangText | null;
|
||||
|
|
@ -158,6 +157,18 @@ export interface LessonContentData {
|
|||
time_limit: number | null;
|
||||
shuffle_questions: boolean;
|
||||
shuffle_choices: boolean;
|
||||
questions: {
|
||||
id: number;
|
||||
question: MultiLangText;
|
||||
question_type: 'MULTIPLE_CHOICE' | 'TRUE_FALSE' | 'SHORT_ANSWER';
|
||||
score: number;
|
||||
sort_order: number;
|
||||
choices: {
|
||||
id: number;
|
||||
text: MultiLangText;
|
||||
sort_order: number;
|
||||
}[];
|
||||
}[];
|
||||
} | null;
|
||||
// Navigation
|
||||
prev_lesson_id: number | null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue