@empathyco/x-components
Version:
Empathy X Components
97 lines (43 loc) • 1.6 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewActions](./x-components.queriespreviewactions.md)
## QueriesPreviewActions interface
QueriesPreview store actions.
**Signature:**
```typescript
export interface QueriesPreviewActions
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[fetchAndSaveQueryPreview](./x-components.queriespreviewactions.fetchandsavequerypreview.md)
</td><td>
</td><td>
(request: SearchRequest) => void
</td><td>
Requests the results for a cacheable query preview and saves them in the state.
</td></tr>
<tr><td>
[fetchAndSaveQueryPreviewResultsEnrichment](./x-components.queriespreviewactions.fetchandsavequerypreviewresultsenrichment.md)
</td><td>
</td><td>
(queryPreviewItem: [QueryPreviewItem](./x-components.querypreviewitem.md)<!-- -->) => void
</td><td>
Requests and stores the enrichment results for the query preview results.
</td></tr>
<tr><td>
[fetchQueryPreview](./x-components.queriespreviewactions.fetchquerypreview.md)
</td><td>
</td><td>
(request: SearchRequest) => SearchResponse \| null
</td><td>
Requests the results for a query preview, limited by [QueriesPreviewConfig.maxItemsToRequest](./x-components.queriespreviewconfig.maxitemstorequest.md)<!-- -->.
</td></tr>
</tbody></table>