Files
dh-inspeccion-v2/api-v3/src/asset-master/dto/list-asset-tree-children-query.dto.ts
T

17 lines
399 B
TypeScript

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;
}