import { ApiProperty } from '@nestjs/swagger'; import { IsEmail, IsString, MaxLength } from 'class-validator'; /** Body POST /auth/reprise-identify – numéro + email pour obtenir token reprise. Ticket #111 */ export class RepriseIdentifyBodyDto { @ApiProperty({ example: '2026-000001' }) @IsString() @MaxLength(20) numero_dossier: string; @ApiProperty({ example: 'parent@example.com' }) @IsEmail() email: string; } /** Réponse POST /auth/reprise-identify */ export class RepriseIdentifyResponseDto { @ApiProperty({ enum: ['parent', 'assistante_maternelle'] }) type: 'parent' | 'assistante_maternelle'; @ApiProperty({ description: 'Token à utiliser pour GET reprise-dossier et PUT reprise-resoumettre' }) token: string; }