Skip to content
8 changes: 1 addition & 7 deletions x-pack/plugins/reporting/server/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { HeadlessChromiumDriverFactory } from './browsers/chromium/driver_factor
import { screenshotsObservableFactory } from './lib/screenshots';
import { checkLicense, getExportTypesRegistry } from './lib';
import { ESQueueInstance } from './lib/create_queue';
import { EnqueueJobFn } from './lib/enqueue_job';
import { ReportingStore } from './lib/store';

export interface ReportingInternalSetup {
Expand All @@ -36,7 +35,6 @@ export interface ReportingInternalSetup {

export interface ReportingInternalStart {
browserDriverFactory: HeadlessChromiumDriverFactory;
enqueueJob: EnqueueJobFn;
esqueue: ESQueueInstance;
store: ReportingStore;
savedObjects: SavedObjectsServiceStart;
Expand Down Expand Up @@ -115,7 +113,7 @@ export class ReportingCore {
/*
* Gives async access to the startDeps
*/
private async getPluginStartDeps() {
public async getPluginStartDeps() {
if (this.pluginStartDeps) {
return this.pluginStartDeps;
}
Expand All @@ -131,10 +129,6 @@ export class ReportingCore {
return (await this.getPluginStartDeps()).esqueue;
}

public async getEnqueueJob() {
return (await this.getPluginStartDeps()).enqueueJob;
}

public async getLicenseInfo() {
const { licensing } = this.getPluginSetupDeps();
return await licensing.license$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
*/

import { cryptoFactory } from '../../lib';
import { ESQueueCreateJobFn, ScheduleTaskFnFactory } from '../../types';
import { CreateJobFn, ScheduleTaskFnFactory } from '../../types';
import { JobParamsDiscoverCsv } from './types';

export const scheduleTaskFnFactory: ScheduleTaskFnFactory<ESQueueCreateJobFn<
export const scheduleTaskFnFactory: ScheduleTaskFnFactory<CreateJobFn<
JobParamsDiscoverCsv
>> = function createJobFactoryFn(reporting) {
const config = reporting.getConfig();
Expand Down
Loading