mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 08:37:19 +01:00
Changes before error encountered
Co-authored-by: dawnsystem <42047891+dawnsystem@users.noreply.github.com>
This commit is contained in:
parent
780decf543
commit
c2254d7d1d
1 changed files with 63 additions and 0 deletions
63
src-ui/src/app/data/ai-status.ts
Normal file
63
src-ui/src/app/data/ai-status.ts
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
/**
|
||||
* Represents the AI scanner status and statistics
|
||||
*/
|
||||
export interface AIStatus {
|
||||
/**
|
||||
* Whether the AI scanner is currently active/enabled
|
||||
*/
|
||||
active: boolean
|
||||
|
||||
/**
|
||||
* Whether the AI scanner is currently processing documents
|
||||
*/
|
||||
processing: boolean
|
||||
|
||||
/**
|
||||
* Number of documents scanned today
|
||||
*/
|
||||
documents_scanned_today: number
|
||||
|
||||
/**
|
||||
* Number of AI suggestions applied
|
||||
*/
|
||||
suggestions_applied: number
|
||||
|
||||
/**
|
||||
* Number of pending deletion requests awaiting user approval
|
||||
*/
|
||||
pending_deletion_requests: number
|
||||
|
||||
/**
|
||||
* Last scan timestamp (ISO format)
|
||||
*/
|
||||
last_scan?: string
|
||||
|
||||
/**
|
||||
* AI scanner version or configuration info
|
||||
*/
|
||||
version?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a pending deletion request initiated by AI
|
||||
*/
|
||||
export interface DeletionRequest {
|
||||
id: number
|
||||
document_id: number
|
||||
document_title: string
|
||||
reason: string
|
||||
confidence: number
|
||||
created_at: string
|
||||
status: DeletionRequestStatus
|
||||
}
|
||||
|
||||
/**
|
||||
* Status of a deletion request
|
||||
*/
|
||||
export enum DeletionRequestStatus {
|
||||
Pending = 'pending',
|
||||
Approved = 'approved',
|
||||
Rejected = 'rejected',
|
||||
Cancelled = 'cancelled',
|
||||
Completed = 'completed',
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue