feat: Enhance agent profiles with dynamic fields, granular location data, and add a verified badge asset.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user