CaseContextActions (Deprecated)

This is for:

Developer
Warning

Headless v1 has been deprecated. We recommend using the latest version of the Coveo Headless library.

The case context action creators.

Loader Function

loadCaseContextActions

Loads the case context reducer and returns possible action creators.

Parameters

  • engine: CoreEngine

    The headless engine.

Returns CaseContextActionCreators: The case context action creators.

CaseContextActionCreators

setCaseContext

Sets the case context.

Parameters

  • payload: Record<string, string>

    The action creator payload.

Returns PayloadAction<Record<string, string>>: A dispatchable action.

setCaseId

Sets the case id.

Parameters

  • payload: string

    The action creator payload.

Returns PayloadAction<string>: A dispatchable action.

setCaseNumber

Sets the case number.

Parameters

  • payload: string

    The action creator payload.

Returns PayloadAction<string>: A dispatchable action.