Private/Get-ClobEarnings.ps1

function Get-ClobEarnings {
  [CmdletBinding()]
  param (
    [Parameter()]
    [string]$Date,

    [Parameter()]
    [ValidateSet('table', 'json')]
    [string]$Output = 'table'
  )

  process {
    # Earnings and Rewards use the same endpoint but might be filtered differently in the future.
    Get-ClobRewards -Date $Date -Output $Output
  }
}