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

export class InviteStaffDto {
  @IsEmail()
  email: string;

  @IsString()
  @MinLength(1)
  name: string;

  /** TAB_* permission names; EDIT implies READ after normalization. */
  @IsArray()
  @IsString({ each: true })
  permissionNames: string[];
}
