File tree Expand file tree Collapse file tree 9 files changed +74
-2
lines changed
Expand file tree Collapse file tree 9 files changed +74
-2
lines changed Original file line number Diff line number Diff line change 1+ export default class CxCvss {
2+ version :string ;
3+ attackVector :string ;
4+ availability :string ;
5+ confidentiality :string ;
6+ attackComplexity :string ;
7+ integrityImpact :string ;
8+ scope :string ;
9+ privilegesRequired :string ;
10+ userInteraction :string ;
11+ }
Original file line number Diff line number Diff line change 1+ import CxPackageData from "./CxPackageData" ;
2+ import CxScaPackageData from "./CxScaPackageData" ;
3+ import CxNode from "./CxNode" ;
4+
5+ export default class CxData {
6+ packageData : CxPackageData [ ] ;
7+ packageIdentifier : string ;
8+ scaPackageData : CxScaPackageData ;
9+ queryId : string ;
10+ queryName : string ;
11+ group : string ;
12+ resultHash : string ;
13+ languageName : string ;
14+ nodes : CxNode [ ] ;
15+ }
Original file line number Diff line number Diff line change 1+ export default class CxDependencyPaths {
2+ id : string ;
3+ name : string ;
4+ version : string ;
5+ isDevelopment : boolean ;
6+ }
Original file line number Diff line number Diff line change 1+ export default class CxNode {
2+ id : string ;
3+ line : number ;
4+ name : string ;
5+ column : number ;
6+ length : number ;
7+ method : string ;
8+ nodeID : number ;
9+ domType : string ;
10+ fileName : string ;
11+ fullName : string ;
12+ typeName : string ;
13+ methodLine : number ;
14+ definitions : string ;
15+ }
Original file line number Diff line number Diff line change 1+ export default class CxPackageData {
2+ comment : string ;
3+ type : string ;
4+ url : string ;
5+ }
Original file line number Diff line number Diff line change 1+ import CxData from "./CxData" ;
2+ import CxVulnerabilityDetails from "./CxVulnerabilityDetails" ;
3+
14export default class CxResult {
25 type : string ;
36 id : string ;
@@ -10,7 +13,7 @@ export default class CxResult {
1013 foundAt : string ;
1114 firstScanId : string ;
1215 description : string ;
13- data : any = { } ;
16+ data : CxData ;
1417 comments : any = { } ;
15- vulnerabilityDetails :object = { } ;
18+ vulnerabilityDetails :CxVulnerabilityDetails ;
1619}
Original file line number Diff line number Diff line change 1+ import CxDependencyPaths from "./CxDependencyPaths" ;
2+
3+ export default class CxScaPackageData {
4+ id : string ;
5+ locations : string [ ] ;
6+ dependencyPaths : CxDependencyPaths [ ] ;
7+ outdated : boolean ;
8+ }
Original file line number Diff line number Diff line change 1+ import CxCvss from "./CxCvss" ;
2+
3+ export default class CxVulnerabilityDetails {
4+ cweId : number ;
5+ cvss : CxCvss ;
6+ compliances : string [ ] ;
7+ cvssScore :number ;
8+ cveName :string ;
9+ }
You can’t perform that action at this time.
0 commit comments