The facet set action creators.

interface FacetSetActionCreators {
    deselectAllFacetValues(
        facetId: string,
    ): { payload: string; type: string };
    registerFacet(
        payload: RegisterFacetActionCreatorPayload,
    ): { payload: RegisterFacetActionCreatorPayload; type: string };
    toggleExcludeFacetValue(
        payload: ToggleSelectFacetValueActionCreatorPayload,
    ): { payload: ToggleSelectFacetValueActionCreatorPayload; type: string };
    toggleSelectFacetValue(
        payload: ToggleSelectFacetValueActionCreatorPayload,
    ): { payload: ToggleSelectFacetValueActionCreatorPayload; type: string };
    updateFacetAutoSelection(
        payload: UpdateFacetAutoSelectionActionCreatorPayload,
    ): { payload: UpdateFacetAutoSelectionActionCreatorPayload; type: string };
    updateFacetIsFieldExpanded(
        payload: UpdateFacetIsFieldExpandedActionCreatorPayload,
    ): {
        payload: UpdateFacetIsFieldExpandedActionCreatorPayload;
        type: string;
    };
    updateFacetNumberOfValues(
        payload: UpdateFacetNumberOfValuesActionCreatorPayload,
    ): { payload: UpdateFacetNumberOfValuesActionCreatorPayload; type: string };
    updateFacetSortCriterion(
        payload: UpdateFacetSortCriterionActionCreatorPayload,
    ): { payload: UpdateFacetSortCriterionActionCreatorPayload; type: string };
    updateFreezeCurrentValues(
        payload: UpdateFreezeCurrentValuesActionCreatorPayload,
    ): { payload: UpdateFreezeCurrentValuesActionCreatorPayload; type: string };
}

Methods

  • Deselects all values of a facet.

    Parameters

    • facetId: string

      The unique identifier of the facet (e.g., "1").

    Returns { payload: string; type: string }

    A dispatchable action.