feat: Add agent verification history display to the user detail page.

This commit is contained in:
pradeepkumar
2026-03-21 08:56:17 +05:30
parent d2cef0cdae
commit ddf0cc5517
3 changed files with 68 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ export type {
UserFilters,
VerificationStatus,
VerificationDocument,
VerificationHistoryEntry,
AgentProfileDetails,
} from './users.service';

View File

@@ -150,6 +150,21 @@ class UsersService {
}>>(`${this.basePath}/${userId}/verification`, data);
return response.data.data;
}
async getVerificationHistory(userId: string): Promise<VerificationHistoryEntry[]> {
const response = await api.get<ApiResponse<VerificationHistoryEntry[]>>(`${this.basePath}/${userId}/verification-history`);
return response.data.data;
}
}
export interface VerificationHistoryEntry {
id: string;
agentProfileId: string;
status: VerificationStatus;
note: string | null;
adminId: string | null;
createdAt: string;
admin: { id: string; email: string } | null;
}
export const usersService = new UsersService();