Skip to content

Commit

Permalink
organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Sep 3, 2020
1 parent 1178585 commit 2e468cf
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { KibanaRequest } from '../../../../../../src/core/server';
import { CONTENT_TYPE_CSV, CSV_JOB_TYPE } from '../../../common/constants';
import { cryptoFactory, LevelLogger } from '../../lib';
import { RunTaskFn, RunTaskFnFactory } from '../../types';
import { TaskPayloadCSV } from './types';
import { createGenerateCsv } from './generate_csv';
import { TaskPayloadCSV } from './types';

const getRequest = async (headers: string | undefined, crypto: Crypto, logger: LevelLogger) => {
const decryptHeaders = async () => {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/reporting/server/export_types/csv/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
LICENSE_TYPE_TRIAL,
} from '../../../common/constants';
import { CSV_JOB_TYPE as jobType } from '../../../constants';
import { CreateJobFn, RunTaskFn, ExportTypeDefinition } from '../../types';
import { CreateJobFn, ExportTypeDefinition, RunTaskFn } from '../../types';
import { createJobFnFactory } from './create_job';
import { runTaskFnFactory } from './execute_job';
import { metadata } from './metadata';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import { KibanaRequest, RequestHandlerContext } from 'src/core/server';
import { CancellationToken } from '../../../common';
import { CONTENT_TYPE_CSV, CSV_FROM_SAVEDOBJECT_JOB_TYPE } from '../../../common/constants';
import { RunTaskFnFactory, BasePayload, TaskRunResult } from '../../types';
import { BasePayload, RunTaskFnFactory, TaskRunResult } from '../../types';
import { createGenerateCsv } from '../csv/generate_csv';
import { JobParamsPanelCsv, SearchPanel } from './types';
import { getGenerateCsvParams } from './lib/get_csv_job';
import { JobParamsPanelCsv, SearchPanel } from './types';

/*
* The run function receives the full request which provides the un-encrypted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import {
} from '../../../common/constants';
import { CSV_FROM_SAVEDOBJECT_JOB_TYPE } from '../../../constants';
import { ExportTypeDefinition } from '../../types';
import { metadata } from './metadata';
import { ImmediateCreateJobFn, createJobFnFactory } from './create_job';
import { createJobFnFactory, ImmediateCreateJobFn } from './create_job';
import { ImmediateExecuteFn, runTaskFnFactory } from './execute_job';
import { metadata } from './metadata';
import { JobParamsPanelCsv } from './types';

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { JobParamPostPayload, BasePayload, TimeRangeParams } from '../../types';
import { JobParamPostPayload, TimeRangeParams } from '../../types';

export interface FakeRequest {
headers: Record<string, unknown>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { ReportingCore } from '../../../';
import { CancellationToken } from '../../../../common';
import { cryptoFactory, LevelLogger } from '../../../lib';
import { createMockReportingCore } from '../../../test_helpers';
import { TaskPayloadPNG } from '../types';
import { generatePngObservableFactory } from '../lib/generate_png';
import { TaskPayloadPNG } from '../types';
import { runTaskFnFactory } from './';

jest.mock('../lib/generate_png', () => ({ generatePngObservableFactory: jest.fn() }));
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/reporting/server/export_types/png/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
LICENSE_TYPE_TRIAL,
PNG_JOB_TYPE as jobType,
} from '../../../common/constants';
import { CreateJobFn, RunTaskFn, ExportTypeDefinition } from '../../types';
import { CreateJobFn, ExportTypeDefinition, RunTaskFn } from '../../types';
import { createJobFnFactory } from './create_job';
import { runTaskFnFactory } from './execute_job';
import { metadata } from './metadata';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { BaseParams, BasePayload } from '../../../server/types';
import { LayoutInstance, LayoutParams } from '../../lib/layouts';
import { LayoutParams } from '../../lib/layouts';

// Job params: structure of incoming user request data
export interface JobParamsPNG extends BaseParams {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
LICENSE_TYPE_TRIAL,
PDF_JOB_TYPE as jobType,
} from '../../../common/constants';
import { CreateJobFn, RunTaskFn, ExportTypeDefinition } from '../../types';
import { CreateJobFn, ExportTypeDefinition, RunTaskFn } from '../../types';
import { createJobFnFactory } from './create_job';
import { runTaskFnFactory } from './execute_job';
import { metadata } from './metadata';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
* you may not use this file except in compliance with the Elastic License.
*/

import rison from 'rison-node';
import { schema } from '@kbn/config-schema';
import { authorizedUserPreRoutingFactory } from './lib/authorized_user_pre_routing';
import { HandlerErrorFunction, HandlerFunction } from './types';
import rison from 'rison-node';
import { ReportingCore } from '../';
import { API_BASE_URL } from '../../common/constants';
import { BaseParams } from '../types';
import { authorizedUserPreRoutingFactory } from './lib/authorized_user_pre_routing';
import { HandlerErrorFunction, HandlerFunction } from './types';

const BASE_GENERATE = `${API_BASE_URL}/generate`;

Expand Down

0 comments on commit 2e468cf

Please sign in to comment.