@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.
Files changed (97) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/authorization/organizationMemberAbility.d.ts.map +1 -1
  3. package/dist/cjs/authorization/organizationMemberAbility.js +3 -0
  4. package/dist/cjs/authorization/organizationMemberAbility.js.map +1 -1
  5. package/dist/cjs/authorization/scopes.d.ts.map +1 -1
  6. package/dist/cjs/authorization/scopes.js +8 -0
  7. package/dist/cjs/authorization/scopes.js.map +1 -1
  8. package/dist/cjs/authorization/serviceAccountAbility.d.ts.map +1 -1
  9. package/dist/cjs/authorization/serviceAccountAbility.js +3 -0
  10. package/dist/cjs/authorization/serviceAccountAbility.js.map +1 -1
  11. package/dist/cjs/authorization/types.d.ts +1 -1
  12. package/dist/cjs/authorization/types.d.ts.map +1 -1
  13. package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +7 -7
  14. package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +2 -0
  15. package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  16. package/dist/cjs/ee/AiAgent/schemas/tools/index.js +2 -0
  17. package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
  18. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +4 -0
  19. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  20. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +29 -2
  21. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  22. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts +119 -0
  23. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts.map +1 -0
  24. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js +119 -0
  25. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js.map +1 -0
  26. package/dist/cjs/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts +75 -0
  27. package/dist/cjs/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts.map +1 -0
  28. package/dist/cjs/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js +29 -0
  29. package/dist/cjs/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js.map +1 -0
  30. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +97 -97
  31. package/dist/cjs/ee/AiAgent/utils.d.ts +29 -29
  32. package/dist/cjs/schemas/json/mcp-tools-1.0.json +2149 -1423
  33. package/dist/esm/.tsbuildinfo +1 -1
  34. package/dist/esm/authorization/organizationMemberAbility.d.ts.map +1 -1
  35. package/dist/esm/authorization/organizationMemberAbility.js +3 -0
  36. package/dist/esm/authorization/organizationMemberAbility.js.map +1 -1
  37. package/dist/esm/authorization/scopes.d.ts.map +1 -1
  38. package/dist/esm/authorization/scopes.js +8 -0
  39. package/dist/esm/authorization/scopes.js.map +1 -1
  40. package/dist/esm/authorization/serviceAccountAbility.d.ts.map +1 -1
  41. package/dist/esm/authorization/serviceAccountAbility.js +3 -0
  42. package/dist/esm/authorization/serviceAccountAbility.js.map +1 -1
  43. package/dist/esm/authorization/types.d.ts +1 -1
  44. package/dist/esm/authorization/types.d.ts.map +1 -1
  45. package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +29 -29
  46. package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +2 -0
  47. package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  48. package/dist/esm/ee/AiAgent/schemas/tools/index.js +2 -0
  49. package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
  50. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +4 -0
  51. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  52. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +27 -0
  53. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  54. package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts +119 -0
  55. package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts.map +1 -0
  56. package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js +115 -0
  57. package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js.map +1 -0
  58. package/dist/esm/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts +75 -0
  59. package/dist/esm/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts.map +1 -0
  60. package/dist/esm/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js +26 -0
  61. package/dist/esm/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js.map +1 -0
  62. package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +97 -97
  63. package/dist/esm/ee/AiAgent/utils.d.ts +7 -7
  64. package/dist/esm/schemas/json/mcp-tools-1.0.json +2149 -1423
  65. package/dist/types/.tsbuildinfo +1 -1
  66. package/dist/types/authorization/organizationMemberAbility.d.ts.map +1 -1
  67. package/dist/types/authorization/organizationMemberAbility.js +3 -0
  68. package/dist/types/authorization/organizationMemberAbility.js.map +1 -1
  69. package/dist/types/authorization/scopes.d.ts.map +1 -1
  70. package/dist/types/authorization/scopes.js +8 -0
  71. package/dist/types/authorization/scopes.js.map +1 -1
  72. package/dist/types/authorization/serviceAccountAbility.d.ts.map +1 -1
  73. package/dist/types/authorization/serviceAccountAbility.js +3 -0
  74. package/dist/types/authorization/serviceAccountAbility.js.map +1 -1
  75. package/dist/types/authorization/types.d.ts +1 -1
  76. package/dist/types/authorization/types.d.ts.map +1 -1
  77. package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +29 -29
  78. package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +2 -0
  79. package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  80. package/dist/types/ee/AiAgent/schemas/tools/index.js +2 -0
  81. package/dist/types/ee/AiAgent/schemas/tools/index.js.map +1 -1
  82. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +4 -0
  83. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  84. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +27 -0
  85. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  86. package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts +119 -0
  87. package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.d.ts.map +1 -0
  88. package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js +115 -0
  89. package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesMcpArgs.js.map +1 -0
  90. package/dist/types/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts +75 -0
  91. package/dist/types/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.d.ts.map +1 -0
  92. package/dist/types/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js +26 -0
  93. package/dist/types/ee/AiAgent/schemas/tools/toolListCustomChartTypesMcpArgs.js.map +1 -0
  94. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +97 -97
  95. package/dist/types/ee/AiAgent/utils.d.ts +7 -7
  96. package/dist/types/schemas/json/mcp-tools-1.0.json +2149 -1423
  97. 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,26 @@
1
+ import { z } from 'zod';
2
+ import { createToolSchema } from '../toolSchemaBuilder';
3
+ import { mcpCustomChartTypeOutputSchema } from './toolFindCustomChartTypesMcpArgs';
4
+ export const MCP_TOOL_LIST_CUSTOM_CHART_TYPES_DESCRIPTION = `Tool: list_custom_chart_types
5
+
6
+ Browse the project's custom chart types (including ones installed from the library), newest first, one page at a time. Page starts at 1.
7
+
8
+ - Each item has the same fields as find_custom_chart_types: latest version, field slots, config options and a Chart Studio link.
9
+ - Use find_custom_chart_types to search by text or fetch one by slug.
10
+ `;
11
+ export const mcpListCustomChartTypesArgsSchema = createToolSchema()
12
+ .withPagination()
13
+ .build();
14
+ export const mcpCustomChartTypesPaginationSchema = z.object({
15
+ page: z.number().int(),
16
+ pageSize: z.number().int(),
17
+ totalResults: z.number().int(),
18
+ totalPageCount: z.number().int(),
19
+ });
20
+ export const mcpListCustomChartTypesOutputSchema = z.object({
21
+ pagination: mcpCustomChartTypesPaginationSchema,
22
+ results: z
23
+ .array(mcpCustomChartTypeOutputSchema)
24
+ .describe('Chart types on this page, newest first.'),
25
+ });
26
+ //# 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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AAEnF,MAAM,CAAC,MAAM,4CAA4C,GAAG;;;;;;CAM3D,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,EAAE;KAC9D,cAAc,EAAE;KAChB,KAAK,EAAE,CAAC;AAMb,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,UAAU,EAAE,mCAAmC;IAC/C,OAAO,EAAE,CAAC;SACL,KAAK,CAAC,8BAA8B,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: "rank_in_column";
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: "rank_in_column";
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;
@@ -22,18 +22,13 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
22
22
  tableCalculations: ({
23
23
  name: string;
24
24
  displayName: string;
25
- type: "percent_change_from_previous";
25
+ type: "percent_of_previous_value";
26
26
  fieldId: string;
27
27
  orderBy: {
28
28
  fieldId: string;
29
29
  order: "asc" | "desc" | null;
30
30
  }[];
31
31
  partitionBy: string[] | null;
32
- } | {
33
- name: string;
34
- displayName: string;
35
- type: "running_total";
36
- fieldId: string;
37
32
  } | {
38
33
  name: string;
39
34
  displayName: string;
@@ -44,7 +39,7 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
44
39
  } | {
45
40
  name: string;
46
41
  displayName: string;
47
- type: "percent_of_previous_value";
42
+ type: "percent_change_from_previous";
48
43
  fieldId: string;
49
44
  orderBy: {
50
45
  fieldId: string;
@@ -62,6 +57,11 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
62
57
  displayName: string;
63
58
  type: "rank_in_column";
64
59
  fieldId: string;
60
+ } | {
61
+ name: string;
62
+ displayName: string;
63
+ type: "running_total";
64
+ fieldId: string;
65
65
  } | {
66
66
  name: string;
67
67
  displayName: string;