Skip to content
Snippets Groups Projects
Commit 372f8a16 authored by Leonardo's avatar Leonardo Committed by Leonardo Christino
Browse files

chore(stats): refactor stats typing to match backend

parent 92f8fbf4
No related branches found
Tags v1.66.1
1 merge request!221chore(stats): refactor stats typing to match backend
Pipeline #138963 passed
...@@ -30,8 +30,14 @@ export const initialState: schemaSliceI = { ...@@ -30,8 +30,14 @@ export const initialState: schemaSliceI = {
edges: {}, edges: {},
}, },
graphStats: { graphStats: {
nodeStats: {}, nodes: {
edgeStats: {}, count: 0,
stats: {},
},
edges: {
count: 0,
stats: {},
},
}, },
// layoutName: 'Cytoscape_fcose', // layoutName: 'Cytoscape_fcose',
settings: { settings: {
......
...@@ -52,8 +52,14 @@ export type SchemaGraphInference = { ...@@ -52,8 +52,14 @@ export type SchemaGraphInference = {
}; };
export type SchemaGraphStats = { export type SchemaGraphStats = {
nodeStats: Record<string, NodeOrEdgeStats>; // node key -> Stats nodes: {
edgeStats: Record<string, NodeOrEdgeStats>; // edge key -> Stats count: number;
stats: Record<string, NodeOrEdgeStats>; // node key -> Stats
};
edges: {
count: number;
stats: Record<string, NodeOrEdgeStats>; // edge key -> Stats
};
}; };
export type NodeOrEdgeStats = { export type NodeOrEdgeStats = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment