Skip to content

Scheduling infrastructure for absolutely everyone.

565 B
Raw Blame
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { IsEmail, IsOptional, IsString, IsBoolean } from "class-validator";

export class SendVerificationEmailInput {
  @ApiProperty({ example: "[email protected]" })
  @IsEmail()
  email!: string;

  @ApiPropertyOptional({ example: "johndoe" })
  @IsOptional()
  @IsString()
  username?: string;

  @ApiPropertyOptional({ example: "en" })
  @IsOptional()
  @IsString()
  language?: string;

  @ApiPropertyOptional({ example: true })
  @IsOptional()
  @IsBoolean()
  isVerifyingEmail?: boolean;
}