// @sim-sdk 1
import { api, condition, edge, js, todo, trigger, workflow } from '@sim/workflow-sdk'

export default workflow('Fixture', {}, () => {
  const start = trigger.start('Start', { inputFormat: {} })
  const gate = condition('Gate', { if: js`true`, else: true })
  const a = api('A', { url: 'https://a.test', method: todo() })
  const b = api('B', { url: 'https://b.test', method: todo() })

  start.to(gate)
  edge(gate, 'source', a)
  gate.if.to(b)
  edge(a, 'right-legacy', b)
})
