@lightdash/common 0.1763.0 → 0.1764.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.
- package/dist/cjs/ee/Ai/schemas.d.ts +2305 -387
- package/dist/cjs/ee/Ai/schemas.d.ts.map +1 -1
- package/dist/cjs/ee/Ai/schemas.js +32 -12
- package/dist/cjs/ee/Ai/schemas.js.map +1 -1
- package/dist/esm/ee/Ai/schemas.d.ts +2305 -387
- package/dist/esm/ee/Ai/schemas.d.ts.map +1 -1
- package/dist/esm/ee/Ai/schemas.js +31 -11
- package/dist/esm/ee/Ai/schemas.js.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ee/Ai/schemas.d.ts +2305 -387
- package/dist/types/ee/Ai/schemas.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DimensionType, MetricType } from '../../types/field';
|
|
3
3
|
import { FilterOperator, type FilterRule, type Filters, UnitOfTime } from '../../types/filter';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Raw schema for filters with raw filter rule schema
|
|
6
|
+
*/
|
|
7
|
+
export declare const filtersSchema: z.ZodObject<{
|
|
5
8
|
type: z.ZodEnum<["and", "or"]>;
|
|
6
|
-
dimensions: z.ZodNullable<z.ZodArray<z.
|
|
9
|
+
dimensions: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
10
|
type: z.ZodEnum<["or", "and"]>;
|
|
8
11
|
target: z.ZodObject<{
|
|
9
12
|
fieldId: z.ZodString;
|
|
@@ -272,61 +275,8 @@ export declare const filtersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
272
275
|
values: string[];
|
|
273
276
|
operator: FilterOperator.IN_BETWEEN;
|
|
274
277
|
};
|
|
275
|
-
}>, FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>, {
|
|
276
|
-
type: "and" | "or";
|
|
277
|
-
target: {
|
|
278
|
-
type: DimensionType | MetricType;
|
|
279
|
-
fieldId: string;
|
|
280
|
-
};
|
|
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;
|
|
327
|
-
};
|
|
328
278
|
}>, "many">>;
|
|
329
|
-
metrics: z.ZodNullable<z.ZodArray<z.
|
|
279
|
+
metrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
330
280
|
type: z.ZodEnum<["or", "and"]>;
|
|
331
281
|
target: z.ZodObject<{
|
|
332
282
|
fieldId: z.ZodString;
|
|
@@ -595,7 +545,10 @@ export declare const filtersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
595
545
|
values: string[];
|
|
596
546
|
operator: FilterOperator.IN_BETWEEN;
|
|
597
547
|
};
|
|
598
|
-
}>,
|
|
548
|
+
}>, "many">>;
|
|
549
|
+
}, "strip", z.ZodTypeAny, {
|
|
550
|
+
type: "and" | "or";
|
|
551
|
+
dimensions: {
|
|
599
552
|
type: "and" | "or";
|
|
600
553
|
target: {
|
|
601
554
|
type: DimensionType | MetricType;
|
|
@@ -648,14 +601,8 @@ export declare const filtersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
648
601
|
values: string[];
|
|
649
602
|
operator: FilterOperator.IN_BETWEEN;
|
|
650
603
|
};
|
|
651
|
-
}
|
|
652
|
-
|
|
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: {
|
|
604
|
+
}[] | null;
|
|
605
|
+
metrics: {
|
|
659
606
|
type: "and" | "or";
|
|
660
607
|
target: {
|
|
661
608
|
type: DimensionType | MetricType;
|
|
@@ -709,7 +656,9 @@ export declare const filtersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
709
656
|
operator: FilterOperator.IN_BETWEEN;
|
|
710
657
|
};
|
|
711
658
|
}[] | null;
|
|
712
|
-
|
|
659
|
+
}, {
|
|
660
|
+
type: "and" | "or";
|
|
661
|
+
dimensions: {
|
|
713
662
|
type: "and" | "or";
|
|
714
663
|
target: {
|
|
715
664
|
type: DimensionType | MetricType;
|
|
@@ -763,9 +712,7 @@ export declare const filtersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
763
712
|
operator: FilterOperator.IN_BETWEEN;
|
|
764
713
|
};
|
|
765
714
|
}[] | null;
|
|
766
|
-
|
|
767
|
-
type: "and" | "or";
|
|
768
|
-
dimensions: {
|
|
715
|
+
metrics: {
|
|
769
716
|
type: "and" | "or";
|
|
770
717
|
target: {
|
|
771
718
|
type: DimensionType | MetricType;
|
|
@@ -819,7 +766,176 @@ export declare const filtersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
819
766
|
operator: FilterOperator.IN_BETWEEN;
|
|
820
767
|
};
|
|
821
768
|
}[] | null;
|
|
822
|
-
|
|
769
|
+
}>;
|
|
770
|
+
/**
|
|
771
|
+
* Final output schema for filters that are passed to the query.
|
|
772
|
+
*/
|
|
773
|
+
export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodObject<{
|
|
774
|
+
type: z.ZodEnum<["and", "or"]>;
|
|
775
|
+
dimensions: z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
776
|
+
type: z.ZodEnum<["or", "and"]>;
|
|
777
|
+
target: z.ZodObject<{
|
|
778
|
+
fieldId: z.ZodString;
|
|
779
|
+
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>]>]>;
|
|
780
|
+
}, "strip", z.ZodTypeAny, {
|
|
781
|
+
type: DimensionType | MetricType;
|
|
782
|
+
fieldId: string;
|
|
783
|
+
}, {
|
|
784
|
+
type: DimensionType | MetricType;
|
|
785
|
+
fieldId: string;
|
|
786
|
+
}>;
|
|
787
|
+
rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
788
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
789
|
+
}, "strip", z.ZodTypeAny, {
|
|
790
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
791
|
+
}, {
|
|
792
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
793
|
+
}>, z.ZodObject<{
|
|
794
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
795
|
+
values: z.ZodArray<z.ZodBoolean, "many">;
|
|
796
|
+
}, "strip", z.ZodTypeAny, {
|
|
797
|
+
values: boolean[];
|
|
798
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
799
|
+
}, {
|
|
800
|
+
values: boolean[];
|
|
801
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
802
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
803
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
804
|
+
}, "strip", z.ZodTypeAny, {
|
|
805
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
806
|
+
}, {
|
|
807
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
808
|
+
}>, z.ZodObject<{
|
|
809
|
+
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>]>;
|
|
810
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
811
|
+
}, "strip", z.ZodTypeAny, {
|
|
812
|
+
values: string[];
|
|
813
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
814
|
+
}, {
|
|
815
|
+
values: string[];
|
|
816
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
817
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
818
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
819
|
+
}, "strip", z.ZodTypeAny, {
|
|
820
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
821
|
+
}, {
|
|
822
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
823
|
+
}>, z.ZodObject<{
|
|
824
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
825
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
826
|
+
}, "strip", z.ZodTypeAny, {
|
|
827
|
+
values: number[];
|
|
828
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
829
|
+
}, {
|
|
830
|
+
values: number[];
|
|
831
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
832
|
+
}>, z.ZodObject<{
|
|
833
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
|
|
834
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
835
|
+
}, "strip", z.ZodTypeAny, {
|
|
836
|
+
values: number[];
|
|
837
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
838
|
+
}, {
|
|
839
|
+
values: number[];
|
|
840
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
841
|
+
}>, z.ZodObject<{
|
|
842
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
|
|
843
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
844
|
+
}, "strip", z.ZodTypeAny, {
|
|
845
|
+
values: number[];
|
|
846
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
847
|
+
}, {
|
|
848
|
+
values: number[];
|
|
849
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
850
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
851
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
852
|
+
}, "strip", z.ZodTypeAny, {
|
|
853
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
854
|
+
}, {
|
|
855
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
856
|
+
}>, z.ZodObject<{
|
|
857
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
858
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
859
|
+
}, "strip", z.ZodTypeAny, {
|
|
860
|
+
values: string[];
|
|
861
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
862
|
+
}, {
|
|
863
|
+
values: string[];
|
|
864
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
865
|
+
}>, z.ZodObject<{
|
|
866
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
|
|
867
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
868
|
+
settings: z.ZodObject<{
|
|
869
|
+
completed: z.ZodBoolean;
|
|
870
|
+
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
871
|
+
}, "strip", z.ZodTypeAny, {
|
|
872
|
+
completed: boolean;
|
|
873
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
874
|
+
}, {
|
|
875
|
+
completed: boolean;
|
|
876
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
877
|
+
}>;
|
|
878
|
+
}, "strip", z.ZodTypeAny, {
|
|
879
|
+
values: number[];
|
|
880
|
+
settings: {
|
|
881
|
+
completed: boolean;
|
|
882
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
883
|
+
};
|
|
884
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
885
|
+
}, {
|
|
886
|
+
values: number[];
|
|
887
|
+
settings: {
|
|
888
|
+
completed: boolean;
|
|
889
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
890
|
+
};
|
|
891
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
892
|
+
}>, z.ZodObject<{
|
|
893
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
|
|
894
|
+
values: z.ZodArray<z.ZodLiteral<1>, "many">;
|
|
895
|
+
settings: z.ZodObject<{
|
|
896
|
+
completed: z.ZodLiteral<false>;
|
|
897
|
+
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
898
|
+
}, "strip", z.ZodTypeAny, {
|
|
899
|
+
completed: false;
|
|
900
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
901
|
+
}, {
|
|
902
|
+
completed: false;
|
|
903
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
904
|
+
}>;
|
|
905
|
+
}, "strip", z.ZodTypeAny, {
|
|
906
|
+
values: 1[];
|
|
907
|
+
settings: {
|
|
908
|
+
completed: false;
|
|
909
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
910
|
+
};
|
|
911
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
912
|
+
}, {
|
|
913
|
+
values: 1[];
|
|
914
|
+
settings: {
|
|
915
|
+
completed: false;
|
|
916
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
917
|
+
};
|
|
918
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
919
|
+
}>, z.ZodObject<{
|
|
920
|
+
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>]>;
|
|
921
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
922
|
+
}, "strip", z.ZodTypeAny, {
|
|
923
|
+
values: string[];
|
|
924
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
925
|
+
}, {
|
|
926
|
+
values: string[];
|
|
927
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
928
|
+
}>, z.ZodObject<{
|
|
929
|
+
operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
|
|
930
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
931
|
+
}, "strip", z.ZodTypeAny, {
|
|
932
|
+
values: string[];
|
|
933
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
934
|
+
}, {
|
|
935
|
+
values: string[];
|
|
936
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
937
|
+
}>]>]>;
|
|
938
|
+
}, "strip", z.ZodTypeAny, {
|
|
823
939
|
type: "and" | "or";
|
|
824
940
|
target: {
|
|
825
941
|
type: DimensionType | MetricType;
|
|
@@ -872,19 +988,1686 @@ export declare const filtersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
872
988
|
values: string[];
|
|
873
989
|
operator: FilterOperator.IN_BETWEEN;
|
|
874
990
|
};
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
991
|
+
}, {
|
|
992
|
+
type: "and" | "or";
|
|
993
|
+
target: {
|
|
994
|
+
type: DimensionType | MetricType;
|
|
995
|
+
fieldId: string;
|
|
996
|
+
};
|
|
997
|
+
rule: {
|
|
998
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
999
|
+
} | {
|
|
1000
|
+
values: boolean[];
|
|
1001
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1002
|
+
} | {
|
|
1003
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1004
|
+
} | {
|
|
1005
|
+
values: string[];
|
|
1006
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1007
|
+
} | {
|
|
1008
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1009
|
+
} | {
|
|
1010
|
+
values: number[];
|
|
1011
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1012
|
+
} | {
|
|
1013
|
+
values: number[];
|
|
1014
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1015
|
+
} | {
|
|
1016
|
+
values: number[];
|
|
1017
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1018
|
+
} | {
|
|
1019
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1020
|
+
} | {
|
|
1021
|
+
values: string[];
|
|
1022
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1023
|
+
} | {
|
|
1024
|
+
values: number[];
|
|
1025
|
+
settings: {
|
|
1026
|
+
completed: boolean;
|
|
1027
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1028
|
+
};
|
|
1029
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1030
|
+
} | {
|
|
1031
|
+
values: 1[];
|
|
1032
|
+
settings: {
|
|
1033
|
+
completed: false;
|
|
1034
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1035
|
+
};
|
|
1036
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1037
|
+
} | {
|
|
1038
|
+
values: string[];
|
|
1039
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1040
|
+
} | {
|
|
1041
|
+
values: string[];
|
|
1042
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1043
|
+
};
|
|
1044
|
+
}>, FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>, {
|
|
1045
|
+
type: "and" | "or";
|
|
1046
|
+
target: {
|
|
1047
|
+
type: DimensionType | MetricType;
|
|
1048
|
+
fieldId: string;
|
|
1049
|
+
};
|
|
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;
|
|
1096
|
+
};
|
|
1097
|
+
}>, "many">>;
|
|
1098
|
+
metrics: z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1099
|
+
type: z.ZodEnum<["or", "and"]>;
|
|
1100
|
+
target: z.ZodObject<{
|
|
1101
|
+
fieldId: z.ZodString;
|
|
1102
|
+
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>]>]>;
|
|
1103
|
+
}, "strip", z.ZodTypeAny, {
|
|
1104
|
+
type: DimensionType | MetricType;
|
|
1105
|
+
fieldId: string;
|
|
1106
|
+
}, {
|
|
1107
|
+
type: DimensionType | MetricType;
|
|
1108
|
+
fieldId: string;
|
|
1109
|
+
}>;
|
|
1110
|
+
rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
1111
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1112
|
+
}, "strip", z.ZodTypeAny, {
|
|
1113
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1114
|
+
}, {
|
|
1115
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1116
|
+
}>, z.ZodObject<{
|
|
1117
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
1118
|
+
values: z.ZodArray<z.ZodBoolean, "many">;
|
|
1119
|
+
}, "strip", z.ZodTypeAny, {
|
|
1120
|
+
values: boolean[];
|
|
1121
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1122
|
+
}, {
|
|
1123
|
+
values: boolean[];
|
|
1124
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1125
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
1126
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1127
|
+
}, "strip", z.ZodTypeAny, {
|
|
1128
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1129
|
+
}, {
|
|
1130
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1131
|
+
}>, z.ZodObject<{
|
|
1132
|
+
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>]>;
|
|
1133
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
1134
|
+
}, "strip", z.ZodTypeAny, {
|
|
1135
|
+
values: string[];
|
|
1136
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1137
|
+
}, {
|
|
1138
|
+
values: string[];
|
|
1139
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1140
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
1141
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1142
|
+
}, "strip", z.ZodTypeAny, {
|
|
1143
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1144
|
+
}, {
|
|
1145
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1146
|
+
}>, z.ZodObject<{
|
|
1147
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
1148
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1149
|
+
}, "strip", z.ZodTypeAny, {
|
|
1150
|
+
values: number[];
|
|
1151
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1152
|
+
}, {
|
|
1153
|
+
values: number[];
|
|
1154
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1155
|
+
}>, z.ZodObject<{
|
|
1156
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
|
|
1157
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1158
|
+
}, "strip", z.ZodTypeAny, {
|
|
1159
|
+
values: number[];
|
|
1160
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1161
|
+
}, {
|
|
1162
|
+
values: number[];
|
|
1163
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1164
|
+
}>, z.ZodObject<{
|
|
1165
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
|
|
1166
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1167
|
+
}, "strip", z.ZodTypeAny, {
|
|
1168
|
+
values: number[];
|
|
1169
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1170
|
+
}, {
|
|
1171
|
+
values: number[];
|
|
1172
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1173
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
1174
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1175
|
+
}, "strip", z.ZodTypeAny, {
|
|
1176
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1177
|
+
}, {
|
|
1178
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1179
|
+
}>, z.ZodObject<{
|
|
1180
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
1181
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
1182
|
+
}, "strip", z.ZodTypeAny, {
|
|
1183
|
+
values: string[];
|
|
1184
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1185
|
+
}, {
|
|
1186
|
+
values: string[];
|
|
1187
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1188
|
+
}>, z.ZodObject<{
|
|
1189
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
|
|
1190
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1191
|
+
settings: z.ZodObject<{
|
|
1192
|
+
completed: z.ZodBoolean;
|
|
1193
|
+
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
1194
|
+
}, "strip", z.ZodTypeAny, {
|
|
1195
|
+
completed: boolean;
|
|
1196
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1197
|
+
}, {
|
|
1198
|
+
completed: boolean;
|
|
1199
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1200
|
+
}>;
|
|
1201
|
+
}, "strip", z.ZodTypeAny, {
|
|
1202
|
+
values: number[];
|
|
1203
|
+
settings: {
|
|
1204
|
+
completed: boolean;
|
|
1205
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1206
|
+
};
|
|
1207
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1208
|
+
}, {
|
|
1209
|
+
values: number[];
|
|
1210
|
+
settings: {
|
|
1211
|
+
completed: boolean;
|
|
1212
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1213
|
+
};
|
|
1214
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1215
|
+
}>, z.ZodObject<{
|
|
1216
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
|
|
1217
|
+
values: z.ZodArray<z.ZodLiteral<1>, "many">;
|
|
1218
|
+
settings: z.ZodObject<{
|
|
1219
|
+
completed: z.ZodLiteral<false>;
|
|
1220
|
+
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
1221
|
+
}, "strip", z.ZodTypeAny, {
|
|
1222
|
+
completed: false;
|
|
1223
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1224
|
+
}, {
|
|
1225
|
+
completed: false;
|
|
1226
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1227
|
+
}>;
|
|
1228
|
+
}, "strip", z.ZodTypeAny, {
|
|
1229
|
+
values: 1[];
|
|
1230
|
+
settings: {
|
|
1231
|
+
completed: false;
|
|
1232
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1233
|
+
};
|
|
1234
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1235
|
+
}, {
|
|
1236
|
+
values: 1[];
|
|
1237
|
+
settings: {
|
|
1238
|
+
completed: false;
|
|
1239
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1240
|
+
};
|
|
1241
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1242
|
+
}>, z.ZodObject<{
|
|
1243
|
+
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>]>;
|
|
1244
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
1245
|
+
}, "strip", z.ZodTypeAny, {
|
|
1246
|
+
values: string[];
|
|
1247
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1248
|
+
}, {
|
|
1249
|
+
values: string[];
|
|
1250
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1251
|
+
}>, z.ZodObject<{
|
|
1252
|
+
operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
|
|
1253
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
1254
|
+
}, "strip", z.ZodTypeAny, {
|
|
1255
|
+
values: string[];
|
|
1256
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1257
|
+
}, {
|
|
1258
|
+
values: string[];
|
|
1259
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1260
|
+
}>]>]>;
|
|
1261
|
+
}, "strip", z.ZodTypeAny, {
|
|
1262
|
+
type: "and" | "or";
|
|
1263
|
+
target: {
|
|
1264
|
+
type: DimensionType | MetricType;
|
|
1265
|
+
fieldId: string;
|
|
1266
|
+
};
|
|
1267
|
+
rule: {
|
|
1268
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1269
|
+
} | {
|
|
1270
|
+
values: boolean[];
|
|
1271
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1272
|
+
} | {
|
|
1273
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1274
|
+
} | {
|
|
1275
|
+
values: string[];
|
|
1276
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1277
|
+
} | {
|
|
1278
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1279
|
+
} | {
|
|
1280
|
+
values: number[];
|
|
1281
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1282
|
+
} | {
|
|
1283
|
+
values: number[];
|
|
1284
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1285
|
+
} | {
|
|
1286
|
+
values: number[];
|
|
1287
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1288
|
+
} | {
|
|
1289
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1290
|
+
} | {
|
|
1291
|
+
values: string[];
|
|
1292
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1293
|
+
} | {
|
|
1294
|
+
values: number[];
|
|
1295
|
+
settings: {
|
|
1296
|
+
completed: boolean;
|
|
1297
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1298
|
+
};
|
|
1299
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1300
|
+
} | {
|
|
1301
|
+
values: 1[];
|
|
1302
|
+
settings: {
|
|
1303
|
+
completed: false;
|
|
1304
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1305
|
+
};
|
|
1306
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1307
|
+
} | {
|
|
1308
|
+
values: string[];
|
|
1309
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1310
|
+
} | {
|
|
1311
|
+
values: string[];
|
|
1312
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1313
|
+
};
|
|
1314
|
+
}, {
|
|
1315
|
+
type: "and" | "or";
|
|
1316
|
+
target: {
|
|
1317
|
+
type: DimensionType | MetricType;
|
|
1318
|
+
fieldId: string;
|
|
1319
|
+
};
|
|
1320
|
+
rule: {
|
|
1321
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1322
|
+
} | {
|
|
1323
|
+
values: boolean[];
|
|
1324
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1325
|
+
} | {
|
|
1326
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1327
|
+
} | {
|
|
1328
|
+
values: string[];
|
|
1329
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1330
|
+
} | {
|
|
1331
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1332
|
+
} | {
|
|
1333
|
+
values: number[];
|
|
1334
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1335
|
+
} | {
|
|
1336
|
+
values: number[];
|
|
1337
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1338
|
+
} | {
|
|
1339
|
+
values: number[];
|
|
1340
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1341
|
+
} | {
|
|
1342
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1343
|
+
} | {
|
|
1344
|
+
values: string[];
|
|
1345
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1346
|
+
} | {
|
|
1347
|
+
values: number[];
|
|
1348
|
+
settings: {
|
|
1349
|
+
completed: boolean;
|
|
1350
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1351
|
+
};
|
|
1352
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1353
|
+
} | {
|
|
1354
|
+
values: 1[];
|
|
1355
|
+
settings: {
|
|
1356
|
+
completed: false;
|
|
1357
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1358
|
+
};
|
|
1359
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1360
|
+
} | {
|
|
1361
|
+
values: string[];
|
|
1362
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1363
|
+
} | {
|
|
1364
|
+
values: string[];
|
|
1365
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1366
|
+
};
|
|
1367
|
+
}>, FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>, {
|
|
1368
|
+
type: "and" | "or";
|
|
1369
|
+
target: {
|
|
1370
|
+
type: DimensionType | MetricType;
|
|
1371
|
+
fieldId: string;
|
|
1372
|
+
};
|
|
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;
|
|
1419
|
+
};
|
|
1420
|
+
}>, "many">>;
|
|
1421
|
+
}, "strip", z.ZodTypeAny, {
|
|
1422
|
+
type: "and" | "or";
|
|
1423
|
+
dimensions: FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>[] | null;
|
|
1424
|
+
metrics: FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>[] | null;
|
|
1425
|
+
}, {
|
|
1426
|
+
type: "and" | "or";
|
|
1427
|
+
dimensions: {
|
|
1428
|
+
type: "and" | "or";
|
|
1429
|
+
target: {
|
|
1430
|
+
type: DimensionType | MetricType;
|
|
1431
|
+
fieldId: string;
|
|
1432
|
+
};
|
|
1433
|
+
rule: {
|
|
1434
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1435
|
+
} | {
|
|
1436
|
+
values: boolean[];
|
|
1437
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1438
|
+
} | {
|
|
1439
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1440
|
+
} | {
|
|
1441
|
+
values: string[];
|
|
1442
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1443
|
+
} | {
|
|
1444
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1445
|
+
} | {
|
|
1446
|
+
values: number[];
|
|
1447
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1448
|
+
} | {
|
|
1449
|
+
values: number[];
|
|
1450
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1451
|
+
} | {
|
|
1452
|
+
values: number[];
|
|
1453
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1454
|
+
} | {
|
|
1455
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1456
|
+
} | {
|
|
1457
|
+
values: string[];
|
|
1458
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1459
|
+
} | {
|
|
1460
|
+
values: number[];
|
|
1461
|
+
settings: {
|
|
1462
|
+
completed: boolean;
|
|
1463
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1464
|
+
};
|
|
1465
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1466
|
+
} | {
|
|
1467
|
+
values: 1[];
|
|
1468
|
+
settings: {
|
|
1469
|
+
completed: false;
|
|
1470
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1471
|
+
};
|
|
1472
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1473
|
+
} | {
|
|
1474
|
+
values: string[];
|
|
1475
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1476
|
+
} | {
|
|
1477
|
+
values: string[];
|
|
1478
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1479
|
+
};
|
|
1480
|
+
}[] | null;
|
|
1481
|
+
metrics: {
|
|
1482
|
+
type: "and" | "or";
|
|
1483
|
+
target: {
|
|
1484
|
+
type: DimensionType | MetricType;
|
|
1485
|
+
fieldId: string;
|
|
1486
|
+
};
|
|
1487
|
+
rule: {
|
|
1488
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1489
|
+
} | {
|
|
1490
|
+
values: boolean[];
|
|
1491
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1492
|
+
} | {
|
|
1493
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1494
|
+
} | {
|
|
1495
|
+
values: string[];
|
|
1496
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1497
|
+
} | {
|
|
1498
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1499
|
+
} | {
|
|
1500
|
+
values: number[];
|
|
1501
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1502
|
+
} | {
|
|
1503
|
+
values: number[];
|
|
1504
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1505
|
+
} | {
|
|
1506
|
+
values: number[];
|
|
1507
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1508
|
+
} | {
|
|
1509
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1510
|
+
} | {
|
|
1511
|
+
values: string[];
|
|
1512
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1513
|
+
} | {
|
|
1514
|
+
values: number[];
|
|
1515
|
+
settings: {
|
|
1516
|
+
completed: boolean;
|
|
1517
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1518
|
+
};
|
|
1519
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1520
|
+
} | {
|
|
1521
|
+
values: 1[];
|
|
1522
|
+
settings: {
|
|
1523
|
+
completed: false;
|
|
1524
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1525
|
+
};
|
|
1526
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1527
|
+
} | {
|
|
1528
|
+
values: string[];
|
|
1529
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1530
|
+
} | {
|
|
1531
|
+
values: string[];
|
|
1532
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1533
|
+
};
|
|
1534
|
+
}[] | null;
|
|
1535
|
+
}>, Filters, {
|
|
1536
|
+
type: "and" | "or";
|
|
1537
|
+
dimensions: {
|
|
1538
|
+
type: "and" | "or";
|
|
1539
|
+
target: {
|
|
1540
|
+
type: DimensionType | MetricType;
|
|
1541
|
+
fieldId: string;
|
|
1542
|
+
};
|
|
1543
|
+
rule: {
|
|
1544
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1545
|
+
} | {
|
|
1546
|
+
values: boolean[];
|
|
1547
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1548
|
+
} | {
|
|
1549
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1550
|
+
} | {
|
|
1551
|
+
values: string[];
|
|
1552
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1553
|
+
} | {
|
|
1554
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1555
|
+
} | {
|
|
1556
|
+
values: number[];
|
|
1557
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1558
|
+
} | {
|
|
1559
|
+
values: number[];
|
|
1560
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1561
|
+
} | {
|
|
1562
|
+
values: number[];
|
|
1563
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1564
|
+
} | {
|
|
1565
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1566
|
+
} | {
|
|
1567
|
+
values: string[];
|
|
1568
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1569
|
+
} | {
|
|
1570
|
+
values: number[];
|
|
1571
|
+
settings: {
|
|
1572
|
+
completed: boolean;
|
|
1573
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1574
|
+
};
|
|
1575
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1576
|
+
} | {
|
|
1577
|
+
values: 1[];
|
|
1578
|
+
settings: {
|
|
1579
|
+
completed: false;
|
|
1580
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1581
|
+
};
|
|
1582
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1583
|
+
} | {
|
|
1584
|
+
values: string[];
|
|
1585
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1586
|
+
} | {
|
|
1587
|
+
values: string[];
|
|
1588
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1589
|
+
};
|
|
1590
|
+
}[] | null;
|
|
1591
|
+
metrics: {
|
|
1592
|
+
type: "and" | "or";
|
|
1593
|
+
target: {
|
|
1594
|
+
type: DimensionType | MetricType;
|
|
1595
|
+
fieldId: string;
|
|
1596
|
+
};
|
|
1597
|
+
rule: {
|
|
1598
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1599
|
+
} | {
|
|
1600
|
+
values: boolean[];
|
|
1601
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1602
|
+
} | {
|
|
1603
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1604
|
+
} | {
|
|
1605
|
+
values: string[];
|
|
1606
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1607
|
+
} | {
|
|
1608
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1609
|
+
} | {
|
|
1610
|
+
values: number[];
|
|
1611
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1612
|
+
} | {
|
|
1613
|
+
values: number[];
|
|
1614
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1615
|
+
} | {
|
|
1616
|
+
values: number[];
|
|
1617
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1618
|
+
} | {
|
|
1619
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1620
|
+
} | {
|
|
1621
|
+
values: string[];
|
|
1622
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1623
|
+
} | {
|
|
1624
|
+
values: number[];
|
|
1625
|
+
settings: {
|
|
1626
|
+
completed: boolean;
|
|
1627
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1628
|
+
};
|
|
1629
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1630
|
+
} | {
|
|
1631
|
+
values: 1[];
|
|
1632
|
+
settings: {
|
|
1633
|
+
completed: false;
|
|
1634
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1635
|
+
};
|
|
1636
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1637
|
+
} | {
|
|
1638
|
+
values: string[];
|
|
1639
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1640
|
+
} | {
|
|
1641
|
+
values: string[];
|
|
1642
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1643
|
+
};
|
|
1644
|
+
}[] | null;
|
|
1645
|
+
}>;
|
|
1646
|
+
export declare const generateQueryFiltersToolSchema: z.ZodObject<{
|
|
1647
|
+
exploreName: z.ZodString;
|
|
1648
|
+
filters: z.ZodObject<{
|
|
1649
|
+
type: z.ZodEnum<["and", "or"]>;
|
|
1650
|
+
dimensions: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1651
|
+
type: z.ZodEnum<["or", "and"]>;
|
|
1652
|
+
target: z.ZodObject<{
|
|
1653
|
+
fieldId: z.ZodString;
|
|
1654
|
+
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>]>]>;
|
|
1655
|
+
}, "strip", z.ZodTypeAny, {
|
|
1656
|
+
type: DimensionType | MetricType;
|
|
1657
|
+
fieldId: string;
|
|
1658
|
+
}, {
|
|
1659
|
+
type: DimensionType | MetricType;
|
|
1660
|
+
fieldId: string;
|
|
1661
|
+
}>;
|
|
1662
|
+
rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
1663
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1664
|
+
}, "strip", z.ZodTypeAny, {
|
|
1665
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1666
|
+
}, {
|
|
1667
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1668
|
+
}>, z.ZodObject<{
|
|
1669
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
1670
|
+
values: z.ZodArray<z.ZodBoolean, "many">;
|
|
1671
|
+
}, "strip", z.ZodTypeAny, {
|
|
1672
|
+
values: boolean[];
|
|
1673
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1674
|
+
}, {
|
|
1675
|
+
values: boolean[];
|
|
1676
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1677
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
1678
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1679
|
+
}, "strip", z.ZodTypeAny, {
|
|
1680
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1681
|
+
}, {
|
|
1682
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1683
|
+
}>, z.ZodObject<{
|
|
1684
|
+
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>]>;
|
|
1685
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
1686
|
+
}, "strip", z.ZodTypeAny, {
|
|
1687
|
+
values: string[];
|
|
1688
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1689
|
+
}, {
|
|
1690
|
+
values: string[];
|
|
1691
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1692
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
1693
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1694
|
+
}, "strip", z.ZodTypeAny, {
|
|
1695
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1696
|
+
}, {
|
|
1697
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1698
|
+
}>, z.ZodObject<{
|
|
1699
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
1700
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1701
|
+
}, "strip", z.ZodTypeAny, {
|
|
1702
|
+
values: number[];
|
|
1703
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1704
|
+
}, {
|
|
1705
|
+
values: number[];
|
|
1706
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1707
|
+
}>, z.ZodObject<{
|
|
1708
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
|
|
1709
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1710
|
+
}, "strip", z.ZodTypeAny, {
|
|
1711
|
+
values: number[];
|
|
1712
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1713
|
+
}, {
|
|
1714
|
+
values: number[];
|
|
1715
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1716
|
+
}>, z.ZodObject<{
|
|
1717
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
|
|
1718
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1719
|
+
}, "strip", z.ZodTypeAny, {
|
|
1720
|
+
values: number[];
|
|
1721
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1722
|
+
}, {
|
|
1723
|
+
values: number[];
|
|
1724
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1725
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
1726
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1727
|
+
}, "strip", z.ZodTypeAny, {
|
|
1728
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1729
|
+
}, {
|
|
1730
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1731
|
+
}>, z.ZodObject<{
|
|
1732
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
1733
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
1734
|
+
}, "strip", z.ZodTypeAny, {
|
|
1735
|
+
values: string[];
|
|
1736
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1737
|
+
}, {
|
|
1738
|
+
values: string[];
|
|
1739
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1740
|
+
}>, z.ZodObject<{
|
|
1741
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
|
|
1742
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1743
|
+
settings: z.ZodObject<{
|
|
1744
|
+
completed: z.ZodBoolean;
|
|
1745
|
+
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
1746
|
+
}, "strip", z.ZodTypeAny, {
|
|
1747
|
+
completed: boolean;
|
|
1748
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1749
|
+
}, {
|
|
1750
|
+
completed: boolean;
|
|
1751
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1752
|
+
}>;
|
|
1753
|
+
}, "strip", z.ZodTypeAny, {
|
|
1754
|
+
values: number[];
|
|
1755
|
+
settings: {
|
|
1756
|
+
completed: boolean;
|
|
1757
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1758
|
+
};
|
|
1759
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1760
|
+
}, {
|
|
1761
|
+
values: number[];
|
|
1762
|
+
settings: {
|
|
1763
|
+
completed: boolean;
|
|
1764
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1765
|
+
};
|
|
1766
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1767
|
+
}>, z.ZodObject<{
|
|
1768
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
|
|
1769
|
+
values: z.ZodArray<z.ZodLiteral<1>, "many">;
|
|
1770
|
+
settings: z.ZodObject<{
|
|
1771
|
+
completed: z.ZodLiteral<false>;
|
|
1772
|
+
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
1773
|
+
}, "strip", z.ZodTypeAny, {
|
|
1774
|
+
completed: false;
|
|
1775
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1776
|
+
}, {
|
|
1777
|
+
completed: false;
|
|
1778
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1779
|
+
}>;
|
|
1780
|
+
}, "strip", z.ZodTypeAny, {
|
|
1781
|
+
values: 1[];
|
|
1782
|
+
settings: {
|
|
1783
|
+
completed: false;
|
|
1784
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1785
|
+
};
|
|
1786
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1787
|
+
}, {
|
|
1788
|
+
values: 1[];
|
|
1789
|
+
settings: {
|
|
1790
|
+
completed: false;
|
|
1791
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1792
|
+
};
|
|
1793
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1794
|
+
}>, z.ZodObject<{
|
|
1795
|
+
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>]>;
|
|
1796
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
1797
|
+
}, "strip", z.ZodTypeAny, {
|
|
1798
|
+
values: string[];
|
|
1799
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1800
|
+
}, {
|
|
1801
|
+
values: string[];
|
|
1802
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1803
|
+
}>, z.ZodObject<{
|
|
1804
|
+
operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
|
|
1805
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
1806
|
+
}, "strip", z.ZodTypeAny, {
|
|
1807
|
+
values: string[];
|
|
1808
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1809
|
+
}, {
|
|
1810
|
+
values: string[];
|
|
1811
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1812
|
+
}>]>]>;
|
|
1813
|
+
}, "strip", z.ZodTypeAny, {
|
|
1814
|
+
type: "and" | "or";
|
|
1815
|
+
target: {
|
|
1816
|
+
type: DimensionType | MetricType;
|
|
1817
|
+
fieldId: string;
|
|
1818
|
+
};
|
|
1819
|
+
rule: {
|
|
1820
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1821
|
+
} | {
|
|
1822
|
+
values: boolean[];
|
|
1823
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1824
|
+
} | {
|
|
1825
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1826
|
+
} | {
|
|
1827
|
+
values: string[];
|
|
1828
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1829
|
+
} | {
|
|
1830
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1831
|
+
} | {
|
|
1832
|
+
values: number[];
|
|
1833
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1834
|
+
} | {
|
|
1835
|
+
values: number[];
|
|
1836
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1837
|
+
} | {
|
|
1838
|
+
values: number[];
|
|
1839
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1840
|
+
} | {
|
|
1841
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1842
|
+
} | {
|
|
1843
|
+
values: string[];
|
|
1844
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1845
|
+
} | {
|
|
1846
|
+
values: number[];
|
|
1847
|
+
settings: {
|
|
1848
|
+
completed: boolean;
|
|
1849
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1850
|
+
};
|
|
1851
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1852
|
+
} | {
|
|
1853
|
+
values: 1[];
|
|
1854
|
+
settings: {
|
|
1855
|
+
completed: false;
|
|
1856
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1857
|
+
};
|
|
1858
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1859
|
+
} | {
|
|
1860
|
+
values: string[];
|
|
1861
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1862
|
+
} | {
|
|
1863
|
+
values: string[];
|
|
1864
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1865
|
+
};
|
|
1866
|
+
}, {
|
|
1867
|
+
type: "and" | "or";
|
|
1868
|
+
target: {
|
|
1869
|
+
type: DimensionType | MetricType;
|
|
1870
|
+
fieldId: string;
|
|
1871
|
+
};
|
|
1872
|
+
rule: {
|
|
1873
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1874
|
+
} | {
|
|
1875
|
+
values: boolean[];
|
|
1876
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1877
|
+
} | {
|
|
1878
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1879
|
+
} | {
|
|
1880
|
+
values: string[];
|
|
1881
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1882
|
+
} | {
|
|
1883
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1884
|
+
} | {
|
|
1885
|
+
values: number[];
|
|
1886
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1887
|
+
} | {
|
|
1888
|
+
values: number[];
|
|
1889
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1890
|
+
} | {
|
|
1891
|
+
values: number[];
|
|
1892
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1893
|
+
} | {
|
|
1894
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1895
|
+
} | {
|
|
1896
|
+
values: string[];
|
|
1897
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1898
|
+
} | {
|
|
1899
|
+
values: number[];
|
|
1900
|
+
settings: {
|
|
1901
|
+
completed: boolean;
|
|
1902
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1903
|
+
};
|
|
1904
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
1905
|
+
} | {
|
|
1906
|
+
values: 1[];
|
|
1907
|
+
settings: {
|
|
1908
|
+
completed: false;
|
|
1909
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1910
|
+
};
|
|
1911
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1912
|
+
} | {
|
|
1913
|
+
values: string[];
|
|
1914
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1915
|
+
} | {
|
|
1916
|
+
values: string[];
|
|
1917
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
1918
|
+
};
|
|
1919
|
+
}>, "many">>;
|
|
1920
|
+
metrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1921
|
+
type: z.ZodEnum<["or", "and"]>;
|
|
1922
|
+
target: z.ZodObject<{
|
|
1923
|
+
fieldId: z.ZodString;
|
|
1924
|
+
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>]>]>;
|
|
1925
|
+
}, "strip", z.ZodTypeAny, {
|
|
1926
|
+
type: DimensionType | MetricType;
|
|
1927
|
+
fieldId: string;
|
|
1928
|
+
}, {
|
|
1929
|
+
type: DimensionType | MetricType;
|
|
1930
|
+
fieldId: string;
|
|
1931
|
+
}>;
|
|
1932
|
+
rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
1933
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1934
|
+
}, "strip", z.ZodTypeAny, {
|
|
1935
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1936
|
+
}, {
|
|
1937
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1938
|
+
}>, z.ZodObject<{
|
|
1939
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
1940
|
+
values: z.ZodArray<z.ZodBoolean, "many">;
|
|
1941
|
+
}, "strip", z.ZodTypeAny, {
|
|
1942
|
+
values: boolean[];
|
|
1943
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1944
|
+
}, {
|
|
1945
|
+
values: boolean[];
|
|
1946
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1947
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
1948
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1949
|
+
}, "strip", z.ZodTypeAny, {
|
|
1950
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1951
|
+
}, {
|
|
1952
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1953
|
+
}>, z.ZodObject<{
|
|
1954
|
+
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>]>;
|
|
1955
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
1956
|
+
}, "strip", z.ZodTypeAny, {
|
|
1957
|
+
values: string[];
|
|
1958
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1959
|
+
}, {
|
|
1960
|
+
values: string[];
|
|
1961
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
1962
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
1963
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1964
|
+
}, "strip", z.ZodTypeAny, {
|
|
1965
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1966
|
+
}, {
|
|
1967
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1968
|
+
}>, z.ZodObject<{
|
|
1969
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
1970
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1971
|
+
}, "strip", z.ZodTypeAny, {
|
|
1972
|
+
values: number[];
|
|
1973
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1974
|
+
}, {
|
|
1975
|
+
values: number[];
|
|
1976
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
1977
|
+
}>, z.ZodObject<{
|
|
1978
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
|
|
1979
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1980
|
+
}, "strip", z.ZodTypeAny, {
|
|
1981
|
+
values: number[];
|
|
1982
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1983
|
+
}, {
|
|
1984
|
+
values: number[];
|
|
1985
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
1986
|
+
}>, z.ZodObject<{
|
|
1987
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
|
|
1988
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
1989
|
+
}, "strip", z.ZodTypeAny, {
|
|
1990
|
+
values: number[];
|
|
1991
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1992
|
+
}, {
|
|
1993
|
+
values: number[];
|
|
1994
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
1995
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
1996
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
1997
|
+
}, "strip", z.ZodTypeAny, {
|
|
1998
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
1999
|
+
}, {
|
|
2000
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2001
|
+
}>, z.ZodObject<{
|
|
2002
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
2003
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
2004
|
+
}, "strip", z.ZodTypeAny, {
|
|
2005
|
+
values: string[];
|
|
2006
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2007
|
+
}, {
|
|
2008
|
+
values: string[];
|
|
2009
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2010
|
+
}>, z.ZodObject<{
|
|
2011
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
|
|
2012
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
2013
|
+
settings: z.ZodObject<{
|
|
2014
|
+
completed: z.ZodBoolean;
|
|
2015
|
+
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
2016
|
+
}, "strip", z.ZodTypeAny, {
|
|
2017
|
+
completed: boolean;
|
|
2018
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2019
|
+
}, {
|
|
2020
|
+
completed: boolean;
|
|
2021
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2022
|
+
}>;
|
|
2023
|
+
}, "strip", z.ZodTypeAny, {
|
|
2024
|
+
values: number[];
|
|
2025
|
+
settings: {
|
|
2026
|
+
completed: boolean;
|
|
2027
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2028
|
+
};
|
|
2029
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2030
|
+
}, {
|
|
2031
|
+
values: number[];
|
|
2032
|
+
settings: {
|
|
2033
|
+
completed: boolean;
|
|
2034
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2035
|
+
};
|
|
2036
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2037
|
+
}>, z.ZodObject<{
|
|
2038
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
|
|
2039
|
+
values: z.ZodArray<z.ZodLiteral<1>, "many">;
|
|
2040
|
+
settings: z.ZodObject<{
|
|
2041
|
+
completed: z.ZodLiteral<false>;
|
|
2042
|
+
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
2043
|
+
}, "strip", z.ZodTypeAny, {
|
|
2044
|
+
completed: false;
|
|
2045
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2046
|
+
}, {
|
|
2047
|
+
completed: false;
|
|
2048
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2049
|
+
}>;
|
|
2050
|
+
}, "strip", z.ZodTypeAny, {
|
|
2051
|
+
values: 1[];
|
|
2052
|
+
settings: {
|
|
2053
|
+
completed: false;
|
|
2054
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2055
|
+
};
|
|
2056
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2057
|
+
}, {
|
|
2058
|
+
values: 1[];
|
|
2059
|
+
settings: {
|
|
2060
|
+
completed: false;
|
|
2061
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2062
|
+
};
|
|
2063
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2064
|
+
}>, z.ZodObject<{
|
|
2065
|
+
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>]>;
|
|
2066
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
2067
|
+
}, "strip", z.ZodTypeAny, {
|
|
2068
|
+
values: string[];
|
|
2069
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2070
|
+
}, {
|
|
2071
|
+
values: string[];
|
|
2072
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2073
|
+
}>, z.ZodObject<{
|
|
2074
|
+
operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
|
|
2075
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
2076
|
+
}, "strip", z.ZodTypeAny, {
|
|
2077
|
+
values: string[];
|
|
2078
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2079
|
+
}, {
|
|
2080
|
+
values: string[];
|
|
2081
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2082
|
+
}>]>]>;
|
|
2083
|
+
}, "strip", z.ZodTypeAny, {
|
|
2084
|
+
type: "and" | "or";
|
|
2085
|
+
target: {
|
|
2086
|
+
type: DimensionType | MetricType;
|
|
2087
|
+
fieldId: string;
|
|
2088
|
+
};
|
|
2089
|
+
rule: {
|
|
2090
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2091
|
+
} | {
|
|
2092
|
+
values: boolean[];
|
|
2093
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2094
|
+
} | {
|
|
2095
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2096
|
+
} | {
|
|
2097
|
+
values: string[];
|
|
2098
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2099
|
+
} | {
|
|
2100
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2101
|
+
} | {
|
|
2102
|
+
values: number[];
|
|
2103
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2104
|
+
} | {
|
|
2105
|
+
values: number[];
|
|
2106
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2107
|
+
} | {
|
|
2108
|
+
values: number[];
|
|
2109
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2110
|
+
} | {
|
|
2111
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2112
|
+
} | {
|
|
2113
|
+
values: string[];
|
|
2114
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2115
|
+
} | {
|
|
2116
|
+
values: number[];
|
|
2117
|
+
settings: {
|
|
2118
|
+
completed: boolean;
|
|
2119
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2120
|
+
};
|
|
2121
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2122
|
+
} | {
|
|
2123
|
+
values: 1[];
|
|
2124
|
+
settings: {
|
|
2125
|
+
completed: false;
|
|
2126
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2127
|
+
};
|
|
2128
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2129
|
+
} | {
|
|
2130
|
+
values: string[];
|
|
2131
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2132
|
+
} | {
|
|
2133
|
+
values: string[];
|
|
2134
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2135
|
+
};
|
|
2136
|
+
}, {
|
|
2137
|
+
type: "and" | "or";
|
|
2138
|
+
target: {
|
|
2139
|
+
type: DimensionType | MetricType;
|
|
2140
|
+
fieldId: string;
|
|
2141
|
+
};
|
|
2142
|
+
rule: {
|
|
2143
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2144
|
+
} | {
|
|
2145
|
+
values: boolean[];
|
|
2146
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2147
|
+
} | {
|
|
2148
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2149
|
+
} | {
|
|
2150
|
+
values: string[];
|
|
2151
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2152
|
+
} | {
|
|
2153
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2154
|
+
} | {
|
|
2155
|
+
values: number[];
|
|
2156
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2157
|
+
} | {
|
|
2158
|
+
values: number[];
|
|
2159
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2160
|
+
} | {
|
|
2161
|
+
values: number[];
|
|
2162
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2163
|
+
} | {
|
|
2164
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2165
|
+
} | {
|
|
2166
|
+
values: string[];
|
|
2167
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2168
|
+
} | {
|
|
2169
|
+
values: number[];
|
|
2170
|
+
settings: {
|
|
2171
|
+
completed: boolean;
|
|
2172
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2173
|
+
};
|
|
2174
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2175
|
+
} | {
|
|
2176
|
+
values: 1[];
|
|
2177
|
+
settings: {
|
|
2178
|
+
completed: false;
|
|
2179
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2180
|
+
};
|
|
2181
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2182
|
+
} | {
|
|
2183
|
+
values: string[];
|
|
2184
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2185
|
+
} | {
|
|
2186
|
+
values: string[];
|
|
2187
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2188
|
+
};
|
|
2189
|
+
}>, "many">>;
|
|
2190
|
+
}, "strip", z.ZodTypeAny, {
|
|
2191
|
+
type: "and" | "or";
|
|
2192
|
+
dimensions: {
|
|
2193
|
+
type: "and" | "or";
|
|
2194
|
+
target: {
|
|
2195
|
+
type: DimensionType | MetricType;
|
|
2196
|
+
fieldId: string;
|
|
2197
|
+
};
|
|
2198
|
+
rule: {
|
|
2199
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2200
|
+
} | {
|
|
2201
|
+
values: boolean[];
|
|
2202
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2203
|
+
} | {
|
|
2204
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2205
|
+
} | {
|
|
2206
|
+
values: string[];
|
|
2207
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2208
|
+
} | {
|
|
2209
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2210
|
+
} | {
|
|
2211
|
+
values: number[];
|
|
2212
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2213
|
+
} | {
|
|
2214
|
+
values: number[];
|
|
2215
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2216
|
+
} | {
|
|
2217
|
+
values: number[];
|
|
2218
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2219
|
+
} | {
|
|
2220
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2221
|
+
} | {
|
|
2222
|
+
values: string[];
|
|
2223
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2224
|
+
} | {
|
|
2225
|
+
values: number[];
|
|
2226
|
+
settings: {
|
|
2227
|
+
completed: boolean;
|
|
2228
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2229
|
+
};
|
|
2230
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2231
|
+
} | {
|
|
2232
|
+
values: 1[];
|
|
2233
|
+
settings: {
|
|
2234
|
+
completed: false;
|
|
2235
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2236
|
+
};
|
|
2237
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2238
|
+
} | {
|
|
2239
|
+
values: string[];
|
|
2240
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2241
|
+
} | {
|
|
2242
|
+
values: string[];
|
|
2243
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2244
|
+
};
|
|
2245
|
+
}[] | null;
|
|
2246
|
+
metrics: {
|
|
2247
|
+
type: "and" | "or";
|
|
2248
|
+
target: {
|
|
2249
|
+
type: DimensionType | MetricType;
|
|
2250
|
+
fieldId: string;
|
|
2251
|
+
};
|
|
2252
|
+
rule: {
|
|
2253
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2254
|
+
} | {
|
|
2255
|
+
values: boolean[];
|
|
2256
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2257
|
+
} | {
|
|
2258
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2259
|
+
} | {
|
|
2260
|
+
values: string[];
|
|
2261
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2262
|
+
} | {
|
|
2263
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2264
|
+
} | {
|
|
2265
|
+
values: number[];
|
|
2266
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2267
|
+
} | {
|
|
2268
|
+
values: number[];
|
|
2269
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2270
|
+
} | {
|
|
2271
|
+
values: number[];
|
|
2272
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2273
|
+
} | {
|
|
2274
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2275
|
+
} | {
|
|
2276
|
+
values: string[];
|
|
2277
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2278
|
+
} | {
|
|
2279
|
+
values: number[];
|
|
2280
|
+
settings: {
|
|
2281
|
+
completed: boolean;
|
|
2282
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2283
|
+
};
|
|
2284
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2285
|
+
} | {
|
|
2286
|
+
values: 1[];
|
|
2287
|
+
settings: {
|
|
2288
|
+
completed: false;
|
|
2289
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2290
|
+
};
|
|
2291
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2292
|
+
} | {
|
|
2293
|
+
values: string[];
|
|
2294
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2295
|
+
} | {
|
|
2296
|
+
values: string[];
|
|
2297
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2298
|
+
};
|
|
2299
|
+
}[] | null;
|
|
2300
|
+
}, {
|
|
2301
|
+
type: "and" | "or";
|
|
2302
|
+
dimensions: {
|
|
2303
|
+
type: "and" | "or";
|
|
2304
|
+
target: {
|
|
2305
|
+
type: DimensionType | MetricType;
|
|
2306
|
+
fieldId: string;
|
|
2307
|
+
};
|
|
2308
|
+
rule: {
|
|
2309
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2310
|
+
} | {
|
|
2311
|
+
values: boolean[];
|
|
2312
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2313
|
+
} | {
|
|
2314
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2315
|
+
} | {
|
|
2316
|
+
values: string[];
|
|
2317
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2318
|
+
} | {
|
|
2319
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2320
|
+
} | {
|
|
2321
|
+
values: number[];
|
|
2322
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2323
|
+
} | {
|
|
2324
|
+
values: number[];
|
|
2325
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2326
|
+
} | {
|
|
2327
|
+
values: number[];
|
|
2328
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2329
|
+
} | {
|
|
2330
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2331
|
+
} | {
|
|
2332
|
+
values: string[];
|
|
2333
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2334
|
+
} | {
|
|
2335
|
+
values: number[];
|
|
2336
|
+
settings: {
|
|
2337
|
+
completed: boolean;
|
|
2338
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2339
|
+
};
|
|
2340
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2341
|
+
} | {
|
|
2342
|
+
values: 1[];
|
|
2343
|
+
settings: {
|
|
2344
|
+
completed: false;
|
|
2345
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2346
|
+
};
|
|
2347
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2348
|
+
} | {
|
|
2349
|
+
values: string[];
|
|
2350
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2351
|
+
} | {
|
|
2352
|
+
values: string[];
|
|
2353
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2354
|
+
};
|
|
2355
|
+
}[] | null;
|
|
2356
|
+
metrics: {
|
|
2357
|
+
type: "and" | "or";
|
|
2358
|
+
target: {
|
|
2359
|
+
type: DimensionType | MetricType;
|
|
2360
|
+
fieldId: string;
|
|
2361
|
+
};
|
|
2362
|
+
rule: {
|
|
2363
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2364
|
+
} | {
|
|
2365
|
+
values: boolean[];
|
|
2366
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2367
|
+
} | {
|
|
2368
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2369
|
+
} | {
|
|
2370
|
+
values: string[];
|
|
2371
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2372
|
+
} | {
|
|
2373
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2374
|
+
} | {
|
|
2375
|
+
values: number[];
|
|
2376
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2377
|
+
} | {
|
|
2378
|
+
values: number[];
|
|
2379
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2380
|
+
} | {
|
|
2381
|
+
values: number[];
|
|
2382
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2383
|
+
} | {
|
|
2384
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2385
|
+
} | {
|
|
2386
|
+
values: string[];
|
|
2387
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2388
|
+
} | {
|
|
2389
|
+
values: number[];
|
|
2390
|
+
settings: {
|
|
2391
|
+
completed: boolean;
|
|
2392
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2393
|
+
};
|
|
2394
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2395
|
+
} | {
|
|
2396
|
+
values: 1[];
|
|
2397
|
+
settings: {
|
|
2398
|
+
completed: false;
|
|
2399
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2400
|
+
};
|
|
2401
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2402
|
+
} | {
|
|
2403
|
+
values: string[];
|
|
2404
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2405
|
+
} | {
|
|
2406
|
+
values: string[];
|
|
2407
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2408
|
+
};
|
|
2409
|
+
}[] | null;
|
|
2410
|
+
}>;
|
|
2411
|
+
}, "strip", z.ZodTypeAny, {
|
|
2412
|
+
filters: {
|
|
2413
|
+
type: "and" | "or";
|
|
2414
|
+
dimensions: {
|
|
2415
|
+
type: "and" | "or";
|
|
2416
|
+
target: {
|
|
2417
|
+
type: DimensionType | MetricType;
|
|
2418
|
+
fieldId: string;
|
|
2419
|
+
};
|
|
2420
|
+
rule: {
|
|
2421
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2422
|
+
} | {
|
|
2423
|
+
values: boolean[];
|
|
2424
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2425
|
+
} | {
|
|
2426
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2427
|
+
} | {
|
|
2428
|
+
values: string[];
|
|
2429
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2430
|
+
} | {
|
|
2431
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2432
|
+
} | {
|
|
2433
|
+
values: number[];
|
|
2434
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2435
|
+
} | {
|
|
2436
|
+
values: number[];
|
|
2437
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2438
|
+
} | {
|
|
2439
|
+
values: number[];
|
|
2440
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2441
|
+
} | {
|
|
2442
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2443
|
+
} | {
|
|
2444
|
+
values: string[];
|
|
2445
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2446
|
+
} | {
|
|
2447
|
+
values: number[];
|
|
2448
|
+
settings: {
|
|
2449
|
+
completed: boolean;
|
|
2450
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2451
|
+
};
|
|
2452
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2453
|
+
} | {
|
|
2454
|
+
values: 1[];
|
|
2455
|
+
settings: {
|
|
2456
|
+
completed: false;
|
|
2457
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2458
|
+
};
|
|
2459
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2460
|
+
} | {
|
|
2461
|
+
values: string[];
|
|
2462
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2463
|
+
} | {
|
|
2464
|
+
values: string[];
|
|
2465
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2466
|
+
};
|
|
2467
|
+
}[] | null;
|
|
2468
|
+
metrics: {
|
|
2469
|
+
type: "and" | "or";
|
|
2470
|
+
target: {
|
|
2471
|
+
type: DimensionType | MetricType;
|
|
2472
|
+
fieldId: string;
|
|
2473
|
+
};
|
|
2474
|
+
rule: {
|
|
2475
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2476
|
+
} | {
|
|
2477
|
+
values: boolean[];
|
|
2478
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2479
|
+
} | {
|
|
2480
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2481
|
+
} | {
|
|
2482
|
+
values: string[];
|
|
2483
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2484
|
+
} | {
|
|
2485
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2486
|
+
} | {
|
|
2487
|
+
values: number[];
|
|
2488
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2489
|
+
} | {
|
|
2490
|
+
values: number[];
|
|
2491
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2492
|
+
} | {
|
|
2493
|
+
values: number[];
|
|
2494
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2495
|
+
} | {
|
|
2496
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2497
|
+
} | {
|
|
2498
|
+
values: string[];
|
|
2499
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2500
|
+
} | {
|
|
2501
|
+
values: number[];
|
|
2502
|
+
settings: {
|
|
2503
|
+
completed: boolean;
|
|
2504
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2505
|
+
};
|
|
2506
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2507
|
+
} | {
|
|
2508
|
+
values: 1[];
|
|
2509
|
+
settings: {
|
|
2510
|
+
completed: false;
|
|
2511
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2512
|
+
};
|
|
2513
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2514
|
+
} | {
|
|
2515
|
+
values: string[];
|
|
2516
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2517
|
+
} | {
|
|
2518
|
+
values: string[];
|
|
2519
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2520
|
+
};
|
|
2521
|
+
}[] | null;
|
|
2522
|
+
};
|
|
2523
|
+
exploreName: string;
|
|
2524
|
+
}, {
|
|
2525
|
+
filters: {
|
|
2526
|
+
type: "and" | "or";
|
|
2527
|
+
dimensions: {
|
|
2528
|
+
type: "and" | "or";
|
|
2529
|
+
target: {
|
|
2530
|
+
type: DimensionType | MetricType;
|
|
2531
|
+
fieldId: string;
|
|
2532
|
+
};
|
|
2533
|
+
rule: {
|
|
2534
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2535
|
+
} | {
|
|
2536
|
+
values: boolean[];
|
|
2537
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2538
|
+
} | {
|
|
2539
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2540
|
+
} | {
|
|
2541
|
+
values: string[];
|
|
2542
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2543
|
+
} | {
|
|
2544
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2545
|
+
} | {
|
|
2546
|
+
values: number[];
|
|
2547
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2548
|
+
} | {
|
|
2549
|
+
values: number[];
|
|
2550
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2551
|
+
} | {
|
|
2552
|
+
values: number[];
|
|
2553
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2554
|
+
} | {
|
|
2555
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2556
|
+
} | {
|
|
2557
|
+
values: string[];
|
|
2558
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2559
|
+
} | {
|
|
2560
|
+
values: number[];
|
|
2561
|
+
settings: {
|
|
2562
|
+
completed: boolean;
|
|
2563
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2564
|
+
};
|
|
2565
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2566
|
+
} | {
|
|
2567
|
+
values: 1[];
|
|
2568
|
+
settings: {
|
|
2569
|
+
completed: false;
|
|
2570
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2571
|
+
};
|
|
2572
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2573
|
+
} | {
|
|
2574
|
+
values: string[];
|
|
2575
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2576
|
+
} | {
|
|
2577
|
+
values: string[];
|
|
2578
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2579
|
+
};
|
|
2580
|
+
}[] | null;
|
|
2581
|
+
metrics: {
|
|
2582
|
+
type: "and" | "or";
|
|
2583
|
+
target: {
|
|
2584
|
+
type: DimensionType | MetricType;
|
|
2585
|
+
fieldId: string;
|
|
2586
|
+
};
|
|
2587
|
+
rule: {
|
|
2588
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2589
|
+
} | {
|
|
2590
|
+
values: boolean[];
|
|
2591
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2592
|
+
} | {
|
|
2593
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2594
|
+
} | {
|
|
2595
|
+
values: string[];
|
|
2596
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2597
|
+
} | {
|
|
2598
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2599
|
+
} | {
|
|
2600
|
+
values: number[];
|
|
2601
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2602
|
+
} | {
|
|
2603
|
+
values: number[];
|
|
2604
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2605
|
+
} | {
|
|
2606
|
+
values: number[];
|
|
2607
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2608
|
+
} | {
|
|
2609
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2610
|
+
} | {
|
|
2611
|
+
values: string[];
|
|
2612
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2613
|
+
} | {
|
|
2614
|
+
values: number[];
|
|
2615
|
+
settings: {
|
|
2616
|
+
completed: boolean;
|
|
2617
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2618
|
+
};
|
|
2619
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2620
|
+
} | {
|
|
2621
|
+
values: 1[];
|
|
2622
|
+
settings: {
|
|
2623
|
+
completed: false;
|
|
2624
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2625
|
+
};
|
|
2626
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2627
|
+
} | {
|
|
2628
|
+
values: string[];
|
|
2629
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2630
|
+
} | {
|
|
2631
|
+
values: string[];
|
|
2632
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
2633
|
+
};
|
|
2634
|
+
}[] | null;
|
|
2635
|
+
};
|
|
2636
|
+
exploreName: string;
|
|
2637
|
+
}>;
|
|
2638
|
+
export declare const SortFieldSchema: z.ZodObject<{
|
|
2639
|
+
fieldId: z.ZodString;
|
|
2640
|
+
descending: z.ZodBoolean;
|
|
2641
|
+
}, "strip", z.ZodTypeAny, {
|
|
2642
|
+
descending: boolean;
|
|
2643
|
+
fieldId: string;
|
|
2644
|
+
}, {
|
|
2645
|
+
descending: boolean;
|
|
2646
|
+
fieldId: string;
|
|
2647
|
+
}>;
|
|
2648
|
+
export declare const VisualizationMetadataSchema: z.ZodObject<{
|
|
2649
|
+
title: z.ZodString;
|
|
2650
|
+
description: z.ZodString;
|
|
2651
|
+
}, "strip", z.ZodTypeAny, {
|
|
2652
|
+
description: string;
|
|
2653
|
+
title: string;
|
|
2654
|
+
}, {
|
|
2655
|
+
description: string;
|
|
2656
|
+
title: string;
|
|
2657
|
+
}>;
|
|
2658
|
+
export declare const lighterMetricQuerySchema: z.ZodObject<{
|
|
2659
|
+
exploreName: z.ZodString;
|
|
2660
|
+
metrics: z.ZodArray<z.ZodString, "many">;
|
|
2661
|
+
dimensions: z.ZodArray<z.ZodString, "many">;
|
|
2662
|
+
filters: z.ZodObject<{
|
|
2663
|
+
type: z.ZodEnum<["and", "or"]>;
|
|
2664
|
+
dimensions: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2665
|
+
type: z.ZodEnum<["or", "and"]>;
|
|
2666
|
+
target: z.ZodObject<{
|
|
2667
|
+
fieldId: z.ZodString;
|
|
2668
|
+
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>]>]>;
|
|
2669
|
+
}, "strip", z.ZodTypeAny, {
|
|
2670
|
+
type: DimensionType | MetricType;
|
|
888
2671
|
fieldId: string;
|
|
889
2672
|
}, {
|
|
890
2673
|
type: DimensionType | MetricType;
|
|
@@ -1147,61 +2930,8 @@ export declare const generateQueryFiltersToolSchema: z.ZodObject<{
|
|
|
1147
2930
|
values: string[];
|
|
1148
2931
|
operator: FilterOperator.IN_BETWEEN;
|
|
1149
2932
|
};
|
|
1150
|
-
}>, FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>, {
|
|
1151
|
-
type: "and" | "or";
|
|
1152
|
-
target: {
|
|
1153
|
-
type: DimensionType | MetricType;
|
|
1154
|
-
fieldId: string;
|
|
1155
|
-
};
|
|
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;
|
|
1202
|
-
};
|
|
1203
2933
|
}>, "many">>;
|
|
1204
|
-
metrics: z.ZodNullable<z.ZodArray<z.
|
|
2934
|
+
metrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1205
2935
|
type: z.ZodEnum<["or", "and"]>;
|
|
1206
2936
|
target: z.ZodObject<{
|
|
1207
2937
|
fieldId: z.ZodString;
|
|
@@ -1334,37 +3064,200 @@ export declare const generateQueryFiltersToolSchema: z.ZodObject<{
|
|
|
1334
3064
|
}, "strip", z.ZodTypeAny, {
|
|
1335
3065
|
values: 1[];
|
|
1336
3066
|
settings: {
|
|
1337
|
-
completed: false;
|
|
3067
|
+
completed: false;
|
|
3068
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3069
|
+
};
|
|
3070
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
3071
|
+
}, {
|
|
3072
|
+
values: 1[];
|
|
3073
|
+
settings: {
|
|
3074
|
+
completed: false;
|
|
3075
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3076
|
+
};
|
|
3077
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
3078
|
+
}>, z.ZodObject<{
|
|
3079
|
+
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>]>;
|
|
3080
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
3081
|
+
}, "strip", z.ZodTypeAny, {
|
|
3082
|
+
values: string[];
|
|
3083
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
3084
|
+
}, {
|
|
3085
|
+
values: string[];
|
|
3086
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
3087
|
+
}>, z.ZodObject<{
|
|
3088
|
+
operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
|
|
3089
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
3090
|
+
}, "strip", z.ZodTypeAny, {
|
|
3091
|
+
values: string[];
|
|
3092
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
3093
|
+
}, {
|
|
3094
|
+
values: string[];
|
|
3095
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
3096
|
+
}>]>]>;
|
|
3097
|
+
}, "strip", z.ZodTypeAny, {
|
|
3098
|
+
type: "and" | "or";
|
|
3099
|
+
target: {
|
|
3100
|
+
type: DimensionType | MetricType;
|
|
3101
|
+
fieldId: string;
|
|
3102
|
+
};
|
|
3103
|
+
rule: {
|
|
3104
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3105
|
+
} | {
|
|
3106
|
+
values: boolean[];
|
|
3107
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3108
|
+
} | {
|
|
3109
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3110
|
+
} | {
|
|
3111
|
+
values: string[];
|
|
3112
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
3113
|
+
} | {
|
|
3114
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3115
|
+
} | {
|
|
3116
|
+
values: number[];
|
|
3117
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3118
|
+
} | {
|
|
3119
|
+
values: number[];
|
|
3120
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
3121
|
+
} | {
|
|
3122
|
+
values: number[];
|
|
3123
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
3124
|
+
} | {
|
|
3125
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3126
|
+
} | {
|
|
3127
|
+
values: string[];
|
|
3128
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3129
|
+
} | {
|
|
3130
|
+
values: number[];
|
|
3131
|
+
settings: {
|
|
3132
|
+
completed: boolean;
|
|
3133
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3134
|
+
};
|
|
3135
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
3136
|
+
} | {
|
|
3137
|
+
values: 1[];
|
|
3138
|
+
settings: {
|
|
3139
|
+
completed: false;
|
|
3140
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3141
|
+
};
|
|
3142
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
3143
|
+
} | {
|
|
3144
|
+
values: string[];
|
|
3145
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
3146
|
+
} | {
|
|
3147
|
+
values: string[];
|
|
3148
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
3149
|
+
};
|
|
3150
|
+
}, {
|
|
3151
|
+
type: "and" | "or";
|
|
3152
|
+
target: {
|
|
3153
|
+
type: DimensionType | MetricType;
|
|
3154
|
+
fieldId: string;
|
|
3155
|
+
};
|
|
3156
|
+
rule: {
|
|
3157
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3158
|
+
} | {
|
|
3159
|
+
values: boolean[];
|
|
3160
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3161
|
+
} | {
|
|
3162
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3163
|
+
} | {
|
|
3164
|
+
values: string[];
|
|
3165
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
3166
|
+
} | {
|
|
3167
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3168
|
+
} | {
|
|
3169
|
+
values: number[];
|
|
3170
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3171
|
+
} | {
|
|
3172
|
+
values: number[];
|
|
3173
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
3174
|
+
} | {
|
|
3175
|
+
values: number[];
|
|
3176
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
3177
|
+
} | {
|
|
3178
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3179
|
+
} | {
|
|
3180
|
+
values: string[];
|
|
3181
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3182
|
+
} | {
|
|
3183
|
+
values: number[];
|
|
3184
|
+
settings: {
|
|
3185
|
+
completed: boolean;
|
|
3186
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3187
|
+
};
|
|
3188
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
3189
|
+
} | {
|
|
3190
|
+
values: 1[];
|
|
3191
|
+
settings: {
|
|
3192
|
+
completed: false;
|
|
3193
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3194
|
+
};
|
|
3195
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
3196
|
+
} | {
|
|
3197
|
+
values: string[];
|
|
3198
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
3199
|
+
} | {
|
|
3200
|
+
values: string[];
|
|
3201
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
3202
|
+
};
|
|
3203
|
+
}>, "many">>;
|
|
3204
|
+
}, "strip", z.ZodTypeAny, {
|
|
3205
|
+
type: "and" | "or";
|
|
3206
|
+
dimensions: {
|
|
3207
|
+
type: "and" | "or";
|
|
3208
|
+
target: {
|
|
3209
|
+
type: DimensionType | MetricType;
|
|
3210
|
+
fieldId: string;
|
|
3211
|
+
};
|
|
3212
|
+
rule: {
|
|
3213
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3214
|
+
} | {
|
|
3215
|
+
values: boolean[];
|
|
3216
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3217
|
+
} | {
|
|
3218
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3219
|
+
} | {
|
|
3220
|
+
values: string[];
|
|
3221
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
3222
|
+
} | {
|
|
3223
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3224
|
+
} | {
|
|
3225
|
+
values: number[];
|
|
3226
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3227
|
+
} | {
|
|
3228
|
+
values: number[];
|
|
3229
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
3230
|
+
} | {
|
|
3231
|
+
values: number[];
|
|
3232
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
3233
|
+
} | {
|
|
3234
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3235
|
+
} | {
|
|
3236
|
+
values: string[];
|
|
3237
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3238
|
+
} | {
|
|
3239
|
+
values: number[];
|
|
3240
|
+
settings: {
|
|
3241
|
+
completed: boolean;
|
|
1338
3242
|
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1339
3243
|
};
|
|
1340
|
-
operator: FilterOperator.
|
|
1341
|
-
}
|
|
3244
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
3245
|
+
} | {
|
|
1342
3246
|
values: 1[];
|
|
1343
3247
|
settings: {
|
|
1344
3248
|
completed: false;
|
|
1345
3249
|
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
1346
3250
|
};
|
|
1347
3251
|
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
1348
|
-
}
|
|
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
|
-
}, {
|
|
3252
|
+
} | {
|
|
1355
3253
|
values: string[];
|
|
1356
3254
|
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
1357
|
-
}
|
|
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
|
-
}, {
|
|
3255
|
+
} | {
|
|
1364
3256
|
values: string[];
|
|
1365
3257
|
operator: FilterOperator.IN_BETWEEN;
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
3258
|
+
};
|
|
3259
|
+
}[] | null;
|
|
3260
|
+
metrics: {
|
|
1368
3261
|
type: "and" | "or";
|
|
1369
3262
|
target: {
|
|
1370
3263
|
type: DimensionType | MetricType;
|
|
@@ -1417,7 +3310,10 @@ export declare const generateQueryFiltersToolSchema: z.ZodObject<{
|
|
|
1417
3310
|
values: string[];
|
|
1418
3311
|
operator: FilterOperator.IN_BETWEEN;
|
|
1419
3312
|
};
|
|
1420
|
-
}
|
|
3313
|
+
}[] | null;
|
|
3314
|
+
}, {
|
|
3315
|
+
type: "and" | "or";
|
|
3316
|
+
dimensions: {
|
|
1421
3317
|
type: "and" | "or";
|
|
1422
3318
|
target: {
|
|
1423
3319
|
type: DimensionType | MetricType;
|
|
@@ -1470,7 +3366,8 @@ export declare const generateQueryFiltersToolSchema: z.ZodObject<{
|
|
|
1470
3366
|
values: string[];
|
|
1471
3367
|
operator: FilterOperator.IN_BETWEEN;
|
|
1472
3368
|
};
|
|
1473
|
-
}
|
|
3369
|
+
}[] | null;
|
|
3370
|
+
metrics: {
|
|
1474
3371
|
type: "and" | "or";
|
|
1475
3372
|
target: {
|
|
1476
3373
|
type: DimensionType | MetricType;
|
|
@@ -1523,12 +3420,21 @@ export declare const generateQueryFiltersToolSchema: z.ZodObject<{
|
|
|
1523
3420
|
values: string[];
|
|
1524
3421
|
operator: FilterOperator.IN_BETWEEN;
|
|
1525
3422
|
};
|
|
1526
|
-
}
|
|
3423
|
+
}[] | null;
|
|
3424
|
+
}>;
|
|
3425
|
+
sorts: z.ZodArray<z.ZodObject<{
|
|
3426
|
+
fieldId: z.ZodString;
|
|
3427
|
+
descending: z.ZodBoolean;
|
|
1527
3428
|
}, "strip", z.ZodTypeAny, {
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
metrics: FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>[] | null;
|
|
3429
|
+
descending: boolean;
|
|
3430
|
+
fieldId: string;
|
|
1531
3431
|
}, {
|
|
3432
|
+
descending: boolean;
|
|
3433
|
+
fieldId: string;
|
|
3434
|
+
}>, "many">;
|
|
3435
|
+
limit: z.ZodNumber;
|
|
3436
|
+
}, "strip", z.ZodTypeAny, {
|
|
3437
|
+
filters: {
|
|
1532
3438
|
type: "and" | "or";
|
|
1533
3439
|
dimensions: {
|
|
1534
3440
|
type: "and" | "or";
|
|
@@ -1638,7 +3544,17 @@ export declare const generateQueryFiltersToolSchema: z.ZodObject<{
|
|
|
1638
3544
|
operator: FilterOperator.IN_BETWEEN;
|
|
1639
3545
|
};
|
|
1640
3546
|
}[] | null;
|
|
1641
|
-
}
|
|
3547
|
+
};
|
|
3548
|
+
exploreName: string;
|
|
3549
|
+
dimensions: string[];
|
|
3550
|
+
metrics: string[];
|
|
3551
|
+
sorts: {
|
|
3552
|
+
descending: boolean;
|
|
3553
|
+
fieldId: string;
|
|
3554
|
+
}[];
|
|
3555
|
+
limit: number;
|
|
3556
|
+
}, {
|
|
3557
|
+
filters: {
|
|
1642
3558
|
type: "and" | "or";
|
|
1643
3559
|
dimensions: {
|
|
1644
3560
|
type: "and" | "or";
|
|
@@ -1748,14 +3664,186 @@ export declare const generateQueryFiltersToolSchema: z.ZodObject<{
|
|
|
1748
3664
|
operator: FilterOperator.IN_BETWEEN;
|
|
1749
3665
|
};
|
|
1750
3666
|
}[] | null;
|
|
1751
|
-
}
|
|
1752
|
-
}, "strip", z.ZodTypeAny, {
|
|
1753
|
-
filters: Filters;
|
|
3667
|
+
};
|
|
1754
3668
|
exploreName: string;
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
3669
|
+
dimensions: string[];
|
|
3670
|
+
metrics: string[];
|
|
3671
|
+
sorts: {
|
|
3672
|
+
descending: boolean;
|
|
3673
|
+
fieldId: string;
|
|
3674
|
+
}[];
|
|
3675
|
+
limit: number;
|
|
3676
|
+
}>;
|
|
3677
|
+
export declare const lighterMetricQuerySchemaTransformed: z.ZodEffects<z.ZodObject<{
|
|
3678
|
+
exploreName: z.ZodString;
|
|
3679
|
+
metrics: z.ZodArray<z.ZodString, "many">;
|
|
3680
|
+
dimensions: z.ZodArray<z.ZodString, "many">;
|
|
3681
|
+
filters: z.ZodObject<{
|
|
3682
|
+
type: z.ZodEnum<["and", "or"]>;
|
|
3683
|
+
dimensions: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3684
|
+
type: z.ZodEnum<["or", "and"]>;
|
|
3685
|
+
target: z.ZodObject<{
|
|
3686
|
+
fieldId: z.ZodString;
|
|
3687
|
+
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>]>]>;
|
|
3688
|
+
}, "strip", z.ZodTypeAny, {
|
|
3689
|
+
type: DimensionType | MetricType;
|
|
3690
|
+
fieldId: string;
|
|
3691
|
+
}, {
|
|
3692
|
+
type: DimensionType | MetricType;
|
|
3693
|
+
fieldId: string;
|
|
3694
|
+
}>;
|
|
3695
|
+
rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
3696
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
3697
|
+
}, "strip", z.ZodTypeAny, {
|
|
3698
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3699
|
+
}, {
|
|
3700
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3701
|
+
}>, z.ZodObject<{
|
|
3702
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
3703
|
+
values: z.ZodArray<z.ZodBoolean, "many">;
|
|
3704
|
+
}, "strip", z.ZodTypeAny, {
|
|
3705
|
+
values: boolean[];
|
|
3706
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3707
|
+
}, {
|
|
3708
|
+
values: boolean[];
|
|
3709
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3710
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
3711
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
3712
|
+
}, "strip", z.ZodTypeAny, {
|
|
3713
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3714
|
+
}, {
|
|
3715
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3716
|
+
}>, z.ZodObject<{
|
|
3717
|
+
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>]>;
|
|
3718
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
3719
|
+
}, "strip", z.ZodTypeAny, {
|
|
3720
|
+
values: string[];
|
|
3721
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
3722
|
+
}, {
|
|
3723
|
+
values: string[];
|
|
3724
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
3725
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
3726
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
3727
|
+
}, "strip", z.ZodTypeAny, {
|
|
3728
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3729
|
+
}, {
|
|
3730
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3731
|
+
}>, z.ZodObject<{
|
|
3732
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
3733
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
3734
|
+
}, "strip", z.ZodTypeAny, {
|
|
3735
|
+
values: number[];
|
|
3736
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3737
|
+
}, {
|
|
3738
|
+
values: number[];
|
|
3739
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3740
|
+
}>, z.ZodObject<{
|
|
3741
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
|
|
3742
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
3743
|
+
}, "strip", z.ZodTypeAny, {
|
|
3744
|
+
values: number[];
|
|
3745
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
3746
|
+
}, {
|
|
3747
|
+
values: number[];
|
|
3748
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
3749
|
+
}>, z.ZodObject<{
|
|
3750
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
|
|
3751
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
3752
|
+
}, "strip", z.ZodTypeAny, {
|
|
3753
|
+
values: number[];
|
|
3754
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
3755
|
+
}, {
|
|
3756
|
+
values: number[];
|
|
3757
|
+
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
3758
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
3759
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
3760
|
+
}, "strip", z.ZodTypeAny, {
|
|
3761
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3762
|
+
}, {
|
|
3763
|
+
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
3764
|
+
}>, z.ZodObject<{
|
|
3765
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
3766
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
3767
|
+
}, "strip", z.ZodTypeAny, {
|
|
3768
|
+
values: string[];
|
|
3769
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3770
|
+
}, {
|
|
3771
|
+
values: string[];
|
|
3772
|
+
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
3773
|
+
}>, z.ZodObject<{
|
|
3774
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
|
|
3775
|
+
values: z.ZodArray<z.ZodNumber, "many">;
|
|
3776
|
+
settings: z.ZodObject<{
|
|
3777
|
+
completed: z.ZodBoolean;
|
|
3778
|
+
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
3779
|
+
}, "strip", z.ZodTypeAny, {
|
|
3780
|
+
completed: boolean;
|
|
3781
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3782
|
+
}, {
|
|
3783
|
+
completed: boolean;
|
|
3784
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3785
|
+
}>;
|
|
3786
|
+
}, "strip", z.ZodTypeAny, {
|
|
3787
|
+
values: number[];
|
|
3788
|
+
settings: {
|
|
3789
|
+
completed: boolean;
|
|
3790
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3791
|
+
};
|
|
3792
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
3793
|
+
}, {
|
|
3794
|
+
values: number[];
|
|
3795
|
+
settings: {
|
|
3796
|
+
completed: boolean;
|
|
3797
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3798
|
+
};
|
|
3799
|
+
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
3800
|
+
}>, z.ZodObject<{
|
|
3801
|
+
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
|
|
3802
|
+
values: z.ZodArray<z.ZodLiteral<1>, "many">;
|
|
3803
|
+
settings: z.ZodObject<{
|
|
3804
|
+
completed: z.ZodLiteral<false>;
|
|
3805
|
+
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
3806
|
+
}, "strip", z.ZodTypeAny, {
|
|
3807
|
+
completed: false;
|
|
3808
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3809
|
+
}, {
|
|
3810
|
+
completed: false;
|
|
3811
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3812
|
+
}>;
|
|
3813
|
+
}, "strip", z.ZodTypeAny, {
|
|
3814
|
+
values: 1[];
|
|
3815
|
+
settings: {
|
|
3816
|
+
completed: false;
|
|
3817
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3818
|
+
};
|
|
3819
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
3820
|
+
}, {
|
|
3821
|
+
values: 1[];
|
|
3822
|
+
settings: {
|
|
3823
|
+
completed: false;
|
|
3824
|
+
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
3825
|
+
};
|
|
3826
|
+
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
3827
|
+
}>, z.ZodObject<{
|
|
3828
|
+
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>]>;
|
|
3829
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
3830
|
+
}, "strip", z.ZodTypeAny, {
|
|
3831
|
+
values: string[];
|
|
3832
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
3833
|
+
}, {
|
|
3834
|
+
values: string[];
|
|
3835
|
+
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
3836
|
+
}>, z.ZodObject<{
|
|
3837
|
+
operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
|
|
3838
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
3839
|
+
}, "strip", z.ZodTypeAny, {
|
|
3840
|
+
values: string[];
|
|
3841
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
3842
|
+
}, {
|
|
3843
|
+
values: string[];
|
|
3844
|
+
operator: FilterOperator.IN_BETWEEN;
|
|
3845
|
+
}>]>]>;
|
|
3846
|
+
}, "strip", z.ZodTypeAny, {
|
|
1759
3847
|
type: "and" | "or";
|
|
1760
3848
|
target: {
|
|
1761
3849
|
type: DimensionType | MetricType;
|
|
@@ -1808,8 +3896,7 @@ export declare const generateQueryFiltersToolSchema: z.ZodObject<{
|
|
|
1808
3896
|
values: string[];
|
|
1809
3897
|
operator: FilterOperator.IN_BETWEEN;
|
|
1810
3898
|
};
|
|
1811
|
-
}
|
|
1812
|
-
metrics: {
|
|
3899
|
+
}, {
|
|
1813
3900
|
type: "and" | "or";
|
|
1814
3901
|
target: {
|
|
1815
3902
|
type: DimensionType | MetricType;
|
|
@@ -1862,37 +3949,8 @@ export declare const generateQueryFiltersToolSchema: z.ZodObject<{
|
|
|
1862
3949
|
values: string[];
|
|
1863
3950
|
operator: FilterOperator.IN_BETWEEN;
|
|
1864
3951
|
};
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
exploreName: string;
|
|
1868
|
-
}>;
|
|
1869
|
-
export declare const SortFieldSchema: z.ZodObject<{
|
|
1870
|
-
fieldId: z.ZodString;
|
|
1871
|
-
descending: z.ZodBoolean;
|
|
1872
|
-
}, "strip", z.ZodTypeAny, {
|
|
1873
|
-
descending: boolean;
|
|
1874
|
-
fieldId: string;
|
|
1875
|
-
}, {
|
|
1876
|
-
descending: boolean;
|
|
1877
|
-
fieldId: string;
|
|
1878
|
-
}>;
|
|
1879
|
-
export declare const VisualizationMetadataSchema: z.ZodObject<{
|
|
1880
|
-
title: z.ZodString;
|
|
1881
|
-
description: z.ZodString;
|
|
1882
|
-
}, "strip", z.ZodTypeAny, {
|
|
1883
|
-
description: string;
|
|
1884
|
-
title: string;
|
|
1885
|
-
}, {
|
|
1886
|
-
description: string;
|
|
1887
|
-
title: string;
|
|
1888
|
-
}>;
|
|
1889
|
-
export declare const lighterMetricQuerySchema: z.ZodObject<{
|
|
1890
|
-
exploreName: z.ZodString;
|
|
1891
|
-
metrics: z.ZodArray<z.ZodString, "many">;
|
|
1892
|
-
dimensions: z.ZodArray<z.ZodString, "many">;
|
|
1893
|
-
filters: z.ZodEffects<z.ZodObject<{
|
|
1894
|
-
type: z.ZodEnum<["and", "or"]>;
|
|
1895
|
-
dimensions: z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3952
|
+
}>, "many">>;
|
|
3953
|
+
metrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1896
3954
|
type: z.ZodEnum<["or", "and"]>;
|
|
1897
3955
|
target: z.ZodObject<{
|
|
1898
3956
|
fieldId: z.ZodString;
|
|
@@ -2161,7 +4219,10 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
|
|
|
2161
4219
|
values: string[];
|
|
2162
4220
|
operator: FilterOperator.IN_BETWEEN;
|
|
2163
4221
|
};
|
|
2164
|
-
}>,
|
|
4222
|
+
}>, "many">>;
|
|
4223
|
+
}, "strip", z.ZodTypeAny, {
|
|
4224
|
+
type: "and" | "or";
|
|
4225
|
+
dimensions: {
|
|
2165
4226
|
type: "and" | "or";
|
|
2166
4227
|
target: {
|
|
2167
4228
|
type: DimensionType | MetricType;
|
|
@@ -2214,171 +4275,8 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
|
|
|
2214
4275
|
values: string[];
|
|
2215
4276
|
operator: FilterOperator.IN_BETWEEN;
|
|
2216
4277
|
};
|
|
2217
|
-
}
|
|
2218
|
-
metrics:
|
|
2219
|
-
type: z.ZodEnum<["or", "and"]>;
|
|
2220
|
-
target: z.ZodObject<{
|
|
2221
|
-
fieldId: z.ZodString;
|
|
2222
|
-
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>]>]>;
|
|
2223
|
-
}, "strip", z.ZodTypeAny, {
|
|
2224
|
-
type: DimensionType | MetricType;
|
|
2225
|
-
fieldId: string;
|
|
2226
|
-
}, {
|
|
2227
|
-
type: DimensionType | MetricType;
|
|
2228
|
-
fieldId: string;
|
|
2229
|
-
}>;
|
|
2230
|
-
rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
2231
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
2232
|
-
}, "strip", z.ZodTypeAny, {
|
|
2233
|
-
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2234
|
-
}, {
|
|
2235
|
-
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2236
|
-
}>, z.ZodObject<{
|
|
2237
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
2238
|
-
values: z.ZodArray<z.ZodBoolean, "many">;
|
|
2239
|
-
}, "strip", z.ZodTypeAny, {
|
|
2240
|
-
values: boolean[];
|
|
2241
|
-
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2242
|
-
}, {
|
|
2243
|
-
values: boolean[];
|
|
2244
|
-
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2245
|
-
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
2246
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
2247
|
-
}, "strip", z.ZodTypeAny, {
|
|
2248
|
-
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2249
|
-
}, {
|
|
2250
|
-
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2251
|
-
}>, z.ZodObject<{
|
|
2252
|
-
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>]>;
|
|
2253
|
-
values: z.ZodArray<z.ZodString, "many">;
|
|
2254
|
-
}, "strip", z.ZodTypeAny, {
|
|
2255
|
-
values: string[];
|
|
2256
|
-
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2257
|
-
}, {
|
|
2258
|
-
values: string[];
|
|
2259
|
-
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS | FilterOperator.STARTS_WITH | FilterOperator.ENDS_WITH | FilterOperator.INCLUDE | FilterOperator.NOT_INCLUDE;
|
|
2260
|
-
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
2261
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
2262
|
-
}, "strip", z.ZodTypeAny, {
|
|
2263
|
-
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2264
|
-
}, {
|
|
2265
|
-
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2266
|
-
}>, z.ZodObject<{
|
|
2267
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
2268
|
-
values: z.ZodArray<z.ZodNumber, "many">;
|
|
2269
|
-
}, "strip", z.ZodTypeAny, {
|
|
2270
|
-
values: number[];
|
|
2271
|
-
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2272
|
-
}, {
|
|
2273
|
-
values: number[];
|
|
2274
|
-
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2275
|
-
}>, z.ZodObject<{
|
|
2276
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.LESS_THAN>, z.ZodLiteral<FilterOperator.GREATER_THAN>]>;
|
|
2277
|
-
values: z.ZodArray<z.ZodNumber, "many">;
|
|
2278
|
-
}, "strip", z.ZodTypeAny, {
|
|
2279
|
-
values: number[];
|
|
2280
|
-
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2281
|
-
}, {
|
|
2282
|
-
values: number[];
|
|
2283
|
-
operator: FilterOperator.LESS_THAN | FilterOperator.GREATER_THAN;
|
|
2284
|
-
}>, z.ZodObject<{
|
|
2285
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_BETWEEN>, z.ZodLiteral<FilterOperator.NOT_IN_BETWEEN>]>;
|
|
2286
|
-
values: z.ZodArray<z.ZodNumber, "many">;
|
|
2287
|
-
}, "strip", z.ZodTypeAny, {
|
|
2288
|
-
values: number[];
|
|
2289
|
-
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2290
|
-
}, {
|
|
2291
|
-
values: number[];
|
|
2292
|
-
operator: FilterOperator.IN_BETWEEN | FilterOperator.NOT_IN_BETWEEN;
|
|
2293
|
-
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
2294
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.NULL>, z.ZodLiteral<FilterOperator.NOT_NULL>]>;
|
|
2295
|
-
}, "strip", z.ZodTypeAny, {
|
|
2296
|
-
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2297
|
-
}, {
|
|
2298
|
-
operator: FilterOperator.NULL | FilterOperator.NOT_NULL;
|
|
2299
|
-
}>, z.ZodObject<{
|
|
2300
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.EQUALS>, z.ZodLiteral<FilterOperator.NOT_EQUALS>]>;
|
|
2301
|
-
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
2302
|
-
}, "strip", z.ZodTypeAny, {
|
|
2303
|
-
values: string[];
|
|
2304
|
-
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2305
|
-
}, {
|
|
2306
|
-
values: string[];
|
|
2307
|
-
operator: FilterOperator.EQUALS | FilterOperator.NOT_EQUALS;
|
|
2308
|
-
}>, z.ZodObject<{
|
|
2309
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_PAST>, z.ZodLiteral<FilterOperator.NOT_IN_THE_PAST>, z.ZodLiteral<FilterOperator.IN_THE_NEXT>]>;
|
|
2310
|
-
values: z.ZodArray<z.ZodNumber, "many">;
|
|
2311
|
-
settings: z.ZodObject<{
|
|
2312
|
-
completed: z.ZodBoolean;
|
|
2313
|
-
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
2314
|
-
}, "strip", z.ZodTypeAny, {
|
|
2315
|
-
completed: boolean;
|
|
2316
|
-
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2317
|
-
}, {
|
|
2318
|
-
completed: boolean;
|
|
2319
|
-
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2320
|
-
}>;
|
|
2321
|
-
}, "strip", z.ZodTypeAny, {
|
|
2322
|
-
values: number[];
|
|
2323
|
-
settings: {
|
|
2324
|
-
completed: boolean;
|
|
2325
|
-
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2326
|
-
};
|
|
2327
|
-
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2328
|
-
}, {
|
|
2329
|
-
values: number[];
|
|
2330
|
-
settings: {
|
|
2331
|
-
completed: boolean;
|
|
2332
|
-
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2333
|
-
};
|
|
2334
|
-
operator: FilterOperator.IN_THE_PAST | FilterOperator.NOT_IN_THE_PAST | FilterOperator.IN_THE_NEXT;
|
|
2335
|
-
}>, z.ZodObject<{
|
|
2336
|
-
operator: z.ZodUnion<[z.ZodLiteral<FilterOperator.IN_THE_CURRENT>, z.ZodLiteral<FilterOperator.NOT_IN_THE_CURRENT>]>;
|
|
2337
|
-
values: z.ZodArray<z.ZodLiteral<1>, "many">;
|
|
2338
|
-
settings: z.ZodObject<{
|
|
2339
|
-
completed: z.ZodLiteral<false>;
|
|
2340
|
-
unitOfTime: z.ZodUnion<[z.ZodLiteral<UnitOfTime.days>, z.ZodLiteral<UnitOfTime.weeks>, z.ZodLiteral<UnitOfTime.months>, z.ZodLiteral<UnitOfTime.quarters>, z.ZodLiteral<UnitOfTime.years>]>;
|
|
2341
|
-
}, "strip", z.ZodTypeAny, {
|
|
2342
|
-
completed: false;
|
|
2343
|
-
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2344
|
-
}, {
|
|
2345
|
-
completed: false;
|
|
2346
|
-
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2347
|
-
}>;
|
|
2348
|
-
}, "strip", z.ZodTypeAny, {
|
|
2349
|
-
values: 1[];
|
|
2350
|
-
settings: {
|
|
2351
|
-
completed: false;
|
|
2352
|
-
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2353
|
-
};
|
|
2354
|
-
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2355
|
-
}, {
|
|
2356
|
-
values: 1[];
|
|
2357
|
-
settings: {
|
|
2358
|
-
completed: false;
|
|
2359
|
-
unitOfTime: UnitOfTime.days | UnitOfTime.weeks | UnitOfTime.months | UnitOfTime.quarters | UnitOfTime.years;
|
|
2360
|
-
};
|
|
2361
|
-
operator: FilterOperator.IN_THE_CURRENT | FilterOperator.NOT_IN_THE_CURRENT;
|
|
2362
|
-
}>, z.ZodObject<{
|
|
2363
|
-
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>]>;
|
|
2364
|
-
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
2365
|
-
}, "strip", z.ZodTypeAny, {
|
|
2366
|
-
values: string[];
|
|
2367
|
-
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2368
|
-
}, {
|
|
2369
|
-
values: string[];
|
|
2370
|
-
operator: FilterOperator.LESS_THAN | FilterOperator.LESS_THAN_OR_EQUAL | FilterOperator.GREATER_THAN | FilterOperator.GREATER_THAN_OR_EQUAL;
|
|
2371
|
-
}>, z.ZodObject<{
|
|
2372
|
-
operator: z.ZodLiteral<FilterOperator.IN_BETWEEN>;
|
|
2373
|
-
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
2374
|
-
}, "strip", z.ZodTypeAny, {
|
|
2375
|
-
values: string[];
|
|
2376
|
-
operator: FilterOperator.IN_BETWEEN;
|
|
2377
|
-
}, {
|
|
2378
|
-
values: string[];
|
|
2379
|
-
operator: FilterOperator.IN_BETWEEN;
|
|
2380
|
-
}>]>]>;
|
|
2381
|
-
}, "strip", z.ZodTypeAny, {
|
|
4278
|
+
}[] | null;
|
|
4279
|
+
metrics: {
|
|
2382
4280
|
type: "and" | "or";
|
|
2383
4281
|
target: {
|
|
2384
4282
|
type: DimensionType | MetricType;
|
|
@@ -2431,7 +4329,10 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
|
|
|
2431
4329
|
values: string[];
|
|
2432
4330
|
operator: FilterOperator.IN_BETWEEN;
|
|
2433
4331
|
};
|
|
2434
|
-
}
|
|
4332
|
+
}[] | null;
|
|
4333
|
+
}, {
|
|
4334
|
+
type: "and" | "or";
|
|
4335
|
+
dimensions: {
|
|
2435
4336
|
type: "and" | "or";
|
|
2436
4337
|
target: {
|
|
2437
4338
|
type: DimensionType | MetricType;
|
|
@@ -2484,7 +4385,8 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
|
|
|
2484
4385
|
values: string[];
|
|
2485
4386
|
operator: FilterOperator.IN_BETWEEN;
|
|
2486
4387
|
};
|
|
2487
|
-
}
|
|
4388
|
+
}[] | null;
|
|
4389
|
+
metrics: {
|
|
2488
4390
|
type: "and" | "or";
|
|
2489
4391
|
target: {
|
|
2490
4392
|
type: DimensionType | MetricType;
|
|
@@ -2537,12 +4439,21 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
|
|
|
2537
4439
|
values: string[];
|
|
2538
4440
|
operator: FilterOperator.IN_BETWEEN;
|
|
2539
4441
|
};
|
|
2540
|
-
}
|
|
4442
|
+
}[] | null;
|
|
4443
|
+
}>;
|
|
4444
|
+
sorts: z.ZodArray<z.ZodObject<{
|
|
4445
|
+
fieldId: z.ZodString;
|
|
4446
|
+
descending: z.ZodBoolean;
|
|
2541
4447
|
}, "strip", z.ZodTypeAny, {
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
metrics: FilterRule<FilterOperator, import("../../types/filter").FieldTarget, any, any>[] | null;
|
|
4448
|
+
descending: boolean;
|
|
4449
|
+
fieldId: string;
|
|
2545
4450
|
}, {
|
|
4451
|
+
descending: boolean;
|
|
4452
|
+
fieldId: string;
|
|
4453
|
+
}>, "many">;
|
|
4454
|
+
limit: z.ZodNumber;
|
|
4455
|
+
}, "strip", z.ZodTypeAny, {
|
|
4456
|
+
filters: {
|
|
2546
4457
|
type: "and" | "or";
|
|
2547
4458
|
dimensions: {
|
|
2548
4459
|
type: "and" | "or";
|
|
@@ -2652,7 +4563,17 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
|
|
|
2652
4563
|
operator: FilterOperator.IN_BETWEEN;
|
|
2653
4564
|
};
|
|
2654
4565
|
}[] | null;
|
|
2655
|
-
}
|
|
4566
|
+
};
|
|
4567
|
+
exploreName: string;
|
|
4568
|
+
dimensions: string[];
|
|
4569
|
+
metrics: string[];
|
|
4570
|
+
sorts: {
|
|
4571
|
+
descending: boolean;
|
|
4572
|
+
fieldId: string;
|
|
4573
|
+
}[];
|
|
4574
|
+
limit: number;
|
|
4575
|
+
}, {
|
|
4576
|
+
filters: {
|
|
2656
4577
|
type: "and" | "or";
|
|
2657
4578
|
dimensions: {
|
|
2658
4579
|
type: "and" | "or";
|
|
@@ -2762,19 +4683,16 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
|
|
|
2762
4683
|
operator: FilterOperator.IN_BETWEEN;
|
|
2763
4684
|
};
|
|
2764
4685
|
}[] | null;
|
|
2765
|
-
}
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
descending: boolean;
|
|
2771
|
-
fieldId: string;
|
|
2772
|
-
}, {
|
|
4686
|
+
};
|
|
4687
|
+
exploreName: string;
|
|
4688
|
+
dimensions: string[];
|
|
4689
|
+
metrics: string[];
|
|
4690
|
+
sorts: {
|
|
2773
4691
|
descending: boolean;
|
|
2774
4692
|
fieldId: string;
|
|
2775
|
-
}
|
|
2776
|
-
limit:
|
|
2777
|
-
}
|
|
4693
|
+
}[];
|
|
4694
|
+
limit: number;
|
|
4695
|
+
}>, {
|
|
2778
4696
|
filters: Filters;
|
|
2779
4697
|
exploreName: string;
|
|
2780
4698
|
dimensions: string[];
|