export function isApplicationRequestLike(value) {
  const explicitType = String(
    value?.documentTypeCode
    || value?.document_type_code
    || value?.documentType
    || value?.document_type
    || ''
  ).trim()
  const claimNo = String(value?.claim_no || value?.claimNo || value?.documentNo || value?.id || '')
    .trim()
    .toUpperCase()
  const typeCode = String(value?.typeCode || value?.expense_type || value?.expenseType || '').trim()

  return (
    explicitType === 'application'
    || explicitType === 'expense_application'
    || claimNo.startsWith('AP-')
    || claimNo.startsWith('APP-')
    || typeCode === 'application'
    || typeCode.endsWith('_application')
  )
}
