@adminforth/dashboard 1.7.0 → 1.8.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/custom/model/dashboard.types.ts +25 -10
- package/custom/skills/adminforth-dashboard/SKILL.md +26 -3
- package/dist/custom/model/dashboard.types.d.ts +19 -7
- package/dist/custom/model/dashboard.types.ts +25 -10
- package/dist/custom/queries/useDashboardConfig.d.ts +322 -4
- package/dist/custom/queries/useWidgetData.d.ts +322 -4
- package/dist/custom/skills/adminforth-dashboard/SKILL.md +26 -3
- package/dist/schema/api.d.ts +8099 -1620
- package/dist/schema/api.js +2 -2
- package/dist/schema/widget.d.ts +622 -33
- package/dist/schema/widget.js +1 -1
- package/dist/schema/widgets/charts.d.ts +785 -39
- package/dist/schema/widgets/charts.js +2 -2
- package/dist/schema/widgets/common.d.ts +35 -6
- package/dist/schema/widgets/common.js +23 -5
- package/dist/schema/widgets/gauge-card.d.ts +56 -2
- package/dist/schema/widgets/kpi-card.d.ts +56 -2
- package/dist/schema/widgets/pivot-table.d.ts +56 -2
- package/dist/schema/widgets/table.d.ts +56 -2
- package/dist/services/widgetDataService.js +37 -32
- package/package.json +1 -1
- package/schema/api.ts +1 -2
- package/schema/widget.ts +0 -1
- package/schema/widgets/charts.ts +1 -2
- package/schema/widgets/common.ts +24 -5
- package/services/widgetDataService.ts +62 -50
|
@@ -280,7 +280,8 @@ export declare const LineChartWidgetConfigSchema: z.ZodObject<{
|
|
|
280
280
|
color: z.ZodOptional<z.ZodString>;
|
|
281
281
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
282
282
|
}, z.core.$strict>;
|
|
283
|
-
query: z.ZodObject<{
|
|
283
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
284
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
284
285
|
resource: z.ZodString;
|
|
285
286
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
286
287
|
field: z.ZodString;
|
|
@@ -353,7 +354,60 @@ export declare const LineChartWidgetConfigSchema: z.ZodObject<{
|
|
|
353
354
|
as: z.ZodString;
|
|
354
355
|
}, z.core.$strict>>>;
|
|
355
356
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
356
|
-
}, z.core.$strict
|
|
357
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
358
|
+
source: z.ZodLiteral<"steps">;
|
|
359
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
360
|
+
name: z.ZodString;
|
|
361
|
+
resource: z.ZodString;
|
|
362
|
+
metric: z.ZodObject<{
|
|
363
|
+
agg: z.ZodEnum<{
|
|
364
|
+
sum: "sum";
|
|
365
|
+
count: "count";
|
|
366
|
+
count_distinct: "count_distinct";
|
|
367
|
+
avg: "avg";
|
|
368
|
+
min: "min";
|
|
369
|
+
max: "max";
|
|
370
|
+
median: "median";
|
|
371
|
+
}>;
|
|
372
|
+
field: z.ZodOptional<z.ZodString>;
|
|
373
|
+
as: z.ZodString;
|
|
374
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
375
|
+
}, z.core.$strict>;
|
|
376
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
377
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
378
|
+
name: z.ZodString;
|
|
379
|
+
resource: z.ZodString;
|
|
380
|
+
select: z.ZodArray<z.ZodObject<{
|
|
381
|
+
agg: z.ZodEnum<{
|
|
382
|
+
sum: "sum";
|
|
383
|
+
count: "count";
|
|
384
|
+
count_distinct: "count_distinct";
|
|
385
|
+
avg: "avg";
|
|
386
|
+
min: "min";
|
|
387
|
+
max: "max";
|
|
388
|
+
median: "median";
|
|
389
|
+
}>;
|
|
390
|
+
field: z.ZodOptional<z.ZodString>;
|
|
391
|
+
as: z.ZodString;
|
|
392
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
393
|
+
}, z.core.$strict>>;
|
|
394
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
395
|
+
}, z.core.$strict>]>>;
|
|
396
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
397
|
+
calc: z.ZodString;
|
|
398
|
+
as: z.ZodString;
|
|
399
|
+
}, z.core.$strict>>>;
|
|
400
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
401
|
+
field: z.ZodString;
|
|
402
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
403
|
+
asc: "asc";
|
|
404
|
+
desc: "desc";
|
|
405
|
+
}>>;
|
|
406
|
+
}, z.core.$strict>>>;
|
|
407
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
410
|
+
}, z.core.$strict>]>;
|
|
357
411
|
}, z.core.$strict>;
|
|
358
412
|
export declare const BarChartWidgetConfigSchema: z.ZodObject<{
|
|
359
413
|
id: z.ZodString;
|
|
@@ -406,7 +460,8 @@ export declare const BarChartWidgetConfigSchema: z.ZodObject<{
|
|
|
406
460
|
}, z.core.$strict>;
|
|
407
461
|
color: z.ZodOptional<z.ZodString>;
|
|
408
462
|
}, z.core.$strict>;
|
|
409
|
-
query: z.ZodObject<{
|
|
463
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
464
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
410
465
|
resource: z.ZodString;
|
|
411
466
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
412
467
|
field: z.ZodString;
|
|
@@ -479,7 +534,60 @@ export declare const BarChartWidgetConfigSchema: z.ZodObject<{
|
|
|
479
534
|
as: z.ZodString;
|
|
480
535
|
}, z.core.$strict>>>;
|
|
481
536
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
482
|
-
}, z.core.$strict
|
|
537
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
538
|
+
source: z.ZodLiteral<"steps">;
|
|
539
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
540
|
+
name: z.ZodString;
|
|
541
|
+
resource: z.ZodString;
|
|
542
|
+
metric: z.ZodObject<{
|
|
543
|
+
agg: z.ZodEnum<{
|
|
544
|
+
sum: "sum";
|
|
545
|
+
count: "count";
|
|
546
|
+
count_distinct: "count_distinct";
|
|
547
|
+
avg: "avg";
|
|
548
|
+
min: "min";
|
|
549
|
+
max: "max";
|
|
550
|
+
median: "median";
|
|
551
|
+
}>;
|
|
552
|
+
field: z.ZodOptional<z.ZodString>;
|
|
553
|
+
as: z.ZodString;
|
|
554
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
555
|
+
}, z.core.$strict>;
|
|
556
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
557
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
558
|
+
name: z.ZodString;
|
|
559
|
+
resource: z.ZodString;
|
|
560
|
+
select: z.ZodArray<z.ZodObject<{
|
|
561
|
+
agg: z.ZodEnum<{
|
|
562
|
+
sum: "sum";
|
|
563
|
+
count: "count";
|
|
564
|
+
count_distinct: "count_distinct";
|
|
565
|
+
avg: "avg";
|
|
566
|
+
min: "min";
|
|
567
|
+
max: "max";
|
|
568
|
+
median: "median";
|
|
569
|
+
}>;
|
|
570
|
+
field: z.ZodOptional<z.ZodString>;
|
|
571
|
+
as: z.ZodString;
|
|
572
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
573
|
+
}, z.core.$strict>>;
|
|
574
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
575
|
+
}, z.core.$strict>]>>;
|
|
576
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
577
|
+
calc: z.ZodString;
|
|
578
|
+
as: z.ZodString;
|
|
579
|
+
}, z.core.$strict>>>;
|
|
580
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
581
|
+
field: z.ZodString;
|
|
582
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
583
|
+
asc: "asc";
|
|
584
|
+
desc: "desc";
|
|
585
|
+
}>>;
|
|
586
|
+
}, z.core.$strict>>>;
|
|
587
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
588
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
589
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
590
|
+
}, z.core.$strict>]>;
|
|
483
591
|
}, z.core.$strict>;
|
|
484
592
|
export declare const StackedBarChartWidgetConfigSchema: z.ZodObject<{
|
|
485
593
|
id: z.ZodString;
|
|
@@ -549,7 +657,8 @@ export declare const StackedBarChartWidgetConfigSchema: z.ZodObject<{
|
|
|
549
657
|
}, z.core.$strict>>;
|
|
550
658
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
551
659
|
}, z.core.$strict>;
|
|
552
|
-
query: z.ZodObject<{
|
|
660
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
661
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
553
662
|
resource: z.ZodString;
|
|
554
663
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
555
664
|
field: z.ZodString;
|
|
@@ -622,7 +731,60 @@ export declare const StackedBarChartWidgetConfigSchema: z.ZodObject<{
|
|
|
622
731
|
as: z.ZodString;
|
|
623
732
|
}, z.core.$strict>>>;
|
|
624
733
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
625
|
-
}, z.core.$strict
|
|
734
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
735
|
+
source: z.ZodLiteral<"steps">;
|
|
736
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
737
|
+
name: z.ZodString;
|
|
738
|
+
resource: z.ZodString;
|
|
739
|
+
metric: z.ZodObject<{
|
|
740
|
+
agg: z.ZodEnum<{
|
|
741
|
+
sum: "sum";
|
|
742
|
+
count: "count";
|
|
743
|
+
count_distinct: "count_distinct";
|
|
744
|
+
avg: "avg";
|
|
745
|
+
min: "min";
|
|
746
|
+
max: "max";
|
|
747
|
+
median: "median";
|
|
748
|
+
}>;
|
|
749
|
+
field: z.ZodOptional<z.ZodString>;
|
|
750
|
+
as: z.ZodString;
|
|
751
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
752
|
+
}, z.core.$strict>;
|
|
753
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
754
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
755
|
+
name: z.ZodString;
|
|
756
|
+
resource: z.ZodString;
|
|
757
|
+
select: z.ZodArray<z.ZodObject<{
|
|
758
|
+
agg: z.ZodEnum<{
|
|
759
|
+
sum: "sum";
|
|
760
|
+
count: "count";
|
|
761
|
+
count_distinct: "count_distinct";
|
|
762
|
+
avg: "avg";
|
|
763
|
+
min: "min";
|
|
764
|
+
max: "max";
|
|
765
|
+
median: "median";
|
|
766
|
+
}>;
|
|
767
|
+
field: z.ZodOptional<z.ZodString>;
|
|
768
|
+
as: z.ZodString;
|
|
769
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
770
|
+
}, z.core.$strict>>;
|
|
771
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
772
|
+
}, z.core.$strict>]>>;
|
|
773
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
774
|
+
calc: z.ZodString;
|
|
775
|
+
as: z.ZodString;
|
|
776
|
+
}, z.core.$strict>>>;
|
|
777
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
778
|
+
field: z.ZodString;
|
|
779
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
780
|
+
asc: "asc";
|
|
781
|
+
desc: "desc";
|
|
782
|
+
}>>;
|
|
783
|
+
}, z.core.$strict>>>;
|
|
784
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
785
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
786
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
787
|
+
}, z.core.$strict>]>;
|
|
626
788
|
}, z.core.$strict>;
|
|
627
789
|
export declare const PieChartWidgetConfigSchema: z.ZodObject<{
|
|
628
790
|
id: z.ZodString;
|
|
@@ -675,7 +837,8 @@ export declare const PieChartWidgetConfigSchema: z.ZodObject<{
|
|
|
675
837
|
}, z.core.$strict>;
|
|
676
838
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
677
839
|
}, z.core.$strict>;
|
|
678
|
-
query: z.ZodObject<{
|
|
840
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
841
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
679
842
|
resource: z.ZodString;
|
|
680
843
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
681
844
|
field: z.ZodString;
|
|
@@ -748,7 +911,60 @@ export declare const PieChartWidgetConfigSchema: z.ZodObject<{
|
|
|
748
911
|
as: z.ZodString;
|
|
749
912
|
}, z.core.$strict>>>;
|
|
750
913
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
751
|
-
}, z.core.$strict
|
|
914
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
915
|
+
source: z.ZodLiteral<"steps">;
|
|
916
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
917
|
+
name: z.ZodString;
|
|
918
|
+
resource: z.ZodString;
|
|
919
|
+
metric: z.ZodObject<{
|
|
920
|
+
agg: z.ZodEnum<{
|
|
921
|
+
sum: "sum";
|
|
922
|
+
count: "count";
|
|
923
|
+
count_distinct: "count_distinct";
|
|
924
|
+
avg: "avg";
|
|
925
|
+
min: "min";
|
|
926
|
+
max: "max";
|
|
927
|
+
median: "median";
|
|
928
|
+
}>;
|
|
929
|
+
field: z.ZodOptional<z.ZodString>;
|
|
930
|
+
as: z.ZodString;
|
|
931
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
932
|
+
}, z.core.$strict>;
|
|
933
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
934
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
935
|
+
name: z.ZodString;
|
|
936
|
+
resource: z.ZodString;
|
|
937
|
+
select: z.ZodArray<z.ZodObject<{
|
|
938
|
+
agg: z.ZodEnum<{
|
|
939
|
+
sum: "sum";
|
|
940
|
+
count: "count";
|
|
941
|
+
count_distinct: "count_distinct";
|
|
942
|
+
avg: "avg";
|
|
943
|
+
min: "min";
|
|
944
|
+
max: "max";
|
|
945
|
+
median: "median";
|
|
946
|
+
}>;
|
|
947
|
+
field: z.ZodOptional<z.ZodString>;
|
|
948
|
+
as: z.ZodString;
|
|
949
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
950
|
+
}, z.core.$strict>>;
|
|
951
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
952
|
+
}, z.core.$strict>]>>;
|
|
953
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
954
|
+
calc: z.ZodString;
|
|
955
|
+
as: z.ZodString;
|
|
956
|
+
}, z.core.$strict>>>;
|
|
957
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
958
|
+
field: z.ZodString;
|
|
959
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
960
|
+
asc: "asc";
|
|
961
|
+
desc: "desc";
|
|
962
|
+
}>>;
|
|
963
|
+
}, z.core.$strict>>>;
|
|
964
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
965
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
966
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
967
|
+
}, z.core.$strict>]>;
|
|
752
968
|
}, z.core.$strict>;
|
|
753
969
|
export declare const HistogramChartWidgetConfigSchema: z.ZodObject<{
|
|
754
970
|
id: z.ZodString;
|
|
@@ -806,7 +1022,8 @@ export declare const HistogramChartWidgetConfigSchema: z.ZodObject<{
|
|
|
806
1022
|
}, z.core.$strict>>>;
|
|
807
1023
|
color: z.ZodOptional<z.ZodString>;
|
|
808
1024
|
}, z.core.$strict>;
|
|
809
|
-
query: z.ZodObject<{
|
|
1025
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
1026
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
810
1027
|
resource: z.ZodString;
|
|
811
1028
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
812
1029
|
field: z.ZodString;
|
|
@@ -879,7 +1096,60 @@ export declare const HistogramChartWidgetConfigSchema: z.ZodObject<{
|
|
|
879
1096
|
as: z.ZodString;
|
|
880
1097
|
}, z.core.$strict>>>;
|
|
881
1098
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
882
|
-
}, z.core.$strict
|
|
1099
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1100
|
+
source: z.ZodLiteral<"steps">;
|
|
1101
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1102
|
+
name: z.ZodString;
|
|
1103
|
+
resource: z.ZodString;
|
|
1104
|
+
metric: z.ZodObject<{
|
|
1105
|
+
agg: z.ZodEnum<{
|
|
1106
|
+
sum: "sum";
|
|
1107
|
+
count: "count";
|
|
1108
|
+
count_distinct: "count_distinct";
|
|
1109
|
+
avg: "avg";
|
|
1110
|
+
min: "min";
|
|
1111
|
+
max: "max";
|
|
1112
|
+
median: "median";
|
|
1113
|
+
}>;
|
|
1114
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
as: z.ZodString;
|
|
1116
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1117
|
+
}, z.core.$strict>;
|
|
1118
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1119
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1120
|
+
name: z.ZodString;
|
|
1121
|
+
resource: z.ZodString;
|
|
1122
|
+
select: z.ZodArray<z.ZodObject<{
|
|
1123
|
+
agg: z.ZodEnum<{
|
|
1124
|
+
sum: "sum";
|
|
1125
|
+
count: "count";
|
|
1126
|
+
count_distinct: "count_distinct";
|
|
1127
|
+
avg: "avg";
|
|
1128
|
+
min: "min";
|
|
1129
|
+
max: "max";
|
|
1130
|
+
median: "median";
|
|
1131
|
+
}>;
|
|
1132
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
as: z.ZodString;
|
|
1134
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1135
|
+
}, z.core.$strict>>;
|
|
1136
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1137
|
+
}, z.core.$strict>]>>;
|
|
1138
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1139
|
+
calc: z.ZodString;
|
|
1140
|
+
as: z.ZodString;
|
|
1141
|
+
}, z.core.$strict>>>;
|
|
1142
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1143
|
+
field: z.ZodString;
|
|
1144
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1145
|
+
asc: "asc";
|
|
1146
|
+
desc: "desc";
|
|
1147
|
+
}>>;
|
|
1148
|
+
}, z.core.$strict>>>;
|
|
1149
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1150
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1151
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1152
|
+
}, z.core.$strict>]>;
|
|
883
1153
|
}, z.core.$strict>;
|
|
884
1154
|
export declare const FunnelChartWidgetConfigSchema: z.ZodObject<{
|
|
885
1155
|
id: z.ZodString;
|
|
@@ -932,31 +1202,134 @@ export declare const FunnelChartWidgetConfigSchema: z.ZodObject<{
|
|
|
932
1202
|
}, z.core.$strict>>;
|
|
933
1203
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
934
1204
|
}, z.core.$strict>;
|
|
935
|
-
query: z.ZodObject<{
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
1205
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
1206
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
1207
|
+
resource: z.ZodString;
|
|
1208
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1209
|
+
field: z.ZodString;
|
|
1210
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1212
|
+
day: "day";
|
|
1213
|
+
week: "week";
|
|
1214
|
+
month: "month";
|
|
1215
|
+
year: "year";
|
|
1216
|
+
}>>;
|
|
1217
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1218
|
+
agg: z.ZodEnum<{
|
|
1219
|
+
sum: "sum";
|
|
1220
|
+
count: "count";
|
|
1221
|
+
count_distinct: "count_distinct";
|
|
1222
|
+
avg: "avg";
|
|
1223
|
+
min: "min";
|
|
1224
|
+
max: "max";
|
|
1225
|
+
median: "median";
|
|
1226
|
+
}>;
|
|
1227
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
as: z.ZodString;
|
|
1229
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1230
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1231
|
+
calc: z.ZodString;
|
|
1232
|
+
as: z.ZodString;
|
|
1233
|
+
}, z.core.$strict>]>>>;
|
|
1234
|
+
sparkline: z.ZodOptional<z.ZodObject<{
|
|
1235
|
+
field: z.ZodString;
|
|
1236
|
+
grain: z.ZodEnum<{
|
|
1237
|
+
day: "day";
|
|
1238
|
+
week: "week";
|
|
1239
|
+
month: "month";
|
|
1240
|
+
year: "year";
|
|
1241
|
+
}>;
|
|
1242
|
+
as: z.ZodString;
|
|
1243
|
+
fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1244
|
+
}, z.core.$strict>>;
|
|
1245
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1246
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1247
|
+
field: z.ZodString;
|
|
1248
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1249
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1250
|
+
day: "day";
|
|
1251
|
+
week: "week";
|
|
1252
|
+
month: "month";
|
|
1253
|
+
year: "year";
|
|
1254
|
+
}>>;
|
|
1255
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1256
|
+
}, z.core.$strict>]>>>;
|
|
1257
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1258
|
+
field: z.ZodString;
|
|
1259
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1260
|
+
asc: "asc";
|
|
1261
|
+
desc: "desc";
|
|
1262
|
+
}>>;
|
|
1263
|
+
}, z.core.$strict>>>;
|
|
1264
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1265
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1266
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1267
|
+
field: z.ZodString;
|
|
1268
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1269
|
+
label: z.ZodString;
|
|
1270
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1271
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1272
|
+
}, z.core.$strict>>;
|
|
1273
|
+
}, z.core.$strict>>;
|
|
1274
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1275
|
+
calc: z.ZodString;
|
|
1276
|
+
as: z.ZodString;
|
|
1277
|
+
}, z.core.$strict>>>;
|
|
1278
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1279
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1280
|
+
source: z.ZodLiteral<"steps">;
|
|
1281
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1282
|
+
name: z.ZodString;
|
|
1283
|
+
resource: z.ZodString;
|
|
1284
|
+
metric: z.ZodObject<{
|
|
1285
|
+
agg: z.ZodEnum<{
|
|
1286
|
+
sum: "sum";
|
|
1287
|
+
count: "count";
|
|
1288
|
+
count_distinct: "count_distinct";
|
|
1289
|
+
avg: "avg";
|
|
1290
|
+
min: "min";
|
|
1291
|
+
max: "max";
|
|
1292
|
+
median: "median";
|
|
948
1293
|
}>;
|
|
949
1294
|
field: z.ZodOptional<z.ZodString>;
|
|
950
1295
|
as: z.ZodString;
|
|
951
1296
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
952
1297
|
}, z.core.$strict>;
|
|
953
1298
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
954
|
-
}, z.core.$strict
|
|
1299
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1300
|
+
name: z.ZodString;
|
|
1301
|
+
resource: z.ZodString;
|
|
1302
|
+
select: z.ZodArray<z.ZodObject<{
|
|
1303
|
+
agg: z.ZodEnum<{
|
|
1304
|
+
sum: "sum";
|
|
1305
|
+
count: "count";
|
|
1306
|
+
count_distinct: "count_distinct";
|
|
1307
|
+
avg: "avg";
|
|
1308
|
+
min: "min";
|
|
1309
|
+
max: "max";
|
|
1310
|
+
median: "median";
|
|
1311
|
+
}>;
|
|
1312
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1313
|
+
as: z.ZodString;
|
|
1314
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1315
|
+
}, z.core.$strict>>;
|
|
1316
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1317
|
+
}, z.core.$strict>]>>;
|
|
955
1318
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
956
1319
|
calc: z.ZodString;
|
|
957
1320
|
as: z.ZodString;
|
|
958
1321
|
}, z.core.$strict>>>;
|
|
959
|
-
|
|
1322
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1323
|
+
field: z.ZodString;
|
|
1324
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1325
|
+
asc: "asc";
|
|
1326
|
+
desc: "desc";
|
|
1327
|
+
}>>;
|
|
1328
|
+
}, z.core.$strict>>>;
|
|
1329
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1330
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1331
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1332
|
+
}, z.core.$strict>]>;
|
|
960
1333
|
}, z.core.$strict>;
|
|
961
1334
|
export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
962
1335
|
id: z.ZodString;
|
|
@@ -1014,7 +1387,8 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1014
1387
|
color: z.ZodOptional<z.ZodString>;
|
|
1015
1388
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1016
1389
|
}, z.core.$strict>;
|
|
1017
|
-
query: z.ZodObject<{
|
|
1390
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
1391
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
1018
1392
|
resource: z.ZodString;
|
|
1019
1393
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1020
1394
|
field: z.ZodString;
|
|
@@ -1087,7 +1461,60 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1087
1461
|
as: z.ZodString;
|
|
1088
1462
|
}, z.core.$strict>>>;
|
|
1089
1463
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1090
|
-
}, z.core.$strict
|
|
1464
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1465
|
+
source: z.ZodLiteral<"steps">;
|
|
1466
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1467
|
+
name: z.ZodString;
|
|
1468
|
+
resource: z.ZodString;
|
|
1469
|
+
metric: z.ZodObject<{
|
|
1470
|
+
agg: z.ZodEnum<{
|
|
1471
|
+
sum: "sum";
|
|
1472
|
+
count: "count";
|
|
1473
|
+
count_distinct: "count_distinct";
|
|
1474
|
+
avg: "avg";
|
|
1475
|
+
min: "min";
|
|
1476
|
+
max: "max";
|
|
1477
|
+
median: "median";
|
|
1478
|
+
}>;
|
|
1479
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1480
|
+
as: z.ZodString;
|
|
1481
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1482
|
+
}, z.core.$strict>;
|
|
1483
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1484
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1485
|
+
name: z.ZodString;
|
|
1486
|
+
resource: z.ZodString;
|
|
1487
|
+
select: z.ZodArray<z.ZodObject<{
|
|
1488
|
+
agg: z.ZodEnum<{
|
|
1489
|
+
sum: "sum";
|
|
1490
|
+
count: "count";
|
|
1491
|
+
count_distinct: "count_distinct";
|
|
1492
|
+
avg: "avg";
|
|
1493
|
+
min: "min";
|
|
1494
|
+
max: "max";
|
|
1495
|
+
median: "median";
|
|
1496
|
+
}>;
|
|
1497
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1498
|
+
as: z.ZodString;
|
|
1499
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1500
|
+
}, z.core.$strict>>;
|
|
1501
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1502
|
+
}, z.core.$strict>]>>;
|
|
1503
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1504
|
+
calc: z.ZodString;
|
|
1505
|
+
as: z.ZodString;
|
|
1506
|
+
}, z.core.$strict>>>;
|
|
1507
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1508
|
+
field: z.ZodString;
|
|
1509
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1510
|
+
asc: "asc";
|
|
1511
|
+
desc: "desc";
|
|
1512
|
+
}>>;
|
|
1513
|
+
}, z.core.$strict>>>;
|
|
1514
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1515
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1516
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1517
|
+
}, z.core.$strict>]>;
|
|
1091
1518
|
}, z.core.$strict>, z.ZodObject<{
|
|
1092
1519
|
id: z.ZodString;
|
|
1093
1520
|
group_id: z.ZodString;
|
|
@@ -1139,7 +1566,8 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1139
1566
|
}, z.core.$strict>;
|
|
1140
1567
|
color: z.ZodOptional<z.ZodString>;
|
|
1141
1568
|
}, z.core.$strict>;
|
|
1142
|
-
query: z.ZodObject<{
|
|
1569
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
1570
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
1143
1571
|
resource: z.ZodString;
|
|
1144
1572
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1145
1573
|
field: z.ZodString;
|
|
@@ -1212,7 +1640,60 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1212
1640
|
as: z.ZodString;
|
|
1213
1641
|
}, z.core.$strict>>>;
|
|
1214
1642
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1215
|
-
}, z.core.$strict
|
|
1643
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1644
|
+
source: z.ZodLiteral<"steps">;
|
|
1645
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1646
|
+
name: z.ZodString;
|
|
1647
|
+
resource: z.ZodString;
|
|
1648
|
+
metric: z.ZodObject<{
|
|
1649
|
+
agg: z.ZodEnum<{
|
|
1650
|
+
sum: "sum";
|
|
1651
|
+
count: "count";
|
|
1652
|
+
count_distinct: "count_distinct";
|
|
1653
|
+
avg: "avg";
|
|
1654
|
+
min: "min";
|
|
1655
|
+
max: "max";
|
|
1656
|
+
median: "median";
|
|
1657
|
+
}>;
|
|
1658
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1659
|
+
as: z.ZodString;
|
|
1660
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1661
|
+
}, z.core.$strict>;
|
|
1662
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1663
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1664
|
+
name: z.ZodString;
|
|
1665
|
+
resource: z.ZodString;
|
|
1666
|
+
select: z.ZodArray<z.ZodObject<{
|
|
1667
|
+
agg: z.ZodEnum<{
|
|
1668
|
+
sum: "sum";
|
|
1669
|
+
count: "count";
|
|
1670
|
+
count_distinct: "count_distinct";
|
|
1671
|
+
avg: "avg";
|
|
1672
|
+
min: "min";
|
|
1673
|
+
max: "max";
|
|
1674
|
+
median: "median";
|
|
1675
|
+
}>;
|
|
1676
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1677
|
+
as: z.ZodString;
|
|
1678
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1679
|
+
}, z.core.$strict>>;
|
|
1680
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1681
|
+
}, z.core.$strict>]>>;
|
|
1682
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1683
|
+
calc: z.ZodString;
|
|
1684
|
+
as: z.ZodString;
|
|
1685
|
+
}, z.core.$strict>>>;
|
|
1686
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1687
|
+
field: z.ZodString;
|
|
1688
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1689
|
+
asc: "asc";
|
|
1690
|
+
desc: "desc";
|
|
1691
|
+
}>>;
|
|
1692
|
+
}, z.core.$strict>>>;
|
|
1693
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1694
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1695
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1696
|
+
}, z.core.$strict>]>;
|
|
1216
1697
|
}, z.core.$strict>, z.ZodObject<{
|
|
1217
1698
|
id: z.ZodString;
|
|
1218
1699
|
group_id: z.ZodString;
|
|
@@ -1281,7 +1762,8 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1281
1762
|
}, z.core.$strict>>;
|
|
1282
1763
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1283
1764
|
}, z.core.$strict>;
|
|
1284
|
-
query: z.ZodObject<{
|
|
1765
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
1766
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
1285
1767
|
resource: z.ZodString;
|
|
1286
1768
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1287
1769
|
field: z.ZodString;
|
|
@@ -1354,7 +1836,60 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1354
1836
|
as: z.ZodString;
|
|
1355
1837
|
}, z.core.$strict>>>;
|
|
1356
1838
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1357
|
-
}, z.core.$strict
|
|
1839
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1840
|
+
source: z.ZodLiteral<"steps">;
|
|
1841
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1842
|
+
name: z.ZodString;
|
|
1843
|
+
resource: z.ZodString;
|
|
1844
|
+
metric: z.ZodObject<{
|
|
1845
|
+
agg: z.ZodEnum<{
|
|
1846
|
+
sum: "sum";
|
|
1847
|
+
count: "count";
|
|
1848
|
+
count_distinct: "count_distinct";
|
|
1849
|
+
avg: "avg";
|
|
1850
|
+
min: "min";
|
|
1851
|
+
max: "max";
|
|
1852
|
+
median: "median";
|
|
1853
|
+
}>;
|
|
1854
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1855
|
+
as: z.ZodString;
|
|
1856
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1857
|
+
}, z.core.$strict>;
|
|
1858
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1859
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1860
|
+
name: z.ZodString;
|
|
1861
|
+
resource: z.ZodString;
|
|
1862
|
+
select: z.ZodArray<z.ZodObject<{
|
|
1863
|
+
agg: z.ZodEnum<{
|
|
1864
|
+
sum: "sum";
|
|
1865
|
+
count: "count";
|
|
1866
|
+
count_distinct: "count_distinct";
|
|
1867
|
+
avg: "avg";
|
|
1868
|
+
min: "min";
|
|
1869
|
+
max: "max";
|
|
1870
|
+
median: "median";
|
|
1871
|
+
}>;
|
|
1872
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1873
|
+
as: z.ZodString;
|
|
1874
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1875
|
+
}, z.core.$strict>>;
|
|
1876
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1877
|
+
}, z.core.$strict>]>>;
|
|
1878
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1879
|
+
calc: z.ZodString;
|
|
1880
|
+
as: z.ZodString;
|
|
1881
|
+
}, z.core.$strict>>>;
|
|
1882
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1883
|
+
field: z.ZodString;
|
|
1884
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1885
|
+
asc: "asc";
|
|
1886
|
+
desc: "desc";
|
|
1887
|
+
}>>;
|
|
1888
|
+
}, z.core.$strict>>>;
|
|
1889
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1890
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1891
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1892
|
+
}, z.core.$strict>]>;
|
|
1358
1893
|
}, z.core.$strict>, z.ZodObject<{
|
|
1359
1894
|
id: z.ZodString;
|
|
1360
1895
|
group_id: z.ZodString;
|
|
@@ -1406,7 +1941,8 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1406
1941
|
}, z.core.$strict>;
|
|
1407
1942
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1408
1943
|
}, z.core.$strict>;
|
|
1409
|
-
query: z.ZodObject<{
|
|
1944
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
1945
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
1410
1946
|
resource: z.ZodString;
|
|
1411
1947
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1412
1948
|
field: z.ZodString;
|
|
@@ -1479,7 +2015,60 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1479
2015
|
as: z.ZodString;
|
|
1480
2016
|
}, z.core.$strict>>>;
|
|
1481
2017
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1482
|
-
}, z.core.$strict
|
|
2018
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2019
|
+
source: z.ZodLiteral<"steps">;
|
|
2020
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2021
|
+
name: z.ZodString;
|
|
2022
|
+
resource: z.ZodString;
|
|
2023
|
+
metric: z.ZodObject<{
|
|
2024
|
+
agg: z.ZodEnum<{
|
|
2025
|
+
sum: "sum";
|
|
2026
|
+
count: "count";
|
|
2027
|
+
count_distinct: "count_distinct";
|
|
2028
|
+
avg: "avg";
|
|
2029
|
+
min: "min";
|
|
2030
|
+
max: "max";
|
|
2031
|
+
median: "median";
|
|
2032
|
+
}>;
|
|
2033
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2034
|
+
as: z.ZodString;
|
|
2035
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2036
|
+
}, z.core.$strict>;
|
|
2037
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2038
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2039
|
+
name: z.ZodString;
|
|
2040
|
+
resource: z.ZodString;
|
|
2041
|
+
select: z.ZodArray<z.ZodObject<{
|
|
2042
|
+
agg: z.ZodEnum<{
|
|
2043
|
+
sum: "sum";
|
|
2044
|
+
count: "count";
|
|
2045
|
+
count_distinct: "count_distinct";
|
|
2046
|
+
avg: "avg";
|
|
2047
|
+
min: "min";
|
|
2048
|
+
max: "max";
|
|
2049
|
+
median: "median";
|
|
2050
|
+
}>;
|
|
2051
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2052
|
+
as: z.ZodString;
|
|
2053
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2054
|
+
}, z.core.$strict>>;
|
|
2055
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2056
|
+
}, z.core.$strict>]>>;
|
|
2057
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2058
|
+
calc: z.ZodString;
|
|
2059
|
+
as: z.ZodString;
|
|
2060
|
+
}, z.core.$strict>>>;
|
|
2061
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2062
|
+
field: z.ZodString;
|
|
2063
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2064
|
+
asc: "asc";
|
|
2065
|
+
desc: "desc";
|
|
2066
|
+
}>>;
|
|
2067
|
+
}, z.core.$strict>>>;
|
|
2068
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2069
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2070
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2071
|
+
}, z.core.$strict>]>;
|
|
1483
2072
|
}, z.core.$strict>, z.ZodObject<{
|
|
1484
2073
|
id: z.ZodString;
|
|
1485
2074
|
group_id: z.ZodString;
|
|
@@ -1536,7 +2125,8 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1536
2125
|
}, z.core.$strict>>>;
|
|
1537
2126
|
color: z.ZodOptional<z.ZodString>;
|
|
1538
2127
|
}, z.core.$strict>;
|
|
1539
|
-
query: z.ZodObject<{
|
|
2128
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
2129
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
1540
2130
|
resource: z.ZodString;
|
|
1541
2131
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1542
2132
|
field: z.ZodString;
|
|
@@ -1609,7 +2199,60 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1609
2199
|
as: z.ZodString;
|
|
1610
2200
|
}, z.core.$strict>>>;
|
|
1611
2201
|
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1612
|
-
}, z.core.$strict
|
|
2202
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2203
|
+
source: z.ZodLiteral<"steps">;
|
|
2204
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2205
|
+
name: z.ZodString;
|
|
2206
|
+
resource: z.ZodString;
|
|
2207
|
+
metric: z.ZodObject<{
|
|
2208
|
+
agg: z.ZodEnum<{
|
|
2209
|
+
sum: "sum";
|
|
2210
|
+
count: "count";
|
|
2211
|
+
count_distinct: "count_distinct";
|
|
2212
|
+
avg: "avg";
|
|
2213
|
+
min: "min";
|
|
2214
|
+
max: "max";
|
|
2215
|
+
median: "median";
|
|
2216
|
+
}>;
|
|
2217
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2218
|
+
as: z.ZodString;
|
|
2219
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2220
|
+
}, z.core.$strict>;
|
|
2221
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2222
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2223
|
+
name: z.ZodString;
|
|
2224
|
+
resource: z.ZodString;
|
|
2225
|
+
select: z.ZodArray<z.ZodObject<{
|
|
2226
|
+
agg: z.ZodEnum<{
|
|
2227
|
+
sum: "sum";
|
|
2228
|
+
count: "count";
|
|
2229
|
+
count_distinct: "count_distinct";
|
|
2230
|
+
avg: "avg";
|
|
2231
|
+
min: "min";
|
|
2232
|
+
max: "max";
|
|
2233
|
+
median: "median";
|
|
2234
|
+
}>;
|
|
2235
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2236
|
+
as: z.ZodString;
|
|
2237
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2238
|
+
}, z.core.$strict>>;
|
|
2239
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2240
|
+
}, z.core.$strict>]>>;
|
|
2241
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2242
|
+
calc: z.ZodString;
|
|
2243
|
+
as: z.ZodString;
|
|
2244
|
+
}, z.core.$strict>>>;
|
|
2245
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2246
|
+
field: z.ZodString;
|
|
2247
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2248
|
+
asc: "asc";
|
|
2249
|
+
desc: "desc";
|
|
2250
|
+
}>>;
|
|
2251
|
+
}, z.core.$strict>>>;
|
|
2252
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2253
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2254
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2255
|
+
}, z.core.$strict>]>;
|
|
1613
2256
|
}, z.core.$strict>, z.ZodObject<{
|
|
1614
2257
|
id: z.ZodString;
|
|
1615
2258
|
group_id: z.ZodString;
|
|
@@ -1661,8 +2304,83 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1661
2304
|
}, z.core.$strict>>;
|
|
1662
2305
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1663
2306
|
}, z.core.$strict>;
|
|
1664
|
-
query: z.ZodObject<{
|
|
1665
|
-
|
|
2307
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
2308
|
+
source: z.ZodOptional<z.ZodLiteral<"resource">>;
|
|
2309
|
+
resource: z.ZodString;
|
|
2310
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2311
|
+
field: z.ZodString;
|
|
2312
|
+
as: z.ZodOptional<z.ZodString>;
|
|
2313
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
2314
|
+
day: "day";
|
|
2315
|
+
week: "week";
|
|
2316
|
+
month: "month";
|
|
2317
|
+
year: "year";
|
|
2318
|
+
}>>;
|
|
2319
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2320
|
+
agg: z.ZodEnum<{
|
|
2321
|
+
sum: "sum";
|
|
2322
|
+
count: "count";
|
|
2323
|
+
count_distinct: "count_distinct";
|
|
2324
|
+
avg: "avg";
|
|
2325
|
+
min: "min";
|
|
2326
|
+
max: "max";
|
|
2327
|
+
median: "median";
|
|
2328
|
+
}>;
|
|
2329
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2330
|
+
as: z.ZodString;
|
|
2331
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2332
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2333
|
+
calc: z.ZodString;
|
|
2334
|
+
as: z.ZodString;
|
|
2335
|
+
}, z.core.$strict>]>>>;
|
|
2336
|
+
sparkline: z.ZodOptional<z.ZodObject<{
|
|
2337
|
+
field: z.ZodString;
|
|
2338
|
+
grain: z.ZodEnum<{
|
|
2339
|
+
day: "day";
|
|
2340
|
+
week: "week";
|
|
2341
|
+
month: "month";
|
|
2342
|
+
year: "year";
|
|
2343
|
+
}>;
|
|
2344
|
+
as: z.ZodString;
|
|
2345
|
+
fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2346
|
+
}, z.core.$strict>>;
|
|
2347
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2348
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2349
|
+
field: z.ZodString;
|
|
2350
|
+
as: z.ZodOptional<z.ZodString>;
|
|
2351
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
2352
|
+
day: "day";
|
|
2353
|
+
week: "week";
|
|
2354
|
+
month: "month";
|
|
2355
|
+
year: "year";
|
|
2356
|
+
}>>;
|
|
2357
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2358
|
+
}, z.core.$strict>]>>>;
|
|
2359
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2360
|
+
field: z.ZodString;
|
|
2361
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2362
|
+
asc: "asc";
|
|
2363
|
+
desc: "desc";
|
|
2364
|
+
}>>;
|
|
2365
|
+
}, z.core.$strict>>>;
|
|
2366
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2367
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2368
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
2369
|
+
field: z.ZodString;
|
|
2370
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
2371
|
+
label: z.ZodString;
|
|
2372
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
2373
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2374
|
+
}, z.core.$strict>>;
|
|
2375
|
+
}, z.core.$strict>>;
|
|
2376
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2377
|
+
calc: z.ZodString;
|
|
2378
|
+
as: z.ZodString;
|
|
2379
|
+
}, z.core.$strict>>>;
|
|
2380
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2381
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2382
|
+
source: z.ZodLiteral<"steps">;
|
|
2383
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1666
2384
|
name: z.ZodString;
|
|
1667
2385
|
resource: z.ZodString;
|
|
1668
2386
|
metric: z.ZodObject<{
|
|
@@ -1680,10 +2398,38 @@ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1680
2398
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1681
2399
|
}, z.core.$strict>;
|
|
1682
2400
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1683
|
-
}, z.core.$strict
|
|
2401
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2402
|
+
name: z.ZodString;
|
|
2403
|
+
resource: z.ZodString;
|
|
2404
|
+
select: z.ZodArray<z.ZodObject<{
|
|
2405
|
+
agg: z.ZodEnum<{
|
|
2406
|
+
sum: "sum";
|
|
2407
|
+
count: "count";
|
|
2408
|
+
count_distinct: "count_distinct";
|
|
2409
|
+
avg: "avg";
|
|
2410
|
+
min: "min";
|
|
2411
|
+
max: "max";
|
|
2412
|
+
median: "median";
|
|
2413
|
+
}>;
|
|
2414
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2415
|
+
as: z.ZodString;
|
|
2416
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2417
|
+
}, z.core.$strict>>;
|
|
2418
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2419
|
+
}, z.core.$strict>]>>;
|
|
1684
2420
|
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1685
2421
|
calc: z.ZodString;
|
|
1686
2422
|
as: z.ZodString;
|
|
1687
2423
|
}, z.core.$strict>>>;
|
|
1688
|
-
|
|
2424
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2425
|
+
field: z.ZodString;
|
|
2426
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2427
|
+
asc: "asc";
|
|
2428
|
+
desc: "desc";
|
|
2429
|
+
}>>;
|
|
2430
|
+
}, z.core.$strict>>>;
|
|
2431
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2432
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2433
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2434
|
+
}, z.core.$strict>]>;
|
|
1689
2435
|
}, z.core.$strict>]>;
|