export type AdminTaskActionPayload = {
  taskId: number
  taskNo: string
  status: string
  deliveryStatus: string
  resultCode: string
  resultMessage: string
  primaryClaimTokenId: number | null
  lastError: string
  updatedAt: string
}

export type AdminTaskActionResponse = {
  task: AdminTaskActionPayload
  claimUrl?: string
  token?: string
}

export type AdminManualDispatchOutcome = 'delivered' | 'failed'

export type AdminTaskManualDispatchResponse = AdminTaskActionResponse & {
  outcome: AdminManualDispatchOutcome
}
