import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { IsIn, IsOptional, IsString, MaxLength } from "class-validator";
import { ProfileStatus } from "../entities/company-profile.entity";

export class UpdateCompanyProfileStatusDto {
  @ApiProperty({ enum: ProfileStatus })
  @IsIn(Object.values(ProfileStatus))
  status!: ProfileStatus;

  /** Reviewer note — required in practice when rejecting so the customer knows why. */
  @ApiPropertyOptional()
  @IsOptional()
  @IsString()
  @MaxLength(2000)
  note?: string;
}
