20 lines
456 B
TypeScript
20 lines
456 B
TypeScript
import { IsOptional, IsIn, IsString } from 'class-validator';
|
|
|
|
export class UpdateTicketDto {
|
|
@IsOptional()
|
|
@IsIn(['low', 'normal', 'high', 'urgent'])
|
|
priority?: string;
|
|
|
|
@IsOptional()
|
|
@IsIn(['open', 'in_progress', 'waiting_tenant', 'resolved', 'closed'])
|
|
status?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
assignedToId?: string;
|
|
|
|
@IsOptional()
|
|
@IsIn(['billing', 'technical', 'account', 'general', 'feature_request'])
|
|
category?: string;
|
|
}
|