Skip to content

Commit 7a2a8a9

Browse files
committed
remove duplicated types
1 parent 2788d87 commit 7a2a8a9

7 files changed

Lines changed: 6 additions & 23 deletions

File tree

x-pack/solutions/observability/plugins/synthetics/common/embeddables/monitors_overview/get_transform_out.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import type { Reference } from '@kbn/content-management-utils/src/types';
99
import { transformTitlesOut } from '@kbn/presentation-publishing';
1010
import { flow } from 'lodash';
11-
import type { OverviewMonitorsEmbeddableState } from './types';
1211
import { transformFiltersOut } from '../bwc/transform_filters_out';
12+
import { OverviewMonitorsEmbeddableState } from '../../types';
1313

1414
export function getTransformOut() {
1515
function transformOut(

x-pack/solutions/observability/plugins/synthetics/common/embeddables/monitors_overview/types.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

x-pack/solutions/observability/plugins/synthetics/common/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ export type {
1616
MonitorFilters,
1717
OverviewStatsEmbeddableState,
1818
OverviewStatsEmbeddableCustomState,
19-
SyntheticsMonitorsEmbeddableState,
19+
OverviewMonitorsEmbeddableState
2020
} from '../../server/schemas';

x-pack/solutions/observability/plugins/synthetics/public/apps/embeddables/monitors_overview/monitors_embeddable_factory.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { SYNTHETICS_MONITORS_EMBEDDABLE } from '../../../../common/embeddables/m
2828
import type { ClientPluginsStart } from '../../../plugin';
2929
import { openMonitorConfiguration } from '../common/monitors_open_configuration';
3030
import type { OverviewView } from '../../synthetics/state';
31-
import type { MonitorFilters } from '../../../../common/embeddables/monitors_overview/types';
31+
import type { MonitorFilters } from '../../../../common/types';
3232

3333
export const getOverviewPanelTitle = () =>
3434
i18n.translate('xpack.synthetics.monitors.displayName', {

x-pack/solutions/observability/plugins/synthetics/public/apps/embeddables/monitors_overview/monitors_grid_component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import type { FlyoutParamProps } from '../../synthetics/components/monitors_page
2727
import { MaybeMonitorDetailsFlyout } from '../../synthetics/components/monitors_page/overview/overview/monitor_detail_flyout';
2828
import { useOverviewStatus } from '../../synthetics/components/monitors_page/hooks/use_overview_status';
2929
import { OverviewLoader } from '../../synthetics/components/monitors_page/overview/overview/overview_loader';
30-
import type { MonitorFilters } from '../../../../common/embeddables/monitors_overview/types';
30+
import type { MonitorFilters } from '../../../../common/types';
3131

3232
export const StatusGridComponent = ({
3333
reload$,

x-pack/solutions/observability/plugins/synthetics/server/schemas/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export {
2020

2121
export {
2222
syntheticsMonitorsEmbeddableSchema,
23-
type SyntheticsMonitorsEmbeddableState,
23+
type OverviewMonitorsEmbeddableState,
2424
} from './synthetics_monitors_embeddable_schema';

x-pack/solutions/observability/plugins/synthetics/server/schemas/synthetics_monitors_embeddable_schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ export const syntheticsMonitorsEmbeddableSchema = schema.allOf(
3737
}
3838
);
3939

40-
export type SyntheticsMonitorsEmbeddableState = TypeOf<typeof syntheticsMonitorsEmbeddableSchema>;
40+
export type OverviewMonitorsEmbeddableState = TypeOf<typeof syntheticsMonitorsEmbeddableSchema>;

0 commit comments

Comments
 (0)