import { IsString, IsNotEmpty, Matches, Length } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class VerifyApiKeyDto {
  @ApiProperty({
    description: 'Department code',
    example: 'DPT001',
  })
  @IsString()
  @IsNotEmpty({ message: 'Department code is required' })
  @Length(3, 20, { message: 'Department code must be between 3 and 20 characters' })
  departmentCode: string;

  @ApiProperty({
    description: 'API key for authentication',
    example: 'sk_live_abc123xyz789...',
  })
  @IsString()
  @IsNotEmpty({ message: 'API key is required' })
  @Length(32, 256, { message: 'API key must be between 32 and 256 characters' })
  apiKey: string;
}
