initial: standalone repo from monorepo split
This commit is contained in:
26
src/ticket/dto/update-ticket.dto.ts
Normal file
26
src/ticket/dto/update-ticket.dto.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { IsString, IsOptional, IsIn, MinLength, IsUUID } from 'class-validator';
|
||||
|
||||
export class UpdateTicketDto {
|
||||
@IsOptional()
|
||||
@IsUUID()
|
||||
assigneeId?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MinLength(3)
|
||||
title?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
description?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@IsIn(['low', 'normal', 'high', 'urgent'])
|
||||
priority?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@IsIn(['open', 'in_progress', 'resolved', 'cancelled'])
|
||||
status?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user