import { resultsServiceRxProvider } from './result_service_rx' ; import { resultsServiceProvider } from './results_service' ; import { ml , MlApiServices } from '../ml_api_service' ; export type MlResultsService = typeof mlResultsService ; type Time = string ; export interface ModelPlotOutputResults { results : Record < Time , { actual : number ; modelUpper : number | null ; modelLower : number | null ; } > ; } export interface CriteriaField { fieldName : string ; fieldValue : any ; } export const mlResultsService = mlResultsServiceProvider ( ml ) ; export function mlResultsServiceProvider ( mlApiServices ) { return { ... resultsServiceProvider ( mlApiServices ) , ... resultsServiceRxProvider ( mlApiServices ) , } ; }