import { resolveFulfillmentDeliveryLink } from './executors/registry.js'
import type { FulfillmentDeliveryLink } from './executors/types.js'
import type { TaskRow } from '../../types/repository/rows.js'

export type TaskDeliveryLink = FulfillmentDeliveryLink

export async function resolveTaskDeliveryLink(task: TaskRow): Promise<TaskDeliveryLink | null> {
  return resolveFulfillmentDeliveryLink(task)
}
