improvement: tasks and cases feature updated based on the new prosthesis types and their steps. the whole assignment proccess removed from the flow.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { apiClient } from './client';
|
||||
import type {
|
||||
LabCaseComment,
|
||||
LabCaseDetail,
|
||||
ListLabCasesParams,
|
||||
PaginatedLabCases,
|
||||
@@ -161,4 +162,26 @@ export const organizationApi = {
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
listConnectionCaseComments: async (
|
||||
connectionId: string,
|
||||
caseId: string,
|
||||
): Promise<{ success: boolean; data: LabCaseComment[] }> => {
|
||||
const response = await apiClient.get(
|
||||
`/organizations/connections/${connectionId}/cases/${caseId}/comments`,
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
addConnectionCaseComment: async (
|
||||
connectionId: string,
|
||||
caseId: string,
|
||||
body: string,
|
||||
): Promise<{ success: boolean; data: LabCaseComment }> => {
|
||||
const response = await apiClient.post(
|
||||
`/organizations/connections/${connectionId}/cases/${caseId}/comments`,
|
||||
{ body },
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user