Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Selectors

Index

Functions

area

  • area(state: State): string

autocomplete

autocompleteCategoryField

  • autocompleteCategoryField(state: State): string
  • Returns the set autocomplete category field navigationId.

    Parameters

    Returns string

autocompleteCategoryValues

  • autocompleteCategoryValues(state: State): string[]
  • Returns the current values for the autocomplete category field.

    Parameters

    Returns string[]

autocompleteNavigations

autocompleteProducts

autocompleteQuery

  • autocompleteQuery(state: State): string

autocompleteSuggestions

autocompleteTemplate

availableNavigations

availablePastPurchaseNavigations

collection

  • collection(state: State): string

collectionIndex

  • collectionIndex(state: State, name: string): number
  • Returns the index of the given collection.

    Parameters

    • state: State
    • name: string

    Returns number

collections

config

currentQuery

  • currentQuery(state: State): string
  • Returns the corrected query if it exists, otherwise returns the original query.

    Parameters

    Returns string

defaultCollection

  • defaultCollection(state: State): string

details

didYouMean

  • didYouMean(state: State): string[]

fields

  • fields(state: State): string[]

findProduct

getLimitedCountDisplay

  • getLimitedCountDisplay(count: number): string
  • Helper function to display record count limited by the max records we can return from the database.

    Parameters

    • count: number

    Returns string

getSelected

  • getSelected(allNavigations: Navigation[]): SelectedRefinement[]
  • Helper function to get selected navigations from an array of navigations.

    Parameters

    Returns SelectedRefinement[]

hasMoreRefinements

  • hasMoreRefinements(state: State, navigationId: string): boolean
  • Returns true if the navigation based on the given navigationId has more refinements.

    Parameters

    • state: State
    • navigationId: string

    Returns boolean

infiniteScroll

isPastPurchaseRefinementDeselected

  • isPastPurchaseRefinementDeselected(state: State, navigationId: string, index: number): boolean
  • Finds the past purchase refinement based on the given navigationId and index and returns true if it is not selected, false otherwise.

    Parameters

    • state: State
    • navigationId: string
    • index: number

    Returns boolean

isPastPurchaseRefinementSelected

  • isPastPurchaseRefinementSelected(state: State, navigationId: string, index: number): boolean
  • Finds the past purchase refinement based on the given navigationId and index and returns true if it is selected, false otherwise.

    Parameters

    • state: State
    • navigationId: string
    • index: number

    Returns boolean

isRefinementDeselected

  • isRefinementDeselected(state: State, navigationId: string, index: number): boolean
  • Finds the refinement based on the given navigationId and index and returns true if it is not selected, false otherwise.

    Parameters

    • state: State
    • navigationId: string
    • index: number

    Returns boolean

isRefinementSelected

  • isRefinementSelected(state: State, navigationId: string, index: number): boolean
  • Finds the refinement based on the given navigationId and index and returns true if it is selected, false otherwise.

    Parameters

    • state: State
    • navigationId: string
    • index: number

    Returns boolean

location

navigation

navigationSort

navigations

navigationsObject

page

  • page(state: State): number

pageObject

pageSize

  • pageSize(state: State): number

pageSizeIndex

  • pageSizeIndex(state: State): number

pageSizes

pastPurchaseAllRecordCount

  • pastPurchaseAllRecordCount(state: State): number

pastPurchaseCurrentRecordCount

  • pastPurchaseCurrentRecordCount(state: State): number

pastPurchaseNavigation

pastPurchaseNavigations

pastPurchaseNavigationsObject

pastPurchasePage

  • pastPurchasePage(state: State): number

pastPurchasePageObject

pastPurchasePageSize

  • pastPurchasePageSize(state: State): number

pastPurchasePageSizeIndex

  • pastPurchasePageSizeIndex(state: State): number

pastPurchasePageSizes

pastPurchaseProducts

  • pastPurchaseProducts(state: State): object[]

pastPurchaseProductsBySku

  • pastPurchaseProductsBySku(state: State): object

pastPurchaseProductsWithMetadata

pastPurchaseQuery

  • pastPurchaseQuery(state: State): string

pastPurchaseSelectedRefinements

  • pastPurchaseSelectedRefinements(state: State): (SelectedValueRefinement | SelectedRangeRefinement)[]
  • Returns all selected refinements for the past purchase page

    Parameters

    Returns (SelectedValueRefinement | SelectedRangeRefinement)[]

pastPurchaseSort

pastPurchaseSortSelected

pastPurchaseTotalPages

  • pastPurchaseTotalPages(state: State): number

pastPurchases

products

productsLoaded

  • productsLoaded(state: State): boolean
  • Returns a boolean indicating whether products are loaded

    Parameters

    Returns boolean

productsWithMetadata

productsWithPastPurchase

  • productsWithPastPurchase(state: State, idField: string): object[]
  • Returns products with past purchases metadata.

    Parameters

    • state: State

      Store state.

    • idField: string

    Returns object[]

    • The field for the past purchase key

query

  • query(state: State): string

rangeNavigationMax

  • rangeNavigationMax(state: State, navigationId: any): number
  • Returns the maximum value for the given range navigation.

    Parameters

    • state: State
    • navigationId: any

    Returns number

rangeNavigationMin

  • rangeNavigationMin(state: State, navigationId: any): number
  • Returns the minimum value for the given range navigation.

    Parameters

    • state: State
    • navigationId: any

    Returns number

realTimeBiasesAllIds

realTimeBiasesById

realTimeBiasesHydrated

  • realTimeBiasesHydrated(state: State): any
  • Returns whether or not biasing has been rehydrated from localstorage

    Parameters

    Returns any

recommendationsProducts

recordCount

  • recordCount(state: State): number

refinementCrumb

  • refinementCrumb(state: State, navigationId: string, index: number): object
  • Returns the refinement object for the given navigationId and index.

    Parameters

    • state: State
    • navigationId: string
    • index: number

    Returns object

    • field: string
    • high: any
    • low: any
    • range: boolean
    • value: any

relatedQueries

  • relatedQueries(state: State): string[]

saytPastPurchases

selectedRefinements

  • selectedRefinements(state: State): (SelectedValueRefinement | SelectedRangeRefinement)[]
  • Returns the current selected refinements.

    Parameters

    Returns (SelectedValueRefinement | SelectedRangeRefinement)[]

skip

  • skip(state: State, pagesize: number): number
  • Returns the request skip needed for the current page and given page size.

    Parameters

    • state: State
    • pagesize: number

    Returns number

sort

sortIndex

  • sortIndex(state: State): number

sorts

template

totalPages

  • totalPages(state: State): number

uiTagState

  • uiTagState(state: State, tagName: string, id: string): any
  • Returns the ui state for the tag with the given tagName and id.

    Parameters

    • state: State
    • tagName: string
    • id: string

    Returns any

uiTagStates

  • uiTagStates(state: State, tagName: string): object
  • Returns the ui state for the all of the tags with the given tagName.

    Parameters

    • state: State
    • tagName: string

    Returns object

    • [tagId: number]: any
    • Optional global?: any

Generated using TypeDoc