mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 02:57:09 +01:00
Refactor frontend data models
This commit is contained in:
parent
5723bd8dd8
commit
66b2d90c50
120 changed files with 640 additions and 706 deletions
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue