Variables
DEFAULT_AREA
DEFAULT_AREA: "Production" = "Production"
DEFAULT_COLLECTION
DEFAULT_COLLECTION: "default" = "default"
DEFAULT_PAGE_SIZE
DEFAULT_PAGE_SIZE: 10 = 10
DETAILS_CHANGE_ACTIONS
DETAILS_CHANGE_ACTIONS: string[] = [Actions.UPDATE_DETAILS,]
MAX_RECORDS
MAX_RECORDS: 10000 = 10000
PAST_PURCHASES_SEARCH_CHANGE_ACTIONS
PAST_PURCHASES_SEARCH_CHANGE_ACTIONS: string[] = [Actions.UPDATE_PAST_PURCHASE_QUERY,Actions.RESET_PAST_PURCHASE_REFINEMENTS,Actions.SELECT_PAST_PURCHASE_REFINEMENT,Actions.DESELECT_PAST_PURCHASE_REFINEMENT,Actions.SELECT_PAST_PURCHASE_SORT,Actions.UPDATE_PAST_PURCHASE_CURRENT_PAGE,Actions.UPDATE_PAST_PURCHASE_PAGE_SIZE,]
PAST_PURCHASE_SKU_ACTIONS
PAST_PURCHASE_SKU_ACTIONS: string[] = [Actions.FETCH_PAST_PURCHASE_PRODUCTS,Actions.FETCH_SAYT_PAST_PURCHASES,]
PERSONALIZATION_CHANGE_ACTIONS
PERSONALIZATION_CHANGE_ACTIONS: string[] = [Actions.SELECT_REFINEMENT,Actions.ADD_REFINEMENT,]
RECALL_CHANGE_ACTIONS
RECALL_CHANGE_ACTIONS: string[] = [Actions.RESET_REFINEMENTS,Actions.UPDATE_QUERY,Actions.ADD_REFINEMENT,Actions.SELECT_REFINEMENT,Actions.DESELECT_REFINEMENT,]
SAGA_CREATORS
SAGA_CREATORS: (Anonymous function)[] = [autocomplete,collection,productDetails,products,recommendations,refinements,]
SAVE_STATE_ACTIONS
SAVE_STATE_ACTIONS: string[] = [...SEARCH_CHANGE_ACTIONS,...PAST_PURCHASES_SEARCH_CHANGE_ACTIONS,...DETAILS_CHANGE_ACTIONS]
SEARCH_CHANGE_ACTIONS
SEARCH_CHANGE_ACTIONS: string[] = [...RECALL_CHANGE_ACTIONS,Actions.SELECT_COLLECTION,Actions.SELECT_SORT,Actions.UPDATE_PAGE_SIZE,Actions.UPDATE_CURRENT_PAGE,]
STORAGE_KEY
STORAGE_KEY: "gb-personalization" = "gb-personalization"
STORAGE_WHITELIST
STORAGE_WHITELIST: string[] = ['biasing']
UNDOABLE_ACTIONS
UNDOABLE_ACTIONS: string[] = [Actions.RECEIVE_PRODUCTS,Actions.RECEIVE_RECOMMENDATIONS_PRODUCTS,Actions.RECEIVE_COLLECTION_COUNT,Actions.RECEIVE_NAVIGATION_SORT,Actions.RECEIVE_MORE_REFINEMENTS,Actions.RECEIVE_PAST_PURCHASE_PRODUCTS,]
autocompletePastPurchaseRequest
autocomplete
PastPurchaseRequest: RequestBuilder<Request, Request> = new RequestBuilder<Request>(RequestHelpers.autocompleteProducts, Configuration.pastPurchaseAutocompleteOverrides)
autocompleteProductsRequest
autocomplete
ProductsRequest: RequestBuilder<Request, Request> = new RequestBuilder<Request>(RequestHelpers.autocompleteProducts, Configuration.autocompleteProductsOverrides)
autocompleteSuggestionsRequest
autocomplete
SuggestionsRequest: RequestBuilder<AutocompleteConfig & object, AutocompleteConfig & object> = new RequestBuilder<QueryTimeAutocompleteConfig>(RequestHelpers.autocompleteSuggestions, Configuration.autocompleteSuggestionsOverrides)
collectionRequest
collection
Request: RequestBuilder<Request, Request> = new RequestBuilder<Request>(RequestHelpers.search, Configuration.collectionOverrides)
pastPurchaseProductsRequest
past
PurchaseProductsRequest: RequestBuilder<Request, Request> = new RequestBuilder<Request>(RequestHelpers.pastPurchaseProducts, Configuration.pastPurchaseOverrides)
personalizationTransform
personalizationTransform: any = createTransform(// transform state coming from redux on its way to being serialized and storedAdapter.transformToBrowser,// configuration options (if any))
productDetailsRequest
product
DetailsRequest: RequestBuilder<Request, Request> = new RequestBuilder<Request>(RequestHelpers.search, Configuration.detailsOverrides)
productsRequest
products
Request: RequestBuilder<Request, Request> = new RequestBuilder<Request>(RequestHelpers.products, Configuration.searchOverrides)
recommendationsNavigationsRequest
recommendationsProductIdsRequest
recommendationsProductsRequest
recommendations
ProductsRequest: RequestBuilder<Request, Request> = new RequestBuilder<Request>(RequestHelpers.search, Configuration.recommendationsProductsOverrides)
recommendationsSuggestionsRequest
refinementsRequest
refinements
Request: RequestBuilder<Request, Request> = new RequestBuilder<Request>(RequestHelpers.search, Configuration.refinementsOverrides)
Object literals
DEFAULT
DEFAULT: object
biasing
biasing: object
allIds
allIds: undefined[] = []
DEFAULTS
DEFAULTS: object = <any>{suggested: {products: []},}
allIds
allIds: undefined[] = []
current
current: number = 1
didYouMean
didYouMean: undefined[] = []
isFetchingBackward
isFetchingBackward: boolean = false
isFetchingForward
isFetchingForward: boolean = false
items
items: undefined[] = []
navigations
navigations: undefined[] = []
products
products: undefined[] = []
related
related: undefined[] = []
rewrites
rewrites: undefined[] = []
searchCharMinLimit
searchCharMinLimit: number = 1
showCategoryValuesForFirstMatch
showCategoryValuesForFirstMatch: boolean = false
sort
sort: undefined[] = []
suggestions
suggestions: undefined[] = []
template
template: any = <any>{}
byId
byId: object
__computed
__computed: object
name
name: string = DEFAULT_COLLECTION
category
category: object
values
values: undefined[] = []
sizes
sizes: object
items
items: number[] = [DEFAULT_PAGE_SIZE]
selected
selected: number = 0
DEFAULT_FETCHING
DEFAULT_FETCHING: object
autocompleteProducts
autocompleteProducts: boolean = false
autocompleteSuggestions
autocompleteSuggestions: boolean = false
details
details: boolean = false
moreProducts
moreProducts: boolean = false
moreRefinements
moreRefinements: boolean = false
search
search: boolean = false
Routes
Routes: object
DETAILS
DETAILS: string = "details"
NAVIGATION
NAVIGATION: string = "navigation"
PAST_PURCHASE
PAST_PURCHASE: string = "pastpurchase"
SEARCH
SEARCH: string = "search"
hasSelectedPastPurchaseRefinements
hasSelectedPastPurchaseRefinements: object
msg
msg: string = "no refinements to clear"
func
- func(_: any, state: State): boolean
-
Parameters
Returns boolean
hasSelectedPastPurchaseRefinementsByField
hasSelectedPastPurchaseRefinementsByField: object
msg
msg: string = "no refinements to clear for field"
func
- func(field: string, state: State): boolean
-
Parameters
Returns boolean
hasSelectedRefinements
hasSelectedRefinements: object
msg
msg: string = "no refinements to clear"
func
- func(_: any, state: State): boolean
-
Parameters
Returns boolean
hasSelectedRefinementsByField
hasSelectedRefinementsByField: object
msg
msg: string = "no refinements to clear for field"
func
- func(field: string, state: State): boolean
-
Parameters
Returns boolean
isCollectionDeselected
isCollectionDeselected: object
msg
msg: string = "collection is already selected"
func
- func(id: string, state: State): boolean
-
Parameters
Returns boolean
isDifferentAutocompleteQuery
isDifferentAutocompleteQuery: object
msg
msg: string = "suggestions for query have already been requested"
func
- func(query: string, state: State): boolean
-
Parameters
Returns boolean
isDifferentPageSize
isDifferentPageSize: object
msg
msg: string = "page size is already selected"
func
- func(size: number, state: State): boolean
-
Parameters
Returns boolean
isDifferentPastPurchasePageSize
isDifferentPastPurchasePageSize: object
msg
msg: string = "page size is already selected"
func
- func(size: number, state: State): boolean
-
Parameters
Returns boolean
isNotFetching
isNotFetching: object
msg
msg: string = "is already fetching"
func
- func(forward: boolean, state: State): boolean
-
Parameters
Returns boolean
isNotFullRange
isNotFullRange: object
msg
msg: string = "range must be smaller than full range"
func
- func(__namedParameters: object, state: State): boolean
-
Parameters
-
__namedParameters: object
-
high: number
-
low: number
-
navigationId: string
-
range: boolean
-
Returns boolean
isOnDifferentPage
isOnDifferentPage: object
msg
msg: string = "page is already selected"
func
- func(page: number, state: State): boolean
-
Parameters
Returns boolean
isOnDifferentPastPurchasePage
isOnDifferentPastPurchasePage: object
msg
msg: string = "page is already selected"
func
- func(page: number, state: State): boolean
-
Parameters
Returns boolean
isPastPurchaseRefinementDeselectedByIndex
isPastPurchaseRefinementDeselectedByIndex: object
msg
msg: string = "navigation does not exist or refinement is already selected"
func
- func(__namedParameters: object, state: State): boolean
-
Parameters
-
__namedParameters: object
-
index: number
-
navigationId: string
-
Returns boolean
isPastPurchaseRefinementSelectedByIndex
isPastPurchaseRefinementSelectedByIndex: object
msg
msg: string = "navigation does not exist or refinement is not selected"
func
- func(__namedParameters: object, state: State): boolean
-
Parameters
-
__namedParameters: object
-
index: number
-
navigationId: string
-
Returns boolean
isPastPurchasesSortDeselected
isPastPurchasesSortDeselected: object
msg
msg: string = "past purchases sort is already selected"
func
- func(index: number, state: State): boolean
-
Parameters
Returns boolean
isRangeRefinement
isRangeRefinement: object
msg
msg: string = "low and high values must be numeric"
func
- func(__namedParameters: object): boolean
-
Parameters
-
__namedParameters: object
-
high: number
-
low: number
-
range: boolean
Returns boolean
isRefinementDeselectedByIndex
isRefinementDeselectedByIndex: object
msg
msg: string = "navigation does not exist or refinement is already selected"
func
- func(__namedParameters: object, state: State): boolean
-
Parameters
-
__namedParameters: object
-
index: number
-
navigationId: string
-
Returns boolean
isRefinementDeselectedByValue
isRefinementDeselectedByValue: object
msg
msg: string = "refinement is already selected"
func
-
Parameters
Returns boolean
isRefinementSelectedByIndex
isRefinementSelectedByIndex: object
msg
msg: string = "navigation does not exist or refinement is not selected"
func
- func(__namedParameters: object, state: State): boolean
-
Parameters
-
__namedParameters: object
-
index: number
-
navigationId: string
-
Returns boolean
isSortDeselected
isSortDeselected: object
msg
msg: string = "sort is already selected"
func
- func(index: number, state: State): boolean
-
Parameters
Returns boolean
isString
isString: object
msg
msg: string = "must be a non-empty string"
func
- func(value: any): boolean
-
Parameters
Returns boolean
isValidBias
isValidBias: object
msg
msg: string = "bias is invalid"
func
-
Parameters
Returns boolean
isValidClearField
isValidClearField: object
msg
msg: string = "clear must be a string or true"
func
- func(field: string | true | false): boolean
-
Parameters
-
field: string | true | false
Returns boolean
isValidPage
isValidPage: object
msg
msg: string = "page is invalid"
func
- func(page: number, state: State): boolean
-
Parameters
Returns boolean
isValidPastPurchasePage
isValidPastPurchasePage: object
msg
msg: string = "page is invalid"
func
- func(page: number, state: State): boolean
-
Parameters
Returns boolean
isValidQuery
isValidQuery: object
msg
msg: string = "search term is empty"
func
- func(query: string): boolean
-
Parameters
Returns boolean
isValidRange
isValidRange: object
msg
msg: string = "low value must be lower than high"
func
- func(__namedParameters: object): boolean
-
Parameters
-
__namedParameters: object
-
high: number
-
low: number
-
range: boolean
Returns boolean
isValueRefinement
isValueRefinement: object
msg
msg: string = `value ${isString.msg}`
func
- func(__namedParameters: object): boolean
-
Parameters
-
__namedParameters: object
-
range: boolean
-
value: string
Returns boolean
notOnFirstPage
notOnFirstPage: object
msg
msg: string = "page must not be on first page"
func
- func(_: any, state: State): boolean
-
Parameters
Returns boolean
notOnFirstPastPurchasePage
notOnFirstPastPurchasePage: object
msg
msg: string = "page must not be on first page"
func
- func(_: any, state: State): boolean
-
Parameters
Returns boolean