import { Type } from 'class-transformer'; import { IsInt, IsOptional, IsUUID, Max, Min } from 'class-validator'; import { ListAssetTreeQueryDto } from './list-asset-tree-query.dto'; export class ListAssetTreeChildrenQueryDto extends ListAssetTreeQueryDto { @IsOptional() @IsUUID('4') parentId?: string; @IsOptional() @Type(() => Number) @IsInt() @Min(1) @Max(200) limit = 100; }