forked from Yara724/api
Add case identity filters and description validation
This commit is contained in:
@@ -86,6 +86,26 @@ export class ListQueryV2Dto {
|
||||
@MaxLength(64)
|
||||
search?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: "Filter cases by a phone number found on any party.",
|
||||
example: "09121234567",
|
||||
maxLength: 32,
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(32)
|
||||
phoneNumber?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: "Filter cases by a national code found on any party.",
|
||||
example: "0012345678",
|
||||
maxLength: 32,
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(32)
|
||||
nationalCode?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
enum: UNIFIED_FILE_STATUS_KEYS,
|
||||
description:
|
||||
|
||||
Reference in New Issue
Block a user