Spaces:
Sleeping
Sleeping
| import { PartialType } from '@nestjs/swagger'; | |
| import { IsOptional, IsEnum, IsNumber, Min, Max } from 'class-validator'; | |
| import { ApiPropertyOptional } from '@nestjs/swagger'; | |
| import { Type } from 'class-transformer'; | |
| import { CreateTaskDto } from './create-task.dto'; | |
| import { TaskStatus } from '../entities/student-task.entity'; | |
| export class UpdateTaskDto extends PartialType(CreateTaskDto) { | |
| ({ description: 'Task status', enum: TaskStatus, example: TaskStatus.IN_PROGRESS }) | |
| () | |
| (TaskStatus) | |
| status?: TaskStatus; | |
| ({ description: 'Completion percentage (0-100)', example: 50 }) | |
| () | |
| () | |
| (0) | |
| (100) | |
| (() => Number) | |
| completionPercentage?: number; | |
| } | |