feat: add date range filter
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
+20
-6
@@ -165,15 +165,29 @@ export interface ListSort {
|
||||
}
|
||||
|
||||
/**
|
||||
* Range for list operations
|
||||
*
|
||||
* Tally (pagination) range for list operations
|
||||
*
|
||||
* Values can be:
|
||||
* - relative based on item identifier
|
||||
* - absolute based on item count
|
||||
* - relative based on item identifier
|
||||
* - absolute based on item count
|
||||
*/
|
||||
export interface ListRange {
|
||||
export interface ListRangeTally {
|
||||
type: 'tally';
|
||||
anchor: 'relative' | 'absolute';
|
||||
position: string | number;
|
||||
tally: number;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Date (pagination) range for list operations
|
||||
*/
|
||||
export interface ListRangeDate {
|
||||
type: 'date';
|
||||
start: number;
|
||||
end: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Range for list operations
|
||||
*/
|
||||
export type ListRange = ListRangeTally | ListRangeDate;
|
||||
Reference in New Issue
Block a user