import { Datafeed } from './datafeed' ; import { DatafeedStats } from './datafeed_stats' ; import { Job } from './job' ; import { JobStats } from './job_stats' ; import type { JobAlertingRuleStats } from '../alerts' ; export type JobWithStats = Job & JobStats & JobAlertingRuleStats ; export type DatafeedWithStats = Datafeed & DatafeedStats ; export interface CombinedJob extends Job { calendars ? : string [ ] ; datafeed_config : Datafeed ; } export interface CombinedJobWithStats extends JobWithStats { calendars ? : string [ ] ; datafeed_config : DatafeedWithStats ; } export function isCombinedJobWithStats ( arg ) { return typeof arg . job_id === 'string' ; }