import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; import { IsOptional, IsString, MinLength } from 'class-validator'; export class ApproveStepDto { @ApiProperty({ description: 'LINE_STAFF | DIRECTOR | CEO' }) @IsString() requiredRole!: string; } export class RequestChangesDto { @ApiProperty({ description: 'Note explaining what the customer must fix' }) @IsString() @MinLength(1) note!: string; } export class RejectContractDto { @ApiProperty() @IsString() @MinLength(1) reason!: string; } export class RejectStepDto { @ApiProperty() @IsString() @MinLength(1) reason!: string; } export class CancelContractDto { @ApiPropertyOptional() @IsOptional() @IsString() reason?: string; }