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

export class CreateCallDto {
  @ApiPropertyOptional({
    description: 'Client UUID (if calling a known client)',
    example: '550e8400-e29b-41d4-a716-446655440000',
  })
  @IsUUID()
  @IsOptional()
  clientId?: string;

  @ApiProperty({
    description: 'Phone number to call',
    example: '+79001234567',
  })
  @IsString()
  @IsNotEmpty()
  calleeNumber: string;
}
