import { IsUUID, IsNotEmpty, IsString, MaxLength, IsOptional } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class TransferClientDto {
  @ApiProperty({
    description: 'Client UUID to transfer',
    example: '550e8400-e29b-41d4-a716-446655440000',
  })
  @IsUUID()
  @IsNotEmpty()
  clientId: string;

  @ApiProperty({
    description: 'Target department UUID',
    example: '550e8400-e29b-41d4-a716-446655440002',
  })
  @IsUUID()
  @IsNotEmpty()
  toDepartmentId: string;

  @ApiPropertyOptional({
    description: 'Optional comment for the transfer',
    maxLength: 500,
  })
  @IsString()
  @MaxLength(500)
  @IsOptional()
  comment?: string;
}
