@adminforth/dashboard 1.1.0 → 1.3.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 -52
- package/custom/composables/useElementSize.ts +17 -2
- package/custom/model/dashboard.types.ts +385 -98
- package/custom/runtime/DashboardRuntime.vue +2 -1
- package/custom/runtime/WidgetRenderer.vue +2 -1
- package/custom/skills/adminforth-dashboard/SKILL.md +8 -4
- package/custom/widgets/chart/ChartWidget.vue +36 -35
- package/custom/widgets/chart/bar/BarChart.vue +20 -12
- package/custom/widgets/chart/chart.types.ts +42 -8
- package/custom/widgets/chart/chart.utils.ts +11 -0
- package/custom/widgets/chart/funnel/FunnelChart.vue +6 -4
- package/custom/widgets/chart/line/LineChart.vue +23 -15
- package/custom/widgets/chart/stacked-bar/StackedBarChart.vue +28 -43
- package/custom/widgets/gauge-card/GaugeCardWidget.vue +7 -43
- package/custom/widgets/kpi-card/KpiCardWidget.vue +6 -10
- package/custom/widgets/pivot-table/PivotTableWidget.vue +10 -11
- package/custom/widgets/table/TableWidget.vue +9 -4
- package/dist/custom/composables/useElementSize.js +14 -2
- package/dist/custom/composables/useElementSize.ts +17 -2
- package/dist/custom/model/dashboard.types.d.ts +179 -38
- package/dist/custom/model/dashboard.types.js +108 -42
- package/dist/custom/model/dashboard.types.ts +385 -98
- package/dist/custom/queries/useDashboardConfig.d.ts +832 -68
- package/dist/custom/queries/useWidgetData.d.ts +828 -64
- package/dist/custom/runtime/DashboardRuntime.vue +2 -1
- package/dist/custom/runtime/WidgetRenderer.vue +2 -1
- package/dist/custom/skills/adminforth-dashboard/SKILL.md +8 -4
- package/dist/custom/widgets/chart/ChartWidget.vue +36 -35
- package/dist/custom/widgets/chart/bar/BarChart.vue +20 -12
- package/dist/custom/widgets/chart/chart.types.d.ts +14 -8
- package/dist/custom/widgets/chart/chart.types.js +23 -0
- package/dist/custom/widgets/chart/chart.types.ts +42 -8
- package/dist/custom/widgets/chart/chart.utils.d.ts +1 -0
- package/dist/custom/widgets/chart/chart.utils.js +7 -0
- package/dist/custom/widgets/chart/chart.utils.ts +11 -0
- package/dist/custom/widgets/chart/funnel/FunnelChart.vue +6 -4
- package/dist/custom/widgets/chart/line/LineChart.vue +23 -15
- package/dist/custom/widgets/chart/stacked-bar/StackedBarChart.vue +28 -43
- package/dist/custom/widgets/gauge-card/GaugeCardWidget.vue +7 -43
- package/dist/custom/widgets/kpi-card/KpiCardWidget.vue +6 -10
- package/dist/custom/widgets/pivot-table/PivotTableWidget.vue +10 -11
- package/dist/custom/widgets/table/TableWidget.vue +9 -4
- package/dist/endpoint/widgets.js +23 -3
- package/dist/schema/api.d.ts +2637 -933
- package/dist/schema/widget.d.ts +1562 -582
- package/dist/schema/widget.js +207 -127
- package/dist/services/widgetConfigValidator.js +16 -80
- package/dist/services/widgetDataService.d.ts +0 -9
- package/dist/services/widgetDataService.js +356 -97
- package/endpoint/dashboard.ts +1 -1
- package/endpoint/widgets.ts +29 -3
- package/package.json +1 -1
- package/schema/widget.ts +221 -121
- package/services/widgetConfigValidator.ts +29 -100
- package/services/widgetDataService.ts +478 -129
package/dist/schema/widget.d.ts
CHANGED
|
@@ -3,178 +3,306 @@ export type DashboardWidgetConfigValidationError = {
|
|
|
3
3
|
field: string;
|
|
4
4
|
message: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
median: "median";
|
|
22
|
-
}>;
|
|
23
|
-
field: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
export declare const GroupByRuleZodSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
-
type: z.ZodLiteral<"field">;
|
|
27
|
-
field: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
type: z.ZodLiteral<"date_trunc">;
|
|
30
|
-
field: z.ZodString;
|
|
31
|
-
truncation: z.ZodEnum<{
|
|
32
|
-
day: "day";
|
|
33
|
-
week: "week";
|
|
34
|
-
month: "month";
|
|
35
|
-
year: "year";
|
|
36
|
-
}>;
|
|
37
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
38
|
-
}, z.core.$strip>], "type">;
|
|
39
|
-
export declare const AggregateDataSourceZodSchema: z.ZodObject<{
|
|
40
|
-
type: z.ZodLiteral<"aggregate">;
|
|
41
|
-
resourceId: z.ZodString;
|
|
42
|
-
aggregations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
43
|
-
operation: z.ZodEnum<{
|
|
6
|
+
export declare const QueryConfigSchema: z.ZodObject<{
|
|
7
|
+
resource: z.ZodString;
|
|
8
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
9
|
+
field: z.ZodString;
|
|
10
|
+
as: z.ZodOptional<z.ZodString>;
|
|
11
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
hour: "hour";
|
|
13
|
+
day: "day";
|
|
14
|
+
week: "week";
|
|
15
|
+
month: "month";
|
|
16
|
+
quarter: "quarter";
|
|
17
|
+
year: "year";
|
|
18
|
+
}>>;
|
|
19
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
20
|
+
agg: z.ZodEnum<{
|
|
44
21
|
sum: "sum";
|
|
45
22
|
count: "count";
|
|
23
|
+
count_distinct: "count_distinct";
|
|
46
24
|
avg: "avg";
|
|
47
25
|
min: "min";
|
|
48
26
|
max: "max";
|
|
49
27
|
median: "median";
|
|
50
28
|
}>;
|
|
51
29
|
field: z.ZodOptional<z.ZodString>;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
30
|
+
as: z.ZodString;
|
|
31
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
32
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
33
|
+
calc: z.ZodString;
|
|
34
|
+
as: z.ZodString;
|
|
35
|
+
}, z.core.$strict>]>>>;
|
|
36
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
37
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
58
38
|
field: z.ZodString;
|
|
59
|
-
|
|
39
|
+
as: z.ZodOptional<z.ZodString>;
|
|
40
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
hour: "hour";
|
|
60
42
|
day: "day";
|
|
61
43
|
week: "week";
|
|
62
44
|
month: "month";
|
|
45
|
+
quarter: "quarter";
|
|
63
46
|
year: "year";
|
|
64
|
-
}
|
|
47
|
+
}>>;
|
|
65
48
|
timezone: z.ZodOptional<z.ZodString>;
|
|
66
|
-
}, z.core.$
|
|
67
|
-
|
|
68
|
-
}, z.core.$strict>;
|
|
69
|
-
export declare const ResourceDataSourceZodSchema: z.ZodObject<{
|
|
70
|
-
type: z.ZodLiteral<"resource">;
|
|
71
|
-
resourceId: z.ZodString;
|
|
72
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
74
|
-
sort: z.ZodOptional<z.ZodUnknown>;
|
|
75
|
-
}, z.core.$strict>;
|
|
76
|
-
export declare const WidgetDataSourceZodSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
-
type: z.ZodLiteral<"resource">;
|
|
78
|
-
resourceId: z.ZodString;
|
|
79
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
81
|
-
sort: z.ZodOptional<z.ZodUnknown>;
|
|
82
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
-
type: z.ZodLiteral<"aggregate">;
|
|
84
|
-
resourceId: z.ZodString;
|
|
85
|
-
aggregations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
86
|
-
operation: z.ZodEnum<{
|
|
87
|
-
sum: "sum";
|
|
88
|
-
count: "count";
|
|
89
|
-
avg: "avg";
|
|
90
|
-
min: "min";
|
|
91
|
-
max: "max";
|
|
92
|
-
median: "median";
|
|
93
|
-
}>;
|
|
94
|
-
field: z.ZodOptional<z.ZodString>;
|
|
95
|
-
}, z.core.$strip>>;
|
|
96
|
-
groupBy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
97
|
-
type: z.ZodLiteral<"field">;
|
|
49
|
+
}, z.core.$strict>]>>>;
|
|
50
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
98
51
|
field: z.ZodString;
|
|
99
|
-
|
|
100
|
-
|
|
52
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
53
|
+
asc: "asc";
|
|
54
|
+
desc: "desc";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strict>>>;
|
|
57
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
101
60
|
field: z.ZodString;
|
|
102
|
-
|
|
61
|
+
grain: z.ZodEnum<{
|
|
62
|
+
hour: "hour";
|
|
103
63
|
day: "day";
|
|
104
64
|
week: "week";
|
|
105
65
|
month: "month";
|
|
66
|
+
quarter: "quarter";
|
|
106
67
|
year: "year";
|
|
107
68
|
}>;
|
|
108
69
|
timezone: z.ZodOptional<z.ZodString>;
|
|
109
|
-
}, z.core.$
|
|
110
|
-
|
|
111
|
-
|
|
70
|
+
}, z.core.$strict>>;
|
|
71
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
field: z.ZodString;
|
|
73
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
74
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
75
|
+
}, z.core.$strict>>;
|
|
76
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
field: z.ZodString;
|
|
78
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
79
|
+
label: z.ZodString;
|
|
80
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
}, z.core.$strict>>;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
85
|
+
calc: z.ZodString;
|
|
86
|
+
as: z.ZodString;
|
|
87
|
+
}, z.core.$strict>>>;
|
|
88
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
export declare const FunnelQueryConfigSchema: z.ZodObject<{
|
|
91
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
resource: z.ZodString;
|
|
94
|
+
metric: z.ZodObject<{
|
|
95
|
+
agg: z.ZodEnum<{
|
|
96
|
+
sum: "sum";
|
|
97
|
+
count: "count";
|
|
98
|
+
count_distinct: "count_distinct";
|
|
99
|
+
avg: "avg";
|
|
100
|
+
min: "min";
|
|
101
|
+
max: "max";
|
|
102
|
+
median: "median";
|
|
103
|
+
}>;
|
|
104
|
+
field: z.ZodOptional<z.ZodString>;
|
|
105
|
+
as: z.ZodString;
|
|
106
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
107
|
+
}, z.core.$strict>;
|
|
108
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
109
|
+
}, z.core.$strict>>;
|
|
110
|
+
}, z.core.$strict>;
|
|
112
111
|
export declare const ChartConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
113
112
|
title: z.ZodOptional<z.ZodString>;
|
|
114
113
|
type: z.ZodLiteral<"line">;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
x: z.ZodObject<{
|
|
115
|
+
field: z.ZodString;
|
|
116
|
+
label: z.ZodOptional<z.ZodString>;
|
|
117
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
number: "number";
|
|
119
|
+
compact_number: "compact_number";
|
|
120
|
+
currency: "currency";
|
|
121
|
+
percent: "percent";
|
|
122
|
+
percent_delta: "percent_delta";
|
|
123
|
+
number_delta: "number_delta";
|
|
124
|
+
currency_delta: "currency_delta";
|
|
125
|
+
}>>;
|
|
126
|
+
}, z.core.$strict>;
|
|
127
|
+
y: z.ZodArray<z.ZodObject<{
|
|
128
|
+
field: z.ZodString;
|
|
129
|
+
label: z.ZodOptional<z.ZodString>;
|
|
130
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
number: "number";
|
|
132
|
+
compact_number: "compact_number";
|
|
133
|
+
currency: "currency";
|
|
134
|
+
percent: "percent";
|
|
135
|
+
percent_delta: "percent_delta";
|
|
136
|
+
number_delta: "number_delta";
|
|
137
|
+
currency_delta: "currency_delta";
|
|
138
|
+
}>>;
|
|
139
|
+
}, z.core.$strict>>;
|
|
140
|
+
series: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
field: z.ZodString;
|
|
142
|
+
label: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
118
144
|
color: z.ZodOptional<z.ZodString>;
|
|
145
|
+
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
146
|
}, z.core.$strip>, z.ZodObject<{
|
|
120
147
|
title: z.ZodOptional<z.ZodString>;
|
|
121
148
|
type: z.ZodLiteral<"bar">;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
149
|
+
x: z.ZodObject<{
|
|
150
|
+
field: z.ZodString;
|
|
151
|
+
label: z.ZodOptional<z.ZodString>;
|
|
152
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
153
|
+
number: "number";
|
|
154
|
+
compact_number: "compact_number";
|
|
155
|
+
currency: "currency";
|
|
156
|
+
percent: "percent";
|
|
157
|
+
percent_delta: "percent_delta";
|
|
158
|
+
number_delta: "number_delta";
|
|
159
|
+
currency_delta: "currency_delta";
|
|
160
|
+
}>>;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
y: z.ZodObject<{
|
|
163
|
+
field: z.ZodString;
|
|
164
|
+
label: z.ZodOptional<z.ZodString>;
|
|
165
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
166
|
+
number: "number";
|
|
167
|
+
compact_number: "compact_number";
|
|
168
|
+
currency: "currency";
|
|
169
|
+
percent: "percent";
|
|
170
|
+
percent_delta: "percent_delta";
|
|
171
|
+
number_delta: "number_delta";
|
|
172
|
+
currency_delta: "currency_delta";
|
|
173
|
+
}>>;
|
|
174
|
+
}, z.core.$strict>;
|
|
130
175
|
color: z.ZodOptional<z.ZodString>;
|
|
131
176
|
}, z.core.$strip>, z.ZodObject<{
|
|
132
177
|
title: z.ZodOptional<z.ZodString>;
|
|
133
178
|
type: z.ZodLiteral<"stacked_bar">;
|
|
134
|
-
|
|
135
|
-
series: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
136
|
-
name: z.ZodString;
|
|
179
|
+
x: z.ZodObject<{
|
|
137
180
|
field: z.ZodString;
|
|
138
|
-
|
|
139
|
-
|
|
181
|
+
label: z.ZodOptional<z.ZodString>;
|
|
182
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
183
|
+
number: "number";
|
|
184
|
+
compact_number: "compact_number";
|
|
185
|
+
currency: "currency";
|
|
186
|
+
percent: "percent";
|
|
187
|
+
percent_delta: "percent_delta";
|
|
188
|
+
number_delta: "number_delta";
|
|
189
|
+
currency_delta: "currency_delta";
|
|
190
|
+
}>>;
|
|
191
|
+
}, z.core.$strict>;
|
|
192
|
+
y: z.ZodObject<{
|
|
193
|
+
field: z.ZodString;
|
|
194
|
+
label: z.ZodOptional<z.ZodString>;
|
|
195
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
196
|
+
number: "number";
|
|
197
|
+
compact_number: "compact_number";
|
|
198
|
+
currency: "currency";
|
|
199
|
+
percent: "percent";
|
|
200
|
+
percent_delta: "percent_delta";
|
|
201
|
+
number_delta: "number_delta";
|
|
202
|
+
currency_delta: "currency_delta";
|
|
203
|
+
}>>;
|
|
204
|
+
}, z.core.$strict>;
|
|
205
|
+
series: z.ZodObject<{
|
|
206
|
+
field: z.ZodString;
|
|
207
|
+
label: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, z.core.$strict>;
|
|
140
209
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
141
210
|
}, z.core.$strip>, z.ZodObject<{
|
|
142
211
|
title: z.ZodOptional<z.ZodString>;
|
|
143
212
|
type: z.ZodLiteral<"pie">;
|
|
144
|
-
|
|
145
|
-
|
|
213
|
+
label: z.ZodObject<{
|
|
214
|
+
field: z.ZodString;
|
|
215
|
+
label: z.ZodOptional<z.ZodString>;
|
|
216
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
217
|
+
number: "number";
|
|
218
|
+
compact_number: "compact_number";
|
|
219
|
+
currency: "currency";
|
|
220
|
+
percent: "percent";
|
|
221
|
+
percent_delta: "percent_delta";
|
|
222
|
+
number_delta: "number_delta";
|
|
223
|
+
currency_delta: "currency_delta";
|
|
224
|
+
}>>;
|
|
225
|
+
}, z.core.$strict>;
|
|
226
|
+
value: z.ZodObject<{
|
|
227
|
+
field: z.ZodString;
|
|
228
|
+
label: z.ZodOptional<z.ZodString>;
|
|
229
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
230
|
+
number: "number";
|
|
231
|
+
compact_number: "compact_number";
|
|
232
|
+
currency: "currency";
|
|
233
|
+
percent: "percent";
|
|
234
|
+
percent_delta: "percent_delta";
|
|
235
|
+
number_delta: "number_delta";
|
|
236
|
+
currency_delta: "currency_delta";
|
|
237
|
+
}>>;
|
|
238
|
+
}, z.core.$strict>;
|
|
146
239
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
147
240
|
}, z.core.$strip>, z.ZodObject<{
|
|
148
241
|
title: z.ZodOptional<z.ZodString>;
|
|
149
242
|
type: z.ZodLiteral<"histogram">;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
243
|
+
x: z.ZodObject<{
|
|
244
|
+
field: z.ZodString;
|
|
245
|
+
label: z.ZodOptional<z.ZodString>;
|
|
246
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
247
|
+
number: "number";
|
|
248
|
+
compact_number: "compact_number";
|
|
249
|
+
currency: "currency";
|
|
250
|
+
percent: "percent";
|
|
251
|
+
percent_delta: "percent_delta";
|
|
252
|
+
number_delta: "number_delta";
|
|
253
|
+
currency_delta: "currency_delta";
|
|
254
|
+
}>>;
|
|
255
|
+
}, z.core.$strict>;
|
|
256
|
+
y: z.ZodObject<{
|
|
257
|
+
field: z.ZodString;
|
|
258
|
+
label: z.ZodOptional<z.ZodString>;
|
|
259
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
number: "number";
|
|
261
|
+
compact_number: "compact_number";
|
|
262
|
+
currency: "currency";
|
|
263
|
+
percent: "percent";
|
|
264
|
+
percent_delta: "percent_delta";
|
|
265
|
+
number_delta: "number_delta";
|
|
266
|
+
currency_delta: "currency_delta";
|
|
267
|
+
}>>;
|
|
268
|
+
}, z.core.$strict>;
|
|
153
269
|
buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
154
270
|
label: z.ZodString;
|
|
155
271
|
min: z.ZodOptional<z.ZodNumber>;
|
|
156
272
|
max: z.ZodOptional<z.ZodNumber>;
|
|
157
|
-
}, z.core.$
|
|
273
|
+
}, z.core.$strict>>>;
|
|
158
274
|
color: z.ZodOptional<z.ZodString>;
|
|
159
275
|
}, z.core.$strip>, z.ZodObject<{
|
|
160
276
|
title: z.ZodOptional<z.ZodString>;
|
|
161
277
|
type: z.ZodLiteral<"funnel">;
|
|
162
|
-
|
|
163
|
-
|
|
278
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
279
|
+
field: z.ZodString;
|
|
280
|
+
label: z.ZodOptional<z.ZodString>;
|
|
281
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
282
|
+
number: "number";
|
|
283
|
+
compact_number: "compact_number";
|
|
284
|
+
currency: "currency";
|
|
285
|
+
percent: "percent";
|
|
286
|
+
percent_delta: "percent_delta";
|
|
287
|
+
number_delta: "number_delta";
|
|
288
|
+
currency_delta: "currency_delta";
|
|
289
|
+
}>>;
|
|
290
|
+
}, z.core.$strict>>;
|
|
291
|
+
value: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
field: z.ZodString;
|
|
293
|
+
label: z.ZodOptional<z.ZodString>;
|
|
294
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
295
|
+
number: "number";
|
|
296
|
+
compact_number: "compact_number";
|
|
297
|
+
currency: "currency";
|
|
298
|
+
percent: "percent";
|
|
299
|
+
percent_delta: "percent_delta";
|
|
300
|
+
number_delta: "number_delta";
|
|
301
|
+
currency_delta: "currency_delta";
|
|
302
|
+
}>>;
|
|
303
|
+
}, z.core.$strict>>;
|
|
164
304
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
165
305
|
}, z.core.$strip>], "type">;
|
|
166
|
-
export declare const DashboardWidgetQuerySchema: z.ZodObject<{
|
|
167
|
-
resource: z.ZodString;
|
|
168
|
-
select: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
169
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
170
|
-
field: z.ZodString;
|
|
171
|
-
direction: z.ZodEnum<{
|
|
172
|
-
asc: "asc";
|
|
173
|
-
desc: "desc";
|
|
174
|
-
}>;
|
|
175
|
-
}, z.core.$strip>>;
|
|
176
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
177
|
-
}, z.core.$strip>;
|
|
178
306
|
export declare const EmptyWidgetConfigSchema: z.ZodObject<{
|
|
179
307
|
id: z.ZodOptional<z.ZodString>;
|
|
180
308
|
group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -191,42 +319,6 @@ export declare const EmptyWidgetConfigSchema: z.ZodObject<{
|
|
|
191
319
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
192
320
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
193
321
|
order: z.ZodOptional<z.ZodNumber>;
|
|
194
|
-
dataSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
195
|
-
type: z.ZodLiteral<"resource">;
|
|
196
|
-
resourceId: z.ZodString;
|
|
197
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
198
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
199
|
-
sort: z.ZodOptional<z.ZodUnknown>;
|
|
200
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
201
|
-
type: z.ZodLiteral<"aggregate">;
|
|
202
|
-
resourceId: z.ZodString;
|
|
203
|
-
aggregations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
204
|
-
operation: z.ZodEnum<{
|
|
205
|
-
sum: "sum";
|
|
206
|
-
count: "count";
|
|
207
|
-
avg: "avg";
|
|
208
|
-
min: "min";
|
|
209
|
-
max: "max";
|
|
210
|
-
median: "median";
|
|
211
|
-
}>;
|
|
212
|
-
field: z.ZodOptional<z.ZodString>;
|
|
213
|
-
}, z.core.$strip>>;
|
|
214
|
-
groupBy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
215
|
-
type: z.ZodLiteral<"field">;
|
|
216
|
-
field: z.ZodString;
|
|
217
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
218
|
-
type: z.ZodLiteral<"date_trunc">;
|
|
219
|
-
field: z.ZodString;
|
|
220
|
-
truncation: z.ZodEnum<{
|
|
221
|
-
day: "day";
|
|
222
|
-
week: "week";
|
|
223
|
-
month: "month";
|
|
224
|
-
year: "year";
|
|
225
|
-
}>;
|
|
226
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
227
|
-
}, z.core.$strip>], "type">>;
|
|
228
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
229
|
-
}, z.core.$strict>], "type">>;
|
|
230
322
|
target: z.ZodLiteral<"empty">;
|
|
231
323
|
}, z.core.$strip>;
|
|
232
324
|
export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -245,56 +337,108 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
245
337
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
246
338
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
247
339
|
order: z.ZodOptional<z.ZodNumber>;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
340
|
+
target: z.ZodLiteral<"table">;
|
|
341
|
+
table: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
343
|
+
field: z.ZodString;
|
|
344
|
+
label: z.ZodOptional<z.ZodString>;
|
|
345
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
346
|
+
number: "number";
|
|
347
|
+
compact_number: "compact_number";
|
|
348
|
+
currency: "currency";
|
|
349
|
+
percent: "percent";
|
|
350
|
+
percent_delta: "percent_delta";
|
|
351
|
+
number_delta: "number_delta";
|
|
352
|
+
currency_delta: "currency_delta";
|
|
353
|
+
}>>;
|
|
354
|
+
}, z.core.$strict>]>>>;
|
|
355
|
+
pagination: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
}, z.core.$strict>>;
|
|
358
|
+
query: z.ZodObject<{
|
|
359
|
+
resource: z.ZodString;
|
|
360
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
361
|
+
field: z.ZodString;
|
|
362
|
+
as: z.ZodOptional<z.ZodString>;
|
|
363
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
364
|
+
hour: "hour";
|
|
365
|
+
day: "day";
|
|
366
|
+
week: "week";
|
|
367
|
+
month: "month";
|
|
368
|
+
quarter: "quarter";
|
|
369
|
+
year: "year";
|
|
370
|
+
}>>;
|
|
371
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
372
|
+
agg: z.ZodEnum<{
|
|
259
373
|
sum: "sum";
|
|
260
374
|
count: "count";
|
|
375
|
+
count_distinct: "count_distinct";
|
|
261
376
|
avg: "avg";
|
|
262
377
|
min: "min";
|
|
263
378
|
max: "max";
|
|
264
379
|
median: "median";
|
|
265
380
|
}>;
|
|
266
381
|
field: z.ZodOptional<z.ZodString>;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
382
|
+
as: z.ZodString;
|
|
383
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
384
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
385
|
+
calc: z.ZodString;
|
|
386
|
+
as: z.ZodString;
|
|
387
|
+
}, z.core.$strict>]>>>;
|
|
388
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
389
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
270
390
|
field: z.ZodString;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
truncation: z.ZodEnum<{
|
|
391
|
+
as: z.ZodOptional<z.ZodString>;
|
|
392
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
393
|
+
hour: "hour";
|
|
275
394
|
day: "day";
|
|
276
395
|
week: "week";
|
|
277
396
|
month: "month";
|
|
397
|
+
quarter: "quarter";
|
|
278
398
|
year: "year";
|
|
279
|
-
}
|
|
399
|
+
}>>;
|
|
280
400
|
timezone: z.ZodOptional<z.ZodString>;
|
|
281
|
-
}, z.core.$
|
|
282
|
-
|
|
283
|
-
}, z.core.$strict>], "type">>;
|
|
284
|
-
target: z.ZodLiteral<"table">;
|
|
285
|
-
table: z.ZodOptional<z.ZodUnknown>;
|
|
286
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
287
|
-
resource: z.ZodString;
|
|
288
|
-
select: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
289
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
401
|
+
}, z.core.$strict>]>>>;
|
|
402
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
290
403
|
field: z.ZodString;
|
|
291
|
-
direction: z.ZodEnum<{
|
|
404
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
292
405
|
asc: "asc";
|
|
293
406
|
desc: "desc";
|
|
294
|
-
}
|
|
295
|
-
}, z.core.$
|
|
407
|
+
}>>;
|
|
408
|
+
}, z.core.$strict>>>;
|
|
296
409
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
297
|
-
|
|
410
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
411
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
412
|
+
field: z.ZodString;
|
|
413
|
+
grain: z.ZodEnum<{
|
|
414
|
+
hour: "hour";
|
|
415
|
+
day: "day";
|
|
416
|
+
week: "week";
|
|
417
|
+
month: "month";
|
|
418
|
+
quarter: "quarter";
|
|
419
|
+
year: "year";
|
|
420
|
+
}>;
|
|
421
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
422
|
+
}, z.core.$strict>>;
|
|
423
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
424
|
+
field: z.ZodString;
|
|
425
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
426
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
427
|
+
}, z.core.$strict>>;
|
|
428
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
429
|
+
field: z.ZodString;
|
|
430
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
431
|
+
label: z.ZodString;
|
|
432
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
433
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
}, z.core.$strict>>;
|
|
435
|
+
}, z.core.$strict>>;
|
|
436
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
437
|
+
calc: z.ZodString;
|
|
438
|
+
as: z.ZodString;
|
|
439
|
+
}, z.core.$strict>>>;
|
|
440
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
441
|
+
}, z.core.$strict>;
|
|
298
442
|
}, z.core.$strip>, z.ZodObject<{
|
|
299
443
|
id: z.ZodOptional<z.ZodString>;
|
|
300
444
|
group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -311,109 +455,306 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
311
455
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
312
456
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
313
457
|
order: z.ZodOptional<z.ZodNumber>;
|
|
314
|
-
dataSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
315
|
-
type: z.ZodLiteral<"resource">;
|
|
316
|
-
resourceId: z.ZodString;
|
|
317
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
318
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
319
|
-
sort: z.ZodOptional<z.ZodUnknown>;
|
|
320
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
321
|
-
type: z.ZodLiteral<"aggregate">;
|
|
322
|
-
resourceId: z.ZodString;
|
|
323
|
-
aggregations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
324
|
-
operation: z.ZodEnum<{
|
|
325
|
-
sum: "sum";
|
|
326
|
-
count: "count";
|
|
327
|
-
avg: "avg";
|
|
328
|
-
min: "min";
|
|
329
|
-
max: "max";
|
|
330
|
-
median: "median";
|
|
331
|
-
}>;
|
|
332
|
-
field: z.ZodOptional<z.ZodString>;
|
|
333
|
-
}, z.core.$strip>>;
|
|
334
|
-
groupBy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
335
|
-
type: z.ZodLiteral<"field">;
|
|
336
|
-
field: z.ZodString;
|
|
337
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
338
|
-
type: z.ZodLiteral<"date_trunc">;
|
|
339
|
-
field: z.ZodString;
|
|
340
|
-
truncation: z.ZodEnum<{
|
|
341
|
-
day: "day";
|
|
342
|
-
week: "week";
|
|
343
|
-
month: "month";
|
|
344
|
-
year: "year";
|
|
345
|
-
}>;
|
|
346
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
347
|
-
}, z.core.$strip>], "type">>;
|
|
348
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
349
|
-
}, z.core.$strict>], "type">>;
|
|
350
458
|
target: z.ZodLiteral<"chart">;
|
|
351
459
|
chart: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
352
460
|
title: z.ZodOptional<z.ZodString>;
|
|
353
461
|
type: z.ZodLiteral<"line">;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
462
|
+
x: z.ZodObject<{
|
|
463
|
+
field: z.ZodString;
|
|
464
|
+
label: z.ZodOptional<z.ZodString>;
|
|
465
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
466
|
+
number: "number";
|
|
467
|
+
compact_number: "compact_number";
|
|
468
|
+
currency: "currency";
|
|
469
|
+
percent: "percent";
|
|
470
|
+
percent_delta: "percent_delta";
|
|
471
|
+
number_delta: "number_delta";
|
|
472
|
+
currency_delta: "currency_delta";
|
|
473
|
+
}>>;
|
|
474
|
+
}, z.core.$strict>;
|
|
475
|
+
y: z.ZodArray<z.ZodObject<{
|
|
476
|
+
field: z.ZodString;
|
|
477
|
+
label: z.ZodOptional<z.ZodString>;
|
|
478
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
479
|
+
number: "number";
|
|
480
|
+
compact_number: "compact_number";
|
|
481
|
+
currency: "currency";
|
|
482
|
+
percent: "percent";
|
|
483
|
+
percent_delta: "percent_delta";
|
|
484
|
+
number_delta: "number_delta";
|
|
485
|
+
currency_delta: "currency_delta";
|
|
486
|
+
}>>;
|
|
487
|
+
}, z.core.$strict>>;
|
|
488
|
+
series: z.ZodOptional<z.ZodObject<{
|
|
489
|
+
field: z.ZodString;
|
|
490
|
+
label: z.ZodOptional<z.ZodString>;
|
|
491
|
+
}, z.core.$strict>>;
|
|
357
492
|
color: z.ZodOptional<z.ZodString>;
|
|
493
|
+
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
358
494
|
}, z.core.$strip>, z.ZodObject<{
|
|
359
495
|
title: z.ZodOptional<z.ZodString>;
|
|
360
496
|
type: z.ZodLiteral<"bar">;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
497
|
+
x: z.ZodObject<{
|
|
498
|
+
field: z.ZodString;
|
|
499
|
+
label: z.ZodOptional<z.ZodString>;
|
|
500
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
501
|
+
number: "number";
|
|
502
|
+
compact_number: "compact_number";
|
|
503
|
+
currency: "currency";
|
|
504
|
+
percent: "percent";
|
|
505
|
+
percent_delta: "percent_delta";
|
|
506
|
+
number_delta: "number_delta";
|
|
507
|
+
currency_delta: "currency_delta";
|
|
508
|
+
}>>;
|
|
509
|
+
}, z.core.$strict>;
|
|
510
|
+
y: z.ZodObject<{
|
|
511
|
+
field: z.ZodString;
|
|
512
|
+
label: z.ZodOptional<z.ZodString>;
|
|
513
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
514
|
+
number: "number";
|
|
515
|
+
compact_number: "compact_number";
|
|
516
|
+
currency: "currency";
|
|
517
|
+
percent: "percent";
|
|
518
|
+
percent_delta: "percent_delta";
|
|
519
|
+
number_delta: "number_delta";
|
|
520
|
+
currency_delta: "currency_delta";
|
|
521
|
+
}>>;
|
|
522
|
+
}, z.core.$strict>;
|
|
369
523
|
color: z.ZodOptional<z.ZodString>;
|
|
370
524
|
}, z.core.$strip>, z.ZodObject<{
|
|
371
525
|
title: z.ZodOptional<z.ZodString>;
|
|
372
526
|
type: z.ZodLiteral<"stacked_bar">;
|
|
373
|
-
|
|
374
|
-
series: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
375
|
-
name: z.ZodString;
|
|
527
|
+
x: z.ZodObject<{
|
|
376
528
|
field: z.ZodString;
|
|
377
|
-
|
|
378
|
-
|
|
529
|
+
label: z.ZodOptional<z.ZodString>;
|
|
530
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
531
|
+
number: "number";
|
|
532
|
+
compact_number: "compact_number";
|
|
533
|
+
currency: "currency";
|
|
534
|
+
percent: "percent";
|
|
535
|
+
percent_delta: "percent_delta";
|
|
536
|
+
number_delta: "number_delta";
|
|
537
|
+
currency_delta: "currency_delta";
|
|
538
|
+
}>>;
|
|
539
|
+
}, z.core.$strict>;
|
|
540
|
+
y: z.ZodObject<{
|
|
541
|
+
field: z.ZodString;
|
|
542
|
+
label: z.ZodOptional<z.ZodString>;
|
|
543
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
544
|
+
number: "number";
|
|
545
|
+
compact_number: "compact_number";
|
|
546
|
+
currency: "currency";
|
|
547
|
+
percent: "percent";
|
|
548
|
+
percent_delta: "percent_delta";
|
|
549
|
+
number_delta: "number_delta";
|
|
550
|
+
currency_delta: "currency_delta";
|
|
551
|
+
}>>;
|
|
552
|
+
}, z.core.$strict>;
|
|
553
|
+
series: z.ZodObject<{
|
|
554
|
+
field: z.ZodString;
|
|
555
|
+
label: z.ZodOptional<z.ZodString>;
|
|
556
|
+
}, z.core.$strict>;
|
|
379
557
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
380
558
|
}, z.core.$strip>, z.ZodObject<{
|
|
381
559
|
title: z.ZodOptional<z.ZodString>;
|
|
382
560
|
type: z.ZodLiteral<"pie">;
|
|
383
|
-
|
|
384
|
-
|
|
561
|
+
label: z.ZodObject<{
|
|
562
|
+
field: z.ZodString;
|
|
563
|
+
label: z.ZodOptional<z.ZodString>;
|
|
564
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
565
|
+
number: "number";
|
|
566
|
+
compact_number: "compact_number";
|
|
567
|
+
currency: "currency";
|
|
568
|
+
percent: "percent";
|
|
569
|
+
percent_delta: "percent_delta";
|
|
570
|
+
number_delta: "number_delta";
|
|
571
|
+
currency_delta: "currency_delta";
|
|
572
|
+
}>>;
|
|
573
|
+
}, z.core.$strict>;
|
|
574
|
+
value: z.ZodObject<{
|
|
575
|
+
field: z.ZodString;
|
|
576
|
+
label: z.ZodOptional<z.ZodString>;
|
|
577
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
578
|
+
number: "number";
|
|
579
|
+
compact_number: "compact_number";
|
|
580
|
+
currency: "currency";
|
|
581
|
+
percent: "percent";
|
|
582
|
+
percent_delta: "percent_delta";
|
|
583
|
+
number_delta: "number_delta";
|
|
584
|
+
currency_delta: "currency_delta";
|
|
585
|
+
}>>;
|
|
586
|
+
}, z.core.$strict>;
|
|
385
587
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
386
588
|
}, z.core.$strip>, z.ZodObject<{
|
|
387
589
|
title: z.ZodOptional<z.ZodString>;
|
|
388
590
|
type: z.ZodLiteral<"histogram">;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
591
|
+
x: z.ZodObject<{
|
|
592
|
+
field: z.ZodString;
|
|
593
|
+
label: z.ZodOptional<z.ZodString>;
|
|
594
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
595
|
+
number: "number";
|
|
596
|
+
compact_number: "compact_number";
|
|
597
|
+
currency: "currency";
|
|
598
|
+
percent: "percent";
|
|
599
|
+
percent_delta: "percent_delta";
|
|
600
|
+
number_delta: "number_delta";
|
|
601
|
+
currency_delta: "currency_delta";
|
|
602
|
+
}>>;
|
|
603
|
+
}, z.core.$strict>;
|
|
604
|
+
y: z.ZodObject<{
|
|
605
|
+
field: z.ZodString;
|
|
606
|
+
label: z.ZodOptional<z.ZodString>;
|
|
607
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
608
|
+
number: "number";
|
|
609
|
+
compact_number: "compact_number";
|
|
610
|
+
currency: "currency";
|
|
611
|
+
percent: "percent";
|
|
612
|
+
percent_delta: "percent_delta";
|
|
613
|
+
number_delta: "number_delta";
|
|
614
|
+
currency_delta: "currency_delta";
|
|
615
|
+
}>>;
|
|
616
|
+
}, z.core.$strict>;
|
|
392
617
|
buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
393
618
|
label: z.ZodString;
|
|
394
619
|
min: z.ZodOptional<z.ZodNumber>;
|
|
395
620
|
max: z.ZodOptional<z.ZodNumber>;
|
|
396
|
-
}, z.core.$
|
|
621
|
+
}, z.core.$strict>>>;
|
|
397
622
|
color: z.ZodOptional<z.ZodString>;
|
|
398
623
|
}, z.core.$strip>, z.ZodObject<{
|
|
399
624
|
title: z.ZodOptional<z.ZodString>;
|
|
400
625
|
type: z.ZodLiteral<"funnel">;
|
|
401
|
-
|
|
402
|
-
|
|
626
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
627
|
+
field: z.ZodString;
|
|
628
|
+
label: z.ZodOptional<z.ZodString>;
|
|
629
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
630
|
+
number: "number";
|
|
631
|
+
compact_number: "compact_number";
|
|
632
|
+
currency: "currency";
|
|
633
|
+
percent: "percent";
|
|
634
|
+
percent_delta: "percent_delta";
|
|
635
|
+
number_delta: "number_delta";
|
|
636
|
+
currency_delta: "currency_delta";
|
|
637
|
+
}>>;
|
|
638
|
+
}, z.core.$strict>>;
|
|
639
|
+
value: z.ZodOptional<z.ZodObject<{
|
|
640
|
+
field: z.ZodString;
|
|
641
|
+
label: z.ZodOptional<z.ZodString>;
|
|
642
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
643
|
+
number: "number";
|
|
644
|
+
compact_number: "compact_number";
|
|
645
|
+
currency: "currency";
|
|
646
|
+
percent: "percent";
|
|
647
|
+
percent_delta: "percent_delta";
|
|
648
|
+
number_delta: "number_delta";
|
|
649
|
+
currency_delta: "currency_delta";
|
|
650
|
+
}>>;
|
|
651
|
+
}, z.core.$strict>>;
|
|
403
652
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
404
653
|
}, z.core.$strip>], "type">;
|
|
405
|
-
query: z.
|
|
654
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
406
655
|
resource: z.ZodString;
|
|
407
|
-
select: z.ZodOptional<z.ZodArray<z.
|
|
408
|
-
|
|
656
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
657
|
+
field: z.ZodString;
|
|
658
|
+
as: z.ZodOptional<z.ZodString>;
|
|
659
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
660
|
+
hour: "hour";
|
|
661
|
+
day: "day";
|
|
662
|
+
week: "week";
|
|
663
|
+
month: "month";
|
|
664
|
+
quarter: "quarter";
|
|
665
|
+
year: "year";
|
|
666
|
+
}>>;
|
|
667
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
668
|
+
agg: z.ZodEnum<{
|
|
669
|
+
sum: "sum";
|
|
670
|
+
count: "count";
|
|
671
|
+
count_distinct: "count_distinct";
|
|
672
|
+
avg: "avg";
|
|
673
|
+
min: "min";
|
|
674
|
+
max: "max";
|
|
675
|
+
median: "median";
|
|
676
|
+
}>;
|
|
677
|
+
field: z.ZodOptional<z.ZodString>;
|
|
678
|
+
as: z.ZodString;
|
|
679
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
680
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
681
|
+
calc: z.ZodString;
|
|
682
|
+
as: z.ZodString;
|
|
683
|
+
}, z.core.$strict>]>>>;
|
|
684
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
685
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
409
686
|
field: z.ZodString;
|
|
410
|
-
|
|
687
|
+
as: z.ZodOptional<z.ZodString>;
|
|
688
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
689
|
+
hour: "hour";
|
|
690
|
+
day: "day";
|
|
691
|
+
week: "week";
|
|
692
|
+
month: "month";
|
|
693
|
+
quarter: "quarter";
|
|
694
|
+
year: "year";
|
|
695
|
+
}>>;
|
|
696
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
697
|
+
}, z.core.$strict>]>>>;
|
|
698
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
699
|
+
field: z.ZodString;
|
|
700
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
411
701
|
asc: "asc";
|
|
412
702
|
desc: "desc";
|
|
413
|
-
}
|
|
414
|
-
}, z.core.$
|
|
703
|
+
}>>;
|
|
704
|
+
}, z.core.$strict>>>;
|
|
415
705
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
416
|
-
|
|
706
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
707
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
708
|
+
field: z.ZodString;
|
|
709
|
+
grain: z.ZodEnum<{
|
|
710
|
+
hour: "hour";
|
|
711
|
+
day: "day";
|
|
712
|
+
week: "week";
|
|
713
|
+
month: "month";
|
|
714
|
+
quarter: "quarter";
|
|
715
|
+
year: "year";
|
|
716
|
+
}>;
|
|
717
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
718
|
+
}, z.core.$strict>>;
|
|
719
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
720
|
+
field: z.ZodString;
|
|
721
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
722
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
723
|
+
}, z.core.$strict>>;
|
|
724
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
725
|
+
field: z.ZodString;
|
|
726
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
727
|
+
label: z.ZodString;
|
|
728
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
729
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
730
|
+
}, z.core.$strict>>;
|
|
731
|
+
}, z.core.$strict>>;
|
|
732
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
733
|
+
calc: z.ZodString;
|
|
734
|
+
as: z.ZodString;
|
|
735
|
+
}, z.core.$strict>>>;
|
|
736
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
737
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
738
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
739
|
+
name: z.ZodString;
|
|
740
|
+
resource: z.ZodString;
|
|
741
|
+
metric: z.ZodObject<{
|
|
742
|
+
agg: z.ZodEnum<{
|
|
743
|
+
sum: "sum";
|
|
744
|
+
count: "count";
|
|
745
|
+
count_distinct: "count_distinct";
|
|
746
|
+
avg: "avg";
|
|
747
|
+
min: "min";
|
|
748
|
+
max: "max";
|
|
749
|
+
median: "median";
|
|
750
|
+
}>;
|
|
751
|
+
field: z.ZodOptional<z.ZodString>;
|
|
752
|
+
as: z.ZodString;
|
|
753
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
754
|
+
}, z.core.$strict>;
|
|
755
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
756
|
+
}, z.core.$strict>>;
|
|
757
|
+
}, z.core.$strict>]>;
|
|
417
758
|
}, z.core.$strip>, z.ZodObject<{
|
|
418
759
|
id: z.ZodOptional<z.ZodString>;
|
|
419
760
|
group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -430,56 +771,114 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
430
771
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
431
772
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
432
773
|
order: z.ZodOptional<z.ZodNumber>;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
774
|
+
target: z.ZodLiteral<"kpi_card">;
|
|
775
|
+
card: z.ZodObject<{
|
|
776
|
+
title: z.ZodOptional<z.ZodString>;
|
|
777
|
+
value: z.ZodObject<{
|
|
778
|
+
field: z.ZodString;
|
|
779
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
780
|
+
number: "number";
|
|
781
|
+
compact_number: "compact_number";
|
|
782
|
+
currency: "currency";
|
|
783
|
+
percent: "percent";
|
|
784
|
+
percent_delta: "percent_delta";
|
|
785
|
+
number_delta: "number_delta";
|
|
786
|
+
currency_delta: "currency_delta";
|
|
787
|
+
}>>;
|
|
788
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
789
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
790
|
+
}, z.core.$strict>;
|
|
791
|
+
subtitle: z.ZodOptional<z.ZodObject<{
|
|
792
|
+
text: z.ZodOptional<z.ZodString>;
|
|
793
|
+
field: z.ZodOptional<z.ZodString>;
|
|
794
|
+
}, z.core.$strict>>;
|
|
795
|
+
comparison: z.ZodOptional<z.ZodUnknown>;
|
|
796
|
+
sparkline: z.ZodOptional<z.ZodUnknown>;
|
|
797
|
+
}, z.core.$strict>;
|
|
798
|
+
query: z.ZodObject<{
|
|
799
|
+
resource: z.ZodString;
|
|
800
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
801
|
+
field: z.ZodString;
|
|
802
|
+
as: z.ZodOptional<z.ZodString>;
|
|
803
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
804
|
+
hour: "hour";
|
|
805
|
+
day: "day";
|
|
806
|
+
week: "week";
|
|
807
|
+
month: "month";
|
|
808
|
+
quarter: "quarter";
|
|
809
|
+
year: "year";
|
|
810
|
+
}>>;
|
|
811
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
812
|
+
agg: z.ZodEnum<{
|
|
444
813
|
sum: "sum";
|
|
445
814
|
count: "count";
|
|
815
|
+
count_distinct: "count_distinct";
|
|
446
816
|
avg: "avg";
|
|
447
817
|
min: "min";
|
|
448
818
|
max: "max";
|
|
449
819
|
median: "median";
|
|
450
820
|
}>;
|
|
451
821
|
field: z.ZodOptional<z.ZodString>;
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
822
|
+
as: z.ZodString;
|
|
823
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
824
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
825
|
+
calc: z.ZodString;
|
|
826
|
+
as: z.ZodString;
|
|
827
|
+
}, z.core.$strict>]>>>;
|
|
828
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
829
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
458
830
|
field: z.ZodString;
|
|
459
|
-
|
|
831
|
+
as: z.ZodOptional<z.ZodString>;
|
|
832
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
833
|
+
hour: "hour";
|
|
460
834
|
day: "day";
|
|
461
835
|
week: "week";
|
|
462
836
|
month: "month";
|
|
837
|
+
quarter: "quarter";
|
|
463
838
|
year: "year";
|
|
464
|
-
}
|
|
839
|
+
}>>;
|
|
465
840
|
timezone: z.ZodOptional<z.ZodString>;
|
|
466
|
-
}, z.core.$
|
|
467
|
-
|
|
468
|
-
}, z.core.$strict>], "type">>;
|
|
469
|
-
target: z.ZodLiteral<"kpi_card">;
|
|
470
|
-
kpi_card: z.ZodOptional<z.ZodUnknown>;
|
|
471
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
472
|
-
resource: z.ZodString;
|
|
473
|
-
select: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
474
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
841
|
+
}, z.core.$strict>]>>>;
|
|
842
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
475
843
|
field: z.ZodString;
|
|
476
|
-
direction: z.ZodEnum<{
|
|
844
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
477
845
|
asc: "asc";
|
|
478
846
|
desc: "desc";
|
|
479
|
-
}
|
|
480
|
-
}, z.core.$
|
|
847
|
+
}>>;
|
|
848
|
+
}, z.core.$strict>>>;
|
|
481
849
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
482
|
-
|
|
850
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
851
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
852
|
+
field: z.ZodString;
|
|
853
|
+
grain: z.ZodEnum<{
|
|
854
|
+
hour: "hour";
|
|
855
|
+
day: "day";
|
|
856
|
+
week: "week";
|
|
857
|
+
month: "month";
|
|
858
|
+
quarter: "quarter";
|
|
859
|
+
year: "year";
|
|
860
|
+
}>;
|
|
861
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
862
|
+
}, z.core.$strict>>;
|
|
863
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
864
|
+
field: z.ZodString;
|
|
865
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
866
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
867
|
+
}, z.core.$strict>>;
|
|
868
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
869
|
+
field: z.ZodString;
|
|
870
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
871
|
+
label: z.ZodString;
|
|
872
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
873
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
874
|
+
}, z.core.$strict>>;
|
|
875
|
+
}, z.core.$strict>>;
|
|
876
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
877
|
+
calc: z.ZodString;
|
|
878
|
+
as: z.ZodString;
|
|
879
|
+
}, z.core.$strict>>>;
|
|
880
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
881
|
+
}, z.core.$strict>;
|
|
483
882
|
}, z.core.$strip>, z.ZodObject<{
|
|
484
883
|
id: z.ZodOptional<z.ZodString>;
|
|
485
884
|
group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -496,56 +895,128 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
496
895
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
497
896
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
498
897
|
order: z.ZodOptional<z.ZodNumber>;
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
898
|
+
target: z.ZodLiteral<"gauge_card">;
|
|
899
|
+
card: z.ZodObject<{
|
|
900
|
+
title: z.ZodOptional<z.ZodString>;
|
|
901
|
+
value: z.ZodObject<{
|
|
902
|
+
field: z.ZodString;
|
|
903
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
904
|
+
number: "number";
|
|
905
|
+
compact_number: "compact_number";
|
|
906
|
+
currency: "currency";
|
|
907
|
+
percent: "percent";
|
|
908
|
+
percent_delta: "percent_delta";
|
|
909
|
+
number_delta: "number_delta";
|
|
910
|
+
currency_delta: "currency_delta";
|
|
911
|
+
}>>;
|
|
912
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
913
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
914
|
+
}, z.core.$strict>;
|
|
915
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
916
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
917
|
+
field: z.ZodOptional<z.ZodString>;
|
|
918
|
+
label: z.ZodOptional<z.ZodString>;
|
|
919
|
+
}, z.core.$strict>>;
|
|
920
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
921
|
+
valueField: z.ZodString;
|
|
922
|
+
targetValue: z.ZodOptional<z.ZodNumber>;
|
|
923
|
+
targetField: z.ZodOptional<z.ZodString>;
|
|
924
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
925
|
+
number: "number";
|
|
926
|
+
compact_number: "compact_number";
|
|
927
|
+
currency: "currency";
|
|
928
|
+
percent: "percent";
|
|
929
|
+
percent_delta: "percent_delta";
|
|
930
|
+
number_delta: "number_delta";
|
|
931
|
+
currency_delta: "currency_delta";
|
|
932
|
+
}>>;
|
|
933
|
+
}, z.core.$strict>>;
|
|
934
|
+
color: z.ZodOptional<z.ZodString>;
|
|
935
|
+
}, z.core.$strict>;
|
|
936
|
+
query: z.ZodObject<{
|
|
937
|
+
resource: z.ZodString;
|
|
938
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
939
|
+
field: z.ZodString;
|
|
940
|
+
as: z.ZodOptional<z.ZodString>;
|
|
941
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
942
|
+
hour: "hour";
|
|
943
|
+
day: "day";
|
|
944
|
+
week: "week";
|
|
945
|
+
month: "month";
|
|
946
|
+
quarter: "quarter";
|
|
947
|
+
year: "year";
|
|
948
|
+
}>>;
|
|
949
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
950
|
+
agg: z.ZodEnum<{
|
|
510
951
|
sum: "sum";
|
|
511
952
|
count: "count";
|
|
953
|
+
count_distinct: "count_distinct";
|
|
512
954
|
avg: "avg";
|
|
513
955
|
min: "min";
|
|
514
956
|
max: "max";
|
|
515
957
|
median: "median";
|
|
516
958
|
}>;
|
|
517
959
|
field: z.ZodOptional<z.ZodString>;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
960
|
+
as: z.ZodString;
|
|
961
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
962
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
963
|
+
calc: z.ZodString;
|
|
964
|
+
as: z.ZodString;
|
|
965
|
+
}, z.core.$strict>]>>>;
|
|
966
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
967
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
524
968
|
field: z.ZodString;
|
|
525
|
-
|
|
969
|
+
as: z.ZodOptional<z.ZodString>;
|
|
970
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
971
|
+
hour: "hour";
|
|
526
972
|
day: "day";
|
|
527
973
|
week: "week";
|
|
528
974
|
month: "month";
|
|
975
|
+
quarter: "quarter";
|
|
529
976
|
year: "year";
|
|
530
|
-
}
|
|
977
|
+
}>>;
|
|
531
978
|
timezone: z.ZodOptional<z.ZodString>;
|
|
532
|
-
}, z.core.$
|
|
533
|
-
|
|
534
|
-
}, z.core.$strict>], "type">>;
|
|
535
|
-
target: z.ZodLiteral<"gauge_card">;
|
|
536
|
-
gauge_card: z.ZodOptional<z.ZodUnknown>;
|
|
537
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
538
|
-
resource: z.ZodString;
|
|
539
|
-
select: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
540
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
979
|
+
}, z.core.$strict>]>>>;
|
|
980
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
541
981
|
field: z.ZodString;
|
|
542
|
-
direction: z.ZodEnum<{
|
|
982
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
543
983
|
asc: "asc";
|
|
544
984
|
desc: "desc";
|
|
545
|
-
}
|
|
546
|
-
}, z.core.$
|
|
985
|
+
}>>;
|
|
986
|
+
}, z.core.$strict>>>;
|
|
547
987
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
548
|
-
|
|
988
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
989
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
990
|
+
field: z.ZodString;
|
|
991
|
+
grain: z.ZodEnum<{
|
|
992
|
+
hour: "hour";
|
|
993
|
+
day: "day";
|
|
994
|
+
week: "week";
|
|
995
|
+
month: "month";
|
|
996
|
+
quarter: "quarter";
|
|
997
|
+
year: "year";
|
|
998
|
+
}>;
|
|
999
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1000
|
+
}, z.core.$strict>>;
|
|
1001
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
1002
|
+
field: z.ZodString;
|
|
1003
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
1004
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
1005
|
+
}, z.core.$strict>>;
|
|
1006
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1007
|
+
field: z.ZodString;
|
|
1008
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1009
|
+
label: z.ZodString;
|
|
1010
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1011
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1012
|
+
}, z.core.$strict>>;
|
|
1013
|
+
}, z.core.$strict>>;
|
|
1014
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1015
|
+
calc: z.ZodString;
|
|
1016
|
+
as: z.ZodString;
|
|
1017
|
+
}, z.core.$strict>>>;
|
|
1018
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1019
|
+
}, z.core.$strict>;
|
|
549
1020
|
}, z.core.$strip>, z.ZodObject<{
|
|
550
1021
|
id: z.ZodOptional<z.ZodString>;
|
|
551
1022
|
group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -562,56 +1033,139 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
562
1033
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
563
1034
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
564
1035
|
order: z.ZodOptional<z.ZodNumber>;
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
1036
|
+
target: z.ZodLiteral<"pivot_table">;
|
|
1037
|
+
pivot: z.ZodObject<{
|
|
1038
|
+
rows: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1039
|
+
field: z.ZodString;
|
|
1040
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1041
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1042
|
+
number: "number";
|
|
1043
|
+
compact_number: "compact_number";
|
|
1044
|
+
currency: "currency";
|
|
1045
|
+
percent: "percent";
|
|
1046
|
+
percent_delta: "percent_delta";
|
|
1047
|
+
number_delta: "number_delta";
|
|
1048
|
+
currency_delta: "currency_delta";
|
|
1049
|
+
}>>;
|
|
1050
|
+
}, z.core.$strict>]>>;
|
|
1051
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1052
|
+
field: z.ZodString;
|
|
1053
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1055
|
+
number: "number";
|
|
1056
|
+
compact_number: "compact_number";
|
|
1057
|
+
currency: "currency";
|
|
1058
|
+
percent: "percent";
|
|
1059
|
+
percent_delta: "percent_delta";
|
|
1060
|
+
number_delta: "number_delta";
|
|
1061
|
+
currency_delta: "currency_delta";
|
|
1062
|
+
}>>;
|
|
1063
|
+
}, z.core.$strict>]>>>;
|
|
1064
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1065
|
+
field: z.ZodString;
|
|
1066
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1067
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1068
|
+
number: "number";
|
|
1069
|
+
compact_number: "compact_number";
|
|
1070
|
+
currency: "currency";
|
|
1071
|
+
percent: "percent";
|
|
1072
|
+
percent_delta: "percent_delta";
|
|
1073
|
+
number_delta: "number_delta";
|
|
1074
|
+
currency_delta: "currency_delta";
|
|
1075
|
+
}>>;
|
|
1076
|
+
aggregation: z.ZodOptional<z.ZodEnum<{
|
|
1077
|
+
sum: "sum";
|
|
1078
|
+
count: "count";
|
|
1079
|
+
avg: "avg";
|
|
1080
|
+
min: "min";
|
|
1081
|
+
max: "max";
|
|
1082
|
+
}>>;
|
|
1083
|
+
}, z.core.$strict>>;
|
|
1084
|
+
}, z.core.$strict>;
|
|
1085
|
+
query: z.ZodObject<{
|
|
1086
|
+
resource: z.ZodString;
|
|
1087
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1088
|
+
field: z.ZodString;
|
|
1089
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1090
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1091
|
+
hour: "hour";
|
|
1092
|
+
day: "day";
|
|
1093
|
+
week: "week";
|
|
1094
|
+
month: "month";
|
|
1095
|
+
quarter: "quarter";
|
|
1096
|
+
year: "year";
|
|
1097
|
+
}>>;
|
|
1098
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1099
|
+
agg: z.ZodEnum<{
|
|
576
1100
|
sum: "sum";
|
|
577
1101
|
count: "count";
|
|
1102
|
+
count_distinct: "count_distinct";
|
|
578
1103
|
avg: "avg";
|
|
579
1104
|
min: "min";
|
|
580
1105
|
max: "max";
|
|
581
1106
|
median: "median";
|
|
582
1107
|
}>;
|
|
583
1108
|
field: z.ZodOptional<z.ZodString>;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
1109
|
+
as: z.ZodString;
|
|
1110
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1111
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1112
|
+
calc: z.ZodString;
|
|
1113
|
+
as: z.ZodString;
|
|
1114
|
+
}, z.core.$strict>]>>>;
|
|
1115
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1116
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
590
1117
|
field: z.ZodString;
|
|
591
|
-
|
|
1118
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1120
|
+
hour: "hour";
|
|
592
1121
|
day: "day";
|
|
593
1122
|
week: "week";
|
|
594
1123
|
month: "month";
|
|
1124
|
+
quarter: "quarter";
|
|
595
1125
|
year: "year";
|
|
596
|
-
}
|
|
1126
|
+
}>>;
|
|
597
1127
|
timezone: z.ZodOptional<z.ZodString>;
|
|
598
|
-
}, z.core.$
|
|
599
|
-
|
|
600
|
-
}, z.core.$strict>], "type">>;
|
|
601
|
-
target: z.ZodLiteral<"pivot_table">;
|
|
602
|
-
pivot_table: z.ZodOptional<z.ZodUnknown>;
|
|
603
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
604
|
-
resource: z.ZodString;
|
|
605
|
-
select: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
606
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
1128
|
+
}, z.core.$strict>]>>>;
|
|
1129
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
607
1130
|
field: z.ZodString;
|
|
608
|
-
direction: z.ZodEnum<{
|
|
1131
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
609
1132
|
asc: "asc";
|
|
610
1133
|
desc: "desc";
|
|
611
|
-
}
|
|
612
|
-
}, z.core.$
|
|
1134
|
+
}>>;
|
|
1135
|
+
}, z.core.$strict>>>;
|
|
613
1136
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
614
|
-
|
|
1137
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1138
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
1139
|
+
field: z.ZodString;
|
|
1140
|
+
grain: z.ZodEnum<{
|
|
1141
|
+
hour: "hour";
|
|
1142
|
+
day: "day";
|
|
1143
|
+
week: "week";
|
|
1144
|
+
month: "month";
|
|
1145
|
+
quarter: "quarter";
|
|
1146
|
+
year: "year";
|
|
1147
|
+
}>;
|
|
1148
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1149
|
+
}, z.core.$strict>>;
|
|
1150
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
1151
|
+
field: z.ZodString;
|
|
1152
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
1153
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
1154
|
+
}, z.core.$strict>>;
|
|
1155
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1156
|
+
field: z.ZodString;
|
|
1157
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1158
|
+
label: z.ZodString;
|
|
1159
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1160
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1161
|
+
}, z.core.$strict>>;
|
|
1162
|
+
}, z.core.$strict>>;
|
|
1163
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1164
|
+
calc: z.ZodString;
|
|
1165
|
+
as: z.ZodString;
|
|
1166
|
+
}, z.core.$strict>>>;
|
|
1167
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1168
|
+
}, z.core.$strict>;
|
|
615
1169
|
}, z.core.$strip>], "target">;
|
|
616
1170
|
export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
617
1171
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -629,42 +1183,6 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
629
1183
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
630
1184
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
631
1185
|
order: z.ZodOptional<z.ZodNumber>;
|
|
632
|
-
dataSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
633
|
-
type: z.ZodLiteral<"resource">;
|
|
634
|
-
resourceId: z.ZodString;
|
|
635
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
636
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
637
|
-
sort: z.ZodOptional<z.ZodUnknown>;
|
|
638
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
639
|
-
type: z.ZodLiteral<"aggregate">;
|
|
640
|
-
resourceId: z.ZodString;
|
|
641
|
-
aggregations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
642
|
-
operation: z.ZodEnum<{
|
|
643
|
-
sum: "sum";
|
|
644
|
-
count: "count";
|
|
645
|
-
avg: "avg";
|
|
646
|
-
min: "min";
|
|
647
|
-
max: "max";
|
|
648
|
-
median: "median";
|
|
649
|
-
}>;
|
|
650
|
-
field: z.ZodOptional<z.ZodString>;
|
|
651
|
-
}, z.core.$strip>>;
|
|
652
|
-
groupBy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
653
|
-
type: z.ZodLiteral<"field">;
|
|
654
|
-
field: z.ZodString;
|
|
655
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
656
|
-
type: z.ZodLiteral<"date_trunc">;
|
|
657
|
-
field: z.ZodString;
|
|
658
|
-
truncation: z.ZodEnum<{
|
|
659
|
-
day: "day";
|
|
660
|
-
week: "week";
|
|
661
|
-
month: "month";
|
|
662
|
-
year: "year";
|
|
663
|
-
}>;
|
|
664
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
665
|
-
}, z.core.$strip>], "type">>;
|
|
666
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
667
|
-
}, z.core.$strict>], "type">>;
|
|
668
1186
|
target: z.ZodLiteral<"empty">;
|
|
669
1187
|
}, z.core.$strip>, z.ZodObject<{
|
|
670
1188
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -682,56 +1200,108 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
682
1200
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
683
1201
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
684
1202
|
order: z.ZodOptional<z.ZodNumber>;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
1203
|
+
target: z.ZodLiteral<"table">;
|
|
1204
|
+
table: z.ZodOptional<z.ZodObject<{
|
|
1205
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1206
|
+
field: z.ZodString;
|
|
1207
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1208
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1209
|
+
number: "number";
|
|
1210
|
+
compact_number: "compact_number";
|
|
1211
|
+
currency: "currency";
|
|
1212
|
+
percent: "percent";
|
|
1213
|
+
percent_delta: "percent_delta";
|
|
1214
|
+
number_delta: "number_delta";
|
|
1215
|
+
currency_delta: "currency_delta";
|
|
1216
|
+
}>>;
|
|
1217
|
+
}, z.core.$strict>]>>>;
|
|
1218
|
+
pagination: z.ZodOptional<z.ZodBoolean>;
|
|
1219
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1220
|
+
}, z.core.$strict>>;
|
|
1221
|
+
query: z.ZodObject<{
|
|
1222
|
+
resource: z.ZodString;
|
|
1223
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1224
|
+
field: z.ZodString;
|
|
1225
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1226
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1227
|
+
hour: "hour";
|
|
1228
|
+
day: "day";
|
|
1229
|
+
week: "week";
|
|
1230
|
+
month: "month";
|
|
1231
|
+
quarter: "quarter";
|
|
1232
|
+
year: "year";
|
|
1233
|
+
}>>;
|
|
1234
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1235
|
+
agg: z.ZodEnum<{
|
|
696
1236
|
sum: "sum";
|
|
697
1237
|
count: "count";
|
|
1238
|
+
count_distinct: "count_distinct";
|
|
698
1239
|
avg: "avg";
|
|
699
1240
|
min: "min";
|
|
700
1241
|
max: "max";
|
|
701
1242
|
median: "median";
|
|
702
1243
|
}>;
|
|
703
1244
|
field: z.ZodOptional<z.ZodString>;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
1245
|
+
as: z.ZodString;
|
|
1246
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1248
|
+
calc: z.ZodString;
|
|
1249
|
+
as: z.ZodString;
|
|
1250
|
+
}, z.core.$strict>]>>>;
|
|
1251
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1252
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
710
1253
|
field: z.ZodString;
|
|
711
|
-
|
|
1254
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1255
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1256
|
+
hour: "hour";
|
|
712
1257
|
day: "day";
|
|
713
1258
|
week: "week";
|
|
714
1259
|
month: "month";
|
|
1260
|
+
quarter: "quarter";
|
|
715
1261
|
year: "year";
|
|
716
|
-
}
|
|
1262
|
+
}>>;
|
|
717
1263
|
timezone: z.ZodOptional<z.ZodString>;
|
|
718
|
-
}, z.core.$
|
|
719
|
-
|
|
720
|
-
}, z.core.$strict>], "type">>;
|
|
721
|
-
target: z.ZodLiteral<"table">;
|
|
722
|
-
table: z.ZodOptional<z.ZodUnknown>;
|
|
723
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
724
|
-
resource: z.ZodString;
|
|
725
|
-
select: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
726
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
1264
|
+
}, z.core.$strict>]>>>;
|
|
1265
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
727
1266
|
field: z.ZodString;
|
|
728
|
-
direction: z.ZodEnum<{
|
|
1267
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
729
1268
|
asc: "asc";
|
|
730
1269
|
desc: "desc";
|
|
731
|
-
}
|
|
732
|
-
}, z.core.$
|
|
1270
|
+
}>>;
|
|
1271
|
+
}, z.core.$strict>>>;
|
|
733
1272
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
734
|
-
|
|
1273
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1274
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
1275
|
+
field: z.ZodString;
|
|
1276
|
+
grain: z.ZodEnum<{
|
|
1277
|
+
hour: "hour";
|
|
1278
|
+
day: "day";
|
|
1279
|
+
week: "week";
|
|
1280
|
+
month: "month";
|
|
1281
|
+
quarter: "quarter";
|
|
1282
|
+
year: "year";
|
|
1283
|
+
}>;
|
|
1284
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
}, z.core.$strict>>;
|
|
1286
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
1287
|
+
field: z.ZodString;
|
|
1288
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
1289
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
1290
|
+
}, z.core.$strict>>;
|
|
1291
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1292
|
+
field: z.ZodString;
|
|
1293
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1294
|
+
label: z.ZodString;
|
|
1295
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1296
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1297
|
+
}, z.core.$strict>>;
|
|
1298
|
+
}, z.core.$strict>>;
|
|
1299
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1300
|
+
calc: z.ZodString;
|
|
1301
|
+
as: z.ZodString;
|
|
1302
|
+
}, z.core.$strict>>>;
|
|
1303
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1304
|
+
}, z.core.$strict>;
|
|
735
1305
|
}, z.core.$strip>, z.ZodObject<{
|
|
736
1306
|
id: z.ZodOptional<z.ZodString>;
|
|
737
1307
|
group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -748,109 +1318,306 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
748
1318
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
749
1319
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
750
1320
|
order: z.ZodOptional<z.ZodNumber>;
|
|
751
|
-
dataSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
752
|
-
type: z.ZodLiteral<"resource">;
|
|
753
|
-
resourceId: z.ZodString;
|
|
754
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
755
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
756
|
-
sort: z.ZodOptional<z.ZodUnknown>;
|
|
757
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
758
|
-
type: z.ZodLiteral<"aggregate">;
|
|
759
|
-
resourceId: z.ZodString;
|
|
760
|
-
aggregations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
761
|
-
operation: z.ZodEnum<{
|
|
762
|
-
sum: "sum";
|
|
763
|
-
count: "count";
|
|
764
|
-
avg: "avg";
|
|
765
|
-
min: "min";
|
|
766
|
-
max: "max";
|
|
767
|
-
median: "median";
|
|
768
|
-
}>;
|
|
769
|
-
field: z.ZodOptional<z.ZodString>;
|
|
770
|
-
}, z.core.$strip>>;
|
|
771
|
-
groupBy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
772
|
-
type: z.ZodLiteral<"field">;
|
|
773
|
-
field: z.ZodString;
|
|
774
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
775
|
-
type: z.ZodLiteral<"date_trunc">;
|
|
776
|
-
field: z.ZodString;
|
|
777
|
-
truncation: z.ZodEnum<{
|
|
778
|
-
day: "day";
|
|
779
|
-
week: "week";
|
|
780
|
-
month: "month";
|
|
781
|
-
year: "year";
|
|
782
|
-
}>;
|
|
783
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
784
|
-
}, z.core.$strip>], "type">>;
|
|
785
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
786
|
-
}, z.core.$strict>], "type">>;
|
|
787
1321
|
target: z.ZodLiteral<"chart">;
|
|
788
1322
|
chart: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
789
1323
|
title: z.ZodOptional<z.ZodString>;
|
|
790
1324
|
type: z.ZodLiteral<"line">;
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
1325
|
+
x: z.ZodObject<{
|
|
1326
|
+
field: z.ZodString;
|
|
1327
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1329
|
+
number: "number";
|
|
1330
|
+
compact_number: "compact_number";
|
|
1331
|
+
currency: "currency";
|
|
1332
|
+
percent: "percent";
|
|
1333
|
+
percent_delta: "percent_delta";
|
|
1334
|
+
number_delta: "number_delta";
|
|
1335
|
+
currency_delta: "currency_delta";
|
|
1336
|
+
}>>;
|
|
1337
|
+
}, z.core.$strict>;
|
|
1338
|
+
y: z.ZodArray<z.ZodObject<{
|
|
1339
|
+
field: z.ZodString;
|
|
1340
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1341
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1342
|
+
number: "number";
|
|
1343
|
+
compact_number: "compact_number";
|
|
1344
|
+
currency: "currency";
|
|
1345
|
+
percent: "percent";
|
|
1346
|
+
percent_delta: "percent_delta";
|
|
1347
|
+
number_delta: "number_delta";
|
|
1348
|
+
currency_delta: "currency_delta";
|
|
1349
|
+
}>>;
|
|
1350
|
+
}, z.core.$strict>>;
|
|
1351
|
+
series: z.ZodOptional<z.ZodObject<{
|
|
1352
|
+
field: z.ZodString;
|
|
1353
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
}, z.core.$strict>>;
|
|
794
1355
|
color: z.ZodOptional<z.ZodString>;
|
|
1356
|
+
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
795
1357
|
}, z.core.$strip>, z.ZodObject<{
|
|
796
1358
|
title: z.ZodOptional<z.ZodString>;
|
|
797
1359
|
type: z.ZodLiteral<"bar">;
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
1360
|
+
x: z.ZodObject<{
|
|
1361
|
+
field: z.ZodString;
|
|
1362
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1363
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1364
|
+
number: "number";
|
|
1365
|
+
compact_number: "compact_number";
|
|
1366
|
+
currency: "currency";
|
|
1367
|
+
percent: "percent";
|
|
1368
|
+
percent_delta: "percent_delta";
|
|
1369
|
+
number_delta: "number_delta";
|
|
1370
|
+
currency_delta: "currency_delta";
|
|
1371
|
+
}>>;
|
|
1372
|
+
}, z.core.$strict>;
|
|
1373
|
+
y: z.ZodObject<{
|
|
1374
|
+
field: z.ZodString;
|
|
1375
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1377
|
+
number: "number";
|
|
1378
|
+
compact_number: "compact_number";
|
|
1379
|
+
currency: "currency";
|
|
1380
|
+
percent: "percent";
|
|
1381
|
+
percent_delta: "percent_delta";
|
|
1382
|
+
number_delta: "number_delta";
|
|
1383
|
+
currency_delta: "currency_delta";
|
|
1384
|
+
}>>;
|
|
1385
|
+
}, z.core.$strict>;
|
|
806
1386
|
color: z.ZodOptional<z.ZodString>;
|
|
807
1387
|
}, z.core.$strip>, z.ZodObject<{
|
|
808
1388
|
title: z.ZodOptional<z.ZodString>;
|
|
809
1389
|
type: z.ZodLiteral<"stacked_bar">;
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
1390
|
+
x: z.ZodObject<{
|
|
1391
|
+
field: z.ZodString;
|
|
1392
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1393
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1394
|
+
number: "number";
|
|
1395
|
+
compact_number: "compact_number";
|
|
1396
|
+
currency: "currency";
|
|
1397
|
+
percent: "percent";
|
|
1398
|
+
percent_delta: "percent_delta";
|
|
1399
|
+
number_delta: "number_delta";
|
|
1400
|
+
currency_delta: "currency_delta";
|
|
1401
|
+
}>>;
|
|
1402
|
+
}, z.core.$strict>;
|
|
1403
|
+
y: z.ZodObject<{
|
|
813
1404
|
field: z.ZodString;
|
|
814
|
-
|
|
815
|
-
|
|
1405
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1407
|
+
number: "number";
|
|
1408
|
+
compact_number: "compact_number";
|
|
1409
|
+
currency: "currency";
|
|
1410
|
+
percent: "percent";
|
|
1411
|
+
percent_delta: "percent_delta";
|
|
1412
|
+
number_delta: "number_delta";
|
|
1413
|
+
currency_delta: "currency_delta";
|
|
1414
|
+
}>>;
|
|
1415
|
+
}, z.core.$strict>;
|
|
1416
|
+
series: z.ZodObject<{
|
|
1417
|
+
field: z.ZodString;
|
|
1418
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1419
|
+
}, z.core.$strict>;
|
|
816
1420
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
817
1421
|
}, z.core.$strip>, z.ZodObject<{
|
|
818
1422
|
title: z.ZodOptional<z.ZodString>;
|
|
819
1423
|
type: z.ZodLiteral<"pie">;
|
|
820
|
-
|
|
821
|
-
|
|
1424
|
+
label: z.ZodObject<{
|
|
1425
|
+
field: z.ZodString;
|
|
1426
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1427
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1428
|
+
number: "number";
|
|
1429
|
+
compact_number: "compact_number";
|
|
1430
|
+
currency: "currency";
|
|
1431
|
+
percent: "percent";
|
|
1432
|
+
percent_delta: "percent_delta";
|
|
1433
|
+
number_delta: "number_delta";
|
|
1434
|
+
currency_delta: "currency_delta";
|
|
1435
|
+
}>>;
|
|
1436
|
+
}, z.core.$strict>;
|
|
1437
|
+
value: z.ZodObject<{
|
|
1438
|
+
field: z.ZodString;
|
|
1439
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1440
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1441
|
+
number: "number";
|
|
1442
|
+
compact_number: "compact_number";
|
|
1443
|
+
currency: "currency";
|
|
1444
|
+
percent: "percent";
|
|
1445
|
+
percent_delta: "percent_delta";
|
|
1446
|
+
number_delta: "number_delta";
|
|
1447
|
+
currency_delta: "currency_delta";
|
|
1448
|
+
}>>;
|
|
1449
|
+
}, z.core.$strict>;
|
|
822
1450
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
823
1451
|
}, z.core.$strip>, z.ZodObject<{
|
|
824
1452
|
title: z.ZodOptional<z.ZodString>;
|
|
825
1453
|
type: z.ZodLiteral<"histogram">;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
1454
|
+
x: z.ZodObject<{
|
|
1455
|
+
field: z.ZodString;
|
|
1456
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1458
|
+
number: "number";
|
|
1459
|
+
compact_number: "compact_number";
|
|
1460
|
+
currency: "currency";
|
|
1461
|
+
percent: "percent";
|
|
1462
|
+
percent_delta: "percent_delta";
|
|
1463
|
+
number_delta: "number_delta";
|
|
1464
|
+
currency_delta: "currency_delta";
|
|
1465
|
+
}>>;
|
|
1466
|
+
}, z.core.$strict>;
|
|
1467
|
+
y: z.ZodObject<{
|
|
1468
|
+
field: z.ZodString;
|
|
1469
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1470
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1471
|
+
number: "number";
|
|
1472
|
+
compact_number: "compact_number";
|
|
1473
|
+
currency: "currency";
|
|
1474
|
+
percent: "percent";
|
|
1475
|
+
percent_delta: "percent_delta";
|
|
1476
|
+
number_delta: "number_delta";
|
|
1477
|
+
currency_delta: "currency_delta";
|
|
1478
|
+
}>>;
|
|
1479
|
+
}, z.core.$strict>;
|
|
829
1480
|
buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
830
1481
|
label: z.ZodString;
|
|
831
1482
|
min: z.ZodOptional<z.ZodNumber>;
|
|
832
1483
|
max: z.ZodOptional<z.ZodNumber>;
|
|
833
|
-
}, z.core.$
|
|
1484
|
+
}, z.core.$strict>>>;
|
|
834
1485
|
color: z.ZodOptional<z.ZodString>;
|
|
835
1486
|
}, z.core.$strip>, z.ZodObject<{
|
|
836
1487
|
title: z.ZodOptional<z.ZodString>;
|
|
837
1488
|
type: z.ZodLiteral<"funnel">;
|
|
838
|
-
|
|
839
|
-
|
|
1489
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
1490
|
+
field: z.ZodString;
|
|
1491
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1492
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1493
|
+
number: "number";
|
|
1494
|
+
compact_number: "compact_number";
|
|
1495
|
+
currency: "currency";
|
|
1496
|
+
percent: "percent";
|
|
1497
|
+
percent_delta: "percent_delta";
|
|
1498
|
+
number_delta: "number_delta";
|
|
1499
|
+
currency_delta: "currency_delta";
|
|
1500
|
+
}>>;
|
|
1501
|
+
}, z.core.$strict>>;
|
|
1502
|
+
value: z.ZodOptional<z.ZodObject<{
|
|
1503
|
+
field: z.ZodString;
|
|
1504
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1505
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1506
|
+
number: "number";
|
|
1507
|
+
compact_number: "compact_number";
|
|
1508
|
+
currency: "currency";
|
|
1509
|
+
percent: "percent";
|
|
1510
|
+
percent_delta: "percent_delta";
|
|
1511
|
+
number_delta: "number_delta";
|
|
1512
|
+
currency_delta: "currency_delta";
|
|
1513
|
+
}>>;
|
|
1514
|
+
}, z.core.$strict>>;
|
|
840
1515
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
841
1516
|
}, z.core.$strip>], "type">;
|
|
842
|
-
query: z.
|
|
1517
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
843
1518
|
resource: z.ZodString;
|
|
844
|
-
select: z.ZodOptional<z.ZodArray<z.
|
|
845
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
1519
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
846
1520
|
field: z.ZodString;
|
|
847
|
-
|
|
1521
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1522
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1523
|
+
hour: "hour";
|
|
1524
|
+
day: "day";
|
|
1525
|
+
week: "week";
|
|
1526
|
+
month: "month";
|
|
1527
|
+
quarter: "quarter";
|
|
1528
|
+
year: "year";
|
|
1529
|
+
}>>;
|
|
1530
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1531
|
+
agg: z.ZodEnum<{
|
|
1532
|
+
sum: "sum";
|
|
1533
|
+
count: "count";
|
|
1534
|
+
count_distinct: "count_distinct";
|
|
1535
|
+
avg: "avg";
|
|
1536
|
+
min: "min";
|
|
1537
|
+
max: "max";
|
|
1538
|
+
median: "median";
|
|
1539
|
+
}>;
|
|
1540
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1541
|
+
as: z.ZodString;
|
|
1542
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1543
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1544
|
+
calc: z.ZodString;
|
|
1545
|
+
as: z.ZodString;
|
|
1546
|
+
}, z.core.$strict>]>>>;
|
|
1547
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1548
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1549
|
+
field: z.ZodString;
|
|
1550
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1552
|
+
hour: "hour";
|
|
1553
|
+
day: "day";
|
|
1554
|
+
week: "week";
|
|
1555
|
+
month: "month";
|
|
1556
|
+
quarter: "quarter";
|
|
1557
|
+
year: "year";
|
|
1558
|
+
}>>;
|
|
1559
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
}, z.core.$strict>]>>>;
|
|
1561
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1562
|
+
field: z.ZodString;
|
|
1563
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
848
1564
|
asc: "asc";
|
|
849
1565
|
desc: "desc";
|
|
850
|
-
}
|
|
851
|
-
}, z.core.$
|
|
1566
|
+
}>>;
|
|
1567
|
+
}, z.core.$strict>>>;
|
|
852
1568
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
853
|
-
|
|
1569
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1570
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
1571
|
+
field: z.ZodString;
|
|
1572
|
+
grain: z.ZodEnum<{
|
|
1573
|
+
hour: "hour";
|
|
1574
|
+
day: "day";
|
|
1575
|
+
week: "week";
|
|
1576
|
+
month: "month";
|
|
1577
|
+
quarter: "quarter";
|
|
1578
|
+
year: "year";
|
|
1579
|
+
}>;
|
|
1580
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
}, z.core.$strict>>;
|
|
1582
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
1583
|
+
field: z.ZodString;
|
|
1584
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
1585
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
1586
|
+
}, z.core.$strict>>;
|
|
1587
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1588
|
+
field: z.ZodString;
|
|
1589
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1590
|
+
label: z.ZodString;
|
|
1591
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1592
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1593
|
+
}, z.core.$strict>>;
|
|
1594
|
+
}, z.core.$strict>>;
|
|
1595
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1596
|
+
calc: z.ZodString;
|
|
1597
|
+
as: z.ZodString;
|
|
1598
|
+
}, z.core.$strict>>>;
|
|
1599
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1600
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1601
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
1602
|
+
name: z.ZodString;
|
|
1603
|
+
resource: z.ZodString;
|
|
1604
|
+
metric: z.ZodObject<{
|
|
1605
|
+
agg: z.ZodEnum<{
|
|
1606
|
+
sum: "sum";
|
|
1607
|
+
count: "count";
|
|
1608
|
+
count_distinct: "count_distinct";
|
|
1609
|
+
avg: "avg";
|
|
1610
|
+
min: "min";
|
|
1611
|
+
max: "max";
|
|
1612
|
+
median: "median";
|
|
1613
|
+
}>;
|
|
1614
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1615
|
+
as: z.ZodString;
|
|
1616
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1617
|
+
}, z.core.$strict>;
|
|
1618
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1619
|
+
}, z.core.$strict>>;
|
|
1620
|
+
}, z.core.$strict>]>;
|
|
854
1621
|
}, z.core.$strip>, z.ZodObject<{
|
|
855
1622
|
id: z.ZodOptional<z.ZodString>;
|
|
856
1623
|
group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -867,56 +1634,114 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
867
1634
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
868
1635
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
869
1636
|
order: z.ZodOptional<z.ZodNumber>;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
1637
|
+
target: z.ZodLiteral<"kpi_card">;
|
|
1638
|
+
card: z.ZodObject<{
|
|
1639
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1640
|
+
value: z.ZodObject<{
|
|
1641
|
+
field: z.ZodString;
|
|
1642
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1643
|
+
number: "number";
|
|
1644
|
+
compact_number: "compact_number";
|
|
1645
|
+
currency: "currency";
|
|
1646
|
+
percent: "percent";
|
|
1647
|
+
percent_delta: "percent_delta";
|
|
1648
|
+
number_delta: "number_delta";
|
|
1649
|
+
currency_delta: "currency_delta";
|
|
1650
|
+
}>>;
|
|
1651
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1652
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
1653
|
+
}, z.core.$strict>;
|
|
1654
|
+
subtitle: z.ZodOptional<z.ZodObject<{
|
|
1655
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1656
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
}, z.core.$strict>>;
|
|
1658
|
+
comparison: z.ZodOptional<z.ZodUnknown>;
|
|
1659
|
+
sparkline: z.ZodOptional<z.ZodUnknown>;
|
|
1660
|
+
}, z.core.$strict>;
|
|
1661
|
+
query: z.ZodObject<{
|
|
1662
|
+
resource: z.ZodString;
|
|
1663
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1664
|
+
field: z.ZodString;
|
|
1665
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1666
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1667
|
+
hour: "hour";
|
|
1668
|
+
day: "day";
|
|
1669
|
+
week: "week";
|
|
1670
|
+
month: "month";
|
|
1671
|
+
quarter: "quarter";
|
|
1672
|
+
year: "year";
|
|
1673
|
+
}>>;
|
|
1674
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1675
|
+
agg: z.ZodEnum<{
|
|
881
1676
|
sum: "sum";
|
|
882
1677
|
count: "count";
|
|
1678
|
+
count_distinct: "count_distinct";
|
|
883
1679
|
avg: "avg";
|
|
884
1680
|
min: "min";
|
|
885
1681
|
max: "max";
|
|
886
1682
|
median: "median";
|
|
887
1683
|
}>;
|
|
888
1684
|
field: z.ZodOptional<z.ZodString>;
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
1685
|
+
as: z.ZodString;
|
|
1686
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1687
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1688
|
+
calc: z.ZodString;
|
|
1689
|
+
as: z.ZodString;
|
|
1690
|
+
}, z.core.$strict>]>>>;
|
|
1691
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1692
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
892
1693
|
field: z.ZodString;
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
truncation: z.ZodEnum<{
|
|
1694
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1696
|
+
hour: "hour";
|
|
897
1697
|
day: "day";
|
|
898
1698
|
week: "week";
|
|
899
1699
|
month: "month";
|
|
1700
|
+
quarter: "quarter";
|
|
900
1701
|
year: "year";
|
|
901
|
-
}
|
|
1702
|
+
}>>;
|
|
902
1703
|
timezone: z.ZodOptional<z.ZodString>;
|
|
903
|
-
}, z.core.$
|
|
904
|
-
|
|
905
|
-
}, z.core.$strict>], "type">>;
|
|
906
|
-
target: z.ZodLiteral<"kpi_card">;
|
|
907
|
-
kpi_card: z.ZodOptional<z.ZodUnknown>;
|
|
908
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
909
|
-
resource: z.ZodString;
|
|
910
|
-
select: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
911
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
1704
|
+
}, z.core.$strict>]>>>;
|
|
1705
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
912
1706
|
field: z.ZodString;
|
|
913
|
-
direction: z.ZodEnum<{
|
|
1707
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
914
1708
|
asc: "asc";
|
|
915
1709
|
desc: "desc";
|
|
916
|
-
}
|
|
917
|
-
}, z.core.$
|
|
1710
|
+
}>>;
|
|
1711
|
+
}, z.core.$strict>>>;
|
|
918
1712
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
919
|
-
|
|
1713
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1714
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
1715
|
+
field: z.ZodString;
|
|
1716
|
+
grain: z.ZodEnum<{
|
|
1717
|
+
hour: "hour";
|
|
1718
|
+
day: "day";
|
|
1719
|
+
week: "week";
|
|
1720
|
+
month: "month";
|
|
1721
|
+
quarter: "quarter";
|
|
1722
|
+
year: "year";
|
|
1723
|
+
}>;
|
|
1724
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1725
|
+
}, z.core.$strict>>;
|
|
1726
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
1727
|
+
field: z.ZodString;
|
|
1728
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
1729
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
1730
|
+
}, z.core.$strict>>;
|
|
1731
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1732
|
+
field: z.ZodString;
|
|
1733
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1734
|
+
label: z.ZodString;
|
|
1735
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1736
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1737
|
+
}, z.core.$strict>>;
|
|
1738
|
+
}, z.core.$strict>>;
|
|
1739
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1740
|
+
calc: z.ZodString;
|
|
1741
|
+
as: z.ZodString;
|
|
1742
|
+
}, z.core.$strict>>>;
|
|
1743
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1744
|
+
}, z.core.$strict>;
|
|
920
1745
|
}, z.core.$strip>, z.ZodObject<{
|
|
921
1746
|
id: z.ZodOptional<z.ZodString>;
|
|
922
1747
|
group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -933,56 +1758,128 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
933
1758
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
934
1759
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
935
1760
|
order: z.ZodOptional<z.ZodNumber>;
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1761
|
+
target: z.ZodLiteral<"gauge_card">;
|
|
1762
|
+
card: z.ZodObject<{
|
|
1763
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1764
|
+
value: z.ZodObject<{
|
|
1765
|
+
field: z.ZodString;
|
|
1766
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1767
|
+
number: "number";
|
|
1768
|
+
compact_number: "compact_number";
|
|
1769
|
+
currency: "currency";
|
|
1770
|
+
percent: "percent";
|
|
1771
|
+
percent_delta: "percent_delta";
|
|
1772
|
+
number_delta: "number_delta";
|
|
1773
|
+
currency_delta: "currency_delta";
|
|
1774
|
+
}>>;
|
|
1775
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1776
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
1777
|
+
}, z.core.$strict>;
|
|
1778
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
1779
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1780
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1781
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1782
|
+
}, z.core.$strict>>;
|
|
1783
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
1784
|
+
valueField: z.ZodString;
|
|
1785
|
+
targetValue: z.ZodOptional<z.ZodNumber>;
|
|
1786
|
+
targetField: z.ZodOptional<z.ZodString>;
|
|
1787
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1788
|
+
number: "number";
|
|
1789
|
+
compact_number: "compact_number";
|
|
1790
|
+
currency: "currency";
|
|
1791
|
+
percent: "percent";
|
|
1792
|
+
percent_delta: "percent_delta";
|
|
1793
|
+
number_delta: "number_delta";
|
|
1794
|
+
currency_delta: "currency_delta";
|
|
1795
|
+
}>>;
|
|
1796
|
+
}, z.core.$strict>>;
|
|
1797
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1798
|
+
}, z.core.$strict>;
|
|
1799
|
+
query: z.ZodObject<{
|
|
1800
|
+
resource: z.ZodString;
|
|
1801
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1802
|
+
field: z.ZodString;
|
|
1803
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1804
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1805
|
+
hour: "hour";
|
|
1806
|
+
day: "day";
|
|
1807
|
+
week: "week";
|
|
1808
|
+
month: "month";
|
|
1809
|
+
quarter: "quarter";
|
|
1810
|
+
year: "year";
|
|
1811
|
+
}>>;
|
|
1812
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1813
|
+
agg: z.ZodEnum<{
|
|
947
1814
|
sum: "sum";
|
|
948
1815
|
count: "count";
|
|
1816
|
+
count_distinct: "count_distinct";
|
|
949
1817
|
avg: "avg";
|
|
950
1818
|
min: "min";
|
|
951
1819
|
max: "max";
|
|
952
1820
|
median: "median";
|
|
953
1821
|
}>;
|
|
954
1822
|
field: z.ZodOptional<z.ZodString>;
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
1823
|
+
as: z.ZodString;
|
|
1824
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1825
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1826
|
+
calc: z.ZodString;
|
|
1827
|
+
as: z.ZodString;
|
|
1828
|
+
}, z.core.$strict>]>>>;
|
|
1829
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1830
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
961
1831
|
field: z.ZodString;
|
|
962
|
-
|
|
1832
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1833
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1834
|
+
hour: "hour";
|
|
963
1835
|
day: "day";
|
|
964
1836
|
week: "week";
|
|
965
1837
|
month: "month";
|
|
1838
|
+
quarter: "quarter";
|
|
966
1839
|
year: "year";
|
|
967
|
-
}
|
|
1840
|
+
}>>;
|
|
968
1841
|
timezone: z.ZodOptional<z.ZodString>;
|
|
969
|
-
}, z.core.$
|
|
970
|
-
|
|
971
|
-
}, z.core.$strict>], "type">>;
|
|
972
|
-
target: z.ZodLiteral<"gauge_card">;
|
|
973
|
-
gauge_card: z.ZodOptional<z.ZodUnknown>;
|
|
974
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
975
|
-
resource: z.ZodString;
|
|
976
|
-
select: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
977
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
1842
|
+
}, z.core.$strict>]>>>;
|
|
1843
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
978
1844
|
field: z.ZodString;
|
|
979
|
-
direction: z.ZodEnum<{
|
|
1845
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
980
1846
|
asc: "asc";
|
|
981
1847
|
desc: "desc";
|
|
982
|
-
}
|
|
983
|
-
}, z.core.$
|
|
1848
|
+
}>>;
|
|
1849
|
+
}, z.core.$strict>>>;
|
|
984
1850
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
985
|
-
|
|
1851
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1852
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
1853
|
+
field: z.ZodString;
|
|
1854
|
+
grain: z.ZodEnum<{
|
|
1855
|
+
hour: "hour";
|
|
1856
|
+
day: "day";
|
|
1857
|
+
week: "week";
|
|
1858
|
+
month: "month";
|
|
1859
|
+
quarter: "quarter";
|
|
1860
|
+
year: "year";
|
|
1861
|
+
}>;
|
|
1862
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1863
|
+
}, z.core.$strict>>;
|
|
1864
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
1865
|
+
field: z.ZodString;
|
|
1866
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
1867
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
1868
|
+
}, z.core.$strict>>;
|
|
1869
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1870
|
+
field: z.ZodString;
|
|
1871
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1872
|
+
label: z.ZodString;
|
|
1873
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1874
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1875
|
+
}, z.core.$strict>>;
|
|
1876
|
+
}, z.core.$strict>>;
|
|
1877
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1878
|
+
calc: z.ZodString;
|
|
1879
|
+
as: z.ZodString;
|
|
1880
|
+
}, z.core.$strict>>>;
|
|
1881
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1882
|
+
}, z.core.$strict>;
|
|
986
1883
|
}, z.core.$strip>, z.ZodObject<{
|
|
987
1884
|
id: z.ZodOptional<z.ZodString>;
|
|
988
1885
|
group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -999,54 +1896,137 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
999
1896
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
1000
1897
|
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1001
1898
|
order: z.ZodOptional<z.ZodNumber>;
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1899
|
+
target: z.ZodLiteral<"pivot_table">;
|
|
1900
|
+
pivot: z.ZodObject<{
|
|
1901
|
+
rows: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1902
|
+
field: z.ZodString;
|
|
1903
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1904
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1905
|
+
number: "number";
|
|
1906
|
+
compact_number: "compact_number";
|
|
1907
|
+
currency: "currency";
|
|
1908
|
+
percent: "percent";
|
|
1909
|
+
percent_delta: "percent_delta";
|
|
1910
|
+
number_delta: "number_delta";
|
|
1911
|
+
currency_delta: "currency_delta";
|
|
1912
|
+
}>>;
|
|
1913
|
+
}, z.core.$strict>]>>;
|
|
1914
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1915
|
+
field: z.ZodString;
|
|
1916
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1917
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1918
|
+
number: "number";
|
|
1919
|
+
compact_number: "compact_number";
|
|
1920
|
+
currency: "currency";
|
|
1921
|
+
percent: "percent";
|
|
1922
|
+
percent_delta: "percent_delta";
|
|
1923
|
+
number_delta: "number_delta";
|
|
1924
|
+
currency_delta: "currency_delta";
|
|
1925
|
+
}>>;
|
|
1926
|
+
}, z.core.$strict>]>>>;
|
|
1927
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1928
|
+
field: z.ZodString;
|
|
1929
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1930
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1931
|
+
number: "number";
|
|
1932
|
+
compact_number: "compact_number";
|
|
1933
|
+
currency: "currency";
|
|
1934
|
+
percent: "percent";
|
|
1935
|
+
percent_delta: "percent_delta";
|
|
1936
|
+
number_delta: "number_delta";
|
|
1937
|
+
currency_delta: "currency_delta";
|
|
1938
|
+
}>>;
|
|
1939
|
+
aggregation: z.ZodOptional<z.ZodEnum<{
|
|
1940
|
+
sum: "sum";
|
|
1941
|
+
count: "count";
|
|
1942
|
+
avg: "avg";
|
|
1943
|
+
min: "min";
|
|
1944
|
+
max: "max";
|
|
1945
|
+
}>>;
|
|
1946
|
+
}, z.core.$strict>>;
|
|
1947
|
+
}, z.core.$strict>;
|
|
1948
|
+
query: z.ZodObject<{
|
|
1949
|
+
resource: z.ZodString;
|
|
1950
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1951
|
+
field: z.ZodString;
|
|
1952
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1953
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1954
|
+
hour: "hour";
|
|
1955
|
+
day: "day";
|
|
1956
|
+
week: "week";
|
|
1957
|
+
month: "month";
|
|
1958
|
+
quarter: "quarter";
|
|
1959
|
+
year: "year";
|
|
1960
|
+
}>>;
|
|
1961
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1962
|
+
agg: z.ZodEnum<{
|
|
1013
1963
|
sum: "sum";
|
|
1014
1964
|
count: "count";
|
|
1965
|
+
count_distinct: "count_distinct";
|
|
1015
1966
|
avg: "avg";
|
|
1016
1967
|
min: "min";
|
|
1017
1968
|
max: "max";
|
|
1018
1969
|
median: "median";
|
|
1019
1970
|
}>;
|
|
1020
1971
|
field: z.ZodOptional<z.ZodString>;
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1972
|
+
as: z.ZodString;
|
|
1973
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1974
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1975
|
+
calc: z.ZodString;
|
|
1976
|
+
as: z.ZodString;
|
|
1977
|
+
}, z.core.$strict>]>>>;
|
|
1978
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1979
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1024
1980
|
field: z.ZodString;
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
truncation: z.ZodEnum<{
|
|
1981
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1982
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1983
|
+
hour: "hour";
|
|
1029
1984
|
day: "day";
|
|
1030
1985
|
week: "week";
|
|
1031
1986
|
month: "month";
|
|
1987
|
+
quarter: "quarter";
|
|
1032
1988
|
year: "year";
|
|
1033
|
-
}
|
|
1989
|
+
}>>;
|
|
1034
1990
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1035
|
-
}, z.core.$
|
|
1036
|
-
|
|
1037
|
-
}, z.core.$strict>], "type">>;
|
|
1038
|
-
target: z.ZodLiteral<"pivot_table">;
|
|
1039
|
-
pivot_table: z.ZodOptional<z.ZodUnknown>;
|
|
1040
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
1041
|
-
resource: z.ZodString;
|
|
1042
|
-
select: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1043
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
1991
|
+
}, z.core.$strict>]>>>;
|
|
1992
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1044
1993
|
field: z.ZodString;
|
|
1045
|
-
direction: z.ZodEnum<{
|
|
1994
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1046
1995
|
asc: "asc";
|
|
1047
1996
|
desc: "desc";
|
|
1048
|
-
}
|
|
1049
|
-
}, z.core.$
|
|
1997
|
+
}>>;
|
|
1998
|
+
}, z.core.$strict>>>;
|
|
1050
1999
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1051
|
-
|
|
2000
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2001
|
+
timeSeries: z.ZodOptional<z.ZodObject<{
|
|
2002
|
+
field: z.ZodString;
|
|
2003
|
+
grain: z.ZodEnum<{
|
|
2004
|
+
hour: "hour";
|
|
2005
|
+
day: "day";
|
|
2006
|
+
week: "week";
|
|
2007
|
+
month: "month";
|
|
2008
|
+
quarter: "quarter";
|
|
2009
|
+
year: "year";
|
|
2010
|
+
}>;
|
|
2011
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2012
|
+
}, z.core.$strict>>;
|
|
2013
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
2014
|
+
field: z.ZodString;
|
|
2015
|
+
gte: z.ZodOptional<z.ZodUnknown>;
|
|
2016
|
+
lt: z.ZodOptional<z.ZodUnknown>;
|
|
2017
|
+
}, z.core.$strict>>;
|
|
2018
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
2019
|
+
field: z.ZodString;
|
|
2020
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
2021
|
+
label: z.ZodString;
|
|
2022
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
2023
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2024
|
+
}, z.core.$strict>>;
|
|
2025
|
+
}, z.core.$strict>>;
|
|
2026
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2027
|
+
calc: z.ZodString;
|
|
2028
|
+
as: z.ZodString;
|
|
2029
|
+
}, z.core.$strict>>>;
|
|
2030
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2031
|
+
}, z.core.$strict>;
|
|
1052
2032
|
}, z.core.$strip>], "target">;
|