import { IsArray , IsEnum , IsMongoId , IsNumber , IsOptional , IsPositive , IsString } from 'class-validator' ; import { ChannelTypeEnum } from '@notifire/shared' ; import { CommandHelper } from '../../../shared/commands/command.helper' ; import { ApplicationWithUserCommand } from '../../../shared/commands/project.command' ; export class GetActivityFeedCommand extends ApplicationWithUserCommand { static create ( data ) { return CommandHelper . create < GetActivityFeedCommand > ( GetActivityFeedCommand , data ) ; } @ IsNumber ( ) @ IsOptional ( ) page : number ; @ IsOptional ( ) @ IsEnum ( ChannelTypeEnum , { each : true , } ) channels ? : ChannelTypeEnum [ ] ; @ IsOptional ( ) @ IsArray ( ) @ IsMongoId ( { each : true } ) templates ? : string [ ] ; @ IsOptional ( ) @ IsString ( ) search ? : string ; }