Add case identity filters and description validation

This commit is contained in:
SepehrYahyaee
2026-09-27 09:54:56 +03:30
parent 8ac185c861
commit b758346af1
15 changed files with 339 additions and 13 deletions
@@ -81,6 +81,14 @@ export class InquiryParticipantInputDto {
@IsOptional()
@IsString()
licenseType?: string;
@ApiPropertyOptional({
description:
"Driver licence issue date. Required only for a driver who has a licence; Jalali YYYY/MM/DD is recommended.",
example: "1400/01/15",
})
@IsOptional()
driverLicenseDate?: string | number;
}
export class InquiryVehicleInputDto {
@@ -168,6 +176,9 @@ export class InquiryParticipantFieldsDto {
@ApiHideProperty()
driverLicense?: string;
@ApiHideProperty()
driverLicenseDate?: string;
@ApiHideProperty()
licenseType?: string;
+20
View File
@@ -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: