Performance: support passing selection data with filtered document requests (#12300)

This commit is contained in:
shamoon
2026-03-30 09:38:52 -07:00
committed by GitHub
parent 0292edbee7
commit f715533770
22 changed files with 328 additions and 181 deletions
+19
View File
@@ -1,3 +1,5 @@
import { Document } from './document'
export interface Results<T> {
count: number
@@ -5,3 +7,20 @@ export interface Results<T> {
all: number[]
}
export interface SelectionDataItem {
id: number
document_count: number
}
export interface SelectionData {
selected_storage_paths: SelectionDataItem[]
selected_correspondents: SelectionDataItem[]
selected_tags: SelectionDataItem[]
selected_document_types: SelectionDataItem[]
selected_custom_fields: SelectionDataItem[]
}
export interface DocumentResults extends Results<Document> {
selection_data?: SelectionData
}