feat: Implement a general location search for agents, querying both legacy city/state/country fields and dynamic profile field values.

This commit is contained in:
pradeepkumar
2026-03-04 20:49:37 +05:30
parent 7b8d6e3db8
commit 0ad73b1636
2 changed files with 93 additions and 0 deletions

View File

@@ -16,6 +16,14 @@ export class SearchAgentsDto {
@IsString()
search?: string;
@ApiPropertyOptional({
example: 'New York',
description: 'General location search across city, state, country, and dynamic field values',
})
@IsOptional()
@IsString()
location?: string;
@ApiPropertyOptional({ example: 'Los Angeles' })
@IsOptional()
@IsString()