File

src/modules/user/dtos/user-auth.dto.ts

Extends

AbstractDto

Index

Properties

Constructor

constructor(userAuth: UserAuthEntity)
Parameters :
Name Type Optional
userAuth UserAuthEntity No

Properties

Readonly lastFailedLoggedDate
Type : Date
Decorators :
@ApiProperty()
Readonly lastLogoutDate
Type : Date
Decorators :
@ApiProperty()
Readonly lastSuccessfulLoggedDate
Type : Date
Decorators :
@ApiProperty()
Readonly role
Type : string
Decorators :
@ApiProperty()
Readonly uuid
Type : string
Inherited from AbstractDto
Defined in AbstractDto:4
import { ApiProperty } from '@nestjs/swagger';
import { AbstractDto } from 'common/dtos';
import { UserAuthEntity } from 'modules/user/entities';

export class UserAuthDto extends AbstractDto {

  @ApiProperty()
  readonly role: string;

  @ApiProperty()
  readonly lastSuccessfulLoggedDate: Date;

  @ApiProperty()
  readonly lastFailedLoggedDate: Date;

  @ApiProperty()
  readonly lastLogoutDate: Date;

  constructor(userAuth: UserAuthEntity) {
    super(userAuth);
    this.role = userAuth.role;
    this.lastSuccessfulLoggedDate = userAuth.lastSuccessfulLoggedDate;
    this.lastFailedLoggedDate = userAuth.lastFailedLoggedDate;
    this.lastLogoutDate = userAuth.lastLogoutDate;
  }
}

result-matching ""

    No results matching ""