add changes

This commit is contained in:
AD2025
2025-11-14 21:48:47 +02:00
parent 6f23890407
commit 37b4d565b1
72 changed files with 17104 additions and 246 deletions

View File

@@ -0,0 +1,57 @@
/**
* Bookmark Interface
* Represents a bookmarked question
*/
export interface Bookmark {
id: string;
userId: string;
questionId: string;
question: BookmarkedQuestion;
createdAt: string;
}
/**
* Bookmarked Question Details
*/
export interface BookmarkedQuestion {
id: string;
questionText: string;
questionType: 'multiple-choice' | 'true-false' | 'written';
difficulty: 'easy' | 'medium' | 'hard';
categoryId: string;
categoryName: string;
options?: string[];
correctAnswer: string;
explanation?: string;
points: number;
tags?: string[];
}
/**
* Bookmarks Response
*/
export interface BookmarksResponse {
success: boolean;
data: {
bookmarks: Bookmark[];
total: number;
};
}
/**
* Add Bookmark Request
*/
export interface AddBookmarkRequest {
questionId: string;
}
/**
* Add Bookmark Response
*/
export interface AddBookmarkResponse {
success: boolean;
data: {
bookmark: Bookmark;
};
message: string;
}