33 * or more contributor license agreements. Licensed under the Elastic License;
44 * you may not use this file except in compliance with the Elastic License.
55 */
6+ import { FilterStateStore } from '../../../../../src/plugins/data/common/es_query/filters/meta_filter' ;
7+
8+ import { TimelineType } from '../../common/types/timeline' ;
69
710import { OpenTimelineResult } from '../components/open_timeline/types' ;
811import { GetAllTimeline , SortFieldTimeline , TimelineResult , Direction } from '../graphql/types' ;
912import { allTimelinesQuery } from '../containers/timeline/all/index.gql_query' ;
1013import { CreateTimelineProps } from '../pages/detection_engine/components/signals/types' ;
1114import { TimelineModel } from '../store/timeline/model' ;
1215import { timelineDefaults } from '../store/timeline/defaults' ;
13- import { FilterStateStore } from '../../../../../src/plugins/data/common/es_query/filters/meta_filter' ;
1416export interface MockedProvidedQuery {
1517 request : {
1618 query : GetAllTimeline . Query ;
@@ -168,7 +170,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
168170 'ZF0W12oB9v5HJNSHwY6L' ,
169171 ] ,
170172 title : 'test 1' ,
171- timelineType : null ,
173+ timelineType : TimelineType . default ,
172174 templateTimelineId : null ,
173175 templateTimelineVersion : null ,
174176 created : 1558386787614 ,
@@ -297,7 +299,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
297299 'ZF0W12oB9v5HJNSHwY6L' ,
298300 ] ,
299301 title : 'test 2' ,
300- timelineType : null ,
302+ timelineType : TimelineType . default ,
301303 templateTimelineId : null ,
302304 templateTimelineVersion : null ,
303305 created : 1558386787614 ,
@@ -426,7 +428,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
426428 'ZF0W12oB9v5HJNSHwY6L' ,
427429 ] ,
428430 title : 'test 2' ,
429- timelineType : null ,
431+ timelineType : TimelineType . default ,
430432 templateTimelineId : null ,
431433 templateTimelineVersion : null ,
432434 created : 1558386787614 ,
@@ -555,7 +557,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
555557 'ZF0W12oB9v5HJNSHwY6L' ,
556558 ] ,
557559 title : 'test 3' ,
558- timelineType : null ,
560+ timelineType : TimelineType . default ,
559561 templateTimelineId : null ,
560562 templateTimelineVersion : null ,
561563 created : 1558386787614 ,
@@ -684,7 +686,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
684686 'ZF0W12oB9v5HJNSHwY6L' ,
685687 ] ,
686688 title : 'test 4' ,
687- timelineType : null ,
689+ timelineType : TimelineType . default ,
688690 templateTimelineId : null ,
689691 templateTimelineVersion : null ,
690692 created : 1558386787614 ,
@@ -813,7 +815,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
813815 'ZF0W12oB9v5HJNSHwY6L' ,
814816 ] ,
815817 title : 'test 5' ,
816- timelineType : null ,
818+ timelineType : TimelineType . default ,
817819 templateTimelineId : null ,
818820 templateTimelineVersion : null ,
819821 created : 1558386787614 ,
@@ -942,7 +944,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
942944 'ZF0W12oB9v5HJNSHwY6L' ,
943945 ] ,
944946 title : 'test 6' ,
945- timelineType : null ,
947+ timelineType : TimelineType . default ,
946948 templateTimelineId : null ,
947949 templateTimelineVersion : null ,
948950 created : 1558386787614 ,
@@ -1071,7 +1073,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
10711073 'ZF0W12oB9v5HJNSHwY6L' ,
10721074 ] ,
10731075 title : 'test 7' ,
1074- timelineType : null ,
1076+ timelineType : TimelineType . default ,
10751077 templateTimelineId : null ,
10761078 templateTimelineVersion : null ,
10771079 created : 1558386787614 ,
@@ -1200,7 +1202,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
12001202 'ZF0W12oB9v5HJNSHwY6L' ,
12011203 ] ,
12021204 title : 'test 7' ,
1203- timelineType : null ,
1205+ timelineType : TimelineType . default ,
12041206 templateTimelineId : null ,
12051207 templateTimelineVersion : null ,
12061208 created : 1558386787614 ,
@@ -1329,7 +1331,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
13291331 'ZF0W12oB9v5HJNSHwY6L' ,
13301332 ] ,
13311333 title : 'test 7' ,
1332- timelineType : null ,
1334+ timelineType : TimelineType . default ,
13331335 templateTimelineId : null ,
13341336 templateTimelineVersion : null ,
13351337 created : 1558386787614 ,
@@ -1458,7 +1460,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
14581460 'ZF0W12oB9v5HJNSHwY6L' ,
14591461 ] ,
14601462 title : 'test 7' ,
1461- timelineType : null ,
1463+ timelineType : TimelineType . default ,
14621464 templateTimelineId : null ,
14631465 templateTimelineVersion : null ,
14641466 created : 1558386787614 ,
@@ -1587,7 +1589,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
15871589 'ZF0W12oB9v5HJNSHwY6L' ,
15881590 ] ,
15891591 title : 'test 7' ,
1590- timelineType : null ,
1592+ timelineType : TimelineType . default ,
15911593 templateTimelineId : null ,
15921594 templateTimelineVersion : null ,
15931595 created : 1558386787614 ,
@@ -1716,7 +1718,7 @@ export const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
17161718 'ZF0W12oB9v5HJNSHwY6L' ,
17171719 ] ,
17181720 title : 'test 7' ,
1719- timelineType : null ,
1721+ timelineType : TimelineType . default ,
17201722 templateTimelineId : null ,
17211723 templateTimelineVersion : null ,
17221724 created : 1558386787614 ,
@@ -2141,6 +2143,9 @@ export const mockTimelineModel: TimelineModel = {
21412143 sortDirection : Direction . desc ,
21422144 } ,
21432145 title : 'Test rule' ,
2146+ timelineType : TimelineType . default ,
2147+ templateTimelineId : null ,
2148+ templateTimelineVersion : null ,
21442149 version : '1' ,
21452150 width : 1100 ,
21462151} ;
@@ -2164,6 +2169,9 @@ export const mockTimelineResult: TimelineResult = {
21642169 ] ,
21652170 kqlMode : 'filter' ,
21662171 title : 'Test rule' ,
2172+ timelineType : TimelineType . default ,
2173+ templateTimelineId : null ,
2174+ templateTimelineVersion : null ,
21672175 savedQueryId : null ,
21682176 sort : { columnId : '@timestamp' , sortDirection : 'desc' } ,
21692177 version : '1' ,
@@ -2235,6 +2243,9 @@ export const defaultTimelineProps: CreateTimelineProps = {
22352243 showRowRenderers : true ,
22362244 sort : { columnId : '@timestamp' , sortDirection : Direction . desc } ,
22372245 title : '' ,
2246+ timelineType : TimelineType . default ,
2247+ templateTimelineVersion : null ,
2248+ templateTimelineId : null ,
22382249 version : null ,
22392250 width : 1100 ,
22402251 } ,
0 commit comments