Skip to content

frontend-web-editor


Function: UpdateEventSequenceDiagram()

UpdateEventSequenceDiagram(eventSequenceId, updatedSubgraph, deletedSubgraph): Promise<boolean>

Defined in: utils/treeUtils.ts:475

Persist event-sequence mutations by sending updated and deleted subgraphs.

Wraps the provided subgraphs into normalized EventSequenceGraph payloads and calls the Graph API to apply the delta. Returns true on success.

Parameters

eventSequenceId

string

The current Event Sequence id.

updatedSubgraph

BaseGraphState

Nodes/edges to add or update.

deletedSubgraph

BaseGraphState

Nodes/edges to remove.

Returns

Promise<boolean>

Promise resolving to a boolean indicating API success.