File

src/alerts/dto/update-alert.dto.ts

Extends

PartialType(CreateAlertDto)

Index

Properties

Properties

Optional status
Type : AlertStatus
Decorators :
@ApiPropertyOptional({enum: AlertStatus})
@IsOptional()
@IsEnum(AlertStatus)
import { PartialType } from '@nestjs/swagger';
import { CreateAlertDto } from './create-alert.dto';
import { IsOptional, IsEnum } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
import { AlertStatus } from '@prisma/client';

export class UpdateAlertDto extends PartialType(CreateAlertDto) {
  @ApiPropertyOptional({ enum: AlertStatus })
  @IsOptional()
  @IsEnum(AlertStatus)
  status?: AlertStatus;
}

results matching ""

    No results matching ""