import { IScopedClusterClient } from 'kibana/server' ; import { datafeedsProvider } from './datafeeds' ; import { jobsProvider } from './jobs' ; import { groupsProvider } from './groups' ; import { newJobCapsProvider } from './new_job_caps' ; import { newJobChartsProvider , topCategoriesProvider } from './new_job' ; import { modelSnapshotProvider } from './model_snapshots' ; import type { MlClient } from '../../lib/ml_client' ; import type { RulesClient } from '../../../../alerting/server' ; export function jobServiceProvider ( client , mlClient , rulesClient ? ) { return { ... datafeedsProvider ( client , mlClient ) , ... jobsProvider ( client , mlClient , rulesClient ) , ... groupsProvider ( mlClient ) , ... newJobCapsProvider ( client ) , ... newJobChartsProvider ( client ) , ... topCategoriesProvider ( mlClient ) , ... modelSnapshotProvider ( client , mlClient ) , } ; }