import { IsHexColor , IsOptional , IsUrl } from 'class-validator' ; import { CommandHelper } from '../../../shared/commands/command.helper' ; import { ApplicationWithUserCommand } from '../../../shared/commands/project.command' ; export class UpdateBrandingDetailsCommand extends ApplicationWithUserCommand { static create ( data ) { return CommandHelper . create < UpdateBrandingDetailsCommand > ( UpdateBrandingDetailsCommand , data ) ; } @ IsUrl ( { require_tld : false } ) logo : string ; @ IsOptional ( ) @ IsHexColor ( ) color : string ; @ IsOptional ( ) @ IsHexColor ( ) fontColor : string ; @ IsOptional ( ) @ IsHexColor ( ) contentBackground : string ; @ IsOptional ( ) fontFamily ? : string ; }