UNPKG

@empathyco/x-components

Version:
38 lines (35 loc) 1.02 kB
import '../plugins/x-bus.js'; import '@empathyco/x-utils'; import { XPlugin } from '../plugins/x-plugin.js'; /** * Default implementation for the {@link ResultsEnrichmentService}. * * @public */ class DefaultResultsEnrichmentService { constructor() { } get store() { return XPlugin.store; } /** * Fetches the enrichment results. * * @param results - The results to fetch the enrichment results for. */ async fetchResults(_) { return []; } /** * Updates the results with the enrichment results. Updates via mutation. * * @param results - The results to update. * @param enrichmentResults - The enrichment results to update the results with. */ updateResults(_, __) { } } /** * Global instance of the {@link ResultsEnrichmentService}. */ DefaultResultsEnrichmentService.instance = new DefaultResultsEnrichmentService(); export { DefaultResultsEnrichmentService }; //# sourceMappingURL=results-enrichment.service.js.map