Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

526 B
Raw Blame
import { FlowActionType, flowStructureUtil, FlowTriggerType, FlowVersion, Step } from '@activepieces/shared'

export const flowSteps = {
    code: (flowVersion: FlowVersion): Step[] =>
        flowStructureUtil.getAllSteps(flowVersion.trigger)
            .filter((step) => step.type === FlowActionType.CODE),
    piece: (flowVersion: FlowVersion): Step[] =>
        flowStructureUtil.getAllSteps(flowVersion.trigger)
            .filter((step) => step.type === FlowActionType.PIECE || step.type === FlowTriggerType.PIECE),
}