import { apiRequest } from './api.js'

export function fetchExpenseCaseTimeline(claimId, options = {}) {
  const normalizedClaimId = String(claimId || '').trim()
  if (!normalizedClaimId) {
    return Promise.resolve(null)
  }

  return apiRequest(`/expense-cases/by-claim/${encodeURIComponent(normalizedClaimId)}`, options)
}
