import { IsArray, IsOptional, IsString, MinLength } from 'class-validator';

export class UpdateStaffMemberDto {
  @IsOptional()
  @IsString()
  @MinLength(1)
  name?: string;

  @IsOptional()
  @IsArray()
  @IsString({ each: true })
  permissionNames?: string[];
}
