Vizzuality/landgriffon

View on GitHub
api/src/modules/tasks/dto/get-reports.dto.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ApiProperty } from '@nestjs/swagger';
import { IsEnum } from 'class-validator';
import { TASK_TYPE } from 'modules/tasks/task.entity';

export class GetReportsDto {
  @ApiProperty()
  @IsEnum(TASK_TYPE)
  type!: TASK_TYPE;
}