Spaces:
Sleeping
Sleeping
| import { IsOptional, IsNumber, IsDateString, IsEnum, IsString, Min } from 'class-validator'; | |
| import { ApiPropertyOptional } from '@nestjs/swagger'; | |
| import { Type } from 'class-transformer'; | |
| import { ApiPropertyStringEnumOptional } from '../../../common/swagger/string-enum.schema'; | |
| import { ErrorType, ErrorSeverity } from '../entities/system-error.entity'; | |
| export class ErrorQueryDto { | |
| ({ | |
| description: 'Filter by error type', | |
| enumObject: ErrorType, | |
| }) | |
| () | |
| (ErrorType) | |
| errorType?: ErrorType; | |
| ({ | |
| description: 'Filter by severity', | |
| enumObject: ErrorSeverity, | |
| }) | |
| () | |
| (ErrorSeverity) | |
| severity?: ErrorSeverity; | |
| ({ description: 'Filter by resolved status (0 or 1)' }) | |
| () | |
| () | |
| (() => Number) | |
| isResolved?: number; | |
| ({ description: 'Start date (ISO format)' }) | |
| () | |
| () | |
| startDate?: string; | |
| ({ description: 'End date (ISO format)' }) | |
| () | |
| () | |
| endDate?: string; | |
| ({ description: 'Page number', default: 1 }) | |
| () | |
| () | |
| (1) | |
| (() => Number) | |
| page?: number = 1; | |
| ({ description: 'Items per page', default: 20 }) | |
| () | |
| () | |
| (1) | |
| (() => Number) | |
| limit?: number = 20; | |
| } | |