analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
57 lines • 1.6 kB
TypeScript
/**
* Question status enum for student activity correction
*/
export declare const QUESTION_STATUS: {
readonly CORRETA: "CORRETA";
readonly INCORRETA: "INCORRETA";
readonly EM_BRANCO: "EM_BRANCO";
};
export type QuestionStatus = (typeof QUESTION_STATUS)[keyof typeof QUESTION_STATUS];
/**
* Represents an alternative for a question
*/
export interface QuestionAlternative {
/** Alternative value (e.g., "A", "B", "C") */
value: string;
/** Alternative text content */
label: string;
/** Whether this is the correct answer */
isCorrect: boolean;
}
/**
* Student question data interface
*/
export interface StudentQuestion {
questionNumber: number;
status: QuestionStatus;
studentAnswer?: string;
correctAnswer?: string;
/** Question text content */
questionText?: string;
/** List of alternatives (for multiple choice questions) */
alternatives?: QuestionAlternative[];
}
/**
* Student activity correction data interface
*/
export interface StudentActivityCorrectionData {
studentId: string;
studentName: string;
score: number | null;
correctCount: number;
incorrectCount: number;
blankCount: number;
questions: StudentQuestion[];
observation?: string;
}
/**
* Get question status badge configuration
* @param status - Question status
* @returns Badge configuration with label and colors
*/
export declare const getQuestionStatusBadgeConfig: (status: QuestionStatus) => {
label: string;
bgColor: string;
textColor: string;
};
//# sourceMappingURL=studentActivityCorrection.d.ts.map