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:
@@ -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;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user