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

export class ApproveAbsenceDto {
  @ApiPropertyOptional({
    description: 'Optional comment from approver',
    example: 'Approved. Please ensure handover before leaving.',
    maxLength: 500,
  })
  @IsOptional()
  @IsString()
  @MaxLength(500)
  comment?: string;
}

export class RejectAbsenceDto {
  @ApiPropertyOptional({
    description: 'Reason for rejection',
    example: 'Team coverage not sufficient during this period',
    maxLength: 500,
  })
  @IsOptional()
  @IsString()
  @MaxLength(500)
  reason?: string;
}
