feat: Static segments

This commit is contained in:
Dries Augustyns
2026-02-23 13:57:32 +01:00
parent 21af8fe05e
commit 4b51e386e3
10 changed files with 664 additions and 87 deletions
+5 -1
View File
@@ -2,6 +2,8 @@
* Segment and filter types
*/
export type SegmentType = 'DYNAMIC' | 'STATIC';
// Segment filter types
export type SegmentFilterOperator =
// Standard operators (for contact fields)
@@ -45,13 +47,15 @@ export interface FilterCondition {
export interface CreateSegmentData {
name: string;
description?: string;
condition: FilterCondition;
type?: SegmentType;
condition?: FilterCondition;
trackMembership?: boolean;
}
export interface UpdateSegmentData {
name?: string;
description?: string;
type?: SegmentType;
condition?: FilterCondition;
trackMembership?: boolean;
}