improvement: sorts and filters updated for tasks feature.
This commit is contained in:
@@ -4,6 +4,8 @@ import type {
|
||||
LabTaskListItem,
|
||||
LabTaskStatus,
|
||||
ListLabTasksParams,
|
||||
LocateTaskPageParams,
|
||||
LocateTaskPageResult,
|
||||
PaginatedLabTasks,
|
||||
TaskFilterOptions,
|
||||
} from '@/types/cases';
|
||||
@@ -21,6 +23,13 @@ export const tasksApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
locatePage: async (
|
||||
params: LocateTaskPageParams,
|
||||
): Promise<{ success: boolean; data: LocateTaskPageResult }> => {
|
||||
const response = await apiClient.get('/tasks/locate-page', { params });
|
||||
return response.data;
|
||||
},
|
||||
|
||||
updateStatus: async (
|
||||
taskId: string,
|
||||
status: LabTaskStatus,
|
||||
|
||||
Reference in New Issue
Block a user