mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-12 17:46:43 -05:00
31 lines
671 B
TypeScript
31 lines
671 B
TypeScript
import { ObjectWithPermissions } from './object-with-permissions'
|
|
|
|
export enum FileVersion {
|
|
Archive = 'archive',
|
|
Original = 'original',
|
|
}
|
|
|
|
export interface ShareLinkExpirationOption {
|
|
label: string
|
|
value: number | null
|
|
}
|
|
|
|
export const SHARE_LINK_EXPIRATION_OPTIONS: ShareLinkExpirationOption[] = [
|
|
{ label: $localize`1 day`, value: 1 },
|
|
{ label: $localize`7 days`, value: 7 },
|
|
{ label: $localize`30 days`, value: 30 },
|
|
{ label: $localize`Never`, value: null },
|
|
]
|
|
|
|
export interface ShareLink extends ObjectWithPermissions {
|
|
created: string // Date
|
|
|
|
expiration?: string // Date
|
|
|
|
slug: string
|
|
|
|
document: number // Document
|
|
|
|
file_version: string
|
|
}
|