mirror of
https://github.com/Kizuren/QuizConnect.git
synced 2025-12-24 00:04:09 +01:00
Initial commit
This commit is contained in:
commit
ea82926500
58 changed files with 9323 additions and 0 deletions
36
src/types/api.ts
Normal file
36
src/types/api.ts
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
export interface LoginResponse {
|
||||
success: boolean;
|
||||
accessToken: string;
|
||||
errorMessage: string | null;
|
||||
}
|
||||
|
||||
export interface QuestionSet {
|
||||
questionSetId: string;
|
||||
questionSetName: string;
|
||||
questionSetOrder: number;
|
||||
locked: boolean;
|
||||
}
|
||||
|
||||
export interface Question {
|
||||
questionId: string;
|
||||
questionSetId: string;
|
||||
questionText: string;
|
||||
expectedResultText: string;
|
||||
questionOrder: number;
|
||||
minWordLength: number;
|
||||
maxWordLength: number;
|
||||
}
|
||||
|
||||
export interface Response {
|
||||
responseId: string;
|
||||
questionId: string;
|
||||
userName: string;
|
||||
responseText: string;
|
||||
timestamp: string;
|
||||
}
|
||||
|
||||
export interface User {
|
||||
username: string;
|
||||
pin: string;
|
||||
resetState: boolean;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue