From b17dd66513bce717146f03e84fac10bdd867a9bf Mon Sep 17 00:00:00 2001
From: Asaf Ambar <asafa@jfrog.com>
Date: Thu, 4 Jan 2024 09:29:31 +0200
Subject: [PATCH] Graph Scan internal API - New GraphNode field added to
 GraphNode (#884)

---
 xray/services/utils/graph.go | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/xray/services/utils/graph.go b/xray/services/utils/graph.go
index d976d55a6..f4d09a485 100644
--- a/xray/services/utils/graph.go
+++ b/xray/services/utils/graph.go
@@ -30,11 +30,13 @@ type OtherComponentIds struct {
 
 // Audit Graph Node
 type GraphNode struct {
-	Id string `json:"component_id,omitempty"`
-	// List of subcomponents.
-	Nodes []*GraphNode `json:"nodes,omitempty"`
 	// Node parent (for internal use)
 	Parent *GraphNode `json:"-"`
+	// Node file types (tar, jar, zip, pom)
+	Types *[]string `json:"-"`
+	Id    string    `json:"component_id,omitempty"`
+	// List of subcomponents.
+	Nodes []*GraphNode `json:"nodes,omitempty"`
 }
 
 func (currNode *GraphNode) NodeHasLoop() bool {