Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

213 B
Raw Blame
import { IsDefined, IsEmail, IsIn, IsString } from 'class-validator';

export class AdminAddTeamMemberDto {
  @IsDefined()
  @IsEmail()
  email: string;

  @IsString()
  @IsIn(['USER', 'ADMIN'])
  role: string;
}