SearchResult
type SearchResult =
| {
channelColor?: number | null;
channelId?: string | null;
channelName?: string | null;
closed?: boolean | null;
commentId?: string | null;
id: string;
snippet: string;
snippetCreatorId: number;
snippetLastUpdated: Date;
threadId: string;
title?: string | null;
type: "thread";
}
| {
channelColor?: number | null;
channelId?: string | null;
channelName?: string | null;
closed?: boolean | null;
conversationId: string;
id: string;
messageId?: string | null;
snippet: string;
snippetCreatorId: number;
snippetLastUpdated: Date;
title?: string | null;
type: "conversation";
};
Union Members
Type Literal
{
channelColor?: number | null;
channelId?: string | null;
channelName?: string | null;
closed?: boolean | null;
commentId?: string | null;
id: string;
snippet: string;
snippetCreatorId: number;
snippetLastUpdated: Date;
threadId: string;
title?: string | null;
type: "thread";
}
| Name | Type | Description |
|---|---|---|
channelColor? | number | null | - |
channelId? | string | null | - |
channelName? | string | null | - |
closed? | boolean | null | - |
commentId? | string | null | The matched comment id, set when the match is a comment. |
id | string | Opaque search-result key in the form thread_<threadId> or conversation_<conversationId>. Unique per result; not a Comms object id — use threadId, conversationId, commentId, or messageId to reference objects. |
snippet | string | - |
snippetCreatorId | number | - |
snippetLastUpdated | Date | - |
threadId | string | The owning thread id. |
title? | string | null | - |
type | "thread" | - |
Type Literal
{
channelColor?: number | null;
channelId?: string | null;
channelName?: string | null;
closed?: boolean | null;
conversationId: string;
id: string;
messageId?: string | null;
snippet: string;
snippetCreatorId: number;
snippetLastUpdated: Date;
title?: string | null;
type: "conversation";
}
| Name | Type | Description |
|---|---|---|
channelColor? | number | null | - |
channelId? | string | null | - |
channelName? | string | null | - |
closed? | boolean | null | - |
conversationId | string | The owning conversation id. |
id | string | Opaque search-result key in the form thread_<threadId> or conversation_<conversationId>. Unique per result; not a Comms object id — use threadId, conversationId, commentId, or messageId to reference objects. |
messageId? | string | null | The matched message id. |
snippet | string | - |
snippetCreatorId | number | - |
snippetLastUpdated | Date | - |
title? | string | null | - |
type | "conversation" | - |