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!

400 B
Raw Blame
import { IsString, IsIn } from 'class-validator'
import { ApiProperty } from '@nestjs/swagger'

import { SUPPORTED_PROVIDERS } from '../mappers'

export class UploadImportDto {
  @ApiProperty({
    description: 'Analytics provider to import from',
    enum: SUPPORTED_PROVIDERS,
    example: 'umami',
  })
  @IsString()
  @IsIn(SUPPORTED_PROVIDERS)
  provider: (typeof SUPPORTED_PROVIDERS)[number]
}