import { IsDefined , IsEmail } from 'class-validator' ; import { CommandHelper } from '../../../shared/commands/command.helper' ; import { ApplicationWithUserCommand } from '../../../shared/commands/project.command' ; export class UpdateMailSettingsCommand extends ApplicationWithUserCommand { static create ( data ) { return CommandHelper . create < UpdateMailSettingsCommand > ( UpdateMailSettingsCommand , data ) ; } @ IsDefined ( ) @ IsEmail ( ) senderEmail : string ; @ IsDefined ( ) senderName : string ; }