makeFlow function infrastructure

Last updated: 2026-03-05T10:53:28.856Z

Metrics

LOC: 15 Complexity: 1 Params: 2

Signature

makeFlow(id: string, name = "Test"): : FlowScript

Source Code

function makeFlow(id: string, name = "Test"): FlowScript {
  return {
    id,
    metadata: {
      name,
      baseUrl: "https://example.com",
      seed: "abc",
      createdAt: 1000,
      updatedAt: 1000,
      version: 1,
    },
    replayConfig: { ...DEFAULT_REPLAY_CONFIG },
    steps: [],
  };
}

Dependencies (Outgoing)

graph LR makeFlow["makeFlow"] getDemoFlows["getDemoFlows"] getDemoFlowById["getDemoFlowById"] saveDemoFlow["saveDemoFlow"] deleteDemoFlow["deleteDemoFlow"] clearDemoFlows["clearDemoFlows"] FlowScript["FlowScript"] makeFlow -->|uses| getDemoFlows makeFlow -->|uses| getDemoFlowById makeFlow -->|uses| saveDemoFlow makeFlow -->|uses| deleteDemoFlow makeFlow -->|uses| clearDemoFlows makeFlow -->|uses| FlowScript makeFlow -->|calls| makeFlow style makeFlow fill:#dbeafe,stroke:#2563eb,stroke-width:2px click makeFlow "dbc7481d1e84d982.html" click getDemoFlows "7a890fea8b78bfa5.html" click getDemoFlowById "48ce0eb3216ec3dd.html" click saveDemoFlow "9e1045b40d770fef.html" click deleteDemoFlow "b4c66edca3bc33c4.html" click clearDemoFlows "c5a0b79d428f7d17.html" click FlowScript "a291da387acb05c8.html"

Impact (Incoming)

graph LR makeFlow["makeFlow"] makeFlow -->|calls| makeFlow style makeFlow fill:#dbeafe,stroke:#2563eb,stroke-width:2px click makeFlow "dbc7481d1e84d982.html"
SourceType
makeFlow calls