feat: implement administrative audit allocation and management dashboard pages with supporting API services
This commit is contained in:
@@ -81,6 +81,22 @@ export const activityFeedsService = {
|
||||
return response;
|
||||
},
|
||||
|
||||
// Dashboard stats scoped to the logged-in user (org-wide for
|
||||
// ADMIN/MODERATOR): overall workload, today's activity, and the workload
|
||||
// split into batches of 50 in the same order the audit session walks.
|
||||
getUserStats: async (isRectificationEnabled: boolean) => {
|
||||
const response = await axiosClient.get('/api/audit/anomaly/user-stats', {
|
||||
params: { isRectificationEnabled }
|
||||
});
|
||||
return response as unknown as {
|
||||
scoped: boolean;
|
||||
batchSize: number;
|
||||
overall: { total: number; audited: number; pending: number; anomaliesFound: number };
|
||||
today: { audited: number; anomaliesFound: number };
|
||||
batches: { batch: number; total: number; audited: number; pending: number; anomaliesFound: number }[];
|
||||
};
|
||||
},
|
||||
|
||||
getFalseAnomaly: async (params: any) => {
|
||||
const response = await axiosClient.get('/api/audit/asset/get-false-Anomaly', { params });
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user