src/modules/user/dtos/user-update.dto.ts
Properties |
Readonly Optional email |
Type : string
|
Decorators :
@IsString()
|
Defined in src/modules/user/dtos/user-update.dto.ts:20
|
Readonly Optional firstName |
Type : string
|
Decorators :
@IsString()
|
Defined in src/modules/user/dtos/user-update.dto.ts:14
|
Readonly Optional lastName |
Type : string
|
Decorators :
@IsString()
|
Defined in src/modules/user/dtos/user-update.dto.ts:9
|
Readonly Optional partner |
Type : string
|
Decorators :
@IsUUID()
|
Defined in src/modules/user/dtos/user-update.dto.ts:25
|
Readonly Optional password |
Type : string
|
Decorators :
@IsString()
|
Defined in src/modules/user/dtos/user-update.dto.ts:36
|
Readonly Optional role |
Type : string
|
Decorators :
@ApiPropertyOptional()
|
Defined in src/modules/user/dtos/user-update.dto.ts:30
|
import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsString, IsEmail, MinLength, IsOptional, IsIn, IsUUID } from 'class-validator';
import { PartnerDto } from 'modules/partner/dtos';
export class UserUpdateDto {
@IsString()
@ApiPropertyOptional()
@IsOptional()
readonly lastName?: string;
@IsString()
@ApiPropertyOptional()
@IsOptional()
readonly firstName?: string;
@IsString()
@ApiPropertyOptional()
@IsEmail()
@IsOptional()
readonly email?: string;
@IsUUID()
@ApiPropertyOptional()
@IsOptional()
readonly partner?: string;
@ApiPropertyOptional()
@IsOptional()
@IsIn(['ADMIN', 'ROOT', 'P_ADMIN', 'USER'])
readonly role?: string;
@IsString()
@ApiPropertyOptional({ minLength: 6 })
@MinLength(6)
@IsOptional()
readonly password?: string;
}