@empathyco/x-components
Version:
Empathy X Components
19 lines (16 loc) • 654 B
JavaScript
import { XPlugin } from '../../../../plugins/x-plugin.js';
/**
* Default implementation for the {@link SemanticQueriesActions.fetchSemanticQuery}.
*
* @param _context - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the actions,
* provided by Vuex.
* @param request - The semantic query request to make.
* @returns A Promise of a SemanticQueriesResponse when it fetches the queries.
*
* @public
*/
const fetchSemanticQuery = async (_context, request) => {
return request?.query ? XPlugin.adapter.semanticQueries(request) : null;
};
export { fetchSemanticQuery };
//# sourceMappingURL=fetch-semantic-query.action.js.map