/** 插件搬运任务（AbstractChainedDeliveryMission.GetDeliveries）投影行 */
export interface DeliveryTask {
  /** 内部任务号（StandardScene 为 Base62 雪花串） */
  id: string
  /** 外部系统单号（可空） */
  taskId?: string | null
  missionId: number
  missionName: string
  missionTypeName: string
  srcSiteId: number
  srcLabel: string
  dstSiteId: number
  dstLabel: string
  status: string
  statusCode: string
  carId?: number | null
  carName?: string | null
  priority: number
  createTime?: string | null
  startTime?: string | null
  finishTime?: string | null
  stuckReason?: string | null
  overdue?: boolean
}

export type DeliveryAction =
  | 'cancel'
  | 'resend'
  | 'force-complete'
  | 'pause'
  | 'resume'
  | 'change-car'

/** 新建搬运任务入参 */
export interface CreateDeliveryPayload {
  src: number
  dst: number
  priority?: number
  taskId?: string
  carType?: string
}
