@lightdash/common 3.123.0 → 3.125.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +25 -25
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +68 -68
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +56 -56
- package/dist/cjs/ee/AiAgent/utils.d.ts +28 -28
- package/dist/cjs/schemas/chartAsCodeSchema.d.ts +35 -35
- package/dist/cjs/types/api.d.ts +11 -1
- package/dist/cjs/types/api.d.ts.map +1 -1
- package/dist/cjs/types/api.js.map +1 -1
- package/dist/cjs/types/contentAsCode/base.d.ts +4 -0
- package/dist/cjs/types/contentAsCode/base.d.ts.map +1 -1
- package/dist/cjs/types/dashboard.d.ts +3 -0
- package/dist/cjs/types/dashboard.d.ts.map +1 -1
- package/dist/cjs/types/dashboard.js.map +1 -1
- package/dist/cjs/types/savedCharts.d.ts +3 -0
- package/dist/cjs/types/savedCharts.d.ts.map +1 -1
- package/dist/cjs/types/savedCharts.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +28 -28
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +68 -68
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +56 -56
- package/dist/esm/ee/AiAgent/utils.d.ts +13 -13
- package/dist/esm/schemas/chartAsCodeSchema.d.ts +35 -35
- package/dist/esm/types/api.d.ts +11 -1
- package/dist/esm/types/api.d.ts.map +1 -1
- package/dist/esm/types/api.js.map +1 -1
- package/dist/esm/types/contentAsCode/base.d.ts +4 -0
- package/dist/esm/types/contentAsCode/base.d.ts.map +1 -1
- package/dist/esm/types/dashboard.d.ts +3 -0
- package/dist/esm/types/dashboard.d.ts.map +1 -1
- package/dist/esm/types/dashboard.js.map +1 -1
- package/dist/esm/types/savedCharts.d.ts +3 -0
- package/dist/esm/types/savedCharts.d.ts.map +1 -1
- package/dist/esm/types/savedCharts.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +28 -28
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +68 -68
- package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +56 -56
- package/dist/types/ee/AiAgent/utils.d.ts +13 -13
- package/dist/types/schemas/chartAsCodeSchema.d.ts +35 -35
- package/dist/types/types/api.d.ts +11 -1
- package/dist/types/types/api.d.ts.map +1 -1
- package/dist/types/types/api.js.map +1 -1
- package/dist/types/types/contentAsCode/base.d.ts +4 -0
- package/dist/types/types/contentAsCode/base.d.ts.map +1 -1
- package/dist/types/types/dashboard.d.ts +3 -0
- package/dist/types/types/dashboard.d.ts.map +1 -1
- package/dist/types/types/dashboard.js.map +1 -1
- package/dist/types/types/savedCharts.d.ts +3 -0
- package/dist/types/types/savedCharts.d.ts.map +1 -1
- package/dist/types/types/savedCharts.js.map +1 -1
- package/package.json +1 -1
|
@@ -27,31 +27,18 @@ export declare const getWebAiChartConfig: ({ vizConfig, metricQuery, maxQueryLim
|
|
|
27
27
|
tableCalculations: ({
|
|
28
28
|
name: string;
|
|
29
29
|
displayName: string;
|
|
30
|
-
type: "
|
|
30
|
+
type: "percent_change_from_previous";
|
|
31
31
|
fieldId: string;
|
|
32
|
-
partitionBy: string[] | null;
|
|
33
|
-
} | {
|
|
34
|
-
name: string;
|
|
35
|
-
displayName: string;
|
|
36
|
-
type: "window_function";
|
|
37
|
-
windowFunction: import("../../../..").WindowFunctionType;
|
|
38
|
-
fieldId: string | null;
|
|
39
32
|
orderBy: {
|
|
40
33
|
fieldId: string;
|
|
41
34
|
order: "asc" | "desc" | null;
|
|
42
|
-
}[]
|
|
35
|
+
}[];
|
|
43
36
|
partitionBy: string[] | null;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} | null;
|
|
50
|
-
end: {
|
|
51
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
52
|
-
offset: number | null;
|
|
53
|
-
};
|
|
54
|
-
} | null;
|
|
37
|
+
} | {
|
|
38
|
+
name: string;
|
|
39
|
+
displayName: string;
|
|
40
|
+
type: "running_total";
|
|
41
|
+
fieldId: string;
|
|
55
42
|
} | {
|
|
56
43
|
name: string;
|
|
57
44
|
displayName: string;
|
|
@@ -62,7 +49,7 @@ export declare const getWebAiChartConfig: ({ vizConfig, metricQuery, maxQueryLim
|
|
|
62
49
|
} | {
|
|
63
50
|
name: string;
|
|
64
51
|
displayName: string;
|
|
65
|
-
type: "
|
|
52
|
+
type: "percent_of_previous_value";
|
|
66
53
|
fieldId: string;
|
|
67
54
|
orderBy: {
|
|
68
55
|
fieldId: string;
|
|
@@ -72,12 +59,8 @@ export declare const getWebAiChartConfig: ({ vizConfig, metricQuery, maxQueryLim
|
|
|
72
59
|
} | {
|
|
73
60
|
name: string;
|
|
74
61
|
displayName: string;
|
|
75
|
-
type: "
|
|
62
|
+
type: "percent_of_column_total";
|
|
76
63
|
fieldId: string;
|
|
77
|
-
orderBy: {
|
|
78
|
-
fieldId: string;
|
|
79
|
-
order: "asc" | "desc" | null;
|
|
80
|
-
}[];
|
|
81
64
|
partitionBy: string[] | null;
|
|
82
65
|
} | {
|
|
83
66
|
name: string;
|
|
@@ -87,8 +70,25 @@ export declare const getWebAiChartConfig: ({ vizConfig, metricQuery, maxQueryLim
|
|
|
87
70
|
} | {
|
|
88
71
|
name: string;
|
|
89
72
|
displayName: string;
|
|
90
|
-
type: "
|
|
91
|
-
|
|
73
|
+
type: "window_function";
|
|
74
|
+
windowFunction: import("../../../..").WindowFunctionType;
|
|
75
|
+
fieldId: string | null;
|
|
76
|
+
orderBy: {
|
|
77
|
+
fieldId: string;
|
|
78
|
+
order: "asc" | "desc" | null;
|
|
79
|
+
}[] | null;
|
|
80
|
+
partitionBy: string[] | null;
|
|
81
|
+
frame: {
|
|
82
|
+
frameType: "range" | "rows";
|
|
83
|
+
start: {
|
|
84
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
85
|
+
offset: number | null;
|
|
86
|
+
} | null;
|
|
87
|
+
end: {
|
|
88
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
89
|
+
offset: number | null;
|
|
90
|
+
};
|
|
91
|
+
} | null;
|
|
92
92
|
})[] | null;
|
|
93
93
|
filters: import("../../../..").Filters;
|
|
94
94
|
};
|
|
@@ -2252,31 +2252,18 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2252
2252
|
tableCalculations: ({
|
|
2253
2253
|
name: string;
|
|
2254
2254
|
displayName: string;
|
|
2255
|
-
type: "
|
|
2255
|
+
type: "percent_change_from_previous";
|
|
2256
2256
|
fieldId: string;
|
|
2257
|
-
partitionBy: string[] | null;
|
|
2258
|
-
} | {
|
|
2259
|
-
name: string;
|
|
2260
|
-
displayName: string;
|
|
2261
|
-
type: "window_function";
|
|
2262
|
-
windowFunction: import("../../../..").WindowFunctionType;
|
|
2263
|
-
fieldId: string | null;
|
|
2264
2257
|
orderBy: {
|
|
2265
2258
|
fieldId: string;
|
|
2266
2259
|
order: "asc" | "desc" | null;
|
|
2267
|
-
}[]
|
|
2260
|
+
}[];
|
|
2268
2261
|
partitionBy: string[] | null;
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
} | null;
|
|
2275
|
-
end: {
|
|
2276
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
2277
|
-
offset: number | null;
|
|
2278
|
-
};
|
|
2279
|
-
} | null;
|
|
2262
|
+
} | {
|
|
2263
|
+
name: string;
|
|
2264
|
+
displayName: string;
|
|
2265
|
+
type: "running_total";
|
|
2266
|
+
fieldId: string;
|
|
2280
2267
|
} | {
|
|
2281
2268
|
name: string;
|
|
2282
2269
|
displayName: string;
|
|
@@ -2287,7 +2274,7 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2287
2274
|
} | {
|
|
2288
2275
|
name: string;
|
|
2289
2276
|
displayName: string;
|
|
2290
|
-
type: "
|
|
2277
|
+
type: "percent_of_previous_value";
|
|
2291
2278
|
fieldId: string;
|
|
2292
2279
|
orderBy: {
|
|
2293
2280
|
fieldId: string;
|
|
@@ -2297,12 +2284,8 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2297
2284
|
} | {
|
|
2298
2285
|
name: string;
|
|
2299
2286
|
displayName: string;
|
|
2300
|
-
type: "
|
|
2287
|
+
type: "percent_of_column_total";
|
|
2301
2288
|
fieldId: string;
|
|
2302
|
-
orderBy: {
|
|
2303
|
-
fieldId: string;
|
|
2304
|
-
order: "asc" | "desc" | null;
|
|
2305
|
-
}[];
|
|
2306
2289
|
partitionBy: string[] | null;
|
|
2307
2290
|
} | {
|
|
2308
2291
|
name: string;
|
|
@@ -2312,8 +2295,25 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2312
2295
|
} | {
|
|
2313
2296
|
name: string;
|
|
2314
2297
|
displayName: string;
|
|
2315
|
-
type: "
|
|
2316
|
-
|
|
2298
|
+
type: "window_function";
|
|
2299
|
+
windowFunction: import("../../../..").WindowFunctionType;
|
|
2300
|
+
fieldId: string | null;
|
|
2301
|
+
orderBy: {
|
|
2302
|
+
fieldId: string;
|
|
2303
|
+
order: "asc" | "desc" | null;
|
|
2304
|
+
}[] | null;
|
|
2305
|
+
partitionBy: string[] | null;
|
|
2306
|
+
frame: {
|
|
2307
|
+
frameType: "range" | "rows";
|
|
2308
|
+
start: {
|
|
2309
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
2310
|
+
offset: number | null;
|
|
2311
|
+
} | null;
|
|
2312
|
+
end: {
|
|
2313
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
2314
|
+
offset: number | null;
|
|
2315
|
+
};
|
|
2316
|
+
} | null;
|
|
2317
2317
|
})[] | null;
|
|
2318
2318
|
filters: import("../../../..").Filters;
|
|
2319
2319
|
};
|
|
@@ -2383,6 +2383,12 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2383
2383
|
limit: number | null;
|
|
2384
2384
|
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
2385
2385
|
customMetrics: ({
|
|
2386
|
+
kind: "periodComparison";
|
|
2387
|
+
baseMetricId: string;
|
|
2388
|
+
timeDimensionId: string;
|
|
2389
|
+
granularity: import("../../../..").TimeFrames;
|
|
2390
|
+
periodOffset: number;
|
|
2391
|
+
} | {
|
|
2386
2392
|
kind: "aggregation";
|
|
2387
2393
|
name: string;
|
|
2388
2394
|
label: string;
|
|
@@ -2484,41 +2490,22 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2484
2490
|
};
|
|
2485
2491
|
table: string;
|
|
2486
2492
|
}[] | null;
|
|
2487
|
-
} | {
|
|
2488
|
-
kind: "periodComparison";
|
|
2489
|
-
baseMetricId: string;
|
|
2490
|
-
timeDimensionId: string;
|
|
2491
|
-
granularity: import("../../../..").TimeFrames;
|
|
2492
|
-
periodOffset: number;
|
|
2493
2493
|
})[] | null;
|
|
2494
2494
|
tableCalculations: ({
|
|
2495
2495
|
name: string;
|
|
2496
2496
|
displayName: string;
|
|
2497
|
-
type: "
|
|
2497
|
+
type: "percent_change_from_previous";
|
|
2498
2498
|
fieldId: string;
|
|
2499
|
-
partitionBy: string[] | null;
|
|
2500
|
-
} | {
|
|
2501
|
-
name: string;
|
|
2502
|
-
displayName: string;
|
|
2503
|
-
type: "window_function";
|
|
2504
|
-
windowFunction: import("../../../..").WindowFunctionType;
|
|
2505
|
-
fieldId: string | null;
|
|
2506
2499
|
orderBy: {
|
|
2507
2500
|
fieldId: string;
|
|
2508
2501
|
order: "asc" | "desc" | null;
|
|
2509
|
-
}[]
|
|
2502
|
+
}[];
|
|
2510
2503
|
partitionBy: string[] | null;
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
} | null;
|
|
2517
|
-
end: {
|
|
2518
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
2519
|
-
offset: number | null;
|
|
2520
|
-
};
|
|
2521
|
-
} | null;
|
|
2504
|
+
} | {
|
|
2505
|
+
name: string;
|
|
2506
|
+
displayName: string;
|
|
2507
|
+
type: "running_total";
|
|
2508
|
+
fieldId: string;
|
|
2522
2509
|
} | {
|
|
2523
2510
|
name: string;
|
|
2524
2511
|
displayName: string;
|
|
@@ -2529,7 +2516,7 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2529
2516
|
} | {
|
|
2530
2517
|
name: string;
|
|
2531
2518
|
displayName: string;
|
|
2532
|
-
type: "
|
|
2519
|
+
type: "percent_of_previous_value";
|
|
2533
2520
|
fieldId: string;
|
|
2534
2521
|
orderBy: {
|
|
2535
2522
|
fieldId: string;
|
|
@@ -2539,12 +2526,8 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2539
2526
|
} | {
|
|
2540
2527
|
name: string;
|
|
2541
2528
|
displayName: string;
|
|
2542
|
-
type: "
|
|
2529
|
+
type: "percent_of_column_total";
|
|
2543
2530
|
fieldId: string;
|
|
2544
|
-
orderBy: {
|
|
2545
|
-
fieldId: string;
|
|
2546
|
-
order: "asc" | "desc" | null;
|
|
2547
|
-
}[];
|
|
2548
2531
|
partitionBy: string[] | null;
|
|
2549
2532
|
} | {
|
|
2550
2533
|
name: string;
|
|
@@ -2554,8 +2537,25 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2554
2537
|
} | {
|
|
2555
2538
|
name: string;
|
|
2556
2539
|
displayName: string;
|
|
2557
|
-
type: "
|
|
2558
|
-
|
|
2540
|
+
type: "window_function";
|
|
2541
|
+
windowFunction: import("../../../..").WindowFunctionType;
|
|
2542
|
+
fieldId: string | null;
|
|
2543
|
+
orderBy: {
|
|
2544
|
+
fieldId: string;
|
|
2545
|
+
order: "asc" | "desc" | null;
|
|
2546
|
+
}[] | null;
|
|
2547
|
+
partitionBy: string[] | null;
|
|
2548
|
+
frame: {
|
|
2549
|
+
frameType: "range" | "rows";
|
|
2550
|
+
start: {
|
|
2551
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
2552
|
+
offset: number | null;
|
|
2553
|
+
} | null;
|
|
2554
|
+
end: {
|
|
2555
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
2556
|
+
offset: number | null;
|
|
2557
|
+
};
|
|
2558
|
+
} | null;
|
|
2559
2559
|
})[] | null;
|
|
2560
2560
|
filters: {
|
|
2561
2561
|
type: "and" | "or";
|
|
@@ -2802,6 +2802,12 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2802
2802
|
nullsFirst: boolean | null;
|
|
2803
2803
|
}[];
|
|
2804
2804
|
customMetrics: ({
|
|
2805
|
+
kind: "periodComparison";
|
|
2806
|
+
baseMetricId: string;
|
|
2807
|
+
timeDimensionId: string;
|
|
2808
|
+
granularity: import("../../../..").TimeFrames;
|
|
2809
|
+
periodOffset: number;
|
|
2810
|
+
} | {
|
|
2805
2811
|
kind: "aggregation";
|
|
2806
2812
|
name: string;
|
|
2807
2813
|
label: string;
|
|
@@ -2903,12 +2909,6 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
|
|
|
2903
2909
|
};
|
|
2904
2910
|
table: string;
|
|
2905
2911
|
}[] | null;
|
|
2906
|
-
} | {
|
|
2907
|
-
kind: "periodComparison";
|
|
2908
|
-
baseMetricId: string;
|
|
2909
|
-
timeDimensionId: string;
|
|
2910
|
-
granularity: import("../../../..").TimeFrames;
|
|
2911
|
-
periodOffset: number;
|
|
2912
2912
|
})[] | null;
|
|
2913
2913
|
filters: {
|
|
2914
2914
|
type: "and" | "or";
|
|
@@ -981,13 +981,31 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
981
981
|
tableCalculations: ({
|
|
982
982
|
name: string;
|
|
983
983
|
displayName: string;
|
|
984
|
-
type: "
|
|
984
|
+
type: "percent_of_column_total";
|
|
985
985
|
fieldId: string;
|
|
986
|
+
partitionBy: string[] | null;
|
|
987
|
+
} | {
|
|
988
|
+
name: string;
|
|
989
|
+
displayName: string;
|
|
990
|
+
type: "window_function";
|
|
991
|
+
windowFunction: import("../../../..").WindowFunctionType;
|
|
992
|
+
fieldId: string | null;
|
|
986
993
|
orderBy: {
|
|
987
994
|
fieldId: string;
|
|
988
995
|
order: "asc" | "desc" | null;
|
|
989
|
-
}[];
|
|
996
|
+
}[] | null;
|
|
990
997
|
partitionBy: string[] | null;
|
|
998
|
+
frame: {
|
|
999
|
+
frameType: "range" | "rows";
|
|
1000
|
+
start: {
|
|
1001
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1002
|
+
offset: number | null;
|
|
1003
|
+
} | null;
|
|
1004
|
+
end: {
|
|
1005
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1006
|
+
offset: number | null;
|
|
1007
|
+
};
|
|
1008
|
+
} | null;
|
|
991
1009
|
} | {
|
|
992
1010
|
name: string;
|
|
993
1011
|
displayName: string;
|
|
@@ -1008,8 +1026,12 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1008
1026
|
} | {
|
|
1009
1027
|
name: string;
|
|
1010
1028
|
displayName: string;
|
|
1011
|
-
type: "
|
|
1029
|
+
type: "percent_of_previous_value";
|
|
1012
1030
|
fieldId: string;
|
|
1031
|
+
orderBy: {
|
|
1032
|
+
fieldId: string;
|
|
1033
|
+
order: "asc" | "desc" | null;
|
|
1034
|
+
}[];
|
|
1013
1035
|
partitionBy: string[] | null;
|
|
1014
1036
|
} | {
|
|
1015
1037
|
name: string;
|
|
@@ -1021,28 +1043,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1021
1043
|
displayName: string;
|
|
1022
1044
|
type: "running_total";
|
|
1023
1045
|
fieldId: string;
|
|
1024
|
-
} | {
|
|
1025
|
-
name: string;
|
|
1026
|
-
displayName: string;
|
|
1027
|
-
type: "window_function";
|
|
1028
|
-
windowFunction: import("../../../..").WindowFunctionType;
|
|
1029
|
-
fieldId: string | null;
|
|
1030
|
-
orderBy: {
|
|
1031
|
-
fieldId: string;
|
|
1032
|
-
order: "asc" | "desc" | null;
|
|
1033
|
-
}[] | null;
|
|
1034
|
-
partitionBy: string[] | null;
|
|
1035
|
-
frame: {
|
|
1036
|
-
frameType: "range" | "rows";
|
|
1037
|
-
start: {
|
|
1038
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1039
|
-
offset: number | null;
|
|
1040
|
-
} | null;
|
|
1041
|
-
end: {
|
|
1042
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1043
|
-
offset: number | null;
|
|
1044
|
-
};
|
|
1045
|
-
} | null;
|
|
1046
1046
|
})[] | null;
|
|
1047
1047
|
customMetrics: TransformedCustomMetric[] | null;
|
|
1048
1048
|
filters: Filters;
|
|
@@ -1059,12 +1059,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1059
1059
|
limit: number | null;
|
|
1060
1060
|
};
|
|
1061
1061
|
customMetrics: ({
|
|
1062
|
-
kind: "periodComparison";
|
|
1063
|
-
baseMetricId: string;
|
|
1064
|
-
timeDimensionId: string;
|
|
1065
|
-
granularity: import("../../../..").TimeFrames;
|
|
1066
|
-
periodOffset: number;
|
|
1067
|
-
} | {
|
|
1068
1062
|
kind: "aggregation";
|
|
1069
1063
|
name: string;
|
|
1070
1064
|
label: string;
|
|
@@ -1166,17 +1160,41 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1166
1160
|
};
|
|
1167
1161
|
table: string;
|
|
1168
1162
|
}[] | null;
|
|
1163
|
+
} | {
|
|
1164
|
+
kind: "periodComparison";
|
|
1165
|
+
baseMetricId: string;
|
|
1166
|
+
timeDimensionId: string;
|
|
1167
|
+
granularity: import("../../../..").TimeFrames;
|
|
1168
|
+
periodOffset: number;
|
|
1169
1169
|
})[] | null;
|
|
1170
1170
|
tableCalculations: ({
|
|
1171
1171
|
name: string;
|
|
1172
1172
|
displayName: string;
|
|
1173
|
-
type: "
|
|
1173
|
+
type: "percent_of_column_total";
|
|
1174
1174
|
fieldId: string;
|
|
1175
|
+
partitionBy: string[] | null;
|
|
1176
|
+
} | {
|
|
1177
|
+
name: string;
|
|
1178
|
+
displayName: string;
|
|
1179
|
+
type: "window_function";
|
|
1180
|
+
windowFunction: import("../../../..").WindowFunctionType;
|
|
1181
|
+
fieldId: string | null;
|
|
1175
1182
|
orderBy: {
|
|
1176
1183
|
fieldId: string;
|
|
1177
1184
|
order: "asc" | "desc" | null;
|
|
1178
|
-
}[];
|
|
1185
|
+
}[] | null;
|
|
1179
1186
|
partitionBy: string[] | null;
|
|
1187
|
+
frame: {
|
|
1188
|
+
frameType: "range" | "rows";
|
|
1189
|
+
start: {
|
|
1190
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1191
|
+
offset: number | null;
|
|
1192
|
+
} | null;
|
|
1193
|
+
end: {
|
|
1194
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1195
|
+
offset: number | null;
|
|
1196
|
+
};
|
|
1197
|
+
} | null;
|
|
1180
1198
|
} | {
|
|
1181
1199
|
name: string;
|
|
1182
1200
|
displayName: string;
|
|
@@ -1197,8 +1215,12 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1197
1215
|
} | {
|
|
1198
1216
|
name: string;
|
|
1199
1217
|
displayName: string;
|
|
1200
|
-
type: "
|
|
1218
|
+
type: "percent_of_previous_value";
|
|
1201
1219
|
fieldId: string;
|
|
1220
|
+
orderBy: {
|
|
1221
|
+
fieldId: string;
|
|
1222
|
+
order: "asc" | "desc" | null;
|
|
1223
|
+
}[];
|
|
1202
1224
|
partitionBy: string[] | null;
|
|
1203
1225
|
} | {
|
|
1204
1226
|
name: string;
|
|
@@ -1210,28 +1232,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1210
1232
|
displayName: string;
|
|
1211
1233
|
type: "running_total";
|
|
1212
1234
|
fieldId: string;
|
|
1213
|
-
} | {
|
|
1214
|
-
name: string;
|
|
1215
|
-
displayName: string;
|
|
1216
|
-
type: "window_function";
|
|
1217
|
-
windowFunction: import("../../../..").WindowFunctionType;
|
|
1218
|
-
fieldId: string | null;
|
|
1219
|
-
orderBy: {
|
|
1220
|
-
fieldId: string;
|
|
1221
|
-
order: "asc" | "desc" | null;
|
|
1222
|
-
}[] | null;
|
|
1223
|
-
partitionBy: string[] | null;
|
|
1224
|
-
frame: {
|
|
1225
|
-
frameType: "range" | "rows";
|
|
1226
|
-
start: {
|
|
1227
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1228
|
-
offset: number | null;
|
|
1229
|
-
} | null;
|
|
1230
|
-
end: {
|
|
1231
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1232
|
-
offset: number | null;
|
|
1233
|
-
};
|
|
1234
|
-
} | null;
|
|
1235
1235
|
})[] | null;
|
|
1236
1236
|
filters: {
|
|
1237
1237
|
type: "and" | "or";
|
|
@@ -22,25 +22,25 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
|
22
22
|
tableCalculations: ({
|
|
23
23
|
name: string;
|
|
24
24
|
displayName: string;
|
|
25
|
-
type: "
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
order: "asc" | "desc" | null;
|
|
30
|
-
}[];
|
|
31
|
-
partitionBy: string[] | null;
|
|
25
|
+
type: "formula";
|
|
26
|
+
formula: string;
|
|
27
|
+
format: "number" | "percent" | null;
|
|
28
|
+
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
32
29
|
} | {
|
|
33
30
|
name: string;
|
|
34
31
|
displayName: string;
|
|
35
|
-
type: "
|
|
32
|
+
type: "rank_in_column";
|
|
36
33
|
fieldId: string;
|
|
37
34
|
} | {
|
|
38
35
|
name: string;
|
|
39
36
|
displayName: string;
|
|
40
|
-
type: "
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
type: "percent_change_from_previous";
|
|
38
|
+
fieldId: string;
|
|
39
|
+
orderBy: {
|
|
40
|
+
fieldId: string;
|
|
41
|
+
order: "asc" | "desc" | null;
|
|
42
|
+
}[];
|
|
43
|
+
partitionBy: string[] | null;
|
|
44
44
|
} | {
|
|
45
45
|
name: string;
|
|
46
46
|
displayName: string;
|
|
@@ -60,7 +60,7 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
|
60
60
|
} | {
|
|
61
61
|
name: string;
|
|
62
62
|
displayName: string;
|
|
63
|
-
type: "
|
|
63
|
+
type: "running_total";
|
|
64
64
|
fieldId: string;
|
|
65
65
|
} | {
|
|
66
66
|
name: string;
|