@lightdash/common 2.598.0 → 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/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/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/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,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toMcpCustomChartTypeVizSchema = exports.mcpFindCustomChartTypesOutputSchema = exports.mcpCustomChartTypeOutputSchema = exports.mcpFindCustomChartTypesArgsSchema = exports.MCP_TOOL_FIND_CUSTOM_CHART_TYPES_DESCRIPTION = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const types_1 = require("../../../apps/types");
|
|
6
|
+
exports.MCP_TOOL_FIND_CUSTOM_CHART_TYPES_DESCRIPTION = `Tool: find_custom_chart_types
|
|
7
|
+
|
|
8
|
+
Search the project's custom chart types (reusable visualizations, including ones installed from the library) by \`query\` against name and description, or fetch one by \`slug\`. Set exactly one of the two; to browse page by page, use list_custom_chart_types.
|
|
9
|
+
|
|
10
|
+
- Each match has its latest version, field slots, config options and a Chart Studio link.
|
|
11
|
+
- Reuse a fitting type before building one with create_custom_chart_type, if available.
|
|
12
|
+
- To save a chart with a type, call create_content (if available) with chartConfig { type: "data_app_viz", config: { dataAppVizSlug, fieldMapping, optionValues } }, binding each slot name to query field IDs.
|
|
13
|
+
`;
|
|
14
|
+
exports.mcpFindCustomChartTypesArgsSchema = zod_1.z.object({
|
|
15
|
+
query: zod_1.z
|
|
16
|
+
.string()
|
|
17
|
+
.nullish()
|
|
18
|
+
.default(null)
|
|
19
|
+
.describe('Keyword terms matched against chart type names and descriptions. Set exactly one of query or slug.'),
|
|
20
|
+
slug: zod_1.z
|
|
21
|
+
.string()
|
|
22
|
+
.nullish()
|
|
23
|
+
.default(null)
|
|
24
|
+
.describe('Exact slug of one chart type. Set exactly one of query or slug.'),
|
|
25
|
+
});
|
|
26
|
+
// Plain-typed subset of the stored viz schema; omits gradient showBounds and legacy field examples.
|
|
27
|
+
const mcpCustomChartTypeVizSchemaOutputSchema = zod_1.z.object({
|
|
28
|
+
fields: zod_1.z
|
|
29
|
+
.array(zod_1.z.object({
|
|
30
|
+
name: zod_1.z
|
|
31
|
+
.string()
|
|
32
|
+
.describe('Slot name: the key to bind in fieldMapping.'),
|
|
33
|
+
label: zod_1.z.string(),
|
|
34
|
+
type: zod_1.z.enum(['dimension', 'metric', 'series', 'column']),
|
|
35
|
+
required: zod_1.z.boolean(),
|
|
36
|
+
multiple: zod_1.z
|
|
37
|
+
.boolean()
|
|
38
|
+
.describe('Whether the slot takes an ordered list.'),
|
|
39
|
+
description: zod_1.z.string().nullable(),
|
|
40
|
+
}))
|
|
41
|
+
.describe('Field slots to bind query fields to.'),
|
|
42
|
+
configOptions: zod_1.z
|
|
43
|
+
.array(zod_1.z.object({
|
|
44
|
+
name: zod_1.z
|
|
45
|
+
.string()
|
|
46
|
+
.describe('Option name: the key to set in optionValues.'),
|
|
47
|
+
label: zod_1.z.string(),
|
|
48
|
+
type: zod_1.z.enum([
|
|
49
|
+
'boolean',
|
|
50
|
+
'select',
|
|
51
|
+
'number',
|
|
52
|
+
'text',
|
|
53
|
+
'color',
|
|
54
|
+
'gradient',
|
|
55
|
+
]),
|
|
56
|
+
group: zod_1.z.string().nullable(),
|
|
57
|
+
default: zod_1.z.union([
|
|
58
|
+
zod_1.z.boolean(),
|
|
59
|
+
zod_1.z.number(),
|
|
60
|
+
zod_1.z.string(),
|
|
61
|
+
types_1.dataAppVizGradientValueSchema,
|
|
62
|
+
]),
|
|
63
|
+
choices: zod_1.z
|
|
64
|
+
.array(zod_1.z.object({ value: zod_1.z.string(), label: zod_1.z.string() }))
|
|
65
|
+
.nullable()
|
|
66
|
+
.describe('Allowed values of a select option.'),
|
|
67
|
+
min: zod_1.z.number().nullable(),
|
|
68
|
+
max: zod_1.z.number().nullable(),
|
|
69
|
+
}))
|
|
70
|
+
.describe('Settings the chart accepts in optionValues.'),
|
|
71
|
+
colorPalette: zod_1.z
|
|
72
|
+
.object({ group: zod_1.z.string().nullable() })
|
|
73
|
+
.nullable()
|
|
74
|
+
.describe('Set when the chart colours series from the palette.'),
|
|
75
|
+
hierarchy: zod_1.z.object({ field: zod_1.z.string() }).nullable(),
|
|
76
|
+
inputGuidance: zod_1.z.string().nullable(),
|
|
77
|
+
});
|
|
78
|
+
exports.mcpCustomChartTypeOutputSchema = zod_1.z.object({
|
|
79
|
+
slug: zod_1.z.string(),
|
|
80
|
+
name: zod_1.z.string(),
|
|
81
|
+
description: zod_1.z.string().nullable(),
|
|
82
|
+
version: zod_1.z
|
|
83
|
+
.number()
|
|
84
|
+
.int()
|
|
85
|
+
.positive()
|
|
86
|
+
.describe('Latest ready version, the one a new chart renders.'),
|
|
87
|
+
chartStudioUrl: zod_1.z.string(),
|
|
88
|
+
vizSchema: mcpCustomChartTypeVizSchemaOutputSchema,
|
|
89
|
+
});
|
|
90
|
+
exports.mcpFindCustomChartTypesOutputSchema = zod_1.z.object({
|
|
91
|
+
results: zod_1.z.array(exports.mcpCustomChartTypeOutputSchema),
|
|
92
|
+
});
|
|
93
|
+
const toMcpCustomChartTypeVizSchema = (schema) => ({
|
|
94
|
+
fields: schema.fields.map((field) => ({
|
|
95
|
+
name: field.name,
|
|
96
|
+
label: field.label,
|
|
97
|
+
type: field.type,
|
|
98
|
+
required: field.required,
|
|
99
|
+
multiple: field.multiple ?? false,
|
|
100
|
+
description: field.description ?? null,
|
|
101
|
+
})),
|
|
102
|
+
configOptions: schema.configOptions.map((option) => ({
|
|
103
|
+
name: option.name,
|
|
104
|
+
label: option.label,
|
|
105
|
+
type: option.type,
|
|
106
|
+
group: option.group ?? null,
|
|
107
|
+
default: option.default,
|
|
108
|
+
choices: option.type === 'select' ? option.choices : null,
|
|
109
|
+
min: option.type === 'number' ? (option.min ?? null) : null,
|
|
110
|
+
max: option.type === 'number' ? (option.max ?? null) : null,
|
|
111
|
+
})),
|
|
112
|
+
colorPalette: schema.colorPalette === null
|
|
113
|
+
? null
|
|
114
|
+
: { group: schema.colorPalette.group ?? null },
|
|
115
|
+
hierarchy: schema.hierarchy ?? null,
|
|
116
|
+
inputGuidance: schema.inputGuidance ?? null,
|
|
117
|
+
});
|
|
118
|
+
exports.toMcpCustomChartTypeVizSchema = toMcpCustomChartTypeVizSchema;
|
|
119
|
+
//# sourceMappingURL=toolFindCustomChartTypesMcpArgs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolFindCustomChartTypesMcpArgs.js","sourceRoot":"","sources":["../../../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CAAC,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;QAC3D,GAAG,EAAE,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;KAC9D,CAAC,CAAC;IACH,YAAY,EACR,MAAM,CAAC,YAAY,KAAK,IAAI;QACxB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,IAAI,IAAI,EAAE;IACtD,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;IACnC,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,IAAI;CAC9C,CAAC,CAAC;AA3BU,QAAA,6BAA6B,GAA7B,6BAA6B,CA2BvC"}
|
|
@@ -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
|
};
|