Skip to content

Commit

Permalink
[SIEM] Remove imports from server folder (#37037) (#37049)
Browse files Browse the repository at this point in the history
* remove import from server folder

* the other way around too
  • Loading branch information
XavierM authored and tsg committed May 24, 2019
1 parent 04c6505 commit 61281d4
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 11 deletions.
8 changes: 6 additions & 2 deletions x-pack/plugins/siem/public/components/open_timeline/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { getOr, assign } from 'lodash/fp';
import * as React from 'react';
import { connect } from 'react-redux';

import { SortFieldTimeline } from '../../../server/graphql/types';
import {
defaultHeaders,
defaultColumnHeaderType,
Expand All @@ -20,7 +19,12 @@ import { AllTimelinesVariables } from '../../containers/timeline/all';

import { allTimelinesQuery } from '../../containers/timeline/all/index.gql_query';
import { oneTimelineQuery } from '../../containers/timeline/one/index.gql_query';
import { DeleteTimelineMutation, GetOneTimeline, TimelineResult } from '../../graphql/types';
import {
DeleteTimelineMutation,
GetOneTimeline,
TimelineResult,
SortFieldTimeline,
} from '../../graphql/types';
import { Note } from '../../lib/note';
import { State, timelineSelectors } from '../../store';
import { addNotes as dispatchAddNotes } from '../../store/app/actions';
Expand Down
10 changes: 8 additions & 2 deletions x-pack/plugins/siem/public/containers/domains/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ import { connect } from 'react-redux';

import chrome from 'ui/chrome';
import { DEFAULT_INDEX_KEY } from '../../..';
import { FlowDirection, FlowTarget } from '../../../server/graphql/types';
import { DomainsEdges, DomainsSortField, GetDomainsQuery, PageInfo } from '../../graphql/types';
import {
DomainsEdges,
DomainsSortField,
GetDomainsQuery,
FlowDirection,
FlowTarget,
PageInfo,
} from '../../graphql/types';
import { inputsModel, networkModel, networkSelectors, State } from '../../store';
import { createFilter } from '../helpers';
import { QueryTemplate, QueryTemplateProps } from '../query_template';
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/siem/public/containers/tls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { connect } from 'react-redux';

import chrome from 'ui/chrome';
import { DEFAULT_INDEX_KEY } from '../../..';
import { FlowTarget } from '../../../server/graphql/types';
import { TlsEdges, TlsSortField, GetTlsQuery, PageInfo } from '../../graphql/types';
import { FlowTarget, PageInfo, TlsEdges, TlsSortField, GetTlsQuery } from '../../graphql/types';
import { inputsModel, networkModel, networkSelectors, State } from '../../store';
import { createFilter } from '../helpers';
import { QueryTemplate, QueryTemplateProps } from '../query_template';
Expand Down
9 changes: 7 additions & 2 deletions x-pack/plugins/siem/public/containers/users/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ import { connect } from 'react-redux';

import chrome from 'ui/chrome';
import { DEFAULT_INDEX_KEY } from '../../..';
import { FlowTarget } from '../../../server/graphql/types';
import { GetUsersQuery, PageInfo, UsersEdges, UsersSortField } from '../../graphql/types';
import {
GetUsersQuery,
FlowTarget,
PageInfo,
UsersEdges,
UsersSortField,
} from '../../graphql/types';
import { inputsModel, networkModel, networkSelectors, State } from '../../store';
import { createFilter } from '../helpers';
import { QueryTemplate, QueryTemplateProps } from '../query_template';
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/siem/public/mock/timeline_results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { TimelineResult } from '../../server/graphql/types';
import { OpenTimelineResult } from '../components/open_timeline/types';
import { GetAllTimeline, SortFieldTimeline, Direction } from '../graphql/types';
import { GetAllTimeline, SortFieldTimeline, TimelineResult, Direction } from '../graphql/types';
import { allTimelinesQuery } from '../containers/timeline/all/index.gql_query';

export interface MockedProvidedQuery {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { LastEventTimeRequestOptions } from './types';
import { LastEventIndexKey } from '../../graphql/types';
import { assertUnreachable } from '../../../public/lib/helpers';
import { assertUnreachable } from '../../utils/build_query';

interface EventIndices {
[key: string]: string[];
Expand Down

0 comments on commit 61281d4

Please sign in to comment.