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!

553 B
Raw Blame
import { ApiProperty } from '@nestjs/swagger'
import { TimeFormat } from '../entities/user.entity'

export class UpdateUserProfileDTO {
  @ApiProperty({ example: 'Europe/Kiev' })
  timezone: string

  @ApiProperty({ example: '24-hour', enum: TimeFormat })
  timeFormat: string

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

  @ApiProperty({ example: 'newStrongPassword123', required: false })
  password?: string

  @ApiProperty({ example: 'currentStrongPassword123', required: false })
  currentPassword?: string
}