UNPKG

@empathyco/x-components

Version:
29 lines (20 loc) 2.51 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [QueriesPreviewMutations](./x-components.queriespreviewmutations.md) ## QueriesPreviewMutations interface QueriesPreview store mutations. **Signature:** ```typescript export interface QueriesPreviewMutations extends ConfigMutations<QueriesPreviewState> ``` **Extends:** [ConfigMutations](./x-components.configmutations.md)<!-- -->&lt;[QueriesPreviewState](./x-components.queriespreviewstate.md)<!-- -->&gt; ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [addQueryPreviewInstance](./x-components.queriespreviewmutations.addquerypreviewinstance.md) | | (queryPreviewHash: string) =&gt; void | Increases in 1 the instance counter. | | [clearQueryPreview](./x-components.queriespreviewmutations.clearquerypreview.md) | | (queryPreviewHash: string) =&gt; void | Removes a query preview entry from the queries preview's dictionary. | | [removeQueryPreviewInstance](./x-components.queriespreviewmutations.removequerypreviewinstance.md) | | ({ queryPreviewHash, cache, }: { queryPreviewHash: string; cache: boolean; }) =&gt; 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&lt;unknown&gt;) =&gt; void | Sets the extra params of the module. | | [setQueryPreviewCached](./x-components.queriespreviewmutations.setquerypreviewcached.md) | | (queryPreview: [QueryPreviewItem](./x-components.querypreviewitem.md)<!-- -->) =&gt; 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) =&gt; void | Sets the selected query preview of the module. | | [setStatus](./x-components.queriespreviewmutations.setstatus.md) | | (payload: [QueryPreviewStatusPayload](./x-components.querypreviewstatuspayload.md)<!-- -->) =&gt; void | Sets the status of a query preview request. | | [updateAQueryPreviewResult](./x-components.queriespreviewmutations.updateaquerypreviewresult.md) | | ({ result, queryPreviewHash, }: { result: Result; queryPreviewHash: ComputedRef&lt;string&gt;; }) =&gt; void | Updates a result with new fields. |