16 lines
274 B
TypeScript
16 lines
274 B
TypeScript
import { IsOptional, IsString, IsUUID, MaxLength } from 'class-validator';
|
|
|
|
export class ParentOptionsQueryDto {
|
|
@IsUUID('4')
|
|
childTypeId!: string;
|
|
|
|
@IsOptional()
|
|
@IsUUID('4')
|
|
assetId?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(200)
|
|
search?: string;
|
|
}
|