@empathyco/x-components
Version:
Empathy X Components
116 lines (51 loc) • 1.69 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [FacetsActions](./x-components.facetsactions.md)
## FacetsActions interface
Facets store actions.
**Signature:**
```typescript
export interface FacetsActions
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[cancelFetchAndSaveFacetsResponse](./x-components.facetsactions.cancelfetchandsavefacetsresponse.md)
</td><td>
</td><td>
() => void
</td><td>
Cancels / interrupt [FacetsActions.cancelFetchAndSaveFacetsResponse](./x-components.facetsactions.cancelfetchandsavefacetsresponse.md) synchronous promise.
</td></tr>
<tr><td>
[fetchAndSaveFacetsResponse](./x-components.facetsactions.fetchandsavefacetsresponse.md)
</td><td>
</td><td>
(request: FacetsRequest \| null) => void
</td><td>
Fetches a new facets response and stores them in the module state.
</td></tr>
<tr><td>
[fetchFacetsResponse](./x-components.facetsactions.fetchfacetsresponse.md)
</td><td>
</td><td>
(request: FacetsRequest) => FacetsResponse
</td><td>
Fetches the facets response and returns them.
</td></tr>
<tr><td>
[saveOrigin](./x-components.facetsactions.saveorigin.md)
</td><td>
</td><td>
(originInit: [QueryOriginInit](./x-components.queryorigininit.md)<!-- -->) => void
</td><td>
Creates a [QueryOrigin](./x-components.queryorigin.md) and saves it.
</td></tr>
</tbody></table>