immich/server/libs/domain/src/user/dto/update-user.dto.ts

29 lines
428 B
TypeScript
Raw Normal View History

import { IsEmail, IsNotEmpty, IsOptional } from 'class-validator';
2022-02-03 10:06:44 -06:00
export class UpdateUserDto {
@IsNotEmpty()
id!: string;
@IsEmail()
@IsOptional()
email?: string;
@IsOptional()
password?: string;
@IsOptional()
firstName?: string;
@IsOptional()
lastName?: string;
@IsOptional()
isAdmin?: boolean;
@IsOptional()
shouldChangePassword?: boolean;
@IsOptional()
profileImagePath?: string;
}