@lightdash/common 0.1736.0 → 0.1737.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { DimensionType, MetricType } from '../../types/field';
3
3
  import { FilterOperator, UnitOfTime } from '../../types/filter';
4
4
  export declare const FieldIdSchema: z.ZodString;
5
- declare const FilterRuleSchema: z.ZodUnion<[z.ZodObject<{
5
+ declare const FilterRuleSchema: z.ZodEffects<z.ZodObject<{
6
6
  id: z.ZodString;
7
7
  target: z.ZodObject<{
8
8
  fieldId: z.ZodString;
@@ -14,8 +14,18 @@ declare const FilterRuleSchema: z.ZodUnion<[z.ZodObject<{
14
14
  type: DimensionType | MetricType;
15
15
  fieldId: string;
16
16
  }>;
17
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
17
+ operator: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>, z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>]>;
18
18
  values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
19
+ settings: z.ZodNullable<z.ZodObject<{
20
+ completed: z.ZodBoolean;
21
+ unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ completed: boolean;
24
+ unitOfTime: UnitOfTime;
25
+ }, {
26
+ completed: boolean;
27
+ unitOfTime: UnitOfTime;
28
+ }>>;
19
29
  }, "strip", z.ZodTypeAny, {
20
30
  values: (string | number | boolean | null)[];
21
31
  target: {
@@ -23,7 +33,11 @@ declare const FilterRuleSchema: z.ZodUnion<[z.ZodObject<{
23
33
  fieldId: string;
24
34
  };
25
35
  id: string;
26
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
36
+ settings: {
37
+ completed: boolean;
38
+ unitOfTime: UnitOfTime;
39
+ } | null;
40
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
27
41
  }, {
28
42
  values: (string | number | boolean | null)[];
29
43
  target: {
@@ -31,46 +45,34 @@ declare const FilterRuleSchema: z.ZodUnion<[z.ZodObject<{
31
45
  fieldId: string;
32
46
  };
33
47
  id: string;
34
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
35
- }>, z.ZodObject<{
36
- id: z.ZodString;
37
- target: z.ZodObject<{
38
- fieldId: z.ZodString;
39
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
40
- }, "strip", z.ZodTypeAny, {
41
- type: DimensionType | MetricType;
42
- fieldId: string;
43
- }, {
44
- type: DimensionType | MetricType;
45
- fieldId: string;
46
- }>;
47
- } & {
48
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
49
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
50
- settings: z.ZodObject<{
51
- completed: z.ZodBoolean;
52
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
53
- }, "strip", z.ZodTypeAny, {
54
- completed: boolean;
55
- unitOfTime: UnitOfTime;
56
- }, {
48
+ settings: {
57
49
  completed: boolean;
58
50
  unitOfTime: UnitOfTime;
59
- }>;
60
- }, "strip", z.ZodTypeAny, {
61
- values: (string | null)[];
51
+ } | null;
52
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
53
+ }>, {
54
+ id: string;
62
55
  target: {
63
56
  type: DimensionType | MetricType;
64
57
  fieldId: string;
65
58
  };
66
- id: string;
59
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
60
+ values: (string | number | boolean | null)[];
67
61
  settings: {
68
62
  completed: boolean;
69
63
  unitOfTime: UnitOfTime;
70
64
  };
71
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
65
+ } | {
66
+ id: string;
67
+ target: {
68
+ type: DimensionType | MetricType;
69
+ fieldId: string;
70
+ };
71
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
72
+ values: (string | number | boolean | null)[];
73
+ settings?: undefined;
72
74
  }, {
73
- values: (string | null)[];
75
+ values: (string | number | boolean | null)[];
74
76
  target: {
75
77
  type: DimensionType | MetricType;
76
78
  fieldId: string;
@@ -79,13 +81,14 @@ declare const FilterRuleSchema: z.ZodUnion<[z.ZodObject<{
79
81
  settings: {
80
82
  completed: boolean;
81
83
  unitOfTime: UnitOfTime;
82
- };
83
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
84
- }>]>;
84
+ } | null;
85
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
86
+ }>;
85
87
  export type FilterRuleSchemaType = z.infer<typeof FilterRuleSchema>;
86
- export declare const FilterGroupSchema: z.ZodUnion<[z.ZodObject<{
88
+ export declare const FilterGroupSchema: z.ZodEffects<z.ZodObject<{
87
89
  id: z.ZodString;
88
- and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
90
+ type: z.ZodEnum<["and", "or"]>;
91
+ rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
89
92
  id: z.ZodString;
90
93
  target: z.ZodObject<{
91
94
  fieldId: z.ZodString;
@@ -97,40 +100,9 @@ export declare const FilterGroupSchema: z.ZodUnion<[z.ZodObject<{
97
100
  type: DimensionType | MetricType;
98
101
  fieldId: string;
99
102
  }>;
100
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
103
+ operator: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>, z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>]>;
101
104
  values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
102
- }, "strip", z.ZodTypeAny, {
103
- values: (string | number | boolean | null)[];
104
- target: {
105
- type: DimensionType | MetricType;
106
- fieldId: string;
107
- };
108
- id: string;
109
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
110
- }, {
111
- values: (string | number | boolean | null)[];
112
- target: {
113
- type: DimensionType | MetricType;
114
- fieldId: string;
115
- };
116
- id: string;
117
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
118
- }>, z.ZodObject<{
119
- id: z.ZodString;
120
- target: z.ZodObject<{
121
- fieldId: z.ZodString;
122
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
123
- }, "strip", z.ZodTypeAny, {
124
- type: DimensionType | MetricType;
125
- fieldId: string;
126
- }, {
127
- type: DimensionType | MetricType;
128
- fieldId: string;
129
- }>;
130
- } & {
131
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
132
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
133
- settings: z.ZodObject<{
105
+ settings: z.ZodNullable<z.ZodObject<{
134
106
  completed: z.ZodBoolean;
135
107
  unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
136
108
  }, "strip", z.ZodTypeAny, {
@@ -139,9 +111,9 @@ export declare const FilterGroupSchema: z.ZodUnion<[z.ZodObject<{
139
111
  }, {
140
112
  completed: boolean;
141
113
  unitOfTime: UnitOfTime;
142
- }>;
114
+ }>>;
143
115
  }, "strip", z.ZodTypeAny, {
144
- values: (string | null)[];
116
+ values: (string | number | boolean | null)[];
145
117
  target: {
146
118
  type: DimensionType | MetricType;
147
119
  fieldId: string;
@@ -150,10 +122,10 @@ export declare const FilterGroupSchema: z.ZodUnion<[z.ZodObject<{
150
122
  settings: {
151
123
  completed: boolean;
152
124
  unitOfTime: UnitOfTime;
153
- };
154
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
125
+ } | null;
126
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
155
127
  }, {
156
- values: (string | null)[];
128
+ values: (string | number | boolean | null)[];
157
129
  target: {
158
130
  type: DimensionType | MetricType;
159
131
  fieldId: string;
@@ -162,44 +134,31 @@ export declare const FilterGroupSchema: z.ZodUnion<[z.ZodObject<{
162
134
  settings: {
163
135
  completed: boolean;
164
136
  unitOfTime: UnitOfTime;
165
- };
166
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
167
- }>]>, "many">;
168
- }, "strip", z.ZodTypeAny, {
169
- id: string;
170
- and: ({
171
- values: (string | number | boolean | null)[];
172
- target: {
173
- type: DimensionType | MetricType;
174
- fieldId: string;
175
- };
137
+ } | null;
138
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
139
+ }>, {
176
140
  id: string;
177
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
178
- } | {
179
- values: (string | null)[];
180
141
  target: {
181
142
  type: DimensionType | MetricType;
182
143
  fieldId: string;
183
144
  };
184
- id: string;
145
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
146
+ values: (string | number | boolean | null)[];
185
147
  settings: {
186
148
  completed: boolean;
187
149
  unitOfTime: UnitOfTime;
188
150
  };
189
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
190
- })[];
191
- }, {
192
- id: string;
193
- and: ({
194
- values: (string | number | boolean | null)[];
151
+ } | {
152
+ id: string;
195
153
  target: {
196
154
  type: DimensionType | MetricType;
197
155
  fieldId: string;
198
156
  };
199
- id: string;
200
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
201
- } | {
202
- values: (string | null)[];
157
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
158
+ values: (string | number | boolean | null)[];
159
+ settings?: undefined;
160
+ }, {
161
+ values: (string | number | boolean | null)[];
203
162
  target: {
204
163
  type: DimensionType | MetricType;
205
164
  fieldId: string;
@@ -208,68 +167,39 @@ export declare const FilterGroupSchema: z.ZodUnion<[z.ZodObject<{
208
167
  settings: {
209
168
  completed: boolean;
210
169
  unitOfTime: UnitOfTime;
211
- };
212
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
213
- })[];
214
- }>, z.ZodObject<{
215
- id: z.ZodString;
216
- or: z.ZodArray<z.ZodUnion<[z.ZodObject<{
217
- id: z.ZodString;
218
- target: z.ZodObject<{
219
- fieldId: z.ZodString;
220
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
221
- }, "strip", z.ZodTypeAny, {
222
- type: DimensionType | MetricType;
223
- fieldId: string;
224
- }, {
225
- type: DimensionType | MetricType;
226
- fieldId: string;
227
- }>;
228
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
229
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
230
- }, "strip", z.ZodTypeAny, {
231
- values: (string | number | boolean | null)[];
170
+ } | null;
171
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
172
+ }>, "many">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ type: "and" | "or";
175
+ id: string;
176
+ rule: ({
177
+ id: string;
232
178
  target: {
233
179
  type: DimensionType | MetricType;
234
180
  fieldId: string;
235
181
  };
236
- id: string;
237
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
238
- }, {
182
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
239
183
  values: (string | number | boolean | null)[];
240
- target: {
241
- type: DimensionType | MetricType;
242
- fieldId: string;
184
+ settings: {
185
+ completed: boolean;
186
+ unitOfTime: UnitOfTime;
243
187
  };
188
+ } | {
244
189
  id: string;
245
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
246
- }>, z.ZodObject<{
247
- id: z.ZodString;
248
- target: z.ZodObject<{
249
- fieldId: z.ZodString;
250
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
251
- }, "strip", z.ZodTypeAny, {
252
- type: DimensionType | MetricType;
253
- fieldId: string;
254
- }, {
190
+ target: {
255
191
  type: DimensionType | MetricType;
256
192
  fieldId: string;
257
- }>;
258
- } & {
259
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
260
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
261
- settings: z.ZodObject<{
262
- completed: z.ZodBoolean;
263
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
264
- }, "strip", z.ZodTypeAny, {
265
- completed: boolean;
266
- unitOfTime: UnitOfTime;
267
- }, {
268
- completed: boolean;
269
- unitOfTime: UnitOfTime;
270
- }>;
271
- }, "strip", z.ZodTypeAny, {
272
- values: (string | null)[];
193
+ };
194
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
195
+ values: (string | number | boolean | null)[];
196
+ settings?: undefined;
197
+ })[];
198
+ }, {
199
+ type: "and" | "or";
200
+ id: string;
201
+ rule: {
202
+ values: (string | number | boolean | null)[];
273
203
  target: {
274
204
  type: DimensionType | MetricType;
275
205
  fieldId: string;
@@ -278,56 +208,64 @@ export declare const FilterGroupSchema: z.ZodUnion<[z.ZodObject<{
278
208
  settings: {
279
209
  completed: boolean;
280
210
  unitOfTime: UnitOfTime;
281
- };
282
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
283
- }, {
284
- values: (string | null)[];
211
+ } | null;
212
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
213
+ }[];
214
+ }>, {
215
+ id: string;
216
+ and: ({
217
+ id: string;
285
218
  target: {
286
219
  type: DimensionType | MetricType;
287
220
  fieldId: string;
288
221
  };
289
- id: string;
222
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
223
+ values: (string | number | boolean | null)[];
290
224
  settings: {
291
225
  completed: boolean;
292
226
  unitOfTime: UnitOfTime;
293
227
  };
294
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
295
- }>]>, "many">;
296
- }, "strip", z.ZodTypeAny, {
297
- id: string;
298
- or: ({
299
- values: (string | number | boolean | null)[];
228
+ } | {
229
+ id: string;
300
230
  target: {
301
231
  type: DimensionType | MetricType;
302
232
  fieldId: string;
303
233
  };
234
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
235
+ values: (string | number | boolean | null)[];
236
+ settings?: undefined;
237
+ })[];
238
+ or?: undefined;
239
+ } | {
240
+ id: string;
241
+ or: ({
304
242
  id: string;
305
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
306
- } | {
307
- values: (string | null)[];
308
243
  target: {
309
244
  type: DimensionType | MetricType;
310
245
  fieldId: string;
311
246
  };
312
- id: string;
247
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
248
+ values: (string | number | boolean | null)[];
313
249
  settings: {
314
250
  completed: boolean;
315
251
  unitOfTime: UnitOfTime;
316
252
  };
317
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
318
- })[];
319
- }, {
320
- id: string;
321
- or: ({
322
- values: (string | number | boolean | null)[];
253
+ } | {
254
+ id: string;
323
255
  target: {
324
256
  type: DimensionType | MetricType;
325
257
  fieldId: string;
326
258
  };
327
- id: string;
328
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
329
- } | {
330
- values: (string | null)[];
259
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
260
+ values: (string | number | boolean | null)[];
261
+ settings?: undefined;
262
+ })[];
263
+ and?: undefined;
264
+ }, {
265
+ type: "and" | "or";
266
+ id: string;
267
+ rule: {
268
+ values: (string | number | boolean | null)[];
331
269
  target: {
332
270
  type: DimensionType | MetricType;
333
271
  fieldId: string;
@@ -336,15 +274,16 @@ export declare const FilterGroupSchema: z.ZodUnion<[z.ZodObject<{
336
274
  settings: {
337
275
  completed: boolean;
338
276
  unitOfTime: UnitOfTime;
339
- };
340
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
341
- })[];
342
- }>]>;
277
+ } | null;
278
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
279
+ }[];
280
+ }>;
343
281
  export type FilterGroupSchemaType = z.infer<typeof FilterGroupSchema>;
344
282
  export declare const filterSchema: z.ZodObject<{
345
- dimensions: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
283
+ dimensions: z.ZodNullable<z.ZodEffects<z.ZodObject<{
346
284
  id: z.ZodString;
347
- and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
285
+ type: z.ZodEnum<["and", "or"]>;
286
+ rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
348
287
  id: z.ZodString;
349
288
  target: z.ZodObject<{
350
289
  fieldId: z.ZodString;
@@ -356,40 +295,9 @@ export declare const filterSchema: z.ZodObject<{
356
295
  type: DimensionType | MetricType;
357
296
  fieldId: string;
358
297
  }>;
359
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
298
+ operator: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>, z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>]>;
360
299
  values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
361
- }, "strip", z.ZodTypeAny, {
362
- values: (string | number | boolean | null)[];
363
- target: {
364
- type: DimensionType | MetricType;
365
- fieldId: string;
366
- };
367
- id: string;
368
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
369
- }, {
370
- values: (string | number | boolean | null)[];
371
- target: {
372
- type: DimensionType | MetricType;
373
- fieldId: string;
374
- };
375
- id: string;
376
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
377
- }>, z.ZodObject<{
378
- id: z.ZodString;
379
- target: z.ZodObject<{
380
- fieldId: z.ZodString;
381
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
382
- }, "strip", z.ZodTypeAny, {
383
- type: DimensionType | MetricType;
384
- fieldId: string;
385
- }, {
386
- type: DimensionType | MetricType;
387
- fieldId: string;
388
- }>;
389
- } & {
390
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
391
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
392
- settings: z.ZodObject<{
300
+ settings: z.ZodNullable<z.ZodObject<{
393
301
  completed: z.ZodBoolean;
394
302
  unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
395
303
  }, "strip", z.ZodTypeAny, {
@@ -398,9 +306,9 @@ export declare const filterSchema: z.ZodObject<{
398
306
  }, {
399
307
  completed: boolean;
400
308
  unitOfTime: UnitOfTime;
401
- }>;
309
+ }>>;
402
310
  }, "strip", z.ZodTypeAny, {
403
- values: (string | null)[];
311
+ values: (string | number | boolean | null)[];
404
312
  target: {
405
313
  type: DimensionType | MetricType;
406
314
  fieldId: string;
@@ -409,10 +317,10 @@ export declare const filterSchema: z.ZodObject<{
409
317
  settings: {
410
318
  completed: boolean;
411
319
  unitOfTime: UnitOfTime;
412
- };
413
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
320
+ } | null;
321
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
414
322
  }, {
415
- values: (string | null)[];
323
+ values: (string | number | boolean | null)[];
416
324
  target: {
417
325
  type: DimensionType | MetricType;
418
326
  fieldId: string;
@@ -421,44 +329,31 @@ export declare const filterSchema: z.ZodObject<{
421
329
  settings: {
422
330
  completed: boolean;
423
331
  unitOfTime: UnitOfTime;
424
- };
425
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
426
- }>]>, "many">;
427
- }, "strip", z.ZodTypeAny, {
428
- id: string;
429
- and: ({
430
- values: (string | number | boolean | null)[];
431
- target: {
432
- type: DimensionType | MetricType;
433
- fieldId: string;
434
- };
332
+ } | null;
333
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
334
+ }>, {
435
335
  id: string;
436
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
437
- } | {
438
- values: (string | null)[];
439
336
  target: {
440
337
  type: DimensionType | MetricType;
441
338
  fieldId: string;
442
339
  };
443
- id: string;
340
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
341
+ values: (string | number | boolean | null)[];
444
342
  settings: {
445
343
  completed: boolean;
446
344
  unitOfTime: UnitOfTime;
447
345
  };
448
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
449
- })[];
450
- }, {
451
- id: string;
452
- and: ({
453
- values: (string | number | boolean | null)[];
346
+ } | {
347
+ id: string;
454
348
  target: {
455
349
  type: DimensionType | MetricType;
456
350
  fieldId: string;
457
351
  };
458
- id: string;
459
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
460
- } | {
461
- values: (string | null)[];
352
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
353
+ values: (string | number | boolean | null)[];
354
+ settings?: undefined;
355
+ }, {
356
+ values: (string | number | boolean | null)[];
462
357
  target: {
463
358
  type: DimensionType | MetricType;
464
359
  fieldId: string;
@@ -467,80 +362,39 @@ export declare const filterSchema: z.ZodObject<{
467
362
  settings: {
468
363
  completed: boolean;
469
364
  unitOfTime: UnitOfTime;
470
- };
471
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
472
- })[];
473
- }>, z.ZodObject<{
474
- id: z.ZodString;
475
- or: z.ZodArray<z.ZodUnion<[z.ZodObject<{
476
- id: z.ZodString;
477
- target: z.ZodObject<{
478
- fieldId: z.ZodString;
479
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
480
- }, "strip", z.ZodTypeAny, {
481
- type: DimensionType | MetricType;
482
- fieldId: string;
483
- }, {
484
- type: DimensionType | MetricType;
485
- fieldId: string;
486
- }>;
487
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
488
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
489
- }, "strip", z.ZodTypeAny, {
490
- values: (string | number | boolean | null)[];
491
- target: {
492
- type: DimensionType | MetricType;
493
- fieldId: string;
494
- };
365
+ } | null;
366
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
367
+ }>, "many">;
368
+ }, "strip", z.ZodTypeAny, {
369
+ type: "and" | "or";
370
+ id: string;
371
+ rule: ({
495
372
  id: string;
496
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
497
- }, {
498
- values: (string | number | boolean | null)[];
499
373
  target: {
500
374
  type: DimensionType | MetricType;
501
375
  fieldId: string;
502
376
  };
503
- id: string;
504
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
505
- }>, z.ZodObject<{
506
- id: z.ZodString;
507
- target: z.ZodObject<{
508
- fieldId: z.ZodString;
509
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
510
- }, "strip", z.ZodTypeAny, {
511
- type: DimensionType | MetricType;
512
- fieldId: string;
513
- }, {
514
- type: DimensionType | MetricType;
515
- fieldId: string;
516
- }>;
517
- } & {
518
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
519
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
520
- settings: z.ZodObject<{
521
- completed: z.ZodBoolean;
522
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
523
- }, "strip", z.ZodTypeAny, {
524
- completed: boolean;
525
- unitOfTime: UnitOfTime;
526
- }, {
377
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
378
+ values: (string | number | boolean | null)[];
379
+ settings: {
527
380
  completed: boolean;
528
381
  unitOfTime: UnitOfTime;
529
- }>;
530
- }, "strip", z.ZodTypeAny, {
531
- values: (string | null)[];
382
+ };
383
+ } | {
384
+ id: string;
532
385
  target: {
533
386
  type: DimensionType | MetricType;
534
387
  fieldId: string;
535
388
  };
536
- id: string;
537
- settings: {
538
- completed: boolean;
539
- unitOfTime: UnitOfTime;
540
- };
541
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
542
- }, {
543
- values: (string | null)[];
389
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
390
+ values: (string | number | boolean | null)[];
391
+ settings?: undefined;
392
+ })[];
393
+ }, {
394
+ type: "and" | "or";
395
+ id: string;
396
+ rule: {
397
+ values: (string | number | boolean | null)[];
544
398
  target: {
545
399
  type: DimensionType | MetricType;
546
400
  fieldId: string;
@@ -549,89 +403,80 @@ export declare const filterSchema: z.ZodObject<{
549
403
  settings: {
550
404
  completed: boolean;
551
405
  unitOfTime: UnitOfTime;
552
- };
553
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
554
- }>]>, "many">;
555
- }, "strip", z.ZodTypeAny, {
406
+ } | null;
407
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
408
+ }[];
409
+ }>, {
556
410
  id: string;
557
- or: ({
558
- values: (string | number | boolean | null)[];
559
- target: {
560
- type: DimensionType | MetricType;
561
- fieldId: string;
562
- };
411
+ and: ({
563
412
  id: string;
564
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
565
- } | {
566
- values: (string | null)[];
567
413
  target: {
568
414
  type: DimensionType | MetricType;
569
415
  fieldId: string;
570
416
  };
571
- id: string;
417
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
418
+ values: (string | number | boolean | null)[];
572
419
  settings: {
573
420
  completed: boolean;
574
421
  unitOfTime: UnitOfTime;
575
422
  };
576
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
577
- })[];
578
- }, {
579
- id: string;
580
- or: ({
581
- values: (string | number | boolean | null)[];
423
+ } | {
424
+ id: string;
582
425
  target: {
583
426
  type: DimensionType | MetricType;
584
427
  fieldId: string;
585
428
  };
429
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
430
+ values: (string | number | boolean | null)[];
431
+ settings?: undefined;
432
+ })[];
433
+ or?: undefined;
434
+ } | {
435
+ id: string;
436
+ or: ({
586
437
  id: string;
587
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
588
- } | {
589
- values: (string | null)[];
590
438
  target: {
591
439
  type: DimensionType | MetricType;
592
440
  fieldId: string;
593
441
  };
594
- id: string;
442
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
443
+ values: (string | number | boolean | null)[];
595
444
  settings: {
596
445
  completed: boolean;
597
446
  unitOfTime: UnitOfTime;
598
447
  };
599
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
600
- })[];
601
- }>]>>;
602
- metrics: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
603
- id: z.ZodString;
604
- and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
605
- id: z.ZodString;
606
- target: z.ZodObject<{
607
- fieldId: z.ZodString;
608
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
609
- }, "strip", z.ZodTypeAny, {
610
- type: DimensionType | MetricType;
611
- fieldId: string;
612
- }, {
613
- type: DimensionType | MetricType;
614
- fieldId: string;
615
- }>;
616
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
617
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
618
- }, "strip", z.ZodTypeAny, {
619
- values: (string | number | boolean | null)[];
448
+ } | {
449
+ id: string;
620
450
  target: {
621
451
  type: DimensionType | MetricType;
622
452
  fieldId: string;
623
453
  };
624
- id: string;
625
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
626
- }, {
454
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
455
+ values: (string | number | boolean | null)[];
456
+ settings?: undefined;
457
+ })[];
458
+ and?: undefined;
459
+ }, {
460
+ type: "and" | "or";
461
+ id: string;
462
+ rule: {
627
463
  values: (string | number | boolean | null)[];
628
464
  target: {
629
465
  type: DimensionType | MetricType;
630
466
  fieldId: string;
631
467
  };
632
468
  id: string;
633
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
634
- }>, z.ZodObject<{
469
+ settings: {
470
+ completed: boolean;
471
+ unitOfTime: UnitOfTime;
472
+ } | null;
473
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
474
+ }[];
475
+ }>>;
476
+ metrics: z.ZodNullable<z.ZodEffects<z.ZodObject<{
477
+ id: z.ZodString;
478
+ type: z.ZodEnum<["and", "or"]>;
479
+ rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
635
480
  id: z.ZodString;
636
481
  target: z.ZodObject<{
637
482
  fieldId: z.ZodString;
@@ -643,10 +488,9 @@ export declare const filterSchema: z.ZodObject<{
643
488
  type: DimensionType | MetricType;
644
489
  fieldId: string;
645
490
  }>;
646
- } & {
647
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
648
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
649
- settings: z.ZodObject<{
491
+ operator: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>, z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>]>;
492
+ values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
493
+ settings: z.ZodNullable<z.ZodObject<{
650
494
  completed: z.ZodBoolean;
651
495
  unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
652
496
  }, "strip", z.ZodTypeAny, {
@@ -655,9 +499,9 @@ export declare const filterSchema: z.ZodObject<{
655
499
  }, {
656
500
  completed: boolean;
657
501
  unitOfTime: UnitOfTime;
658
- }>;
502
+ }>>;
659
503
  }, "strip", z.ZodTypeAny, {
660
- values: (string | null)[];
504
+ values: (string | number | boolean | null)[];
661
505
  target: {
662
506
  type: DimensionType | MetricType;
663
507
  fieldId: string;
@@ -666,10 +510,10 @@ export declare const filterSchema: z.ZodObject<{
666
510
  settings: {
667
511
  completed: boolean;
668
512
  unitOfTime: UnitOfTime;
669
- };
670
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
513
+ } | null;
514
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
671
515
  }, {
672
- values: (string | null)[];
516
+ values: (string | number | boolean | null)[];
673
517
  target: {
674
518
  type: DimensionType | MetricType;
675
519
  fieldId: string;
@@ -678,44 +522,31 @@ export declare const filterSchema: z.ZodObject<{
678
522
  settings: {
679
523
  completed: boolean;
680
524
  unitOfTime: UnitOfTime;
681
- };
682
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
683
- }>]>, "many">;
684
- }, "strip", z.ZodTypeAny, {
685
- id: string;
686
- and: ({
687
- values: (string | number | boolean | null)[];
688
- target: {
689
- type: DimensionType | MetricType;
690
- fieldId: string;
691
- };
525
+ } | null;
526
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
527
+ }>, {
692
528
  id: string;
693
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
694
- } | {
695
- values: (string | null)[];
696
529
  target: {
697
530
  type: DimensionType | MetricType;
698
531
  fieldId: string;
699
532
  };
700
- id: string;
533
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
534
+ values: (string | number | boolean | null)[];
701
535
  settings: {
702
536
  completed: boolean;
703
537
  unitOfTime: UnitOfTime;
704
538
  };
705
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
706
- })[];
707
- }, {
708
- id: string;
709
- and: ({
710
- values: (string | number | boolean | null)[];
539
+ } | {
540
+ id: string;
711
541
  target: {
712
542
  type: DimensionType | MetricType;
713
543
  fieldId: string;
714
544
  };
715
- id: string;
716
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
717
- } | {
718
- values: (string | null)[];
545
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
546
+ values: (string | number | boolean | null)[];
547
+ settings?: undefined;
548
+ }, {
549
+ values: (string | number | boolean | null)[];
719
550
  target: {
720
551
  type: DimensionType | MetricType;
721
552
  fieldId: string;
@@ -724,68 +555,39 @@ export declare const filterSchema: z.ZodObject<{
724
555
  settings: {
725
556
  completed: boolean;
726
557
  unitOfTime: UnitOfTime;
727
- };
728
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
729
- })[];
730
- }>, z.ZodObject<{
731
- id: z.ZodString;
732
- or: z.ZodArray<z.ZodUnion<[z.ZodObject<{
733
- id: z.ZodString;
734
- target: z.ZodObject<{
735
- fieldId: z.ZodString;
736
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
737
- }, "strip", z.ZodTypeAny, {
738
- type: DimensionType | MetricType;
739
- fieldId: string;
740
- }, {
741
- type: DimensionType | MetricType;
742
- fieldId: string;
743
- }>;
744
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
745
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
746
- }, "strip", z.ZodTypeAny, {
747
- values: (string | number | boolean | null)[];
558
+ } | null;
559
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
560
+ }>, "many">;
561
+ }, "strip", z.ZodTypeAny, {
562
+ type: "and" | "or";
563
+ id: string;
564
+ rule: ({
565
+ id: string;
748
566
  target: {
749
567
  type: DimensionType | MetricType;
750
568
  fieldId: string;
751
569
  };
752
- id: string;
753
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
754
- }, {
570
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
755
571
  values: (string | number | boolean | null)[];
756
- target: {
757
- type: DimensionType | MetricType;
758
- fieldId: string;
572
+ settings: {
573
+ completed: boolean;
574
+ unitOfTime: UnitOfTime;
759
575
  };
576
+ } | {
760
577
  id: string;
761
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
762
- }>, z.ZodObject<{
763
- id: z.ZodString;
764
- target: z.ZodObject<{
765
- fieldId: z.ZodString;
766
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
767
- }, "strip", z.ZodTypeAny, {
768
- type: DimensionType | MetricType;
769
- fieldId: string;
770
- }, {
578
+ target: {
771
579
  type: DimensionType | MetricType;
772
580
  fieldId: string;
773
- }>;
774
- } & {
775
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
776
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
777
- settings: z.ZodObject<{
778
- completed: z.ZodBoolean;
779
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
780
- }, "strip", z.ZodTypeAny, {
781
- completed: boolean;
782
- unitOfTime: UnitOfTime;
783
- }, {
784
- completed: boolean;
785
- unitOfTime: UnitOfTime;
786
- }>;
787
- }, "strip", z.ZodTypeAny, {
788
- values: (string | null)[];
581
+ };
582
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
583
+ values: (string | number | boolean | null)[];
584
+ settings?: undefined;
585
+ })[];
586
+ }, {
587
+ type: "and" | "or";
588
+ id: string;
589
+ rule: {
590
+ values: (string | number | boolean | null)[];
789
591
  target: {
790
592
  type: DimensionType | MetricType;
791
593
  fieldId: string;
@@ -794,56 +596,64 @@ export declare const filterSchema: z.ZodObject<{
794
596
  settings: {
795
597
  completed: boolean;
796
598
  unitOfTime: UnitOfTime;
797
- };
798
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
799
- }, {
800
- values: (string | null)[];
599
+ } | null;
600
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
601
+ }[];
602
+ }>, {
603
+ id: string;
604
+ and: ({
605
+ id: string;
801
606
  target: {
802
607
  type: DimensionType | MetricType;
803
608
  fieldId: string;
804
609
  };
805
- id: string;
610
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
611
+ values: (string | number | boolean | null)[];
806
612
  settings: {
807
613
  completed: boolean;
808
614
  unitOfTime: UnitOfTime;
809
615
  };
810
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
811
- }>]>, "many">;
812
- }, "strip", z.ZodTypeAny, {
813
- id: string;
814
- or: ({
815
- values: (string | number | boolean | null)[];
616
+ } | {
617
+ id: string;
816
618
  target: {
817
619
  type: DimensionType | MetricType;
818
620
  fieldId: string;
819
621
  };
622
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
623
+ values: (string | number | boolean | null)[];
624
+ settings?: undefined;
625
+ })[];
626
+ or?: undefined;
627
+ } | {
628
+ id: string;
629
+ or: ({
820
630
  id: string;
821
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
822
- } | {
823
- values: (string | null)[];
824
631
  target: {
825
632
  type: DimensionType | MetricType;
826
633
  fieldId: string;
827
634
  };
828
- id: string;
635
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
636
+ values: (string | number | boolean | null)[];
829
637
  settings: {
830
638
  completed: boolean;
831
639
  unitOfTime: UnitOfTime;
832
640
  };
833
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
834
- })[];
835
- }, {
836
- id: string;
837
- or: ({
838
- values: (string | number | boolean | null)[];
641
+ } | {
642
+ id: string;
839
643
  target: {
840
644
  type: DimensionType | MetricType;
841
645
  fieldId: string;
842
646
  };
843
- id: string;
844
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
845
- } | {
846
- values: (string | null)[];
647
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
648
+ values: (string | number | boolean | null)[];
649
+ settings?: undefined;
650
+ })[];
651
+ and?: undefined;
652
+ }, {
653
+ type: "and" | "or";
654
+ id: string;
655
+ rule: {
656
+ values: (string | number | boolean | null)[];
847
657
  target: {
848
658
  type: DimensionType | MetricType;
849
659
  fieldId: string;
@@ -852,207 +662,156 @@ export declare const filterSchema: z.ZodObject<{
852
662
  settings: {
853
663
  completed: boolean;
854
664
  unitOfTime: UnitOfTime;
855
- };
856
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
857
- })[];
858
- }>]>>;
665
+ } | null;
666
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
667
+ }[];
668
+ }>>;
859
669
  }, "strip", z.ZodTypeAny, {
860
670
  dimensions: {
861
671
  id: string;
862
672
  and: ({
863
- values: (string | number | boolean | null)[];
864
- target: {
865
- type: DimensionType | MetricType;
866
- fieldId: string;
867
- };
868
673
  id: string;
869
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
870
- } | {
871
- values: (string | null)[];
872
674
  target: {
873
675
  type: DimensionType | MetricType;
874
676
  fieldId: string;
875
677
  };
876
- id: string;
678
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
679
+ values: (string | number | boolean | null)[];
877
680
  settings: {
878
681
  completed: boolean;
879
682
  unitOfTime: UnitOfTime;
880
683
  };
881
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
882
- })[];
883
- } | {
884
- id: string;
885
- or: ({
886
- values: (string | number | boolean | null)[];
684
+ } | {
685
+ id: string;
887
686
  target: {
888
687
  type: DimensionType | MetricType;
889
688
  fieldId: string;
890
689
  };
690
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
691
+ values: (string | number | boolean | null)[];
692
+ settings?: undefined;
693
+ })[];
694
+ or?: undefined;
695
+ } | {
696
+ id: string;
697
+ or: ({
891
698
  id: string;
892
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
893
- } | {
894
- values: (string | null)[];
895
699
  target: {
896
700
  type: DimensionType | MetricType;
897
701
  fieldId: string;
898
702
  };
899
- id: string;
703
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
704
+ values: (string | number | boolean | null)[];
900
705
  settings: {
901
706
  completed: boolean;
902
707
  unitOfTime: UnitOfTime;
903
708
  };
904
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
709
+ } | {
710
+ id: string;
711
+ target: {
712
+ type: DimensionType | MetricType;
713
+ fieldId: string;
714
+ };
715
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
716
+ values: (string | number | boolean | null)[];
717
+ settings?: undefined;
905
718
  })[];
719
+ and?: undefined;
906
720
  } | null;
907
721
  metrics: {
908
722
  id: string;
909
723
  and: ({
910
- values: (string | number | boolean | null)[];
911
- target: {
912
- type: DimensionType | MetricType;
913
- fieldId: string;
914
- };
915
724
  id: string;
916
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
917
- } | {
918
- values: (string | null)[];
919
725
  target: {
920
726
  type: DimensionType | MetricType;
921
727
  fieldId: string;
922
728
  };
923
- id: string;
729
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
730
+ values: (string | number | boolean | null)[];
924
731
  settings: {
925
732
  completed: boolean;
926
733
  unitOfTime: UnitOfTime;
927
734
  };
928
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
929
- })[];
930
- } | {
931
- id: string;
932
- or: ({
933
- values: (string | number | boolean | null)[];
934
- target: {
935
- type: DimensionType | MetricType;
936
- fieldId: string;
937
- };
938
- id: string;
939
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
940
735
  } | {
941
- values: (string | null)[];
736
+ id: string;
942
737
  target: {
943
738
  type: DimensionType | MetricType;
944
739
  fieldId: string;
945
740
  };
946
- id: string;
947
- settings: {
948
- completed: boolean;
949
- unitOfTime: UnitOfTime;
950
- };
951
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
741
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
742
+ values: (string | number | boolean | null)[];
743
+ settings?: undefined;
952
744
  })[];
953
- } | null;
954
- }, {
955
- dimensions: {
745
+ or?: undefined;
746
+ } | {
956
747
  id: string;
957
- and: ({
958
- values: (string | number | boolean | null)[];
959
- target: {
960
- type: DimensionType | MetricType;
961
- fieldId: string;
962
- };
748
+ or: ({
963
749
  id: string;
964
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
965
- } | {
966
- values: (string | null)[];
967
750
  target: {
968
751
  type: DimensionType | MetricType;
969
752
  fieldId: string;
970
753
  };
971
- id: string;
754
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
755
+ values: (string | number | boolean | null)[];
972
756
  settings: {
973
757
  completed: boolean;
974
758
  unitOfTime: UnitOfTime;
975
759
  };
976
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
977
- })[];
978
- } | {
979
- id: string;
980
- or: ({
981
- values: (string | number | boolean | null)[];
982
- target: {
983
- type: DimensionType | MetricType;
984
- fieldId: string;
985
- };
986
- id: string;
987
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
988
760
  } | {
989
- values: (string | null)[];
761
+ id: string;
990
762
  target: {
991
763
  type: DimensionType | MetricType;
992
764
  fieldId: string;
993
765
  };
994
- id: string;
995
- settings: {
996
- completed: boolean;
997
- unitOfTime: UnitOfTime;
998
- };
999
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
766
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
767
+ values: (string | number | boolean | null)[];
768
+ settings?: undefined;
1000
769
  })[];
770
+ and?: undefined;
1001
771
  } | null;
1002
- metrics: {
772
+ }, {
773
+ dimensions: {
774
+ type: "and" | "or";
1003
775
  id: string;
1004
- and: ({
776
+ rule: {
1005
777
  values: (string | number | boolean | null)[];
1006
778
  target: {
1007
779
  type: DimensionType | MetricType;
1008
780
  fieldId: string;
1009
781
  };
1010
782
  id: string;
1011
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1012
- } | {
1013
- values: (string | null)[];
1014
- target: {
1015
- type: DimensionType | MetricType;
1016
- fieldId: string;
1017
- };
1018
- id: string;
1019
783
  settings: {
1020
784
  completed: boolean;
1021
785
  unitOfTime: UnitOfTime;
1022
- };
1023
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1024
- })[];
1025
- } | {
786
+ } | null;
787
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
788
+ }[];
789
+ } | null;
790
+ metrics: {
791
+ type: "and" | "or";
1026
792
  id: string;
1027
- or: ({
793
+ rule: {
1028
794
  values: (string | number | boolean | null)[];
1029
795
  target: {
1030
796
  type: DimensionType | MetricType;
1031
797
  fieldId: string;
1032
798
  };
1033
799
  id: string;
1034
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1035
- } | {
1036
- values: (string | null)[];
1037
- target: {
1038
- type: DimensionType | MetricType;
1039
- fieldId: string;
1040
- };
1041
- id: string;
1042
800
  settings: {
1043
801
  completed: boolean;
1044
802
  unitOfTime: UnitOfTime;
1045
- };
1046
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1047
- })[];
803
+ } | null;
804
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
805
+ }[];
1048
806
  } | null;
1049
807
  }>;
1050
808
  export type FilterSchemaType = z.infer<typeof filterSchema>;
1051
809
  export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
1052
810
  exploreName: z.ZodString;
1053
- filterGroup: z.ZodUnion<[z.ZodObject<{
811
+ filterGroup: z.ZodEffects<z.ZodObject<{
1054
812
  id: z.ZodString;
1055
- and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
813
+ type: z.ZodEnum<["and", "or"]>;
814
+ rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
1056
815
  id: z.ZodString;
1057
816
  target: z.ZodObject<{
1058
817
  fieldId: z.ZodString;
@@ -1064,40 +823,9 @@ export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
1064
823
  type: DimensionType | MetricType;
1065
824
  fieldId: string;
1066
825
  }>;
1067
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
826
+ operator: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>, z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>]>;
1068
827
  values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
1069
- }, "strip", z.ZodTypeAny, {
1070
- values: (string | number | boolean | null)[];
1071
- target: {
1072
- type: DimensionType | MetricType;
1073
- fieldId: string;
1074
- };
1075
- id: string;
1076
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1077
- }, {
1078
- values: (string | number | boolean | null)[];
1079
- target: {
1080
- type: DimensionType | MetricType;
1081
- fieldId: string;
1082
- };
1083
- id: string;
1084
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1085
- }>, z.ZodObject<{
1086
- id: z.ZodString;
1087
- target: z.ZodObject<{
1088
- fieldId: z.ZodString;
1089
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
1090
- }, "strip", z.ZodTypeAny, {
1091
- type: DimensionType | MetricType;
1092
- fieldId: string;
1093
- }, {
1094
- type: DimensionType | MetricType;
1095
- fieldId: string;
1096
- }>;
1097
- } & {
1098
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
1099
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
1100
- settings: z.ZodObject<{
828
+ settings: z.ZodNullable<z.ZodObject<{
1101
829
  completed: z.ZodBoolean;
1102
830
  unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
1103
831
  }, "strip", z.ZodTypeAny, {
@@ -1106,9 +834,9 @@ export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
1106
834
  }, {
1107
835
  completed: boolean;
1108
836
  unitOfTime: UnitOfTime;
1109
- }>;
837
+ }>>;
1110
838
  }, "strip", z.ZodTypeAny, {
1111
- values: (string | null)[];
839
+ values: (string | number | boolean | null)[];
1112
840
  target: {
1113
841
  type: DimensionType | MetricType;
1114
842
  fieldId: string;
@@ -1117,10 +845,10 @@ export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
1117
845
  settings: {
1118
846
  completed: boolean;
1119
847
  unitOfTime: UnitOfTime;
1120
- };
1121
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
848
+ } | null;
849
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1122
850
  }, {
1123
- values: (string | null)[];
851
+ values: (string | number | boolean | null)[];
1124
852
  target: {
1125
853
  type: DimensionType | MetricType;
1126
854
  fieldId: string;
@@ -1129,44 +857,31 @@ export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
1129
857
  settings: {
1130
858
  completed: boolean;
1131
859
  unitOfTime: UnitOfTime;
1132
- };
1133
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1134
- }>]>, "many">;
1135
- }, "strip", z.ZodTypeAny, {
1136
- id: string;
1137
- and: ({
1138
- values: (string | number | boolean | null)[];
1139
- target: {
1140
- type: DimensionType | MetricType;
1141
- fieldId: string;
1142
- };
860
+ } | null;
861
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
862
+ }>, {
1143
863
  id: string;
1144
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1145
- } | {
1146
- values: (string | null)[];
1147
864
  target: {
1148
865
  type: DimensionType | MetricType;
1149
866
  fieldId: string;
1150
867
  };
1151
- id: string;
868
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
869
+ values: (string | number | boolean | null)[];
1152
870
  settings: {
1153
871
  completed: boolean;
1154
872
  unitOfTime: UnitOfTime;
1155
873
  };
1156
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1157
- })[];
1158
- }, {
1159
- id: string;
1160
- and: ({
1161
- values: (string | number | boolean | null)[];
874
+ } | {
875
+ id: string;
1162
876
  target: {
1163
877
  type: DimensionType | MetricType;
1164
878
  fieldId: string;
1165
879
  };
1166
- id: string;
1167
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1168
- } | {
1169
- values: (string | null)[];
880
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
881
+ values: (string | number | boolean | null)[];
882
+ settings?: undefined;
883
+ }, {
884
+ values: (string | number | boolean | null)[];
1170
885
  target: {
1171
886
  type: DimensionType | MetricType;
1172
887
  fieldId: string;
@@ -1175,68 +890,39 @@ export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
1175
890
  settings: {
1176
891
  completed: boolean;
1177
892
  unitOfTime: UnitOfTime;
1178
- };
1179
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1180
- })[];
1181
- }>, z.ZodObject<{
1182
- id: z.ZodString;
1183
- or: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1184
- id: z.ZodString;
1185
- target: z.ZodObject<{
1186
- fieldId: z.ZodString;
1187
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
1188
- }, "strip", z.ZodTypeAny, {
1189
- type: DimensionType | MetricType;
1190
- fieldId: string;
1191
- }, {
1192
- type: DimensionType | MetricType;
1193
- fieldId: string;
1194
- }>;
1195
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
1196
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
1197
- }, "strip", z.ZodTypeAny, {
1198
- values: (string | number | boolean | null)[];
893
+ } | null;
894
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
895
+ }>, "many">;
896
+ }, "strip", z.ZodTypeAny, {
897
+ type: "and" | "or";
898
+ id: string;
899
+ rule: ({
900
+ id: string;
1199
901
  target: {
1200
902
  type: DimensionType | MetricType;
1201
903
  fieldId: string;
1202
904
  };
1203
- id: string;
1204
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1205
- }, {
905
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1206
906
  values: (string | number | boolean | null)[];
1207
- target: {
1208
- type: DimensionType | MetricType;
1209
- fieldId: string;
907
+ settings: {
908
+ completed: boolean;
909
+ unitOfTime: UnitOfTime;
1210
910
  };
911
+ } | {
1211
912
  id: string;
1212
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1213
- }>, z.ZodObject<{
1214
- id: z.ZodString;
1215
- target: z.ZodObject<{
1216
- fieldId: z.ZodString;
1217
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
1218
- }, "strip", z.ZodTypeAny, {
1219
- type: DimensionType | MetricType;
1220
- fieldId: string;
1221
- }, {
913
+ target: {
1222
914
  type: DimensionType | MetricType;
1223
915
  fieldId: string;
1224
- }>;
1225
- } & {
1226
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
1227
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
1228
- settings: z.ZodObject<{
1229
- completed: z.ZodBoolean;
1230
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
1231
- }, "strip", z.ZodTypeAny, {
1232
- completed: boolean;
1233
- unitOfTime: UnitOfTime;
1234
- }, {
1235
- completed: boolean;
1236
- unitOfTime: UnitOfTime;
1237
- }>;
1238
- }, "strip", z.ZodTypeAny, {
1239
- values: (string | null)[];
916
+ };
917
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
918
+ values: (string | number | boolean | null)[];
919
+ settings?: undefined;
920
+ })[];
921
+ }, {
922
+ type: "and" | "or";
923
+ id: string;
924
+ rule: {
925
+ values: (string | number | boolean | null)[];
1240
926
  target: {
1241
927
  type: DimensionType | MetricType;
1242
928
  fieldId: string;
@@ -1245,56 +931,64 @@ export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
1245
931
  settings: {
1246
932
  completed: boolean;
1247
933
  unitOfTime: UnitOfTime;
1248
- };
1249
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1250
- }, {
1251
- values: (string | null)[];
934
+ } | null;
935
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
936
+ }[];
937
+ }>, {
938
+ id: string;
939
+ and: ({
940
+ id: string;
1252
941
  target: {
1253
942
  type: DimensionType | MetricType;
1254
943
  fieldId: string;
1255
944
  };
1256
- id: string;
945
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
946
+ values: (string | number | boolean | null)[];
1257
947
  settings: {
1258
948
  completed: boolean;
1259
949
  unitOfTime: UnitOfTime;
1260
950
  };
1261
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1262
- }>]>, "many">;
1263
- }, "strip", z.ZodTypeAny, {
1264
- id: string;
1265
- or: ({
1266
- values: (string | number | boolean | null)[];
951
+ } | {
952
+ id: string;
1267
953
  target: {
1268
954
  type: DimensionType | MetricType;
1269
955
  fieldId: string;
1270
956
  };
957
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
958
+ values: (string | number | boolean | null)[];
959
+ settings?: undefined;
960
+ })[];
961
+ or?: undefined;
962
+ } | {
963
+ id: string;
964
+ or: ({
1271
965
  id: string;
1272
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1273
- } | {
1274
- values: (string | null)[];
1275
966
  target: {
1276
967
  type: DimensionType | MetricType;
1277
968
  fieldId: string;
1278
969
  };
1279
- id: string;
970
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
971
+ values: (string | number | boolean | null)[];
1280
972
  settings: {
1281
973
  completed: boolean;
1282
974
  unitOfTime: UnitOfTime;
1283
975
  };
1284
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1285
- })[];
1286
- }, {
1287
- id: string;
1288
- or: ({
1289
- values: (string | number | boolean | null)[];
976
+ } | {
977
+ id: string;
1290
978
  target: {
1291
979
  type: DimensionType | MetricType;
1292
980
  fieldId: string;
1293
981
  };
1294
- id: string;
1295
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1296
- } | {
1297
- values: (string | null)[];
982
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
983
+ values: (string | number | boolean | null)[];
984
+ settings?: undefined;
985
+ })[];
986
+ and?: undefined;
987
+ }, {
988
+ type: "and" | "or";
989
+ id: string;
990
+ rule: {
991
+ values: (string | number | boolean | null)[];
1298
992
  target: {
1299
993
  type: DimensionType | MetricType;
1300
994
  fieldId: string;
@@ -1303,107 +997,81 @@ export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
1303
997
  settings: {
1304
998
  completed: boolean;
1305
999
  unitOfTime: UnitOfTime;
1306
- };
1307
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1308
- })[];
1309
- }>]>;
1000
+ } | null;
1001
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1002
+ }[];
1003
+ }>;
1310
1004
  }, "strip", z.ZodTypeAny, {
1311
1005
  exploreName: string;
1312
1006
  filterGroup: {
1313
1007
  id: string;
1314
1008
  and: ({
1315
- values: (string | number | boolean | null)[];
1316
- target: {
1317
- type: DimensionType | MetricType;
1318
- fieldId: string;
1319
- };
1320
1009
  id: string;
1321
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1322
- } | {
1323
- values: (string | null)[];
1324
1010
  target: {
1325
1011
  type: DimensionType | MetricType;
1326
1012
  fieldId: string;
1327
1013
  };
1328
- id: string;
1014
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1015
+ values: (string | number | boolean | null)[];
1329
1016
  settings: {
1330
1017
  completed: boolean;
1331
1018
  unitOfTime: UnitOfTime;
1332
1019
  };
1333
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1334
- })[];
1335
- } | {
1336
- id: string;
1337
- or: ({
1338
- values: (string | number | boolean | null)[];
1020
+ } | {
1021
+ id: string;
1339
1022
  target: {
1340
1023
  type: DimensionType | MetricType;
1341
1024
  fieldId: string;
1342
1025
  };
1026
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1027
+ values: (string | number | boolean | null)[];
1028
+ settings?: undefined;
1029
+ })[];
1030
+ or?: undefined;
1031
+ } | {
1032
+ id: string;
1033
+ or: ({
1343
1034
  id: string;
1344
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1345
- } | {
1346
- values: (string | null)[];
1347
1035
  target: {
1348
1036
  type: DimensionType | MetricType;
1349
1037
  fieldId: string;
1350
1038
  };
1351
- id: string;
1039
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1040
+ values: (string | number | boolean | null)[];
1352
1041
  settings: {
1353
1042
  completed: boolean;
1354
1043
  unitOfTime: UnitOfTime;
1355
1044
  };
1356
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1357
- })[];
1358
- };
1359
- }, {
1360
- exploreName: string;
1361
- filterGroup: {
1362
- id: string;
1363
- and: ({
1364
- values: (string | number | boolean | null)[];
1365
- target: {
1366
- type: DimensionType | MetricType;
1367
- fieldId: string;
1368
- };
1369
- id: string;
1370
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1371
1045
  } | {
1372
- values: (string | null)[];
1046
+ id: string;
1373
1047
  target: {
1374
1048
  type: DimensionType | MetricType;
1375
1049
  fieldId: string;
1376
1050
  };
1377
- id: string;
1378
- settings: {
1379
- completed: boolean;
1380
- unitOfTime: UnitOfTime;
1381
- };
1382
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1051
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1052
+ values: (string | number | boolean | null)[];
1053
+ settings?: undefined;
1383
1054
  })[];
1384
- } | {
1055
+ and?: undefined;
1056
+ };
1057
+ }, {
1058
+ exploreName: string;
1059
+ filterGroup: {
1060
+ type: "and" | "or";
1385
1061
  id: string;
1386
- or: ({
1062
+ rule: {
1387
1063
  values: (string | number | boolean | null)[];
1388
1064
  target: {
1389
1065
  type: DimensionType | MetricType;
1390
1066
  fieldId: string;
1391
1067
  };
1392
1068
  id: string;
1393
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1394
- } | {
1395
- values: (string | null)[];
1396
- target: {
1397
- type: DimensionType | MetricType;
1398
- fieldId: string;
1399
- };
1400
- id: string;
1401
1069
  settings: {
1402
1070
  completed: boolean;
1403
1071
  unitOfTime: UnitOfTime;
1404
- };
1405
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1406
- })[];
1072
+ } | null;
1073
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1074
+ }[];
1407
1075
  };
1408
1076
  }>;
1409
1077
  export declare const SortFieldSchema: z.ZodObject<{
@@ -1421,9 +1089,10 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1421
1089
  metrics: z.ZodArray<z.ZodString, "many">;
1422
1090
  dimensions: z.ZodArray<z.ZodString, "many">;
1423
1091
  filters: z.ZodObject<{
1424
- dimensions: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
1092
+ dimensions: z.ZodNullable<z.ZodEffects<z.ZodObject<{
1425
1093
  id: z.ZodString;
1426
- and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1094
+ type: z.ZodEnum<["and", "or"]>;
1095
+ rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
1427
1096
  id: z.ZodString;
1428
1097
  target: z.ZodObject<{
1429
1098
  fieldId: z.ZodString;
@@ -1435,40 +1104,9 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1435
1104
  type: DimensionType | MetricType;
1436
1105
  fieldId: string;
1437
1106
  }>;
1438
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
1107
+ operator: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>, z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>]>;
1439
1108
  values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
1440
- }, "strip", z.ZodTypeAny, {
1441
- values: (string | number | boolean | null)[];
1442
- target: {
1443
- type: DimensionType | MetricType;
1444
- fieldId: string;
1445
- };
1446
- id: string;
1447
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1448
- }, {
1449
- values: (string | number | boolean | null)[];
1450
- target: {
1451
- type: DimensionType | MetricType;
1452
- fieldId: string;
1453
- };
1454
- id: string;
1455
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1456
- }>, z.ZodObject<{
1457
- id: z.ZodString;
1458
- target: z.ZodObject<{
1459
- fieldId: z.ZodString;
1460
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
1461
- }, "strip", z.ZodTypeAny, {
1462
- type: DimensionType | MetricType;
1463
- fieldId: string;
1464
- }, {
1465
- type: DimensionType | MetricType;
1466
- fieldId: string;
1467
- }>;
1468
- } & {
1469
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
1470
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
1471
- settings: z.ZodObject<{
1109
+ settings: z.ZodNullable<z.ZodObject<{
1472
1110
  completed: z.ZodBoolean;
1473
1111
  unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
1474
1112
  }, "strip", z.ZodTypeAny, {
@@ -1477,9 +1115,9 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1477
1115
  }, {
1478
1116
  completed: boolean;
1479
1117
  unitOfTime: UnitOfTime;
1480
- }>;
1118
+ }>>;
1481
1119
  }, "strip", z.ZodTypeAny, {
1482
- values: (string | null)[];
1120
+ values: (string | number | boolean | null)[];
1483
1121
  target: {
1484
1122
  type: DimensionType | MetricType;
1485
1123
  fieldId: string;
@@ -1488,10 +1126,10 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1488
1126
  settings: {
1489
1127
  completed: boolean;
1490
1128
  unitOfTime: UnitOfTime;
1491
- };
1492
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1129
+ } | null;
1130
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1493
1131
  }, {
1494
- values: (string | null)[];
1132
+ values: (string | number | boolean | null)[];
1495
1133
  target: {
1496
1134
  type: DimensionType | MetricType;
1497
1135
  fieldId: string;
@@ -1500,79 +1138,29 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1500
1138
  settings: {
1501
1139
  completed: boolean;
1502
1140
  unitOfTime: UnitOfTime;
1503
- };
1504
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1505
- }>]>, "many">;
1506
- }, "strip", z.ZodTypeAny, {
1507
- id: string;
1508
- and: ({
1509
- values: (string | number | boolean | null)[];
1510
- target: {
1511
- type: DimensionType | MetricType;
1512
- fieldId: string;
1513
- };
1141
+ } | null;
1142
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1143
+ }>, {
1514
1144
  id: string;
1515
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1516
- } | {
1517
- values: (string | null)[];
1518
1145
  target: {
1519
1146
  type: DimensionType | MetricType;
1520
1147
  fieldId: string;
1521
1148
  };
1522
- id: string;
1149
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1150
+ values: (string | number | boolean | null)[];
1523
1151
  settings: {
1524
1152
  completed: boolean;
1525
1153
  unitOfTime: UnitOfTime;
1526
1154
  };
1527
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1528
- })[];
1529
- }, {
1530
- id: string;
1531
- and: ({
1532
- values: (string | number | boolean | null)[];
1533
- target: {
1534
- type: DimensionType | MetricType;
1535
- fieldId: string;
1536
- };
1537
- id: string;
1538
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1539
1155
  } | {
1540
- values: (string | null)[];
1541
- target: {
1542
- type: DimensionType | MetricType;
1543
- fieldId: string;
1544
- };
1545
1156
  id: string;
1546
- settings: {
1547
- completed: boolean;
1548
- unitOfTime: UnitOfTime;
1549
- };
1550
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1551
- })[];
1552
- }>, z.ZodObject<{
1553
- id: z.ZodString;
1554
- or: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1555
- id: z.ZodString;
1556
- target: z.ZodObject<{
1557
- fieldId: z.ZodString;
1558
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
1559
- }, "strip", z.ZodTypeAny, {
1560
- type: DimensionType | MetricType;
1561
- fieldId: string;
1562
- }, {
1563
- type: DimensionType | MetricType;
1564
- fieldId: string;
1565
- }>;
1566
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
1567
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
1568
- }, "strip", z.ZodTypeAny, {
1569
- values: (string | number | boolean | null)[];
1570
1157
  target: {
1571
1158
  type: DimensionType | MetricType;
1572
1159
  fieldId: string;
1573
1160
  };
1574
- id: string;
1575
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1161
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1162
+ values: (string | number | boolean | null)[];
1163
+ settings?: undefined;
1576
1164
  }, {
1577
1165
  values: (string | number | boolean | null)[];
1578
1166
  target: {
@@ -1580,235 +1168,124 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1580
1168
  fieldId: string;
1581
1169
  };
1582
1170
  id: string;
1583
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1584
- }>, z.ZodObject<{
1585
- id: z.ZodString;
1586
- target: z.ZodObject<{
1587
- fieldId: z.ZodString;
1588
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
1589
- }, "strip", z.ZodTypeAny, {
1590
- type: DimensionType | MetricType;
1591
- fieldId: string;
1592
- }, {
1593
- type: DimensionType | MetricType;
1594
- fieldId: string;
1595
- }>;
1596
- } & {
1597
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
1598
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
1599
- settings: z.ZodObject<{
1600
- completed: z.ZodBoolean;
1601
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
1602
- }, "strip", z.ZodTypeAny, {
1603
- completed: boolean;
1604
- unitOfTime: UnitOfTime;
1605
- }, {
1606
- completed: boolean;
1607
- unitOfTime: UnitOfTime;
1608
- }>;
1609
- }, "strip", z.ZodTypeAny, {
1610
- values: (string | null)[];
1611
- target: {
1612
- type: DimensionType | MetricType;
1613
- fieldId: string;
1614
- };
1615
- id: string;
1616
1171
  settings: {
1617
1172
  completed: boolean;
1618
1173
  unitOfTime: UnitOfTime;
1619
- };
1620
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1621
- }, {
1622
- values: (string | null)[];
1174
+ } | null;
1175
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1176
+ }>, "many">;
1177
+ }, "strip", z.ZodTypeAny, {
1178
+ type: "and" | "or";
1179
+ id: string;
1180
+ rule: ({
1181
+ id: string;
1623
1182
  target: {
1624
1183
  type: DimensionType | MetricType;
1625
1184
  fieldId: string;
1626
1185
  };
1627
- id: string;
1186
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1187
+ values: (string | number | boolean | null)[];
1628
1188
  settings: {
1629
1189
  completed: boolean;
1630
1190
  unitOfTime: UnitOfTime;
1631
1191
  };
1632
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1633
- }>]>, "many">;
1634
- }, "strip", z.ZodTypeAny, {
1635
- id: string;
1636
- or: ({
1637
- values: (string | number | boolean | null)[];
1638
- target: {
1639
- type: DimensionType | MetricType;
1640
- fieldId: string;
1641
- };
1642
- id: string;
1643
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1644
1192
  } | {
1645
- values: (string | null)[];
1193
+ id: string;
1646
1194
  target: {
1647
1195
  type: DimensionType | MetricType;
1648
1196
  fieldId: string;
1649
1197
  };
1650
- id: string;
1651
- settings: {
1652
- completed: boolean;
1653
- unitOfTime: UnitOfTime;
1654
- };
1655
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1198
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1199
+ values: (string | number | boolean | null)[];
1200
+ settings?: undefined;
1656
1201
  })[];
1657
1202
  }, {
1203
+ type: "and" | "or";
1658
1204
  id: string;
1659
- or: ({
1205
+ rule: {
1660
1206
  values: (string | number | boolean | null)[];
1661
1207
  target: {
1662
1208
  type: DimensionType | MetricType;
1663
1209
  fieldId: string;
1664
1210
  };
1665
1211
  id: string;
1666
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1667
- } | {
1668
- values: (string | null)[];
1669
- target: {
1670
- type: DimensionType | MetricType;
1671
- fieldId: string;
1672
- };
1673
- id: string;
1674
1212
  settings: {
1675
1213
  completed: boolean;
1676
1214
  unitOfTime: UnitOfTime;
1677
- };
1678
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1679
- })[];
1680
- }>]>>;
1681
- metrics: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
1682
- id: z.ZodString;
1683
- and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1684
- id: z.ZodString;
1685
- target: z.ZodObject<{
1686
- fieldId: z.ZodString;
1687
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
1688
- }, "strip", z.ZodTypeAny, {
1689
- type: DimensionType | MetricType;
1690
- fieldId: string;
1691
- }, {
1692
- type: DimensionType | MetricType;
1693
- fieldId: string;
1694
- }>;
1695
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
1696
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
1697
- }, "strip", z.ZodTypeAny, {
1698
- values: (string | number | boolean | null)[];
1699
- target: {
1700
- type: DimensionType | MetricType;
1701
- fieldId: string;
1702
- };
1215
+ } | null;
1216
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1217
+ }[];
1218
+ }>, {
1219
+ id: string;
1220
+ and: ({
1703
1221
  id: string;
1704
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1705
- }, {
1706
- values: (string | number | boolean | null)[];
1707
1222
  target: {
1708
1223
  type: DimensionType | MetricType;
1709
1224
  fieldId: string;
1710
1225
  };
1711
- id: string;
1712
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1713
- }>, z.ZodObject<{
1714
- id: z.ZodString;
1715
- target: z.ZodObject<{
1716
- fieldId: z.ZodString;
1717
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
1718
- }, "strip", z.ZodTypeAny, {
1719
- type: DimensionType | MetricType;
1720
- fieldId: string;
1721
- }, {
1722
- type: DimensionType | MetricType;
1723
- fieldId: string;
1724
- }>;
1725
- } & {
1726
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
1727
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
1728
- settings: z.ZodObject<{
1729
- completed: z.ZodBoolean;
1730
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
1731
- }, "strip", z.ZodTypeAny, {
1732
- completed: boolean;
1733
- unitOfTime: UnitOfTime;
1734
- }, {
1226
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1227
+ values: (string | number | boolean | null)[];
1228
+ settings: {
1735
1229
  completed: boolean;
1736
1230
  unitOfTime: UnitOfTime;
1737
- }>;
1738
- }, "strip", z.ZodTypeAny, {
1739
- values: (string | null)[];
1231
+ };
1232
+ } | {
1233
+ id: string;
1740
1234
  target: {
1741
1235
  type: DimensionType | MetricType;
1742
1236
  fieldId: string;
1743
1237
  };
1238
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1239
+ values: (string | number | boolean | null)[];
1240
+ settings?: undefined;
1241
+ })[];
1242
+ or?: undefined;
1243
+ } | {
1244
+ id: string;
1245
+ or: ({
1744
1246
  id: string;
1745
- settings: {
1746
- completed: boolean;
1747
- unitOfTime: UnitOfTime;
1748
- };
1749
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1750
- }, {
1751
- values: (string | null)[];
1752
1247
  target: {
1753
1248
  type: DimensionType | MetricType;
1754
1249
  fieldId: string;
1755
1250
  };
1756
- id: string;
1251
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1252
+ values: (string | number | boolean | null)[];
1757
1253
  settings: {
1758
1254
  completed: boolean;
1759
1255
  unitOfTime: UnitOfTime;
1760
1256
  };
1761
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1762
- }>]>, "many">;
1763
- }, "strip", z.ZodTypeAny, {
1764
- id: string;
1765
- and: ({
1766
- values: (string | number | boolean | null)[];
1767
- target: {
1768
- type: DimensionType | MetricType;
1769
- fieldId: string;
1770
- };
1771
- id: string;
1772
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1773
1257
  } | {
1774
- values: (string | null)[];
1258
+ id: string;
1775
1259
  target: {
1776
1260
  type: DimensionType | MetricType;
1777
1261
  fieldId: string;
1778
1262
  };
1779
- id: string;
1780
- settings: {
1781
- completed: boolean;
1782
- unitOfTime: UnitOfTime;
1783
- };
1784
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1263
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1264
+ values: (string | number | boolean | null)[];
1265
+ settings?: undefined;
1785
1266
  })[];
1267
+ and?: undefined;
1786
1268
  }, {
1269
+ type: "and" | "or";
1787
1270
  id: string;
1788
- and: ({
1271
+ rule: {
1789
1272
  values: (string | number | boolean | null)[];
1790
1273
  target: {
1791
1274
  type: DimensionType | MetricType;
1792
1275
  fieldId: string;
1793
1276
  };
1794
1277
  id: string;
1795
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1796
- } | {
1797
- values: (string | null)[];
1798
- target: {
1799
- type: DimensionType | MetricType;
1800
- fieldId: string;
1801
- };
1802
- id: string;
1803
1278
  settings: {
1804
1279
  completed: boolean;
1805
1280
  unitOfTime: UnitOfTime;
1806
- };
1807
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1808
- })[];
1809
- }>, z.ZodObject<{
1281
+ } | null;
1282
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1283
+ }[];
1284
+ }>>;
1285
+ metrics: z.ZodNullable<z.ZodEffects<z.ZodObject<{
1810
1286
  id: z.ZodString;
1811
- or: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1287
+ type: z.ZodEnum<["and", "or"]>;
1288
+ rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
1812
1289
  id: z.ZodString;
1813
1290
  target: z.ZodObject<{
1814
1291
  fieldId: z.ZodString;
@@ -1820,40 +1297,9 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1820
1297
  type: DimensionType | MetricType;
1821
1298
  fieldId: string;
1822
1299
  }>;
1823
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>;
1300
+ operator: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>, z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>, z.ZodLiteral<FilterOperator.STARTS_WITH>, z.ZodLiteral<FilterOperator.ENDS_WITH>, z.ZodLiteral<FilterOperator.INCLUDE>, z.ZodLiteral<FilterOperator.NOT_INCLUDE>, z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.IN_BETWEEN>]>, z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>]>;
1824
1301
  values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
1825
- }, "strip", z.ZodTypeAny, {
1826
- values: (string | number | boolean | null)[];
1827
- target: {
1828
- type: DimensionType | MetricType;
1829
- fieldId: string;
1830
- };
1831
- id: string;
1832
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1833
- }, {
1834
- values: (string | number | boolean | null)[];
1835
- target: {
1836
- type: DimensionType | MetricType;
1837
- fieldId: string;
1838
- };
1839
- id: string;
1840
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1841
- }>, z.ZodObject<{
1842
- id: z.ZodString;
1843
- target: z.ZodObject<{
1844
- fieldId: z.ZodString;
1845
- type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<DimensionType.BOOLEAN>, z.ZodLiteral<DimensionType.DATE>, z.ZodLiteral<DimensionType.NUMBER>, z.ZodLiteral<DimensionType.STRING>, z.ZodLiteral<DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<MetricType.PERCENTILE>, z.ZodLiteral<MetricType.AVERAGE>, z.ZodLiteral<MetricType.COUNT>, z.ZodLiteral<MetricType.COUNT_DISTINCT>, z.ZodLiteral<MetricType.SUM>, z.ZodLiteral<MetricType.MIN>, z.ZodLiteral<MetricType.MAX>, z.ZodLiteral<MetricType.NUMBER>, z.ZodLiteral<MetricType.MEDIAN>, z.ZodLiteral<MetricType.STRING>, z.ZodLiteral<MetricType.DATE>, z.ZodLiteral<MetricType.TIMESTAMP>, z.ZodLiteral<MetricType.BOOLEAN>]>]>;
1846
- }, "strip", z.ZodTypeAny, {
1847
- type: DimensionType | MetricType;
1848
- fieldId: string;
1849
- }, {
1850
- type: DimensionType | MetricType;
1851
- fieldId: string;
1852
- }>;
1853
- } & {
1854
- operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>, z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
1855
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">;
1856
- settings: z.ZodObject<{
1302
+ settings: z.ZodNullable<z.ZodObject<{
1857
1303
  completed: z.ZodBoolean;
1858
1304
  unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
1859
1305
  }, "strip", z.ZodTypeAny, {
@@ -1862,9 +1308,9 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1862
1308
  }, {
1863
1309
  completed: boolean;
1864
1310
  unitOfTime: UnitOfTime;
1865
- }>;
1311
+ }>>;
1866
1312
  }, "strip", z.ZodTypeAny, {
1867
- values: (string | null)[];
1313
+ values: (string | number | boolean | null)[];
1868
1314
  target: {
1869
1315
  type: DimensionType | MetricType;
1870
1316
  fieldId: string;
@@ -1873,10 +1319,10 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1873
1319
  settings: {
1874
1320
  completed: boolean;
1875
1321
  unitOfTime: UnitOfTime;
1876
- };
1877
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1322
+ } | null;
1323
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1878
1324
  }, {
1879
- values: (string | null)[];
1325
+ values: (string | number | boolean | null)[];
1880
1326
  target: {
1881
1327
  type: DimensionType | MetricType;
1882
1328
  fieldId: string;
@@ -1885,69 +1331,72 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1885
1331
  settings: {
1886
1332
  completed: boolean;
1887
1333
  unitOfTime: UnitOfTime;
1888
- };
1889
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1890
- }>]>, "many">;
1891
- }, "strip", z.ZodTypeAny, {
1892
- id: string;
1893
- or: ({
1894
- values: (string | number | boolean | null)[];
1895
- target: {
1896
- type: DimensionType | MetricType;
1897
- fieldId: string;
1898
- };
1334
+ } | null;
1335
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1336
+ }>, {
1899
1337
  id: string;
1900
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1901
- } | {
1902
- values: (string | null)[];
1903
1338
  target: {
1904
1339
  type: DimensionType | MetricType;
1905
1340
  fieldId: string;
1906
1341
  };
1907
- id: string;
1342
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1343
+ values: (string | number | boolean | null)[];
1908
1344
  settings: {
1909
1345
  completed: boolean;
1910
1346
  unitOfTime: UnitOfTime;
1911
1347
  };
1912
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1913
- })[];
1914
- }, {
1915
- id: string;
1916
- or: ({
1348
+ } | {
1349
+ id: string;
1350
+ target: {
1351
+ type: DimensionType | MetricType;
1352
+ fieldId: string;
1353
+ };
1354
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1355
+ values: (string | number | boolean | null)[];
1356
+ settings?: undefined;
1357
+ }, {
1917
1358
  values: (string | number | boolean | null)[];
1918
1359
  target: {
1919
1360
  type: DimensionType | MetricType;
1920
1361
  fieldId: string;
1921
1362
  };
1922
1363
  id: string;
1923
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1924
- } | {
1925
- values: (string | null)[];
1364
+ settings: {
1365
+ completed: boolean;
1366
+ unitOfTime: UnitOfTime;
1367
+ } | null;
1368
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1369
+ }>, "many">;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ type: "and" | "or";
1372
+ id: string;
1373
+ rule: ({
1374
+ id: string;
1926
1375
  target: {
1927
1376
  type: DimensionType | MetricType;
1928
1377
  fieldId: string;
1929
1378
  };
1930
- id: string;
1379
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1380
+ values: (string | number | boolean | null)[];
1931
1381
  settings: {
1932
1382
  completed: boolean;
1933
1383
  unitOfTime: UnitOfTime;
1934
1384
  };
1935
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1936
- })[];
1937
- }>]>>;
1938
- }, "strip", z.ZodTypeAny, {
1939
- dimensions: {
1940
- id: string;
1941
- and: ({
1942
- values: (string | number | boolean | null)[];
1385
+ } | {
1386
+ id: string;
1943
1387
  target: {
1944
1388
  type: DimensionType | MetricType;
1945
1389
  fieldId: string;
1946
1390
  };
1947
- id: string;
1948
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1949
- } | {
1950
- values: (string | null)[];
1391
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1392
+ values: (string | number | boolean | null)[];
1393
+ settings?: undefined;
1394
+ })[];
1395
+ }, {
1396
+ type: "and" | "or";
1397
+ id: string;
1398
+ rule: {
1399
+ values: (string | number | boolean | null)[];
1951
1400
  target: {
1952
1401
  type: DimensionType | MetricType;
1953
1402
  fieldId: string;
@@ -1956,68 +1405,64 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1956
1405
  settings: {
1957
1406
  completed: boolean;
1958
1407
  unitOfTime: UnitOfTime;
1959
- };
1960
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1961
- })[];
1962
- } | {
1408
+ } | null;
1409
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1410
+ }[];
1411
+ }>, {
1963
1412
  id: string;
1964
- or: ({
1965
- values: (string | number | boolean | null)[];
1966
- target: {
1967
- type: DimensionType | MetricType;
1968
- fieldId: string;
1969
- };
1413
+ and: ({
1970
1414
  id: string;
1971
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1972
- } | {
1973
- values: (string | null)[];
1974
1415
  target: {
1975
1416
  type: DimensionType | MetricType;
1976
1417
  fieldId: string;
1977
1418
  };
1978
- id: string;
1419
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1420
+ values: (string | number | boolean | null)[];
1979
1421
  settings: {
1980
1422
  completed: boolean;
1981
1423
  unitOfTime: UnitOfTime;
1982
1424
  };
1983
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1984
- })[];
1985
- } | null;
1986
- metrics: {
1987
- id: string;
1988
- and: ({
1989
- values: (string | number | boolean | null)[];
1425
+ } | {
1426
+ id: string;
1990
1427
  target: {
1991
1428
  type: DimensionType | MetricType;
1992
1429
  fieldId: string;
1993
1430
  };
1431
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1432
+ values: (string | number | boolean | null)[];
1433
+ settings?: undefined;
1434
+ })[];
1435
+ or?: undefined;
1436
+ } | {
1437
+ id: string;
1438
+ or: ({
1994
1439
  id: string;
1995
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1996
- } | {
1997
- values: (string | null)[];
1998
1440
  target: {
1999
1441
  type: DimensionType | MetricType;
2000
1442
  fieldId: string;
2001
1443
  };
2002
- id: string;
1444
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1445
+ values: (string | number | boolean | null)[];
2003
1446
  settings: {
2004
1447
  completed: boolean;
2005
1448
  unitOfTime: UnitOfTime;
2006
1449
  };
2007
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2008
- })[];
2009
- } | {
2010
- id: string;
2011
- or: ({
2012
- values: (string | number | boolean | null)[];
1450
+ } | {
1451
+ id: string;
2013
1452
  target: {
2014
1453
  type: DimensionType | MetricType;
2015
1454
  fieldId: string;
2016
1455
  };
2017
- id: string;
2018
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2019
- } | {
2020
- values: (string | null)[];
1456
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1457
+ values: (string | number | boolean | null)[];
1458
+ settings?: undefined;
1459
+ })[];
1460
+ and?: undefined;
1461
+ }, {
1462
+ type: "and" | "or";
1463
+ id: string;
1464
+ rule: {
1465
+ values: (string | number | boolean | null)[];
2021
1466
  target: {
2022
1467
  type: DimensionType | MetricType;
2023
1468
  fieldId: string;
@@ -2026,93 +1471,136 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2026
1471
  settings: {
2027
1472
  completed: boolean;
2028
1473
  unitOfTime: UnitOfTime;
2029
- };
2030
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2031
- })[];
2032
- } | null;
2033
- }, {
1474
+ } | null;
1475
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1476
+ }[];
1477
+ }>>;
1478
+ }, "strip", z.ZodTypeAny, {
2034
1479
  dimensions: {
2035
1480
  id: string;
2036
1481
  and: ({
2037
- values: (string | number | boolean | null)[];
2038
- target: {
2039
- type: DimensionType | MetricType;
2040
- fieldId: string;
2041
- };
2042
1482
  id: string;
2043
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2044
- } | {
2045
- values: (string | null)[];
2046
1483
  target: {
2047
1484
  type: DimensionType | MetricType;
2048
1485
  fieldId: string;
2049
1486
  };
2050
- id: string;
1487
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1488
+ values: (string | number | boolean | null)[];
2051
1489
  settings: {
2052
1490
  completed: boolean;
2053
1491
  unitOfTime: UnitOfTime;
2054
1492
  };
2055
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2056
- })[];
2057
- } | {
2058
- id: string;
2059
- or: ({
2060
- values: (string | number | boolean | null)[];
1493
+ } | {
1494
+ id: string;
2061
1495
  target: {
2062
1496
  type: DimensionType | MetricType;
2063
1497
  fieldId: string;
2064
1498
  };
1499
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1500
+ values: (string | number | boolean | null)[];
1501
+ settings?: undefined;
1502
+ })[];
1503
+ or?: undefined;
1504
+ } | {
1505
+ id: string;
1506
+ or: ({
2065
1507
  id: string;
2066
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2067
- } | {
2068
- values: (string | null)[];
2069
1508
  target: {
2070
1509
  type: DimensionType | MetricType;
2071
1510
  fieldId: string;
2072
1511
  };
2073
- id: string;
1512
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1513
+ values: (string | number | boolean | null)[];
2074
1514
  settings: {
2075
1515
  completed: boolean;
2076
1516
  unitOfTime: UnitOfTime;
2077
1517
  };
2078
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1518
+ } | {
1519
+ id: string;
1520
+ target: {
1521
+ type: DimensionType | MetricType;
1522
+ fieldId: string;
1523
+ };
1524
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1525
+ values: (string | number | boolean | null)[];
1526
+ settings?: undefined;
2079
1527
  })[];
1528
+ and?: undefined;
2080
1529
  } | null;
2081
1530
  metrics: {
2082
1531
  id: string;
2083
1532
  and: ({
2084
- values: (string | number | boolean | null)[];
1533
+ id: string;
2085
1534
  target: {
2086
1535
  type: DimensionType | MetricType;
2087
1536
  fieldId: string;
2088
1537
  };
2089
- id: string;
2090
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
1538
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1539
+ values: (string | number | boolean | null)[];
1540
+ settings: {
1541
+ completed: boolean;
1542
+ unitOfTime: UnitOfTime;
1543
+ };
2091
1544
  } | {
2092
- values: (string | null)[];
1545
+ id: string;
2093
1546
  target: {
2094
1547
  type: DimensionType | MetricType;
2095
1548
  fieldId: string;
2096
1549
  };
1550
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1551
+ values: (string | number | boolean | null)[];
1552
+ settings?: undefined;
1553
+ })[];
1554
+ or?: undefined;
1555
+ } | {
1556
+ id: string;
1557
+ or: ({
2097
1558
  id: string;
1559
+ target: {
1560
+ type: DimensionType | MetricType;
1561
+ fieldId: string;
1562
+ };
1563
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1564
+ values: (string | number | boolean | null)[];
2098
1565
  settings: {
2099
1566
  completed: boolean;
2100
1567
  unitOfTime: UnitOfTime;
2101
1568
  };
2102
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1569
+ } | {
1570
+ id: string;
1571
+ target: {
1572
+ type: DimensionType | MetricType;
1573
+ fieldId: string;
1574
+ };
1575
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1576
+ values: (string | number | boolean | null)[];
1577
+ settings?: undefined;
2103
1578
  })[];
2104
- } | {
1579
+ and?: undefined;
1580
+ } | null;
1581
+ }, {
1582
+ dimensions: {
1583
+ type: "and" | "or";
2105
1584
  id: string;
2106
- or: ({
1585
+ rule: {
2107
1586
  values: (string | number | boolean | null)[];
2108
1587
  target: {
2109
1588
  type: DimensionType | MetricType;
2110
1589
  fieldId: string;
2111
1590
  };
2112
1591
  id: string;
2113
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2114
- } | {
2115
- values: (string | null)[];
1592
+ settings: {
1593
+ completed: boolean;
1594
+ unitOfTime: UnitOfTime;
1595
+ } | null;
1596
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1597
+ }[];
1598
+ } | null;
1599
+ metrics: {
1600
+ type: "and" | "or";
1601
+ id: string;
1602
+ rule: {
1603
+ values: (string | number | boolean | null)[];
2116
1604
  target: {
2117
1605
  type: DimensionType | MetricType;
2118
1606
  fieldId: string;
@@ -2121,9 +1609,9 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2121
1609
  settings: {
2122
1610
  completed: boolean;
2123
1611
  unitOfTime: UnitOfTime;
2124
- };
2125
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2126
- })[];
1612
+ } | null;
1613
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1614
+ }[];
2127
1615
  } | null;
2128
1616
  }>;
2129
1617
  sorts: z.ZodArray<z.ZodObject<{
@@ -2142,96 +1630,104 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2142
1630
  dimensions: {
2143
1631
  id: string;
2144
1632
  and: ({
2145
- values: (string | number | boolean | null)[];
2146
- target: {
2147
- type: DimensionType | MetricType;
2148
- fieldId: string;
2149
- };
2150
1633
  id: string;
2151
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2152
- } | {
2153
- values: (string | null)[];
2154
1634
  target: {
2155
1635
  type: DimensionType | MetricType;
2156
1636
  fieldId: string;
2157
1637
  };
2158
- id: string;
1638
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1639
+ values: (string | number | boolean | null)[];
2159
1640
  settings: {
2160
1641
  completed: boolean;
2161
1642
  unitOfTime: UnitOfTime;
2162
1643
  };
2163
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2164
- })[];
2165
- } | {
2166
- id: string;
2167
- or: ({
2168
- values: (string | number | boolean | null)[];
1644
+ } | {
1645
+ id: string;
2169
1646
  target: {
2170
1647
  type: DimensionType | MetricType;
2171
1648
  fieldId: string;
2172
1649
  };
1650
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1651
+ values: (string | number | boolean | null)[];
1652
+ settings?: undefined;
1653
+ })[];
1654
+ or?: undefined;
1655
+ } | {
1656
+ id: string;
1657
+ or: ({
2173
1658
  id: string;
2174
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2175
- } | {
2176
- values: (string | null)[];
2177
1659
  target: {
2178
1660
  type: DimensionType | MetricType;
2179
1661
  fieldId: string;
2180
1662
  };
2181
- id: string;
1663
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1664
+ values: (string | number | boolean | null)[];
2182
1665
  settings: {
2183
1666
  completed: boolean;
2184
1667
  unitOfTime: UnitOfTime;
2185
1668
  };
2186
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1669
+ } | {
1670
+ id: string;
1671
+ target: {
1672
+ type: DimensionType | MetricType;
1673
+ fieldId: string;
1674
+ };
1675
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1676
+ values: (string | number | boolean | null)[];
1677
+ settings?: undefined;
2187
1678
  })[];
1679
+ and?: undefined;
2188
1680
  } | null;
2189
1681
  metrics: {
2190
1682
  id: string;
2191
1683
  and: ({
2192
- values: (string | number | boolean | null)[];
2193
- target: {
2194
- type: DimensionType | MetricType;
2195
- fieldId: string;
2196
- };
2197
1684
  id: string;
2198
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2199
- } | {
2200
- values: (string | null)[];
2201
1685
  target: {
2202
1686
  type: DimensionType | MetricType;
2203
1687
  fieldId: string;
2204
1688
  };
2205
- id: string;
1689
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1690
+ values: (string | number | boolean | null)[];
2206
1691
  settings: {
2207
1692
  completed: boolean;
2208
1693
  unitOfTime: UnitOfTime;
2209
1694
  };
2210
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2211
- })[];
2212
- } | {
2213
- id: string;
2214
- or: ({
2215
- values: (string | number | boolean | null)[];
1695
+ } | {
1696
+ id: string;
2216
1697
  target: {
2217
1698
  type: DimensionType | MetricType;
2218
1699
  fieldId: string;
2219
1700
  };
1701
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1702
+ values: (string | number | boolean | null)[];
1703
+ settings?: undefined;
1704
+ })[];
1705
+ or?: undefined;
1706
+ } | {
1707
+ id: string;
1708
+ or: ({
2220
1709
  id: string;
2221
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2222
- } | {
2223
- values: (string | null)[];
2224
1710
  target: {
2225
1711
  type: DimensionType | MetricType;
2226
1712
  fieldId: string;
2227
1713
  };
2228
- id: string;
1714
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1715
+ values: (string | number | boolean | null)[];
2229
1716
  settings: {
2230
1717
  completed: boolean;
2231
1718
  unitOfTime: UnitOfTime;
2232
1719
  };
2233
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1720
+ } | {
1721
+ id: string;
1722
+ target: {
1723
+ type: DimensionType | MetricType;
1724
+ fieldId: string;
1725
+ };
1726
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1727
+ values: (string | number | boolean | null)[];
1728
+ settings?: undefined;
2234
1729
  })[];
1730
+ and?: undefined;
2235
1731
  } | null;
2236
1732
  };
2237
1733
  exploreName: string;
@@ -2245,98 +1741,38 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2245
1741
  }, {
2246
1742
  filters: {
2247
1743
  dimensions: {
1744
+ type: "and" | "or";
2248
1745
  id: string;
2249
- and: ({
2250
- values: (string | number | boolean | null)[];
2251
- target: {
2252
- type: DimensionType | MetricType;
2253
- fieldId: string;
2254
- };
2255
- id: string;
2256
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2257
- } | {
2258
- values: (string | null)[];
2259
- target: {
2260
- type: DimensionType | MetricType;
2261
- fieldId: string;
2262
- };
2263
- id: string;
2264
- settings: {
2265
- completed: boolean;
2266
- unitOfTime: UnitOfTime;
2267
- };
2268
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2269
- })[];
2270
- } | {
2271
- id: string;
2272
- or: ({
1746
+ rule: {
2273
1747
  values: (string | number | boolean | null)[];
2274
1748
  target: {
2275
1749
  type: DimensionType | MetricType;
2276
1750
  fieldId: string;
2277
1751
  };
2278
1752
  id: string;
2279
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2280
- } | {
2281
- values: (string | null)[];
2282
- target: {
2283
- type: DimensionType | MetricType;
2284
- fieldId: string;
2285
- };
2286
- id: string;
2287
1753
  settings: {
2288
1754
  completed: boolean;
2289
1755
  unitOfTime: UnitOfTime;
2290
- };
2291
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2292
- })[];
1756
+ } | null;
1757
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1758
+ }[];
2293
1759
  } | null;
2294
1760
  metrics: {
1761
+ type: "and" | "or";
2295
1762
  id: string;
2296
- and: ({
2297
- values: (string | number | boolean | null)[];
2298
- target: {
2299
- type: DimensionType | MetricType;
2300
- fieldId: string;
2301
- };
2302
- id: string;
2303
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2304
- } | {
2305
- values: (string | null)[];
2306
- target: {
2307
- type: DimensionType | MetricType;
2308
- fieldId: string;
2309
- };
2310
- id: string;
2311
- settings: {
2312
- completed: boolean;
2313
- unitOfTime: UnitOfTime;
2314
- };
2315
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2316
- })[];
2317
- } | {
2318
- id: string;
2319
- or: ({
1763
+ rule: {
2320
1764
  values: (string | number | boolean | null)[];
2321
1765
  target: {
2322
1766
  type: DimensionType | MetricType;
2323
1767
  fieldId: string;
2324
1768
  };
2325
1769
  id: string;
2326
- operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_BETWEEN;
2327
- } | {
2328
- values: (string | null)[];
2329
- target: {
2330
- type: DimensionType | MetricType;
2331
- fieldId: string;
2332
- };
2333
- id: string;
2334
1770
  settings: {
2335
1771
  completed: boolean;
2336
1772
  unitOfTime: UnitOfTime;
2337
- };
2338
- operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2339
- })[];
1773
+ } | null;
1774
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL | FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE | FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL | FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT | FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT | FilterOperator.IN_BETWEEN;
1775
+ }[];
2340
1776
  } | null;
2341
1777
  };
2342
1778
  exploreName: string;