feat: Add agent verification history display to the user detail page.
This commit is contained in:
@@ -20,6 +20,7 @@ export type {
|
||||
UserFilters,
|
||||
VerificationStatus,
|
||||
VerificationDocument,
|
||||
VerificationHistoryEntry,
|
||||
AgentProfileDetails,
|
||||
} from './users.service';
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user