@lightdash/common 0.1737.0 → 0.1739.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.
@@ -1,95 +1,10 @@
1
1
  import { z } from 'zod';
2
2
  import { DimensionType, MetricType } from '../../types/field';
3
- import { FilterOperator, UnitOfTime } from '../../types/filter';
4
- export declare const FieldIdSchema: z.ZodString;
5
- declare const FilterRuleSchema: z.ZodEffects<z.ZodObject<{
6
- id: z.ZodString;
7
- target: z.ZodObject<{
8
- fieldId: z.ZodString;
9
- 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>]>]>;
10
- }, "strip", z.ZodTypeAny, {
11
- type: DimensionType | MetricType;
12
- fieldId: string;
13
- }, {
14
- type: DimensionType | MetricType;
15
- fieldId: string;
16
- }>;
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
- 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
- }>>;
29
- }, "strip", z.ZodTypeAny, {
30
- values: (string | number | boolean | null)[];
31
- target: {
32
- type: DimensionType | MetricType;
33
- fieldId: string;
34
- };
35
- id: string;
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;
41
- }, {
42
- values: (string | number | boolean | null)[];
43
- target: {
44
- type: DimensionType | MetricType;
45
- fieldId: string;
46
- };
47
- id: string;
48
- settings: {
49
- completed: boolean;
50
- unitOfTime: UnitOfTime;
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;
55
- target: {
56
- type: DimensionType | MetricType;
57
- fieldId: string;
58
- };
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)[];
61
- settings: {
62
- completed: boolean;
63
- unitOfTime: UnitOfTime;
64
- };
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;
74
- }, {
75
- values: (string | number | boolean | null)[];
76
- target: {
77
- type: DimensionType | MetricType;
78
- fieldId: string;
79
- };
80
- id: string;
81
- settings: {
82
- completed: boolean;
83
- unitOfTime: UnitOfTime;
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
- }>;
87
- export type FilterRuleSchemaType = z.infer<typeof FilterRuleSchema>;
88
- export declare const FilterGroupSchema: z.ZodEffects<z.ZodObject<{
89
- id: z.ZodString;
3
+ import { FilterOperator, type FilterRule, type Filters, UnitOfTime } from '../../types/filter';
4
+ export declare const filtersSchema: z.ZodEffects<z.ZodObject<{
90
5
  type: z.ZodEnum<["and", "or"]>;
91
- rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
92
- id: z.ZodString;
6
+ dimensions: z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
7
+ type: z.ZodEnum<["or", "and"]>;
93
8
  target: z.ZodObject<{
94
9
  fieldId: z.ZodString;
95
10
  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>]>]>;
@@ -100,719 +15,1194 @@ export declare const FilterGroupSchema: z.ZodEffects<z.ZodObject<{
100
15
  type: DimensionType | MetricType;
101
16
  fieldId: string;
102
17
  }>;
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>]>]>;
104
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
105
- settings: z.ZodNullable<z.ZodObject<{
106
- completed: z.ZodBoolean;
107
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
18
+ rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
19
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
22
+ }, {
23
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
24
+ }>, z.ZodObject<{
25
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
26
+ values: z.ZodArray<z.ZodBoolean, "many">;
27
+ }, "strip", z.ZodTypeAny, {
28
+ values: boolean[];
29
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
30
+ }, {
31
+ values: boolean[];
32
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
33
+ }>]>, z.ZodUnion<[z.ZodObject<{
34
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
37
+ }, {
38
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
39
+ }>, z.ZodObject<{
40
+ operator: z.ZodUnion<[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>]>;
41
+ values: z.ZodArray<z.ZodString, "many">;
42
+ }, "strip", z.ZodTypeAny, {
43
+ values: string[];
44
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
45
+ }, {
46
+ values: string[];
47
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
48
+ }>]>, z.ZodUnion<[z.ZodObject<{
49
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
52
+ }, {
53
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
54
+ }>, z.ZodObject<{
55
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
56
+ values: z.ZodArray<z.ZodNumber, "many">;
57
+ }, "strip", z.ZodTypeAny, {
58
+ values: number[];
59
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
60
+ }, {
61
+ values: number[];
62
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
63
+ }>, z.ZodObject<{
64
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
65
+ values: z.ZodArray<z.ZodNumber, "many">;
66
+ }, "strip", z.ZodTypeAny, {
67
+ values: number[];
68
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
69
+ }, {
70
+ values: number[];
71
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
72
+ }>, z.ZodObject<{
73
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
74
+ values: z.ZodArray<z.ZodNumber, "many">;
75
+ }, "strip", z.ZodTypeAny, {
76
+ values: number[];
77
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
78
+ }, {
79
+ values: number[];
80
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
81
+ }>]>, z.ZodUnion<[z.ZodObject<{
82
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
85
+ }, {
86
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
87
+ }>, z.ZodObject<{
88
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
89
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
90
+ }, "strip", z.ZodTypeAny, {
91
+ values: string[];
92
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
93
+ }, {
94
+ values: string[];
95
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
96
+ }>, z.ZodObject<{
97
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
98
+ values: z.ZodArray<z.ZodNumber, "many">;
99
+ settings: z.ZodObject<{
100
+ completed: z.ZodBoolean;
101
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ completed: boolean;
104
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
105
+ }, {
106
+ completed: boolean;
107
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
108
+ }>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ values: number[];
111
+ settings: {
112
+ completed: boolean;
113
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
114
+ };
115
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
116
+ }, {
117
+ values: number[];
118
+ settings: {
119
+ completed: boolean;
120
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
121
+ };
122
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
123
+ }>, z.ZodObject<{
124
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
125
+ values: z.ZodArray<z.ZodLiteral<1>, "many">;
126
+ settings: z.ZodObject<{
127
+ completed: z.ZodLiteral<false>;
128
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ completed: false;
131
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
132
+ }, {
133
+ completed: false;
134
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
135
+ }>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ values: 1[];
138
+ settings: {
139
+ completed: false;
140
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
141
+ };
142
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
143
+ }, {
144
+ values: 1[];
145
+ settings: {
146
+ completed: false;
147
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
148
+ };
149
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
150
+ }>, z.ZodObject<{
151
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>]>;
152
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
153
+ }, "strip", z.ZodTypeAny, {
154
+ values: string[];
155
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
156
+ }, {
157
+ values: string[];
158
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
159
+ }>, z.ZodObject<{
160
+ operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
161
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
108
162
  }, "strip", z.ZodTypeAny, {
109
- completed: boolean;
110
- unitOfTime: UnitOfTime;
163
+ values: string[];
164
+ operator: FilterOperator.IN_BETWEEN;
111
165
  }, {
112
- completed: boolean;
113
- unitOfTime: UnitOfTime;
114
- }>>;
166
+ values: string[];
167
+ operator: FilterOperator.IN_BETWEEN;
168
+ }>]>]>;
115
169
  }, "strip", z.ZodTypeAny, {
116
- values: (string | number | boolean | null)[];
117
- target: {
118
- type: DimensionType | MetricType;
119
- fieldId: string;
120
- };
121
- id: string;
122
- settings: {
123
- completed: boolean;
124
- unitOfTime: UnitOfTime;
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;
127
- }, {
128
- values: (string | number | boolean | null)[];
129
- target: {
130
- type: DimensionType | MetricType;
131
- fieldId: string;
132
- };
133
- id: string;
134
- settings: {
135
- completed: boolean;
136
- unitOfTime: UnitOfTime;
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
- }>, {
140
- id: string;
170
+ type: "and" | "or";
141
171
  target: {
142
172
  type: DimensionType | MetricType;
143
173
  fieldId: string;
144
174
  };
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)[];
147
- settings: {
148
- completed: boolean;
149
- unitOfTime: UnitOfTime;
150
- };
151
- } | {
152
- id: string;
153
- target: {
154
- type: DimensionType | MetricType;
155
- fieldId: string;
175
+ rule: {
176
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
177
+ } | {
178
+ values: boolean[];
179
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
180
+ } | {
181
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
182
+ } | {
183
+ values: string[];
184
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
185
+ } | {
186
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
187
+ } | {
188
+ values: number[];
189
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
190
+ } | {
191
+ values: number[];
192
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
193
+ } | {
194
+ values: number[];
195
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
196
+ } | {
197
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
198
+ } | {
199
+ values: string[];
200
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
201
+ } | {
202
+ values: number[];
203
+ settings: {
204
+ completed: boolean;
205
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
206
+ };
207
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
208
+ } | {
209
+ values: 1[];
210
+ settings: {
211
+ completed: false;
212
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
213
+ };
214
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
215
+ } | {
216
+ values: string[];
217
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
218
+ } | {
219
+ values: string[];
220
+ operator: FilterOperator.IN_BETWEEN;
156
221
  };
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
222
  }, {
161
- values: (string | number | boolean | null)[];
162
- target: {
163
- type: DimensionType | MetricType;
164
- fieldId: string;
165
- };
166
- id: string;
167
- settings: {
168
- completed: boolean;
169
- unitOfTime: UnitOfTime;
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;
178
- target: {
179
- type: DimensionType | MetricType;
180
- fieldId: string;
181
- };
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;
183
- values: (string | number | boolean | null)[];
184
- settings: {
185
- completed: boolean;
186
- unitOfTime: UnitOfTime;
187
- };
188
- } | {
189
- id: string;
190
- target: {
191
- type: DimensionType | MetricType;
192
- fieldId: string;
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)[];
203
- target: {
204
- type: DimensionType | MetricType;
205
- fieldId: string;
206
- };
207
- id: string;
208
- settings: {
209
- completed: boolean;
210
- unitOfTime: UnitOfTime;
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;
223
+ type: "and" | "or";
218
224
  target: {
219
225
  type: DimensionType | MetricType;
220
226
  fieldId: string;
221
227
  };
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)[];
224
- settings: {
225
- completed: boolean;
226
- unitOfTime: UnitOfTime;
227
- };
228
- } | {
229
- id: string;
230
- target: {
231
- type: DimensionType | MetricType;
232
- fieldId: string;
228
+ rule: {
229
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
230
+ } | {
231
+ values: boolean[];
232
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
233
+ } | {
234
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
235
+ } | {
236
+ values: string[];
237
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
238
+ } | {
239
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
240
+ } | {
241
+ values: number[];
242
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
243
+ } | {
244
+ values: number[];
245
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
246
+ } | {
247
+ values: number[];
248
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
249
+ } | {
250
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
251
+ } | {
252
+ values: string[];
253
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
254
+ } | {
255
+ values: number[];
256
+ settings: {
257
+ completed: boolean;
258
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
259
+ };
260
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
261
+ } | {
262
+ values: 1[];
263
+ settings: {
264
+ completed: false;
265
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
266
+ };
267
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
268
+ } | {
269
+ values: string[];
270
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
271
+ } | {
272
+ values: string[];
273
+ operator: FilterOperator.IN_BETWEEN;
233
274
  };
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: ({
242
- id: string;
275
+ }>, FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>, {
276
+ type: "and" | "or";
243
277
  target: {
244
278
  type: DimensionType | MetricType;
245
279
  fieldId: string;
246
280
  };
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)[];
249
- settings: {
250
- completed: boolean;
251
- unitOfTime: UnitOfTime;
281
+ rule: {
282
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
283
+ } | {
284
+ values: boolean[];
285
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
286
+ } | {
287
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
288
+ } | {
289
+ values: string[];
290
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
291
+ } | {
292
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
293
+ } | {
294
+ values: number[];
295
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
296
+ } | {
297
+ values: number[];
298
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
299
+ } | {
300
+ values: number[];
301
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
302
+ } | {
303
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
304
+ } | {
305
+ values: string[];
306
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
307
+ } | {
308
+ values: number[];
309
+ settings: {
310
+ completed: boolean;
311
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
312
+ };
313
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
314
+ } | {
315
+ values: 1[];
316
+ settings: {
317
+ completed: false;
318
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
319
+ };
320
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
321
+ } | {
322
+ values: string[];
323
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
324
+ } | {
325
+ values: string[];
326
+ operator: FilterOperator.IN_BETWEEN;
252
327
  };
253
- } | {
254
- id: string;
255
- target: {
328
+ }>, "many">>;
329
+ metrics: z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
330
+ type: z.ZodEnum<["or", "and"]>;
331
+ target: z.ZodObject<{
332
+ fieldId: z.ZodString;
333
+ 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>]>]>;
334
+ }, "strip", z.ZodTypeAny, {
256
335
  type: DimensionType | MetricType;
257
336
  fieldId: string;
258
- };
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)[];
269
- target: {
337
+ }, {
270
338
  type: DimensionType | MetricType;
271
339
  fieldId: string;
272
- };
273
- id: string;
274
- settings: {
275
- completed: boolean;
276
- unitOfTime: UnitOfTime;
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
- }>;
281
- export type FilterGroupSchemaType = z.infer<typeof FilterGroupSchema>;
282
- export declare const filterSchema: z.ZodObject<{
283
- dimensions: z.ZodNullable<z.ZodEffects<z.ZodObject<{
284
- id: z.ZodString;
285
- type: z.ZodEnum<["and", "or"]>;
286
- rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
287
- id: z.ZodString;
288
- target: z.ZodObject<{
289
- fieldId: z.ZodString;
290
- 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>]>]>;
291
- }, "strip", z.ZodTypeAny, {
292
- type: DimensionType | MetricType;
293
- fieldId: string;
294
- }, {
295
- type: DimensionType | MetricType;
296
- fieldId: string;
297
- }>;
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>]>]>;
299
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
300
- settings: z.ZodNullable<z.ZodObject<{
340
+ }>;
341
+ rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
342
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
345
+ }, {
346
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
347
+ }>, z.ZodObject<{
348
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
349
+ values: z.ZodArray<z.ZodBoolean, "many">;
350
+ }, "strip", z.ZodTypeAny, {
351
+ values: boolean[];
352
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
353
+ }, {
354
+ values: boolean[];
355
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
356
+ }>]>, z.ZodUnion<[z.ZodObject<{
357
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
360
+ }, {
361
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
362
+ }>, z.ZodObject<{
363
+ operator: z.ZodUnion<[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>]>;
364
+ values: z.ZodArray<z.ZodString, "many">;
365
+ }, "strip", z.ZodTypeAny, {
366
+ values: string[];
367
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
368
+ }, {
369
+ values: string[];
370
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
371
+ }>]>, z.ZodUnion<[z.ZodObject<{
372
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
375
+ }, {
376
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
377
+ }>, z.ZodObject<{
378
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
379
+ values: z.ZodArray<z.ZodNumber, "many">;
380
+ }, "strip", z.ZodTypeAny, {
381
+ values: number[];
382
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
383
+ }, {
384
+ values: number[];
385
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
386
+ }>, z.ZodObject<{
387
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
388
+ values: z.ZodArray<z.ZodNumber, "many">;
389
+ }, "strip", z.ZodTypeAny, {
390
+ values: number[];
391
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
392
+ }, {
393
+ values: number[];
394
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
395
+ }>, z.ZodObject<{
396
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
397
+ values: z.ZodArray<z.ZodNumber, "many">;
398
+ }, "strip", z.ZodTypeAny, {
399
+ values: number[];
400
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
401
+ }, {
402
+ values: number[];
403
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
404
+ }>]>, z.ZodUnion<[z.ZodObject<{
405
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
408
+ }, {
409
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
410
+ }>, z.ZodObject<{
411
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
412
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
413
+ }, "strip", z.ZodTypeAny, {
414
+ values: string[];
415
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
416
+ }, {
417
+ values: string[];
418
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
419
+ }>, z.ZodObject<{
420
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
421
+ values: z.ZodArray<z.ZodNumber, "many">;
422
+ settings: z.ZodObject<{
301
423
  completed: z.ZodBoolean;
302
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
424
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
303
425
  }, "strip", z.ZodTypeAny, {
304
426
  completed: boolean;
305
- unitOfTime: UnitOfTime;
427
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
306
428
  }, {
307
429
  completed: boolean;
308
- unitOfTime: UnitOfTime;
309
- }>>;
430
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
431
+ }>;
310
432
  }, "strip", z.ZodTypeAny, {
311
- values: (string | number | boolean | null)[];
312
- target: {
313
- type: DimensionType | MetricType;
314
- fieldId: string;
315
- };
316
- id: string;
433
+ values: number[];
317
434
  settings: {
318
435
  completed: boolean;
319
- unitOfTime: UnitOfTime;
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;
322
- }, {
323
- values: (string | number | boolean | null)[];
324
- target: {
325
- type: DimensionType | MetricType;
326
- fieldId: string;
436
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
327
437
  };
328
- id: string;
438
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
439
+ }, {
440
+ values: number[];
329
441
  settings: {
330
442
  completed: boolean;
331
- unitOfTime: UnitOfTime;
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
- }>, {
335
- id: string;
336
- target: {
337
- type: DimensionType | MetricType;
338
- fieldId: string;
339
- };
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)[];
443
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
444
+ };
445
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
446
+ }>, z.ZodObject<{
447
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
448
+ values: z.ZodArray<z.ZodLiteral<1>, "many">;
449
+ settings: z.ZodObject<{
450
+ completed: z.ZodLiteral<false>;
451
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
452
+ }, "strip", z.ZodTypeAny, {
453
+ completed: false;
454
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
455
+ }, {
456
+ completed: false;
457
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
458
+ }>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ values: 1[];
342
461
  settings: {
343
- completed: boolean;
344
- unitOfTime: UnitOfTime;
345
- };
346
- } | {
347
- id: string;
348
- target: {
349
- type: DimensionType | MetricType;
350
- fieldId: string;
462
+ completed: false;
463
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
351
464
  };
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;
465
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
355
466
  }, {
356
- values: (string | number | boolean | null)[];
357
- target: {
358
- type: DimensionType | MetricType;
359
- fieldId: string;
360
- };
361
- id: string;
467
+ values: 1[];
362
468
  settings: {
363
- completed: boolean;
364
- unitOfTime: UnitOfTime;
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">;
469
+ completed: false;
470
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
471
+ };
472
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
473
+ }>, z.ZodObject<{
474
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>]>;
475
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
476
+ }, "strip", z.ZodTypeAny, {
477
+ values: string[];
478
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
479
+ }, {
480
+ values: string[];
481
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
482
+ }>, z.ZodObject<{
483
+ operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
484
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
485
+ }, "strip", z.ZodTypeAny, {
486
+ values: string[];
487
+ operator: FilterOperator.IN_BETWEEN;
488
+ }, {
489
+ values: string[];
490
+ operator: FilterOperator.IN_BETWEEN;
491
+ }>]>]>;
368
492
  }, "strip", z.ZodTypeAny, {
369
493
  type: "and" | "or";
370
- id: string;
371
- rule: ({
372
- id: string;
373
- target: {
374
- type: DimensionType | MetricType;
375
- fieldId: string;
376
- };
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: {
380
- completed: boolean;
381
- unitOfTime: UnitOfTime;
382
- };
383
- } | {
384
- id: string;
385
- target: {
386
- type: DimensionType | MetricType;
387
- fieldId: string;
388
- };
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;
494
+ target: {
495
+ type: DimensionType | MetricType;
496
+ fieldId: string;
497
+ };
396
498
  rule: {
397
- values: (string | number | boolean | null)[];
398
- target: {
399
- type: DimensionType | MetricType;
400
- fieldId: string;
401
- };
402
- id: string;
403
- settings: {
404
- completed: boolean;
405
- unitOfTime: UnitOfTime;
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
- }>, {
410
- id: string;
411
- and: ({
412
- id: string;
413
- target: {
414
- type: DimensionType | MetricType;
415
- fieldId: string;
416
- };
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)[];
499
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
500
+ } | {
501
+ values: boolean[];
502
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
503
+ } | {
504
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
505
+ } | {
506
+ values: string[];
507
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
508
+ } | {
509
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
510
+ } | {
511
+ values: number[];
512
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
513
+ } | {
514
+ values: number[];
515
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
516
+ } | {
517
+ values: number[];
518
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
519
+ } | {
520
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
521
+ } | {
522
+ values: string[];
523
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
524
+ } | {
525
+ values: number[];
419
526
  settings: {
420
527
  completed: boolean;
421
- unitOfTime: UnitOfTime;
528
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
422
529
  };
530
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
423
531
  } | {
424
- id: string;
425
- target: {
426
- type: DimensionType | MetricType;
427
- fieldId: string;
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: ({
437
- id: string;
438
- target: {
439
- type: DimensionType | MetricType;
440
- fieldId: string;
441
- };
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)[];
532
+ values: 1[];
444
533
  settings: {
445
- completed: boolean;
446
- unitOfTime: UnitOfTime;
534
+ completed: false;
535
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
447
536
  };
537
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
448
538
  } | {
449
- id: string;
450
- target: {
451
- type: DimensionType | MetricType;
452
- fieldId: string;
453
- };
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;
539
+ values: string[];
540
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
541
+ } | {
542
+ values: string[];
543
+ operator: FilterOperator.IN_BETWEEN;
544
+ };
459
545
  }, {
460
546
  type: "and" | "or";
461
- id: string;
547
+ target: {
548
+ type: DimensionType | MetricType;
549
+ fieldId: string;
550
+ };
462
551
  rule: {
463
- values: (string | number | boolean | null)[];
464
- target: {
465
- type: DimensionType | MetricType;
466
- fieldId: string;
467
- };
468
- id: string;
552
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
553
+ } | {
554
+ values: boolean[];
555
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
556
+ } | {
557
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
558
+ } | {
559
+ values: string[];
560
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
561
+ } | {
562
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
563
+ } | {
564
+ values: number[];
565
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
566
+ } | {
567
+ values: number[];
568
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
569
+ } | {
570
+ values: number[];
571
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
572
+ } | {
573
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
574
+ } | {
575
+ values: string[];
576
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
577
+ } | {
578
+ values: number[];
469
579
  settings: {
470
580
  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<{
480
- id: z.ZodString;
481
- target: z.ZodObject<{
482
- fieldId: z.ZodString;
483
- 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>]>]>;
484
- }, "strip", z.ZodTypeAny, {
485
- type: DimensionType | MetricType;
486
- fieldId: string;
487
- }, {
488
- type: DimensionType | MetricType;
489
- fieldId: string;
490
- }>;
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<{
494
- completed: z.ZodBoolean;
495
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
496
- }, "strip", z.ZodTypeAny, {
497
- completed: boolean;
498
- unitOfTime: UnitOfTime;
499
- }, {
500
- completed: boolean;
501
- unitOfTime: UnitOfTime;
502
- }>>;
503
- }, "strip", z.ZodTypeAny, {
504
- values: (string | number | boolean | null)[];
505
- target: {
506
- type: DimensionType | MetricType;
507
- fieldId: string;
581
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
508
582
  };
509
- id: string;
583
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
584
+ } | {
585
+ values: 1[];
510
586
  settings: {
511
- completed: boolean;
512
- unitOfTime: UnitOfTime;
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;
515
- }, {
516
- values: (string | number | boolean | null)[];
517
- target: {
518
- type: DimensionType | MetricType;
519
- fieldId: string;
587
+ completed: false;
588
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
520
589
  };
521
- id: string;
590
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
591
+ } | {
592
+ values: string[];
593
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
594
+ } | {
595
+ values: string[];
596
+ operator: FilterOperator.IN_BETWEEN;
597
+ };
598
+ }>, FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>, {
599
+ type: "and" | "or";
600
+ target: {
601
+ type: DimensionType | MetricType;
602
+ fieldId: string;
603
+ };
604
+ rule: {
605
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
606
+ } | {
607
+ values: boolean[];
608
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
609
+ } | {
610
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
611
+ } | {
612
+ values: string[];
613
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
614
+ } | {
615
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
616
+ } | {
617
+ values: number[];
618
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
619
+ } | {
620
+ values: number[];
621
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
622
+ } | {
623
+ values: number[];
624
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
625
+ } | {
626
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
627
+ } | {
628
+ values: string[];
629
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
630
+ } | {
631
+ values: number[];
522
632
  settings: {
523
633
  completed: boolean;
524
- unitOfTime: UnitOfTime;
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
- }>, {
528
- id: string;
529
- target: {
530
- type: DimensionType | MetricType;
531
- fieldId: string;
634
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
532
635
  };
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)[];
636
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
637
+ } | {
638
+ values: 1[];
535
639
  settings: {
536
- completed: boolean;
537
- unitOfTime: UnitOfTime;
640
+ completed: false;
641
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
538
642
  };
643
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
539
644
  } | {
540
- id: string;
541
- target: {
542
- type: DimensionType | MetricType;
543
- fieldId: string;
544
- };
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)[];
550
- target: {
551
- type: DimensionType | MetricType;
552
- fieldId: string;
553
- };
554
- id: string;
555
- settings: {
556
- completed: boolean;
557
- unitOfTime: UnitOfTime;
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, {
645
+ values: string[];
646
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
647
+ } | {
648
+ values: string[];
649
+ operator: FilterOperator.IN_BETWEEN;
650
+ };
651
+ }>, "many">>;
652
+ }, "strip", z.ZodTypeAny, {
653
+ type: "and" | "or";
654
+ dimensions: FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>[] | null;
655
+ metrics: FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>[] | null;
656
+ }, {
657
+ type: "and" | "or";
658
+ dimensions: {
562
659
  type: "and" | "or";
563
- id: string;
564
- rule: ({
565
- id: string;
566
- target: {
567
- type: DimensionType | MetricType;
568
- fieldId: string;
569
- };
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;
571
- values: (string | number | boolean | null)[];
660
+ target: {
661
+ type: DimensionType | MetricType;
662
+ fieldId: string;
663
+ };
664
+ rule: {
665
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
666
+ } | {
667
+ values: boolean[];
668
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
669
+ } | {
670
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
671
+ } | {
672
+ values: string[];
673
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
674
+ } | {
675
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
676
+ } | {
677
+ values: number[];
678
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
679
+ } | {
680
+ values: number[];
681
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
682
+ } | {
683
+ values: number[];
684
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
685
+ } | {
686
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
687
+ } | {
688
+ values: string[];
689
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
690
+ } | {
691
+ values: number[];
572
692
  settings: {
573
693
  completed: boolean;
574
- unitOfTime: UnitOfTime;
694
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
575
695
  };
696
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
576
697
  } | {
577
- id: string;
578
- target: {
579
- type: DimensionType | MetricType;
580
- fieldId: string;
698
+ values: 1[];
699
+ settings: {
700
+ completed: false;
701
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
581
702
  };
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
- }, {
703
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
704
+ } | {
705
+ values: string[];
706
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
707
+ } | {
708
+ values: string[];
709
+ operator: FilterOperator.IN_BETWEEN;
710
+ };
711
+ }[] | null;
712
+ metrics: {
587
713
  type: "and" | "or";
588
- id: string;
714
+ target: {
715
+ type: DimensionType | MetricType;
716
+ fieldId: string;
717
+ };
589
718
  rule: {
590
- values: (string | number | boolean | null)[];
591
- target: {
592
- type: DimensionType | MetricType;
593
- fieldId: string;
594
- };
595
- id: string;
596
- settings: {
597
- completed: boolean;
598
- unitOfTime: UnitOfTime;
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;
606
- target: {
607
- type: DimensionType | MetricType;
608
- fieldId: string;
609
- };
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)[];
719
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
720
+ } | {
721
+ values: boolean[];
722
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
723
+ } | {
724
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
725
+ } | {
726
+ values: string[];
727
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
728
+ } | {
729
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
730
+ } | {
731
+ values: number[];
732
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
733
+ } | {
734
+ values: number[];
735
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
736
+ } | {
737
+ values: number[];
738
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
739
+ } | {
740
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
741
+ } | {
742
+ values: string[];
743
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
744
+ } | {
745
+ values: number[];
612
746
  settings: {
613
747
  completed: boolean;
614
- unitOfTime: UnitOfTime;
748
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
615
749
  };
750
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
616
751
  } | {
617
- id: string;
618
- target: {
619
- type: DimensionType | MetricType;
620
- fieldId: string;
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: ({
630
- id: string;
631
- target: {
632
- type: DimensionType | MetricType;
633
- fieldId: string;
634
- };
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)[];
752
+ values: 1[];
637
753
  settings: {
638
- completed: boolean;
639
- unitOfTime: UnitOfTime;
754
+ completed: false;
755
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
640
756
  };
757
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
641
758
  } | {
642
- id: string;
643
- target: {
644
- type: DimensionType | MetricType;
645
- fieldId: string;
646
- };
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
- }, {
759
+ values: string[];
760
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
761
+ } | {
762
+ values: string[];
763
+ operator: FilterOperator.IN_BETWEEN;
764
+ };
765
+ }[] | null;
766
+ }>, Filters, {
767
+ type: "and" | "or";
768
+ dimensions: {
653
769
  type: "and" | "or";
654
- id: string;
770
+ target: {
771
+ type: DimensionType | MetricType;
772
+ fieldId: string;
773
+ };
655
774
  rule: {
656
- values: (string | number | boolean | null)[];
657
- target: {
658
- type: DimensionType | MetricType;
659
- fieldId: string;
660
- };
661
- id: string;
775
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
776
+ } | {
777
+ values: boolean[];
778
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
779
+ } | {
780
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
781
+ } | {
782
+ values: string[];
783
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
784
+ } | {
785
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
786
+ } | {
787
+ values: number[];
788
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
789
+ } | {
790
+ values: number[];
791
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
792
+ } | {
793
+ values: number[];
794
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
795
+ } | {
796
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
797
+ } | {
798
+ values: string[];
799
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
800
+ } | {
801
+ values: number[];
662
802
  settings: {
663
803
  completed: boolean;
664
- unitOfTime: UnitOfTime;
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
- }>>;
669
- }, "strip", z.ZodTypeAny, {
670
- dimensions: {
671
- id: string;
672
- and: ({
673
- id: string;
674
- target: {
675
- type: DimensionType | MetricType;
676
- fieldId: string;
804
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
677
805
  };
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)[];
806
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
807
+ } | {
808
+ values: 1[];
680
809
  settings: {
681
- completed: boolean;
682
- unitOfTime: UnitOfTime;
810
+ completed: false;
811
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
683
812
  };
813
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
684
814
  } | {
685
- id: string;
686
- target: {
687
- type: DimensionType | MetricType;
688
- fieldId: string;
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: ({
698
- id: string;
699
- target: {
700
- type: DimensionType | MetricType;
701
- fieldId: string;
702
- };
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)[];
815
+ values: string[];
816
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
817
+ } | {
818
+ values: string[];
819
+ operator: FilterOperator.IN_BETWEEN;
820
+ };
821
+ }[] | null;
822
+ metrics: {
823
+ type: "and" | "or";
824
+ target: {
825
+ type: DimensionType | MetricType;
826
+ fieldId: string;
827
+ };
828
+ rule: {
829
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
830
+ } | {
831
+ values: boolean[];
832
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
833
+ } | {
834
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
835
+ } | {
836
+ values: string[];
837
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
838
+ } | {
839
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
840
+ } | {
841
+ values: number[];
842
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
843
+ } | {
844
+ values: number[];
845
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
846
+ } | {
847
+ values: number[];
848
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
849
+ } | {
850
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
851
+ } | {
852
+ values: string[];
853
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
854
+ } | {
855
+ values: number[];
705
856
  settings: {
706
857
  completed: boolean;
707
- unitOfTime: UnitOfTime;
858
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
708
859
  };
860
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
709
861
  } | {
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;
718
- })[];
719
- and?: undefined;
720
- } | null;
721
- metrics: {
722
- id: string;
723
- and: ({
724
- id: string;
725
- target: {
726
- type: DimensionType | MetricType;
727
- fieldId: string;
728
- };
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)[];
862
+ values: 1[];
731
863
  settings: {
732
- completed: boolean;
733
- unitOfTime: UnitOfTime;
864
+ completed: false;
865
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
734
866
  };
867
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
735
868
  } | {
736
- id: string;
737
- target: {
869
+ values: string[];
870
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
871
+ } | {
872
+ values: string[];
873
+ operator: FilterOperator.IN_BETWEEN;
874
+ };
875
+ }[] | null;
876
+ }>;
877
+ export declare const generateQueryFiltersToolSchema: z.ZodObject<{
878
+ exploreName: z.ZodString;
879
+ filters: z.ZodEffects<z.ZodObject<{
880
+ type: z.ZodEnum<["and", "or"]>;
881
+ dimensions: z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
882
+ type: z.ZodEnum<["or", "and"]>;
883
+ target: z.ZodObject<{
884
+ fieldId: z.ZodString;
885
+ 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>]>]>;
886
+ }, "strip", z.ZodTypeAny, {
738
887
  type: DimensionType | MetricType;
739
888
  fieldId: string;
740
- };
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;
744
- })[];
745
- or?: undefined;
746
- } | {
747
- id: string;
748
- or: ({
749
- id: string;
889
+ }, {
890
+ type: DimensionType | MetricType;
891
+ fieldId: string;
892
+ }>;
893
+ rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
894
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
895
+ }, "strip", z.ZodTypeAny, {
896
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
897
+ }, {
898
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
899
+ }>, z.ZodObject<{
900
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
901
+ values: z.ZodArray<z.ZodBoolean, "many">;
902
+ }, "strip", z.ZodTypeAny, {
903
+ values: boolean[];
904
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
905
+ }, {
906
+ values: boolean[];
907
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
908
+ }>]>, z.ZodUnion<[z.ZodObject<{
909
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
910
+ }, "strip", z.ZodTypeAny, {
911
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
912
+ }, {
913
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
914
+ }>, z.ZodObject<{
915
+ operator: z.ZodUnion<[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>]>;
916
+ values: z.ZodArray<z.ZodString, "many">;
917
+ }, "strip", z.ZodTypeAny, {
918
+ values: string[];
919
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
920
+ }, {
921
+ values: string[];
922
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
923
+ }>]>, z.ZodUnion<[z.ZodObject<{
924
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
925
+ }, "strip", z.ZodTypeAny, {
926
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
927
+ }, {
928
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
929
+ }>, z.ZodObject<{
930
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
931
+ values: z.ZodArray<z.ZodNumber, "many">;
932
+ }, "strip", z.ZodTypeAny, {
933
+ values: number[];
934
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
935
+ }, {
936
+ values: number[];
937
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
938
+ }>, z.ZodObject<{
939
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
940
+ values: z.ZodArray<z.ZodNumber, "many">;
941
+ }, "strip", z.ZodTypeAny, {
942
+ values: number[];
943
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
944
+ }, {
945
+ values: number[];
946
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
947
+ }>, z.ZodObject<{
948
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
949
+ values: z.ZodArray<z.ZodNumber, "many">;
950
+ }, "strip", z.ZodTypeAny, {
951
+ values: number[];
952
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
953
+ }, {
954
+ values: number[];
955
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
956
+ }>]>, z.ZodUnion<[z.ZodObject<{
957
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
958
+ }, "strip", z.ZodTypeAny, {
959
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
960
+ }, {
961
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
962
+ }>, z.ZodObject<{
963
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
964
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
965
+ }, "strip", z.ZodTypeAny, {
966
+ values: string[];
967
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
968
+ }, {
969
+ values: string[];
970
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
971
+ }>, z.ZodObject<{
972
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
973
+ values: z.ZodArray<z.ZodNumber, "many">;
974
+ settings: z.ZodObject<{
975
+ completed: z.ZodBoolean;
976
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
977
+ }, "strip", z.ZodTypeAny, {
978
+ completed: boolean;
979
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
980
+ }, {
981
+ completed: boolean;
982
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
983
+ }>;
984
+ }, "strip", z.ZodTypeAny, {
985
+ values: number[];
986
+ settings: {
987
+ completed: boolean;
988
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
989
+ };
990
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
991
+ }, {
992
+ values: number[];
993
+ settings: {
994
+ completed: boolean;
995
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
996
+ };
997
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
998
+ }>, z.ZodObject<{
999
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
1000
+ values: z.ZodArray<z.ZodLiteral<1>, "many">;
1001
+ settings: z.ZodObject<{
1002
+ completed: z.ZodLiteral<false>;
1003
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ completed: false;
1006
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1007
+ }, {
1008
+ completed: false;
1009
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1010
+ }>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ values: 1[];
1013
+ settings: {
1014
+ completed: false;
1015
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1016
+ };
1017
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1018
+ }, {
1019
+ values: 1[];
1020
+ settings: {
1021
+ completed: false;
1022
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1023
+ };
1024
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1025
+ }>, z.ZodObject<{
1026
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>]>;
1027
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ values: string[];
1030
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1031
+ }, {
1032
+ values: string[];
1033
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1034
+ }>, z.ZodObject<{
1035
+ operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
1036
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ values: string[];
1039
+ operator: FilterOperator.IN_BETWEEN;
1040
+ }, {
1041
+ values: string[];
1042
+ operator: FilterOperator.IN_BETWEEN;
1043
+ }>]>]>;
1044
+ }, "strip", z.ZodTypeAny, {
1045
+ type: "and" | "or";
750
1046
  target: {
751
1047
  type: DimensionType | MetricType;
752
1048
  fieldId: string;
753
1049
  };
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)[];
756
- settings: {
757
- completed: boolean;
758
- unitOfTime: UnitOfTime;
1050
+ rule: {
1051
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1052
+ } | {
1053
+ values: boolean[];
1054
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1055
+ } | {
1056
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1057
+ } | {
1058
+ values: string[];
1059
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1060
+ } | {
1061
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1062
+ } | {
1063
+ values: number[];
1064
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1065
+ } | {
1066
+ values: number[];
1067
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1068
+ } | {
1069
+ values: number[];
1070
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1071
+ } | {
1072
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1073
+ } | {
1074
+ values: string[];
1075
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1076
+ } | {
1077
+ values: number[];
1078
+ settings: {
1079
+ completed: boolean;
1080
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1081
+ };
1082
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1083
+ } | {
1084
+ values: 1[];
1085
+ settings: {
1086
+ completed: false;
1087
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1088
+ };
1089
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1090
+ } | {
1091
+ values: string[];
1092
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1093
+ } | {
1094
+ values: string[];
1095
+ operator: FilterOperator.IN_BETWEEN;
759
1096
  };
760
- } | {
761
- id: string;
1097
+ }, {
1098
+ type: "and" | "or";
762
1099
  target: {
763
1100
  type: DimensionType | MetricType;
764
1101
  fieldId: string;
765
1102
  };
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;
769
- })[];
770
- and?: undefined;
771
- } | null;
772
- }, {
773
- dimensions: {
774
- type: "and" | "or";
775
- id: string;
776
- rule: {
777
- values: (string | number | boolean | null)[];
1103
+ rule: {
1104
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1105
+ } | {
1106
+ values: boolean[];
1107
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1108
+ } | {
1109
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1110
+ } | {
1111
+ values: string[];
1112
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1113
+ } | {
1114
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1115
+ } | {
1116
+ values: number[];
1117
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1118
+ } | {
1119
+ values: number[];
1120
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1121
+ } | {
1122
+ values: number[];
1123
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1124
+ } | {
1125
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1126
+ } | {
1127
+ values: string[];
1128
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1129
+ } | {
1130
+ values: number[];
1131
+ settings: {
1132
+ completed: boolean;
1133
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1134
+ };
1135
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1136
+ } | {
1137
+ values: 1[];
1138
+ settings: {
1139
+ completed: false;
1140
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1141
+ };
1142
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1143
+ } | {
1144
+ values: string[];
1145
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1146
+ } | {
1147
+ values: string[];
1148
+ operator: FilterOperator.IN_BETWEEN;
1149
+ };
1150
+ }>, FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>, {
1151
+ type: "and" | "or";
778
1152
  target: {
779
1153
  type: DimensionType | MetricType;
780
1154
  fieldId: string;
781
1155
  };
782
- id: string;
783
- settings: {
784
- completed: boolean;
785
- unitOfTime: UnitOfTime;
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";
792
- id: string;
793
- rule: {
794
- values: (string | number | boolean | null)[];
795
- target: {
796
- type: DimensionType | MetricType;
797
- fieldId: string;
1156
+ rule: {
1157
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1158
+ } | {
1159
+ values: boolean[];
1160
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1161
+ } | {
1162
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1163
+ } | {
1164
+ values: string[];
1165
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1166
+ } | {
1167
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1168
+ } | {
1169
+ values: number[];
1170
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1171
+ } | {
1172
+ values: number[];
1173
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1174
+ } | {
1175
+ values: number[];
1176
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1177
+ } | {
1178
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1179
+ } | {
1180
+ values: string[];
1181
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1182
+ } | {
1183
+ values: number[];
1184
+ settings: {
1185
+ completed: boolean;
1186
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1187
+ };
1188
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1189
+ } | {
1190
+ values: 1[];
1191
+ settings: {
1192
+ completed: false;
1193
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1194
+ };
1195
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1196
+ } | {
1197
+ values: string[];
1198
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1199
+ } | {
1200
+ values: string[];
1201
+ operator: FilterOperator.IN_BETWEEN;
798
1202
  };
799
- id: string;
800
- settings: {
801
- completed: boolean;
802
- unitOfTime: UnitOfTime;
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
- }[];
806
- } | null;
807
- }>;
808
- export type FilterSchemaType = z.infer<typeof filterSchema>;
809
- export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
810
- exploreName: z.ZodString;
811
- filterGroup: z.ZodEffects<z.ZodObject<{
812
- id: z.ZodString;
813
- type: z.ZodEnum<["and", "or"]>;
814
- rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
815
- id: z.ZodString;
1203
+ }>, "many">>;
1204
+ metrics: z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
1205
+ type: z.ZodEnum<["or", "and"]>;
816
1206
  target: z.ZodObject<{
817
1207
  fieldId: z.ZodString;
818
1208
  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>]>]>;
@@ -823,256 +1213,658 @@ export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
823
1213
  type: DimensionType | MetricType;
824
1214
  fieldId: string;
825
1215
  }>;
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>]>]>;
827
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
828
- settings: z.ZodNullable<z.ZodObject<{
829
- completed: z.ZodBoolean;
830
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
1216
+ rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1217
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
831
1218
  }, "strip", z.ZodTypeAny, {
832
- completed: boolean;
833
- unitOfTime: UnitOfTime;
1219
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
834
1220
  }, {
835
- completed: boolean;
836
- unitOfTime: UnitOfTime;
837
- }>>;
1221
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1222
+ }>, z.ZodObject<{
1223
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
1224
+ values: z.ZodArray<z.ZodBoolean, "many">;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ values: boolean[];
1227
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1228
+ }, {
1229
+ values: boolean[];
1230
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1231
+ }>]>, z.ZodUnion<[z.ZodObject<{
1232
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
1233
+ }, "strip", z.ZodTypeAny, {
1234
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1235
+ }, {
1236
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1237
+ }>, z.ZodObject<{
1238
+ operator: z.ZodUnion<[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>]>;
1239
+ values: z.ZodArray<z.ZodString, "many">;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ values: string[];
1242
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1243
+ }, {
1244
+ values: string[];
1245
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1246
+ }>]>, z.ZodUnion<[z.ZodObject<{
1247
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
1248
+ }, "strip", z.ZodTypeAny, {
1249
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1250
+ }, {
1251
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1252
+ }>, z.ZodObject<{
1253
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
1254
+ values: z.ZodArray<z.ZodNumber, "many">;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ values: number[];
1257
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1258
+ }, {
1259
+ values: number[];
1260
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1261
+ }>, z.ZodObject<{
1262
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
1263
+ values: z.ZodArray<z.ZodNumber, "many">;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ values: number[];
1266
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1267
+ }, {
1268
+ values: number[];
1269
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1270
+ }>, z.ZodObject<{
1271
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
1272
+ values: z.ZodArray<z.ZodNumber, "many">;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ values: number[];
1275
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1276
+ }, {
1277
+ values: number[];
1278
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1279
+ }>]>, z.ZodUnion<[z.ZodObject<{
1280
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1283
+ }, {
1284
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1285
+ }>, z.ZodObject<{
1286
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
1287
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ values: string[];
1290
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1291
+ }, {
1292
+ values: string[];
1293
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1294
+ }>, z.ZodObject<{
1295
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
1296
+ values: z.ZodArray<z.ZodNumber, "many">;
1297
+ settings: z.ZodObject<{
1298
+ completed: z.ZodBoolean;
1299
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ completed: boolean;
1302
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1303
+ }, {
1304
+ completed: boolean;
1305
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1306
+ }>;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ values: number[];
1309
+ settings: {
1310
+ completed: boolean;
1311
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1312
+ };
1313
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1314
+ }, {
1315
+ values: number[];
1316
+ settings: {
1317
+ completed: boolean;
1318
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1319
+ };
1320
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1321
+ }>, z.ZodObject<{
1322
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
1323
+ values: z.ZodArray<z.ZodLiteral<1>, "many">;
1324
+ settings: z.ZodObject<{
1325
+ completed: z.ZodLiteral<false>;
1326
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ completed: false;
1329
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1330
+ }, {
1331
+ completed: false;
1332
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1333
+ }>;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ values: 1[];
1336
+ settings: {
1337
+ completed: false;
1338
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1339
+ };
1340
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1341
+ }, {
1342
+ values: 1[];
1343
+ settings: {
1344
+ completed: false;
1345
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1346
+ };
1347
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1348
+ }>, z.ZodObject<{
1349
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>]>;
1350
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
1351
+ }, "strip", z.ZodTypeAny, {
1352
+ values: string[];
1353
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1354
+ }, {
1355
+ values: string[];
1356
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1357
+ }>, z.ZodObject<{
1358
+ operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
1359
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ values: string[];
1362
+ operator: FilterOperator.IN_BETWEEN;
1363
+ }, {
1364
+ values: string[];
1365
+ operator: FilterOperator.IN_BETWEEN;
1366
+ }>]>]>;
838
1367
  }, "strip", z.ZodTypeAny, {
839
- values: (string | number | boolean | null)[];
1368
+ type: "and" | "or";
840
1369
  target: {
841
1370
  type: DimensionType | MetricType;
842
1371
  fieldId: string;
843
1372
  };
844
- id: string;
845
- settings: {
846
- completed: boolean;
847
- unitOfTime: UnitOfTime;
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;
850
- }, {
851
- values: (string | number | boolean | null)[];
852
- target: {
853
- type: DimensionType | MetricType;
854
- fieldId: string;
1373
+ rule: {
1374
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1375
+ } | {
1376
+ values: boolean[];
1377
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1378
+ } | {
1379
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1380
+ } | {
1381
+ values: string[];
1382
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1383
+ } | {
1384
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1385
+ } | {
1386
+ values: number[];
1387
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1388
+ } | {
1389
+ values: number[];
1390
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1391
+ } | {
1392
+ values: number[];
1393
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1394
+ } | {
1395
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1396
+ } | {
1397
+ values: string[];
1398
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1399
+ } | {
1400
+ values: number[];
1401
+ settings: {
1402
+ completed: boolean;
1403
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1404
+ };
1405
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1406
+ } | {
1407
+ values: 1[];
1408
+ settings: {
1409
+ completed: false;
1410
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1411
+ };
1412
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1413
+ } | {
1414
+ values: string[];
1415
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1416
+ } | {
1417
+ values: string[];
1418
+ operator: FilterOperator.IN_BETWEEN;
855
1419
  };
856
- id: string;
857
- settings: {
858
- completed: boolean;
859
- unitOfTime: UnitOfTime;
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
- }>, {
863
- id: string;
1420
+ }, {
1421
+ type: "and" | "or";
864
1422
  target: {
865
1423
  type: DimensionType | MetricType;
866
1424
  fieldId: string;
867
1425
  };
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)[];
870
- settings: {
871
- completed: boolean;
872
- unitOfTime: UnitOfTime;
1426
+ rule: {
1427
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1428
+ } | {
1429
+ values: boolean[];
1430
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1431
+ } | {
1432
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1433
+ } | {
1434
+ values: string[];
1435
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1436
+ } | {
1437
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1438
+ } | {
1439
+ values: number[];
1440
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1441
+ } | {
1442
+ values: number[];
1443
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1444
+ } | {
1445
+ values: number[];
1446
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1447
+ } | {
1448
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1449
+ } | {
1450
+ values: string[];
1451
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1452
+ } | {
1453
+ values: number[];
1454
+ settings: {
1455
+ completed: boolean;
1456
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1457
+ };
1458
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1459
+ } | {
1460
+ values: 1[];
1461
+ settings: {
1462
+ completed: false;
1463
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1464
+ };
1465
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1466
+ } | {
1467
+ values: string[];
1468
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1469
+ } | {
1470
+ values: string[];
1471
+ operator: FilterOperator.IN_BETWEEN;
873
1472
  };
874
- } | {
875
- id: string;
1473
+ }>, FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>, {
1474
+ type: "and" | "or";
876
1475
  target: {
877
1476
  type: DimensionType | MetricType;
878
1477
  fieldId: string;
879
1478
  };
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)[];
885
- target: {
886
- type: DimensionType | MetricType;
887
- fieldId: string;
1479
+ rule: {
1480
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1481
+ } | {
1482
+ values: boolean[];
1483
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1484
+ } | {
1485
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1486
+ } | {
1487
+ values: string[];
1488
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1489
+ } | {
1490
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1491
+ } | {
1492
+ values: number[];
1493
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1494
+ } | {
1495
+ values: number[];
1496
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1497
+ } | {
1498
+ values: number[];
1499
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1500
+ } | {
1501
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1502
+ } | {
1503
+ values: string[];
1504
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1505
+ } | {
1506
+ values: number[];
1507
+ settings: {
1508
+ completed: boolean;
1509
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1510
+ };
1511
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1512
+ } | {
1513
+ values: 1[];
1514
+ settings: {
1515
+ completed: false;
1516
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1517
+ };
1518
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1519
+ } | {
1520
+ values: string[];
1521
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1522
+ } | {
1523
+ values: string[];
1524
+ operator: FilterOperator.IN_BETWEEN;
888
1525
  };
889
- id: string;
890
- settings: {
891
- completed: boolean;
892
- unitOfTime: UnitOfTime;
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">;
1526
+ }>, "many">>;
896
1527
  }, "strip", z.ZodTypeAny, {
897
1528
  type: "and" | "or";
898
- id: string;
899
- rule: ({
900
- id: string;
901
- target: {
902
- type: DimensionType | MetricType;
903
- fieldId: string;
904
- };
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;
906
- values: (string | number | boolean | null)[];
907
- settings: {
908
- completed: boolean;
909
- unitOfTime: UnitOfTime;
910
- };
911
- } | {
912
- id: string;
913
- target: {
914
- type: DimensionType | MetricType;
915
- fieldId: string;
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
- })[];
1529
+ dimensions: FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>[] | null;
1530
+ metrics: FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>[] | null;
921
1531
  }, {
922
1532
  type: "and" | "or";
923
- id: string;
924
- rule: {
925
- values: (string | number | boolean | null)[];
926
- target: {
927
- type: DimensionType | MetricType;
928
- fieldId: string;
929
- };
930
- id: string;
931
- settings: {
932
- completed: boolean;
933
- unitOfTime: UnitOfTime;
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;
1533
+ dimensions: {
1534
+ type: "and" | "or";
941
1535
  target: {
942
1536
  type: DimensionType | MetricType;
943
1537
  fieldId: string;
944
1538
  };
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)[];
947
- settings: {
948
- completed: boolean;
949
- unitOfTime: UnitOfTime;
1539
+ rule: {
1540
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1541
+ } | {
1542
+ values: boolean[];
1543
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1544
+ } | {
1545
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1546
+ } | {
1547
+ values: string[];
1548
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1549
+ } | {
1550
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1551
+ } | {
1552
+ values: number[];
1553
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1554
+ } | {
1555
+ values: number[];
1556
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1557
+ } | {
1558
+ values: number[];
1559
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1560
+ } | {
1561
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1562
+ } | {
1563
+ values: string[];
1564
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1565
+ } | {
1566
+ values: number[];
1567
+ settings: {
1568
+ completed: boolean;
1569
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1570
+ };
1571
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1572
+ } | {
1573
+ values: 1[];
1574
+ settings: {
1575
+ completed: false;
1576
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1577
+ };
1578
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1579
+ } | {
1580
+ values: string[];
1581
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1582
+ } | {
1583
+ values: string[];
1584
+ operator: FilterOperator.IN_BETWEEN;
950
1585
  };
951
- } | {
952
- id: string;
1586
+ }[] | null;
1587
+ metrics: {
1588
+ type: "and" | "or";
953
1589
  target: {
954
1590
  type: DimensionType | MetricType;
955
1591
  fieldId: string;
956
1592
  };
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: ({
965
- id: string;
1593
+ rule: {
1594
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1595
+ } | {
1596
+ values: boolean[];
1597
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1598
+ } | {
1599
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1600
+ } | {
1601
+ values: string[];
1602
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1603
+ } | {
1604
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1605
+ } | {
1606
+ values: number[];
1607
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1608
+ } | {
1609
+ values: number[];
1610
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1611
+ } | {
1612
+ values: number[];
1613
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1614
+ } | {
1615
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1616
+ } | {
1617
+ values: string[];
1618
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1619
+ } | {
1620
+ values: number[];
1621
+ settings: {
1622
+ completed: boolean;
1623
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1624
+ };
1625
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1626
+ } | {
1627
+ values: 1[];
1628
+ settings: {
1629
+ completed: false;
1630
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1631
+ };
1632
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1633
+ } | {
1634
+ values: string[];
1635
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1636
+ } | {
1637
+ values: string[];
1638
+ operator: FilterOperator.IN_BETWEEN;
1639
+ };
1640
+ }[] | null;
1641
+ }>, Filters, {
1642
+ type: "and" | "or";
1643
+ dimensions: {
1644
+ type: "and" | "or";
966
1645
  target: {
967
1646
  type: DimensionType | MetricType;
968
1647
  fieldId: string;
969
1648
  };
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)[];
972
- settings: {
973
- completed: boolean;
974
- unitOfTime: UnitOfTime;
1649
+ rule: {
1650
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1651
+ } | {
1652
+ values: boolean[];
1653
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1654
+ } | {
1655
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1656
+ } | {
1657
+ values: string[];
1658
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1659
+ } | {
1660
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1661
+ } | {
1662
+ values: number[];
1663
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1664
+ } | {
1665
+ values: number[];
1666
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1667
+ } | {
1668
+ values: number[];
1669
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1670
+ } | {
1671
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1672
+ } | {
1673
+ values: string[];
1674
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1675
+ } | {
1676
+ values: number[];
1677
+ settings: {
1678
+ completed: boolean;
1679
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1680
+ };
1681
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1682
+ } | {
1683
+ values: 1[];
1684
+ settings: {
1685
+ completed: false;
1686
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1687
+ };
1688
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1689
+ } | {
1690
+ values: string[];
1691
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1692
+ } | {
1693
+ values: string[];
1694
+ operator: FilterOperator.IN_BETWEEN;
975
1695
  };
976
- } | {
977
- id: string;
1696
+ }[] | null;
1697
+ metrics: {
1698
+ type: "and" | "or";
978
1699
  target: {
979
1700
  type: DimensionType | MetricType;
980
1701
  fieldId: string;
981
1702
  };
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)[];
992
- target: {
993
- type: DimensionType | MetricType;
994
- fieldId: string;
1703
+ rule: {
1704
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1705
+ } | {
1706
+ values: boolean[];
1707
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1708
+ } | {
1709
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1710
+ } | {
1711
+ values: string[];
1712
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1713
+ } | {
1714
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1715
+ } | {
1716
+ values: number[];
1717
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1718
+ } | {
1719
+ values: number[];
1720
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1721
+ } | {
1722
+ values: number[];
1723
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1724
+ } | {
1725
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1726
+ } | {
1727
+ values: string[];
1728
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1729
+ } | {
1730
+ values: number[];
1731
+ settings: {
1732
+ completed: boolean;
1733
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1734
+ };
1735
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1736
+ } | {
1737
+ values: 1[];
1738
+ settings: {
1739
+ completed: false;
1740
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1741
+ };
1742
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1743
+ } | {
1744
+ values: string[];
1745
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1746
+ } | {
1747
+ values: string[];
1748
+ operator: FilterOperator.IN_BETWEEN;
995
1749
  };
996
- id: string;
997
- settings: {
998
- completed: boolean;
999
- unitOfTime: UnitOfTime;
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
- }[];
1750
+ }[] | null;
1003
1751
  }>;
1004
1752
  }, "strip", z.ZodTypeAny, {
1753
+ filters: Filters;
1005
1754
  exploreName: string;
1006
- filterGroup: {
1007
- id: string;
1008
- and: ({
1009
- id: string;
1755
+ }, {
1756
+ filters: {
1757
+ type: "and" | "or";
1758
+ dimensions: {
1759
+ type: "and" | "or";
1010
1760
  target: {
1011
1761
  type: DimensionType | MetricType;
1012
1762
  fieldId: string;
1013
1763
  };
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)[];
1016
- settings: {
1017
- completed: boolean;
1018
- unitOfTime: UnitOfTime;
1019
- };
1020
- } | {
1021
- id: string;
1022
- target: {
1023
- type: DimensionType | MetricType;
1024
- fieldId: string;
1764
+ rule: {
1765
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1766
+ } | {
1767
+ values: boolean[];
1768
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1769
+ } | {
1770
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1771
+ } | {
1772
+ values: string[];
1773
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1774
+ } | {
1775
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1776
+ } | {
1777
+ values: number[];
1778
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1779
+ } | {
1780
+ values: number[];
1781
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1782
+ } | {
1783
+ values: number[];
1784
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1785
+ } | {
1786
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1787
+ } | {
1788
+ values: string[];
1789
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1790
+ } | {
1791
+ values: number[];
1792
+ settings: {
1793
+ completed: boolean;
1794
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1795
+ };
1796
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1797
+ } | {
1798
+ values: 1[];
1799
+ settings: {
1800
+ completed: false;
1801
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1802
+ };
1803
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1804
+ } | {
1805
+ values: string[];
1806
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1807
+ } | {
1808
+ values: string[];
1809
+ operator: FilterOperator.IN_BETWEEN;
1025
1810
  };
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: ({
1034
- id: string;
1811
+ }[] | null;
1812
+ metrics: {
1813
+ type: "and" | "or";
1035
1814
  target: {
1036
1815
  type: DimensionType | MetricType;
1037
1816
  fieldId: string;
1038
1817
  };
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)[];
1041
- settings: {
1042
- completed: boolean;
1043
- unitOfTime: UnitOfTime;
1044
- };
1045
- } | {
1046
- id: string;
1047
- target: {
1048
- type: DimensionType | MetricType;
1049
- fieldId: string;
1818
+ rule: {
1819
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1820
+ } | {
1821
+ values: boolean[];
1822
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1823
+ } | {
1824
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1825
+ } | {
1826
+ values: string[];
1827
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1828
+ } | {
1829
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1830
+ } | {
1831
+ values: number[];
1832
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1833
+ } | {
1834
+ values: number[];
1835
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1836
+ } | {
1837
+ values: number[];
1838
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1839
+ } | {
1840
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1841
+ } | {
1842
+ values: string[];
1843
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1844
+ } | {
1845
+ values: number[];
1846
+ settings: {
1847
+ completed: boolean;
1848
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1849
+ };
1850
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1851
+ } | {
1852
+ values: 1[];
1853
+ settings: {
1854
+ completed: false;
1855
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1856
+ };
1857
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1858
+ } | {
1859
+ values: string[];
1860
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
1861
+ } | {
1862
+ values: string[];
1863
+ operator: FilterOperator.IN_BETWEEN;
1050
1864
  };
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;
1054
- })[];
1055
- and?: undefined;
1865
+ }[] | null;
1056
1866
  };
1057
- }, {
1058
1867
  exploreName: string;
1059
- filterGroup: {
1060
- type: "and" | "or";
1061
- id: string;
1062
- rule: {
1063
- values: (string | number | boolean | null)[];
1064
- target: {
1065
- type: DimensionType | MetricType;
1066
- fieldId: string;
1067
- };
1068
- id: string;
1069
- settings: {
1070
- completed: boolean;
1071
- unitOfTime: UnitOfTime;
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
- }[];
1075
- };
1076
1868
  }>;
1077
1869
  export declare const SortFieldSchema: z.ZodObject<{
1078
1870
  fieldId: z.ZodString;
@@ -1088,531 +1880,878 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1088
1880
  exploreName: z.ZodString;
1089
1881
  metrics: z.ZodArray<z.ZodString, "many">;
1090
1882
  dimensions: z.ZodArray<z.ZodString, "many">;
1091
- filters: z.ZodObject<{
1092
- dimensions: z.ZodNullable<z.ZodEffects<z.ZodObject<{
1093
- id: z.ZodString;
1094
- type: z.ZodEnum<["and", "or"]>;
1095
- rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
1096
- id: z.ZodString;
1097
- target: z.ZodObject<{
1098
- fieldId: z.ZodString;
1099
- 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>]>]>;
1100
- }, "strip", z.ZodTypeAny, {
1101
- type: DimensionType | MetricType;
1102
- fieldId: string;
1103
- }, {
1104
- type: DimensionType | MetricType;
1105
- fieldId: string;
1106
- }>;
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>]>]>;
1108
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
1109
- settings: z.ZodNullable<z.ZodObject<{
1883
+ filters: z.ZodEffects<z.ZodObject<{
1884
+ type: z.ZodEnum<["and", "or"]>;
1885
+ dimensions: z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
1886
+ type: z.ZodEnum<["or", "and"]>;
1887
+ target: z.ZodObject<{
1888
+ fieldId: z.ZodString;
1889
+ 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>]>]>;
1890
+ }, "strip", z.ZodTypeAny, {
1891
+ type: DimensionType | MetricType;
1892
+ fieldId: string;
1893
+ }, {
1894
+ type: DimensionType | MetricType;
1895
+ fieldId: string;
1896
+ }>;
1897
+ rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1898
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
1899
+ }, "strip", z.ZodTypeAny, {
1900
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1901
+ }, {
1902
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1903
+ }>, z.ZodObject<{
1904
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
1905
+ values: z.ZodArray<z.ZodBoolean, "many">;
1906
+ }, "strip", z.ZodTypeAny, {
1907
+ values: boolean[];
1908
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1909
+ }, {
1910
+ values: boolean[];
1911
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1912
+ }>]>, z.ZodUnion<[z.ZodObject<{
1913
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
1914
+ }, "strip", z.ZodTypeAny, {
1915
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1916
+ }, {
1917
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1918
+ }>, z.ZodObject<{
1919
+ operator: z.ZodUnion<[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>]>;
1920
+ values: z.ZodArray<z.ZodString, "many">;
1921
+ }, "strip", z.ZodTypeAny, {
1922
+ values: string[];
1923
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1924
+ }, {
1925
+ values: string[];
1926
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
1927
+ }>]>, z.ZodUnion<[z.ZodObject<{
1928
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
1929
+ }, "strip", z.ZodTypeAny, {
1930
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1931
+ }, {
1932
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1933
+ }>, z.ZodObject<{
1934
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
1935
+ values: z.ZodArray<z.ZodNumber, "many">;
1936
+ }, "strip", z.ZodTypeAny, {
1937
+ values: number[];
1938
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1939
+ }, {
1940
+ values: number[];
1941
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1942
+ }>, z.ZodObject<{
1943
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
1944
+ values: z.ZodArray<z.ZodNumber, "many">;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ values: number[];
1947
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1948
+ }, {
1949
+ values: number[];
1950
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
1951
+ }>, z.ZodObject<{
1952
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
1953
+ values: z.ZodArray<z.ZodNumber, "many">;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ values: number[];
1956
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1957
+ }, {
1958
+ values: number[];
1959
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
1960
+ }>]>, z.ZodUnion<[z.ZodObject<{
1961
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
1962
+ }, "strip", z.ZodTypeAny, {
1963
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1964
+ }, {
1965
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
1966
+ }>, z.ZodObject<{
1967
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
1968
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
1969
+ }, "strip", z.ZodTypeAny, {
1970
+ values: string[];
1971
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1972
+ }, {
1973
+ values: string[];
1974
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
1975
+ }>, z.ZodObject<{
1976
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
1977
+ values: z.ZodArray<z.ZodNumber, "many">;
1978
+ settings: z.ZodObject<{
1110
1979
  completed: z.ZodBoolean;
1111
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
1980
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
1112
1981
  }, "strip", z.ZodTypeAny, {
1113
1982
  completed: boolean;
1114
- unitOfTime: UnitOfTime;
1983
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1115
1984
  }, {
1116
1985
  completed: boolean;
1117
- unitOfTime: UnitOfTime;
1118
- }>>;
1986
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1987
+ }>;
1119
1988
  }, "strip", z.ZodTypeAny, {
1120
- values: (string | number | boolean | null)[];
1121
- target: {
1122
- type: DimensionType | MetricType;
1123
- fieldId: string;
1124
- };
1125
- id: string;
1989
+ values: number[];
1126
1990
  settings: {
1127
1991
  completed: boolean;
1128
- unitOfTime: UnitOfTime;
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;
1131
- }, {
1132
- values: (string | number | boolean | null)[];
1133
- target: {
1134
- type: DimensionType | MetricType;
1135
- fieldId: string;
1992
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1136
1993
  };
1137
- id: string;
1138
- settings: {
1139
- completed: boolean;
1140
- unitOfTime: UnitOfTime;
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
- }>, {
1144
- id: string;
1145
- target: {
1146
- type: DimensionType | MetricType;
1147
- fieldId: string;
1148
- };
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)[];
1994
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1995
+ }, {
1996
+ values: number[];
1151
1997
  settings: {
1152
1998
  completed: boolean;
1153
- unitOfTime: UnitOfTime;
1999
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1154
2000
  };
1155
- } | {
1156
- id: string;
1157
- target: {
1158
- type: DimensionType | MetricType;
1159
- fieldId: string;
2001
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
2002
+ }>, z.ZodObject<{
2003
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
2004
+ values: z.ZodArray<z.ZodLiteral<1>, "many">;
2005
+ settings: z.ZodObject<{
2006
+ completed: z.ZodLiteral<false>;
2007
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
2008
+ }, "strip", z.ZodTypeAny, {
2009
+ completed: false;
2010
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2011
+ }, {
2012
+ completed: false;
2013
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2014
+ }>;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ values: 1[];
2017
+ settings: {
2018
+ completed: false;
2019
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1160
2020
  };
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;
2021
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1164
2022
  }, {
1165
- values: (string | number | boolean | null)[];
1166
- target: {
1167
- type: DimensionType | MetricType;
1168
- fieldId: string;
1169
- };
1170
- id: string;
2023
+ values: 1[];
1171
2024
  settings: {
1172
- completed: boolean;
1173
- unitOfTime: UnitOfTime;
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">;
2025
+ completed: false;
2026
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2027
+ };
2028
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2029
+ }>, z.ZodObject<{
2030
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>]>;
2031
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
2032
+ }, "strip", z.ZodTypeAny, {
2033
+ values: string[];
2034
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2035
+ }, {
2036
+ values: string[];
2037
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2038
+ }>, z.ZodObject<{
2039
+ operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
2040
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
2041
+ }, "strip", z.ZodTypeAny, {
2042
+ values: string[];
2043
+ operator: FilterOperator.IN_BETWEEN;
2044
+ }, {
2045
+ values: string[];
2046
+ operator: FilterOperator.IN_BETWEEN;
2047
+ }>]>]>;
1177
2048
  }, "strip", z.ZodTypeAny, {
1178
2049
  type: "and" | "or";
1179
- id: string;
1180
- rule: ({
1181
- id: string;
1182
- target: {
1183
- type: DimensionType | MetricType;
1184
- fieldId: string;
1185
- };
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)[];
2050
+ target: {
2051
+ type: DimensionType | MetricType;
2052
+ fieldId: string;
2053
+ };
2054
+ rule: {
2055
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2056
+ } | {
2057
+ values: boolean[];
2058
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2059
+ } | {
2060
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2061
+ } | {
2062
+ values: string[];
2063
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2064
+ } | {
2065
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2066
+ } | {
2067
+ values: number[];
2068
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2069
+ } | {
2070
+ values: number[];
2071
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2072
+ } | {
2073
+ values: number[];
2074
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2075
+ } | {
2076
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2077
+ } | {
2078
+ values: string[];
2079
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2080
+ } | {
2081
+ values: number[];
1188
2082
  settings: {
1189
2083
  completed: boolean;
1190
- unitOfTime: UnitOfTime;
2084
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1191
2085
  };
2086
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1192
2087
  } | {
1193
- id: string;
1194
- target: {
1195
- type: DimensionType | MetricType;
1196
- fieldId: string;
2088
+ values: 1[];
2089
+ settings: {
2090
+ completed: false;
2091
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1197
2092
  };
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;
1201
- })[];
2093
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2094
+ } | {
2095
+ values: string[];
2096
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2097
+ } | {
2098
+ values: string[];
2099
+ operator: FilterOperator.IN_BETWEEN;
2100
+ };
1202
2101
  }, {
1203
2102
  type: "and" | "or";
1204
- id: string;
2103
+ target: {
2104
+ type: DimensionType | MetricType;
2105
+ fieldId: string;
2106
+ };
1205
2107
  rule: {
1206
- values: (string | number | boolean | null)[];
1207
- target: {
1208
- type: DimensionType | MetricType;
1209
- fieldId: string;
1210
- };
1211
- id: string;
1212
- settings: {
1213
- completed: boolean;
1214
- unitOfTime: UnitOfTime;
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: ({
1221
- id: string;
1222
- target: {
1223
- type: DimensionType | MetricType;
1224
- fieldId: string;
1225
- };
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)[];
2108
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2109
+ } | {
2110
+ values: boolean[];
2111
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2112
+ } | {
2113
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2114
+ } | {
2115
+ values: string[];
2116
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2117
+ } | {
2118
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2119
+ } | {
2120
+ values: number[];
2121
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2122
+ } | {
2123
+ values: number[];
2124
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2125
+ } | {
2126
+ values: number[];
2127
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2128
+ } | {
2129
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2130
+ } | {
2131
+ values: string[];
2132
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2133
+ } | {
2134
+ values: number[];
1228
2135
  settings: {
1229
2136
  completed: boolean;
1230
- unitOfTime: UnitOfTime;
2137
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1231
2138
  };
2139
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1232
2140
  } | {
1233
- id: string;
1234
- target: {
1235
- type: DimensionType | MetricType;
1236
- fieldId: string;
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: ({
1246
- id: string;
1247
- target: {
1248
- type: DimensionType | MetricType;
1249
- fieldId: string;
1250
- };
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)[];
2141
+ values: 1[];
1253
2142
  settings: {
1254
- completed: boolean;
1255
- unitOfTime: UnitOfTime;
2143
+ completed: false;
2144
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1256
2145
  };
2146
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1257
2147
  } | {
1258
- id: string;
1259
- target: {
1260
- type: DimensionType | MetricType;
1261
- fieldId: string;
1262
- };
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;
1266
- })[];
1267
- and?: undefined;
1268
- }, {
2148
+ values: string[];
2149
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2150
+ } | {
2151
+ values: string[];
2152
+ operator: FilterOperator.IN_BETWEEN;
2153
+ };
2154
+ }>, FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>, {
1269
2155
  type: "and" | "or";
1270
- id: string;
2156
+ target: {
2157
+ type: DimensionType | MetricType;
2158
+ fieldId: string;
2159
+ };
1271
2160
  rule: {
1272
- values: (string | number | boolean | null)[];
1273
- target: {
1274
- type: DimensionType | MetricType;
1275
- fieldId: string;
1276
- };
1277
- id: string;
2161
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2162
+ } | {
2163
+ values: boolean[];
2164
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2165
+ } | {
2166
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2167
+ } | {
2168
+ values: string[];
2169
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2170
+ } | {
2171
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2172
+ } | {
2173
+ values: number[];
2174
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2175
+ } | {
2176
+ values: number[];
2177
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2178
+ } | {
2179
+ values: number[];
2180
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2181
+ } | {
2182
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2183
+ } | {
2184
+ values: string[];
2185
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2186
+ } | {
2187
+ values: number[];
1278
2188
  settings: {
1279
2189
  completed: boolean;
1280
- unitOfTime: UnitOfTime;
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<{
1286
- id: z.ZodString;
1287
- type: z.ZodEnum<["and", "or"]>;
1288
- rule: z.ZodArray<z.ZodEffects<z.ZodObject<{
1289
- id: z.ZodString;
1290
- target: z.ZodObject<{
1291
- fieldId: z.ZodString;
1292
- 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>]>]>;
1293
- }, "strip", z.ZodTypeAny, {
1294
- type: DimensionType | MetricType;
1295
- fieldId: string;
1296
- }, {
1297
- type: DimensionType | MetricType;
1298
- fieldId: string;
1299
- }>;
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>]>]>;
1301
- values: z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">;
1302
- settings: z.ZodNullable<z.ZodObject<{
2190
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2191
+ };
2192
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
2193
+ } | {
2194
+ values: 1[];
2195
+ settings: {
2196
+ completed: false;
2197
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2198
+ };
2199
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2200
+ } | {
2201
+ values: string[];
2202
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2203
+ } | {
2204
+ values: string[];
2205
+ operator: FilterOperator.IN_BETWEEN;
2206
+ };
2207
+ }>, "many">>;
2208
+ metrics: z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
2209
+ type: z.ZodEnum<["or", "and"]>;
2210
+ target: z.ZodObject<{
2211
+ fieldId: z.ZodString;
2212
+ 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>]>]>;
2213
+ }, "strip", z.ZodTypeAny, {
2214
+ type: DimensionType | MetricType;
2215
+ fieldId: string;
2216
+ }, {
2217
+ type: DimensionType | MetricType;
2218
+ fieldId: string;
2219
+ }>;
2220
+ rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2221
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
2222
+ }, "strip", z.ZodTypeAny, {
2223
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2224
+ }, {
2225
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2226
+ }>, z.ZodObject<{
2227
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
2228
+ values: z.ZodArray<z.ZodBoolean, "many">;
2229
+ }, "strip", z.ZodTypeAny, {
2230
+ values: boolean[];
2231
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2232
+ }, {
2233
+ values: boolean[];
2234
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2235
+ }>]>, z.ZodUnion<[z.ZodObject<{
2236
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
2237
+ }, "strip", z.ZodTypeAny, {
2238
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2239
+ }, {
2240
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2241
+ }>, z.ZodObject<{
2242
+ operator: z.ZodUnion<[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>]>;
2243
+ values: z.ZodArray<z.ZodString, "many">;
2244
+ }, "strip", z.ZodTypeAny, {
2245
+ values: string[];
2246
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2247
+ }, {
2248
+ values: string[];
2249
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2250
+ }>]>, z.ZodUnion<[z.ZodObject<{
2251
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
2252
+ }, "strip", z.ZodTypeAny, {
2253
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2254
+ }, {
2255
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2256
+ }>, z.ZodObject<{
2257
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
2258
+ values: z.ZodArray<z.ZodNumber, "many">;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ values: number[];
2261
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2262
+ }, {
2263
+ values: number[];
2264
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2265
+ }>, z.ZodObject<{
2266
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
2267
+ values: z.ZodArray<z.ZodNumber, "many">;
2268
+ }, "strip", z.ZodTypeAny, {
2269
+ values: number[];
2270
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2271
+ }, {
2272
+ values: number[];
2273
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2274
+ }>, z.ZodObject<{
2275
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
2276
+ values: z.ZodArray<z.ZodNumber, "many">;
2277
+ }, "strip", z.ZodTypeAny, {
2278
+ values: number[];
2279
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2280
+ }, {
2281
+ values: number[];
2282
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2283
+ }>]>, z.ZodUnion<[z.ZodObject<{
2284
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
2285
+ }, "strip", z.ZodTypeAny, {
2286
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2287
+ }, {
2288
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2289
+ }>, z.ZodObject<{
2290
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
2291
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ values: string[];
2294
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2295
+ }, {
2296
+ values: string[];
2297
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2298
+ }>, z.ZodObject<{
2299
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
2300
+ values: z.ZodArray<z.ZodNumber, "many">;
2301
+ settings: z.ZodObject<{
1303
2302
  completed: z.ZodBoolean;
1304
- unitOfTime: z.ZodNativeEnum<typeof UnitOfTime>;
2303
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
1305
2304
  }, "strip", z.ZodTypeAny, {
1306
2305
  completed: boolean;
1307
- unitOfTime: UnitOfTime;
2306
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1308
2307
  }, {
1309
2308
  completed: boolean;
1310
- unitOfTime: UnitOfTime;
1311
- }>>;
2309
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2310
+ }>;
1312
2311
  }, "strip", z.ZodTypeAny, {
1313
- values: (string | number | boolean | null)[];
1314
- target: {
1315
- type: DimensionType | MetricType;
1316
- fieldId: string;
1317
- };
1318
- id: string;
2312
+ values: number[];
1319
2313
  settings: {
1320
2314
  completed: boolean;
1321
- unitOfTime: UnitOfTime;
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;
1324
- }, {
1325
- values: (string | number | boolean | null)[];
1326
- target: {
1327
- type: DimensionType | MetricType;
1328
- fieldId: string;
2315
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1329
2316
  };
1330
- id: string;
1331
- settings: {
1332
- completed: boolean;
1333
- unitOfTime: UnitOfTime;
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
- }>, {
1337
- id: string;
1338
- target: {
1339
- type: DimensionType | MetricType;
1340
- fieldId: string;
1341
- };
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)[];
2317
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
2318
+ }, {
2319
+ values: number[];
1344
2320
  settings: {
1345
2321
  completed: boolean;
1346
- unitOfTime: UnitOfTime;
2322
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1347
2323
  };
1348
- } | {
1349
- id: string;
1350
- target: {
1351
- type: DimensionType | MetricType;
1352
- fieldId: string;
2324
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
2325
+ }>, z.ZodObject<{
2326
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
2327
+ values: z.ZodArray<z.ZodLiteral<1>, "many">;
2328
+ settings: z.ZodObject<{
2329
+ completed: z.ZodLiteral<false>;
2330
+ unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
2331
+ }, "strip", z.ZodTypeAny, {
2332
+ completed: false;
2333
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2334
+ }, {
2335
+ completed: false;
2336
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2337
+ }>;
2338
+ }, "strip", z.ZodTypeAny, {
2339
+ values: 1[];
2340
+ settings: {
2341
+ completed: false;
2342
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1353
2343
  };
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;
2344
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1357
2345
  }, {
1358
- values: (string | number | boolean | null)[];
1359
- target: {
1360
- type: DimensionType | MetricType;
1361
- fieldId: string;
1362
- };
1363
- id: string;
2346
+ values: 1[];
1364
2347
  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">;
2348
+ completed: false;
2349
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2350
+ };
2351
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2352
+ }>, z.ZodObject<{
2353
+ operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.LESS_THAN_OR_EQUAL>, z.ZodLiteral<FilterOperator.GREATER_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN_OR_EQUAL>]>;
2354
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
2355
+ }, "strip", z.ZodTypeAny, {
2356
+ values: string[];
2357
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2358
+ }, {
2359
+ values: string[];
2360
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2361
+ }>, z.ZodObject<{
2362
+ operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
2363
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ values: string[];
2366
+ operator: FilterOperator.IN_BETWEEN;
2367
+ }, {
2368
+ values: string[];
2369
+ operator: FilterOperator.IN_BETWEEN;
2370
+ }>]>]>;
1370
2371
  }, "strip", z.ZodTypeAny, {
1371
2372
  type: "and" | "or";
1372
- id: string;
1373
- rule: ({
1374
- id: string;
1375
- target: {
1376
- type: DimensionType | MetricType;
1377
- fieldId: string;
1378
- };
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)[];
2373
+ target: {
2374
+ type: DimensionType | MetricType;
2375
+ fieldId: string;
2376
+ };
2377
+ rule: {
2378
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2379
+ } | {
2380
+ values: boolean[];
2381
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2382
+ } | {
2383
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2384
+ } | {
2385
+ values: string[];
2386
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2387
+ } | {
2388
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2389
+ } | {
2390
+ values: number[];
2391
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2392
+ } | {
2393
+ values: number[];
2394
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2395
+ } | {
2396
+ values: number[];
2397
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2398
+ } | {
2399
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2400
+ } | {
2401
+ values: string[];
2402
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2403
+ } | {
2404
+ values: number[];
1381
2405
  settings: {
1382
2406
  completed: boolean;
1383
- unitOfTime: UnitOfTime;
2407
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1384
2408
  };
2409
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1385
2410
  } | {
1386
- id: string;
1387
- target: {
1388
- type: DimensionType | MetricType;
1389
- fieldId: string;
2411
+ values: 1[];
2412
+ settings: {
2413
+ completed: false;
2414
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1390
2415
  };
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
- })[];
2416
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2417
+ } | {
2418
+ values: string[];
2419
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2420
+ } | {
2421
+ values: string[];
2422
+ operator: FilterOperator.IN_BETWEEN;
2423
+ };
1395
2424
  }, {
1396
2425
  type: "and" | "or";
1397
- id: string;
2426
+ target: {
2427
+ type: DimensionType | MetricType;
2428
+ fieldId: string;
2429
+ };
1398
2430
  rule: {
1399
- values: (string | number | boolean | null)[];
1400
- target: {
1401
- type: DimensionType | MetricType;
1402
- fieldId: string;
1403
- };
1404
- id: string;
1405
- settings: {
1406
- completed: boolean;
1407
- unitOfTime: UnitOfTime;
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
- }>, {
1412
- id: string;
1413
- and: ({
1414
- id: string;
1415
- target: {
1416
- type: DimensionType | MetricType;
1417
- fieldId: string;
1418
- };
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)[];
2431
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2432
+ } | {
2433
+ values: boolean[];
2434
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2435
+ } | {
2436
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2437
+ } | {
2438
+ values: string[];
2439
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2440
+ } | {
2441
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2442
+ } | {
2443
+ values: number[];
2444
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2445
+ } | {
2446
+ values: number[];
2447
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2448
+ } | {
2449
+ values: number[];
2450
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2451
+ } | {
2452
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2453
+ } | {
2454
+ values: string[];
2455
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2456
+ } | {
2457
+ values: number[];
1421
2458
  settings: {
1422
2459
  completed: boolean;
1423
- unitOfTime: UnitOfTime;
2460
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1424
2461
  };
2462
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1425
2463
  } | {
1426
- id: string;
1427
- target: {
1428
- type: DimensionType | MetricType;
1429
- fieldId: string;
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: ({
1439
- id: string;
1440
- target: {
1441
- type: DimensionType | MetricType;
1442
- fieldId: string;
1443
- };
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)[];
2464
+ values: 1[];
1446
2465
  settings: {
1447
- completed: boolean;
1448
- unitOfTime: UnitOfTime;
2466
+ completed: false;
2467
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1449
2468
  };
2469
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1450
2470
  } | {
1451
- id: string;
1452
- target: {
1453
- type: DimensionType | MetricType;
1454
- fieldId: string;
1455
- };
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
- }, {
2471
+ values: string[];
2472
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2473
+ } | {
2474
+ values: string[];
2475
+ operator: FilterOperator.IN_BETWEEN;
2476
+ };
2477
+ }>, FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>, {
1462
2478
  type: "and" | "or";
1463
- id: string;
2479
+ target: {
2480
+ type: DimensionType | MetricType;
2481
+ fieldId: string;
2482
+ };
1464
2483
  rule: {
1465
- values: (string | number | boolean | null)[];
1466
- target: {
1467
- type: DimensionType | MetricType;
1468
- fieldId: string;
1469
- };
1470
- id: string;
2484
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2485
+ } | {
2486
+ values: boolean[];
2487
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2488
+ } | {
2489
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2490
+ } | {
2491
+ values: string[];
2492
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2493
+ } | {
2494
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2495
+ } | {
2496
+ values: number[];
2497
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2498
+ } | {
2499
+ values: number[];
2500
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2501
+ } | {
2502
+ values: number[];
2503
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2504
+ } | {
2505
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2506
+ } | {
2507
+ values: string[];
2508
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2509
+ } | {
2510
+ values: number[];
1471
2511
  settings: {
1472
2512
  completed: boolean;
1473
- unitOfTime: UnitOfTime;
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, {
1479
- dimensions: {
1480
- id: string;
1481
- and: ({
1482
- id: string;
1483
- target: {
1484
- type: DimensionType | MetricType;
1485
- fieldId: string;
2513
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1486
2514
  };
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)[];
2515
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
2516
+ } | {
2517
+ values: 1[];
1489
2518
  settings: {
1490
- completed: boolean;
1491
- unitOfTime: UnitOfTime;
2519
+ completed: false;
2520
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1492
2521
  };
2522
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1493
2523
  } | {
1494
- id: string;
1495
- target: {
1496
- type: DimensionType | MetricType;
1497
- fieldId: string;
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: ({
1507
- id: string;
1508
- target: {
1509
- type: DimensionType | MetricType;
1510
- fieldId: string;
1511
- };
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)[];
2524
+ values: string[];
2525
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2526
+ } | {
2527
+ values: string[];
2528
+ operator: FilterOperator.IN_BETWEEN;
2529
+ };
2530
+ }>, "many">>;
2531
+ }, "strip", z.ZodTypeAny, {
2532
+ type: "and" | "or";
2533
+ dimensions: FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>[] | null;
2534
+ metrics: FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>[] | null;
2535
+ }, {
2536
+ type: "and" | "or";
2537
+ dimensions: {
2538
+ type: "and" | "or";
2539
+ target: {
2540
+ type: DimensionType | MetricType;
2541
+ fieldId: string;
2542
+ };
2543
+ rule: {
2544
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2545
+ } | {
2546
+ values: boolean[];
2547
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2548
+ } | {
2549
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2550
+ } | {
2551
+ values: string[];
2552
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2553
+ } | {
2554
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2555
+ } | {
2556
+ values: number[];
2557
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2558
+ } | {
2559
+ values: number[];
2560
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2561
+ } | {
2562
+ values: number[];
2563
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2564
+ } | {
2565
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2566
+ } | {
2567
+ values: string[];
2568
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2569
+ } | {
2570
+ values: number[];
1514
2571
  settings: {
1515
2572
  completed: boolean;
1516
- unitOfTime: UnitOfTime;
2573
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1517
2574
  };
2575
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1518
2576
  } | {
1519
- id: string;
1520
- target: {
1521
- type: DimensionType | MetricType;
1522
- fieldId: string;
2577
+ values: 1[];
2578
+ settings: {
2579
+ completed: false;
2580
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1523
2581
  };
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;
1527
- })[];
1528
- and?: undefined;
1529
- } | null;
2582
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2583
+ } | {
2584
+ values: string[];
2585
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2586
+ } | {
2587
+ values: string[];
2588
+ operator: FilterOperator.IN_BETWEEN;
2589
+ };
2590
+ }[] | null;
1530
2591
  metrics: {
1531
- id: string;
1532
- and: ({
1533
- id: string;
1534
- target: {
1535
- type: DimensionType | MetricType;
1536
- fieldId: string;
1537
- };
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)[];
2592
+ type: "and" | "or";
2593
+ target: {
2594
+ type: DimensionType | MetricType;
2595
+ fieldId: string;
2596
+ };
2597
+ rule: {
2598
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2599
+ } | {
2600
+ values: boolean[];
2601
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2602
+ } | {
2603
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2604
+ } | {
2605
+ values: string[];
2606
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2607
+ } | {
2608
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2609
+ } | {
2610
+ values: number[];
2611
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2612
+ } | {
2613
+ values: number[];
2614
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2615
+ } | {
2616
+ values: number[];
2617
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2618
+ } | {
2619
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2620
+ } | {
2621
+ values: string[];
2622
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2623
+ } | {
2624
+ values: number[];
1540
2625
  settings: {
1541
2626
  completed: boolean;
1542
- unitOfTime: UnitOfTime;
2627
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1543
2628
  };
2629
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
1544
2630
  } | {
1545
- id: string;
1546
- target: {
1547
- type: DimensionType | MetricType;
1548
- fieldId: string;
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: ({
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)[];
2631
+ values: 1[];
1565
2632
  settings: {
1566
- completed: boolean;
1567
- unitOfTime: UnitOfTime;
2633
+ completed: false;
2634
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
1568
2635
  };
2636
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
1569
2637
  } | {
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;
1578
- })[];
1579
- and?: undefined;
1580
- } | null;
1581
- }, {
2638
+ values: string[];
2639
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2640
+ } | {
2641
+ values: string[];
2642
+ operator: FilterOperator.IN_BETWEEN;
2643
+ };
2644
+ }[] | null;
2645
+ }>, Filters, {
2646
+ type: "and" | "or";
1582
2647
  dimensions: {
1583
2648
  type: "and" | "or";
1584
- id: string;
2649
+ target: {
2650
+ type: DimensionType | MetricType;
2651
+ fieldId: string;
2652
+ };
1585
2653
  rule: {
1586
- values: (string | number | boolean | null)[];
1587
- target: {
1588
- type: DimensionType | MetricType;
1589
- fieldId: string;
1590
- };
1591
- id: string;
2654
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2655
+ } | {
2656
+ values: boolean[];
2657
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2658
+ } | {
2659
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2660
+ } | {
2661
+ values: string[];
2662
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2663
+ } | {
2664
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2665
+ } | {
2666
+ values: number[];
2667
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2668
+ } | {
2669
+ values: number[];
2670
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2671
+ } | {
2672
+ values: number[];
2673
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2674
+ } | {
2675
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2676
+ } | {
2677
+ values: string[];
2678
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2679
+ } | {
2680
+ values: number[];
1592
2681
  settings: {
1593
2682
  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;
2683
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2684
+ };
2685
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
2686
+ } | {
2687
+ values: 1[];
2688
+ settings: {
2689
+ completed: false;
2690
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2691
+ };
2692
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2693
+ } | {
2694
+ values: string[];
2695
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2696
+ } | {
2697
+ values: string[];
2698
+ operator: FilterOperator.IN_BETWEEN;
2699
+ };
2700
+ }[] | null;
1599
2701
  metrics: {
1600
2702
  type: "and" | "or";
1601
- id: string;
2703
+ target: {
2704
+ type: DimensionType | MetricType;
2705
+ fieldId: string;
2706
+ };
1602
2707
  rule: {
1603
- values: (string | number | boolean | null)[];
1604
- target: {
1605
- type: DimensionType | MetricType;
1606
- fieldId: string;
1607
- };
1608
- id: string;
2708
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2709
+ } | {
2710
+ values: boolean[];
2711
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2712
+ } | {
2713
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2714
+ } | {
2715
+ values: string[];
2716
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2717
+ } | {
2718
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2719
+ } | {
2720
+ values: number[];
2721
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2722
+ } | {
2723
+ values: number[];
2724
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2725
+ } | {
2726
+ values: number[];
2727
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2728
+ } | {
2729
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2730
+ } | {
2731
+ values: string[];
2732
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2733
+ } | {
2734
+ values: number[];
1609
2735
  settings: {
1610
2736
  completed: boolean;
1611
- unitOfTime: UnitOfTime;
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
- }[];
1615
- } | null;
2737
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2738
+ };
2739
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
2740
+ } | {
2741
+ values: 1[];
2742
+ settings: {
2743
+ completed: false;
2744
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2745
+ };
2746
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2747
+ } | {
2748
+ values: string[];
2749
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2750
+ } | {
2751
+ values: string[];
2752
+ operator: FilterOperator.IN_BETWEEN;
2753
+ };
2754
+ }[] | null;
1616
2755
  }>;
1617
2756
  sorts: z.ZodArray<z.ZodObject<{
1618
2757
  fieldId: z.ZodString;
@@ -1626,110 +2765,7 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1626
2765
  }>, "many">;
1627
2766
  limit: z.ZodNumber;
1628
2767
  }, "strip", z.ZodTypeAny, {
1629
- filters: {
1630
- dimensions: {
1631
- id: string;
1632
- and: ({
1633
- id: string;
1634
- target: {
1635
- type: DimensionType | MetricType;
1636
- fieldId: string;
1637
- };
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)[];
1640
- settings: {
1641
- completed: boolean;
1642
- unitOfTime: UnitOfTime;
1643
- };
1644
- } | {
1645
- id: string;
1646
- target: {
1647
- type: DimensionType | MetricType;
1648
- fieldId: string;
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: ({
1658
- id: string;
1659
- target: {
1660
- type: DimensionType | MetricType;
1661
- fieldId: string;
1662
- };
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)[];
1665
- settings: {
1666
- completed: boolean;
1667
- unitOfTime: UnitOfTime;
1668
- };
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;
1678
- })[];
1679
- and?: undefined;
1680
- } | null;
1681
- metrics: {
1682
- id: string;
1683
- and: ({
1684
- id: string;
1685
- target: {
1686
- type: DimensionType | MetricType;
1687
- fieldId: string;
1688
- };
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)[];
1691
- settings: {
1692
- completed: boolean;
1693
- unitOfTime: UnitOfTime;
1694
- };
1695
- } | {
1696
- id: string;
1697
- target: {
1698
- type: DimensionType | MetricType;
1699
- fieldId: string;
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: ({
1709
- id: string;
1710
- target: {
1711
- type: DimensionType | MetricType;
1712
- fieldId: string;
1713
- };
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)[];
1716
- settings: {
1717
- completed: boolean;
1718
- unitOfTime: UnitOfTime;
1719
- };
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;
1729
- })[];
1730
- and?: undefined;
1731
- } | null;
1732
- };
2768
+ filters: Filters;
1733
2769
  exploreName: string;
1734
2770
  dimensions: string[];
1735
2771
  metrics: string[];
@@ -1740,40 +2776,115 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1740
2776
  limit: number;
1741
2777
  }, {
1742
2778
  filters: {
2779
+ type: "and" | "or";
1743
2780
  dimensions: {
1744
2781
  type: "and" | "or";
1745
- id: string;
2782
+ target: {
2783
+ type: DimensionType | MetricType;
2784
+ fieldId: string;
2785
+ };
1746
2786
  rule: {
1747
- values: (string | number | boolean | null)[];
1748
- target: {
1749
- type: DimensionType | MetricType;
1750
- fieldId: string;
1751
- };
1752
- id: string;
2787
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2788
+ } | {
2789
+ values: boolean[];
2790
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2791
+ } | {
2792
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2793
+ } | {
2794
+ values: string[];
2795
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2796
+ } | {
2797
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2798
+ } | {
2799
+ values: number[];
2800
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2801
+ } | {
2802
+ values: number[];
2803
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2804
+ } | {
2805
+ values: number[];
2806
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2807
+ } | {
2808
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2809
+ } | {
2810
+ values: string[];
2811
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2812
+ } | {
2813
+ values: number[];
1753
2814
  settings: {
1754
2815
  completed: boolean;
1755
- unitOfTime: UnitOfTime;
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
- }[];
1759
- } | null;
2816
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2817
+ };
2818
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
2819
+ } | {
2820
+ values: 1[];
2821
+ settings: {
2822
+ completed: false;
2823
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2824
+ };
2825
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2826
+ } | {
2827
+ values: string[];
2828
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2829
+ } | {
2830
+ values: string[];
2831
+ operator: FilterOperator.IN_BETWEEN;
2832
+ };
2833
+ }[] | null;
1760
2834
  metrics: {
1761
2835
  type: "and" | "or";
1762
- id: string;
2836
+ target: {
2837
+ type: DimensionType | MetricType;
2838
+ fieldId: string;
2839
+ };
1763
2840
  rule: {
1764
- values: (string | number | boolean | null)[];
1765
- target: {
1766
- type: DimensionType | MetricType;
1767
- fieldId: string;
1768
- };
1769
- id: string;
2841
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2842
+ } | {
2843
+ values: boolean[];
2844
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2845
+ } | {
2846
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2847
+ } | {
2848
+ values: string[];
2849
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
2850
+ } | {
2851
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2852
+ } | {
2853
+ values: number[];
2854
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2855
+ } | {
2856
+ values: number[];
2857
+ operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
2858
+ } | {
2859
+ values: number[];
2860
+ operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
2861
+ } | {
2862
+ operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
2863
+ } | {
2864
+ values: string[];
2865
+ operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
2866
+ } | {
2867
+ values: number[];
1770
2868
  settings: {
1771
2869
  completed: boolean;
1772
- unitOfTime: UnitOfTime;
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
- }[];
1776
- } | null;
2870
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2871
+ };
2872
+ operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
2873
+ } | {
2874
+ values: 1[];
2875
+ settings: {
2876
+ completed: false;
2877
+ unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
2878
+ };
2879
+ operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
2880
+ } | {
2881
+ values: string[];
2882
+ operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
2883
+ } | {
2884
+ values: string[];
2885
+ operator: FilterOperator.IN_BETWEEN;
2886
+ };
2887
+ }[] | null;
1777
2888
  };
1778
2889
  exploreName: string;
1779
2890
  dimensions: string[];
@@ -1946,5 +3057,4 @@ export declare const csvFileVizConfigSchema: z.ZodObject<{
1946
3057
  }[];
1947
3058
  }>;
1948
3059
  export type CsvFileVizConfigSchemaType = z.infer<typeof csvFileVizConfigSchema>;
1949
- export {};
1950
3060
  //# sourceMappingURL=schemas.d.ts.map