feat: Seiten- und Wortzahl für den Duplikatvergleich
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
57a460ffa2
commit
8e0c609802
10 files changed
+273
-21
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import api from './client';
|
||||
import type { VergleichKennzahlen } from './paperless';
|
||||
|
||||
export interface CorrespondentMapping {
|
||||
Id: number;
|
||||
@@ -50,6 +51,23 @@ export const emailImportApi = {
|
||||
await api.post('/api/email-import/belegnummer/release', { date: dateStr, number });
|
||||
},
|
||||
|
||||
attachmentPdfBlob: async (attachmentId: number, pages?: { start: number; end: number }): Promise<Blob> => {
|
||||
const res = await api.get(`/api/email-import/attachments/${attachmentId}/pdf`, {
|
||||
params: pages ? { start: pages.start, end: pages.end } : undefined,
|
||||
responseType: 'blob',
|
||||
});
|
||||
return res.data;
|
||||
},
|
||||
|
||||
vergleich: async (
|
||||
attachmentId: number,
|
||||
paperlessDocumentId: number,
|
||||
pages?: { start: number; end: number },
|
||||
): Promise<VergleichKennzahlen> => {
|
||||
const res = await api.post(`/api/email-import/attachments/${attachmentId}/vergleich`, { paperlessDocumentId, pages });
|
||||
return res.data;
|
||||
},
|
||||
|
||||
printPreview: async (attachmentId: number, barcodeData: any, pages?: { start: number; end: number }): Promise<Blob> => {
|
||||
const res = await api.post(`/api/email-import/attachments/${attachmentId}/print-preview`, { ...barcodeData, _pages: pages }, {
|
||||
responseType: 'blob',
|
||||
|
||||
Reference in new issue
Block a user