improvement: added a history action button to connected orgs row inordr to see a brief report of the relevant cases between two orgs and the status of each related task.

This commit is contained in:
2026-06-28 23:19:33 +03:30
parent 2a48946a51
commit 3e81c110a3
11 changed files with 739 additions and 15 deletions

View File

@@ -1,4 +1,9 @@
import { apiClient } from './client';
import type {
LabCaseDetail,
ListLabCasesParams,
PaginatedLabCases,
} from '@/types/cases';
export interface CounterpartSearchResultDto {
id: string;
@@ -130,4 +135,30 @@ export const organizationApi = {
const response = await apiClient.post('/organizations/invitations/accept', body);
return response.data;
},
listConnectionCases: async (
connectionId: string,
params: ListLabCasesParams = {},
): Promise<{
success: boolean;
data: PaginatedLabCases & { counterpart: { id: string; name: string } };
}> => {
const response = await apiClient.get(`/organizations/connections/${connectionId}/cases`, {
params,
});
return response.data;
},
getConnectionCase: async (
connectionId: string,
caseId: string,
): Promise<{
success: boolean;
data: LabCaseDetail & { counterpart: { id: string; name: string } };
}> => {
const response = await apiClient.get(
`/organizations/connections/${connectionId}/cases/${caseId}`,
);
return response.data;
},
};