16 lines
326 B
TypeScript
16 lines
326 B
TypeScript
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[];
|
|
}
|