GitHub

DaffConfigurableProductEntitiesMemoizedSelectors

import { DaffConfigurableProductEntitiesMemoizedSelectors } from '@daffodil/product-configurable/state'

An interface for selectors related to the configurable product applied attributes.

interface DaffConfigurableProductEntitiesMemoizedSelectors<T extends DaffProduct = DaffProduct> {
  selectConfigurableProductAppliedAttributesEntitiesState: MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, EntityState<DaffConfigurableProductEntity>, DefaultProjectorFn<...>>
  selectConfigurableProductIds: MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, string[] | number[], DefaultProjectorFn<string[] | number[]>>
  selectConfigurableProductAppliedAttributesEntities: MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, Dictionary<DaffConfigurableProductEntity>, DefaultProjectorFn<...>>
  selectConfigurableProductTotal: MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, number, DefaultProjectorFn<number>>
  selectConfigurableProductAppliedAttributes: (productId: T["id"]) => MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, DaffConfigurableProductEntityAttribute[], DefaultProjectorFn<...>>
  selectConfigurableProductAppliedAttributesAsDictionary: (productId: T["id"]) => MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, Dictionary<string>, DefaultProjectorFn<Dictionary<string>>>
}

Properties

selectConfigurableProductAppliedAttributesEntitiesState
MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, EntityState<DaffConfigurableProductEntity>, DefaultProjectorFn<...>>

Selects the configurable product applied attributes entities state.

selectConfigurableProductIds
MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, string[] | number[], DefaultProjectorFn<string[] | number[]>>

Selects all ids for configurable products in state.

selectConfigurableProductAppliedAttributesEntities
MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, Dictionary<DaffConfigurableProductEntity>, DefaultProjectorFn<...>>

Selects the configurable product applied attributes as ngrx entities.

selectConfigurableProductTotal
MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, number, DefaultProjectorFn<number>>

Selects the total number of configurable products in state.

selectConfigurableProductAppliedAttributes
(productId: T["id"]) => MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, DaffConfigurableProductEntityAttribute[], DefaultProjectorFn<...>>

Selects the applied attributes of a configurable product.

selectConfigurableProductAppliedAttributesAsDictionary
(productId: T["id"]) => MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, Dictionary<string>, DefaultProjectorFn<Dictionary<string>>>

Selects the applied attributes of a configurable product as a dictionary.