AboutSupportDeveloper GuideVersion 22.3.18

Interface CLISearchResultPlain<A>

Non-Template Search Result

interface CLISearchResultPlain<A> {
    actions: A[];
    data?: any;
    description?: string;
    icon?: string;
    key: string;
    label?: string;
    score?: number;
    shortDescription?: string;
    tags?: SearchTag[];
    template: Plain;
    templateContent: undefined;
    title: string;
}

Type Parameters

Hierarchy (view full)

Properties

actions: A[]

Actions that can be performed with this search result. Used when dispatching search results back to the respective provider.

data?: any

Additional custom metadata about the search result. Can be used when actioning the search result.

description?: string

Unused.

icon?: string

An optional icon that can be used when displaying the search result in a UI.

key: string

A unique ID for the search result. Can be used to update a previously returned search result by calling searchRequestContext.respond(result) with the same search result key.

label?: string

A label to render with the search result.

score?: number

Used when sorting a list of search results for a single provider.

shortDescription?: string

Unused.

tags?: SearchTag[]

Tags associated with the search result.

template: Plain
templateContent: undefined
title: string

UI friendly name for the search result.