improvement: pdf generation added to cases feature.

This commit is contained in:
2026-07-18 22:00:44 +03:30
parent 408b2c3329
commit 538121d653
23 changed files with 1206 additions and 63 deletions

View File

@@ -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',