@empathyco/x-components
Version:
Empathy X Components
18 lines (16 loc) • 635 B
JavaScript
/**
* Default implementation for the {@link AiGetters.suggestionsRequest} getter.
*
* @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the ai
* module.
* @param getters - Current {@link https://vuex.vuejs.org/guide/getters.html | getters} of the
* ai module.
* @returns The ai request to fetch data from the API.
*
* @public
*/
const suggestionsRequest = ({ params: extraParams, selectedFilters: filters, origin }, { query }) => {
return { query, extraParams, filters, ...(origin && { origin }) };
};
export { suggestionsRequest };
//# sourceMappingURL=suggestions-request.getter.js.map