Skip to content

Commit 9d797ba

Browse files
committed
Rename some variables
1 parent a0ad26a commit 9d797ba

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

uncoder-os/src/models/Providers/type/ApiRequests.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { BasicIocType, HashIocType, IocParsingRulesType } from '../../../types/iocsTypes';
22

33
export type TranslateAllRequest = {
4-
source_siem: string,
4+
source_platform_id: string,
55
source_scheme?: string,
66
text: string,
77
}
88

99
export type TranslateRequest = TranslateAllRequest & {
10-
target_siem: string,
10+
target_platform_id: string,
1111
target_scheme?: string,
1212
}
1313

1414
export type PlatformForIoc = {
15-
name: string,
15+
id: string,
1616
}
1717

1818
export type TranslateIocRequest = {

uncoder-os/src/models/Providers/type/ApiResponses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type ResultStatusContext = {
1212

1313
export type TranslateItem = ResultStatusContext & {
1414
translation: string,
15-
target_siem_type: string,
15+
target_platform_id: string,
1616
target_siem_name: string
1717
};
1818

@@ -46,7 +46,7 @@ export type ParserPlatformData = PlatformData & {
4646
export type PlatformsResponse = ParserPlatformData[];
4747

4848
export type IocTranslationData = {
49-
target_siem_type: string,
49+
target_platform_id: string,
5050
translations: string[],
5151
}
5252

uncoder-os/src/reduxData/outputEditor/outputEditor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ const getTranslateRequestData = (state: RootState): TranslateRequest | undefined
8080

8181
return {
8282
text,
83-
source_siem: sourceSiem,
84-
target_siem: platformDataItem?.code ?? '',
83+
source_platform_id: sourceSiem,
84+
target_platform_id: platformDataItem?.code ?? '',
8585
target_scheme: (platformDataItem?.alt_platform ?? undefined) !== 'regular' ? platformDataItem?.alt_platform : undefined,
8686
};
8787
};
@@ -109,7 +109,7 @@ const getTranslateIocRequestData = (state: RootState): TranslateIocRequest | und
109109
return {
110110
text,
111111
platform: {
112-
name: platformDataItem.code,
112+
id: platformDataItem.code,
113113
},
114114
iocs_per_query: iocSettings.iocPerQuery,
115115
include_ioc_types: iocSettings.includeIocTypes,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy