improvement: pdf generation added to cases feature.
This commit is contained in:
@@ -49,6 +49,14 @@ export const casesApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
setCaseExternalCode: async (
|
||||
caseId: string,
|
||||
externalCode: string | null,
|
||||
): Promise<{ success: boolean; data: LabCaseDetail }> => {
|
||||
const response = await apiClient.patch(`/cases/${caseId}/external-code`, { externalCode });
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getAttachmentFileBlob: async (caseId: string, attachmentId: string): Promise<Blob> => {
|
||||
const response = await apiClient.get(`/cases/${caseId}/attachments/${attachmentId}/file`, {
|
||||
responseType: 'blob',
|
||||
|
||||
Reference in New Issue
Block a user