diff --git a/src/models/WelcomeMail.ts b/src/models/WelcomeMail.ts new file mode 100644 index 0000000..78cd928 --- /dev/null +++ b/src/models/WelcomeMail.ts @@ -0,0 +1,16 @@ +import { IsEmail, IsNotEmpty, IsString } from 'class-validator'; + +/** + * Simple welcome mail request class for validation and easier handling. + */ +export class WelcomeMail { + + @IsString() + @IsEmail() + @IsNotEmpty() + address: string; + + @IsString() + @IsNotEmpty() + selfserviceToken: string; +} \ No newline at end of file