File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { BasicIocType , HashIocType , IocParsingRulesType } from '../../../types/iocsTypes' ;
2
2
3
3
export type TranslateAllRequest = {
4
- source_siem : string ,
4
+ source_platform_id : string ,
5
5
source_scheme ?: string ,
6
6
text : string ,
7
7
}
8
8
9
9
export type TranslateRequest = TranslateAllRequest & {
10
- target_siem : string ,
10
+ target_platform_id : string ,
11
11
target_scheme ?: string ,
12
12
}
13
13
14
14
export type PlatformForIoc = {
15
- name : string ,
15
+ id : string ,
16
16
}
17
17
18
18
export type TranslateIocRequest = {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export type ResultStatusContext = {
12
12
13
13
export type TranslateItem = ResultStatusContext & {
14
14
translation : string ,
15
- target_siem_type : string ,
15
+ target_platform_id : string ,
16
16
target_siem_name : string
17
17
} ;
18
18
@@ -46,7 +46,7 @@ export type ParserPlatformData = PlatformData & {
46
46
export type PlatformsResponse = ParserPlatformData [ ] ;
47
47
48
48
export type IocTranslationData = {
49
- target_siem_type : string ,
49
+ target_platform_id : string ,
50
50
translations : string [ ] ,
51
51
}
52
52
Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ const getTranslateRequestData = (state: RootState): TranslateRequest | undefined
80
80
81
81
return {
82
82
text,
83
- source_siem : sourceSiem ,
84
- target_siem : platformDataItem ?. code ?? '' ,
83
+ source_platform_id : sourceSiem ,
84
+ target_platform_id : platformDataItem ?. code ?? '' ,
85
85
target_scheme : ( platformDataItem ?. alt_platform ?? undefined ) !== 'regular' ? platformDataItem ?. alt_platform : undefined ,
86
86
} ;
87
87
} ;
@@ -109,7 +109,7 @@ const getTranslateIocRequestData = (state: RootState): TranslateIocRequest | und
109
109
return {
110
110
text,
111
111
platform : {
112
- name : platformDataItem . code ,
112
+ id : platformDataItem . code ,
113
113
} ,
114
114
iocs_per_query : iocSettings . iocPerQuery ,
115
115
include_ioc_types : iocSettings . includeIocTypes ,
You can’t perform that action at this time.
0 commit comments