import { IsDefined , IsEmail , IsOptional , IsString } from 'class-validator' ; import { CommandHelper } from '../../../shared/commands/command.helper' ; export class InitializeSessionCommand { static create ( data ) { return CommandHelper . create < InitializeSessionCommand > ( InitializeSessionCommand , data ) ; } @ IsDefined ( ) @ IsString ( ) subscriberId : string ; @ IsDefined ( ) @ IsString ( ) applicationIdentifier : string ; firstName ? : string ; lastName ? : string ; @ IsEmail ( ) email ? : string ; @ IsString ( ) @ IsOptional ( ) phone ? : string ; }