refilters/index
@boldpenguin/sdk-redux › Globals › "refilters/index"
Index
Variables
Functions
Variables
Const
getAnsweredRefiltersByQuestionId
• getAnsweredRefiltersByQuestionId: function & OutputSelectorFields‹function› & object = createSelector( [getRefilters, (_: BpSdkStore, questionId: string) => questionId], (allRefilters, questionId) => allRefilters[questionId]?.list.filter((refilter) => refilter.value !== null) ?? [] )
Gets nudge/refilter questions that have been answered by question ID when Business Class Selector + Nudges are enabled for this tenant
param
BpSdk Redux store
param
Question ID
Const
getRefiltersByQuestionId
• getRefiltersByQuestionId: function & OutputSelectorFields‹function› & object = createSelector( [getRefilters, (_: BpSdkStore, questionId: string) => questionId], (allRefilters, questionId) => allRefilters[questionId]?.list ?? [] )
Gets all nudge/refilter questions by question ID when Business Class Selector + Nudges are enabled for this tenant
param
BpSdk Redux store
param
Question ID
Const
getUnansweredRefiltersByQuestionId
• getUnansweredRefiltersByQuestionId: function & OutputSelectorFields‹function› & object = createSelector( [getRefilters, (_: BpSdkStore, questionId: string) => questionId], (allRefilters, questionId) => allRefilters[questionId]?.list.filter((refilter) => refilter.value === null) ?? [] )
Gets nudge/refilter questions that have not been answered yet by question ID when Business Class Selector + Nudges are enabled for this tenant
param
BpSdk Redux store
param
Question ID
Functions
Const
getRefilters
▸ getRefilters(state
: BpSdkStore): typeof RefilterState
Gets nudge/refilter questions when Business Class Selector + Nudges are enabled for this tenant
Parameters:
Name | Type | Description |
---|---|---|
state | BpSdkStore | BpSdk Redux store |
Returns: typeof RefilterState