YARA-1069

This commit is contained in:
SepehrYahyaee
2026-07-12 11:44:32 +03:30
parent 9b83db882b
commit c955deda5c
4 changed files with 40 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import { Type } from "class-transformer";
import {
IsIn,
IsInt,
IsISO8601,
IsOptional,
IsString,
Max,
@@ -102,4 +103,20 @@ export class ListQueryV2Dto {
@IsOptional()
@IsIn([...LIST_FILE_TYPE_V2])
fileType?: ListFileTypeV2;
@ApiPropertyOptional({
description: "Filter start date (ISO 8601). Only files created on or after this date are returned.",
example: "2025-01-01T00:00:00.000Z",
})
@IsOptional()
@IsISO8601({ strict: false })
startDate?: string;
@ApiPropertyOptional({
description: "Filter end date (ISO 8601). Only files created on or before this date are returned.",
example: "2025-12-31T23:59:59.999Z",
})
@IsOptional()
@IsISO8601({ strict: false })
endDate?: string;
}