delta_registry.d.ts 821 B

123456789101112
  1. import { Delta, Transaction, NodeCreation, NodeDeletion, EdgeUpdate, Edge, ExistingEdge, NewEdge, ReadAllOutgoing } from "./delta";
  2. import { PrimitiveValue, UUID } from "./types";
  3. export declare class DeltaRegistry {
  4. deltas: Map<string, Delta>;
  5. private createIdempotent;
  6. newNodeCreation(id: UUID): NodeCreation;
  7. newReadAllOutgoing(node: NodeCreation, after: readonly NewEdge[]): ReadAllOutgoing;
  8. newNodeDeletion(creation: NodeCreation, afterSrc: readonly EdgeUpdate[], afterTgt: readonly EdgeUpdate[]): NodeDeletion;
  9. newEdgeUpdate(overwrites: Edge, target: NodeCreation | PrimitiveValue, reads?: readonly ExistingEdge[], afterReads?: readonly EdgeUpdate[]): EdgeUpdate;
  10. newTransaction(deltas: Array<Delta>, description: string, dependencies?: readonly [Transaction, string][]): Transaction;
  11. }