10 lines
461 B
TypeScript
10 lines
461 B
TypeScript
import { Type } from 'class-transformer';
|
|
import { IsIn, IsInt, IsOptional, IsString, Max, MaxLength, Min } from 'class-validator';
|
|
|
|
export class ListAssetImportRowsQueryDto {
|
|
@IsOptional() @Type(() => Number) @IsInt() @Min(1) page = 1;
|
|
@IsOptional() @Type(() => Number) @IsInt() @Min(1) @Max(200) pageSize = 50;
|
|
@IsOptional() @IsIn(['READY','WARNING','CONFLICT','IGNORED']) status?: string;
|
|
@IsOptional() @IsString() @MaxLength(160) search?: string;
|
|
}
|