Skip to content

📈 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!

351 B
Raw Blame
import { IsNumberString, IsOptional, Matches } from 'class-validator'

export class GetSubscribersParamsDto {
  @Matches(/^(?!.*--)[a-zA-Z0-9-]{12}$/)
  readonly projectId: string
}

export class GetSubscribersQueriesDto {
  @IsOptional()
  @IsNumberString()
  readonly offset?: string

  @IsOptional()
  @IsNumberString()
  readonly limit?: string
}