@lightdash/common 0.2077.4 → 0.2078.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 (101) hide show
  1. package/dist/cjs/ee/AiAgent/schemas/index.d.ts +1200 -0
  2. package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
  3. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.d.ts.map +1 -1
  4. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js +8 -4
  5. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js.map +1 -1
  6. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts +3 -0
  7. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts.map +1 -1
  8. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js +4 -0
  9. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js.map +1 -1
  10. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts +109 -0
  11. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts.map +1 -0
  12. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js +103 -0
  13. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js.map +1 -0
  14. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts +216 -0
  15. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts.map +1 -1
  16. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.js +87 -30
  17. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.js.map +1 -1
  18. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts +2218 -4
  19. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts.map +1 -1
  20. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +354 -0
  21. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts.map +1 -1
  22. package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +354 -0
  23. package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
  24. package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +354 -0
  25. package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
  26. package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +354 -0
  27. package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
  28. package/dist/cjs/ee/AiAgent/utils.d.ts +69 -0
  29. package/dist/cjs/ee/AiAgent/utils.d.ts.map +1 -1
  30. package/dist/cjs/types/field.d.ts +42 -1
  31. package/dist/cjs/types/field.d.ts.map +1 -1
  32. package/dist/cjs/types/field.js +25 -1
  33. package/dist/cjs/types/field.js.map +1 -1
  34. package/dist/esm/ee/AiAgent/schemas/index.d.ts +1200 -0
  35. package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
  36. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.d.ts.map +1 -1
  37. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js +8 -4
  38. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js.map +1 -1
  39. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts +3 -0
  40. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts.map +1 -1
  41. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js +5 -1
  42. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js.map +1 -1
  43. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts +109 -0
  44. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts.map +1 -0
  45. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js +100 -0
  46. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js.map +1 -0
  47. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts +216 -0
  48. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts.map +1 -1
  49. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.js +88 -31
  50. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.js.map +1 -1
  51. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts +2218 -4
  52. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts.map +1 -1
  53. package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +354 -0
  54. package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts.map +1 -1
  55. package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +354 -0
  56. package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
  57. package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +354 -0
  58. package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
  59. package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +354 -0
  60. package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
  61. package/dist/esm/ee/AiAgent/utils.d.ts +69 -0
  62. package/dist/esm/ee/AiAgent/utils.d.ts.map +1 -1
  63. package/dist/esm/types/field.d.ts +42 -1
  64. package/dist/esm/types/field.d.ts.map +1 -1
  65. package/dist/esm/types/field.js +24 -0
  66. package/dist/esm/types/field.js.map +1 -1
  67. package/dist/tsconfig.types.tsbuildinfo +1 -1
  68. package/dist/types/ee/AiAgent/schemas/index.d.ts +1200 -0
  69. package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
  70. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.d.ts.map +1 -1
  71. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts +3 -0
  72. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts.map +1 -1
  73. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts +109 -0
  74. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts.map +1 -0
  75. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts +216 -0
  76. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts.map +1 -1
  77. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts +2218 -4
  78. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts.map +1 -1
  79. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +354 -0
  80. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts.map +1 -1
  81. package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +354 -0
  82. package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
  83. package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +354 -0
  84. package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
  85. package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +354 -0
  86. package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
  87. package/dist/types/ee/AiAgent/utils.d.ts +69 -0
  88. package/dist/types/ee/AiAgent/utils.d.ts.map +1 -1
  89. package/dist/types/types/field.d.ts +42 -1
  90. package/dist/types/types/field.d.ts.map +1 -1
  91. package/package.json +1 -1
  92. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts +0 -2
  93. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts.map +0 -1
  94. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js +0 -56
  95. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js.map +0 -1
  96. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts +0 -2
  97. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts.map +0 -1
  98. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js +0 -54
  99. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js.map +0 -1
  100. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts +0 -2
  101. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts.map +0 -1
@@ -98,16 +98,19 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
98
98
  } & {
99
99
  type: z.ZodLiteral<"percent_of_column_total">;
100
100
  fieldId: z.ZodString;
101
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
101
102
  }, "strip", z.ZodTypeAny, {
102
103
  name: string;
103
104
  fieldId: string;
104
105
  type: "percent_of_column_total";
105
106
  displayName: string;
107
+ partitionBy: string[] | null;
106
108
  }, {
107
109
  name: string;
108
110
  fieldId: string;
109
111
  type: "percent_of_column_total";
110
112
  displayName: string;
113
+ partitionBy: string[] | null;
111
114
  }>, z.ZodObject<{
112
115
  name: z.ZodString;
113
116
  displayName: z.ZodString;
@@ -140,6 +143,111 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
140
143
  fieldId: string;
141
144
  type: "running_total";
142
145
  displayName: string;
146
+ }>, z.ZodObject<{
147
+ name: z.ZodString;
148
+ displayName: z.ZodString;
149
+ } & {
150
+ type: z.ZodLiteral<"window_function">;
151
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
152
+ fieldId: z.ZodNullable<z.ZodString>;
153
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
154
+ fieldId: z.ZodString;
155
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ fieldId: string;
158
+ order: "asc" | "desc" | null;
159
+ }, {
160
+ fieldId: string;
161
+ order: "asc" | "desc" | null;
162
+ }>, "many">>;
163
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
164
+ frame: z.ZodNullable<z.ZodObject<{
165
+ frameType: z.ZodEnum<["rows", "range"]>;
166
+ start: z.ZodNullable<z.ZodObject<{
167
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
168
+ offset: z.ZodNullable<z.ZodNumber>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
171
+ offset: number | null;
172
+ }, {
173
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
174
+ offset: number | null;
175
+ }>>;
176
+ end: z.ZodObject<{
177
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
178
+ offset: z.ZodNullable<z.ZodNumber>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
181
+ offset: number | null;
182
+ }, {
183
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
184
+ offset: number | null;
185
+ }>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ start: {
188
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
189
+ offset: number | null;
190
+ } | null;
191
+ end: {
192
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
193
+ offset: number | null;
194
+ };
195
+ frameType: "rows" | "range";
196
+ }, {
197
+ start: {
198
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
199
+ offset: number | null;
200
+ } | null;
201
+ end: {
202
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
203
+ offset: number | null;
204
+ };
205
+ frameType: "rows" | "range";
206
+ }>>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ name: string;
209
+ fieldId: string | null;
210
+ type: "window_function";
211
+ displayName: string;
212
+ orderBy: {
213
+ fieldId: string;
214
+ order: "asc" | "desc" | null;
215
+ }[] | null;
216
+ partitionBy: string[] | null;
217
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
218
+ frame: {
219
+ start: {
220
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
221
+ offset: number | null;
222
+ } | null;
223
+ end: {
224
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
225
+ offset: number | null;
226
+ };
227
+ frameType: "rows" | "range";
228
+ } | null;
229
+ }, {
230
+ name: string;
231
+ fieldId: string | null;
232
+ type: "window_function";
233
+ displayName: string;
234
+ orderBy: {
235
+ fieldId: string;
236
+ order: "asc" | "desc" | null;
237
+ }[] | null;
238
+ partitionBy: string[] | null;
239
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
240
+ frame: {
241
+ start: {
242
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
243
+ offset: number | null;
244
+ } | null;
245
+ end: {
246
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
247
+ offset: number | null;
248
+ };
249
+ frameType: "rows" | "range";
250
+ } | null;
143
251
  }>]>, "many">>;
144
252
  filters: z.ZodNullable<z.ZodObject<{
145
253
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -1276,6 +1384,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
1276
1384
  fieldId: string;
1277
1385
  type: "percent_of_column_total";
1278
1386
  displayName: string;
1387
+ partitionBy: string[] | null;
1279
1388
  } | {
1280
1389
  name: string;
1281
1390
  fieldId: string;
@@ -1286,6 +1395,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
1286
1395
  fieldId: string;
1287
1396
  type: "running_total";
1288
1397
  displayName: string;
1398
+ } | {
1399
+ name: string;
1400
+ fieldId: string | null;
1401
+ type: "window_function";
1402
+ displayName: string;
1403
+ orderBy: {
1404
+ fieldId: string;
1405
+ order: "asc" | "desc" | null;
1406
+ }[] | null;
1407
+ partitionBy: string[] | null;
1408
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
1409
+ frame: {
1410
+ start: {
1411
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
1412
+ offset: number | null;
1413
+ } | null;
1414
+ end: {
1415
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
1416
+ offset: number | null;
1417
+ };
1418
+ frameType: "rows" | "range";
1419
+ } | null;
1289
1420
  })[] | null;
1290
1421
  type: AiResultType.TABLE_RESULT;
1291
1422
  description: string;
@@ -1538,6 +1669,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
1538
1669
  fieldId: string;
1539
1670
  type: "percent_of_column_total";
1540
1671
  displayName: string;
1672
+ partitionBy: string[] | null;
1541
1673
  } | {
1542
1674
  name: string;
1543
1675
  fieldId: string;
@@ -1548,6 +1680,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
1548
1680
  fieldId: string;
1549
1681
  type: "running_total";
1550
1682
  displayName: string;
1683
+ } | {
1684
+ name: string;
1685
+ fieldId: string | null;
1686
+ type: "window_function";
1687
+ displayName: string;
1688
+ orderBy: {
1689
+ fieldId: string;
1690
+ order: "asc" | "desc" | null;
1691
+ }[] | null;
1692
+ partitionBy: string[] | null;
1693
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
1694
+ frame: {
1695
+ start: {
1696
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
1697
+ offset: number | null;
1698
+ } | null;
1699
+ end: {
1700
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
1701
+ offset: number | null;
1702
+ };
1703
+ frameType: "rows" | "range";
1704
+ } | null;
1551
1705
  })[] | null;
1552
1706
  type: AiResultType.TABLE_RESULT;
1553
1707
  description: string;
@@ -1873,16 +2027,19 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
1873
2027
  } & {
1874
2028
  type: z.ZodLiteral<"percent_of_column_total">;
1875
2029
  fieldId: z.ZodString;
2030
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1876
2031
  }, "strip", z.ZodTypeAny, {
1877
2032
  name: string;
1878
2033
  fieldId: string;
1879
2034
  type: "percent_of_column_total";
1880
2035
  displayName: string;
2036
+ partitionBy: string[] | null;
1881
2037
  }, {
1882
2038
  name: string;
1883
2039
  fieldId: string;
1884
2040
  type: "percent_of_column_total";
1885
2041
  displayName: string;
2042
+ partitionBy: string[] | null;
1886
2043
  }>, z.ZodObject<{
1887
2044
  name: z.ZodString;
1888
2045
  displayName: z.ZodString;
@@ -1915,6 +2072,111 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
1915
2072
  fieldId: string;
1916
2073
  type: "running_total";
1917
2074
  displayName: string;
2075
+ }>, z.ZodObject<{
2076
+ name: z.ZodString;
2077
+ displayName: z.ZodString;
2078
+ } & {
2079
+ type: z.ZodLiteral<"window_function">;
2080
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
2081
+ fieldId: z.ZodNullable<z.ZodString>;
2082
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
2083
+ fieldId: z.ZodString;
2084
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
2085
+ }, "strip", z.ZodTypeAny, {
2086
+ fieldId: string;
2087
+ order: "asc" | "desc" | null;
2088
+ }, {
2089
+ fieldId: string;
2090
+ order: "asc" | "desc" | null;
2091
+ }>, "many">>;
2092
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
2093
+ frame: z.ZodNullable<z.ZodObject<{
2094
+ frameType: z.ZodEnum<["rows", "range"]>;
2095
+ start: z.ZodNullable<z.ZodObject<{
2096
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
2097
+ offset: z.ZodNullable<z.ZodNumber>;
2098
+ }, "strip", z.ZodTypeAny, {
2099
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2100
+ offset: number | null;
2101
+ }, {
2102
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2103
+ offset: number | null;
2104
+ }>>;
2105
+ end: z.ZodObject<{
2106
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
2107
+ offset: z.ZodNullable<z.ZodNumber>;
2108
+ }, "strip", z.ZodTypeAny, {
2109
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2110
+ offset: number | null;
2111
+ }, {
2112
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2113
+ offset: number | null;
2114
+ }>;
2115
+ }, "strip", z.ZodTypeAny, {
2116
+ start: {
2117
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2118
+ offset: number | null;
2119
+ } | null;
2120
+ end: {
2121
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2122
+ offset: number | null;
2123
+ };
2124
+ frameType: "rows" | "range";
2125
+ }, {
2126
+ start: {
2127
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2128
+ offset: number | null;
2129
+ } | null;
2130
+ end: {
2131
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2132
+ offset: number | null;
2133
+ };
2134
+ frameType: "rows" | "range";
2135
+ }>>;
2136
+ }, "strip", z.ZodTypeAny, {
2137
+ name: string;
2138
+ fieldId: string | null;
2139
+ type: "window_function";
2140
+ displayName: string;
2141
+ orderBy: {
2142
+ fieldId: string;
2143
+ order: "asc" | "desc" | null;
2144
+ }[] | null;
2145
+ partitionBy: string[] | null;
2146
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
2147
+ frame: {
2148
+ start: {
2149
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2150
+ offset: number | null;
2151
+ } | null;
2152
+ end: {
2153
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2154
+ offset: number | null;
2155
+ };
2156
+ frameType: "rows" | "range";
2157
+ } | null;
2158
+ }, {
2159
+ name: string;
2160
+ fieldId: string | null;
2161
+ type: "window_function";
2162
+ displayName: string;
2163
+ orderBy: {
2164
+ fieldId: string;
2165
+ order: "asc" | "desc" | null;
2166
+ }[] | null;
2167
+ partitionBy: string[] | null;
2168
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
2169
+ frame: {
2170
+ start: {
2171
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2172
+ offset: number | null;
2173
+ } | null;
2174
+ end: {
2175
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2176
+ offset: number | null;
2177
+ };
2178
+ frameType: "rows" | "range";
2179
+ } | null;
1918
2180
  }>]>, "many">>;
1919
2181
  filters: z.ZodNullable<z.ZodObject<{
1920
2182
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -3063,6 +3325,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
3063
3325
  fieldId: string;
3064
3326
  type: "percent_of_column_total";
3065
3327
  displayName: string;
3328
+ partitionBy: string[] | null;
3066
3329
  } | {
3067
3330
  name: string;
3068
3331
  fieldId: string;
@@ -3073,6 +3336,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
3073
3336
  fieldId: string;
3074
3337
  type: "running_total";
3075
3338
  displayName: string;
3339
+ } | {
3340
+ name: string;
3341
+ fieldId: string | null;
3342
+ type: "window_function";
3343
+ displayName: string;
3344
+ orderBy: {
3345
+ fieldId: string;
3346
+ order: "asc" | "desc" | null;
3347
+ }[] | null;
3348
+ partitionBy: string[] | null;
3349
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
3350
+ frame: {
3351
+ start: {
3352
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
3353
+ offset: number | null;
3354
+ } | null;
3355
+ end: {
3356
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
3357
+ offset: number | null;
3358
+ };
3359
+ frameType: "rows" | "range";
3360
+ } | null;
3076
3361
  })[] | null;
3077
3362
  type: AiResultType.TIME_SERIES_RESULT;
3078
3363
  description: string;
@@ -3329,6 +3614,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
3329
3614
  fieldId: string;
3330
3615
  type: "percent_of_column_total";
3331
3616
  displayName: string;
3617
+ partitionBy: string[] | null;
3332
3618
  } | {
3333
3619
  name: string;
3334
3620
  fieldId: string;
@@ -3339,6 +3625,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
3339
3625
  fieldId: string;
3340
3626
  type: "running_total";
3341
3627
  displayName: string;
3628
+ } | {
3629
+ name: string;
3630
+ fieldId: string | null;
3631
+ type: "window_function";
3632
+ displayName: string;
3633
+ orderBy: {
3634
+ fieldId: string;
3635
+ order: "asc" | "desc" | null;
3636
+ }[] | null;
3637
+ partitionBy: string[] | null;
3638
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
3639
+ frame: {
3640
+ start: {
3641
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
3642
+ offset: number | null;
3643
+ } | null;
3644
+ end: {
3645
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
3646
+ offset: number | null;
3647
+ };
3648
+ frameType: "rows" | "range";
3649
+ } | null;
3342
3650
  })[] | null;
3343
3651
  type: AiResultType.TIME_SERIES_RESULT;
3344
3652
  description: string;
@@ -3668,16 +3976,19 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
3668
3976
  } & {
3669
3977
  type: z.ZodLiteral<"percent_of_column_total">;
3670
3978
  fieldId: z.ZodString;
3979
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
3671
3980
  }, "strip", z.ZodTypeAny, {
3672
3981
  name: string;
3673
3982
  fieldId: string;
3674
3983
  type: "percent_of_column_total";
3675
3984
  displayName: string;
3985
+ partitionBy: string[] | null;
3676
3986
  }, {
3677
3987
  name: string;
3678
3988
  fieldId: string;
3679
3989
  type: "percent_of_column_total";
3680
3990
  displayName: string;
3991
+ partitionBy: string[] | null;
3681
3992
  }>, z.ZodObject<{
3682
3993
  name: z.ZodString;
3683
3994
  displayName: z.ZodString;
@@ -3710,6 +4021,111 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
3710
4021
  fieldId: string;
3711
4022
  type: "running_total";
3712
4023
  displayName: string;
4024
+ }>, z.ZodObject<{
4025
+ name: z.ZodString;
4026
+ displayName: z.ZodString;
4027
+ } & {
4028
+ type: z.ZodLiteral<"window_function">;
4029
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
4030
+ fieldId: z.ZodNullable<z.ZodString>;
4031
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
4032
+ fieldId: z.ZodString;
4033
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
4034
+ }, "strip", z.ZodTypeAny, {
4035
+ fieldId: string;
4036
+ order: "asc" | "desc" | null;
4037
+ }, {
4038
+ fieldId: string;
4039
+ order: "asc" | "desc" | null;
4040
+ }>, "many">>;
4041
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
4042
+ frame: z.ZodNullable<z.ZodObject<{
4043
+ frameType: z.ZodEnum<["rows", "range"]>;
4044
+ start: z.ZodNullable<z.ZodObject<{
4045
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
4046
+ offset: z.ZodNullable<z.ZodNumber>;
4047
+ }, "strip", z.ZodTypeAny, {
4048
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4049
+ offset: number | null;
4050
+ }, {
4051
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4052
+ offset: number | null;
4053
+ }>>;
4054
+ end: z.ZodObject<{
4055
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
4056
+ offset: z.ZodNullable<z.ZodNumber>;
4057
+ }, "strip", z.ZodTypeAny, {
4058
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4059
+ offset: number | null;
4060
+ }, {
4061
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4062
+ offset: number | null;
4063
+ }>;
4064
+ }, "strip", z.ZodTypeAny, {
4065
+ start: {
4066
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4067
+ offset: number | null;
4068
+ } | null;
4069
+ end: {
4070
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4071
+ offset: number | null;
4072
+ };
4073
+ frameType: "rows" | "range";
4074
+ }, {
4075
+ start: {
4076
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4077
+ offset: number | null;
4078
+ } | null;
4079
+ end: {
4080
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4081
+ offset: number | null;
4082
+ };
4083
+ frameType: "rows" | "range";
4084
+ }>>;
4085
+ }, "strip", z.ZodTypeAny, {
4086
+ name: string;
4087
+ fieldId: string | null;
4088
+ type: "window_function";
4089
+ displayName: string;
4090
+ orderBy: {
4091
+ fieldId: string;
4092
+ order: "asc" | "desc" | null;
4093
+ }[] | null;
4094
+ partitionBy: string[] | null;
4095
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
4096
+ frame: {
4097
+ start: {
4098
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4099
+ offset: number | null;
4100
+ } | null;
4101
+ end: {
4102
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4103
+ offset: number | null;
4104
+ };
4105
+ frameType: "rows" | "range";
4106
+ } | null;
4107
+ }, {
4108
+ name: string;
4109
+ fieldId: string | null;
4110
+ type: "window_function";
4111
+ displayName: string;
4112
+ orderBy: {
4113
+ fieldId: string;
4114
+ order: "asc" | "desc" | null;
4115
+ }[] | null;
4116
+ partitionBy: string[] | null;
4117
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
4118
+ frame: {
4119
+ start: {
4120
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4121
+ offset: number | null;
4122
+ } | null;
4123
+ end: {
4124
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4125
+ offset: number | null;
4126
+ };
4127
+ frameType: "rows" | "range";
4128
+ } | null;
3713
4129
  }>]>, "many">>;
3714
4130
  filters: z.ZodNullable<z.ZodObject<{
3715
4131
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -4861,6 +5277,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
4861
5277
  fieldId: string;
4862
5278
  type: "percent_of_column_total";
4863
5279
  displayName: string;
5280
+ partitionBy: string[] | null;
4864
5281
  } | {
4865
5282
  name: string;
4866
5283
  fieldId: string;
@@ -4871,6 +5288,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
4871
5288
  fieldId: string;
4872
5289
  type: "running_total";
4873
5290
  displayName: string;
5291
+ } | {
5292
+ name: string;
5293
+ fieldId: string | null;
5294
+ type: "window_function";
5295
+ displayName: string;
5296
+ orderBy: {
5297
+ fieldId: string;
5298
+ order: "asc" | "desc" | null;
5299
+ }[] | null;
5300
+ partitionBy: string[] | null;
5301
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
5302
+ frame: {
5303
+ start: {
5304
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5305
+ offset: number | null;
5306
+ } | null;
5307
+ end: {
5308
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5309
+ offset: number | null;
5310
+ };
5311
+ frameType: "rows" | "range";
5312
+ } | null;
4874
5313
  })[] | null;
4875
5314
  type: AiResultType.VERTICAL_BAR_RESULT;
4876
5315
  description: string;
@@ -5128,6 +5567,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
5128
5567
  fieldId: string;
5129
5568
  type: "percent_of_column_total";
5130
5569
  displayName: string;
5570
+ partitionBy: string[] | null;
5131
5571
  } | {
5132
5572
  name: string;
5133
5573
  fieldId: string;
@@ -5138,6 +5578,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
5138
5578
  fieldId: string;
5139
5579
  type: "running_total";
5140
5580
  displayName: string;
5581
+ } | {
5582
+ name: string;
5583
+ fieldId: string | null;
5584
+ type: "window_function";
5585
+ displayName: string;
5586
+ orderBy: {
5587
+ fieldId: string;
5588
+ order: "asc" | "desc" | null;
5589
+ }[] | null;
5590
+ partitionBy: string[] | null;
5591
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
5592
+ frame: {
5593
+ start: {
5594
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5595
+ offset: number | null;
5596
+ } | null;
5597
+ end: {
5598
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5599
+ offset: number | null;
5600
+ };
5601
+ frameType: "rows" | "range";
5602
+ } | null;
5141
5603
  })[] | null;
5142
5604
  type: AiResultType.VERTICAL_BAR_RESULT;
5143
5605
  description: string;
@@ -5396,6 +5858,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
5396
5858
  fieldId: string;
5397
5859
  type: "percent_of_column_total";
5398
5860
  displayName: string;
5861
+ partitionBy: string[] | null;
5399
5862
  } | {
5400
5863
  name: string;
5401
5864
  fieldId: string;
@@ -5406,6 +5869,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
5406
5869
  fieldId: string;
5407
5870
  type: "running_total";
5408
5871
  displayName: string;
5872
+ } | {
5873
+ name: string;
5874
+ fieldId: string | null;
5875
+ type: "window_function";
5876
+ displayName: string;
5877
+ orderBy: {
5878
+ fieldId: string;
5879
+ order: "asc" | "desc" | null;
5880
+ }[] | null;
5881
+ partitionBy: string[] | null;
5882
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
5883
+ frame: {
5884
+ start: {
5885
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5886
+ offset: number | null;
5887
+ } | null;
5888
+ end: {
5889
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5890
+ offset: number | null;
5891
+ };
5892
+ frameType: "rows" | "range";
5893
+ } | null;
5409
5894
  })[] | null;
5410
5895
  type: AiResultType.TABLE_RESULT;
5411
5896
  description: string;
@@ -5659,6 +6144,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
5659
6144
  fieldId: string;
5660
6145
  type: "percent_of_column_total";
5661
6146
  displayName: string;
6147
+ partitionBy: string[] | null;
5662
6148
  } | {
5663
6149
  name: string;
5664
6150
  fieldId: string;
@@ -5669,6 +6155,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
5669
6155
  fieldId: string;
5670
6156
  type: "running_total";
5671
6157
  displayName: string;
6158
+ } | {
6159
+ name: string;
6160
+ fieldId: string | null;
6161
+ type: "window_function";
6162
+ displayName: string;
6163
+ orderBy: {
6164
+ fieldId: string;
6165
+ order: "asc" | "desc" | null;
6166
+ }[] | null;
6167
+ partitionBy: string[] | null;
6168
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
6169
+ frame: {
6170
+ start: {
6171
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6172
+ offset: number | null;
6173
+ } | null;
6174
+ end: {
6175
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6176
+ offset: number | null;
6177
+ };
6178
+ frameType: "rows" | "range";
6179
+ } | null;
5672
6180
  })[] | null;
5673
6181
  type: AiResultType.TIME_SERIES_RESULT;
5674
6182
  description: string;
@@ -5926,6 +6434,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
5926
6434
  fieldId: string;
5927
6435
  type: "percent_of_column_total";
5928
6436
  displayName: string;
6437
+ partitionBy: string[] | null;
5929
6438
  } | {
5930
6439
  name: string;
5931
6440
  fieldId: string;
@@ -5936,6 +6445,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
5936
6445
  fieldId: string;
5937
6446
  type: "running_total";
5938
6447
  displayName: string;
6448
+ } | {
6449
+ name: string;
6450
+ fieldId: string | null;
6451
+ type: "window_function";
6452
+ displayName: string;
6453
+ orderBy: {
6454
+ fieldId: string;
6455
+ order: "asc" | "desc" | null;
6456
+ }[] | null;
6457
+ partitionBy: string[] | null;
6458
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
6459
+ frame: {
6460
+ start: {
6461
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6462
+ offset: number | null;
6463
+ } | null;
6464
+ end: {
6465
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6466
+ offset: number | null;
6467
+ };
6468
+ frameType: "rows" | "range";
6469
+ } | null;
5939
6470
  })[] | null;
5940
6471
  type: AiResultType.VERTICAL_BAR_RESULT;
5941
6472
  description: string;
@@ -6193,6 +6724,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
6193
6724
  fieldId: string;
6194
6725
  type: "percent_of_column_total";
6195
6726
  displayName: string;
6727
+ partitionBy: string[] | null;
6196
6728
  } | {
6197
6729
  name: string;
6198
6730
  fieldId: string;
@@ -6203,6 +6735,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
6203
6735
  fieldId: string;
6204
6736
  type: "running_total";
6205
6737
  displayName: string;
6738
+ } | {
6739
+ name: string;
6740
+ fieldId: string | null;
6741
+ type: "window_function";
6742
+ displayName: string;
6743
+ orderBy: {
6744
+ fieldId: string;
6745
+ order: "asc" | "desc" | null;
6746
+ }[] | null;
6747
+ partitionBy: string[] | null;
6748
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
6749
+ frame: {
6750
+ start: {
6751
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6752
+ offset: number | null;
6753
+ } | null;
6754
+ end: {
6755
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6756
+ offset: number | null;
6757
+ };
6758
+ frameType: "rows" | "range";
6759
+ } | null;
6206
6760
  })[] | null;
6207
6761
  type: AiResultType.TABLE_RESULT;
6208
6762
  description: string;
@@ -6455,6 +7009,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
6455
7009
  fieldId: string;
6456
7010
  type: "percent_of_column_total";
6457
7011
  displayName: string;
7012
+ partitionBy: string[] | null;
6458
7013
  } | {
6459
7014
  name: string;
6460
7015
  fieldId: string;
@@ -6465,6 +7020,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
6465
7020
  fieldId: string;
6466
7021
  type: "running_total";
6467
7022
  displayName: string;
7023
+ } | {
7024
+ name: string;
7025
+ fieldId: string | null;
7026
+ type: "window_function";
7027
+ displayName: string;
7028
+ orderBy: {
7029
+ fieldId: string;
7030
+ order: "asc" | "desc" | null;
7031
+ }[] | null;
7032
+ partitionBy: string[] | null;
7033
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
7034
+ frame: {
7035
+ start: {
7036
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7037
+ offset: number | null;
7038
+ } | null;
7039
+ end: {
7040
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7041
+ offset: number | null;
7042
+ };
7043
+ frameType: "rows" | "range";
7044
+ } | null;
6468
7045
  })[] | null;
6469
7046
  type: AiResultType.TIME_SERIES_RESULT;
6470
7047
  description: string;
@@ -6721,6 +7298,7 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
6721
7298
  fieldId: string;
6722
7299
  type: "percent_of_column_total";
6723
7300
  displayName: string;
7301
+ partitionBy: string[] | null;
6724
7302
  } | {
6725
7303
  name: string;
6726
7304
  fieldId: string;
@@ -6731,6 +7309,28 @@ declare const dashboardVisualizationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject
6731
7309
  fieldId: string;
6732
7310
  type: "running_total";
6733
7311
  displayName: string;
7312
+ } | {
7313
+ name: string;
7314
+ fieldId: string | null;
7315
+ type: "window_function";
7316
+ displayName: string;
7317
+ orderBy: {
7318
+ fieldId: string;
7319
+ order: "asc" | "desc" | null;
7320
+ }[] | null;
7321
+ partitionBy: string[] | null;
7322
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
7323
+ frame: {
7324
+ start: {
7325
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7326
+ offset: number | null;
7327
+ } | null;
7328
+ end: {
7329
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7330
+ offset: number | null;
7331
+ };
7332
+ frameType: "rows" | "range";
7333
+ } | null;
6734
7334
  })[] | null;
6735
7335
  type: AiResultType.VERTICAL_BAR_RESULT;
6736
7336
  description: string;
@@ -7068,16 +7668,19 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
7068
7668
  } & {
7069
7669
  type: z.ZodLiteral<"percent_of_column_total">;
7070
7670
  fieldId: z.ZodString;
7671
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
7071
7672
  }, "strip", z.ZodTypeAny, {
7072
7673
  name: string;
7073
7674
  fieldId: string;
7074
7675
  type: "percent_of_column_total";
7075
7676
  displayName: string;
7677
+ partitionBy: string[] | null;
7076
7678
  }, {
7077
7679
  name: string;
7078
7680
  fieldId: string;
7079
7681
  type: "percent_of_column_total";
7080
7682
  displayName: string;
7683
+ partitionBy: string[] | null;
7081
7684
  }>, z.ZodObject<{
7082
7685
  name: z.ZodString;
7083
7686
  displayName: z.ZodString;
@@ -7110,6 +7713,111 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
7110
7713
  fieldId: string;
7111
7714
  type: "running_total";
7112
7715
  displayName: string;
7716
+ }>, z.ZodObject<{
7717
+ name: z.ZodString;
7718
+ displayName: z.ZodString;
7719
+ } & {
7720
+ type: z.ZodLiteral<"window_function">;
7721
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
7722
+ fieldId: z.ZodNullable<z.ZodString>;
7723
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
7724
+ fieldId: z.ZodString;
7725
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
7726
+ }, "strip", z.ZodTypeAny, {
7727
+ fieldId: string;
7728
+ order: "asc" | "desc" | null;
7729
+ }, {
7730
+ fieldId: string;
7731
+ order: "asc" | "desc" | null;
7732
+ }>, "many">>;
7733
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
7734
+ frame: z.ZodNullable<z.ZodObject<{
7735
+ frameType: z.ZodEnum<["rows", "range"]>;
7736
+ start: z.ZodNullable<z.ZodObject<{
7737
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
7738
+ offset: z.ZodNullable<z.ZodNumber>;
7739
+ }, "strip", z.ZodTypeAny, {
7740
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7741
+ offset: number | null;
7742
+ }, {
7743
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7744
+ offset: number | null;
7745
+ }>>;
7746
+ end: z.ZodObject<{
7747
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
7748
+ offset: z.ZodNullable<z.ZodNumber>;
7749
+ }, "strip", z.ZodTypeAny, {
7750
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7751
+ offset: number | null;
7752
+ }, {
7753
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7754
+ offset: number | null;
7755
+ }>;
7756
+ }, "strip", z.ZodTypeAny, {
7757
+ start: {
7758
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7759
+ offset: number | null;
7760
+ } | null;
7761
+ end: {
7762
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7763
+ offset: number | null;
7764
+ };
7765
+ frameType: "rows" | "range";
7766
+ }, {
7767
+ start: {
7768
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7769
+ offset: number | null;
7770
+ } | null;
7771
+ end: {
7772
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7773
+ offset: number | null;
7774
+ };
7775
+ frameType: "rows" | "range";
7776
+ }>>;
7777
+ }, "strip", z.ZodTypeAny, {
7778
+ name: string;
7779
+ fieldId: string | null;
7780
+ type: "window_function";
7781
+ displayName: string;
7782
+ orderBy: {
7783
+ fieldId: string;
7784
+ order: "asc" | "desc" | null;
7785
+ }[] | null;
7786
+ partitionBy: string[] | null;
7787
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
7788
+ frame: {
7789
+ start: {
7790
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7791
+ offset: number | null;
7792
+ } | null;
7793
+ end: {
7794
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7795
+ offset: number | null;
7796
+ };
7797
+ frameType: "rows" | "range";
7798
+ } | null;
7799
+ }, {
7800
+ name: string;
7801
+ fieldId: string | null;
7802
+ type: "window_function";
7803
+ displayName: string;
7804
+ orderBy: {
7805
+ fieldId: string;
7806
+ order: "asc" | "desc" | null;
7807
+ }[] | null;
7808
+ partitionBy: string[] | null;
7809
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
7810
+ frame: {
7811
+ start: {
7812
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7813
+ offset: number | null;
7814
+ } | null;
7815
+ end: {
7816
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7817
+ offset: number | null;
7818
+ };
7819
+ frameType: "rows" | "range";
7820
+ } | null;
7113
7821
  }>]>, "many">>;
7114
7822
  filters: z.ZodNullable<z.ZodObject<{
7115
7823
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -8246,6 +8954,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
8246
8954
  fieldId: string;
8247
8955
  type: "percent_of_column_total";
8248
8956
  displayName: string;
8957
+ partitionBy: string[] | null;
8249
8958
  } | {
8250
8959
  name: string;
8251
8960
  fieldId: string;
@@ -8256,6 +8965,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
8256
8965
  fieldId: string;
8257
8966
  type: "running_total";
8258
8967
  displayName: string;
8968
+ } | {
8969
+ name: string;
8970
+ fieldId: string | null;
8971
+ type: "window_function";
8972
+ displayName: string;
8973
+ orderBy: {
8974
+ fieldId: string;
8975
+ order: "asc" | "desc" | null;
8976
+ }[] | null;
8977
+ partitionBy: string[] | null;
8978
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
8979
+ frame: {
8980
+ start: {
8981
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
8982
+ offset: number | null;
8983
+ } | null;
8984
+ end: {
8985
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
8986
+ offset: number | null;
8987
+ };
8988
+ frameType: "rows" | "range";
8989
+ } | null;
8259
8990
  })[] | null;
8260
8991
  type: AiResultType.TABLE_RESULT;
8261
8992
  description: string;
@@ -8508,6 +9239,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
8508
9239
  fieldId: string;
8509
9240
  type: "percent_of_column_total";
8510
9241
  displayName: string;
9242
+ partitionBy: string[] | null;
8511
9243
  } | {
8512
9244
  name: string;
8513
9245
  fieldId: string;
@@ -8518,6 +9250,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
8518
9250
  fieldId: string;
8519
9251
  type: "running_total";
8520
9252
  displayName: string;
9253
+ } | {
9254
+ name: string;
9255
+ fieldId: string | null;
9256
+ type: "window_function";
9257
+ displayName: string;
9258
+ orderBy: {
9259
+ fieldId: string;
9260
+ order: "asc" | "desc" | null;
9261
+ }[] | null;
9262
+ partitionBy: string[] | null;
9263
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
9264
+ frame: {
9265
+ start: {
9266
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9267
+ offset: number | null;
9268
+ } | null;
9269
+ end: {
9270
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9271
+ offset: number | null;
9272
+ };
9273
+ frameType: "rows" | "range";
9274
+ } | null;
8521
9275
  })[] | null;
8522
9276
  type: AiResultType.TABLE_RESULT;
8523
9277
  description: string;
@@ -8843,16 +9597,19 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
8843
9597
  } & {
8844
9598
  type: z.ZodLiteral<"percent_of_column_total">;
8845
9599
  fieldId: z.ZodString;
9600
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
8846
9601
  }, "strip", z.ZodTypeAny, {
8847
9602
  name: string;
8848
9603
  fieldId: string;
8849
9604
  type: "percent_of_column_total";
8850
9605
  displayName: string;
9606
+ partitionBy: string[] | null;
8851
9607
  }, {
8852
9608
  name: string;
8853
9609
  fieldId: string;
8854
9610
  type: "percent_of_column_total";
8855
9611
  displayName: string;
9612
+ partitionBy: string[] | null;
8856
9613
  }>, z.ZodObject<{
8857
9614
  name: z.ZodString;
8858
9615
  displayName: z.ZodString;
@@ -8885,6 +9642,111 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
8885
9642
  fieldId: string;
8886
9643
  type: "running_total";
8887
9644
  displayName: string;
9645
+ }>, z.ZodObject<{
9646
+ name: z.ZodString;
9647
+ displayName: z.ZodString;
9648
+ } & {
9649
+ type: z.ZodLiteral<"window_function">;
9650
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
9651
+ fieldId: z.ZodNullable<z.ZodString>;
9652
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
9653
+ fieldId: z.ZodString;
9654
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
9655
+ }, "strip", z.ZodTypeAny, {
9656
+ fieldId: string;
9657
+ order: "asc" | "desc" | null;
9658
+ }, {
9659
+ fieldId: string;
9660
+ order: "asc" | "desc" | null;
9661
+ }>, "many">>;
9662
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
9663
+ frame: z.ZodNullable<z.ZodObject<{
9664
+ frameType: z.ZodEnum<["rows", "range"]>;
9665
+ start: z.ZodNullable<z.ZodObject<{
9666
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
9667
+ offset: z.ZodNullable<z.ZodNumber>;
9668
+ }, "strip", z.ZodTypeAny, {
9669
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9670
+ offset: number | null;
9671
+ }, {
9672
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9673
+ offset: number | null;
9674
+ }>>;
9675
+ end: z.ZodObject<{
9676
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
9677
+ offset: z.ZodNullable<z.ZodNumber>;
9678
+ }, "strip", z.ZodTypeAny, {
9679
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9680
+ offset: number | null;
9681
+ }, {
9682
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9683
+ offset: number | null;
9684
+ }>;
9685
+ }, "strip", z.ZodTypeAny, {
9686
+ start: {
9687
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9688
+ offset: number | null;
9689
+ } | null;
9690
+ end: {
9691
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9692
+ offset: number | null;
9693
+ };
9694
+ frameType: "rows" | "range";
9695
+ }, {
9696
+ start: {
9697
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9698
+ offset: number | null;
9699
+ } | null;
9700
+ end: {
9701
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9702
+ offset: number | null;
9703
+ };
9704
+ frameType: "rows" | "range";
9705
+ }>>;
9706
+ }, "strip", z.ZodTypeAny, {
9707
+ name: string;
9708
+ fieldId: string | null;
9709
+ type: "window_function";
9710
+ displayName: string;
9711
+ orderBy: {
9712
+ fieldId: string;
9713
+ order: "asc" | "desc" | null;
9714
+ }[] | null;
9715
+ partitionBy: string[] | null;
9716
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
9717
+ frame: {
9718
+ start: {
9719
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9720
+ offset: number | null;
9721
+ } | null;
9722
+ end: {
9723
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9724
+ offset: number | null;
9725
+ };
9726
+ frameType: "rows" | "range";
9727
+ } | null;
9728
+ }, {
9729
+ name: string;
9730
+ fieldId: string | null;
9731
+ type: "window_function";
9732
+ displayName: string;
9733
+ orderBy: {
9734
+ fieldId: string;
9735
+ order: "asc" | "desc" | null;
9736
+ }[] | null;
9737
+ partitionBy: string[] | null;
9738
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
9739
+ frame: {
9740
+ start: {
9741
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9742
+ offset: number | null;
9743
+ } | null;
9744
+ end: {
9745
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9746
+ offset: number | null;
9747
+ };
9748
+ frameType: "rows" | "range";
9749
+ } | null;
8888
9750
  }>]>, "many">>;
8889
9751
  filters: z.ZodNullable<z.ZodObject<{
8890
9752
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -10033,6 +10895,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
10033
10895
  fieldId: string;
10034
10896
  type: "percent_of_column_total";
10035
10897
  displayName: string;
10898
+ partitionBy: string[] | null;
10036
10899
  } | {
10037
10900
  name: string;
10038
10901
  fieldId: string;
@@ -10043,6 +10906,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
10043
10906
  fieldId: string;
10044
10907
  type: "running_total";
10045
10908
  displayName: string;
10909
+ } | {
10910
+ name: string;
10911
+ fieldId: string | null;
10912
+ type: "window_function";
10913
+ displayName: string;
10914
+ orderBy: {
10915
+ fieldId: string;
10916
+ order: "asc" | "desc" | null;
10917
+ }[] | null;
10918
+ partitionBy: string[] | null;
10919
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
10920
+ frame: {
10921
+ start: {
10922
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
10923
+ offset: number | null;
10924
+ } | null;
10925
+ end: {
10926
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
10927
+ offset: number | null;
10928
+ };
10929
+ frameType: "rows" | "range";
10930
+ } | null;
10046
10931
  })[] | null;
10047
10932
  type: AiResultType.TIME_SERIES_RESULT;
10048
10933
  description: string;
@@ -10299,6 +11184,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
10299
11184
  fieldId: string;
10300
11185
  type: "percent_of_column_total";
10301
11186
  displayName: string;
11187
+ partitionBy: string[] | null;
10302
11188
  } | {
10303
11189
  name: string;
10304
11190
  fieldId: string;
@@ -10309,6 +11195,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
10309
11195
  fieldId: string;
10310
11196
  type: "running_total";
10311
11197
  displayName: string;
11198
+ } | {
11199
+ name: string;
11200
+ fieldId: string | null;
11201
+ type: "window_function";
11202
+ displayName: string;
11203
+ orderBy: {
11204
+ fieldId: string;
11205
+ order: "asc" | "desc" | null;
11206
+ }[] | null;
11207
+ partitionBy: string[] | null;
11208
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
11209
+ frame: {
11210
+ start: {
11211
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11212
+ offset: number | null;
11213
+ } | null;
11214
+ end: {
11215
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11216
+ offset: number | null;
11217
+ };
11218
+ frameType: "rows" | "range";
11219
+ } | null;
10312
11220
  })[] | null;
10313
11221
  type: AiResultType.TIME_SERIES_RESULT;
10314
11222
  description: string;
@@ -10638,16 +11546,19 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
10638
11546
  } & {
10639
11547
  type: z.ZodLiteral<"percent_of_column_total">;
10640
11548
  fieldId: z.ZodString;
11549
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
10641
11550
  }, "strip", z.ZodTypeAny, {
10642
11551
  name: string;
10643
11552
  fieldId: string;
10644
11553
  type: "percent_of_column_total";
10645
11554
  displayName: string;
11555
+ partitionBy: string[] | null;
10646
11556
  }, {
10647
11557
  name: string;
10648
11558
  fieldId: string;
10649
11559
  type: "percent_of_column_total";
10650
11560
  displayName: string;
11561
+ partitionBy: string[] | null;
10651
11562
  }>, z.ZodObject<{
10652
11563
  name: z.ZodString;
10653
11564
  displayName: z.ZodString;
@@ -10680,6 +11591,111 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
10680
11591
  fieldId: string;
10681
11592
  type: "running_total";
10682
11593
  displayName: string;
11594
+ }>, z.ZodObject<{
11595
+ name: z.ZodString;
11596
+ displayName: z.ZodString;
11597
+ } & {
11598
+ type: z.ZodLiteral<"window_function">;
11599
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
11600
+ fieldId: z.ZodNullable<z.ZodString>;
11601
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
11602
+ fieldId: z.ZodString;
11603
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
11604
+ }, "strip", z.ZodTypeAny, {
11605
+ fieldId: string;
11606
+ order: "asc" | "desc" | null;
11607
+ }, {
11608
+ fieldId: string;
11609
+ order: "asc" | "desc" | null;
11610
+ }>, "many">>;
11611
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
11612
+ frame: z.ZodNullable<z.ZodObject<{
11613
+ frameType: z.ZodEnum<["rows", "range"]>;
11614
+ start: z.ZodNullable<z.ZodObject<{
11615
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
11616
+ offset: z.ZodNullable<z.ZodNumber>;
11617
+ }, "strip", z.ZodTypeAny, {
11618
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11619
+ offset: number | null;
11620
+ }, {
11621
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11622
+ offset: number | null;
11623
+ }>>;
11624
+ end: z.ZodObject<{
11625
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
11626
+ offset: z.ZodNullable<z.ZodNumber>;
11627
+ }, "strip", z.ZodTypeAny, {
11628
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11629
+ offset: number | null;
11630
+ }, {
11631
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11632
+ offset: number | null;
11633
+ }>;
11634
+ }, "strip", z.ZodTypeAny, {
11635
+ start: {
11636
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11637
+ offset: number | null;
11638
+ } | null;
11639
+ end: {
11640
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11641
+ offset: number | null;
11642
+ };
11643
+ frameType: "rows" | "range";
11644
+ }, {
11645
+ start: {
11646
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11647
+ offset: number | null;
11648
+ } | null;
11649
+ end: {
11650
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11651
+ offset: number | null;
11652
+ };
11653
+ frameType: "rows" | "range";
11654
+ }>>;
11655
+ }, "strip", z.ZodTypeAny, {
11656
+ name: string;
11657
+ fieldId: string | null;
11658
+ type: "window_function";
11659
+ displayName: string;
11660
+ orderBy: {
11661
+ fieldId: string;
11662
+ order: "asc" | "desc" | null;
11663
+ }[] | null;
11664
+ partitionBy: string[] | null;
11665
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
11666
+ frame: {
11667
+ start: {
11668
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11669
+ offset: number | null;
11670
+ } | null;
11671
+ end: {
11672
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11673
+ offset: number | null;
11674
+ };
11675
+ frameType: "rows" | "range";
11676
+ } | null;
11677
+ }, {
11678
+ name: string;
11679
+ fieldId: string | null;
11680
+ type: "window_function";
11681
+ displayName: string;
11682
+ orderBy: {
11683
+ fieldId: string;
11684
+ order: "asc" | "desc" | null;
11685
+ }[] | null;
11686
+ partitionBy: string[] | null;
11687
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
11688
+ frame: {
11689
+ start: {
11690
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11691
+ offset: number | null;
11692
+ } | null;
11693
+ end: {
11694
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11695
+ offset: number | null;
11696
+ };
11697
+ frameType: "rows" | "range";
11698
+ } | null;
10683
11699
  }>]>, "many">>;
10684
11700
  filters: z.ZodNullable<z.ZodObject<{
10685
11701
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -11831,6 +12847,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
11831
12847
  fieldId: string;
11832
12848
  type: "percent_of_column_total";
11833
12849
  displayName: string;
12850
+ partitionBy: string[] | null;
11834
12851
  } | {
11835
12852
  name: string;
11836
12853
  fieldId: string;
@@ -11841,6 +12858,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
11841
12858
  fieldId: string;
11842
12859
  type: "running_total";
11843
12860
  displayName: string;
12861
+ } | {
12862
+ name: string;
12863
+ fieldId: string | null;
12864
+ type: "window_function";
12865
+ displayName: string;
12866
+ orderBy: {
12867
+ fieldId: string;
12868
+ order: "asc" | "desc" | null;
12869
+ }[] | null;
12870
+ partitionBy: string[] | null;
12871
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
12872
+ frame: {
12873
+ start: {
12874
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
12875
+ offset: number | null;
12876
+ } | null;
12877
+ end: {
12878
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
12879
+ offset: number | null;
12880
+ };
12881
+ frameType: "rows" | "range";
12882
+ } | null;
11844
12883
  })[] | null;
11845
12884
  type: AiResultType.VERTICAL_BAR_RESULT;
11846
12885
  description: string;
@@ -12098,6 +13137,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
12098
13137
  fieldId: string;
12099
13138
  type: "percent_of_column_total";
12100
13139
  displayName: string;
13140
+ partitionBy: string[] | null;
12101
13141
  } | {
12102
13142
  name: string;
12103
13143
  fieldId: string;
@@ -12108,6 +13148,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
12108
13148
  fieldId: string;
12109
13149
  type: "running_total";
12110
13150
  displayName: string;
13151
+ } | {
13152
+ name: string;
13153
+ fieldId: string | null;
13154
+ type: "window_function";
13155
+ displayName: string;
13156
+ orderBy: {
13157
+ fieldId: string;
13158
+ order: "asc" | "desc" | null;
13159
+ }[] | null;
13160
+ partitionBy: string[] | null;
13161
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
13162
+ frame: {
13163
+ start: {
13164
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13165
+ offset: number | null;
13166
+ } | null;
13167
+ end: {
13168
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13169
+ offset: number | null;
13170
+ };
13171
+ frameType: "rows" | "range";
13172
+ } | null;
12111
13173
  })[] | null;
12112
13174
  type: AiResultType.VERTICAL_BAR_RESULT;
12113
13175
  description: string;
@@ -12366,6 +13428,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
12366
13428
  fieldId: string;
12367
13429
  type: "percent_of_column_total";
12368
13430
  displayName: string;
13431
+ partitionBy: string[] | null;
12369
13432
  } | {
12370
13433
  name: string;
12371
13434
  fieldId: string;
@@ -12376,6 +13439,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
12376
13439
  fieldId: string;
12377
13440
  type: "running_total";
12378
13441
  displayName: string;
13442
+ } | {
13443
+ name: string;
13444
+ fieldId: string | null;
13445
+ type: "window_function";
13446
+ displayName: string;
13447
+ orderBy: {
13448
+ fieldId: string;
13449
+ order: "asc" | "desc" | null;
13450
+ }[] | null;
13451
+ partitionBy: string[] | null;
13452
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
13453
+ frame: {
13454
+ start: {
13455
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13456
+ offset: number | null;
13457
+ } | null;
13458
+ end: {
13459
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13460
+ offset: number | null;
13461
+ };
13462
+ frameType: "rows" | "range";
13463
+ } | null;
12379
13464
  })[] | null;
12380
13465
  type: AiResultType.TABLE_RESULT;
12381
13466
  description: string;
@@ -12629,6 +13714,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
12629
13714
  fieldId: string;
12630
13715
  type: "percent_of_column_total";
12631
13716
  displayName: string;
13717
+ partitionBy: string[] | null;
12632
13718
  } | {
12633
13719
  name: string;
12634
13720
  fieldId: string;
@@ -12639,6 +13725,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
12639
13725
  fieldId: string;
12640
13726
  type: "running_total";
12641
13727
  displayName: string;
13728
+ } | {
13729
+ name: string;
13730
+ fieldId: string | null;
13731
+ type: "window_function";
13732
+ displayName: string;
13733
+ orderBy: {
13734
+ fieldId: string;
13735
+ order: "asc" | "desc" | null;
13736
+ }[] | null;
13737
+ partitionBy: string[] | null;
13738
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
13739
+ frame: {
13740
+ start: {
13741
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13742
+ offset: number | null;
13743
+ } | null;
13744
+ end: {
13745
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13746
+ offset: number | null;
13747
+ };
13748
+ frameType: "rows" | "range";
13749
+ } | null;
12642
13750
  })[] | null;
12643
13751
  type: AiResultType.TIME_SERIES_RESULT;
12644
13752
  description: string;
@@ -12896,6 +14004,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
12896
14004
  fieldId: string;
12897
14005
  type: "percent_of_column_total";
12898
14006
  displayName: string;
14007
+ partitionBy: string[] | null;
12899
14008
  } | {
12900
14009
  name: string;
12901
14010
  fieldId: string;
@@ -12906,6 +14015,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
12906
14015
  fieldId: string;
12907
14016
  type: "running_total";
12908
14017
  displayName: string;
14018
+ } | {
14019
+ name: string;
14020
+ fieldId: string | null;
14021
+ type: "window_function";
14022
+ displayName: string;
14023
+ orderBy: {
14024
+ fieldId: string;
14025
+ order: "asc" | "desc" | null;
14026
+ }[] | null;
14027
+ partitionBy: string[] | null;
14028
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
14029
+ frame: {
14030
+ start: {
14031
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
14032
+ offset: number | null;
14033
+ } | null;
14034
+ end: {
14035
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
14036
+ offset: number | null;
14037
+ };
14038
+ frameType: "rows" | "range";
14039
+ } | null;
12909
14040
  })[] | null;
12910
14041
  type: AiResultType.VERTICAL_BAR_RESULT;
12911
14042
  description: string;
@@ -13163,6 +14294,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
13163
14294
  fieldId: string;
13164
14295
  type: "percent_of_column_total";
13165
14296
  displayName: string;
14297
+ partitionBy: string[] | null;
13166
14298
  } | {
13167
14299
  name: string;
13168
14300
  fieldId: string;
@@ -13173,6 +14305,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
13173
14305
  fieldId: string;
13174
14306
  type: "running_total";
13175
14307
  displayName: string;
14308
+ } | {
14309
+ name: string;
14310
+ fieldId: string | null;
14311
+ type: "window_function";
14312
+ displayName: string;
14313
+ orderBy: {
14314
+ fieldId: string;
14315
+ order: "asc" | "desc" | null;
14316
+ }[] | null;
14317
+ partitionBy: string[] | null;
14318
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
14319
+ frame: {
14320
+ start: {
14321
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
14322
+ offset: number | null;
14323
+ } | null;
14324
+ end: {
14325
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
14326
+ offset: number | null;
14327
+ };
14328
+ frameType: "rows" | "range";
14329
+ } | null;
13176
14330
  })[] | null;
13177
14331
  type: AiResultType.TABLE_RESULT;
13178
14332
  description: string;
@@ -13425,6 +14579,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
13425
14579
  fieldId: string;
13426
14580
  type: "percent_of_column_total";
13427
14581
  displayName: string;
14582
+ partitionBy: string[] | null;
13428
14583
  } | {
13429
14584
  name: string;
13430
14585
  fieldId: string;
@@ -13435,6 +14590,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
13435
14590
  fieldId: string;
13436
14591
  type: "running_total";
13437
14592
  displayName: string;
14593
+ } | {
14594
+ name: string;
14595
+ fieldId: string | null;
14596
+ type: "window_function";
14597
+ displayName: string;
14598
+ orderBy: {
14599
+ fieldId: string;
14600
+ order: "asc" | "desc" | null;
14601
+ }[] | null;
14602
+ partitionBy: string[] | null;
14603
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
14604
+ frame: {
14605
+ start: {
14606
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
14607
+ offset: number | null;
14608
+ } | null;
14609
+ end: {
14610
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
14611
+ offset: number | null;
14612
+ };
14613
+ frameType: "rows" | "range";
14614
+ } | null;
13438
14615
  })[] | null;
13439
14616
  type: AiResultType.TIME_SERIES_RESULT;
13440
14617
  description: string;
@@ -13691,6 +14868,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
13691
14868
  fieldId: string;
13692
14869
  type: "percent_of_column_total";
13693
14870
  displayName: string;
14871
+ partitionBy: string[] | null;
13694
14872
  } | {
13695
14873
  name: string;
13696
14874
  fieldId: string;
@@ -13701,6 +14879,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
13701
14879
  fieldId: string;
13702
14880
  type: "running_total";
13703
14881
  displayName: string;
14882
+ } | {
14883
+ name: string;
14884
+ fieldId: string | null;
14885
+ type: "window_function";
14886
+ displayName: string;
14887
+ orderBy: {
14888
+ fieldId: string;
14889
+ order: "asc" | "desc" | null;
14890
+ }[] | null;
14891
+ partitionBy: string[] | null;
14892
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
14893
+ frame: {
14894
+ start: {
14895
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
14896
+ offset: number | null;
14897
+ } | null;
14898
+ end: {
14899
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
14900
+ offset: number | null;
14901
+ };
14902
+ frameType: "rows" | "range";
14903
+ } | null;
13704
14904
  })[] | null;
13705
14905
  type: AiResultType.VERTICAL_BAR_RESULT;
13706
14906
  description: string;
@@ -13964,6 +15164,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
13964
15164
  fieldId: string;
13965
15165
  type: "percent_of_column_total";
13966
15166
  displayName: string;
15167
+ partitionBy: string[] | null;
13967
15168
  } | {
13968
15169
  name: string;
13969
15170
  fieldId: string;
@@ -13974,6 +15175,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
13974
15175
  fieldId: string;
13975
15176
  type: "running_total";
13976
15177
  displayName: string;
15178
+ } | {
15179
+ name: string;
15180
+ fieldId: string | null;
15181
+ type: "window_function";
15182
+ displayName: string;
15183
+ orderBy: {
15184
+ fieldId: string;
15185
+ order: "asc" | "desc" | null;
15186
+ }[] | null;
15187
+ partitionBy: string[] | null;
15188
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
15189
+ frame: {
15190
+ start: {
15191
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15192
+ offset: number | null;
15193
+ } | null;
15194
+ end: {
15195
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15196
+ offset: number | null;
15197
+ };
15198
+ frameType: "rows" | "range";
15199
+ } | null;
13977
15200
  })[] | null;
13978
15201
  type: AiResultType.TABLE_RESULT;
13979
15202
  description: string;
@@ -14227,6 +15450,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
14227
15450
  fieldId: string;
14228
15451
  type: "percent_of_column_total";
14229
15452
  displayName: string;
15453
+ partitionBy: string[] | null;
14230
15454
  } | {
14231
15455
  name: string;
14232
15456
  fieldId: string;
@@ -14237,6 +15461,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
14237
15461
  fieldId: string;
14238
15462
  type: "running_total";
14239
15463
  displayName: string;
15464
+ } | {
15465
+ name: string;
15466
+ fieldId: string | null;
15467
+ type: "window_function";
15468
+ displayName: string;
15469
+ orderBy: {
15470
+ fieldId: string;
15471
+ order: "asc" | "desc" | null;
15472
+ }[] | null;
15473
+ partitionBy: string[] | null;
15474
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
15475
+ frame: {
15476
+ start: {
15477
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15478
+ offset: number | null;
15479
+ } | null;
15480
+ end: {
15481
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15482
+ offset: number | null;
15483
+ };
15484
+ frameType: "rows" | "range";
15485
+ } | null;
14240
15486
  })[] | null;
14241
15487
  type: AiResultType.TIME_SERIES_RESULT;
14242
15488
  description: string;
@@ -14494,6 +15740,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
14494
15740
  fieldId: string;
14495
15741
  type: "percent_of_column_total";
14496
15742
  displayName: string;
15743
+ partitionBy: string[] | null;
14497
15744
  } | {
14498
15745
  name: string;
14499
15746
  fieldId: string;
@@ -14504,6 +15751,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
14504
15751
  fieldId: string;
14505
15752
  type: "running_total";
14506
15753
  displayName: string;
15754
+ } | {
15755
+ name: string;
15756
+ fieldId: string | null;
15757
+ type: "window_function";
15758
+ displayName: string;
15759
+ orderBy: {
15760
+ fieldId: string;
15761
+ order: "asc" | "desc" | null;
15762
+ }[] | null;
15763
+ partitionBy: string[] | null;
15764
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
15765
+ frame: {
15766
+ start: {
15767
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15768
+ offset: number | null;
15769
+ } | null;
15770
+ end: {
15771
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15772
+ offset: number | null;
15773
+ };
15774
+ frameType: "rows" | "range";
15775
+ } | null;
14507
15776
  })[] | null;
14508
15777
  type: AiResultType.VERTICAL_BAR_RESULT;
14509
15778
  description: string;
@@ -14766,6 +16035,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
14766
16035
  fieldId: string;
14767
16036
  type: "percent_of_column_total";
14768
16037
  displayName: string;
16038
+ partitionBy: string[] | null;
14769
16039
  } | {
14770
16040
  name: string;
14771
16041
  fieldId: string;
@@ -14776,6 +16046,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
14776
16046
  fieldId: string;
14777
16047
  type: "running_total";
14778
16048
  displayName: string;
16049
+ } | {
16050
+ name: string;
16051
+ fieldId: string | null;
16052
+ type: "window_function";
16053
+ displayName: string;
16054
+ orderBy: {
16055
+ fieldId: string;
16056
+ order: "asc" | "desc" | null;
16057
+ }[] | null;
16058
+ partitionBy: string[] | null;
16059
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
16060
+ frame: {
16061
+ start: {
16062
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
16063
+ offset: number | null;
16064
+ } | null;
16065
+ end: {
16066
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
16067
+ offset: number | null;
16068
+ };
16069
+ frameType: "rows" | "range";
16070
+ } | null;
14779
16071
  })[] | null;
14780
16072
  type: AiResultType.TABLE_RESULT;
14781
16073
  description: string;
@@ -15028,6 +16320,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
15028
16320
  fieldId: string;
15029
16321
  type: "percent_of_column_total";
15030
16322
  displayName: string;
16323
+ partitionBy: string[] | null;
15031
16324
  } | {
15032
16325
  name: string;
15033
16326
  fieldId: string;
@@ -15038,6 +16331,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
15038
16331
  fieldId: string;
15039
16332
  type: "running_total";
15040
16333
  displayName: string;
16334
+ } | {
16335
+ name: string;
16336
+ fieldId: string | null;
16337
+ type: "window_function";
16338
+ displayName: string;
16339
+ orderBy: {
16340
+ fieldId: string;
16341
+ order: "asc" | "desc" | null;
16342
+ }[] | null;
16343
+ partitionBy: string[] | null;
16344
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
16345
+ frame: {
16346
+ start: {
16347
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
16348
+ offset: number | null;
16349
+ } | null;
16350
+ end: {
16351
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
16352
+ offset: number | null;
16353
+ };
16354
+ frameType: "rows" | "range";
16355
+ } | null;
15041
16356
  })[] | null;
15042
16357
  type: AiResultType.TIME_SERIES_RESULT;
15043
16358
  description: string;
@@ -15294,6 +16609,7 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
15294
16609
  fieldId: string;
15295
16610
  type: "percent_of_column_total";
15296
16611
  displayName: string;
16612
+ partitionBy: string[] | null;
15297
16613
  } | {
15298
16614
  name: string;
15299
16615
  fieldId: string;
@@ -15304,6 +16620,28 @@ export declare const toolDashboardArgsSchema: z.ZodObject<{
15304
16620
  fieldId: string;
15305
16621
  type: "running_total";
15306
16622
  displayName: string;
16623
+ } | {
16624
+ name: string;
16625
+ fieldId: string | null;
16626
+ type: "window_function";
16627
+ displayName: string;
16628
+ orderBy: {
16629
+ fieldId: string;
16630
+ order: "asc" | "desc" | null;
16631
+ }[] | null;
16632
+ partitionBy: string[] | null;
16633
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
16634
+ frame: {
16635
+ start: {
16636
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
16637
+ offset: number | null;
16638
+ } | null;
16639
+ end: {
16640
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
16641
+ offset: number | null;
16642
+ };
16643
+ frameType: "rows" | "range";
16644
+ } | null;
15307
16645
  })[] | null;
15308
16646
  type: AiResultType.VERTICAL_BAR_RESULT;
15309
16647
  description: string;
@@ -15642,16 +16980,19 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
15642
16980
  } & {
15643
16981
  type: z.ZodLiteral<"percent_of_column_total">;
15644
16982
  fieldId: z.ZodString;
16983
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
15645
16984
  }, "strip", z.ZodTypeAny, {
15646
16985
  name: string;
15647
16986
  fieldId: string;
15648
16987
  type: "percent_of_column_total";
15649
16988
  displayName: string;
16989
+ partitionBy: string[] | null;
15650
16990
  }, {
15651
16991
  name: string;
15652
16992
  fieldId: string;
15653
16993
  type: "percent_of_column_total";
15654
16994
  displayName: string;
16995
+ partitionBy: string[] | null;
15655
16996
  }>, z.ZodObject<{
15656
16997
  name: z.ZodString;
15657
16998
  displayName: z.ZodString;
@@ -15676,14 +17017,119 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
15676
17017
  fieldId: z.ZodString;
15677
17018
  }, "strip", z.ZodTypeAny, {
15678
17019
  name: string;
15679
- fieldId: string;
15680
- type: "running_total";
17020
+ fieldId: string;
17021
+ type: "running_total";
17022
+ displayName: string;
17023
+ }, {
17024
+ name: string;
17025
+ fieldId: string;
17026
+ type: "running_total";
17027
+ displayName: string;
17028
+ }>, z.ZodObject<{
17029
+ name: z.ZodString;
17030
+ displayName: z.ZodString;
17031
+ } & {
17032
+ type: z.ZodLiteral<"window_function">;
17033
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
17034
+ fieldId: z.ZodNullable<z.ZodString>;
17035
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
17036
+ fieldId: z.ZodString;
17037
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
17038
+ }, "strip", z.ZodTypeAny, {
17039
+ fieldId: string;
17040
+ order: "asc" | "desc" | null;
17041
+ }, {
17042
+ fieldId: string;
17043
+ order: "asc" | "desc" | null;
17044
+ }>, "many">>;
17045
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
17046
+ frame: z.ZodNullable<z.ZodObject<{
17047
+ frameType: z.ZodEnum<["rows", "range"]>;
17048
+ start: z.ZodNullable<z.ZodObject<{
17049
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
17050
+ offset: z.ZodNullable<z.ZodNumber>;
17051
+ }, "strip", z.ZodTypeAny, {
17052
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17053
+ offset: number | null;
17054
+ }, {
17055
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17056
+ offset: number | null;
17057
+ }>>;
17058
+ end: z.ZodObject<{
17059
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
17060
+ offset: z.ZodNullable<z.ZodNumber>;
17061
+ }, "strip", z.ZodTypeAny, {
17062
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17063
+ offset: number | null;
17064
+ }, {
17065
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17066
+ offset: number | null;
17067
+ }>;
17068
+ }, "strip", z.ZodTypeAny, {
17069
+ start: {
17070
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17071
+ offset: number | null;
17072
+ } | null;
17073
+ end: {
17074
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17075
+ offset: number | null;
17076
+ };
17077
+ frameType: "rows" | "range";
17078
+ }, {
17079
+ start: {
17080
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17081
+ offset: number | null;
17082
+ } | null;
17083
+ end: {
17084
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17085
+ offset: number | null;
17086
+ };
17087
+ frameType: "rows" | "range";
17088
+ }>>;
17089
+ }, "strip", z.ZodTypeAny, {
17090
+ name: string;
17091
+ fieldId: string | null;
17092
+ type: "window_function";
15681
17093
  displayName: string;
17094
+ orderBy: {
17095
+ fieldId: string;
17096
+ order: "asc" | "desc" | null;
17097
+ }[] | null;
17098
+ partitionBy: string[] | null;
17099
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
17100
+ frame: {
17101
+ start: {
17102
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17103
+ offset: number | null;
17104
+ } | null;
17105
+ end: {
17106
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17107
+ offset: number | null;
17108
+ };
17109
+ frameType: "rows" | "range";
17110
+ } | null;
15682
17111
  }, {
15683
17112
  name: string;
15684
- fieldId: string;
15685
- type: "running_total";
17113
+ fieldId: string | null;
17114
+ type: "window_function";
15686
17115
  displayName: string;
17116
+ orderBy: {
17117
+ fieldId: string;
17118
+ order: "asc" | "desc" | null;
17119
+ }[] | null;
17120
+ partitionBy: string[] | null;
17121
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
17122
+ frame: {
17123
+ start: {
17124
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17125
+ offset: number | null;
17126
+ } | null;
17127
+ end: {
17128
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17129
+ offset: number | null;
17130
+ };
17131
+ frameType: "rows" | "range";
17132
+ } | null;
15687
17133
  }>]>, "many">>;
15688
17134
  filters: z.ZodNullable<z.ZodObject<{
15689
17135
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -16820,6 +18266,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
16820
18266
  fieldId: string;
16821
18267
  type: "percent_of_column_total";
16822
18268
  displayName: string;
18269
+ partitionBy: string[] | null;
16823
18270
  } | {
16824
18271
  name: string;
16825
18272
  fieldId: string;
@@ -16830,6 +18277,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
16830
18277
  fieldId: string;
16831
18278
  type: "running_total";
16832
18279
  displayName: string;
18280
+ } | {
18281
+ name: string;
18282
+ fieldId: string | null;
18283
+ type: "window_function";
18284
+ displayName: string;
18285
+ orderBy: {
18286
+ fieldId: string;
18287
+ order: "asc" | "desc" | null;
18288
+ }[] | null;
18289
+ partitionBy: string[] | null;
18290
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
18291
+ frame: {
18292
+ start: {
18293
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
18294
+ offset: number | null;
18295
+ } | null;
18296
+ end: {
18297
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
18298
+ offset: number | null;
18299
+ };
18300
+ frameType: "rows" | "range";
18301
+ } | null;
16833
18302
  })[] | null;
16834
18303
  type: AiResultType.TABLE_RESULT;
16835
18304
  description: string;
@@ -17082,6 +18551,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
17082
18551
  fieldId: string;
17083
18552
  type: "percent_of_column_total";
17084
18553
  displayName: string;
18554
+ partitionBy: string[] | null;
17085
18555
  } | {
17086
18556
  name: string;
17087
18557
  fieldId: string;
@@ -17092,6 +18562,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
17092
18562
  fieldId: string;
17093
18563
  type: "running_total";
17094
18564
  displayName: string;
18565
+ } | {
18566
+ name: string;
18567
+ fieldId: string | null;
18568
+ type: "window_function";
18569
+ displayName: string;
18570
+ orderBy: {
18571
+ fieldId: string;
18572
+ order: "asc" | "desc" | null;
18573
+ }[] | null;
18574
+ partitionBy: string[] | null;
18575
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
18576
+ frame: {
18577
+ start: {
18578
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
18579
+ offset: number | null;
18580
+ } | null;
18581
+ end: {
18582
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
18583
+ offset: number | null;
18584
+ };
18585
+ frameType: "rows" | "range";
18586
+ } | null;
17095
18587
  })[] | null;
17096
18588
  type: AiResultType.TABLE_RESULT;
17097
18589
  description: string;
@@ -17417,16 +18909,19 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
17417
18909
  } & {
17418
18910
  type: z.ZodLiteral<"percent_of_column_total">;
17419
18911
  fieldId: z.ZodString;
18912
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
17420
18913
  }, "strip", z.ZodTypeAny, {
17421
18914
  name: string;
17422
18915
  fieldId: string;
17423
18916
  type: "percent_of_column_total";
17424
18917
  displayName: string;
18918
+ partitionBy: string[] | null;
17425
18919
  }, {
17426
18920
  name: string;
17427
18921
  fieldId: string;
17428
18922
  type: "percent_of_column_total";
17429
18923
  displayName: string;
18924
+ partitionBy: string[] | null;
17430
18925
  }>, z.ZodObject<{
17431
18926
  name: z.ZodString;
17432
18927
  displayName: z.ZodString;
@@ -17459,6 +18954,111 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
17459
18954
  fieldId: string;
17460
18955
  type: "running_total";
17461
18956
  displayName: string;
18957
+ }>, z.ZodObject<{
18958
+ name: z.ZodString;
18959
+ displayName: z.ZodString;
18960
+ } & {
18961
+ type: z.ZodLiteral<"window_function">;
18962
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
18963
+ fieldId: z.ZodNullable<z.ZodString>;
18964
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
18965
+ fieldId: z.ZodString;
18966
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
18967
+ }, "strip", z.ZodTypeAny, {
18968
+ fieldId: string;
18969
+ order: "asc" | "desc" | null;
18970
+ }, {
18971
+ fieldId: string;
18972
+ order: "asc" | "desc" | null;
18973
+ }>, "many">>;
18974
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
18975
+ frame: z.ZodNullable<z.ZodObject<{
18976
+ frameType: z.ZodEnum<["rows", "range"]>;
18977
+ start: z.ZodNullable<z.ZodObject<{
18978
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
18979
+ offset: z.ZodNullable<z.ZodNumber>;
18980
+ }, "strip", z.ZodTypeAny, {
18981
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
18982
+ offset: number | null;
18983
+ }, {
18984
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
18985
+ offset: number | null;
18986
+ }>>;
18987
+ end: z.ZodObject<{
18988
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
18989
+ offset: z.ZodNullable<z.ZodNumber>;
18990
+ }, "strip", z.ZodTypeAny, {
18991
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
18992
+ offset: number | null;
18993
+ }, {
18994
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
18995
+ offset: number | null;
18996
+ }>;
18997
+ }, "strip", z.ZodTypeAny, {
18998
+ start: {
18999
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
19000
+ offset: number | null;
19001
+ } | null;
19002
+ end: {
19003
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
19004
+ offset: number | null;
19005
+ };
19006
+ frameType: "rows" | "range";
19007
+ }, {
19008
+ start: {
19009
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
19010
+ offset: number | null;
19011
+ } | null;
19012
+ end: {
19013
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
19014
+ offset: number | null;
19015
+ };
19016
+ frameType: "rows" | "range";
19017
+ }>>;
19018
+ }, "strip", z.ZodTypeAny, {
19019
+ name: string;
19020
+ fieldId: string | null;
19021
+ type: "window_function";
19022
+ displayName: string;
19023
+ orderBy: {
19024
+ fieldId: string;
19025
+ order: "asc" | "desc" | null;
19026
+ }[] | null;
19027
+ partitionBy: string[] | null;
19028
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
19029
+ frame: {
19030
+ start: {
19031
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
19032
+ offset: number | null;
19033
+ } | null;
19034
+ end: {
19035
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
19036
+ offset: number | null;
19037
+ };
19038
+ frameType: "rows" | "range";
19039
+ } | null;
19040
+ }, {
19041
+ name: string;
19042
+ fieldId: string | null;
19043
+ type: "window_function";
19044
+ displayName: string;
19045
+ orderBy: {
19046
+ fieldId: string;
19047
+ order: "asc" | "desc" | null;
19048
+ }[] | null;
19049
+ partitionBy: string[] | null;
19050
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
19051
+ frame: {
19052
+ start: {
19053
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
19054
+ offset: number | null;
19055
+ } | null;
19056
+ end: {
19057
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
19058
+ offset: number | null;
19059
+ };
19060
+ frameType: "rows" | "range";
19061
+ } | null;
17462
19062
  }>]>, "many">>;
17463
19063
  filters: z.ZodNullable<z.ZodObject<{
17464
19064
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -18607,6 +20207,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
18607
20207
  fieldId: string;
18608
20208
  type: "percent_of_column_total";
18609
20209
  displayName: string;
20210
+ partitionBy: string[] | null;
18610
20211
  } | {
18611
20212
  name: string;
18612
20213
  fieldId: string;
@@ -18617,6 +20218,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
18617
20218
  fieldId: string;
18618
20219
  type: "running_total";
18619
20220
  displayName: string;
20221
+ } | {
20222
+ name: string;
20223
+ fieldId: string | null;
20224
+ type: "window_function";
20225
+ displayName: string;
20226
+ orderBy: {
20227
+ fieldId: string;
20228
+ order: "asc" | "desc" | null;
20229
+ }[] | null;
20230
+ partitionBy: string[] | null;
20231
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
20232
+ frame: {
20233
+ start: {
20234
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20235
+ offset: number | null;
20236
+ } | null;
20237
+ end: {
20238
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20239
+ offset: number | null;
20240
+ };
20241
+ frameType: "rows" | "range";
20242
+ } | null;
18620
20243
  })[] | null;
18621
20244
  type: AiResultType.TIME_SERIES_RESULT;
18622
20245
  description: string;
@@ -18873,6 +20496,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
18873
20496
  fieldId: string;
18874
20497
  type: "percent_of_column_total";
18875
20498
  displayName: string;
20499
+ partitionBy: string[] | null;
18876
20500
  } | {
18877
20501
  name: string;
18878
20502
  fieldId: string;
@@ -18883,6 +20507,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
18883
20507
  fieldId: string;
18884
20508
  type: "running_total";
18885
20509
  displayName: string;
20510
+ } | {
20511
+ name: string;
20512
+ fieldId: string | null;
20513
+ type: "window_function";
20514
+ displayName: string;
20515
+ orderBy: {
20516
+ fieldId: string;
20517
+ order: "asc" | "desc" | null;
20518
+ }[] | null;
20519
+ partitionBy: string[] | null;
20520
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
20521
+ frame: {
20522
+ start: {
20523
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20524
+ offset: number | null;
20525
+ } | null;
20526
+ end: {
20527
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20528
+ offset: number | null;
20529
+ };
20530
+ frameType: "rows" | "range";
20531
+ } | null;
18886
20532
  })[] | null;
18887
20533
  type: AiResultType.TIME_SERIES_RESULT;
18888
20534
  description: string;
@@ -19212,16 +20858,19 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
19212
20858
  } & {
19213
20859
  type: z.ZodLiteral<"percent_of_column_total">;
19214
20860
  fieldId: z.ZodString;
20861
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
19215
20862
  }, "strip", z.ZodTypeAny, {
19216
20863
  name: string;
19217
20864
  fieldId: string;
19218
20865
  type: "percent_of_column_total";
19219
20866
  displayName: string;
20867
+ partitionBy: string[] | null;
19220
20868
  }, {
19221
20869
  name: string;
19222
20870
  fieldId: string;
19223
20871
  type: "percent_of_column_total";
19224
20872
  displayName: string;
20873
+ partitionBy: string[] | null;
19225
20874
  }>, z.ZodObject<{
19226
20875
  name: z.ZodString;
19227
20876
  displayName: z.ZodString;
@@ -19254,6 +20903,111 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
19254
20903
  fieldId: string;
19255
20904
  type: "running_total";
19256
20905
  displayName: string;
20906
+ }>, z.ZodObject<{
20907
+ name: z.ZodString;
20908
+ displayName: z.ZodString;
20909
+ } & {
20910
+ type: z.ZodLiteral<"window_function">;
20911
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
20912
+ fieldId: z.ZodNullable<z.ZodString>;
20913
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
20914
+ fieldId: z.ZodString;
20915
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
20916
+ }, "strip", z.ZodTypeAny, {
20917
+ fieldId: string;
20918
+ order: "asc" | "desc" | null;
20919
+ }, {
20920
+ fieldId: string;
20921
+ order: "asc" | "desc" | null;
20922
+ }>, "many">>;
20923
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
20924
+ frame: z.ZodNullable<z.ZodObject<{
20925
+ frameType: z.ZodEnum<["rows", "range"]>;
20926
+ start: z.ZodNullable<z.ZodObject<{
20927
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
20928
+ offset: z.ZodNullable<z.ZodNumber>;
20929
+ }, "strip", z.ZodTypeAny, {
20930
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20931
+ offset: number | null;
20932
+ }, {
20933
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20934
+ offset: number | null;
20935
+ }>>;
20936
+ end: z.ZodObject<{
20937
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
20938
+ offset: z.ZodNullable<z.ZodNumber>;
20939
+ }, "strip", z.ZodTypeAny, {
20940
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20941
+ offset: number | null;
20942
+ }, {
20943
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20944
+ offset: number | null;
20945
+ }>;
20946
+ }, "strip", z.ZodTypeAny, {
20947
+ start: {
20948
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20949
+ offset: number | null;
20950
+ } | null;
20951
+ end: {
20952
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20953
+ offset: number | null;
20954
+ };
20955
+ frameType: "rows" | "range";
20956
+ }, {
20957
+ start: {
20958
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20959
+ offset: number | null;
20960
+ } | null;
20961
+ end: {
20962
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20963
+ offset: number | null;
20964
+ };
20965
+ frameType: "rows" | "range";
20966
+ }>>;
20967
+ }, "strip", z.ZodTypeAny, {
20968
+ name: string;
20969
+ fieldId: string | null;
20970
+ type: "window_function";
20971
+ displayName: string;
20972
+ orderBy: {
20973
+ fieldId: string;
20974
+ order: "asc" | "desc" | null;
20975
+ }[] | null;
20976
+ partitionBy: string[] | null;
20977
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
20978
+ frame: {
20979
+ start: {
20980
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20981
+ offset: number | null;
20982
+ } | null;
20983
+ end: {
20984
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
20985
+ offset: number | null;
20986
+ };
20987
+ frameType: "rows" | "range";
20988
+ } | null;
20989
+ }, {
20990
+ name: string;
20991
+ fieldId: string | null;
20992
+ type: "window_function";
20993
+ displayName: string;
20994
+ orderBy: {
20995
+ fieldId: string;
20996
+ order: "asc" | "desc" | null;
20997
+ }[] | null;
20998
+ partitionBy: string[] | null;
20999
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
21000
+ frame: {
21001
+ start: {
21002
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
21003
+ offset: number | null;
21004
+ } | null;
21005
+ end: {
21006
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
21007
+ offset: number | null;
21008
+ };
21009
+ frameType: "rows" | "range";
21010
+ } | null;
19257
21011
  }>]>, "many">>;
19258
21012
  filters: z.ZodNullable<z.ZodObject<{
19259
21013
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -20405,6 +22159,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
20405
22159
  fieldId: string;
20406
22160
  type: "percent_of_column_total";
20407
22161
  displayName: string;
22162
+ partitionBy: string[] | null;
20408
22163
  } | {
20409
22164
  name: string;
20410
22165
  fieldId: string;
@@ -20415,6 +22170,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
20415
22170
  fieldId: string;
20416
22171
  type: "running_total";
20417
22172
  displayName: string;
22173
+ } | {
22174
+ name: string;
22175
+ fieldId: string | null;
22176
+ type: "window_function";
22177
+ displayName: string;
22178
+ orderBy: {
22179
+ fieldId: string;
22180
+ order: "asc" | "desc" | null;
22181
+ }[] | null;
22182
+ partitionBy: string[] | null;
22183
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
22184
+ frame: {
22185
+ start: {
22186
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
22187
+ offset: number | null;
22188
+ } | null;
22189
+ end: {
22190
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
22191
+ offset: number | null;
22192
+ };
22193
+ frameType: "rows" | "range";
22194
+ } | null;
20418
22195
  })[] | null;
20419
22196
  type: AiResultType.VERTICAL_BAR_RESULT;
20420
22197
  description: string;
@@ -20672,6 +22449,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
20672
22449
  fieldId: string;
20673
22450
  type: "percent_of_column_total";
20674
22451
  displayName: string;
22452
+ partitionBy: string[] | null;
20675
22453
  } | {
20676
22454
  name: string;
20677
22455
  fieldId: string;
@@ -20682,6 +22460,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
20682
22460
  fieldId: string;
20683
22461
  type: "running_total";
20684
22462
  displayName: string;
22463
+ } | {
22464
+ name: string;
22465
+ fieldId: string | null;
22466
+ type: "window_function";
22467
+ displayName: string;
22468
+ orderBy: {
22469
+ fieldId: string;
22470
+ order: "asc" | "desc" | null;
22471
+ }[] | null;
22472
+ partitionBy: string[] | null;
22473
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
22474
+ frame: {
22475
+ start: {
22476
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
22477
+ offset: number | null;
22478
+ } | null;
22479
+ end: {
22480
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
22481
+ offset: number | null;
22482
+ };
22483
+ frameType: "rows" | "range";
22484
+ } | null;
20685
22485
  })[] | null;
20686
22486
  type: AiResultType.VERTICAL_BAR_RESULT;
20687
22487
  description: string;
@@ -20940,6 +22740,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
20940
22740
  fieldId: string;
20941
22741
  type: "percent_of_column_total";
20942
22742
  displayName: string;
22743
+ partitionBy: string[] | null;
20943
22744
  } | {
20944
22745
  name: string;
20945
22746
  fieldId: string;
@@ -20950,6 +22751,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
20950
22751
  fieldId: string;
20951
22752
  type: "running_total";
20952
22753
  displayName: string;
22754
+ } | {
22755
+ name: string;
22756
+ fieldId: string | null;
22757
+ type: "window_function";
22758
+ displayName: string;
22759
+ orderBy: {
22760
+ fieldId: string;
22761
+ order: "asc" | "desc" | null;
22762
+ }[] | null;
22763
+ partitionBy: string[] | null;
22764
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
22765
+ frame: {
22766
+ start: {
22767
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
22768
+ offset: number | null;
22769
+ } | null;
22770
+ end: {
22771
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
22772
+ offset: number | null;
22773
+ };
22774
+ frameType: "rows" | "range";
22775
+ } | null;
20953
22776
  })[] | null;
20954
22777
  type: AiResultType.TABLE_RESULT;
20955
22778
  description: string;
@@ -21203,6 +23026,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
21203
23026
  fieldId: string;
21204
23027
  type: "percent_of_column_total";
21205
23028
  displayName: string;
23029
+ partitionBy: string[] | null;
21206
23030
  } | {
21207
23031
  name: string;
21208
23032
  fieldId: string;
@@ -21213,6 +23037,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
21213
23037
  fieldId: string;
21214
23038
  type: "running_total";
21215
23039
  displayName: string;
23040
+ } | {
23041
+ name: string;
23042
+ fieldId: string | null;
23043
+ type: "window_function";
23044
+ displayName: string;
23045
+ orderBy: {
23046
+ fieldId: string;
23047
+ order: "asc" | "desc" | null;
23048
+ }[] | null;
23049
+ partitionBy: string[] | null;
23050
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
23051
+ frame: {
23052
+ start: {
23053
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
23054
+ offset: number | null;
23055
+ } | null;
23056
+ end: {
23057
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
23058
+ offset: number | null;
23059
+ };
23060
+ frameType: "rows" | "range";
23061
+ } | null;
21216
23062
  })[] | null;
21217
23063
  type: AiResultType.TIME_SERIES_RESULT;
21218
23064
  description: string;
@@ -21470,6 +23316,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
21470
23316
  fieldId: string;
21471
23317
  type: "percent_of_column_total";
21472
23318
  displayName: string;
23319
+ partitionBy: string[] | null;
21473
23320
  } | {
21474
23321
  name: string;
21475
23322
  fieldId: string;
@@ -21480,6 +23327,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
21480
23327
  fieldId: string;
21481
23328
  type: "running_total";
21482
23329
  displayName: string;
23330
+ } | {
23331
+ name: string;
23332
+ fieldId: string | null;
23333
+ type: "window_function";
23334
+ displayName: string;
23335
+ orderBy: {
23336
+ fieldId: string;
23337
+ order: "asc" | "desc" | null;
23338
+ }[] | null;
23339
+ partitionBy: string[] | null;
23340
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
23341
+ frame: {
23342
+ start: {
23343
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
23344
+ offset: number | null;
23345
+ } | null;
23346
+ end: {
23347
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
23348
+ offset: number | null;
23349
+ };
23350
+ frameType: "rows" | "range";
23351
+ } | null;
21483
23352
  })[] | null;
21484
23353
  type: AiResultType.VERTICAL_BAR_RESULT;
21485
23354
  description: string;
@@ -21737,6 +23606,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
21737
23606
  fieldId: string;
21738
23607
  type: "percent_of_column_total";
21739
23608
  displayName: string;
23609
+ partitionBy: string[] | null;
21740
23610
  } | {
21741
23611
  name: string;
21742
23612
  fieldId: string;
@@ -21747,6 +23617,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
21747
23617
  fieldId: string;
21748
23618
  type: "running_total";
21749
23619
  displayName: string;
23620
+ } | {
23621
+ name: string;
23622
+ fieldId: string | null;
23623
+ type: "window_function";
23624
+ displayName: string;
23625
+ orderBy: {
23626
+ fieldId: string;
23627
+ order: "asc" | "desc" | null;
23628
+ }[] | null;
23629
+ partitionBy: string[] | null;
23630
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
23631
+ frame: {
23632
+ start: {
23633
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
23634
+ offset: number | null;
23635
+ } | null;
23636
+ end: {
23637
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
23638
+ offset: number | null;
23639
+ };
23640
+ frameType: "rows" | "range";
23641
+ } | null;
21750
23642
  })[] | null;
21751
23643
  type: AiResultType.TABLE_RESULT;
21752
23644
  description: string;
@@ -21999,6 +23891,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
21999
23891
  fieldId: string;
22000
23892
  type: "percent_of_column_total";
22001
23893
  displayName: string;
23894
+ partitionBy: string[] | null;
22002
23895
  } | {
22003
23896
  name: string;
22004
23897
  fieldId: string;
@@ -22009,6 +23902,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
22009
23902
  fieldId: string;
22010
23903
  type: "running_total";
22011
23904
  displayName: string;
23905
+ } | {
23906
+ name: string;
23907
+ fieldId: string | null;
23908
+ type: "window_function";
23909
+ displayName: string;
23910
+ orderBy: {
23911
+ fieldId: string;
23912
+ order: "asc" | "desc" | null;
23913
+ }[] | null;
23914
+ partitionBy: string[] | null;
23915
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
23916
+ frame: {
23917
+ start: {
23918
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
23919
+ offset: number | null;
23920
+ } | null;
23921
+ end: {
23922
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
23923
+ offset: number | null;
23924
+ };
23925
+ frameType: "rows" | "range";
23926
+ } | null;
22012
23927
  })[] | null;
22013
23928
  type: AiResultType.TIME_SERIES_RESULT;
22014
23929
  description: string;
@@ -22265,6 +24180,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
22265
24180
  fieldId: string;
22266
24181
  type: "percent_of_column_total";
22267
24182
  displayName: string;
24183
+ partitionBy: string[] | null;
22268
24184
  } | {
22269
24185
  name: string;
22270
24186
  fieldId: string;
@@ -22275,6 +24191,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
22275
24191
  fieldId: string;
22276
24192
  type: "running_total";
22277
24193
  displayName: string;
24194
+ } | {
24195
+ name: string;
24196
+ fieldId: string | null;
24197
+ type: "window_function";
24198
+ displayName: string;
24199
+ orderBy: {
24200
+ fieldId: string;
24201
+ order: "asc" | "desc" | null;
24202
+ }[] | null;
24203
+ partitionBy: string[] | null;
24204
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
24205
+ frame: {
24206
+ start: {
24207
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
24208
+ offset: number | null;
24209
+ } | null;
24210
+ end: {
24211
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
24212
+ offset: number | null;
24213
+ };
24214
+ frameType: "rows" | "range";
24215
+ } | null;
22278
24216
  })[] | null;
22279
24217
  type: AiResultType.VERTICAL_BAR_RESULT;
22280
24218
  description: string;
@@ -22538,6 +24476,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
22538
24476
  fieldId: string;
22539
24477
  type: "percent_of_column_total";
22540
24478
  displayName: string;
24479
+ partitionBy: string[] | null;
22541
24480
  } | {
22542
24481
  name: string;
22543
24482
  fieldId: string;
@@ -22548,6 +24487,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
22548
24487
  fieldId: string;
22549
24488
  type: "running_total";
22550
24489
  displayName: string;
24490
+ } | {
24491
+ name: string;
24492
+ fieldId: string | null;
24493
+ type: "window_function";
24494
+ displayName: string;
24495
+ orderBy: {
24496
+ fieldId: string;
24497
+ order: "asc" | "desc" | null;
24498
+ }[] | null;
24499
+ partitionBy: string[] | null;
24500
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
24501
+ frame: {
24502
+ start: {
24503
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
24504
+ offset: number | null;
24505
+ } | null;
24506
+ end: {
24507
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
24508
+ offset: number | null;
24509
+ };
24510
+ frameType: "rows" | "range";
24511
+ } | null;
22551
24512
  })[] | null;
22552
24513
  type: AiResultType.TABLE_RESULT;
22553
24514
  description: string;
@@ -22801,6 +24762,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
22801
24762
  fieldId: string;
22802
24763
  type: "percent_of_column_total";
22803
24764
  displayName: string;
24765
+ partitionBy: string[] | null;
22804
24766
  } | {
22805
24767
  name: string;
22806
24768
  fieldId: string;
@@ -22811,6 +24773,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
22811
24773
  fieldId: string;
22812
24774
  type: "running_total";
22813
24775
  displayName: string;
24776
+ } | {
24777
+ name: string;
24778
+ fieldId: string | null;
24779
+ type: "window_function";
24780
+ displayName: string;
24781
+ orderBy: {
24782
+ fieldId: string;
24783
+ order: "asc" | "desc" | null;
24784
+ }[] | null;
24785
+ partitionBy: string[] | null;
24786
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
24787
+ frame: {
24788
+ start: {
24789
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
24790
+ offset: number | null;
24791
+ } | null;
24792
+ end: {
24793
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
24794
+ offset: number | null;
24795
+ };
24796
+ frameType: "rows" | "range";
24797
+ } | null;
22814
24798
  })[] | null;
22815
24799
  type: AiResultType.TIME_SERIES_RESULT;
22816
24800
  description: string;
@@ -23068,6 +25052,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
23068
25052
  fieldId: string;
23069
25053
  type: "percent_of_column_total";
23070
25054
  displayName: string;
25055
+ partitionBy: string[] | null;
23071
25056
  } | {
23072
25057
  name: string;
23073
25058
  fieldId: string;
@@ -23078,6 +25063,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
23078
25063
  fieldId: string;
23079
25064
  type: "running_total";
23080
25065
  displayName: string;
25066
+ } | {
25067
+ name: string;
25068
+ fieldId: string | null;
25069
+ type: "window_function";
25070
+ displayName: string;
25071
+ orderBy: {
25072
+ fieldId: string;
25073
+ order: "asc" | "desc" | null;
25074
+ }[] | null;
25075
+ partitionBy: string[] | null;
25076
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
25077
+ frame: {
25078
+ start: {
25079
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
25080
+ offset: number | null;
25081
+ } | null;
25082
+ end: {
25083
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
25084
+ offset: number | null;
25085
+ };
25086
+ frameType: "rows" | "range";
25087
+ } | null;
23081
25088
  })[] | null;
23082
25089
  type: AiResultType.VERTICAL_BAR_RESULT;
23083
25090
  description: string;
@@ -23340,6 +25347,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
23340
25347
  fieldId: string;
23341
25348
  type: "percent_of_column_total";
23342
25349
  displayName: string;
25350
+ partitionBy: string[] | null;
23343
25351
  } | {
23344
25352
  name: string;
23345
25353
  fieldId: string;
@@ -23350,6 +25358,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
23350
25358
  fieldId: string;
23351
25359
  type: "running_total";
23352
25360
  displayName: string;
25361
+ } | {
25362
+ name: string;
25363
+ fieldId: string | null;
25364
+ type: "window_function";
25365
+ displayName: string;
25366
+ orderBy: {
25367
+ fieldId: string;
25368
+ order: "asc" | "desc" | null;
25369
+ }[] | null;
25370
+ partitionBy: string[] | null;
25371
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
25372
+ frame: {
25373
+ start: {
25374
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
25375
+ offset: number | null;
25376
+ } | null;
25377
+ end: {
25378
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
25379
+ offset: number | null;
25380
+ };
25381
+ frameType: "rows" | "range";
25382
+ } | null;
23353
25383
  })[] | null;
23354
25384
  type: AiResultType.TABLE_RESULT;
23355
25385
  description: string;
@@ -23602,6 +25632,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
23602
25632
  fieldId: string;
23603
25633
  type: "percent_of_column_total";
23604
25634
  displayName: string;
25635
+ partitionBy: string[] | null;
23605
25636
  } | {
23606
25637
  name: string;
23607
25638
  fieldId: string;
@@ -23612,6 +25643,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
23612
25643
  fieldId: string;
23613
25644
  type: "running_total";
23614
25645
  displayName: string;
25646
+ } | {
25647
+ name: string;
25648
+ fieldId: string | null;
25649
+ type: "window_function";
25650
+ displayName: string;
25651
+ orderBy: {
25652
+ fieldId: string;
25653
+ order: "asc" | "desc" | null;
25654
+ }[] | null;
25655
+ partitionBy: string[] | null;
25656
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
25657
+ frame: {
25658
+ start: {
25659
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
25660
+ offset: number | null;
25661
+ } | null;
25662
+ end: {
25663
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
25664
+ offset: number | null;
25665
+ };
25666
+ frameType: "rows" | "range";
25667
+ } | null;
23615
25668
  })[] | null;
23616
25669
  type: AiResultType.TIME_SERIES_RESULT;
23617
25670
  description: string;
@@ -23868,6 +25921,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
23868
25921
  fieldId: string;
23869
25922
  type: "percent_of_column_total";
23870
25923
  displayName: string;
25924
+ partitionBy: string[] | null;
23871
25925
  } | {
23872
25926
  name: string;
23873
25927
  fieldId: string;
@@ -23878,6 +25932,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
23878
25932
  fieldId: string;
23879
25933
  type: "running_total";
23880
25934
  displayName: string;
25935
+ } | {
25936
+ name: string;
25937
+ fieldId: string | null;
25938
+ type: "window_function";
25939
+ displayName: string;
25940
+ orderBy: {
25941
+ fieldId: string;
25942
+ order: "asc" | "desc" | null;
25943
+ }[] | null;
25944
+ partitionBy: string[] | null;
25945
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
25946
+ frame: {
25947
+ start: {
25948
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
25949
+ offset: number | null;
25950
+ } | null;
25951
+ end: {
25952
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
25953
+ offset: number | null;
25954
+ };
25955
+ frameType: "rows" | "range";
25956
+ } | null;
23881
25957
  })[] | null;
23882
25958
  type: AiResultType.VERTICAL_BAR_RESULT;
23883
25959
  description: string;
@@ -24138,6 +26214,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24138
26214
  fieldId: string;
24139
26215
  type: "percent_of_column_total";
24140
26216
  displayName: string;
26217
+ partitionBy: string[] | null;
24141
26218
  } | {
24142
26219
  name: string;
24143
26220
  fieldId: string;
@@ -24148,6 +26225,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24148
26225
  fieldId: string;
24149
26226
  type: "running_total";
24150
26227
  displayName: string;
26228
+ } | {
26229
+ name: string;
26230
+ fieldId: string | null;
26231
+ type: "window_function";
26232
+ displayName: string;
26233
+ orderBy: {
26234
+ fieldId: string;
26235
+ order: "asc" | "desc" | null;
26236
+ }[] | null;
26237
+ partitionBy: string[] | null;
26238
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
26239
+ frame: {
26240
+ start: {
26241
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
26242
+ offset: number | null;
26243
+ } | null;
26244
+ end: {
26245
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
26246
+ offset: number | null;
26247
+ };
26248
+ frameType: "rows" | "range";
26249
+ } | null;
24151
26250
  })[] | null;
24152
26251
  type: AiResultType.TABLE_RESULT;
24153
26252
  description: string;
@@ -24197,6 +26296,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24197
26296
  fieldId: string;
24198
26297
  type: "percent_of_column_total";
24199
26298
  displayName: string;
26299
+ partitionBy: string[] | null;
24200
26300
  } | {
24201
26301
  name: string;
24202
26302
  fieldId: string;
@@ -24207,6 +26307,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24207
26307
  fieldId: string;
24208
26308
  type: "running_total";
24209
26309
  displayName: string;
26310
+ } | {
26311
+ name: string;
26312
+ fieldId: string | null;
26313
+ type: "window_function";
26314
+ displayName: string;
26315
+ orderBy: {
26316
+ fieldId: string;
26317
+ order: "asc" | "desc" | null;
26318
+ }[] | null;
26319
+ partitionBy: string[] | null;
26320
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
26321
+ frame: {
26322
+ start: {
26323
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
26324
+ offset: number | null;
26325
+ } | null;
26326
+ end: {
26327
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
26328
+ offset: number | null;
26329
+ };
26330
+ frameType: "rows" | "range";
26331
+ } | null;
24210
26332
  })[] | null;
24211
26333
  type: AiResultType.TIME_SERIES_RESULT;
24212
26334
  description: string;
@@ -24260,6 +26382,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24260
26382
  fieldId: string;
24261
26383
  type: "percent_of_column_total";
24262
26384
  displayName: string;
26385
+ partitionBy: string[] | null;
24263
26386
  } | {
24264
26387
  name: string;
24265
26388
  fieldId: string;
@@ -24270,6 +26393,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24270
26393
  fieldId: string;
24271
26394
  type: "running_total";
24272
26395
  displayName: string;
26396
+ } | {
26397
+ name: string;
26398
+ fieldId: string | null;
26399
+ type: "window_function";
26400
+ displayName: string;
26401
+ orderBy: {
26402
+ fieldId: string;
26403
+ order: "asc" | "desc" | null;
26404
+ }[] | null;
26405
+ partitionBy: string[] | null;
26406
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
26407
+ frame: {
26408
+ start: {
26409
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
26410
+ offset: number | null;
26411
+ } | null;
26412
+ end: {
26413
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
26414
+ offset: number | null;
26415
+ };
26416
+ frameType: "rows" | "range";
26417
+ } | null;
24273
26418
  })[] | null;
24274
26419
  type: AiResultType.VERTICAL_BAR_RESULT;
24275
26420
  description: string;
@@ -24331,6 +26476,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24331
26476
  fieldId: string;
24332
26477
  type: "percent_of_column_total";
24333
26478
  displayName: string;
26479
+ partitionBy: string[] | null;
24334
26480
  } | {
24335
26481
  name: string;
24336
26482
  fieldId: string;
@@ -24341,6 +26487,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24341
26487
  fieldId: string;
24342
26488
  type: "running_total";
24343
26489
  displayName: string;
26490
+ } | {
26491
+ name: string;
26492
+ fieldId: string | null;
26493
+ type: "window_function";
26494
+ displayName: string;
26495
+ orderBy: {
26496
+ fieldId: string;
26497
+ order: "asc" | "desc" | null;
26498
+ }[] | null;
26499
+ partitionBy: string[] | null;
26500
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
26501
+ frame: {
26502
+ start: {
26503
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
26504
+ offset: number | null;
26505
+ } | null;
26506
+ end: {
26507
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
26508
+ offset: number | null;
26509
+ };
26510
+ frameType: "rows" | "range";
26511
+ } | null;
24344
26512
  })[] | null;
24345
26513
  type: AiResultType.TABLE_RESULT;
24346
26514
  description: string;
@@ -24593,6 +26761,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24593
26761
  fieldId: string;
24594
26762
  type: "percent_of_column_total";
24595
26763
  displayName: string;
26764
+ partitionBy: string[] | null;
24596
26765
  } | {
24597
26766
  name: string;
24598
26767
  fieldId: string;
@@ -24603,6 +26772,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24603
26772
  fieldId: string;
24604
26773
  type: "running_total";
24605
26774
  displayName: string;
26775
+ } | {
26776
+ name: string;
26777
+ fieldId: string | null;
26778
+ type: "window_function";
26779
+ displayName: string;
26780
+ orderBy: {
26781
+ fieldId: string;
26782
+ order: "asc" | "desc" | null;
26783
+ }[] | null;
26784
+ partitionBy: string[] | null;
26785
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
26786
+ frame: {
26787
+ start: {
26788
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
26789
+ offset: number | null;
26790
+ } | null;
26791
+ end: {
26792
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
26793
+ offset: number | null;
26794
+ };
26795
+ frameType: "rows" | "range";
26796
+ } | null;
24606
26797
  })[] | null;
24607
26798
  type: AiResultType.TIME_SERIES_RESULT;
24608
26799
  description: string;
@@ -24859,6 +27050,7 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24859
27050
  fieldId: string;
24860
27051
  type: "percent_of_column_total";
24861
27052
  displayName: string;
27053
+ partitionBy: string[] | null;
24862
27054
  } | {
24863
27055
  name: string;
24864
27056
  fieldId: string;
@@ -24869,6 +27061,28 @@ export declare const toolDashboardArgsSchemaTransformed: z.ZodEffects<z.ZodObjec
24869
27061
  fieldId: string;
24870
27062
  type: "running_total";
24871
27063
  displayName: string;
27064
+ } | {
27065
+ name: string;
27066
+ fieldId: string | null;
27067
+ type: "window_function";
27068
+ displayName: string;
27069
+ orderBy: {
27070
+ fieldId: string;
27071
+ order: "asc" | "desc" | null;
27072
+ }[] | null;
27073
+ partitionBy: string[] | null;
27074
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
27075
+ frame: {
27076
+ start: {
27077
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
27078
+ offset: number | null;
27079
+ } | null;
27080
+ end: {
27081
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
27082
+ offset: number | null;
27083
+ };
27084
+ frameType: "rows" | "range";
27085
+ } | null;
24872
27086
  })[] | null;
24873
27087
  type: AiResultType.VERTICAL_BAR_RESULT;
24874
27088
  description: string;