Skip to content

pivotick v3.0.0


pivotick / Pivot / PivotSavePayload

Interface: PivotSavePayload ​

Defined in: interfaces/Pivot.ts:141

What the consumer is asked to write. Live graph objects rather than raw fragments, so the payload carries whatever the graph has made of them.

A retry carries only what is still unsaved, which is why this is built fresh per attempt rather than kept with the run.

Properties ​

attempt ​

attempt: number

Defined in: interfaces/Pivot.ts:161

1 on the first attempt, incremented by each retry.


children ​

children: Node[]

Defined in: interfaces/Pivot.ts:153

Nodes this run added inside a container, flattened. Each one's container is reachable through Node.parentNode, so a payload can be grouped by parent without a second traversal.


edges ​

edges: Edge[]

Defined in: interfaces/Pivot.ts:154


nodes ​

nodes: Node[]

Defined in: interfaces/Pivot.ts:147

Top-level nodes this run created and that are still unsaved.


origin ​

origin: Node[]

Defined in: interfaces/Pivot.ts:145

The nodes the pivot was run on — "which event does this attach to".


pivotId ​

pivotId: string

Defined in: interfaces/Pivot.ts:143


runId ​

runId: string

Defined in: interfaces/Pivot.ts:142


vouched ​

vouched: object

Defined in: interfaces/Pivot.ts:159

Already on canvas before this run: vouched for, not created. Context only — writing these is the job of the run that produced them.

edges ​

edges: Edge[]

nodes ​

nodes: Node[]