fix
This commit is contained in:
@@ -22,6 +22,7 @@ export type {
|
||||
VerificationDocument,
|
||||
VerificationHistoryEntry,
|
||||
AgentProfileDetails,
|
||||
AgentFieldValue,
|
||||
} from './users.service';
|
||||
|
||||
// Agent Types Service
|
||||
|
||||
@@ -156,6 +156,20 @@ class UsersService {
|
||||
const response = await api.get<ApiResponse<VerificationHistoryEntry[]>>(`${this.basePath}/${userId}/verification-history`);
|
||||
return response.data.data;
|
||||
}
|
||||
|
||||
async getAgentFieldValues(agentProfileId: string): Promise<AgentFieldValue[]> {
|
||||
const response = await api.get<ApiResponse<{ agentProfileId: string; fieldValues: AgentFieldValue[] }>>(`/agents/${agentProfileId}/field-values`);
|
||||
return response.data.data.fieldValues;
|
||||
}
|
||||
}
|
||||
|
||||
export interface AgentFieldValue {
|
||||
fieldSlug: string;
|
||||
fieldName: string;
|
||||
fieldType: string;
|
||||
sectionSlug: string;
|
||||
sectionName: string;
|
||||
value: unknown;
|
||||
}
|
||||
|
||||
export interface VerificationHistoryEntry {
|
||||
@@ -166,6 +180,7 @@ export interface VerificationHistoryEntry {
|
||||
adminId: string | null;
|
||||
createdAt: string;
|
||||
admin: { id: string; email: string } | null;
|
||||
submittedData: Record<string, any> | null;
|
||||
}
|
||||
|
||||
export const usersService = new UsersService();
|
||||
|
||||
Reference in New Issue
Block a user