save email as pdf likae attachment version 2

This commit is contained in:
2026-02-04 19:49:09 +01:00
parent 8c65fecef0
commit f33d157b9b
21 changed files with 1143 additions and 151 deletions
+8
View File
@@ -506,6 +506,14 @@ export const cachedEmailApi = {
);
return res.data;
},
// E-Mail als PDF speichern
saveEmailAsPdf: async (emailId: number, params: { entityType: string; entityId?: number; targetKey: string }) => {
const res = await api.post<ApiResponse<{ path: string; filename: string; size: number }>>(
`/emails/${emailId}/save-as-pdf`,
params
);
return res.data;
},
};
// Contracts - Vertragsbaum für Kundenansicht