mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Updated segment handling.
This commit is contained in:
parent
554c627a58
commit
fba7e12c36
13 changed files with 59 additions and 90 deletions
|
|
@ -44,7 +44,14 @@ export interface QueryOptions {
|
|||
prefix?: string;
|
||||
}
|
||||
|
||||
export interface QueryFilters extends DateParams, FilterParams, SortParams, PageParams {}
|
||||
export interface QueryFilters
|
||||
extends DateParams,
|
||||
FilterParams,
|
||||
SortParams,
|
||||
PageParams,
|
||||
SegmentParams {
|
||||
cohortFilters?: QueryFilters;
|
||||
}
|
||||
|
||||
export interface DateParams {
|
||||
startDate?: Date;
|
||||
|
|
@ -86,6 +93,11 @@ export interface PageParams {
|
|||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface SegmentParams {
|
||||
segment?: string;
|
||||
cohort?: string;
|
||||
}
|
||||
|
||||
export interface PageResult<T> {
|
||||
data: T;
|
||||
count: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue