mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
26 lines
586 B
TypeScript
26 lines
586 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { Transform } from 'class-transformer';
|
|
import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
|
|
|
|
export class SignUpDto {
|
|
@IsEmail()
|
|
@ApiProperty({ example: 'testuser@email.com' })
|
|
@Transform(({ value }) => value.toLowerCase())
|
|
email!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@ApiProperty({ example: 'password' })
|
|
password!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@ApiProperty({ example: 'Admin' })
|
|
firstName!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@ApiProperty({ example: 'Doe' })
|
|
lastName!: string;
|
|
}
|