import { ApiProperty } from '@nestjs/swagger'; export class LevelGapDto { @ApiProperty() concept!: string; @ApiProperty() description!: string; } export class LevelProfileDto { @ApiProperty({ type: [String] }) mastered!: string[]; @ApiProperty({ type: [LevelGapDto] }) gaps!: LevelGapDto[]; @ApiProperty({ type: [String] }) unknown!: string[]; @ApiProperty({ enum: ['beginner', 'intermediate', 'advanced'] }) overallLevel!: 'beginner' | 'intermediate' | 'advanced'; } export class LevelTurnResponseDto { @ApiProperty({ description: 'Question de Max, ou transition une fois le profil pret.', }) reply!: string; @ApiProperty({ description: 'true une fois les 3-5 questions posees et le profil pret a etre confirme via POST /sessions/:id/level/confirm.', }) done!: boolean; @ApiProperty({ type: LevelProfileDto, required: false }) profile?: LevelProfileDto; }