Magidoc

DateRangeFilterInput
Input Object

Input type for date range filtering with dynamic date range support

Fields

#

amount

Number of time units of a 'last' or 'next' range

endDate

End date of the range

includeCurrent

Whether a 'last' or 'next' range also counts the current unit: last 3 months is the 3 months before this one when false, and those 3 plus this month when true

selectedOption

Predefined date range option ('No date', 'Custom', 'Dynamic', 'Today', 'This week', 'Week after next', 'This month', 'Last 30 days', 'This quarter', 'Last quarter', 'Next quarter', 'This year', 'Lifetime', 'Through today', 'Overdue')

startDate

Start date of the range

timeDirection

Direction of a 'Dynamic' range ('this', 'last', 'next')

timeUnit

Time unit of a 'Dynamic' range ('year', 'quarter', 'month', 'week', 'day')