improvement: attachment selection for lab dispatch added. attachment preview added to cases feature.
This commit is contained in:
@@ -33,4 +33,12 @@ export const casesApi = {
|
||||
const response = await apiClient.patch(`/cases/${caseId}/tasks/${taskId}`, { isImportant });
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getAttachmentFileBlob: async (caseId: string, attachmentId: string): Promise<Blob> => {
|
||||
const response = await apiClient.get(`/cases/${caseId}/attachments/${attachmentId}/file`, {
|
||||
responseType: 'blob',
|
||||
timeout: 120_000,
|
||||
});
|
||||
return response.data;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user