DayPilot.Link(data)
The structure of the data object is described in DayPilot.Link.data property.
var link = new DayPilot.Link({ id: "link-1", from: "task-1", to: "task-2", type: "FinishToStart" });