32 lines
480 B
TypeScript
32 lines
480 B
TypeScript
import { IsString, IsEmail, MinLength } from 'class-validator';
|
|
|
|
export class BootstrapSetupDto {
|
|
@IsString()
|
|
name!: string;
|
|
|
|
@IsEmail()
|
|
email!: string;
|
|
|
|
@IsString()
|
|
@MinLength(8)
|
|
password!: string;
|
|
}
|
|
|
|
export interface BootstrapStatusDto {
|
|
needsSetup: boolean;
|
|
}
|
|
|
|
export interface BootstrapResultDto {
|
|
user: {
|
|
id: string;
|
|
name: string;
|
|
email: string;
|
|
role: string;
|
|
};
|
|
token: {
|
|
id: string;
|
|
plaintext: string;
|
|
label: string;
|
|
};
|
|
}
|