mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
Deletes functions, methods, classes, schema dataclasses, error classes, Events senders, and module-level constants that nothing references, including tests. Also drops the unused `doc_cleanup(test_directory)` and `_wait_for_sub_job_with_progress(collection_idx)` parameters, and the imports that only served removed code. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
813 B
Python
27 lines
813 B
Python
import dataclasses
|
|
from typing import Optional
|
|
|
|
|
|
@dataclasses.dataclass
|
|
class DocSearchRequest:
|
|
search_str: Optional[str] = None
|
|
author: Optional[str] = None
|
|
subject: Optional[str] = None
|
|
language: Optional[str] = None
|
|
mimetype: Optional[str] = None
|
|
tag_names: Optional[list] = dataclasses.field(default_factory=list)
|
|
order_by: Optional[str] = 'published_datetime'
|
|
limit: int = 20
|
|
offset: int = 0
|
|
deep: bool = False # When True, search all text including document contents (d_text)
|
|
|
|
|
|
@dataclasses.dataclass
|
|
class DocSearchResponse:
|
|
file_groups: list = dataclasses.field(default_factory=list)
|
|
totals: dict = dataclasses.field(default_factory=dict)
|
|
|
|
|
|
@dataclasses.dataclass
|
|
class DocStatisticsResponse:
|
|
statistics: dict = dataclasses.field(default_factory=dict)
|