📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
import { ApiProperty, PickType } from '@nestjs/swagger'
import { IsNotEmpty, IsString, MaxLength } from 'class-validator'
import { GetDataDto } from './getData.dto'
const MAX_CUSTOM_EVENT_NAME_LENGTH = 256
export class GetCustomEventMetadata extends PickType(GetDataDto, [
'pid',
'period',
'timeBucket',
'from',
'to',
'filters',
'timezone',
'filters',
] as const) {
@ApiProperty()
@IsNotEmpty()
@IsString()
@MaxLength(MAX_CUSTOM_EVENT_NAME_LENGTH)
event: string
}