@adminforth/dashboard 1.11.1 → 1.12.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/README.md +43 -2
- package/custom/api/dashboardApi.ts +72 -10
- package/custom/model/dashboard.types.ts +6 -0
- package/custom/runtime/DashboardGroup.vue +15 -68
- package/custom/runtime/DashboardToolbarButton.vue +32 -0
- package/custom/runtime/DashboardToolbarIcon.vue +52 -0
- package/custom/runtime/WidgetShell.vue +15 -68
- package/custom/skills/adminforth-dashboard/SKILL.md +67 -13
- package/custom/widgets/chart/StackedBarChart.vue +64 -7
- package/dist/custom/api/dashboardApi.js +59 -10
- package/dist/custom/api/dashboardApi.ts +72 -10
- package/dist/custom/model/dashboard.types.d.ts +9 -0
- package/dist/custom/model/dashboard.types.ts +6 -0
- package/dist/custom/queries/useDashboardConfig.d.ts +80 -0
- package/dist/custom/queries/useWidgetData.d.ts +80 -0
- package/dist/custom/runtime/DashboardGroup.vue +15 -68
- package/dist/custom/runtime/DashboardToolbarButton.vue +32 -0
- package/dist/custom/runtime/DashboardToolbarIcon.vue +52 -0
- package/dist/custom/runtime/WidgetShell.vue +15 -68
- package/dist/custom/skills/adminforth-dashboard/SKILL.md +67 -13
- package/dist/custom/widgets/chart/StackedBarChart.vue +64 -7
- package/dist/schema/api.d.ts +742 -802
- package/dist/schema/api.js +2 -2
- package/dist/schema/widget.d.ts +75 -81
- package/dist/schema/widget.js +1 -1
- package/dist/schema/widgets/charts.d.ts +84 -160
- package/dist/schema/widgets/charts.js +2 -2
- package/dist/schema/widgets/common.d.ts +115 -0
- package/dist/schema/widgets/common.js +17 -1
- package/dist/schema/widgets/gauge-card.d.ts +8 -0
- package/dist/schema/widgets/kpi-card.d.ts +8 -0
- package/dist/schema/widgets/pivot-table.d.ts +8 -0
- package/dist/schema/widgets/table.d.ts +8 -0
- package/dist/services/widgetDataService.js +42 -0
- package/package.json +2 -2
- package/schema/api.ts +2 -1
- package/schema/widget.ts +2 -0
- package/schema/widgets/charts.ts +2 -1
- package/schema/widgets/common.ts +19 -1
- package/services/widgetDataService.ts +68 -0
package/dist/schema/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toJSONSchema, z } from 'zod';
|
|
2
|
-
import { BarChartSchema, FunnelChartSchema, GaugeCardViewConfigSchema, HistogramChartSchema, KpiCardViewConfigSchema, LineChartSchema, PieChartSchema, PivotTableViewConfigSchema, QueryConfigSchema, StackedBarChartSchema, TableViewConfigSchema, WidgetEditableBaseSchema, WidgetConfigSchema, } from './widget.js';
|
|
2
|
+
import { BarChartSchema, FunnelChartSchema, GaugeCardViewConfigSchema, HistogramResourceQueryConfigSchema, HistogramChartSchema, KpiCardViewConfigSchema, LineChartSchema, PieChartSchema, PivotTableViewConfigSchema, QueryConfigSchema, StackedBarChartSchema, TableViewConfigSchema, WidgetEditableBaseSchema, WidgetConfigSchema, } from './widget.js';
|
|
3
3
|
export const DashboardErrorResponseZodSchema = z.object({
|
|
4
4
|
error: z.string(),
|
|
5
5
|
validationErrors: z.array(z.object({
|
|
@@ -114,7 +114,7 @@ const ConfigurablePieChartWidgetConfigSchema = WidgetEditableBaseSchema.extend({
|
|
|
114
114
|
const ConfigurableHistogramChartWidgetConfigSchema = WidgetEditableBaseSchema.extend({
|
|
115
115
|
target: z.literal('chart'),
|
|
116
116
|
chart: HistogramChartSchema,
|
|
117
|
-
query:
|
|
117
|
+
query: HistogramResourceQueryConfigSchema,
|
|
118
118
|
});
|
|
119
119
|
const ConfigurableFunnelChartWidgetConfigSchema = WidgetEditableBaseSchema.extend({
|
|
120
120
|
target: z.literal('chart'),
|
package/dist/schema/widget.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { GaugeCardWidgetConfigSchema, GaugeCardViewConfigSchema, } from './widge
|
|
|
5
5
|
export { KpiCardViewConfigSchema, KpiCardWidgetConfigSchema, } from './widgets/kpi-card.js';
|
|
6
6
|
export { PivotTableViewConfigSchema, PivotTableWidgetConfigSchema, } from './widgets/pivot-table.js';
|
|
7
7
|
export { TableViewConfigSchema, TableWidgetConfigSchema, } from './widgets/table.js';
|
|
8
|
-
export { EmptyWidgetConfigSchema, QueryConfigSchema, WidgetEditableBaseSchema, } from './widgets/common.js';
|
|
8
|
+
export { EmptyWidgetConfigSchema, HistogramResourceQueryConfigSchema, QueryConfigSchema, ResourceQueryConfigSchema, WidgetEditableBaseSchema, } from './widgets/common.js';
|
|
9
9
|
export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
group_id: z.ZodString;
|
|
@@ -155,6 +155,14 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
155
155
|
}, z.core.$strict>>;
|
|
156
156
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
157
157
|
}, z.core.$strict>>;
|
|
158
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
field: z.ZodString;
|
|
160
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
161
|
+
label: z.ZodString;
|
|
162
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
}, z.core.$strict>>;
|
|
165
|
+
}, z.core.$strict>>;
|
|
158
166
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
159
167
|
calc: z.ZodString;
|
|
160
168
|
as: z.ZodString;
|
|
@@ -321,6 +329,14 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
321
329
|
}, z.core.$strict>>;
|
|
322
330
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
323
331
|
}, z.core.$strict>>;
|
|
332
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
333
|
+
field: z.ZodString;
|
|
334
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
335
|
+
label: z.ZodString;
|
|
336
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
337
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
338
|
+
}, z.core.$strict>>;
|
|
339
|
+
}, z.core.$strict>>;
|
|
324
340
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
325
341
|
calc: z.ZodString;
|
|
326
342
|
as: z.ZodString;
|
|
@@ -482,6 +498,14 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
482
498
|
}, z.core.$strict>>;
|
|
483
499
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
484
500
|
}, z.core.$strict>>;
|
|
501
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
502
|
+
field: z.ZodString;
|
|
503
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
504
|
+
label: z.ZodString;
|
|
505
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
506
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
507
|
+
}, z.core.$strict>>;
|
|
508
|
+
}, z.core.$strict>>;
|
|
485
509
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
486
510
|
calc: z.ZodString;
|
|
487
511
|
as: z.ZodString;
|
|
@@ -660,6 +684,14 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
660
684
|
}, z.core.$strict>>;
|
|
661
685
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
662
686
|
}, z.core.$strict>>;
|
|
687
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
688
|
+
field: z.ZodString;
|
|
689
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
690
|
+
label: z.ZodString;
|
|
691
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
692
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
693
|
+
}, z.core.$strict>>;
|
|
694
|
+
}, z.core.$strict>>;
|
|
663
695
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
664
696
|
calc: z.ZodString;
|
|
665
697
|
as: z.ZodString;
|
|
@@ -821,6 +853,14 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
821
853
|
}, z.core.$strict>>;
|
|
822
854
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
823
855
|
}, z.core.$strict>>;
|
|
856
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
857
|
+
field: z.ZodString;
|
|
858
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
859
|
+
label: z.ZodString;
|
|
860
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
861
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
862
|
+
}, z.core.$strict>>;
|
|
863
|
+
}, z.core.$strict>>;
|
|
824
864
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
825
865
|
calc: z.ZodString;
|
|
826
866
|
as: z.ZodString;
|
|
@@ -892,7 +932,7 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
892
932
|
}, z.core.$strict>>>;
|
|
893
933
|
color: z.ZodOptional<z.ZodString>;
|
|
894
934
|
}, z.core.$strict>;
|
|
895
|
-
query: z.
|
|
935
|
+
query: z.ZodObject<{
|
|
896
936
|
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
897
937
|
resource: z.ZodString;
|
|
898
938
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -904,46 +944,11 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
904
944
|
month: "month";
|
|
905
945
|
year: "year";
|
|
906
946
|
}>>;
|
|
907
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
908
|
-
agg: z.ZodEnum<{
|
|
909
|
-
sum: "sum";
|
|
910
|
-
count: "count";
|
|
911
|
-
count_distinct: "count_distinct";
|
|
912
|
-
avg: "avg";
|
|
913
|
-
min: "min";
|
|
914
|
-
max: "max";
|
|
915
|
-
median: "median";
|
|
916
|
-
}>;
|
|
917
|
-
field: z.ZodOptional<z.ZodString>;
|
|
918
|
-
as: z.ZodString;
|
|
919
|
-
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
920
947
|
}, z.core.$strict>, z.ZodObject<{
|
|
921
948
|
calc: z.ZodString;
|
|
922
949
|
as: z.ZodString;
|
|
923
950
|
}, z.core.$strict>]>>>;
|
|
924
|
-
sparkline: z.ZodOptional<z.ZodObject<{
|
|
925
|
-
field: z.ZodString;
|
|
926
|
-
grain: z.ZodEnum<{
|
|
927
|
-
day: "day";
|
|
928
|
-
week: "week";
|
|
929
|
-
month: "month";
|
|
930
|
-
year: "year";
|
|
931
|
-
}>;
|
|
932
|
-
as: z.ZodString;
|
|
933
|
-
fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
934
|
-
}, z.core.$strict>>;
|
|
935
951
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
936
|
-
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
937
|
-
field: z.ZodString;
|
|
938
|
-
as: z.ZodOptional<z.ZodString>;
|
|
939
|
-
grain: z.ZodOptional<z.ZodEnum<{
|
|
940
|
-
day: "day";
|
|
941
|
-
week: "week";
|
|
942
|
-
month: "month";
|
|
943
|
-
year: "year";
|
|
944
|
-
}>>;
|
|
945
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
946
|
-
}, z.core.$strict>]>>>;
|
|
947
952
|
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
948
953
|
field: z.ZodString;
|
|
949
954
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
@@ -953,55 +958,12 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
953
958
|
}, z.core.$strict>>>;
|
|
954
959
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
955
960
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
956
|
-
bucket: z.ZodOptional<z.ZodObject<{
|
|
957
|
-
field: z.ZodString;
|
|
958
|
-
buckets: z.ZodArray<z.ZodObject<{
|
|
959
|
-
label: z.ZodString;
|
|
960
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
961
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
962
|
-
}, z.core.$strict>>;
|
|
963
|
-
}, z.core.$strict>>;
|
|
964
|
-
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
965
|
-
calc: z.ZodString;
|
|
966
|
-
as: z.ZodString;
|
|
967
|
-
}, z.core.$strict>>>;
|
|
968
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
969
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
970
|
-
source: z.ZodLiteral<"steps">;
|
|
971
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
972
|
-
name: z.ZodString;
|
|
973
|
-
resource: z.ZodString;
|
|
974
|
-
select: z.ZodArray<z.ZodObject<{
|
|
975
|
-
agg: z.ZodEnum<{
|
|
976
|
-
sum: "sum";
|
|
977
|
-
count: "count";
|
|
978
|
-
count_distinct: "count_distinct";
|
|
979
|
-
avg: "avg";
|
|
980
|
-
min: "min";
|
|
981
|
-
max: "max";
|
|
982
|
-
median: "median";
|
|
983
|
-
}>;
|
|
984
|
-
field: z.ZodOptional<z.ZodString>;
|
|
985
|
-
as: z.ZodString;
|
|
986
|
-
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
987
|
-
}, z.core.$strict>>;
|
|
988
|
-
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
989
|
-
}, z.core.$strict>>;
|
|
990
961
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
991
962
|
calc: z.ZodString;
|
|
992
963
|
as: z.ZodString;
|
|
993
964
|
}, z.core.$strict>>>;
|
|
994
|
-
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
995
|
-
field: z.ZodString;
|
|
996
|
-
direction: z.ZodOptional<z.ZodEnum<{
|
|
997
|
-
asc: "asc";
|
|
998
|
-
desc: "desc";
|
|
999
|
-
}>>;
|
|
1000
|
-
}, z.core.$strict>>>;
|
|
1001
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
1002
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
1003
965
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1004
|
-
}, z.core.$strict
|
|
966
|
+
}, z.core.$strict>;
|
|
1005
967
|
}, z.core.$strict>, z.ZodObject<{
|
|
1006
968
|
id: z.ZodString;
|
|
1007
969
|
group_id: z.ZodString;
|
|
@@ -1148,6 +1110,14 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1148
1110
|
}, z.core.$strict>>;
|
|
1149
1111
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1150
1112
|
}, z.core.$strict>>;
|
|
1113
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1114
|
+
field: z.ZodString;
|
|
1115
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1116
|
+
label: z.ZodString;
|
|
1117
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1118
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1119
|
+
}, z.core.$strict>>;
|
|
1120
|
+
}, z.core.$strict>>;
|
|
1151
1121
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1152
1122
|
calc: z.ZodString;
|
|
1153
1123
|
as: z.ZodString;
|
|
@@ -1335,6 +1305,14 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1335
1305
|
}, z.core.$strict>>;
|
|
1336
1306
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1337
1307
|
}, z.core.$strict>>;
|
|
1308
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1309
|
+
field: z.ZodString;
|
|
1310
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1311
|
+
label: z.ZodString;
|
|
1312
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1313
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1314
|
+
}, z.core.$strict>>;
|
|
1315
|
+
}, z.core.$strict>>;
|
|
1338
1316
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1339
1317
|
calc: z.ZodString;
|
|
1340
1318
|
as: z.ZodString;
|
|
@@ -1502,6 +1480,14 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1502
1480
|
}, z.core.$strict>>;
|
|
1503
1481
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1504
1482
|
}, z.core.$strict>>;
|
|
1483
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1484
|
+
field: z.ZodString;
|
|
1485
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1486
|
+
label: z.ZodString;
|
|
1487
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1488
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1489
|
+
}, z.core.$strict>>;
|
|
1490
|
+
}, z.core.$strict>>;
|
|
1505
1491
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1506
1492
|
calc: z.ZodString;
|
|
1507
1493
|
as: z.ZodString;
|
|
@@ -1681,6 +1667,14 @@ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1681
1667
|
}, z.core.$strict>>;
|
|
1682
1668
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1683
1669
|
}, z.core.$strict>>;
|
|
1670
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1671
|
+
field: z.ZodString;
|
|
1672
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1673
|
+
label: z.ZodString;
|
|
1674
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1675
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1676
|
+
}, z.core.$strict>>;
|
|
1677
|
+
}, z.core.$strict>>;
|
|
1684
1678
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1685
1679
|
calc: z.ZodString;
|
|
1686
1680
|
as: z.ZodString;
|
package/dist/schema/widget.js
CHANGED
|
@@ -4,7 +4,7 @@ export { GaugeCardWidgetConfigSchema, GaugeCardViewConfigSchema, } from './widge
|
|
|
4
4
|
export { KpiCardViewConfigSchema, KpiCardWidgetConfigSchema, } from './widgets/kpi-card.js';
|
|
5
5
|
export { PivotTableViewConfigSchema, PivotTableWidgetConfigSchema, } from './widgets/pivot-table.js';
|
|
6
6
|
export { TableViewConfigSchema, TableWidgetConfigSchema, } from './widgets/table.js';
|
|
7
|
-
export { EmptyWidgetConfigSchema, QueryConfigSchema, WidgetEditableBaseSchema, } from './widgets/common.js';
|
|
7
|
+
export { EmptyWidgetConfigSchema, HistogramResourceQueryConfigSchema, QueryConfigSchema, ResourceQueryConfigSchema, WidgetEditableBaseSchema, } from './widgets/common.js';
|
|
8
8
|
import { ChartWidgetTargetConfigSchema } from './widgets/charts.js';
|
|
9
9
|
import { GaugeCardWidgetConfigSchema } from './widgets/gauge-card.js';
|
|
10
10
|
import { KpiCardWidgetConfigSchema } from './widgets/kpi-card.js';
|
|
@@ -375,6 +375,14 @@ export declare const LineChartWidgetConfigSchema: z.ZodObject<{
|
|
|
375
375
|
}, z.core.$strict>>;
|
|
376
376
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
377
377
|
}, z.core.$strict>>;
|
|
378
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
379
|
+
field: z.ZodString;
|
|
380
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
381
|
+
label: z.ZodString;
|
|
382
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
383
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
384
|
+
}, z.core.$strict>>;
|
|
385
|
+
}, z.core.$strict>>;
|
|
378
386
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
379
387
|
calc: z.ZodString;
|
|
380
388
|
as: z.ZodString;
|
|
@@ -537,6 +545,14 @@ export declare const BarChartWidgetConfigSchema: z.ZodObject<{
|
|
|
537
545
|
}, z.core.$strict>>;
|
|
538
546
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
539
547
|
}, z.core.$strict>>;
|
|
548
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
549
|
+
field: z.ZodString;
|
|
550
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
551
|
+
label: z.ZodString;
|
|
552
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
554
|
+
}, z.core.$strict>>;
|
|
555
|
+
}, z.core.$strict>>;
|
|
540
556
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
541
557
|
calc: z.ZodString;
|
|
542
558
|
as: z.ZodString;
|
|
@@ -716,6 +732,14 @@ export declare const StackedBarChartWidgetConfigSchema: z.ZodObject<{
|
|
|
716
732
|
}, z.core.$strict>>;
|
|
717
733
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
718
734
|
}, z.core.$strict>>;
|
|
735
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
736
|
+
field: z.ZodString;
|
|
737
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
738
|
+
label: z.ZodString;
|
|
739
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
740
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
741
|
+
}, z.core.$strict>>;
|
|
742
|
+
}, z.core.$strict>>;
|
|
719
743
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
720
744
|
calc: z.ZodString;
|
|
721
745
|
as: z.ZodString;
|
|
@@ -878,6 +902,14 @@ export declare const PieChartWidgetConfigSchema: z.ZodObject<{
|
|
|
878
902
|
}, z.core.$strict>>;
|
|
879
903
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
880
904
|
}, z.core.$strict>>;
|
|
905
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
906
|
+
field: z.ZodString;
|
|
907
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
908
|
+
label: z.ZodString;
|
|
909
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
910
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
911
|
+
}, z.core.$strict>>;
|
|
912
|
+
}, z.core.$strict>>;
|
|
881
913
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
882
914
|
calc: z.ZodString;
|
|
883
915
|
as: z.ZodString;
|
|
@@ -950,7 +982,7 @@ export declare const HistogramChartWidgetConfigSchema: z.ZodObject<{
|
|
|
950
982
|
}, z.core.$strict>>>;
|
|
951
983
|
color: z.ZodOptional<z.ZodString>;
|
|
952
984
|
}, z.core.$strict>;
|
|
953
|
-
query: z.
|
|
985
|
+
query: z.ZodObject<{
|
|
954
986
|
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
955
987
|
resource: z.ZodString;
|
|
956
988
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -962,46 +994,11 @@ export declare const HistogramChartWidgetConfigSchema: z.ZodObject<{
|
|
|
962
994
|
month: "month";
|
|
963
995
|
year: "year";
|
|
964
996
|
}>>;
|
|
965
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
966
|
-
agg: z.ZodEnum<{
|
|
967
|
-
sum: "sum";
|
|
968
|
-
count: "count";
|
|
969
|
-
count_distinct: "count_distinct";
|
|
970
|
-
avg: "avg";
|
|
971
|
-
min: "min";
|
|
972
|
-
max: "max";
|
|
973
|
-
median: "median";
|
|
974
|
-
}>;
|
|
975
|
-
field: z.ZodOptional<z.ZodString>;
|
|
976
|
-
as: z.ZodString;
|
|
977
|
-
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
978
997
|
}, z.core.$strict>, z.ZodObject<{
|
|
979
998
|
calc: z.ZodString;
|
|
980
999
|
as: z.ZodString;
|
|
981
1000
|
}, z.core.$strict>]>>>;
|
|
982
|
-
sparkline: z.ZodOptional<z.ZodObject<{
|
|
983
|
-
field: z.ZodString;
|
|
984
|
-
grain: z.ZodEnum<{
|
|
985
|
-
day: "day";
|
|
986
|
-
week: "week";
|
|
987
|
-
month: "month";
|
|
988
|
-
year: "year";
|
|
989
|
-
}>;
|
|
990
|
-
as: z.ZodString;
|
|
991
|
-
fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
992
|
-
}, z.core.$strict>>;
|
|
993
1001
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
994
|
-
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
995
|
-
field: z.ZodString;
|
|
996
|
-
as: z.ZodOptional<z.ZodString>;
|
|
997
|
-
grain: z.ZodOptional<z.ZodEnum<{
|
|
998
|
-
day: "day";
|
|
999
|
-
week: "week";
|
|
1000
|
-
month: "month";
|
|
1001
|
-
year: "year";
|
|
1002
|
-
}>>;
|
|
1003
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
1004
|
-
}, z.core.$strict>]>>>;
|
|
1005
1002
|
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1006
1003
|
field: z.ZodString;
|
|
1007
1004
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1011,55 +1008,12 @@ export declare const HistogramChartWidgetConfigSchema: z.ZodObject<{
|
|
|
1011
1008
|
}, z.core.$strict>>>;
|
|
1012
1009
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1013
1010
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
1014
|
-
bucket: z.ZodOptional<z.ZodObject<{
|
|
1015
|
-
field: z.ZodString;
|
|
1016
|
-
buckets: z.ZodArray<z.ZodObject<{
|
|
1017
|
-
label: z.ZodString;
|
|
1018
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
1019
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
1020
|
-
}, z.core.$strict>>;
|
|
1021
|
-
}, z.core.$strict>>;
|
|
1022
|
-
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1023
|
-
calc: z.ZodString;
|
|
1024
|
-
as: z.ZodString;
|
|
1025
|
-
}, z.core.$strict>>>;
|
|
1026
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1027
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1028
|
-
source: z.ZodLiteral<"steps">;
|
|
1029
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
1030
|
-
name: z.ZodString;
|
|
1031
|
-
resource: z.ZodString;
|
|
1032
|
-
select: z.ZodArray<z.ZodObject<{
|
|
1033
|
-
agg: z.ZodEnum<{
|
|
1034
|
-
sum: "sum";
|
|
1035
|
-
count: "count";
|
|
1036
|
-
count_distinct: "count_distinct";
|
|
1037
|
-
avg: "avg";
|
|
1038
|
-
min: "min";
|
|
1039
|
-
max: "max";
|
|
1040
|
-
median: "median";
|
|
1041
|
-
}>;
|
|
1042
|
-
field: z.ZodOptional<z.ZodString>;
|
|
1043
|
-
as: z.ZodString;
|
|
1044
|
-
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1045
|
-
}, z.core.$strict>>;
|
|
1046
|
-
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1047
|
-
}, z.core.$strict>>;
|
|
1048
1011
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1049
1012
|
calc: z.ZodString;
|
|
1050
1013
|
as: z.ZodString;
|
|
1051
1014
|
}, z.core.$strict>>>;
|
|
1052
|
-
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1053
|
-
field: z.ZodString;
|
|
1054
|
-
direction: z.ZodOptional<z.ZodEnum<{
|
|
1055
|
-
asc: "asc";
|
|
1056
|
-
desc: "desc";
|
|
1057
|
-
}>>;
|
|
1058
|
-
}, z.core.$strict>>>;
|
|
1059
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
1060
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
1061
1015
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1062
|
-
}, z.core.$strict
|
|
1016
|
+
}, z.core.$strict>;
|
|
1063
1017
|
}, z.core.$strict>;
|
|
1064
1018
|
export declare const FunnelChartWidgetConfigSchema: z.ZodObject<{
|
|
1065
1019
|
id: z.ZodString;
|
|
@@ -1207,6 +1161,14 @@ export declare const FunnelChartWidgetConfigSchema: z.ZodObject<{
|
|
|
1207
1161
|
}, z.core.$strict>>;
|
|
1208
1162
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1209
1163
|
}, z.core.$strict>>;
|
|
1164
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1165
|
+
field: z.ZodString;
|
|
1166
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1167
|
+
label: z.ZodString;
|
|
1168
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1169
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1170
|
+
}, z.core.$strict>>;
|
|
1171
|
+
}, z.core.$strict>>;
|
|
1210
1172
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1211
1173
|
calc: z.ZodString;
|
|
1212
1174
|
as: z.ZodString;
|
|
@@ -1374,6 +1336,14 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1374
1336
|
}, z.core.$strict>>;
|
|
1375
1337
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1376
1338
|
}, z.core.$strict>>;
|
|
1339
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1340
|
+
field: z.ZodString;
|
|
1341
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1342
|
+
label: z.ZodString;
|
|
1343
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1344
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1345
|
+
}, z.core.$strict>>;
|
|
1346
|
+
}, z.core.$strict>>;
|
|
1377
1347
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1378
1348
|
calc: z.ZodString;
|
|
1379
1349
|
as: z.ZodString;
|
|
@@ -1535,6 +1505,14 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1535
1505
|
}, z.core.$strict>>;
|
|
1536
1506
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1537
1507
|
}, z.core.$strict>>;
|
|
1508
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1509
|
+
field: z.ZodString;
|
|
1510
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1511
|
+
label: z.ZodString;
|
|
1512
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1513
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1514
|
+
}, z.core.$strict>>;
|
|
1515
|
+
}, z.core.$strict>>;
|
|
1538
1516
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1539
1517
|
calc: z.ZodString;
|
|
1540
1518
|
as: z.ZodString;
|
|
@@ -1713,6 +1691,14 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1713
1691
|
}, z.core.$strict>>;
|
|
1714
1692
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1715
1693
|
}, z.core.$strict>>;
|
|
1694
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1695
|
+
field: z.ZodString;
|
|
1696
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1697
|
+
label: z.ZodString;
|
|
1698
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1699
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1700
|
+
}, z.core.$strict>>;
|
|
1701
|
+
}, z.core.$strict>>;
|
|
1716
1702
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1717
1703
|
calc: z.ZodString;
|
|
1718
1704
|
as: z.ZodString;
|
|
@@ -1874,6 +1860,14 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1874
1860
|
}, z.core.$strict>>;
|
|
1875
1861
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1876
1862
|
}, z.core.$strict>>;
|
|
1863
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1864
|
+
field: z.ZodString;
|
|
1865
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1866
|
+
label: z.ZodString;
|
|
1867
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1868
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1869
|
+
}, z.core.$strict>>;
|
|
1870
|
+
}, z.core.$strict>>;
|
|
1877
1871
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1878
1872
|
calc: z.ZodString;
|
|
1879
1873
|
as: z.ZodString;
|
|
@@ -1945,7 +1939,7 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1945
1939
|
}, z.core.$strict>>>;
|
|
1946
1940
|
color: z.ZodOptional<z.ZodString>;
|
|
1947
1941
|
}, z.core.$strict>;
|
|
1948
|
-
query: z.
|
|
1942
|
+
query: z.ZodObject<{
|
|
1949
1943
|
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
1950
1944
|
resource: z.ZodString;
|
|
1951
1945
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1957,46 +1951,11 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1957
1951
|
month: "month";
|
|
1958
1952
|
year: "year";
|
|
1959
1953
|
}>>;
|
|
1960
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1961
|
-
agg: z.ZodEnum<{
|
|
1962
|
-
sum: "sum";
|
|
1963
|
-
count: "count";
|
|
1964
|
-
count_distinct: "count_distinct";
|
|
1965
|
-
avg: "avg";
|
|
1966
|
-
min: "min";
|
|
1967
|
-
max: "max";
|
|
1968
|
-
median: "median";
|
|
1969
|
-
}>;
|
|
1970
|
-
field: z.ZodOptional<z.ZodString>;
|
|
1971
|
-
as: z.ZodString;
|
|
1972
|
-
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1973
1954
|
}, z.core.$strict>, z.ZodObject<{
|
|
1974
1955
|
calc: z.ZodString;
|
|
1975
1956
|
as: z.ZodString;
|
|
1976
1957
|
}, z.core.$strict>]>>>;
|
|
1977
|
-
sparkline: z.ZodOptional<z.ZodObject<{
|
|
1978
|
-
field: z.ZodString;
|
|
1979
|
-
grain: z.ZodEnum<{
|
|
1980
|
-
day: "day";
|
|
1981
|
-
week: "week";
|
|
1982
|
-
month: "month";
|
|
1983
|
-
year: "year";
|
|
1984
|
-
}>;
|
|
1985
|
-
as: z.ZodString;
|
|
1986
|
-
fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1987
|
-
}, z.core.$strict>>;
|
|
1988
1958
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1989
|
-
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1990
|
-
field: z.ZodString;
|
|
1991
|
-
as: z.ZodOptional<z.ZodString>;
|
|
1992
|
-
grain: z.ZodOptional<z.ZodEnum<{
|
|
1993
|
-
day: "day";
|
|
1994
|
-
week: "week";
|
|
1995
|
-
month: "month";
|
|
1996
|
-
year: "year";
|
|
1997
|
-
}>>;
|
|
1998
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
1999
|
-
}, z.core.$strict>]>>>;
|
|
2000
1959
|
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2001
1960
|
field: z.ZodString;
|
|
2002
1961
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2006,55 +1965,12 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
2006
1965
|
}, z.core.$strict>>>;
|
|
2007
1966
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2008
1967
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
2009
|
-
bucket: z.ZodOptional<z.ZodObject<{
|
|
2010
|
-
field: z.ZodString;
|
|
2011
|
-
buckets: z.ZodArray<z.ZodObject<{
|
|
2012
|
-
label: z.ZodString;
|
|
2013
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
2014
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
2015
|
-
}, z.core.$strict>>;
|
|
2016
|
-
}, z.core.$strict>>;
|
|
2017
|
-
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2018
|
-
calc: z.ZodString;
|
|
2019
|
-
as: z.ZodString;
|
|
2020
|
-
}, z.core.$strict>>>;
|
|
2021
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2022
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2023
|
-
source: z.ZodLiteral<"steps">;
|
|
2024
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
2025
|
-
name: z.ZodString;
|
|
2026
|
-
resource: z.ZodString;
|
|
2027
|
-
select: z.ZodArray<z.ZodObject<{
|
|
2028
|
-
agg: z.ZodEnum<{
|
|
2029
|
-
sum: "sum";
|
|
2030
|
-
count: "count";
|
|
2031
|
-
count_distinct: "count_distinct";
|
|
2032
|
-
avg: "avg";
|
|
2033
|
-
min: "min";
|
|
2034
|
-
max: "max";
|
|
2035
|
-
median: "median";
|
|
2036
|
-
}>;
|
|
2037
|
-
field: z.ZodOptional<z.ZodString>;
|
|
2038
|
-
as: z.ZodString;
|
|
2039
|
-
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2040
|
-
}, z.core.$strict>>;
|
|
2041
|
-
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2042
|
-
}, z.core.$strict>>;
|
|
2043
1968
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2044
1969
|
calc: z.ZodString;
|
|
2045
1970
|
as: z.ZodString;
|
|
2046
1971
|
}, z.core.$strict>>>;
|
|
2047
|
-
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2048
|
-
field: z.ZodString;
|
|
2049
|
-
direction: z.ZodOptional<z.ZodEnum<{
|
|
2050
|
-
asc: "asc";
|
|
2051
|
-
desc: "desc";
|
|
2052
|
-
}>>;
|
|
2053
|
-
}, z.core.$strict>>>;
|
|
2054
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
2055
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
2056
1972
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2057
|
-
}, z.core.$strict
|
|
1973
|
+
}, z.core.$strict>;
|
|
2058
1974
|
}, z.core.$strict>, z.ZodObject<{
|
|
2059
1975
|
id: z.ZodString;
|
|
2060
1976
|
group_id: z.ZodString;
|
|
@@ -2201,6 +2117,14 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
2201
2117
|
}, z.core.$strict>>;
|
|
2202
2118
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2203
2119
|
}, z.core.$strict>>;
|
|
2120
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
2121
|
+
field: z.ZodString;
|
|
2122
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
2123
|
+
label: z.ZodString;
|
|
2124
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
2125
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2126
|
+
}, z.core.$strict>>;
|
|
2127
|
+
}, z.core.$strict>>;
|
|
2204
2128
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2205
2129
|
calc: z.ZodString;
|
|
2206
2130
|
as: z.ZodString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ChartFieldRefSchema, QueryConfigSchema, WidgetBaseSchema, } from './common.js';
|
|
2
|
+
import { ChartFieldRefSchema, HistogramResourceQueryConfigSchema, QueryConfigSchema, WidgetBaseSchema, } from './common.js';
|
|
3
3
|
const ChartBaseSchema = z.object({
|
|
4
4
|
title: z.string().optional(),
|
|
5
5
|
}).strict();
|
|
@@ -75,7 +75,7 @@ export const PieChartWidgetConfigSchema = WidgetBaseSchema.extend({
|
|
|
75
75
|
export const HistogramChartWidgetConfigSchema = WidgetBaseSchema.extend({
|
|
76
76
|
target: z.literal('chart'),
|
|
77
77
|
chart: HistogramChartSchema,
|
|
78
|
-
query:
|
|
78
|
+
query: HistogramResourceQueryConfigSchema,
|
|
79
79
|
});
|
|
80
80
|
export const FunnelChartWidgetConfigSchema = WidgetBaseSchema.extend({
|
|
81
81
|
target: z.literal('chart'),
|