@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Interface SuggestResponse

    interface SuggestResponse {
        categories?: {
            id: string;
            name: string;
            slug: string | null;
            type: string;
        }[];
        products?: StorefrontProduct[];
        success: boolean;
        suggestions?: SuggestionItem[];
        terms?: SuggestionItem[];
    }
    Index
    categories?: { id: string; name: string; slug: string | null; type: string }[]
    products?: StorefrontProduct[]

    Top matching products (popular products for an empty query)

    success: boolean
    suggestions?: SuggestionItem[]

    Combined list: categories first, then products, then search terms

    terms?: SuggestionItem[]

    Search-term suggestions only. For an empty query these are popular searches.