GitHub

DaffConfigurableProductEntitiesMemoizedSelectors

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

import { DaffConfigurableProductEntitiesMemoizedSelectors } from '@daffodil/product-configurable/state'
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']) => MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, DaffConfigurableProductEntityAttribute[]>
  selectConfigurableProductAppliedAttributesAsDictionary: (productId: T['id']) => MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, Dictionary<string>>
}

Properties

Name Type Description
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']) => MemoizedSelector<DaffConfigurableProductStateRootSlice<T>, DaffConfigurableProductEntityAttribute[]>

Selects the applied attributes of a configurable product.

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

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