Skip to content

Commit

Permalink
adding missing includes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed May 6, 2020
1 parent 9295369 commit 93ed0e0
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 11 deletions.
6 changes: 6 additions & 0 deletions x-pack/plugins/ml/public/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ export * from '../common/types/data_recognizer';
export * from '../common/types/capabilities';
export * from '../common/types/anomalies';
export * from '../common/types/modules';
export * from '../common/types/audit_message';

export * from '../common/util/anomaly_utils';
export * from '../common/util/errors';
export * from '../common/util/validators';

export * from './application/formatters/metric_change_description';

export * from './application/components/data_grid';
export * from './application/data_frame_analytics/common';
1 change: 1 addition & 0 deletions x-pack/plugins/ml/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
import { PluginInitializerContext } from 'kibana/server';
import { MlServerPlugin } from './plugin';
export { MlPluginSetup, MlPluginStart } from './plugin';
export * from './shared';

export const plugin = (ctx: PluginInitializerContext) => new MlServerPlugin(ctx);
7 changes: 7 additions & 0 deletions x-pack/plugins/ml/server/shared.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export * from '../common/types/anomalies';
2 changes: 1 addition & 1 deletion x-pack/plugins/siem/public/components/ml_popover/types.ts
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 { AuditMessageBase } from '../../../../ml/common/types/audit_message';
import { AuditMessageBase } from '../../../../ml/public';
import { MlError } from '../ml/types';

export interface Group {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/siem/server/lib/machine_learning/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { SearchResponse, SearchParams } from 'elasticsearch';

import { AnomalyRecordDoc as Anomaly } from '../../../../ml/common/types/anomalies';
import { AnomalyRecordDoc as Anomaly } from '../../../../ml/server';

export { Anomaly };
export type AnomalyResults = SearchResponse<Anomaly>;
Expand Down
6 changes: 3 additions & 3 deletions x-pack/plugins/transform/public/__mocks__/shared_imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export const useRequest = jest.fn(() => ({
}));

// just passing through the reimports
export { getErrorMessage } from '../../../ml/common/util/errors';
export {
getErrorMessage,
getDataGridSchemaFromKibanaFieldType,
getFieldsFromKibanaIndexPattern,
multiColumnSortFactory,
Expand All @@ -27,5 +27,5 @@ export {
SearchResponse7,
UseDataGridReturnType,
UseIndexDataReturnType,
} from '../../../ml/public/application/components/data_grid';
export { INDEX_STATUS } from '../../../ml/public/application/data_frame_analytics/common';
INDEX_STATUS,
} from '../../../ml/public';
2 changes: 1 addition & 1 deletion x-pack/plugins/transform/public/app/common/aggregations.ts
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 { composeValidators, patternValidator } from '../../../../ml/common/util/validators';
import { composeValidators, patternValidator } from '../../../../ml/public';

export type AggName = string;

Expand Down
7 changes: 3 additions & 4 deletions x-pack/plugins/transform/public/shared_imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ export {
useRequest,
} from '../../../../src/plugins/es_ui_shared/public/request/np_ready_request';

export { getErrorMessage } from '../../ml/common/util/errors';

export {
getErrorMessage,
getDataGridSchemaFromKibanaFieldType,
getFieldsFromKibanaIndexPattern,
multiColumnSortFactory,
Expand All @@ -30,5 +29,5 @@ export {
SearchResponse7,
UseDataGridReturnType,
UseIndexDataReturnType,
} from '../../ml/public/application/components/data_grid';
export { INDEX_STATUS } from '../../ml/public/application/data_frame_analytics/common';
INDEX_STATUS,
} from '../../ml/public';
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from '../../../state/selectors';
import { UptimeRefreshContext } from '../../../contexts';
import { getMLJobId } from '../../../state/api/ml_anomaly';
import { JobStat } from '../../../../../ml/common/types/data_recognizer';
import { JobStat } from '../../../../../ml/public';
import { MonitorDurationComponent } from './monitor_duration';
import { MonitorIdParam } from '../../../../common/types';

Expand Down

0 comments on commit 93ed0e0

Please sign in to comment.