mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-04 21:06:20 -05:00
Refactor frontend data models
This commit is contained in:
18
src-ui/src/app/data/share-link.ts
Normal file
18
src-ui/src/app/data/share-link.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { ObjectWithPermissions } from './object-with-permissions'
|
||||
|
||||
export enum FileVersion {
|
||||
Archive = 'archive',
|
||||
Original = 'original',
|
||||
}
|
||||
|
||||
export interface ShareLink extends ObjectWithPermissions {
|
||||
created: string // Date
|
||||
|
||||
expiration?: string // Date
|
||||
|
||||
slug: string
|
||||
|
||||
document: number // Document
|
||||
|
||||
file_version: string
|
||||
}
|
Reference in New Issue
Block a user