paperless-ngx/src-ui/src/app/data/paperless-document.ts

51 lines
899 B
TypeScript
Raw Normal View History

2020-10-27 01:10:18 +01:00
import { PaperlessCorrespondent } from './paperless-correspondent'
import { ObjectWithId } from './object-with-id'
import { PaperlessTag } from './paperless-tag'
import { PaperlessDocumentType } from './paperless-document-type'
import { Observable } from 'rxjs'
2020-10-27 01:10:18 +01:00
export interface SearchHit {
score?: number
rank?: number
highlights?: string
}
2020-10-30 22:46:43 +01:00
export interface PaperlessDocument extends ObjectWithId {
correspondent$?: Observable<PaperlessCorrespondent>
2020-10-27 01:10:18 +01:00
correspondent?: number
2020-10-27 01:10:18 +01:00
document_type$?: Observable<PaperlessDocumentType>
2020-10-27 01:10:18 +01:00
document_type?: number
2020-10-27 01:10:18 +01:00
title?: string
2020-10-27 01:10:18 +01:00
content?: string
2020-10-27 01:10:18 +01:00
file_type?: string
2020-10-27 01:10:18 +01:00
tags$?: Observable<PaperlessTag[]>
2020-10-27 01:10:18 +01:00
tags?: number[]
2020-10-27 01:10:18 +01:00
checksum?: string
2020-10-27 01:10:18 +01:00
created?: Date
2020-10-27 01:10:18 +01:00
modified?: Date
2020-10-27 01:10:18 +01:00
added?: Date
2020-10-27 01:10:18 +01:00
file_name?: string
2020-10-27 01:10:18 +01:00
download_url?: string
2020-10-27 01:10:18 +01:00
thumbnail_url?: string
2020-10-27 01:10:18 +01:00
archive_serial_number?: number
__search_hit__?: SearchHit
2020-10-27 01:10:18 +01:00
}