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

export class ReviewProtestCommandDTO {
  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  protestId!: string;

  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  stewardId!: string;

  @ApiProperty({
    enum: ['uphold', 'dismiss'],
  })
  @IsEnum(['uphold', 'dismiss'])
  decision!: 'uphold' | 'dismiss';

  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  decisionNotes!: string;
}