export interface Edges {
  id: string;
  source: string;
  target: string;
  targetNode: string;
  sourceNode: string;
}

export interface Action {
  text: string;
  id: string;
}

export interface Nodes {
  actions: Action[];
  events?: Action[];
  color: string;
  group: string;
  height: number;
  screenId: number;
  id: string;
  left: number;
  moduleName?: string;
  show?: boolean;
  lock?: boolean;
  name: string;
  thumb?: string;
  state: number;
  top: number;
  type: string;
  width: number;
}

export interface Group {
  color: string;
  group: string;
  height: number;
  id: string;
  screenId: number;
  left: number;
  name: string;
  top: number;
  type: string;
  width: number;
}

export interface NodeData {
  nodes: Nodes[];
  edges: Edges[];
  groups: Group[];
}
