@empathyco/x-components
Version:
Empathy X Components
29 lines (20 loc) • 2.51 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewMutations](./x-components.queriespreviewmutations.md)
## QueriesPreviewMutations interface
QueriesPreview store mutations.
**Signature:**
```typescript
export interface QueriesPreviewMutations extends ConfigMutations<QueriesPreviewState>
```
**Extends:** [ConfigMutations](./x-components.configmutations.md)<!-- --><[QueriesPreviewState](./x-components.queriespreviewstate.md)<!-- -->>
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [addQueryPreviewInstance](./x-components.queriespreviewmutations.addquerypreviewinstance.md) | | (queryPreviewHash: string) => void | Increases in 1 the instance counter. |
| [clearQueryPreview](./x-components.queriespreviewmutations.clearquerypreview.md) | | (queryPreviewHash: string) => void | Removes a query preview entry from the queries preview's dictionary. |
| [removeQueryPreviewInstance](./x-components.queriespreviewmutations.removequerypreviewinstance.md) | | ({ queryPreviewHash, cache, }: { queryPreviewHash: string; cache: boolean; }) => void | Decreases in 1 the instance counter and removes the query preview if the counter is 0 and cache is false. |
| [setParams](./x-components.queriespreviewmutations.setparams.md) | | (params: Dictionary<unknown>) => void | Sets the extra params of the module. |
| [setQueryPreviewCached](./x-components.queriespreviewmutations.setquerypreviewcached.md) | | (queryPreview: [QueryPreviewItem](./x-components.querypreviewitem.md)<!-- -->) => void | Adds a new entry to the cached queries preview's dictionary. |
| [setSelectedQueryPreview](./x-components.queriespreviewmutations.setselectedquerypreview.md) | | (selectedQueryPreview: [QueryPreviewInfo](./x-components.querypreviewinfo.md) \| null) => void | Sets the selected query preview of the module. |
| [setStatus](./x-components.queriespreviewmutations.setstatus.md) | | (payload: [QueryPreviewStatusPayload](./x-components.querypreviewstatuspayload.md)<!-- -->) => void | Sets the status of a query preview request. |
| [updateAQueryPreviewResult](./x-components.queriespreviewmutations.updateaquerypreviewresult.md) | | ({ result, queryPreviewHash, }: { result: Result; queryPreviewHash: ComputedRef<string>; }) => void | Updates a result with new fields. |