Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

698 B
Raw Blame
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

  document_title?: string

  file_version: string
}