@lightdash/common 2.597.1 → 2.599.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/.tsbuildinfo +1 -1
- package/dist/cjs/authorization/organizationMemberAbility.d.ts.map +1 -1
- package/dist/cjs/authorization/organizationMemberAbility.js +3 -0
- package/dist/cjs/authorization/organizationMemberAbility.js.map +1 -1
- package/dist/cjs/authorization/scopes.d.ts.map +1 -1
- package/dist/cjs/authorization/scopes.js +8 -0
- package/dist/cjs/authorization/scopes.js.map +1 -1
- package/dist/cjs/authorization/serviceAccountAbility.d.ts.map +1 -1
- package/dist/cjs/authorization/serviceAccountAbility.js +3 -0
- package/dist/cjs/authorization/serviceAccountAbility.js.map +1 -1
- package/dist/cjs/authorization/types.d.ts +1 -1
- package/dist/cjs/authorization/types.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +7 -7
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +2 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js +2 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +4 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +29 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts +119 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js +119 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts +75 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js +29 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +97 -97
- package/dist/cjs/ee/AiAgent/utils.d.ts +29 -29
- package/dist/cjs/schemas/json/mcp-tools-1.0.json +2149 -1423
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/authorization/organizationMemberAbility.d.ts.map +1 -1
- package/dist/esm/authorization/organizationMemberAbility.js +3 -0
- package/dist/esm/authorization/organizationMemberAbility.js.map +1 -1
- package/dist/esm/authorization/scopes.d.ts.map +1 -1
- package/dist/esm/authorization/scopes.js +8 -0
- package/dist/esm/authorization/scopes.js.map +1 -1
- package/dist/esm/authorization/serviceAccountAbility.d.ts.map +1 -1
- package/dist/esm/authorization/serviceAccountAbility.js +3 -0
- package/dist/esm/authorization/serviceAccountAbility.js.map +1 -1
- package/dist/esm/authorization/types.d.ts +1 -1
- package/dist/esm/authorization/types.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +29 -29
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +2 -0
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.js +2 -0
- package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +4 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +27 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts +119 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js +115 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts +75 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js +26 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +97 -97
- package/dist/esm/ee/AiAgent/utils.d.ts +7 -7
- package/dist/esm/schemas/json/mcp-tools-1.0.json +2149 -1423
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/authorization/organizationMemberAbility.d.ts.map +1 -1
- package/dist/types/authorization/organizationMemberAbility.js +3 -0
- package/dist/types/authorization/organizationMemberAbility.js.map +1 -1
- package/dist/types/authorization/scopes.d.ts.map +1 -1
- package/dist/types/authorization/scopes.js +8 -0
- package/dist/types/authorization/scopes.js.map +1 -1
- package/dist/types/authorization/serviceAccountAbility.d.ts.map +1 -1
- package/dist/types/authorization/serviceAccountAbility.js +3 -0
- package/dist/types/authorization/serviceAccountAbility.js.map +1 -1
- package/dist/types/authorization/types.d.ts +1 -1
- package/dist/types/authorization/types.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +29 -29
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +2 -0
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/index.js +2 -0
- package/dist/types/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +4 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +27 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts +119 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js +115 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts +75 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js +26 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +97 -97
- package/dist/types/ee/AiAgent/utils.d.ts +7 -7
- package/dist/types/schemas/json/mcp-tools-1.0.json +2149 -1423
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MCP_TOOL_LIST_CUSTOM_CHART_TYPES_DESCRIPTION = "Tool: list_custom_chart_types\n\nBrowse the project's custom chart types (including ones installed from the library), newest first, one page at a time. Page starts at 1.\n\n- Each item has the same fields as find_custom_chart_types: latest version, field slots, config options and a Chart Studio link.\n- Use find_custom_chart_types to search by text or fetch one by slug.\n";
|
|
3
|
+
export declare const mcpListCustomChartTypesArgsSchema: z.ZodObject<{
|
|
4
|
+
page: z.ZodNullable<z.ZodNumber>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type McpListCustomChartTypesArgs = z.infer<typeof mcpListCustomChartTypesArgsSchema>;
|
|
7
|
+
export declare const mcpCustomChartTypesPaginationSchema: z.ZodObject<{
|
|
8
|
+
page: z.ZodNumber;
|
|
9
|
+
pageSize: z.ZodNumber;
|
|
10
|
+
totalResults: z.ZodNumber;
|
|
11
|
+
totalPageCount: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const mcpListCustomChartTypesOutputSchema: z.ZodObject<{
|
|
14
|
+
pagination: z.ZodObject<{
|
|
15
|
+
page: z.ZodNumber;
|
|
16
|
+
pageSize: z.ZodNumber;
|
|
17
|
+
totalResults: z.ZodNumber;
|
|
18
|
+
totalPageCount: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
results: z.ZodArray<z.ZodObject<{
|
|
21
|
+
slug: z.ZodString;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
description: z.ZodNullable<z.ZodString>;
|
|
24
|
+
version: z.ZodNumber;
|
|
25
|
+
chartStudioUrl: z.ZodString;
|
|
26
|
+
vizSchema: z.ZodObject<{
|
|
27
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
label: z.ZodString;
|
|
30
|
+
type: z.ZodEnum<{
|
|
31
|
+
column: "column";
|
|
32
|
+
dimension: "dimension";
|
|
33
|
+
metric: "metric";
|
|
34
|
+
series: "series";
|
|
35
|
+
}>;
|
|
36
|
+
required: z.ZodBoolean;
|
|
37
|
+
multiple: z.ZodBoolean;
|
|
38
|
+
description: z.ZodNullable<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
configOptions: z.ZodArray<z.ZodObject<{
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
label: z.ZodString;
|
|
43
|
+
type: z.ZodEnum<{
|
|
44
|
+
boolean: "boolean";
|
|
45
|
+
color: "color";
|
|
46
|
+
gradient: "gradient";
|
|
47
|
+
number: "number";
|
|
48
|
+
select: "select";
|
|
49
|
+
text: "text";
|
|
50
|
+
}>;
|
|
51
|
+
group: z.ZodNullable<z.ZodString>;
|
|
52
|
+
default: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
53
|
+
colors: z.ZodArray<z.ZodString>;
|
|
54
|
+
min: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"auto">]>;
|
|
55
|
+
max: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"auto">]>;
|
|
56
|
+
}, z.core.$strip>]>;
|
|
57
|
+
choices: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
58
|
+
value: z.ZodString;
|
|
59
|
+
label: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>>;
|
|
61
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
colorPalette: z.ZodNullable<z.ZodObject<{
|
|
65
|
+
group: z.ZodNullable<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
hierarchy: z.ZodNullable<z.ZodObject<{
|
|
68
|
+
field: z.ZodString;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
inputGuidance: z.ZodNullable<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export type McpListCustomChartTypesOutput = z.infer<typeof mcpListCustomChartTypesOutputSchema>;
|
|
75
|
+
//# sourceMappingURL=toolListCustomChartTypesMcpArgs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolListCustomChartTypesMcpArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,4CAA4C,2XAMxD,CAAC;AAEF,eAAO,MAAM,iCAAiC;;iBAElC,CAAC;AAEb,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,iCAAiC,CAC3C,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;iBAK9C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,mCAAmC,CAC7C,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mcpListCustomChartTypesOutputSchema = exports.mcpCustomChartTypesPaginationSchema = exports.mcpListCustomChartTypesArgsSchema = exports.MCP_TOOL_LIST_CUSTOM_CHART_TYPES_DESCRIPTION = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
|
6
|
+
const toolFindCustomChartTypesMcpArgs_1 = require("./toolFindCustomChartTypesMcpArgs");
|
|
7
|
+
exports.MCP_TOOL_LIST_CUSTOM_CHART_TYPES_DESCRIPTION = `Tool: list_custom_chart_types
|
|
8
|
+
|
|
9
|
+
Browse the project's custom chart types (including ones installed from the library), newest first, one page at a time. Page starts at 1.
|
|
10
|
+
|
|
11
|
+
- Each item has the same fields as find_custom_chart_types: latest version, field slots, config options and a Chart Studio link.
|
|
12
|
+
- Use find_custom_chart_types to search by text or fetch one by slug.
|
|
13
|
+
`;
|
|
14
|
+
exports.mcpListCustomChartTypesArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)()
|
|
15
|
+
.withPagination()
|
|
16
|
+
.build();
|
|
17
|
+
exports.mcpCustomChartTypesPaginationSchema = zod_1.z.object({
|
|
18
|
+
page: zod_1.z.number().int(),
|
|
19
|
+
pageSize: zod_1.z.number().int(),
|
|
20
|
+
totalResults: zod_1.z.number().int(),
|
|
21
|
+
totalPageCount: zod_1.z.number().int(),
|
|
22
|
+
});
|
|
23
|
+
exports.mcpListCustomChartTypesOutputSchema = zod_1.z.object({
|
|
24
|
+
pagination: exports.mcpCustomChartTypesPaginationSchema,
|
|
25
|
+
results: zod_1.z
|
|
26
|
+
.array(toolFindCustomChartTypesMcpArgs_1.mcpCustomChartTypeOutputSchema)
|
|
27
|
+
.describe('Chart types on this page, newest first.'),
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=toolListCustomChartTypesMcpArgs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolListCustomChartTypesMcpArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4DAAwD;AACxD,uFAAmF;AAEtE,QAAA,4CAA4C,GAAG;;;;;;CAM3D,CAAC;AAEW,QAAA,iCAAiC,GAAG,IAAA,oCAAgB,GAAE;KAC9D,cAAc,EAAE;KAChB,KAAK,EAAE,CAAC;AAMA,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACtB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACnC,CAAC,CAAC;AAEU,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,UAAU,EAAE,QAAA,mCAAmC;IAC/C,OAAO,EAAE,OAAC;SACL,KAAK,CAAC,gEAA8B,CAAC;SACrC,QAAQ,CAAC,yCAAyC,CAAC;CAC3D,CAAC,CAAC"}
|
|
@@ -979,40 +979,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
979
979
|
limit: number | null;
|
|
980
980
|
};
|
|
981
981
|
tableCalculations: ({
|
|
982
|
-
name: string;
|
|
983
|
-
displayName: string;
|
|
984
|
-
type: "percent_of_column_total";
|
|
985
|
-
fieldId: string;
|
|
986
|
-
partitionBy: string[] | null;
|
|
987
|
-
} | {
|
|
988
|
-
name: string;
|
|
989
|
-
displayName: string;
|
|
990
|
-
type: "window_function";
|
|
991
|
-
windowFunction: import("../../../..").WindowFunctionType;
|
|
992
|
-
fieldId: string | null;
|
|
993
|
-
orderBy: {
|
|
994
|
-
fieldId: string;
|
|
995
|
-
order: "asc" | "desc" | null;
|
|
996
|
-
}[] | null;
|
|
997
|
-
partitionBy: string[] | null;
|
|
998
|
-
frame: {
|
|
999
|
-
frameType: "range" | "rows";
|
|
1000
|
-
start: {
|
|
1001
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1002
|
-
offset: number | null;
|
|
1003
|
-
} | null;
|
|
1004
|
-
end: {
|
|
1005
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1006
|
-
offset: number | null;
|
|
1007
|
-
};
|
|
1008
|
-
} | null;
|
|
1009
|
-
} | {
|
|
1010
982
|
name: string;
|
|
1011
983
|
displayName: string;
|
|
1012
984
|
type: "formula";
|
|
1013
985
|
formula: string;
|
|
1014
986
|
format: "number" | "percent" | null;
|
|
1015
987
|
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
988
|
+
} | {
|
|
989
|
+
name: string;
|
|
990
|
+
displayName: string;
|
|
991
|
+
type: "rank_in_column";
|
|
992
|
+
fieldId: string;
|
|
1016
993
|
} | {
|
|
1017
994
|
name: string;
|
|
1018
995
|
displayName: string;
|
|
@@ -1036,13 +1013,36 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1036
1013
|
} | {
|
|
1037
1014
|
name: string;
|
|
1038
1015
|
displayName: string;
|
|
1039
|
-
type: "
|
|
1016
|
+
type: "percent_of_column_total";
|
|
1040
1017
|
fieldId: string;
|
|
1018
|
+
partitionBy: string[] | null;
|
|
1041
1019
|
} | {
|
|
1042
1020
|
name: string;
|
|
1043
1021
|
displayName: string;
|
|
1044
1022
|
type: "running_total";
|
|
1045
1023
|
fieldId: string;
|
|
1024
|
+
} | {
|
|
1025
|
+
name: string;
|
|
1026
|
+
displayName: string;
|
|
1027
|
+
type: "window_function";
|
|
1028
|
+
windowFunction: import("../../../..").WindowFunctionType;
|
|
1029
|
+
fieldId: string | null;
|
|
1030
|
+
orderBy: {
|
|
1031
|
+
fieldId: string;
|
|
1032
|
+
order: "asc" | "desc" | null;
|
|
1033
|
+
}[] | null;
|
|
1034
|
+
partitionBy: string[] | null;
|
|
1035
|
+
frame: {
|
|
1036
|
+
frameType: "range" | "rows";
|
|
1037
|
+
start: {
|
|
1038
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1039
|
+
offset: number | null;
|
|
1040
|
+
} | null;
|
|
1041
|
+
end: {
|
|
1042
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1043
|
+
offset: number | null;
|
|
1044
|
+
};
|
|
1045
|
+
} | null;
|
|
1046
1046
|
})[] | null;
|
|
1047
1047
|
customMetrics: TransformedCustomMetric[] | null;
|
|
1048
1048
|
filters: Filters;
|
|
@@ -1059,6 +1059,12 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1059
1059
|
limit: number | null;
|
|
1060
1060
|
};
|
|
1061
1061
|
customMetrics: ({
|
|
1062
|
+
kind: "periodComparison";
|
|
1063
|
+
baseMetricId: string;
|
|
1064
|
+
timeDimensionId: string;
|
|
1065
|
+
granularity: import("../../../..").TimeFrames;
|
|
1066
|
+
periodOffset: number;
|
|
1067
|
+
} | {
|
|
1062
1068
|
kind: "aggregation";
|
|
1063
1069
|
name: string;
|
|
1064
1070
|
label: string;
|
|
@@ -1068,17 +1074,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1068
1074
|
type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
|
|
1069
1075
|
filters: {
|
|
1070
1076
|
filter: {
|
|
1071
|
-
fieldId: string;
|
|
1072
|
-
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1073
|
-
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1074
|
-
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1075
|
-
} | {
|
|
1076
|
-
fieldId: string;
|
|
1077
|
-
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1078
|
-
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1079
|
-
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
|
|
1080
|
-
values: boolean[];
|
|
1081
|
-
} | {
|
|
1082
1077
|
fieldId: string;
|
|
1083
1078
|
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1084
1079
|
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
@@ -1089,6 +1084,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1089
1084
|
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1090
1085
|
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
|
|
1091
1086
|
values: string[];
|
|
1087
|
+
} | {
|
|
1088
|
+
fieldId: string;
|
|
1089
|
+
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1090
|
+
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1091
|
+
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1092
|
+
} | {
|
|
1093
|
+
fieldId: string;
|
|
1094
|
+
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1095
|
+
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1096
|
+
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
|
|
1097
|
+
values: boolean[];
|
|
1092
1098
|
} | {
|
|
1093
1099
|
fieldId: string;
|
|
1094
1100
|
fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;
|
|
@@ -1160,48 +1166,19 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1160
1166
|
};
|
|
1161
1167
|
table: string;
|
|
1162
1168
|
}[] | null;
|
|
1163
|
-
} | {
|
|
1164
|
-
kind: "periodComparison";
|
|
1165
|
-
baseMetricId: string;
|
|
1166
|
-
timeDimensionId: string;
|
|
1167
|
-
granularity: import("../../../..").TimeFrames;
|
|
1168
|
-
periodOffset: number;
|
|
1169
1169
|
})[] | null;
|
|
1170
1170
|
tableCalculations: ({
|
|
1171
|
-
name: string;
|
|
1172
|
-
displayName: string;
|
|
1173
|
-
type: "percent_of_column_total";
|
|
1174
|
-
fieldId: string;
|
|
1175
|
-
partitionBy: string[] | null;
|
|
1176
|
-
} | {
|
|
1177
|
-
name: string;
|
|
1178
|
-
displayName: string;
|
|
1179
|
-
type: "window_function";
|
|
1180
|
-
windowFunction: import("../../../..").WindowFunctionType;
|
|
1181
|
-
fieldId: string | null;
|
|
1182
|
-
orderBy: {
|
|
1183
|
-
fieldId: string;
|
|
1184
|
-
order: "asc" | "desc" | null;
|
|
1185
|
-
}[] | null;
|
|
1186
|
-
partitionBy: string[] | null;
|
|
1187
|
-
frame: {
|
|
1188
|
-
frameType: "range" | "rows";
|
|
1189
|
-
start: {
|
|
1190
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1191
|
-
offset: number | null;
|
|
1192
|
-
} | null;
|
|
1193
|
-
end: {
|
|
1194
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1195
|
-
offset: number | null;
|
|
1196
|
-
};
|
|
1197
|
-
} | null;
|
|
1198
|
-
} | {
|
|
1199
1171
|
name: string;
|
|
1200
1172
|
displayName: string;
|
|
1201
1173
|
type: "formula";
|
|
1202
1174
|
formula: string;
|
|
1203
1175
|
format: "number" | "percent" | null;
|
|
1204
1176
|
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
1177
|
+
} | {
|
|
1178
|
+
name: string;
|
|
1179
|
+
displayName: string;
|
|
1180
|
+
type: "rank_in_column";
|
|
1181
|
+
fieldId: string;
|
|
1205
1182
|
} | {
|
|
1206
1183
|
name: string;
|
|
1207
1184
|
displayName: string;
|
|
@@ -1225,28 +1202,40 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1225
1202
|
} | {
|
|
1226
1203
|
name: string;
|
|
1227
1204
|
displayName: string;
|
|
1228
|
-
type: "
|
|
1205
|
+
type: "percent_of_column_total";
|
|
1229
1206
|
fieldId: string;
|
|
1207
|
+
partitionBy: string[] | null;
|
|
1230
1208
|
} | {
|
|
1231
1209
|
name: string;
|
|
1232
1210
|
displayName: string;
|
|
1233
1211
|
type: "running_total";
|
|
1234
1212
|
fieldId: string;
|
|
1213
|
+
} | {
|
|
1214
|
+
name: string;
|
|
1215
|
+
displayName: string;
|
|
1216
|
+
type: "window_function";
|
|
1217
|
+
windowFunction: import("../../../..").WindowFunctionType;
|
|
1218
|
+
fieldId: string | null;
|
|
1219
|
+
orderBy: {
|
|
1220
|
+
fieldId: string;
|
|
1221
|
+
order: "asc" | "desc" | null;
|
|
1222
|
+
}[] | null;
|
|
1223
|
+
partitionBy: string[] | null;
|
|
1224
|
+
frame: {
|
|
1225
|
+
frameType: "range" | "rows";
|
|
1226
|
+
start: {
|
|
1227
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1228
|
+
offset: number | null;
|
|
1229
|
+
} | null;
|
|
1230
|
+
end: {
|
|
1231
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1232
|
+
offset: number | null;
|
|
1233
|
+
};
|
|
1234
|
+
} | null;
|
|
1235
1235
|
})[] | null;
|
|
1236
1236
|
filters: {
|
|
1237
1237
|
type: "and" | "or";
|
|
1238
1238
|
dimensions: ({
|
|
1239
|
-
fieldId: string;
|
|
1240
|
-
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1241
|
-
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1242
|
-
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1243
|
-
} | {
|
|
1244
|
-
fieldId: string;
|
|
1245
|
-
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1246
|
-
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1247
|
-
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
|
|
1248
|
-
values: boolean[];
|
|
1249
|
-
} | {
|
|
1250
1239
|
fieldId: string;
|
|
1251
1240
|
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1252
1241
|
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
@@ -1257,6 +1246,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1257
1246
|
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1258
1247
|
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
|
|
1259
1248
|
values: string[];
|
|
1249
|
+
} | {
|
|
1250
|
+
fieldId: string;
|
|
1251
|
+
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1252
|
+
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1253
|
+
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1254
|
+
} | {
|
|
1255
|
+
fieldId: string;
|
|
1256
|
+
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1257
|
+
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1258
|
+
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
|
|
1259
|
+
values: boolean[];
|
|
1260
1260
|
} | {
|
|
1261
1261
|
fieldId: string;
|
|
1262
1262
|
fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;
|
|
@@ -1327,17 +1327,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1327
1327
|
values: string[];
|
|
1328
1328
|
})[] | null;
|
|
1329
1329
|
metrics: ({
|
|
1330
|
-
fieldId: string;
|
|
1331
|
-
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1332
|
-
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1333
|
-
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1334
|
-
} | {
|
|
1335
|
-
fieldId: string;
|
|
1336
|
-
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1337
|
-
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1338
|
-
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
|
|
1339
|
-
values: boolean[];
|
|
1340
|
-
} | {
|
|
1341
1330
|
fieldId: string;
|
|
1342
1331
|
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1343
1332
|
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
@@ -1348,6 +1337,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1348
1337
|
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1349
1338
|
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
|
|
1350
1339
|
values: string[];
|
|
1340
|
+
} | {
|
|
1341
|
+
fieldId: string;
|
|
1342
|
+
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1343
|
+
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1344
|
+
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1345
|
+
} | {
|
|
1346
|
+
fieldId: string;
|
|
1347
|
+
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1348
|
+
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1349
|
+
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
|
|
1350
|
+
values: boolean[];
|
|
1351
1351
|
} | {
|
|
1352
1352
|
fieldId: string;
|
|
1353
1353
|
fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;
|
|
@@ -20,40 +20,17 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
|
20
20
|
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
21
21
|
customMetrics: import("./schemas").TransformedCustomMetric[] | null;
|
|
22
22
|
tableCalculations: ({
|
|
23
|
-
name: string;
|
|
24
|
-
displayName: string;
|
|
25
|
-
type: "percent_of_column_total";
|
|
26
|
-
fieldId: string;
|
|
27
|
-
partitionBy: string[] | null;
|
|
28
|
-
} | {
|
|
29
|
-
name: string;
|
|
30
|
-
displayName: string;
|
|
31
|
-
type: "window_function";
|
|
32
|
-
windowFunction: import("../..").WindowFunctionType;
|
|
33
|
-
fieldId: string | null;
|
|
34
|
-
orderBy: {
|
|
35
|
-
fieldId: string;
|
|
36
|
-
order: "asc" | "desc" | null;
|
|
37
|
-
}[] | null;
|
|
38
|
-
partitionBy: string[] | null;
|
|
39
|
-
frame: {
|
|
40
|
-
frameType: "range" | "rows";
|
|
41
|
-
start: {
|
|
42
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
43
|
-
offset: number | null;
|
|
44
|
-
} | null;
|
|
45
|
-
end: {
|
|
46
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
47
|
-
offset: number | null;
|
|
48
|
-
};
|
|
49
|
-
} | null;
|
|
50
|
-
} | {
|
|
51
23
|
name: string;
|
|
52
24
|
displayName: string;
|
|
53
25
|
type: "formula";
|
|
54
26
|
formula: string;
|
|
55
27
|
format: "number" | "percent" | null;
|
|
56
28
|
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
29
|
+
} | {
|
|
30
|
+
name: string;
|
|
31
|
+
displayName: string;
|
|
32
|
+
type: "rank_in_column";
|
|
33
|
+
fieldId: string;
|
|
57
34
|
} | {
|
|
58
35
|
name: string;
|
|
59
36
|
displayName: string;
|
|
@@ -77,13 +54,36 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
|
77
54
|
} | {
|
|
78
55
|
name: string;
|
|
79
56
|
displayName: string;
|
|
80
|
-
type: "
|
|
57
|
+
type: "percent_of_column_total";
|
|
81
58
|
fieldId: string;
|
|
59
|
+
partitionBy: string[] | null;
|
|
82
60
|
} | {
|
|
83
61
|
name: string;
|
|
84
62
|
displayName: string;
|
|
85
63
|
type: "running_total";
|
|
86
64
|
fieldId: string;
|
|
65
|
+
} | {
|
|
66
|
+
name: string;
|
|
67
|
+
displayName: string;
|
|
68
|
+
type: "window_function";
|
|
69
|
+
windowFunction: import("../..").WindowFunctionType;
|
|
70
|
+
fieldId: string | null;
|
|
71
|
+
orderBy: {
|
|
72
|
+
fieldId: string;
|
|
73
|
+
order: "asc" | "desc" | null;
|
|
74
|
+
}[] | null;
|
|
75
|
+
partitionBy: string[] | null;
|
|
76
|
+
frame: {
|
|
77
|
+
frameType: "range" | "rows";
|
|
78
|
+
start: {
|
|
79
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
80
|
+
offset: number | null;
|
|
81
|
+
} | null;
|
|
82
|
+
end: {
|
|
83
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
84
|
+
offset: number | null;
|
|
85
|
+
};
|
|
86
|
+
} | null;
|
|
87
87
|
})[] | null;
|
|
88
88
|
filters: import("../..").Filters;
|
|
89
89
|
};
|