import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { Transform } from 'class-transformer';
import { IsBoolean, IsOptional, IsString, MaxLength } from 'class-validator';
import { toBoolean } from '../../../common/utils/query-transform.util';

export class UpdateSuperAdminUserStatusDto {
  @ApiProperty()
  @Transform(toBoolean)
  @IsBoolean()
  isDisabled!: boolean;

  @ApiPropertyOptional()
  @IsOptional()
  @IsString()
  @MaxLength(300)
  reason?: string;
}
