feat: Enhance agent profiles with dynamic fields, granular location data, and add a verified badge asset.

This commit is contained in:
pradeepkumar
2026-02-01 22:45:56 +05:30
parent ad2d2dfbf4
commit bb7706d152
5 changed files with 204 additions and 97 deletions

View File

@@ -83,6 +83,22 @@ export interface SearchAgentsParams {
filters?: Record<string, string[]>;
}
// Field value from search response
export interface AgentFieldValue {
id: string;
fieldId: string;
textValue: string | null;
numberValue: number | null;
booleanValue: boolean | null;
jsonValue: unknown;
dateValue: string | null;
field: {
slug: string;
name: string;
fieldType: string;
};
}
// Public agent listing response
export interface PublicAgentProfile {
id: string;
@@ -98,6 +114,9 @@ export interface PublicAgentProfile {
specializations: string[];
languages: string[];
serviceAreas: string[];
city: string | null;
state: string | null;
country: string | null;
rating: number | null;
reviewCount: number;
isVerified: boolean;
@@ -105,6 +124,7 @@ export interface PublicAgentProfile {
agentTypeId: string | null;
agentType: AgentType | null;
createdAt?: string;
fieldValues?: AgentFieldValue[];
}
export interface SearchAgentsResponse {