@lightdash/common 0.1861.0 → 0.1861.1
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/AiAgent/schemas/fieldId.d.ts +2 -1
- package/dist/cjs/ee/AiAgent/schemas/fieldId.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/fieldId.js +5 -1
- package/dist/cjs/ee/AiAgent/schemas/fieldId.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/fieldSearchQuery.d.ts +13 -0
- package/dist/cjs/ee/AiAgent/schemas/fieldSearchQuery.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/fieldSearchQuery.js +10 -0
- package/dist/cjs/ee/AiAgent/schemas/fieldSearchQuery.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/fieldType.d.ts +1 -1
- package/dist/cjs/ee/AiAgent/schemas/fieldType.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/fieldType.js +22 -2
- package/dist/cjs/ee/AiAgent/schemas/fieldType.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/filters/index.d.ts +30 -30
- package/dist/cjs/ee/AiAgent/schemas/filters/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/filters/index.js +4 -8
- package/dist/cjs/ee/AiAgent/schemas/filters/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts +75 -69
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/index.js +4 -1
- package/dist/cjs/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +0 -6
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +0 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +6 -38
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +1 -8
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolNewFindFieldsArgs.d.ts +54 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolNewFindFieldsArgs.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolNewFindFieldsArgs.js +13 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolNewFindFieldsArgs.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +38 -38
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +38 -38
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +38 -38
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/catalog.d.ts +4 -7
- package/dist/cjs/types/catalog.d.ts.map +1 -1
- package/dist/cjs/types/catalog.js.map +1 -1
- package/dist/cjs/types/parameters.d.ts.map +1 -1
- package/dist/cjs/utils/explore.d.ts +3 -0
- package/dist/cjs/utils/explore.d.ts.map +1 -0
- package/dist/cjs/utils/explore.js +18 -0
- package/dist/cjs/utils/explore.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/fieldId.d.ts +2 -1
- package/dist/esm/ee/AiAgent/schemas/fieldId.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/fieldId.js +4 -1
- package/dist/esm/ee/AiAgent/schemas/fieldId.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/fieldSearchQuery.d.ts +13 -0
- package/dist/esm/ee/AiAgent/schemas/fieldSearchQuery.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/fieldSearchQuery.js +7 -0
- package/dist/esm/ee/AiAgent/schemas/fieldSearchQuery.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/fieldType.d.ts +1 -1
- package/dist/esm/ee/AiAgent/schemas/fieldType.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/fieldType.js +22 -2
- package/dist/esm/ee/AiAgent/schemas/fieldType.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/filters/index.d.ts +30 -30
- package/dist/esm/ee/AiAgent/schemas/filters/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/filters/index.js +4 -8
- package/dist/esm/ee/AiAgent/schemas/filters/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/index.d.ts +75 -69
- package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/index.js +5 -2
- package/dist/esm/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.js +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +0 -6
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +0 -4
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +6 -38
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +1 -8
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolNewFindFieldsArgs.d.ts +54 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolNewFindFieldsArgs.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolNewFindFieldsArgs.js +10 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolNewFindFieldsArgs.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +38 -38
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +38 -38
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +38 -38
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/catalog.d.ts +4 -7
- package/dist/esm/types/catalog.d.ts.map +1 -1
- package/dist/esm/types/catalog.js.map +1 -1
- package/dist/esm/types/parameters.d.ts.map +1 -1
- package/dist/esm/utils/explore.d.ts +3 -0
- package/dist/esm/utils/explore.d.ts.map +1 -0
- package/dist/esm/utils/explore.js +14 -0
- package/dist/esm/utils/explore.js.map +1 -0
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/fieldId.d.ts +2 -1
- package/dist/types/ee/AiAgent/schemas/fieldId.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/fieldSearchQuery.d.ts +13 -0
- package/dist/types/ee/AiAgent/schemas/fieldSearchQuery.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/fieldType.d.ts +1 -1
- package/dist/types/ee/AiAgent/schemas/fieldType.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/filters/index.d.ts +30 -30
- package/dist/types/ee/AiAgent/schemas/filters/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/index.d.ts +75 -69
- package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +0 -6
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +6 -38
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolNewFindFieldsArgs.d.ts +54 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolNewFindFieldsArgs.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +38 -38
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +38 -38
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +38 -38
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/catalog.d.ts +4 -7
- package/dist/types/types/catalog.d.ts.map +1 -1
- package/dist/types/types/parameters.d.ts.map +1 -1
- package/dist/types/utils/explore.d.ts +3 -0
- package/dist/types/utils/explore.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -6,12 +6,12 @@ export declare const filtersSchema: z.ZodObject<{
|
|
|
6
6
|
type: z.ZodEnum<["or", "and"]>;
|
|
7
7
|
target: z.ZodObject<{
|
|
8
8
|
fieldId: z.ZodString;
|
|
9
|
-
type: z.
|
|
9
|
+
type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<import("../../../..").DimensionType.BOOLEAN>, z.ZodLiteral<import("../../../..").DimensionType.DATE>, z.ZodLiteral<import("../../../..").DimensionType.NUMBER>, z.ZodLiteral<import("../../../..").DimensionType.STRING>, z.ZodLiteral<import("../../../..").DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<import("../../../..").MetricType.PERCENTILE>, z.ZodLiteral<import("../../../..").MetricType.AVERAGE>, z.ZodLiteral<import("../../../..").MetricType.COUNT>, z.ZodLiteral<import("../../../..").MetricType.COUNT_DISTINCT>, z.ZodLiteral<import("../../../..").MetricType.SUM>, z.ZodLiteral<import("../../../..").MetricType.MIN>, z.ZodLiteral<import("../../../..").MetricType.MAX>, z.ZodLiteral<import("../../../..").MetricType.NUMBER>, z.ZodLiteral<import("../../../..").MetricType.MEDIAN>, z.ZodLiteral<import("../../../..").MetricType.STRING>, z.ZodLiteral<import("../../../..").MetricType.DATE>, z.ZodLiteral<import("../../../..").MetricType.TIMESTAMP>, z.ZodLiteral<import("../../../..").MetricType.BOOLEAN>]>]>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
type: "
|
|
11
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
12
12
|
fieldId: string;
|
|
13
13
|
}, {
|
|
14
|
-
type: "
|
|
14
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
15
15
|
fieldId: string;
|
|
16
16
|
}>;
|
|
17
17
|
rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -168,7 +168,7 @@ export declare const filtersSchema: z.ZodObject<{
|
|
|
168
168
|
}, "strip", z.ZodTypeAny, {
|
|
169
169
|
type: "and" | "or";
|
|
170
170
|
target: {
|
|
171
|
-
type: "
|
|
171
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
172
172
|
fieldId: string;
|
|
173
173
|
};
|
|
174
174
|
rule: {
|
|
@@ -221,7 +221,7 @@ export declare const filtersSchema: z.ZodObject<{
|
|
|
221
221
|
}, {
|
|
222
222
|
type: "and" | "or";
|
|
223
223
|
target: {
|
|
224
|
-
type: "
|
|
224
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
225
225
|
fieldId: string;
|
|
226
226
|
};
|
|
227
227
|
rule: {
|
|
@@ -276,12 +276,12 @@ export declare const filtersSchema: z.ZodObject<{
|
|
|
276
276
|
type: z.ZodEnum<["or", "and"]>;
|
|
277
277
|
target: z.ZodObject<{
|
|
278
278
|
fieldId: z.ZodString;
|
|
279
|
-
type: z.
|
|
279
|
+
type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<import("../../../..").DimensionType.BOOLEAN>, z.ZodLiteral<import("../../../..").DimensionType.DATE>, z.ZodLiteral<import("../../../..").DimensionType.NUMBER>, z.ZodLiteral<import("../../../..").DimensionType.STRING>, z.ZodLiteral<import("../../../..").DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<import("../../../..").MetricType.PERCENTILE>, z.ZodLiteral<import("../../../..").MetricType.AVERAGE>, z.ZodLiteral<import("../../../..").MetricType.COUNT>, z.ZodLiteral<import("../../../..").MetricType.COUNT_DISTINCT>, z.ZodLiteral<import("../../../..").MetricType.SUM>, z.ZodLiteral<import("../../../..").MetricType.MIN>, z.ZodLiteral<import("../../../..").MetricType.MAX>, z.ZodLiteral<import("../../../..").MetricType.NUMBER>, z.ZodLiteral<import("../../../..").MetricType.MEDIAN>, z.ZodLiteral<import("../../../..").MetricType.STRING>, z.ZodLiteral<import("../../../..").MetricType.DATE>, z.ZodLiteral<import("../../../..").MetricType.TIMESTAMP>, z.ZodLiteral<import("../../../..").MetricType.BOOLEAN>]>]>;
|
|
280
280
|
}, "strip", z.ZodTypeAny, {
|
|
281
|
-
type: "
|
|
281
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
282
282
|
fieldId: string;
|
|
283
283
|
}, {
|
|
284
|
-
type: "
|
|
284
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
285
285
|
fieldId: string;
|
|
286
286
|
}>;
|
|
287
287
|
rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -438,7 +438,7 @@ export declare const filtersSchema: z.ZodObject<{
|
|
|
438
438
|
}, "strip", z.ZodTypeAny, {
|
|
439
439
|
type: "and" | "or";
|
|
440
440
|
target: {
|
|
441
|
-
type: "
|
|
441
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
442
442
|
fieldId: string;
|
|
443
443
|
};
|
|
444
444
|
rule: {
|
|
@@ -491,7 +491,7 @@ export declare const filtersSchema: z.ZodObject<{
|
|
|
491
491
|
}, {
|
|
492
492
|
type: "and" | "or";
|
|
493
493
|
target: {
|
|
494
|
-
type: "
|
|
494
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
495
495
|
fieldId: string;
|
|
496
496
|
};
|
|
497
497
|
rule: {
|
|
@@ -547,7 +547,7 @@ export declare const filtersSchema: z.ZodObject<{
|
|
|
547
547
|
metrics: {
|
|
548
548
|
type: "and" | "or";
|
|
549
549
|
target: {
|
|
550
|
-
type: "
|
|
550
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
551
551
|
fieldId: string;
|
|
552
552
|
};
|
|
553
553
|
rule: {
|
|
@@ -601,7 +601,7 @@ export declare const filtersSchema: z.ZodObject<{
|
|
|
601
601
|
dimensions: {
|
|
602
602
|
type: "and" | "or";
|
|
603
603
|
target: {
|
|
604
|
-
type: "
|
|
604
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
605
605
|
fieldId: string;
|
|
606
606
|
};
|
|
607
607
|
rule: {
|
|
@@ -657,7 +657,7 @@ export declare const filtersSchema: z.ZodObject<{
|
|
|
657
657
|
metrics: {
|
|
658
658
|
type: "and" | "or";
|
|
659
659
|
target: {
|
|
660
|
-
type: "
|
|
660
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
661
661
|
fieldId: string;
|
|
662
662
|
};
|
|
663
663
|
rule: {
|
|
@@ -711,7 +711,7 @@ export declare const filtersSchema: z.ZodObject<{
|
|
|
711
711
|
dimensions: {
|
|
712
712
|
type: "and" | "or";
|
|
713
713
|
target: {
|
|
714
|
-
type: "
|
|
714
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
715
715
|
fieldId: string;
|
|
716
716
|
};
|
|
717
717
|
rule: {
|
|
@@ -769,12 +769,12 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
769
769
|
type: z.ZodEnum<["or", "and"]>;
|
|
770
770
|
target: z.ZodObject<{
|
|
771
771
|
fieldId: z.ZodString;
|
|
772
|
-
type: z.
|
|
772
|
+
type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<import("../../../..").DimensionType.BOOLEAN>, z.ZodLiteral<import("../../../..").DimensionType.DATE>, z.ZodLiteral<import("../../../..").DimensionType.NUMBER>, z.ZodLiteral<import("../../../..").DimensionType.STRING>, z.ZodLiteral<import("../../../..").DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<import("../../../..").MetricType.PERCENTILE>, z.ZodLiteral<import("../../../..").MetricType.AVERAGE>, z.ZodLiteral<import("../../../..").MetricType.COUNT>, z.ZodLiteral<import("../../../..").MetricType.COUNT_DISTINCT>, z.ZodLiteral<import("../../../..").MetricType.SUM>, z.ZodLiteral<import("../../../..").MetricType.MIN>, z.ZodLiteral<import("../../../..").MetricType.MAX>, z.ZodLiteral<import("../../../..").MetricType.NUMBER>, z.ZodLiteral<import("../../../..").MetricType.MEDIAN>, z.ZodLiteral<import("../../../..").MetricType.STRING>, z.ZodLiteral<import("../../../..").MetricType.DATE>, z.ZodLiteral<import("../../../..").MetricType.TIMESTAMP>, z.ZodLiteral<import("../../../..").MetricType.BOOLEAN>]>]>;
|
|
773
773
|
}, "strip", z.ZodTypeAny, {
|
|
774
|
-
type: "
|
|
774
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
775
775
|
fieldId: string;
|
|
776
776
|
}, {
|
|
777
|
-
type: "
|
|
777
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
778
778
|
fieldId: string;
|
|
779
779
|
}>;
|
|
780
780
|
rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -931,7 +931,7 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
931
931
|
}, "strip", z.ZodTypeAny, {
|
|
932
932
|
type: "and" | "or";
|
|
933
933
|
target: {
|
|
934
|
-
type: "
|
|
934
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
935
935
|
fieldId: string;
|
|
936
936
|
};
|
|
937
937
|
rule: {
|
|
@@ -984,7 +984,7 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
984
984
|
}, {
|
|
985
985
|
type: "and" | "or";
|
|
986
986
|
target: {
|
|
987
|
-
type: "
|
|
987
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
988
988
|
fieldId: string;
|
|
989
989
|
};
|
|
990
990
|
rule: {
|
|
@@ -1037,7 +1037,7 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
1037
1037
|
}>, FilterRule<import("../../../../types/filter").FilterOperator, import("../../../../types/filter").FieldTarget, any, any>, {
|
|
1038
1038
|
type: "and" | "or";
|
|
1039
1039
|
target: {
|
|
1040
|
-
type: "
|
|
1040
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
1041
1041
|
fieldId: string;
|
|
1042
1042
|
};
|
|
1043
1043
|
rule: {
|
|
@@ -1092,12 +1092,12 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
1092
1092
|
type: z.ZodEnum<["or", "and"]>;
|
|
1093
1093
|
target: z.ZodObject<{
|
|
1094
1094
|
fieldId: z.ZodString;
|
|
1095
|
-
type: z.
|
|
1095
|
+
type: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<import("../../../..").DimensionType.BOOLEAN>, z.ZodLiteral<import("../../../..").DimensionType.DATE>, z.ZodLiteral<import("../../../..").DimensionType.NUMBER>, z.ZodLiteral<import("../../../..").DimensionType.STRING>, z.ZodLiteral<import("../../../..").DimensionType.TIMESTAMP>]>, z.ZodUnion<[z.ZodLiteral<import("../../../..").MetricType.PERCENTILE>, z.ZodLiteral<import("../../../..").MetricType.AVERAGE>, z.ZodLiteral<import("../../../..").MetricType.COUNT>, z.ZodLiteral<import("../../../..").MetricType.COUNT_DISTINCT>, z.ZodLiteral<import("../../../..").MetricType.SUM>, z.ZodLiteral<import("../../../..").MetricType.MIN>, z.ZodLiteral<import("../../../..").MetricType.MAX>, z.ZodLiteral<import("../../../..").MetricType.NUMBER>, z.ZodLiteral<import("../../../..").MetricType.MEDIAN>, z.ZodLiteral<import("../../../..").MetricType.STRING>, z.ZodLiteral<import("../../../..").MetricType.DATE>, z.ZodLiteral<import("../../../..").MetricType.TIMESTAMP>, z.ZodLiteral<import("../../../..").MetricType.BOOLEAN>]>]>;
|
|
1096
1096
|
}, "strip", z.ZodTypeAny, {
|
|
1097
|
-
type: "
|
|
1097
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
1098
1098
|
fieldId: string;
|
|
1099
1099
|
}, {
|
|
1100
|
-
type: "
|
|
1100
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
1101
1101
|
fieldId: string;
|
|
1102
1102
|
}>;
|
|
1103
1103
|
rule: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -1254,7 +1254,7 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
1254
1254
|
}, "strip", z.ZodTypeAny, {
|
|
1255
1255
|
type: "and" | "or";
|
|
1256
1256
|
target: {
|
|
1257
|
-
type: "
|
|
1257
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
1258
1258
|
fieldId: string;
|
|
1259
1259
|
};
|
|
1260
1260
|
rule: {
|
|
@@ -1307,7 +1307,7 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
1307
1307
|
}, {
|
|
1308
1308
|
type: "and" | "or";
|
|
1309
1309
|
target: {
|
|
1310
|
-
type: "
|
|
1310
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
1311
1311
|
fieldId: string;
|
|
1312
1312
|
};
|
|
1313
1313
|
rule: {
|
|
@@ -1360,7 +1360,7 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
1360
1360
|
}>, FilterRule<import("../../../../types/filter").FilterOperator, import("../../../../types/filter").FieldTarget, any, any>, {
|
|
1361
1361
|
type: "and" | "or";
|
|
1362
1362
|
target: {
|
|
1363
|
-
type: "
|
|
1363
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
1364
1364
|
fieldId: string;
|
|
1365
1365
|
};
|
|
1366
1366
|
rule: {
|
|
@@ -1420,7 +1420,7 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
1420
1420
|
metrics: {
|
|
1421
1421
|
type: "and" | "or";
|
|
1422
1422
|
target: {
|
|
1423
|
-
type: "
|
|
1423
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
1424
1424
|
fieldId: string;
|
|
1425
1425
|
};
|
|
1426
1426
|
rule: {
|
|
@@ -1474,7 +1474,7 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
1474
1474
|
dimensions: {
|
|
1475
1475
|
type: "and" | "or";
|
|
1476
1476
|
target: {
|
|
1477
|
-
type: "
|
|
1477
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
1478
1478
|
fieldId: string;
|
|
1479
1479
|
};
|
|
1480
1480
|
rule: {
|
|
@@ -1530,7 +1530,7 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
1530
1530
|
metrics: {
|
|
1531
1531
|
type: "and" | "or";
|
|
1532
1532
|
target: {
|
|
1533
|
-
type: "
|
|
1533
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
1534
1534
|
fieldId: string;
|
|
1535
1535
|
};
|
|
1536
1536
|
rule: {
|
|
@@ -1584,7 +1584,7 @@ export declare const filtersSchemaTransformed: z.ZodEffects<z.ZodNullable<z.ZodO
|
|
|
1584
1584
|
dimensions: {
|
|
1585
1585
|
type: "and" | "or";
|
|
1586
1586
|
target: {
|
|
1587
|
-
type: "
|
|
1587
|
+
type: import("../../../..").DimensionType | import("../../../..").MetricType;
|
|
1588
1588
|
fieldId: string;
|
|
1589
1589
|
};
|
|
1590
1590
|
rule: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/filters/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/filters/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAiCpE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAkC/B,CAAC"}
|
|
@@ -2,27 +2,23 @@ import { v4 as uuid } from 'uuid';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import assertUnreachable from '../../../../utils/assertUnreachable';
|
|
4
4
|
import { getFieldIdSchema } from '../fieldId';
|
|
5
|
+
import fieldTypeSchema from '../fieldType';
|
|
5
6
|
import booleanFilterSchema from './booleanFilters';
|
|
6
7
|
import dateFilterSchema from './dateFilters';
|
|
7
8
|
import numberFilterSchema from './numberFilters';
|
|
8
9
|
import stringFilterSchema from './stringFilters';
|
|
9
|
-
const filterRuleTypeSchema = z
|
|
10
|
-
.enum(['date', 'timestamp', 'number', 'string', 'boolean'])
|
|
11
|
-
.describe('"fieldFilterType" of the field');
|
|
12
10
|
const filterRuleSchema = z.object({
|
|
13
11
|
type: z.enum(['or', 'and']).describe('Type of filter group operation'),
|
|
14
12
|
target: z.object({
|
|
15
13
|
fieldId: getFieldIdSchema({ additionalDescription: null }),
|
|
16
|
-
type:
|
|
14
|
+
type: fieldTypeSchema,
|
|
17
15
|
}),
|
|
18
|
-
rule: z
|
|
19
|
-
.union([
|
|
16
|
+
rule: z.union([
|
|
20
17
|
booleanFilterSchema.describe('Boolean filter'),
|
|
21
18
|
stringFilterSchema.describe('String filter'),
|
|
22
19
|
numberFilterSchema.describe('Number filter'),
|
|
23
20
|
dateFilterSchema.describe('Date filter'),
|
|
24
|
-
])
|
|
25
|
-
.describe('Filter rule for the field. You can only select filter rules that match the "fieldFilterType" type specified in the field details.'),
|
|
21
|
+
]),
|
|
26
22
|
});
|
|
27
23
|
const filterRuleSchemaTransformed = filterRuleSchema.transform((data) => ({
|
|
28
24
|
id: uuid(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/filters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,iBAAiB,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,mBAAmB,MAAM,kBAAkB,CAAC;AACnD,OAAO,gBAAgB,MAAM,eAAe,CAAC;AAC7C,OAAO,kBAAkB,MAAM,iBAAiB,CAAC;AACjD,OAAO,kBAAkB,MAAM,iBAAiB,CAAC;AAEjD,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/filters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,iBAAiB,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,eAAe,MAAM,cAAc,CAAC;AAC3C,OAAO,mBAAmB,MAAM,kBAAkB,CAAC;AACnD,OAAO,g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