mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
* refactor: user repository * refactor: user module * refactor: move database into infra * refactor(cli): use user core * chore: import path * chore: tests
29 lines
428 B
TypeScript
29 lines
428 B
TypeScript
import { IsEmail, IsNotEmpty, IsOptional } from 'class-validator';
|
|
|
|
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;
|
|
}
|