-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
633 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ScanEventStatus } from './index'; | ||
|
||
export interface ScanEvent extends ScanEventEndData { | ||
multi_scan_id: string; | ||
} | ||
|
||
export interface ScanEventEndData { | ||
event_status?: ScanEventStatus; | ||
total_findings?: number; | ||
total_ignored_findings?: number; | ||
total_scan_duration?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { ScanEventEndData } from './ScanEvent'; | ||
import { StartScanRequest } from './StartScanRequest'; | ||
|
||
export interface ScanEventResponse extends StartScanRequest, ScanEventEndData {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ScanEventType, ScanEventStatus } from './index'; | ||
|
||
export interface StartScanRequest { | ||
event_type?: ScanEventType; | ||
event_status?: ScanEventStatus; | ||
product?: string; | ||
product_version?: string; | ||
jpd_version?: string; | ||
jfrog_user?: string; | ||
os_platform?: string; | ||
os_architecture?: string; | ||
machine_id?: string; | ||
analyzer_manager_version?: string; | ||
is_default_config?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { XscLogLevel } from './index'; | ||
|
||
export interface XscLog { | ||
log_level: XscLogLevel; | ||
source: string; | ||
message: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export { ScanEvent } from './ScanEvent'; | ||
export { StartScanRequest } from './StartScanRequest'; | ||
export { ScanEventResponse } from './ScanEventResponse'; | ||
export { XscLog } from './XscLog'; | ||
|
||
export enum ScanEventStatus { | ||
Started = 'started', | ||
Completed = 'completed', | ||
Cancelled = 'cancelled', | ||
Failed = 'failed', | ||
} | ||
|
||
export enum ScanEventType { | ||
SourceCode = 1, | ||
} | ||
|
||
export type XscLogLevel = 'debug' | 'info' | 'warning' | 'error'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface IXscVersion { | ||
xray_version: string; | ||
xsc_version: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.