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!

576 B
Raw Blame
import { ApiProperty } from '@nestjs/swagger'
import { IsBoolean, IsEmail, IsString } from 'class-validator'

export class UserGoogleDTO {
  @ApiProperty({ example: '10769150350006150715113082367', required: true })
  @IsString()
  googleId: string

  @ApiProperty({ required: true })
  @IsBoolean()
  registeredWithGoogle: boolean

  @ApiProperty({ example: '[email protected]', required: false })
  @IsEmail()
  email?: string

  @ApiProperty({ example: 1, required: false })
  emailRequests: number

  @ApiProperty({ example: true, required: false })
  isActive: boolean
}