Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Nov 13, 2023
1 parent c17f806 commit cd36152
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion x-pack/plugins/reporting/server/lib/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* 2.0.
*/

export type { ReportDocument } from '../../../common/types';
export { Report } from './report';
export { SavedReport } from './saved_report';
export { ReportingStore } from './store';
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/reporting/server/lib/store/saved_report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { ReportDocumentHead, ReportSource } from '../../../common/types';
import { ReportDocumentHead, ReportSource } from '@kbn/reporting-common/types';
import { Report } from '.';

/*
Expand Down
3 changes: 2 additions & 1 deletion x-pack/plugins/reporting/server/lib/store/store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
*/
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { elasticsearchServiceMock, loggingSystemMock } from '@kbn/core/server/mocks';
import { ReportDocument } from '@kbn/reporting-common/types';
import { createMockConfigSchema } from '@kbn/reporting-mocks-server';
import { Report, ReportingStore, SavedReport } from '.';
import { ReportingCore } from '../..';
import { createMockReportingCore } from '../../test_helpers';
import { Report, ReportDocument, ReportingStore, SavedReport } from '.';

describe('ReportingStore', () => {
const mockLogger = loggingSystemMock.createLogger();
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/reporting/server/lib/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import { estypes } from '@elastic/elasticsearch';
import type { ElasticsearchClient, Logger } from '@kbn/core/server';
import { ILM_POLICY_NAME, JOB_STATUS, REPORTING_SYSTEM_INDEX } from '@kbn/reporting-common';
import { ReportOutput, ReportSource } from '@kbn/reporting-common/types';
import { ReportDocument, ReportOutput, ReportSource } from '@kbn/reporting-common/types';
import moment from 'moment';
import type { IReport, Report, ReportDocument } from '.';
import type { IReport, Report } from '.';
import { SavedReport } from '.';
import type { ReportingCore } from '../..';
import type { ReportTaskParams } from '../tasks';
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/reporting/server/lib/tasks/execute_report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
durationToNumber,
numberToDuration,
} from '@kbn/reporting-common';
import type { ReportOutput, TaskRunResult } from '@kbn/reporting-common/types';
import type { ReportDocument, ReportOutput, TaskRunResult } from '@kbn/reporting-common/types';
import type { ReportingConfigType } from '@kbn/reporting-server';
import type {
RunContext,
Expand All @@ -34,7 +34,7 @@ import { REPORTING_EXECUTE_TYPE, ReportTaskParams, ReportingTask, ReportingTaskS
import { ExportTypesRegistry, getContentStream } from '..';
import type { ReportingCore } from '../..';
import { mapToReportingError } from '../../../common/errors/map_to_reporting_error';
import type { ReportDocument, ReportingStore } from '../store';
import type { ReportingStore } from '../store';
import { Report, SavedReport } from '../store';
import type { ReportFailedFields, ReportProcessingFields } from '../store/store';
import { errorLogger } from './error_logger';
Expand Down

0 comments on commit cd36152

Please sign in to comment.