import { ApiProperty } from '@nestjs/swagger';
import { RoleType } from 'src/entities/users.entity';

/** Réponse GET /auth/reprise-dossier – données dossier pour préremplir le formulaire reprise. Ticket #111 */
export class RepriseDossierDto {
  @ApiProperty()
  id: string;

  @ApiProperty()
  email: string;

  @ApiProperty({ required: false })
  prenom?: string;

  @ApiProperty({ required: false })
  nom?: string;

  @ApiProperty({ required: false })
  telephone?: string;

  @ApiProperty({ required: false })
  adresse?: string;

  @ApiProperty({ required: false })
  ville?: string;

  @ApiProperty({ required: false })
  code_postal?: string;

  @ApiProperty({ required: false })
  numero_dossier?: string;

  @ApiProperty({ enum: RoleType })
  role: RoleType;

  @ApiProperty({ required: false, description: 'Pour AM' })
  photo_url?: string;

  @ApiProperty({ required: false })
  genre?: string;

  @ApiProperty({ required: false })
  situation_familiale?: string;
}
