GitHub

DaffConfigurableProductEntitiesMemoizedSelectors

Type

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>>
  selectConfigurableProductIds: MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, EntityState<DaffConfigurableProductEntity>['ids']>
  selectConfigurableProductAppliedAttributesEntities: MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, EntityState<DaffConfigurableProductEntity>['entities']>
  selectConfigurableProductTotal: MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, number>
  selectConfigurableProductAppliedAttributes: (productId: T["id"]) => any
  selectConfigurableProductAppliedAttributesAsDictionary: (productId: T["id"]) => any
}

Properties

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

Selects the configurable product applied attributes entities state.

selectConfigurableProductIds
MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, EntityState<DaffConfigurableProductEntity>['ids']>

Selects all ids for configurable products in state.

selectConfigurableProductAppliedAttributesEntities
MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, EntityState<DaffConfigurableProductEntity>['entities']>

Selects the configurable product applied attributes as ngrx entities.

selectConfigurableProductTotal
MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, number>

Selects the total number of configurable products in state.

selectConfigurableProductAppliedAttributes
(productId: T["id"]) => any

Selects the applied attributes of a configurable product.

selectConfigurableProductAppliedAttributesAsDictionary
(productId: T["id"]) => any

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