UNPKG

@empathyco/x-components

Version:
116 lines (51 loc) 1.59 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [AiActions](./x-components.aiactions.md) ## AiActions interface Ai module actions. **Signature:** ```typescript export interface AiActions ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [fetchAndSaveAiSuggestions](./x-components.aiactions.fetchandsaveaisuggestions.md) </td><td> </td><td> (request: AiSuggestionsRequest \| null) =&gt; void </td><td> Requests suggestions for the module ai. </td></tr> <tr><td> [fetchAndSaveAiSuggestionsSearch](./x-components.aiactions.fetchandsaveaisuggestionssearch.md) </td><td> </td><td> (expanded: boolean) =&gt; void </td><td> Requests suggestions search for the module AI. </td></tr> <tr><td> [saveOrigin](./x-components.aiactions.saveorigin.md) </td><td> </td><td> (originInit: [QueryOriginInit](./x-components.queryorigininit.md)<!-- -->) =&gt; void </td><td> Creates a [QueryOrigin](./x-components.queryorigin.md) and saves it. </td></tr> <tr><td> [setUrlParams](./x-components.aiactions.seturlparams.md) </td><td> </td><td> (urlParams: [UrlParams](./x-components.urlparams.md)<!-- -->) =&gt; void </td><td> Checks if the URL has params on it and then updates the state with these values. </td></tr> </tbody></table>