feat(frontend): Webhook-Status-Tab in den Einstellungen
Neuer Tab "Webhook" in der SettingsPage zeigt den letzten Paperless- Webhook-Aufruf (Zeitpunkt, Dokument-ID, Aktion, Ergebnis) über GET /api/webhook/status an. Neue API-Datei src/api/webhook.ts. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
32d9e84985
commit
1c37936d8c
2 files changed
+112
-2
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import api from './client';
|
||||
|
||||
export interface WebhookLastCall {
|
||||
at: string; // ISO-Zeitstempel
|
||||
documentId: number | null;
|
||||
action: string | null;
|
||||
status: 'processed' | 'skipped' | 'error' | 'bad-request' | string;
|
||||
reason?: string;
|
||||
message?: string;
|
||||
}
|
||||
|
||||
export interface WebhookStatus {
|
||||
lastCall: WebhookLastCall | null;
|
||||
}
|
||||
|
||||
export const webhookApi = {
|
||||
getStatus: () =>
|
||||
api.get<WebhookStatus>('/api/webhook/status').then((r) => r.data),
|
||||
};
|
||||
Reference in new issue
Block a user