import { CSV_SEARCHSOURCE_IMMEDIATE_TYPE , LICENSE_TYPE_BASIC , LICENSE_TYPE_ENTERPRISE , LICENSE_TYPE_GOLD , LICENSE_TYPE_PLATINUM , LICENSE_TYPE_STANDARD , LICENSE_TYPE_TRIAL , } from '../../../common/constants' ; import { ExportTypeDefinition } from '../../types' ; import { ImmediateExecuteFn , runTaskFnFactory } from './execute_job' ; import { metadata } from './metadata' ; export { runTaskFnFactory } from './execute_job' ; export const getExportType = ( ) : ExportTypeDefinition < null , ImmediateExecuteFn > => ( { ... metadata , jobType : CSV_SEARCHSOURCE_IMMEDIATE_TYPE , jobContentExtension : 'csv' , createJobFnFactory : null , runTaskFnFactory , validLicenses : [ LICENSE_TYPE_TRIAL , LICENSE_TYPE_BASIC , LICENSE_TYPE_STANDARD , LICENSE_TYPE_GOLD , LICENSE_TYPE_PLATINUM , LICENSE_TYPE_ENTERPRISE , ] , } ) ;