Interface StandaloneSearchBoxSetActionCreators

The standalone search box set action creators.

interface StandaloneSearchBoxSetActionCreators {
    fetchRedirectUrl(
        payload: FetchRedirectUrlActionCreatorPayload,
    ): AsyncThunkAction<
        string,
        FetchRedirectUrlActionCreatorPayload,
        AsyncThunkSearchOptions<StateNeededForRedirect>,
    >;
    registerStandaloneSearchBox(
        payload: RegisterStandaloneSearchBoxActionCreatorPayload,
    ): {
        payload: RegisterStandaloneSearchBoxActionCreatorPayload;
        type: string;
    };
    resetStandaloneSearchBox(
        payload: ResetStandaloneSearchBoxActionCreatorPayload,
    ): { payload: ResetStandaloneSearchBoxActionCreatorPayload; type: string };
    updateAnalyticsToOmniboxFromLink(
        payload: UpdateAnalyticsToOmniboxFromLinkActionCreatorPayload,
    ): {
        payload: UpdateAnalyticsToOmniboxFromLinkActionCreatorPayload;
        type: string;
    };
    updateAnalyticsToSearchFromLink(
        payload: UpdateAnalyticsToSearchFromLinkActionCreatorPayload,
    ): {
        payload: UpdateAnalyticsToSearchFromLinkActionCreatorPayload;
        type: string;
    };
    updateStandaloneSearchBoxRedirectionUrl(
        payload: RegisterStandaloneSearchBoxActionCreatorPayload,
    ): {
        payload: RegisterStandaloneSearchBoxActionCreatorPayload;
        type: string;
    };
}

Methods

  • Preprocesses the query for the current headless state, and retrieves a redirection URL if a redirect trigger was fired in the query pipeline.

    Parameters

    Returns AsyncThunkAction<
        string,
        FetchRedirectUrlActionCreatorPayload,
        AsyncThunkSearchOptions<StateNeededForRedirect>,
    >

    A dispatchable action.