analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
13 lines • 863 B
TypeScript
import type { QuestionsAnswersByStudentResponse, StudentActivityCorrectionData } from '../studentActivityCorrection_types/index';
/**
* Convert QuestionResult from API to StudentActivityCorrectionData
* This function transforms the API response into the format expected by CorrectActivityModal
* @param apiResponse - API response with answers and statistics
* @param studentId - Student ID
* @param studentName - Student name
* @param observation - Optional teacher observation
* @param attachment - Optional attachment URL
* @returns StudentActivityCorrectionData formatted for the modal
*/
export declare const convertApiResponseToCorrectionData: (apiResponse: QuestionsAnswersByStudentResponse, studentId: string, studentName: string, observation?: string, attachment?: string) => StudentActivityCorrectionData;
//# sourceMappingURL=converter.d.ts.map