mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-12 01:26:41 -05:00
28 lines
575 B
TypeScript
28 lines
575 B
TypeScript
import { FileVersion } from './share-link'
|
|
|
|
export enum ShareBundleStatus {
|
|
Pending = 'pending',
|
|
Processing = 'processing',
|
|
Ready = 'ready',
|
|
Failed = 'failed',
|
|
}
|
|
|
|
export interface ShareBundleSummary {
|
|
id: number
|
|
slug: string
|
|
created: string // Date
|
|
expiration?: string // Date
|
|
documents: number[]
|
|
document_count: number
|
|
file_version: FileVersion
|
|
status: ShareBundleStatus
|
|
size_bytes?: number
|
|
last_error?: string
|
|
}
|
|
|
|
export interface ShareBundleCreatePayload {
|
|
document_ids: number[]
|
|
file_version: FileVersion
|
|
expiration_days: number | null
|
|
}
|