chore: import DH V2 D5.6.4 production baseline
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { Transform } from 'class-transformer';
|
||||
import { IsOptional, IsString, IsUUID, MaxLength, MinLength } from 'class-validator';
|
||||
|
||||
export class ReviewFieldDiscoveryDto {
|
||||
@IsOptional()
|
||||
@Transform(({ value }) => typeof value === 'string' && value.trim() ? value.trim() : null)
|
||||
@IsString()
|
||||
@MaxLength(4000)
|
||||
notes?: string | null;
|
||||
}
|
||||
|
||||
export class RejectFieldDiscoveryDto {
|
||||
@Transform(({ value }) => typeof value === 'string' ? value.trim() : value)
|
||||
@IsString()
|
||||
@MinLength(5)
|
||||
@MaxLength(4000)
|
||||
reason!: string;
|
||||
}
|
||||
|
||||
export class MatchFieldDiscoveryDto {
|
||||
@IsUUID('4')
|
||||
matchedAssetId!: string;
|
||||
|
||||
@Transform(({ value }) => typeof value === 'string' ? value.trim() : value)
|
||||
@IsString()
|
||||
@MinLength(5)
|
||||
@MaxLength(4000)
|
||||
reason!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user