Updated segment handling.

This commit is contained in:
Mike Cao committed 2025-07-31 02:33:35 -07:00
1 parent 554c627a58
commit fba7e12c36
13 files changed
+59 -90

No files matched your search

+13 -1
View File
@@ -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;