feat(backend,frontend): search everywhere in buttons, links and message data, a jump from search or an alert lights up the found words and buttons
This commit is contained in:
1 parent
acfa726e61
commit
d660079c02
21 files changed
+840
-76
No files matched your search
@@ -7,7 +7,24 @@ export type PolicyScopeType =
|
||||
| "default_channel"
|
||||
| "folder"
|
||||
| "chat";
|
||||
export type SearchSource = "text" | "stt" | "version";
|
||||
export type SearchSource = "text" | "stt" | "version" | "data";
|
||||
|
||||
export type FoundWhere =
|
||||
| "text"
|
||||
| "button"
|
||||
| "link"
|
||||
| "forward"
|
||||
| "reply"
|
||||
| "file"
|
||||
| "preview"
|
||||
| "data";
|
||||
|
||||
export interface SearchFound {
|
||||
button: string | null;
|
||||
path: string;
|
||||
value: string;
|
||||
where: FoundWhere;
|
||||
}
|
||||
|
||||
export type SearchChatKind = "private" | "group" | "channel";
|
||||
export type JobStatus =
|
||||
@@ -289,6 +306,7 @@ export interface SearchHit {
|
||||
deleted_at: string | null;
|
||||
edited_at: string | null;
|
||||
extracted_text: string | null;
|
||||
found: SearchFound | null;
|
||||
has_media: boolean;
|
||||
media_kind: string | null;
|
||||
message_id: number;
|
||||
@@ -302,6 +320,7 @@ export interface SearchHit {
|
||||
export interface SearchPage {
|
||||
hits: SearchHit[];
|
||||
next_cursor: string | null;
|
||||
scanned_to: string | null;
|
||||
terms: string[];
|
||||
}
|
||||
|
||||
@@ -312,6 +331,7 @@ export interface SearchQuery {
|
||||
date_to?: string;
|
||||
deleted?: boolean;
|
||||
edited?: boolean;
|
||||
everywhere?: boolean;
|
||||
has_media?: boolean;
|
||||
kind?: SearchChatKind;
|
||||
limit?: number;
|
||||
|
||||
Reference in new issue
Block a user