src/auth/dtos/auth-status-user.dto.ts
Properties |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Defined in src/auth/dtos/auth-status-user.dto.ts:7
|
| isDisabled |
Type : boolean
|
Decorators :
@ApiProperty({type: 'boolean'})
|
|
Defined in src/auth/dtos/auth-status-user.dto.ts:11
|
import { ApiProperty } from "@nestjs/swagger";
import { IsBoolean, IsEmail } from "class-validator";
export class AllowDisallowDto {
@ApiProperty({ type: "string" })
@IsEmail()
email: string;
@ApiProperty({ type: "boolean" })
@IsBoolean()
isDisabled: boolean;
}