@adminforth/dashboard 1.3.0 → 1.4.1
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 +103 -15
- package/custom/api/dashboardApi.ts +9 -8
- package/custom/model/dashboard.types.ts +63 -270
- package/custom/model/dashboardTopics.ts +5 -0
- package/custom/runtime/DashboardGroup.vue +2 -2
- package/custom/runtime/DashboardPage.vue +17 -7
- package/custom/runtime/DashboardRuntime.vue +20 -8
- package/custom/runtime/WidgetRenderer.vue +1 -2
- package/custom/runtime/WidgetShell.vue +3 -3
- package/custom/skills/adminforth-dashboard/SKILL.md +110 -3
- package/custom/widgets/{gauge-card/GaugeCardWidget.vue → GaugeCardWidget.vue} +63 -61
- package/custom/widgets/{kpi-card/KpiCardWidget.vue → KpiCardWidget.vue} +35 -33
- package/custom/widgets/{pivot-table/PivotTableWidget.vue → PivotTableWidget.vue} +71 -68
- package/custom/widgets/{table/TableWidget.vue → TableWidget.vue} +5 -5
- package/custom/widgets/chart/{bar/BarChart.vue → BarChart.vue} +2 -2
- package/custom/widgets/chart/ChartWidget.vue +24 -18
- package/{dist/custom/widgets/chart/funnel → custom/widgets/chart}/FunnelChart.vue +80 -78
- package/{dist/custom/widgets/chart/line → custom/widgets/chart}/LineChart.vue +2 -2
- package/custom/widgets/chart/{pie/PieChart.vue → PieChart.vue} +2 -2
- package/{dist/custom/widgets/chart/stacked-bar → custom/widgets/chart}/StackedBarChart.vue +97 -95
- package/custom/widgets/chart/chart.types.ts +0 -28
- package/dist/custom/api/dashboardApi.d.ts +4 -7
- package/dist/custom/api/dashboardApi.js +5 -0
- package/dist/custom/api/dashboardApi.ts +9 -8
- package/dist/custom/model/dashboard.types.d.ts +40 -31
- package/dist/custom/model/dashboard.types.js +13 -152
- package/dist/custom/model/dashboard.types.ts +63 -270
- package/dist/custom/model/dashboardTopics.d.ts +2 -0
- package/dist/custom/model/dashboardTopics.js +8 -0
- package/dist/custom/model/dashboardTopics.ts +5 -0
- package/dist/custom/queries/useDashboardConfig.d.ts +116 -96
- package/dist/custom/queries/useWidgetData.d.ts +116 -96
- package/dist/custom/runtime/DashboardGroup.vue +2 -2
- package/dist/custom/runtime/DashboardPage.vue +17 -7
- package/dist/custom/runtime/DashboardRuntime.vue +20 -8
- package/dist/custom/runtime/WidgetRenderer.vue +1 -2
- package/dist/custom/runtime/WidgetShell.vue +3 -3
- package/dist/custom/skills/adminforth-dashboard/SKILL.md +110 -3
- package/dist/custom/widgets/{gauge-card/GaugeCardWidget.vue → GaugeCardWidget.vue} +63 -61
- package/dist/custom/widgets/{kpi-card/KpiCardWidget.vue → KpiCardWidget.vue} +35 -33
- package/dist/custom/widgets/{pivot-table/PivotTableWidget.vue → PivotTableWidget.vue} +71 -68
- package/dist/custom/widgets/{table/TableWidget.vue → TableWidget.vue} +5 -5
- package/dist/custom/widgets/chart/{bar/BarChart.vue → BarChart.vue} +2 -2
- package/dist/custom/widgets/chart/ChartWidget.vue +24 -18
- package/{custom/widgets/chart/funnel → dist/custom/widgets/chart}/FunnelChart.vue +80 -78
- package/{custom/widgets/chart/line → dist/custom/widgets/chart}/LineChart.vue +2 -2
- package/dist/custom/widgets/chart/{pie/PieChart.vue → PieChart.vue} +2 -2
- package/{custom/widgets/chart/stacked-bar → dist/custom/widgets/chart}/StackedBarChart.vue +97 -95
- package/dist/custom/widgets/chart/chart.types.d.ts +0 -2
- package/dist/custom/widgets/chart/chart.types.js +0 -23
- package/dist/custom/widgets/chart/chart.types.ts +0 -28
- package/dist/endpoint/dashboard.d.ts +6 -2
- package/dist/endpoint/dashboard.js +29 -5
- package/dist/endpoint/groups.d.ts +2 -21
- package/dist/endpoint/groups.js +18 -16
- package/dist/endpoint/widgets.d.ts +2 -4
- package/dist/endpoint/widgets.js +28 -74
- package/dist/index.js +1 -3
- package/dist/schema/api.d.ts +2172 -500
- package/dist/schema/api.js +21 -13
- package/dist/schema/widget.d.ts +1076 -263
- package/dist/schema/widget.js +108 -49
- package/dist/services/dashboardConfigService.d.ts +0 -10
- package/dist/services/dashboardConfigService.js +6 -21
- package/dist/services/widgetDataService.d.ts +2 -1
- package/dist/services/widgetDataService.js +266 -206
- package/endpoint/dashboard.ts +47 -7
- package/endpoint/groups.ts +25 -42
- package/endpoint/widgets.ts +41 -96
- package/index.ts +0 -3
- package/package.json +3 -3
- package/schema/api.ts +23 -13
- package/schema/widget.ts +119 -55
- package/services/dashboardConfigService.ts +6 -25
- package/services/widgetDataService.ts +350 -237
- package/custom/widgets/chart/histogram/HistogramChart.vue +0 -21
- package/dist/custom/widgets/chart/histogram/HistogramChart.vue +0 -21
- package/dist/services/widgetConfigValidator.d.ts +0 -8
- package/dist/services/widgetConfigValidator.js +0 -27
- package/services/widgetConfigValidator.ts +0 -61
package/dist/schema/widget.d.ts
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export type DashboardWidgetConfigValidationError
|
|
3
|
-
field: string;
|
|
4
|
-
message: string;
|
|
5
|
-
};
|
|
2
|
+
export type { DashboardWidgetConfigValidationError } from '../custom/model/dashboard.types.js';
|
|
6
3
|
export declare const QueryConfigSchema: z.ZodObject<{
|
|
7
4
|
resource: z.ZodString;
|
|
8
5
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
9
6
|
field: z.ZodString;
|
|
10
7
|
as: z.ZodOptional<z.ZodString>;
|
|
11
8
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
12
|
-
hour: "hour";
|
|
13
9
|
day: "day";
|
|
14
10
|
week: "week";
|
|
15
11
|
month: "month";
|
|
16
|
-
quarter: "quarter";
|
|
17
12
|
year: "year";
|
|
18
13
|
}>>;
|
|
19
14
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -34,20 +29,18 @@ export declare const QueryConfigSchema: z.ZodObject<{
|
|
|
34
29
|
as: z.ZodString;
|
|
35
30
|
}, z.core.$strict>]>>>;
|
|
36
31
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
37
|
-
|
|
32
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
38
33
|
field: z.ZodString;
|
|
39
34
|
as: z.ZodOptional<z.ZodString>;
|
|
40
35
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
41
|
-
hour: "hour";
|
|
42
36
|
day: "day";
|
|
43
37
|
week: "week";
|
|
44
38
|
month: "month";
|
|
45
|
-
quarter: "quarter";
|
|
46
39
|
year: "year";
|
|
47
40
|
}>>;
|
|
48
41
|
timezone: z.ZodOptional<z.ZodString>;
|
|
49
42
|
}, z.core.$strict>]>>>;
|
|
50
|
-
|
|
43
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
44
|
field: z.ZodString;
|
|
52
45
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
53
46
|
asc: "asc";
|
|
@@ -56,22 +49,20 @@ export declare const QueryConfigSchema: z.ZodObject<{
|
|
|
56
49
|
}, z.core.$strict>>>;
|
|
57
50
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
58
51
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
59
|
-
|
|
52
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
60
53
|
field: z.ZodString;
|
|
61
54
|
grain: z.ZodEnum<{
|
|
62
|
-
hour: "hour";
|
|
63
55
|
day: "day";
|
|
64
56
|
week: "week";
|
|
65
57
|
month: "month";
|
|
66
|
-
quarter: "quarter";
|
|
67
58
|
year: "year";
|
|
68
59
|
}>;
|
|
69
60
|
timezone: z.ZodOptional<z.ZodString>;
|
|
70
61
|
}, z.core.$strict>>;
|
|
71
62
|
period: z.ZodOptional<z.ZodObject<{
|
|
72
63
|
field: z.ZodString;
|
|
73
|
-
gte: z.ZodOptional<z.
|
|
74
|
-
lt: z.ZodOptional<z.
|
|
64
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
65
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
75
66
|
}, z.core.$strict>>;
|
|
76
67
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
77
68
|
field: z.ZodString;
|
|
@@ -85,7 +76,7 @@ export declare const QueryConfigSchema: z.ZodObject<{
|
|
|
85
76
|
calc: z.ZodString;
|
|
86
77
|
as: z.ZodString;
|
|
87
78
|
}, z.core.$strict>>>;
|
|
88
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
79
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
89
80
|
}, z.core.$strict>;
|
|
90
81
|
export declare const FunnelQueryConfigSchema: z.ZodObject<{
|
|
91
82
|
steps: z.ZodArray<z.ZodObject<{
|
|
@@ -107,6 +98,10 @@ export declare const FunnelQueryConfigSchema: z.ZodObject<{
|
|
|
107
98
|
}, z.core.$strict>;
|
|
108
99
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
109
100
|
}, z.core.$strict>>;
|
|
101
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
+
calc: z.ZodString;
|
|
103
|
+
as: z.ZodString;
|
|
104
|
+
}, z.core.$strict>>>;
|
|
110
105
|
}, z.core.$strict>;
|
|
111
106
|
export declare const ChartConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
112
107
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -143,7 +138,7 @@ export declare const ChartConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
143
138
|
}, z.core.$strict>>;
|
|
144
139
|
color: z.ZodOptional<z.ZodString>;
|
|
145
140
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
146
|
-
}, z.core.$
|
|
141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
147
142
|
title: z.ZodOptional<z.ZodString>;
|
|
148
143
|
type: z.ZodLiteral<"bar">;
|
|
149
144
|
x: z.ZodObject<{
|
|
@@ -173,7 +168,7 @@ export declare const ChartConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
173
168
|
}>>;
|
|
174
169
|
}, z.core.$strict>;
|
|
175
170
|
color: z.ZodOptional<z.ZodString>;
|
|
176
|
-
}, z.core.$
|
|
171
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
177
172
|
title: z.ZodOptional<z.ZodString>;
|
|
178
173
|
type: z.ZodLiteral<"stacked_bar">;
|
|
179
174
|
x: z.ZodObject<{
|
|
@@ -189,7 +184,7 @@ export declare const ChartConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
189
184
|
currency_delta: "currency_delta";
|
|
190
185
|
}>>;
|
|
191
186
|
}, z.core.$strict>;
|
|
192
|
-
y: z.ZodObject<{
|
|
187
|
+
y: z.ZodUnion<readonly [z.ZodObject<{
|
|
193
188
|
field: z.ZodString;
|
|
194
189
|
label: z.ZodOptional<z.ZodString>;
|
|
195
190
|
format: z.ZodOptional<z.ZodEnum<{
|
|
@@ -201,13 +196,25 @@ export declare const ChartConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
201
196
|
number_delta: "number_delta";
|
|
202
197
|
currency_delta: "currency_delta";
|
|
203
198
|
}>>;
|
|
204
|
-
}, z.core.$strict
|
|
205
|
-
series: z.ZodObject<{
|
|
199
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
206
200
|
field: z.ZodString;
|
|
207
201
|
label: z.ZodOptional<z.ZodString>;
|
|
208
|
-
|
|
202
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
203
|
+
number: "number";
|
|
204
|
+
compact_number: "compact_number";
|
|
205
|
+
currency: "currency";
|
|
206
|
+
percent: "percent";
|
|
207
|
+
percent_delta: "percent_delta";
|
|
208
|
+
number_delta: "number_delta";
|
|
209
|
+
currency_delta: "currency_delta";
|
|
210
|
+
}>>;
|
|
211
|
+
}, z.core.$strict>>]>;
|
|
212
|
+
series: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
field: z.ZodString;
|
|
214
|
+
label: z.ZodOptional<z.ZodString>;
|
|
215
|
+
}, z.core.$strict>>;
|
|
209
216
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
|
-
}, z.core.$
|
|
217
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
211
218
|
title: z.ZodOptional<z.ZodString>;
|
|
212
219
|
type: z.ZodLiteral<"pie">;
|
|
213
220
|
label: z.ZodObject<{
|
|
@@ -237,7 +244,7 @@ export declare const ChartConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
237
244
|
}>>;
|
|
238
245
|
}, z.core.$strict>;
|
|
239
246
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
240
|
-
}, z.core.$
|
|
247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
241
248
|
title: z.ZodOptional<z.ZodString>;
|
|
242
249
|
type: z.ZodLiteral<"histogram">;
|
|
243
250
|
x: z.ZodObject<{
|
|
@@ -272,7 +279,7 @@ export declare const ChartConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
272
279
|
max: z.ZodOptional<z.ZodNumber>;
|
|
273
280
|
}, z.core.$strict>>>;
|
|
274
281
|
color: z.ZodOptional<z.ZodString>;
|
|
275
|
-
}, z.core.$
|
|
282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
276
283
|
title: z.ZodOptional<z.ZodString>;
|
|
277
284
|
type: z.ZodLiteral<"funnel">;
|
|
278
285
|
label: z.ZodOptional<z.ZodObject<{
|
|
@@ -302,11 +309,10 @@ export declare const ChartConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
302
309
|
}>>;
|
|
303
310
|
}, z.core.$strict>>;
|
|
304
311
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
305
|
-
}, z.core.$
|
|
312
|
+
}, z.core.$strict>], "type">;
|
|
306
313
|
export declare const EmptyWidgetConfigSchema: z.ZodObject<{
|
|
307
|
-
id: z.ZodOptional<z.ZodString>;
|
|
308
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
309
314
|
label: z.ZodOptional<z.ZodString>;
|
|
315
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
310
316
|
size: z.ZodOptional<z.ZodEnum<{
|
|
311
317
|
small: "small";
|
|
312
318
|
medium: "medium";
|
|
@@ -316,15 +322,31 @@ export declare const EmptyWidgetConfigSchema: z.ZodObject<{
|
|
|
316
322
|
}>>;
|
|
317
323
|
width: z.ZodOptional<z.ZodNumber>;
|
|
318
324
|
height: z.ZodOptional<z.ZodNumber>;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
325
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
327
|
+
id: z.ZodString;
|
|
328
|
+
group_id: z.ZodString;
|
|
329
|
+
order: z.ZodNumber;
|
|
322
330
|
target: z.ZodLiteral<"empty">;
|
|
323
|
-
}, z.core.$
|
|
324
|
-
export declare const
|
|
325
|
-
|
|
326
|
-
|
|
331
|
+
}, z.core.$strict>;
|
|
332
|
+
export declare const EditableDashboardWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
333
|
+
label: z.ZodOptional<z.ZodString>;
|
|
334
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
335
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
336
|
+
small: "small";
|
|
337
|
+
medium: "medium";
|
|
338
|
+
large: "large";
|
|
339
|
+
wide: "wide";
|
|
340
|
+
full: "full";
|
|
341
|
+
}>>;
|
|
342
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
343
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
346
|
+
target: z.ZodLiteral<"empty">;
|
|
347
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
327
348
|
label: z.ZodOptional<z.ZodString>;
|
|
349
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
328
350
|
size: z.ZodOptional<z.ZodEnum<{
|
|
329
351
|
small: "small";
|
|
330
352
|
medium: "medium";
|
|
@@ -334,9 +356,8 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
334
356
|
}>>;
|
|
335
357
|
width: z.ZodOptional<z.ZodNumber>;
|
|
336
358
|
height: z.ZodOptional<z.ZodNumber>;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
360
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
340
361
|
target: z.ZodLiteral<"table">;
|
|
341
362
|
table: z.ZodOptional<z.ZodObject<{
|
|
342
363
|
columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -353,7 +374,7 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
353
374
|
}>>;
|
|
354
375
|
}, z.core.$strict>]>>>;
|
|
355
376
|
pagination: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
-
|
|
377
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
357
378
|
}, z.core.$strict>>;
|
|
358
379
|
query: z.ZodObject<{
|
|
359
380
|
resource: z.ZodString;
|
|
@@ -361,11 +382,9 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
361
382
|
field: z.ZodString;
|
|
362
383
|
as: z.ZodOptional<z.ZodString>;
|
|
363
384
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
364
|
-
hour: "hour";
|
|
365
385
|
day: "day";
|
|
366
386
|
week: "week";
|
|
367
387
|
month: "month";
|
|
368
|
-
quarter: "quarter";
|
|
369
388
|
year: "year";
|
|
370
389
|
}>>;
|
|
371
390
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -386,20 +405,18 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
386
405
|
as: z.ZodString;
|
|
387
406
|
}, z.core.$strict>]>>>;
|
|
388
407
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
389
|
-
|
|
408
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
390
409
|
field: z.ZodString;
|
|
391
410
|
as: z.ZodOptional<z.ZodString>;
|
|
392
411
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
393
|
-
hour: "hour";
|
|
394
412
|
day: "day";
|
|
395
413
|
week: "week";
|
|
396
414
|
month: "month";
|
|
397
|
-
quarter: "quarter";
|
|
398
415
|
year: "year";
|
|
399
416
|
}>>;
|
|
400
417
|
timezone: z.ZodOptional<z.ZodString>;
|
|
401
418
|
}, z.core.$strict>]>>>;
|
|
402
|
-
|
|
419
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
403
420
|
field: z.ZodString;
|
|
404
421
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
405
422
|
asc: "asc";
|
|
@@ -408,22 +425,20 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
408
425
|
}, z.core.$strict>>>;
|
|
409
426
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
410
427
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
411
|
-
|
|
428
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
412
429
|
field: z.ZodString;
|
|
413
430
|
grain: z.ZodEnum<{
|
|
414
|
-
hour: "hour";
|
|
415
431
|
day: "day";
|
|
416
432
|
week: "week";
|
|
417
433
|
month: "month";
|
|
418
|
-
quarter: "quarter";
|
|
419
434
|
year: "year";
|
|
420
435
|
}>;
|
|
421
436
|
timezone: z.ZodOptional<z.ZodString>;
|
|
422
437
|
}, z.core.$strict>>;
|
|
423
438
|
period: z.ZodOptional<z.ZodObject<{
|
|
424
439
|
field: z.ZodString;
|
|
425
|
-
gte: z.ZodOptional<z.
|
|
426
|
-
lt: z.ZodOptional<z.
|
|
440
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
441
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
427
442
|
}, z.core.$strict>>;
|
|
428
443
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
429
444
|
field: z.ZodString;
|
|
@@ -437,12 +452,11 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
437
452
|
calc: z.ZodString;
|
|
438
453
|
as: z.ZodString;
|
|
439
454
|
}, z.core.$strict>>>;
|
|
440
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
455
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
441
456
|
}, z.core.$strict>;
|
|
442
|
-
}, z.core.$
|
|
443
|
-
id: z.ZodOptional<z.ZodString>;
|
|
444
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
457
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
445
458
|
label: z.ZodOptional<z.ZodString>;
|
|
459
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
446
460
|
size: z.ZodOptional<z.ZodEnum<{
|
|
447
461
|
small: "small";
|
|
448
462
|
medium: "medium";
|
|
@@ -452,9 +466,8 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
452
466
|
}>>;
|
|
453
467
|
width: z.ZodOptional<z.ZodNumber>;
|
|
454
468
|
height: z.ZodOptional<z.ZodNumber>;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
469
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
470
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
458
471
|
target: z.ZodLiteral<"chart">;
|
|
459
472
|
chart: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
460
473
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -491,7 +504,7 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
491
504
|
}, z.core.$strict>>;
|
|
492
505
|
color: z.ZodOptional<z.ZodString>;
|
|
493
506
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
494
|
-
}, z.core.$
|
|
507
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
495
508
|
title: z.ZodOptional<z.ZodString>;
|
|
496
509
|
type: z.ZodLiteral<"bar">;
|
|
497
510
|
x: z.ZodObject<{
|
|
@@ -521,7 +534,7 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
521
534
|
}>>;
|
|
522
535
|
}, z.core.$strict>;
|
|
523
536
|
color: z.ZodOptional<z.ZodString>;
|
|
524
|
-
}, z.core.$
|
|
537
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
525
538
|
title: z.ZodOptional<z.ZodString>;
|
|
526
539
|
type: z.ZodLiteral<"stacked_bar">;
|
|
527
540
|
x: z.ZodObject<{
|
|
@@ -537,7 +550,7 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
537
550
|
currency_delta: "currency_delta";
|
|
538
551
|
}>>;
|
|
539
552
|
}, z.core.$strict>;
|
|
540
|
-
y: z.ZodObject<{
|
|
553
|
+
y: z.ZodUnion<readonly [z.ZodObject<{
|
|
541
554
|
field: z.ZodString;
|
|
542
555
|
label: z.ZodOptional<z.ZodString>;
|
|
543
556
|
format: z.ZodOptional<z.ZodEnum<{
|
|
@@ -549,13 +562,25 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
549
562
|
number_delta: "number_delta";
|
|
550
563
|
currency_delta: "currency_delta";
|
|
551
564
|
}>>;
|
|
552
|
-
}, z.core.$strict
|
|
553
|
-
series: z.ZodObject<{
|
|
565
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
554
566
|
field: z.ZodString;
|
|
555
567
|
label: z.ZodOptional<z.ZodString>;
|
|
556
|
-
|
|
568
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
569
|
+
number: "number";
|
|
570
|
+
compact_number: "compact_number";
|
|
571
|
+
currency: "currency";
|
|
572
|
+
percent: "percent";
|
|
573
|
+
percent_delta: "percent_delta";
|
|
574
|
+
number_delta: "number_delta";
|
|
575
|
+
currency_delta: "currency_delta";
|
|
576
|
+
}>>;
|
|
577
|
+
}, z.core.$strict>>]>;
|
|
578
|
+
series: z.ZodOptional<z.ZodObject<{
|
|
579
|
+
field: z.ZodString;
|
|
580
|
+
label: z.ZodOptional<z.ZodString>;
|
|
581
|
+
}, z.core.$strict>>;
|
|
557
582
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
558
|
-
}, z.core.$
|
|
583
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
559
584
|
title: z.ZodOptional<z.ZodString>;
|
|
560
585
|
type: z.ZodLiteral<"pie">;
|
|
561
586
|
label: z.ZodObject<{
|
|
@@ -585,7 +610,7 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
585
610
|
}>>;
|
|
586
611
|
}, z.core.$strict>;
|
|
587
612
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
588
|
-
}, z.core.$
|
|
613
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
589
614
|
title: z.ZodOptional<z.ZodString>;
|
|
590
615
|
type: z.ZodLiteral<"histogram">;
|
|
591
616
|
x: z.ZodObject<{
|
|
@@ -620,7 +645,7 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
620
645
|
max: z.ZodOptional<z.ZodNumber>;
|
|
621
646
|
}, z.core.$strict>>>;
|
|
622
647
|
color: z.ZodOptional<z.ZodString>;
|
|
623
|
-
}, z.core.$
|
|
648
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
624
649
|
title: z.ZodOptional<z.ZodString>;
|
|
625
650
|
type: z.ZodLiteral<"funnel">;
|
|
626
651
|
label: z.ZodOptional<z.ZodObject<{
|
|
@@ -650,18 +675,16 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
650
675
|
}>>;
|
|
651
676
|
}, z.core.$strict>>;
|
|
652
677
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
653
|
-
}, z.core.$
|
|
678
|
+
}, z.core.$strict>], "type">;
|
|
654
679
|
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
655
680
|
resource: z.ZodString;
|
|
656
681
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
657
682
|
field: z.ZodString;
|
|
658
683
|
as: z.ZodOptional<z.ZodString>;
|
|
659
684
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
660
|
-
hour: "hour";
|
|
661
685
|
day: "day";
|
|
662
686
|
week: "week";
|
|
663
687
|
month: "month";
|
|
664
|
-
quarter: "quarter";
|
|
665
688
|
year: "year";
|
|
666
689
|
}>>;
|
|
667
690
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -682,20 +705,18 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
682
705
|
as: z.ZodString;
|
|
683
706
|
}, z.core.$strict>]>>>;
|
|
684
707
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
685
|
-
|
|
708
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
686
709
|
field: z.ZodString;
|
|
687
710
|
as: z.ZodOptional<z.ZodString>;
|
|
688
711
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
689
|
-
hour: "hour";
|
|
690
712
|
day: "day";
|
|
691
713
|
week: "week";
|
|
692
714
|
month: "month";
|
|
693
|
-
quarter: "quarter";
|
|
694
715
|
year: "year";
|
|
695
716
|
}>>;
|
|
696
717
|
timezone: z.ZodOptional<z.ZodString>;
|
|
697
718
|
}, z.core.$strict>]>>>;
|
|
698
|
-
|
|
719
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
699
720
|
field: z.ZodString;
|
|
700
721
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
701
722
|
asc: "asc";
|
|
@@ -704,22 +725,20 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
704
725
|
}, z.core.$strict>>>;
|
|
705
726
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
706
727
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
707
|
-
|
|
728
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
708
729
|
field: z.ZodString;
|
|
709
730
|
grain: z.ZodEnum<{
|
|
710
|
-
hour: "hour";
|
|
711
731
|
day: "day";
|
|
712
732
|
week: "week";
|
|
713
733
|
month: "month";
|
|
714
|
-
quarter: "quarter";
|
|
715
734
|
year: "year";
|
|
716
735
|
}>;
|
|
717
736
|
timezone: z.ZodOptional<z.ZodString>;
|
|
718
737
|
}, z.core.$strict>>;
|
|
719
738
|
period: z.ZodOptional<z.ZodObject<{
|
|
720
739
|
field: z.ZodString;
|
|
721
|
-
gte: z.ZodOptional<z.
|
|
722
|
-
lt: z.ZodOptional<z.
|
|
740
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
741
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
723
742
|
}, z.core.$strict>>;
|
|
724
743
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
725
744
|
field: z.ZodString;
|
|
@@ -733,7 +752,7 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
733
752
|
calc: z.ZodString;
|
|
734
753
|
as: z.ZodString;
|
|
735
754
|
}, z.core.$strict>>>;
|
|
736
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
755
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
737
756
|
}, z.core.$strict>, z.ZodObject<{
|
|
738
757
|
steps: z.ZodArray<z.ZodObject<{
|
|
739
758
|
name: z.ZodString;
|
|
@@ -754,11 +773,14 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
754
773
|
}, z.core.$strict>;
|
|
755
774
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
756
775
|
}, z.core.$strict>>;
|
|
776
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
777
|
+
calc: z.ZodString;
|
|
778
|
+
as: z.ZodString;
|
|
779
|
+
}, z.core.$strict>>>;
|
|
757
780
|
}, z.core.$strict>]>;
|
|
758
|
-
}, z.core.$
|
|
759
|
-
id: z.ZodOptional<z.ZodString>;
|
|
760
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
781
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
761
782
|
label: z.ZodOptional<z.ZodString>;
|
|
783
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
762
784
|
size: z.ZodOptional<z.ZodEnum<{
|
|
763
785
|
small: "small";
|
|
764
786
|
medium: "medium";
|
|
@@ -768,9 +790,8 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
768
790
|
}>>;
|
|
769
791
|
width: z.ZodOptional<z.ZodNumber>;
|
|
770
792
|
height: z.ZodOptional<z.ZodNumber>;
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
793
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
794
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
774
795
|
target: z.ZodLiteral<"kpi_card">;
|
|
775
796
|
card: z.ZodObject<{
|
|
776
797
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -792,8 +813,8 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
792
813
|
text: z.ZodOptional<z.ZodString>;
|
|
793
814
|
field: z.ZodOptional<z.ZodString>;
|
|
794
815
|
}, z.core.$strict>>;
|
|
795
|
-
comparison: z.ZodOptional<z.
|
|
796
|
-
sparkline: z.ZodOptional<z.
|
|
816
|
+
comparison: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
817
|
+
sparkline: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
797
818
|
}, z.core.$strict>;
|
|
798
819
|
query: z.ZodObject<{
|
|
799
820
|
resource: z.ZodString;
|
|
@@ -801,11 +822,9 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
801
822
|
field: z.ZodString;
|
|
802
823
|
as: z.ZodOptional<z.ZodString>;
|
|
803
824
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
804
|
-
hour: "hour";
|
|
805
825
|
day: "day";
|
|
806
826
|
week: "week";
|
|
807
827
|
month: "month";
|
|
808
|
-
quarter: "quarter";
|
|
809
828
|
year: "year";
|
|
810
829
|
}>>;
|
|
811
830
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -826,20 +845,18 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
826
845
|
as: z.ZodString;
|
|
827
846
|
}, z.core.$strict>]>>>;
|
|
828
847
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
829
|
-
|
|
848
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
830
849
|
field: z.ZodString;
|
|
831
850
|
as: z.ZodOptional<z.ZodString>;
|
|
832
851
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
833
|
-
hour: "hour";
|
|
834
852
|
day: "day";
|
|
835
853
|
week: "week";
|
|
836
854
|
month: "month";
|
|
837
|
-
quarter: "quarter";
|
|
838
855
|
year: "year";
|
|
839
856
|
}>>;
|
|
840
857
|
timezone: z.ZodOptional<z.ZodString>;
|
|
841
858
|
}, z.core.$strict>]>>>;
|
|
842
|
-
|
|
859
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
843
860
|
field: z.ZodString;
|
|
844
861
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
845
862
|
asc: "asc";
|
|
@@ -848,22 +865,20 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
848
865
|
}, z.core.$strict>>>;
|
|
849
866
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
850
867
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
851
|
-
|
|
868
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
852
869
|
field: z.ZodString;
|
|
853
870
|
grain: z.ZodEnum<{
|
|
854
|
-
hour: "hour";
|
|
855
871
|
day: "day";
|
|
856
872
|
week: "week";
|
|
857
873
|
month: "month";
|
|
858
|
-
quarter: "quarter";
|
|
859
874
|
year: "year";
|
|
860
875
|
}>;
|
|
861
876
|
timezone: z.ZodOptional<z.ZodString>;
|
|
862
877
|
}, z.core.$strict>>;
|
|
863
878
|
period: z.ZodOptional<z.ZodObject<{
|
|
864
879
|
field: z.ZodString;
|
|
865
|
-
gte: z.ZodOptional<z.
|
|
866
|
-
lt: z.ZodOptional<z.
|
|
880
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
881
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
867
882
|
}, z.core.$strict>>;
|
|
868
883
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
869
884
|
field: z.ZodString;
|
|
@@ -877,12 +892,11 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
877
892
|
calc: z.ZodString;
|
|
878
893
|
as: z.ZodString;
|
|
879
894
|
}, z.core.$strict>>>;
|
|
880
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
895
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
881
896
|
}, z.core.$strict>;
|
|
882
|
-
}, z.core.$
|
|
883
|
-
id: z.ZodOptional<z.ZodString>;
|
|
884
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
897
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
885
898
|
label: z.ZodOptional<z.ZodString>;
|
|
899
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
886
900
|
size: z.ZodOptional<z.ZodEnum<{
|
|
887
901
|
small: "small";
|
|
888
902
|
medium: "medium";
|
|
@@ -892,9 +906,8 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
892
906
|
}>>;
|
|
893
907
|
width: z.ZodOptional<z.ZodNumber>;
|
|
894
908
|
height: z.ZodOptional<z.ZodNumber>;
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
909
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
910
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
898
911
|
target: z.ZodLiteral<"gauge_card">;
|
|
899
912
|
card: z.ZodObject<{
|
|
900
913
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -918,9 +931,9 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
918
931
|
label: z.ZodOptional<z.ZodString>;
|
|
919
932
|
}, z.core.$strict>>;
|
|
920
933
|
progress: z.ZodOptional<z.ZodObject<{
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
934
|
+
value_field: z.ZodString;
|
|
935
|
+
target_value: z.ZodOptional<z.ZodNumber>;
|
|
936
|
+
target_field: z.ZodOptional<z.ZodString>;
|
|
924
937
|
format: z.ZodOptional<z.ZodEnum<{
|
|
925
938
|
number: "number";
|
|
926
939
|
compact_number: "compact_number";
|
|
@@ -939,11 +952,9 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
939
952
|
field: z.ZodString;
|
|
940
953
|
as: z.ZodOptional<z.ZodString>;
|
|
941
954
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
942
|
-
hour: "hour";
|
|
943
955
|
day: "day";
|
|
944
956
|
week: "week";
|
|
945
957
|
month: "month";
|
|
946
|
-
quarter: "quarter";
|
|
947
958
|
year: "year";
|
|
948
959
|
}>>;
|
|
949
960
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -964,20 +975,18 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
964
975
|
as: z.ZodString;
|
|
965
976
|
}, z.core.$strict>]>>>;
|
|
966
977
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
967
|
-
|
|
978
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
968
979
|
field: z.ZodString;
|
|
969
980
|
as: z.ZodOptional<z.ZodString>;
|
|
970
981
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
971
|
-
hour: "hour";
|
|
972
982
|
day: "day";
|
|
973
983
|
week: "week";
|
|
974
984
|
month: "month";
|
|
975
|
-
quarter: "quarter";
|
|
976
985
|
year: "year";
|
|
977
986
|
}>>;
|
|
978
987
|
timezone: z.ZodOptional<z.ZodString>;
|
|
979
988
|
}, z.core.$strict>]>>>;
|
|
980
|
-
|
|
989
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
981
990
|
field: z.ZodString;
|
|
982
991
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
983
992
|
asc: "asc";
|
|
@@ -986,22 +995,20 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
986
995
|
}, z.core.$strict>>>;
|
|
987
996
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
988
997
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
989
|
-
|
|
998
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
990
999
|
field: z.ZodString;
|
|
991
1000
|
grain: z.ZodEnum<{
|
|
992
|
-
hour: "hour";
|
|
993
1001
|
day: "day";
|
|
994
1002
|
week: "week";
|
|
995
1003
|
month: "month";
|
|
996
|
-
quarter: "quarter";
|
|
997
1004
|
year: "year";
|
|
998
1005
|
}>;
|
|
999
1006
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1000
1007
|
}, z.core.$strict>>;
|
|
1001
1008
|
period: z.ZodOptional<z.ZodObject<{
|
|
1002
1009
|
field: z.ZodString;
|
|
1003
|
-
gte: z.ZodOptional<z.
|
|
1004
|
-
lt: z.ZodOptional<z.
|
|
1010
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1011
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1005
1012
|
}, z.core.$strict>>;
|
|
1006
1013
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
1007
1014
|
field: z.ZodString;
|
|
@@ -1015,12 +1022,11 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1015
1022
|
calc: z.ZodString;
|
|
1016
1023
|
as: z.ZodString;
|
|
1017
1024
|
}, z.core.$strict>>>;
|
|
1018
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
1025
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1019
1026
|
}, z.core.$strict>;
|
|
1020
|
-
}, z.core.$
|
|
1021
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1022
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
1027
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1023
1028
|
label: z.ZodOptional<z.ZodString>;
|
|
1029
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1024
1030
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1025
1031
|
small: "small";
|
|
1026
1032
|
medium: "medium";
|
|
@@ -1030,9 +1036,8 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1030
1036
|
}>>;
|
|
1031
1037
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1032
1038
|
height: z.ZodOptional<z.ZodNumber>;
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
1039
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
1040
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1036
1041
|
target: z.ZodLiteral<"pivot_table">;
|
|
1037
1042
|
pivot: z.ZodObject<{
|
|
1038
1043
|
rows: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1088,11 +1093,9 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1088
1093
|
field: z.ZodString;
|
|
1089
1094
|
as: z.ZodOptional<z.ZodString>;
|
|
1090
1095
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1091
|
-
hour: "hour";
|
|
1092
1096
|
day: "day";
|
|
1093
1097
|
week: "week";
|
|
1094
1098
|
month: "month";
|
|
1095
|
-
quarter: "quarter";
|
|
1096
1099
|
year: "year";
|
|
1097
1100
|
}>>;
|
|
1098
1101
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1113,20 +1116,18 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1113
1116
|
as: z.ZodString;
|
|
1114
1117
|
}, z.core.$strict>]>>>;
|
|
1115
1118
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1116
|
-
|
|
1119
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1117
1120
|
field: z.ZodString;
|
|
1118
1121
|
as: z.ZodOptional<z.ZodString>;
|
|
1119
1122
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1120
|
-
hour: "hour";
|
|
1121
1123
|
day: "day";
|
|
1122
1124
|
week: "week";
|
|
1123
1125
|
month: "month";
|
|
1124
|
-
quarter: "quarter";
|
|
1125
1126
|
year: "year";
|
|
1126
1127
|
}>>;
|
|
1127
1128
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1128
1129
|
}, z.core.$strict>]>>>;
|
|
1129
|
-
|
|
1130
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1130
1131
|
field: z.ZodString;
|
|
1131
1132
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
1132
1133
|
asc: "asc";
|
|
@@ -1135,22 +1136,20 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1135
1136
|
}, z.core.$strict>>>;
|
|
1136
1137
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1137
1138
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
1138
|
-
|
|
1139
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
1139
1140
|
field: z.ZodString;
|
|
1140
1141
|
grain: z.ZodEnum<{
|
|
1141
|
-
hour: "hour";
|
|
1142
1142
|
day: "day";
|
|
1143
1143
|
week: "week";
|
|
1144
1144
|
month: "month";
|
|
1145
|
-
quarter: "quarter";
|
|
1146
1145
|
year: "year";
|
|
1147
1146
|
}>;
|
|
1148
1147
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1149
1148
|
}, z.core.$strict>>;
|
|
1150
1149
|
period: z.ZodOptional<z.ZodObject<{
|
|
1151
1150
|
field: z.ZodString;
|
|
1152
|
-
gte: z.ZodOptional<z.
|
|
1153
|
-
lt: z.ZodOptional<z.
|
|
1151
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1152
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1154
1153
|
}, z.core.$strict>>;
|
|
1155
1154
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
1156
1155
|
field: z.ZodString;
|
|
@@ -1164,30 +1163,12 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1164
1163
|
calc: z.ZodString;
|
|
1165
1164
|
as: z.ZodString;
|
|
1166
1165
|
}, z.core.$strict>>>;
|
|
1167
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
1166
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1168
1167
|
}, z.core.$strict>;
|
|
1169
|
-
}, z.core.$
|
|
1170
|
-
export declare const
|
|
1171
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1172
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
1173
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1174
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
1175
|
-
small: "small";
|
|
1176
|
-
medium: "medium";
|
|
1177
|
-
large: "large";
|
|
1178
|
-
wide: "wide";
|
|
1179
|
-
full: "full";
|
|
1180
|
-
}>>;
|
|
1181
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
1182
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
1183
|
-
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
1184
|
-
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1185
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
1186
|
-
target: z.ZodLiteral<"empty">;
|
|
1187
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1188
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1189
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
1168
|
+
}, z.core.$strict>], "target">;
|
|
1169
|
+
export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1190
1170
|
label: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1191
1172
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1192
1173
|
small: "small";
|
|
1193
1174
|
medium: "medium";
|
|
@@ -1197,9 +1178,8 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1197
1178
|
}>>;
|
|
1198
1179
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1199
1180
|
height: z.ZodOptional<z.ZodNumber>;
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
1181
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
1182
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1203
1183
|
target: z.ZodLiteral<"table">;
|
|
1204
1184
|
table: z.ZodOptional<z.ZodObject<{
|
|
1205
1185
|
columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1216,7 +1196,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1216
1196
|
}>>;
|
|
1217
1197
|
}, z.core.$strict>]>>>;
|
|
1218
1198
|
pagination: z.ZodOptional<z.ZodBoolean>;
|
|
1219
|
-
|
|
1199
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
1220
1200
|
}, z.core.$strict>>;
|
|
1221
1201
|
query: z.ZodObject<{
|
|
1222
1202
|
resource: z.ZodString;
|
|
@@ -1224,11 +1204,9 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1224
1204
|
field: z.ZodString;
|
|
1225
1205
|
as: z.ZodOptional<z.ZodString>;
|
|
1226
1206
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1227
|
-
hour: "hour";
|
|
1228
1207
|
day: "day";
|
|
1229
1208
|
week: "week";
|
|
1230
1209
|
month: "month";
|
|
1231
|
-
quarter: "quarter";
|
|
1232
1210
|
year: "year";
|
|
1233
1211
|
}>>;
|
|
1234
1212
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1249,20 +1227,18 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1249
1227
|
as: z.ZodString;
|
|
1250
1228
|
}, z.core.$strict>]>>>;
|
|
1251
1229
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1252
|
-
|
|
1230
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1253
1231
|
field: z.ZodString;
|
|
1254
1232
|
as: z.ZodOptional<z.ZodString>;
|
|
1255
1233
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1256
|
-
hour: "hour";
|
|
1257
1234
|
day: "day";
|
|
1258
1235
|
week: "week";
|
|
1259
1236
|
month: "month";
|
|
1260
|
-
quarter: "quarter";
|
|
1261
1237
|
year: "year";
|
|
1262
1238
|
}>>;
|
|
1263
1239
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1264
1240
|
}, z.core.$strict>]>>>;
|
|
1265
|
-
|
|
1241
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1266
1242
|
field: z.ZodString;
|
|
1267
1243
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
1268
1244
|
asc: "asc";
|
|
@@ -1271,22 +1247,20 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1271
1247
|
}, z.core.$strict>>>;
|
|
1272
1248
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1273
1249
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
1274
|
-
|
|
1250
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
1275
1251
|
field: z.ZodString;
|
|
1276
1252
|
grain: z.ZodEnum<{
|
|
1277
|
-
hour: "hour";
|
|
1278
1253
|
day: "day";
|
|
1279
1254
|
week: "week";
|
|
1280
1255
|
month: "month";
|
|
1281
|
-
quarter: "quarter";
|
|
1282
1256
|
year: "year";
|
|
1283
1257
|
}>;
|
|
1284
1258
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1285
1259
|
}, z.core.$strict>>;
|
|
1286
1260
|
period: z.ZodOptional<z.ZodObject<{
|
|
1287
1261
|
field: z.ZodString;
|
|
1288
|
-
gte: z.ZodOptional<z.
|
|
1289
|
-
lt: z.ZodOptional<z.
|
|
1262
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1263
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1290
1264
|
}, z.core.$strict>>;
|
|
1291
1265
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
1292
1266
|
field: z.ZodString;
|
|
@@ -1300,12 +1274,11 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1300
1274
|
calc: z.ZodString;
|
|
1301
1275
|
as: z.ZodString;
|
|
1302
1276
|
}, z.core.$strict>>>;
|
|
1303
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
1277
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1304
1278
|
}, z.core.$strict>;
|
|
1305
|
-
}, z.core.$
|
|
1306
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1307
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
1279
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1308
1280
|
label: z.ZodOptional<z.ZodString>;
|
|
1281
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1309
1282
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1310
1283
|
small: "small";
|
|
1311
1284
|
medium: "medium";
|
|
@@ -1315,9 +1288,8 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1315
1288
|
}>>;
|
|
1316
1289
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1317
1290
|
height: z.ZodOptional<z.ZodNumber>;
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
1291
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
1292
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1321
1293
|
target: z.ZodLiteral<"chart">;
|
|
1322
1294
|
chart: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1323
1295
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1354,7 +1326,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1354
1326
|
}, z.core.$strict>>;
|
|
1355
1327
|
color: z.ZodOptional<z.ZodString>;
|
|
1356
1328
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1357
|
-
}, z.core.$
|
|
1329
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1358
1330
|
title: z.ZodOptional<z.ZodString>;
|
|
1359
1331
|
type: z.ZodLiteral<"bar">;
|
|
1360
1332
|
x: z.ZodObject<{
|
|
@@ -1384,7 +1356,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1384
1356
|
}>>;
|
|
1385
1357
|
}, z.core.$strict>;
|
|
1386
1358
|
color: z.ZodOptional<z.ZodString>;
|
|
1387
|
-
}, z.core.$
|
|
1359
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1388
1360
|
title: z.ZodOptional<z.ZodString>;
|
|
1389
1361
|
type: z.ZodLiteral<"stacked_bar">;
|
|
1390
1362
|
x: z.ZodObject<{
|
|
@@ -1400,7 +1372,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1400
1372
|
currency_delta: "currency_delta";
|
|
1401
1373
|
}>>;
|
|
1402
1374
|
}, z.core.$strict>;
|
|
1403
|
-
y: z.ZodObject<{
|
|
1375
|
+
y: z.ZodUnion<readonly [z.ZodObject<{
|
|
1404
1376
|
field: z.ZodString;
|
|
1405
1377
|
label: z.ZodOptional<z.ZodString>;
|
|
1406
1378
|
format: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1412,13 +1384,25 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1412
1384
|
number_delta: "number_delta";
|
|
1413
1385
|
currency_delta: "currency_delta";
|
|
1414
1386
|
}>>;
|
|
1415
|
-
}, z.core.$strict
|
|
1416
|
-
series: z.ZodObject<{
|
|
1387
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
1417
1388
|
field: z.ZodString;
|
|
1418
1389
|
label: z.ZodOptional<z.ZodString>;
|
|
1419
|
-
|
|
1390
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1391
|
+
number: "number";
|
|
1392
|
+
compact_number: "compact_number";
|
|
1393
|
+
currency: "currency";
|
|
1394
|
+
percent: "percent";
|
|
1395
|
+
percent_delta: "percent_delta";
|
|
1396
|
+
number_delta: "number_delta";
|
|
1397
|
+
currency_delta: "currency_delta";
|
|
1398
|
+
}>>;
|
|
1399
|
+
}, z.core.$strict>>]>;
|
|
1400
|
+
series: z.ZodOptional<z.ZodObject<{
|
|
1401
|
+
field: z.ZodString;
|
|
1402
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1403
|
+
}, z.core.$strict>>;
|
|
1420
1404
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1421
|
-
}, z.core.$
|
|
1405
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1422
1406
|
title: z.ZodOptional<z.ZodString>;
|
|
1423
1407
|
type: z.ZodLiteral<"pie">;
|
|
1424
1408
|
label: z.ZodObject<{
|
|
@@ -1448,7 +1432,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1448
1432
|
}>>;
|
|
1449
1433
|
}, z.core.$strict>;
|
|
1450
1434
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1451
|
-
}, z.core.$
|
|
1435
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1452
1436
|
title: z.ZodOptional<z.ZodString>;
|
|
1453
1437
|
type: z.ZodLiteral<"histogram">;
|
|
1454
1438
|
x: z.ZodObject<{
|
|
@@ -1483,7 +1467,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1483
1467
|
max: z.ZodOptional<z.ZodNumber>;
|
|
1484
1468
|
}, z.core.$strict>>>;
|
|
1485
1469
|
color: z.ZodOptional<z.ZodString>;
|
|
1486
|
-
}, z.core.$
|
|
1470
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1487
1471
|
title: z.ZodOptional<z.ZodString>;
|
|
1488
1472
|
type: z.ZodLiteral<"funnel">;
|
|
1489
1473
|
label: z.ZodOptional<z.ZodObject<{
|
|
@@ -1513,18 +1497,16 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1513
1497
|
}>>;
|
|
1514
1498
|
}, z.core.$strict>>;
|
|
1515
1499
|
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1516
|
-
}, z.core.$
|
|
1500
|
+
}, z.core.$strict>], "type">;
|
|
1517
1501
|
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
1518
1502
|
resource: z.ZodString;
|
|
1519
1503
|
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1520
1504
|
field: z.ZodString;
|
|
1521
1505
|
as: z.ZodOptional<z.ZodString>;
|
|
1522
1506
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1523
|
-
hour: "hour";
|
|
1524
1507
|
day: "day";
|
|
1525
1508
|
week: "week";
|
|
1526
1509
|
month: "month";
|
|
1527
|
-
quarter: "quarter";
|
|
1528
1510
|
year: "year";
|
|
1529
1511
|
}>>;
|
|
1530
1512
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1545,20 +1527,18 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1545
1527
|
as: z.ZodString;
|
|
1546
1528
|
}, z.core.$strict>]>>>;
|
|
1547
1529
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1548
|
-
|
|
1530
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1549
1531
|
field: z.ZodString;
|
|
1550
1532
|
as: z.ZodOptional<z.ZodString>;
|
|
1551
1533
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1552
|
-
hour: "hour";
|
|
1553
1534
|
day: "day";
|
|
1554
1535
|
week: "week";
|
|
1555
1536
|
month: "month";
|
|
1556
|
-
quarter: "quarter";
|
|
1557
1537
|
year: "year";
|
|
1558
1538
|
}>>;
|
|
1559
1539
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1560
1540
|
}, z.core.$strict>]>>>;
|
|
1561
|
-
|
|
1541
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1562
1542
|
field: z.ZodString;
|
|
1563
1543
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
1564
1544
|
asc: "asc";
|
|
@@ -1567,22 +1547,20 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1567
1547
|
}, z.core.$strict>>>;
|
|
1568
1548
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1569
1549
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
1570
|
-
|
|
1550
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
1571
1551
|
field: z.ZodString;
|
|
1572
1552
|
grain: z.ZodEnum<{
|
|
1573
|
-
hour: "hour";
|
|
1574
1553
|
day: "day";
|
|
1575
1554
|
week: "week";
|
|
1576
1555
|
month: "month";
|
|
1577
|
-
quarter: "quarter";
|
|
1578
1556
|
year: "year";
|
|
1579
1557
|
}>;
|
|
1580
1558
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1581
1559
|
}, z.core.$strict>>;
|
|
1582
1560
|
period: z.ZodOptional<z.ZodObject<{
|
|
1583
1561
|
field: z.ZodString;
|
|
1584
|
-
gte: z.ZodOptional<z.
|
|
1585
|
-
lt: z.ZodOptional<z.
|
|
1562
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1563
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1586
1564
|
}, z.core.$strict>>;
|
|
1587
1565
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
1588
1566
|
field: z.ZodString;
|
|
@@ -1596,7 +1574,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1596
1574
|
calc: z.ZodString;
|
|
1597
1575
|
as: z.ZodString;
|
|
1598
1576
|
}, z.core.$strict>>>;
|
|
1599
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
1577
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1600
1578
|
}, z.core.$strict>, z.ZodObject<{
|
|
1601
1579
|
steps: z.ZodArray<z.ZodObject<{
|
|
1602
1580
|
name: z.ZodString;
|
|
@@ -1617,11 +1595,860 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1617
1595
|
}, z.core.$strict>;
|
|
1618
1596
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1619
1597
|
}, z.core.$strict>>;
|
|
1598
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1599
|
+
calc: z.ZodString;
|
|
1600
|
+
as: z.ZodString;
|
|
1601
|
+
}, z.core.$strict>>>;
|
|
1602
|
+
}, z.core.$strict>]>;
|
|
1603
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1604
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1605
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1606
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
1607
|
+
small: "small";
|
|
1608
|
+
medium: "medium";
|
|
1609
|
+
large: "large";
|
|
1610
|
+
wide: "wide";
|
|
1611
|
+
full: "full";
|
|
1612
|
+
}>>;
|
|
1613
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1614
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1615
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
1616
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1617
|
+
target: z.ZodLiteral<"kpi_card">;
|
|
1618
|
+
card: z.ZodObject<{
|
|
1619
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1620
|
+
value: z.ZodObject<{
|
|
1621
|
+
field: z.ZodString;
|
|
1622
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1623
|
+
number: "number";
|
|
1624
|
+
compact_number: "compact_number";
|
|
1625
|
+
currency: "currency";
|
|
1626
|
+
percent: "percent";
|
|
1627
|
+
percent_delta: "percent_delta";
|
|
1628
|
+
number_delta: "number_delta";
|
|
1629
|
+
currency_delta: "currency_delta";
|
|
1630
|
+
}>>;
|
|
1631
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1632
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
1633
|
+
}, z.core.$strict>;
|
|
1634
|
+
subtitle: z.ZodOptional<z.ZodObject<{
|
|
1635
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1636
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1637
|
+
}, z.core.$strict>>;
|
|
1638
|
+
comparison: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1639
|
+
sparkline: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1640
|
+
}, z.core.$strict>;
|
|
1641
|
+
query: z.ZodObject<{
|
|
1642
|
+
resource: z.ZodString;
|
|
1643
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1644
|
+
field: z.ZodString;
|
|
1645
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1646
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1647
|
+
day: "day";
|
|
1648
|
+
week: "week";
|
|
1649
|
+
month: "month";
|
|
1650
|
+
year: "year";
|
|
1651
|
+
}>>;
|
|
1652
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1653
|
+
agg: z.ZodEnum<{
|
|
1654
|
+
sum: "sum";
|
|
1655
|
+
count: "count";
|
|
1656
|
+
count_distinct: "count_distinct";
|
|
1657
|
+
avg: "avg";
|
|
1658
|
+
min: "min";
|
|
1659
|
+
max: "max";
|
|
1660
|
+
median: "median";
|
|
1661
|
+
}>;
|
|
1662
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1663
|
+
as: z.ZodString;
|
|
1664
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1665
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1666
|
+
calc: z.ZodString;
|
|
1667
|
+
as: z.ZodString;
|
|
1668
|
+
}, z.core.$strict>]>>>;
|
|
1669
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1670
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1671
|
+
field: z.ZodString;
|
|
1672
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1673
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1674
|
+
day: "day";
|
|
1675
|
+
week: "week";
|
|
1676
|
+
month: "month";
|
|
1677
|
+
year: "year";
|
|
1678
|
+
}>>;
|
|
1679
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
}, z.core.$strict>]>>>;
|
|
1681
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1682
|
+
field: z.ZodString;
|
|
1683
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1684
|
+
asc: "asc";
|
|
1685
|
+
desc: "desc";
|
|
1686
|
+
}>>;
|
|
1687
|
+
}, z.core.$strict>>>;
|
|
1688
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1689
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1690
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
1691
|
+
field: z.ZodString;
|
|
1692
|
+
grain: z.ZodEnum<{
|
|
1693
|
+
day: "day";
|
|
1694
|
+
week: "week";
|
|
1695
|
+
month: "month";
|
|
1696
|
+
year: "year";
|
|
1697
|
+
}>;
|
|
1698
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1699
|
+
}, z.core.$strict>>;
|
|
1700
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
1701
|
+
field: z.ZodString;
|
|
1702
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1703
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1704
|
+
}, z.core.$strict>>;
|
|
1705
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1706
|
+
field: z.ZodString;
|
|
1707
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1708
|
+
label: z.ZodString;
|
|
1709
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1710
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1711
|
+
}, z.core.$strict>>;
|
|
1712
|
+
}, z.core.$strict>>;
|
|
1713
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1714
|
+
calc: z.ZodString;
|
|
1715
|
+
as: z.ZodString;
|
|
1716
|
+
}, z.core.$strict>>>;
|
|
1717
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1718
|
+
}, z.core.$strict>;
|
|
1719
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1720
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1722
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
1723
|
+
small: "small";
|
|
1724
|
+
medium: "medium";
|
|
1725
|
+
large: "large";
|
|
1726
|
+
wide: "wide";
|
|
1727
|
+
full: "full";
|
|
1728
|
+
}>>;
|
|
1729
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1730
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1731
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
1732
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1733
|
+
target: z.ZodLiteral<"gauge_card">;
|
|
1734
|
+
card: z.ZodObject<{
|
|
1735
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1736
|
+
value: z.ZodObject<{
|
|
1737
|
+
field: z.ZodString;
|
|
1738
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1739
|
+
number: "number";
|
|
1740
|
+
compact_number: "compact_number";
|
|
1741
|
+
currency: "currency";
|
|
1742
|
+
percent: "percent";
|
|
1743
|
+
percent_delta: "percent_delta";
|
|
1744
|
+
number_delta: "number_delta";
|
|
1745
|
+
currency_delta: "currency_delta";
|
|
1746
|
+
}>>;
|
|
1747
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1748
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
}, z.core.$strict>;
|
|
1750
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
1751
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1752
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1753
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1754
|
+
}, z.core.$strict>>;
|
|
1755
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
1756
|
+
value_field: z.ZodString;
|
|
1757
|
+
target_value: z.ZodOptional<z.ZodNumber>;
|
|
1758
|
+
target_field: z.ZodOptional<z.ZodString>;
|
|
1759
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1760
|
+
number: "number";
|
|
1761
|
+
compact_number: "compact_number";
|
|
1762
|
+
currency: "currency";
|
|
1763
|
+
percent: "percent";
|
|
1764
|
+
percent_delta: "percent_delta";
|
|
1765
|
+
number_delta: "number_delta";
|
|
1766
|
+
currency_delta: "currency_delta";
|
|
1767
|
+
}>>;
|
|
1768
|
+
}, z.core.$strict>>;
|
|
1769
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1770
|
+
}, z.core.$strict>;
|
|
1771
|
+
query: z.ZodObject<{
|
|
1772
|
+
resource: z.ZodString;
|
|
1773
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1774
|
+
field: z.ZodString;
|
|
1775
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1776
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1777
|
+
day: "day";
|
|
1778
|
+
week: "week";
|
|
1779
|
+
month: "month";
|
|
1780
|
+
year: "year";
|
|
1781
|
+
}>>;
|
|
1782
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1783
|
+
agg: z.ZodEnum<{
|
|
1784
|
+
sum: "sum";
|
|
1785
|
+
count: "count";
|
|
1786
|
+
count_distinct: "count_distinct";
|
|
1787
|
+
avg: "avg";
|
|
1788
|
+
min: "min";
|
|
1789
|
+
max: "max";
|
|
1790
|
+
median: "median";
|
|
1791
|
+
}>;
|
|
1792
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1793
|
+
as: z.ZodString;
|
|
1794
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1795
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1796
|
+
calc: z.ZodString;
|
|
1797
|
+
as: z.ZodString;
|
|
1798
|
+
}, z.core.$strict>]>>>;
|
|
1799
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1800
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1801
|
+
field: z.ZodString;
|
|
1802
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1803
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1804
|
+
day: "day";
|
|
1805
|
+
week: "week";
|
|
1806
|
+
month: "month";
|
|
1807
|
+
year: "year";
|
|
1808
|
+
}>>;
|
|
1809
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1810
|
+
}, z.core.$strict>]>>>;
|
|
1811
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1812
|
+
field: z.ZodString;
|
|
1813
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1814
|
+
asc: "asc";
|
|
1815
|
+
desc: "desc";
|
|
1816
|
+
}>>;
|
|
1817
|
+
}, z.core.$strict>>>;
|
|
1818
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1819
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1820
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
1821
|
+
field: z.ZodString;
|
|
1822
|
+
grain: z.ZodEnum<{
|
|
1823
|
+
day: "day";
|
|
1824
|
+
week: "week";
|
|
1825
|
+
month: "month";
|
|
1826
|
+
year: "year";
|
|
1827
|
+
}>;
|
|
1828
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1829
|
+
}, z.core.$strict>>;
|
|
1830
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
1831
|
+
field: z.ZodString;
|
|
1832
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1833
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1834
|
+
}, z.core.$strict>>;
|
|
1835
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1836
|
+
field: z.ZodString;
|
|
1837
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1838
|
+
label: z.ZodString;
|
|
1839
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1840
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1841
|
+
}, z.core.$strict>>;
|
|
1842
|
+
}, z.core.$strict>>;
|
|
1843
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1844
|
+
calc: z.ZodString;
|
|
1845
|
+
as: z.ZodString;
|
|
1846
|
+
}, z.core.$strict>>>;
|
|
1847
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1848
|
+
}, z.core.$strict>;
|
|
1849
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1850
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1851
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1852
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
1853
|
+
small: "small";
|
|
1854
|
+
medium: "medium";
|
|
1855
|
+
large: "large";
|
|
1856
|
+
wide: "wide";
|
|
1857
|
+
full: "full";
|
|
1858
|
+
}>>;
|
|
1859
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1860
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1861
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
1862
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1863
|
+
target: z.ZodLiteral<"pivot_table">;
|
|
1864
|
+
pivot: z.ZodObject<{
|
|
1865
|
+
rows: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1866
|
+
field: z.ZodString;
|
|
1867
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1868
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1869
|
+
number: "number";
|
|
1870
|
+
compact_number: "compact_number";
|
|
1871
|
+
currency: "currency";
|
|
1872
|
+
percent: "percent";
|
|
1873
|
+
percent_delta: "percent_delta";
|
|
1874
|
+
number_delta: "number_delta";
|
|
1875
|
+
currency_delta: "currency_delta";
|
|
1876
|
+
}>>;
|
|
1877
|
+
}, z.core.$strict>]>>;
|
|
1878
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1879
|
+
field: z.ZodString;
|
|
1880
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1881
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1882
|
+
number: "number";
|
|
1883
|
+
compact_number: "compact_number";
|
|
1884
|
+
currency: "currency";
|
|
1885
|
+
percent: "percent";
|
|
1886
|
+
percent_delta: "percent_delta";
|
|
1887
|
+
number_delta: "number_delta";
|
|
1888
|
+
currency_delta: "currency_delta";
|
|
1889
|
+
}>>;
|
|
1890
|
+
}, z.core.$strict>]>>>;
|
|
1891
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1892
|
+
field: z.ZodString;
|
|
1893
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1894
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1895
|
+
number: "number";
|
|
1896
|
+
compact_number: "compact_number";
|
|
1897
|
+
currency: "currency";
|
|
1898
|
+
percent: "percent";
|
|
1899
|
+
percent_delta: "percent_delta";
|
|
1900
|
+
number_delta: "number_delta";
|
|
1901
|
+
currency_delta: "currency_delta";
|
|
1902
|
+
}>>;
|
|
1903
|
+
aggregation: z.ZodOptional<z.ZodEnum<{
|
|
1904
|
+
sum: "sum";
|
|
1905
|
+
count: "count";
|
|
1906
|
+
avg: "avg";
|
|
1907
|
+
min: "min";
|
|
1908
|
+
max: "max";
|
|
1909
|
+
}>>;
|
|
1910
|
+
}, z.core.$strict>>;
|
|
1911
|
+
}, z.core.$strict>;
|
|
1912
|
+
query: z.ZodObject<{
|
|
1913
|
+
resource: z.ZodString;
|
|
1914
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1915
|
+
field: z.ZodString;
|
|
1916
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1917
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1918
|
+
day: "day";
|
|
1919
|
+
week: "week";
|
|
1920
|
+
month: "month";
|
|
1921
|
+
year: "year";
|
|
1922
|
+
}>>;
|
|
1923
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1924
|
+
agg: z.ZodEnum<{
|
|
1925
|
+
sum: "sum";
|
|
1926
|
+
count: "count";
|
|
1927
|
+
count_distinct: "count_distinct";
|
|
1928
|
+
avg: "avg";
|
|
1929
|
+
min: "min";
|
|
1930
|
+
max: "max";
|
|
1931
|
+
median: "median";
|
|
1932
|
+
}>;
|
|
1933
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1934
|
+
as: z.ZodString;
|
|
1935
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1936
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1937
|
+
calc: z.ZodString;
|
|
1938
|
+
as: z.ZodString;
|
|
1939
|
+
}, z.core.$strict>]>>>;
|
|
1940
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1941
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1942
|
+
field: z.ZodString;
|
|
1943
|
+
as: z.ZodOptional<z.ZodString>;
|
|
1944
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
1945
|
+
day: "day";
|
|
1946
|
+
week: "week";
|
|
1947
|
+
month: "month";
|
|
1948
|
+
year: "year";
|
|
1949
|
+
}>>;
|
|
1950
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1951
|
+
}, z.core.$strict>]>>>;
|
|
1952
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1953
|
+
field: z.ZodString;
|
|
1954
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1955
|
+
asc: "asc";
|
|
1956
|
+
desc: "desc";
|
|
1957
|
+
}>>;
|
|
1958
|
+
}, z.core.$strict>>>;
|
|
1959
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1960
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1961
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
1962
|
+
field: z.ZodString;
|
|
1963
|
+
grain: z.ZodEnum<{
|
|
1964
|
+
day: "day";
|
|
1965
|
+
week: "week";
|
|
1966
|
+
month: "month";
|
|
1967
|
+
year: "year";
|
|
1968
|
+
}>;
|
|
1969
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1970
|
+
}, z.core.$strict>>;
|
|
1971
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
1972
|
+
field: z.ZodString;
|
|
1973
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1974
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1975
|
+
}, z.core.$strict>>;
|
|
1976
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
1977
|
+
field: z.ZodString;
|
|
1978
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
1979
|
+
label: z.ZodString;
|
|
1980
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1981
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1982
|
+
}, z.core.$strict>>;
|
|
1983
|
+
}, z.core.$strict>>;
|
|
1984
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1985
|
+
calc: z.ZodString;
|
|
1986
|
+
as: z.ZodString;
|
|
1987
|
+
}, z.core.$strict>>>;
|
|
1988
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1989
|
+
}, z.core.$strict>;
|
|
1990
|
+
}, z.core.$strict>], "target">;
|
|
1991
|
+
export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1992
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1993
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1994
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
1995
|
+
small: "small";
|
|
1996
|
+
medium: "medium";
|
|
1997
|
+
large: "large";
|
|
1998
|
+
wide: "wide";
|
|
1999
|
+
full: "full";
|
|
2000
|
+
}>>;
|
|
2001
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2002
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2003
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
2004
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2005
|
+
id: z.ZodString;
|
|
2006
|
+
group_id: z.ZodString;
|
|
2007
|
+
order: z.ZodNumber;
|
|
2008
|
+
target: z.ZodLiteral<"empty">;
|
|
2009
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2010
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2011
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
2012
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
2013
|
+
small: "small";
|
|
2014
|
+
medium: "medium";
|
|
2015
|
+
large: "large";
|
|
2016
|
+
wide: "wide";
|
|
2017
|
+
full: "full";
|
|
2018
|
+
}>>;
|
|
2019
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2020
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2021
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
2022
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2023
|
+
id: z.ZodString;
|
|
2024
|
+
group_id: z.ZodString;
|
|
2025
|
+
order: z.ZodNumber;
|
|
2026
|
+
target: z.ZodLiteral<"table">;
|
|
2027
|
+
table: z.ZodOptional<z.ZodObject<{
|
|
2028
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2029
|
+
field: z.ZodString;
|
|
2030
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2031
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2032
|
+
number: "number";
|
|
2033
|
+
compact_number: "compact_number";
|
|
2034
|
+
currency: "currency";
|
|
2035
|
+
percent: "percent";
|
|
2036
|
+
percent_delta: "percent_delta";
|
|
2037
|
+
number_delta: "number_delta";
|
|
2038
|
+
currency_delta: "currency_delta";
|
|
2039
|
+
}>>;
|
|
2040
|
+
}, z.core.$strict>]>>>;
|
|
2041
|
+
pagination: z.ZodOptional<z.ZodBoolean>;
|
|
2042
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
2043
|
+
}, z.core.$strict>>;
|
|
2044
|
+
query: z.ZodObject<{
|
|
2045
|
+
resource: z.ZodString;
|
|
2046
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2047
|
+
field: z.ZodString;
|
|
2048
|
+
as: z.ZodOptional<z.ZodString>;
|
|
2049
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
2050
|
+
day: "day";
|
|
2051
|
+
week: "week";
|
|
2052
|
+
month: "month";
|
|
2053
|
+
year: "year";
|
|
2054
|
+
}>>;
|
|
2055
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2056
|
+
agg: z.ZodEnum<{
|
|
2057
|
+
sum: "sum";
|
|
2058
|
+
count: "count";
|
|
2059
|
+
count_distinct: "count_distinct";
|
|
2060
|
+
avg: "avg";
|
|
2061
|
+
min: "min";
|
|
2062
|
+
max: "max";
|
|
2063
|
+
median: "median";
|
|
2064
|
+
}>;
|
|
2065
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2066
|
+
as: z.ZodString;
|
|
2067
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2068
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2069
|
+
calc: z.ZodString;
|
|
2070
|
+
as: z.ZodString;
|
|
2071
|
+
}, z.core.$strict>]>>>;
|
|
2072
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2073
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2074
|
+
field: z.ZodString;
|
|
2075
|
+
as: z.ZodOptional<z.ZodString>;
|
|
2076
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
2077
|
+
day: "day";
|
|
2078
|
+
week: "week";
|
|
2079
|
+
month: "month";
|
|
2080
|
+
year: "year";
|
|
2081
|
+
}>>;
|
|
2082
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2083
|
+
}, z.core.$strict>]>>>;
|
|
2084
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2085
|
+
field: z.ZodString;
|
|
2086
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2087
|
+
asc: "asc";
|
|
2088
|
+
desc: "desc";
|
|
2089
|
+
}>>;
|
|
2090
|
+
}, z.core.$strict>>>;
|
|
2091
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2092
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2093
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
2094
|
+
field: z.ZodString;
|
|
2095
|
+
grain: z.ZodEnum<{
|
|
2096
|
+
day: "day";
|
|
2097
|
+
week: "week";
|
|
2098
|
+
month: "month";
|
|
2099
|
+
year: "year";
|
|
2100
|
+
}>;
|
|
2101
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2102
|
+
}, z.core.$strict>>;
|
|
2103
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
2104
|
+
field: z.ZodString;
|
|
2105
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2106
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2107
|
+
}, z.core.$strict>>;
|
|
2108
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
2109
|
+
field: z.ZodString;
|
|
2110
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
2111
|
+
label: z.ZodString;
|
|
2112
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
2113
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2114
|
+
}, z.core.$strict>>;
|
|
2115
|
+
}, z.core.$strict>>;
|
|
2116
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2117
|
+
calc: z.ZodString;
|
|
2118
|
+
as: z.ZodString;
|
|
2119
|
+
}, z.core.$strict>>>;
|
|
2120
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
2121
|
+
}, z.core.$strict>;
|
|
2122
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2123
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2124
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
2125
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
2126
|
+
small: "small";
|
|
2127
|
+
medium: "medium";
|
|
2128
|
+
large: "large";
|
|
2129
|
+
wide: "wide";
|
|
2130
|
+
full: "full";
|
|
2131
|
+
}>>;
|
|
2132
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2133
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2134
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
2135
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2136
|
+
id: z.ZodString;
|
|
2137
|
+
group_id: z.ZodString;
|
|
2138
|
+
order: z.ZodNumber;
|
|
2139
|
+
target: z.ZodLiteral<"chart">;
|
|
2140
|
+
chart: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2141
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2142
|
+
type: z.ZodLiteral<"line">;
|
|
2143
|
+
x: z.ZodObject<{
|
|
2144
|
+
field: z.ZodString;
|
|
2145
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2146
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2147
|
+
number: "number";
|
|
2148
|
+
compact_number: "compact_number";
|
|
2149
|
+
currency: "currency";
|
|
2150
|
+
percent: "percent";
|
|
2151
|
+
percent_delta: "percent_delta";
|
|
2152
|
+
number_delta: "number_delta";
|
|
2153
|
+
currency_delta: "currency_delta";
|
|
2154
|
+
}>>;
|
|
2155
|
+
}, z.core.$strict>;
|
|
2156
|
+
y: z.ZodArray<z.ZodObject<{
|
|
2157
|
+
field: z.ZodString;
|
|
2158
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2159
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2160
|
+
number: "number";
|
|
2161
|
+
compact_number: "compact_number";
|
|
2162
|
+
currency: "currency";
|
|
2163
|
+
percent: "percent";
|
|
2164
|
+
percent_delta: "percent_delta";
|
|
2165
|
+
number_delta: "number_delta";
|
|
2166
|
+
currency_delta: "currency_delta";
|
|
2167
|
+
}>>;
|
|
2168
|
+
}, z.core.$strict>>;
|
|
2169
|
+
series: z.ZodOptional<z.ZodObject<{
|
|
2170
|
+
field: z.ZodString;
|
|
2171
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2172
|
+
}, z.core.$strict>>;
|
|
2173
|
+
color: z.ZodOptional<z.ZodString>;
|
|
2174
|
+
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2175
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2176
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2177
|
+
type: z.ZodLiteral<"bar">;
|
|
2178
|
+
x: z.ZodObject<{
|
|
2179
|
+
field: z.ZodString;
|
|
2180
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2181
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2182
|
+
number: "number";
|
|
2183
|
+
compact_number: "compact_number";
|
|
2184
|
+
currency: "currency";
|
|
2185
|
+
percent: "percent";
|
|
2186
|
+
percent_delta: "percent_delta";
|
|
2187
|
+
number_delta: "number_delta";
|
|
2188
|
+
currency_delta: "currency_delta";
|
|
2189
|
+
}>>;
|
|
2190
|
+
}, z.core.$strict>;
|
|
2191
|
+
y: z.ZodObject<{
|
|
2192
|
+
field: z.ZodString;
|
|
2193
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2194
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2195
|
+
number: "number";
|
|
2196
|
+
compact_number: "compact_number";
|
|
2197
|
+
currency: "currency";
|
|
2198
|
+
percent: "percent";
|
|
2199
|
+
percent_delta: "percent_delta";
|
|
2200
|
+
number_delta: "number_delta";
|
|
2201
|
+
currency_delta: "currency_delta";
|
|
2202
|
+
}>>;
|
|
2203
|
+
}, z.core.$strict>;
|
|
2204
|
+
color: z.ZodOptional<z.ZodString>;
|
|
2205
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2206
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2207
|
+
type: z.ZodLiteral<"stacked_bar">;
|
|
2208
|
+
x: z.ZodObject<{
|
|
2209
|
+
field: z.ZodString;
|
|
2210
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2211
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2212
|
+
number: "number";
|
|
2213
|
+
compact_number: "compact_number";
|
|
2214
|
+
currency: "currency";
|
|
2215
|
+
percent: "percent";
|
|
2216
|
+
percent_delta: "percent_delta";
|
|
2217
|
+
number_delta: "number_delta";
|
|
2218
|
+
currency_delta: "currency_delta";
|
|
2219
|
+
}>>;
|
|
2220
|
+
}, z.core.$strict>;
|
|
2221
|
+
y: z.ZodUnion<readonly [z.ZodObject<{
|
|
2222
|
+
field: z.ZodString;
|
|
2223
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2224
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2225
|
+
number: "number";
|
|
2226
|
+
compact_number: "compact_number";
|
|
2227
|
+
currency: "currency";
|
|
2228
|
+
percent: "percent";
|
|
2229
|
+
percent_delta: "percent_delta";
|
|
2230
|
+
number_delta: "number_delta";
|
|
2231
|
+
currency_delta: "currency_delta";
|
|
2232
|
+
}>>;
|
|
2233
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
2234
|
+
field: z.ZodString;
|
|
2235
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2236
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2237
|
+
number: "number";
|
|
2238
|
+
compact_number: "compact_number";
|
|
2239
|
+
currency: "currency";
|
|
2240
|
+
percent: "percent";
|
|
2241
|
+
percent_delta: "percent_delta";
|
|
2242
|
+
number_delta: "number_delta";
|
|
2243
|
+
currency_delta: "currency_delta";
|
|
2244
|
+
}>>;
|
|
2245
|
+
}, z.core.$strict>>]>;
|
|
2246
|
+
series: z.ZodOptional<z.ZodObject<{
|
|
2247
|
+
field: z.ZodString;
|
|
2248
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2249
|
+
}, z.core.$strict>>;
|
|
2250
|
+
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2251
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2252
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2253
|
+
type: z.ZodLiteral<"pie">;
|
|
2254
|
+
label: z.ZodObject<{
|
|
2255
|
+
field: z.ZodString;
|
|
2256
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2257
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2258
|
+
number: "number";
|
|
2259
|
+
compact_number: "compact_number";
|
|
2260
|
+
currency: "currency";
|
|
2261
|
+
percent: "percent";
|
|
2262
|
+
percent_delta: "percent_delta";
|
|
2263
|
+
number_delta: "number_delta";
|
|
2264
|
+
currency_delta: "currency_delta";
|
|
2265
|
+
}>>;
|
|
2266
|
+
}, z.core.$strict>;
|
|
2267
|
+
value: z.ZodObject<{
|
|
2268
|
+
field: z.ZodString;
|
|
2269
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2270
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2271
|
+
number: "number";
|
|
2272
|
+
compact_number: "compact_number";
|
|
2273
|
+
currency: "currency";
|
|
2274
|
+
percent: "percent";
|
|
2275
|
+
percent_delta: "percent_delta";
|
|
2276
|
+
number_delta: "number_delta";
|
|
2277
|
+
currency_delta: "currency_delta";
|
|
2278
|
+
}>>;
|
|
2279
|
+
}, z.core.$strict>;
|
|
2280
|
+
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2281
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2282
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2283
|
+
type: z.ZodLiteral<"histogram">;
|
|
2284
|
+
x: z.ZodObject<{
|
|
2285
|
+
field: z.ZodString;
|
|
2286
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2287
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2288
|
+
number: "number";
|
|
2289
|
+
compact_number: "compact_number";
|
|
2290
|
+
currency: "currency";
|
|
2291
|
+
percent: "percent";
|
|
2292
|
+
percent_delta: "percent_delta";
|
|
2293
|
+
number_delta: "number_delta";
|
|
2294
|
+
currency_delta: "currency_delta";
|
|
2295
|
+
}>>;
|
|
2296
|
+
}, z.core.$strict>;
|
|
2297
|
+
y: z.ZodObject<{
|
|
2298
|
+
field: z.ZodString;
|
|
2299
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2300
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2301
|
+
number: "number";
|
|
2302
|
+
compact_number: "compact_number";
|
|
2303
|
+
currency: "currency";
|
|
2304
|
+
percent: "percent";
|
|
2305
|
+
percent_delta: "percent_delta";
|
|
2306
|
+
number_delta: "number_delta";
|
|
2307
|
+
currency_delta: "currency_delta";
|
|
2308
|
+
}>>;
|
|
2309
|
+
}, z.core.$strict>;
|
|
2310
|
+
buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2311
|
+
label: z.ZodString;
|
|
2312
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
2313
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2314
|
+
}, z.core.$strict>>>;
|
|
2315
|
+
color: z.ZodOptional<z.ZodString>;
|
|
2316
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2317
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2318
|
+
type: z.ZodLiteral<"funnel">;
|
|
2319
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
2320
|
+
field: z.ZodString;
|
|
2321
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2322
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2323
|
+
number: "number";
|
|
2324
|
+
compact_number: "compact_number";
|
|
2325
|
+
currency: "currency";
|
|
2326
|
+
percent: "percent";
|
|
2327
|
+
percent_delta: "percent_delta";
|
|
2328
|
+
number_delta: "number_delta";
|
|
2329
|
+
currency_delta: "currency_delta";
|
|
2330
|
+
}>>;
|
|
2331
|
+
}, z.core.$strict>>;
|
|
2332
|
+
value: z.ZodOptional<z.ZodObject<{
|
|
2333
|
+
field: z.ZodString;
|
|
2334
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2335
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2336
|
+
number: "number";
|
|
2337
|
+
compact_number: "compact_number";
|
|
2338
|
+
currency: "currency";
|
|
2339
|
+
percent: "percent";
|
|
2340
|
+
percent_delta: "percent_delta";
|
|
2341
|
+
number_delta: "number_delta";
|
|
2342
|
+
currency_delta: "currency_delta";
|
|
2343
|
+
}>>;
|
|
2344
|
+
}, z.core.$strict>>;
|
|
2345
|
+
colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2346
|
+
}, z.core.$strict>], "type">;
|
|
2347
|
+
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
2348
|
+
resource: z.ZodString;
|
|
2349
|
+
select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2350
|
+
field: z.ZodString;
|
|
2351
|
+
as: z.ZodOptional<z.ZodString>;
|
|
2352
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
2353
|
+
day: "day";
|
|
2354
|
+
week: "week";
|
|
2355
|
+
month: "month";
|
|
2356
|
+
year: "year";
|
|
2357
|
+
}>>;
|
|
2358
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2359
|
+
agg: z.ZodEnum<{
|
|
2360
|
+
sum: "sum";
|
|
2361
|
+
count: "count";
|
|
2362
|
+
count_distinct: "count_distinct";
|
|
2363
|
+
avg: "avg";
|
|
2364
|
+
min: "min";
|
|
2365
|
+
max: "max";
|
|
2366
|
+
median: "median";
|
|
2367
|
+
}>;
|
|
2368
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2369
|
+
as: z.ZodString;
|
|
2370
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2371
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2372
|
+
calc: z.ZodString;
|
|
2373
|
+
as: z.ZodString;
|
|
2374
|
+
}, z.core.$strict>]>>>;
|
|
2375
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2376
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2377
|
+
field: z.ZodString;
|
|
2378
|
+
as: z.ZodOptional<z.ZodString>;
|
|
2379
|
+
grain: z.ZodOptional<z.ZodEnum<{
|
|
2380
|
+
day: "day";
|
|
2381
|
+
week: "week";
|
|
2382
|
+
month: "month";
|
|
2383
|
+
year: "year";
|
|
2384
|
+
}>>;
|
|
2385
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2386
|
+
}, z.core.$strict>]>>>;
|
|
2387
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2388
|
+
field: z.ZodString;
|
|
2389
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2390
|
+
asc: "asc";
|
|
2391
|
+
desc: "desc";
|
|
2392
|
+
}>>;
|
|
2393
|
+
}, z.core.$strict>>>;
|
|
2394
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2395
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2396
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
2397
|
+
field: z.ZodString;
|
|
2398
|
+
grain: z.ZodEnum<{
|
|
2399
|
+
day: "day";
|
|
2400
|
+
week: "week";
|
|
2401
|
+
month: "month";
|
|
2402
|
+
year: "year";
|
|
2403
|
+
}>;
|
|
2404
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2405
|
+
}, z.core.$strict>>;
|
|
2406
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
2407
|
+
field: z.ZodString;
|
|
2408
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2409
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2410
|
+
}, z.core.$strict>>;
|
|
2411
|
+
bucket: z.ZodOptional<z.ZodObject<{
|
|
2412
|
+
field: z.ZodString;
|
|
2413
|
+
buckets: z.ZodArray<z.ZodObject<{
|
|
2414
|
+
label: z.ZodString;
|
|
2415
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
2416
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2417
|
+
}, z.core.$strict>>;
|
|
2418
|
+
}, z.core.$strict>>;
|
|
2419
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2420
|
+
calc: z.ZodString;
|
|
2421
|
+
as: z.ZodString;
|
|
2422
|
+
}, z.core.$strict>>>;
|
|
2423
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
2424
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2425
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
2426
|
+
name: z.ZodString;
|
|
2427
|
+
resource: z.ZodString;
|
|
2428
|
+
metric: z.ZodObject<{
|
|
2429
|
+
agg: z.ZodEnum<{
|
|
2430
|
+
sum: "sum";
|
|
2431
|
+
count: "count";
|
|
2432
|
+
count_distinct: "count_distinct";
|
|
2433
|
+
avg: "avg";
|
|
2434
|
+
min: "min";
|
|
2435
|
+
max: "max";
|
|
2436
|
+
median: "median";
|
|
2437
|
+
}>;
|
|
2438
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2439
|
+
as: z.ZodString;
|
|
2440
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2441
|
+
}, z.core.$strict>;
|
|
2442
|
+
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2443
|
+
}, z.core.$strict>>;
|
|
2444
|
+
calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2445
|
+
calc: z.ZodString;
|
|
2446
|
+
as: z.ZodString;
|
|
2447
|
+
}, z.core.$strict>>>;
|
|
1620
2448
|
}, z.core.$strict>]>;
|
|
1621
|
-
}, z.core.$
|
|
1622
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1623
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
2449
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1624
2450
|
label: z.ZodOptional<z.ZodString>;
|
|
2451
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1625
2452
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1626
2453
|
small: "small";
|
|
1627
2454
|
medium: "medium";
|
|
@@ -1631,9 +2458,11 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1631
2458
|
}>>;
|
|
1632
2459
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1633
2460
|
height: z.ZodOptional<z.ZodNumber>;
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
2461
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
2462
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2463
|
+
id: z.ZodString;
|
|
2464
|
+
group_id: z.ZodString;
|
|
2465
|
+
order: z.ZodNumber;
|
|
1637
2466
|
target: z.ZodLiteral<"kpi_card">;
|
|
1638
2467
|
card: z.ZodObject<{
|
|
1639
2468
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1655,8 +2484,8 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1655
2484
|
text: z.ZodOptional<z.ZodString>;
|
|
1656
2485
|
field: z.ZodOptional<z.ZodString>;
|
|
1657
2486
|
}, z.core.$strict>>;
|
|
1658
|
-
comparison: z.ZodOptional<z.
|
|
1659
|
-
sparkline: z.ZodOptional<z.
|
|
2487
|
+
comparison: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2488
|
+
sparkline: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1660
2489
|
}, z.core.$strict>;
|
|
1661
2490
|
query: z.ZodObject<{
|
|
1662
2491
|
resource: z.ZodString;
|
|
@@ -1664,11 +2493,9 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1664
2493
|
field: z.ZodString;
|
|
1665
2494
|
as: z.ZodOptional<z.ZodString>;
|
|
1666
2495
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1667
|
-
hour: "hour";
|
|
1668
2496
|
day: "day";
|
|
1669
2497
|
week: "week";
|
|
1670
2498
|
month: "month";
|
|
1671
|
-
quarter: "quarter";
|
|
1672
2499
|
year: "year";
|
|
1673
2500
|
}>>;
|
|
1674
2501
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1689,20 +2516,18 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1689
2516
|
as: z.ZodString;
|
|
1690
2517
|
}, z.core.$strict>]>>>;
|
|
1691
2518
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1692
|
-
|
|
2519
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1693
2520
|
field: z.ZodString;
|
|
1694
2521
|
as: z.ZodOptional<z.ZodString>;
|
|
1695
2522
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1696
|
-
hour: "hour";
|
|
1697
2523
|
day: "day";
|
|
1698
2524
|
week: "week";
|
|
1699
2525
|
month: "month";
|
|
1700
|
-
quarter: "quarter";
|
|
1701
2526
|
year: "year";
|
|
1702
2527
|
}>>;
|
|
1703
2528
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1704
2529
|
}, z.core.$strict>]>>>;
|
|
1705
|
-
|
|
2530
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1706
2531
|
field: z.ZodString;
|
|
1707
2532
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
1708
2533
|
asc: "asc";
|
|
@@ -1711,22 +2536,20 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1711
2536
|
}, z.core.$strict>>>;
|
|
1712
2537
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1713
2538
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
1714
|
-
|
|
2539
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
1715
2540
|
field: z.ZodString;
|
|
1716
2541
|
grain: z.ZodEnum<{
|
|
1717
|
-
hour: "hour";
|
|
1718
2542
|
day: "day";
|
|
1719
2543
|
week: "week";
|
|
1720
2544
|
month: "month";
|
|
1721
|
-
quarter: "quarter";
|
|
1722
2545
|
year: "year";
|
|
1723
2546
|
}>;
|
|
1724
2547
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1725
2548
|
}, z.core.$strict>>;
|
|
1726
2549
|
period: z.ZodOptional<z.ZodObject<{
|
|
1727
2550
|
field: z.ZodString;
|
|
1728
|
-
gte: z.ZodOptional<z.
|
|
1729
|
-
lt: z.ZodOptional<z.
|
|
2551
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2552
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1730
2553
|
}, z.core.$strict>>;
|
|
1731
2554
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
1732
2555
|
field: z.ZodString;
|
|
@@ -1740,12 +2563,11 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1740
2563
|
calc: z.ZodString;
|
|
1741
2564
|
as: z.ZodString;
|
|
1742
2565
|
}, z.core.$strict>>>;
|
|
1743
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
2566
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1744
2567
|
}, z.core.$strict>;
|
|
1745
|
-
}, z.core.$
|
|
1746
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1747
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
2568
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1748
2569
|
label: z.ZodOptional<z.ZodString>;
|
|
2570
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1749
2571
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1750
2572
|
small: "small";
|
|
1751
2573
|
medium: "medium";
|
|
@@ -1755,9 +2577,11 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1755
2577
|
}>>;
|
|
1756
2578
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1757
2579
|
height: z.ZodOptional<z.ZodNumber>;
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
2580
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
2581
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2582
|
+
id: z.ZodString;
|
|
2583
|
+
group_id: z.ZodString;
|
|
2584
|
+
order: z.ZodNumber;
|
|
1761
2585
|
target: z.ZodLiteral<"gauge_card">;
|
|
1762
2586
|
card: z.ZodObject<{
|
|
1763
2587
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1781,9 +2605,9 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1781
2605
|
label: z.ZodOptional<z.ZodString>;
|
|
1782
2606
|
}, z.core.$strict>>;
|
|
1783
2607
|
progress: z.ZodOptional<z.ZodObject<{
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
2608
|
+
value_field: z.ZodString;
|
|
2609
|
+
target_value: z.ZodOptional<z.ZodNumber>;
|
|
2610
|
+
target_field: z.ZodOptional<z.ZodString>;
|
|
1787
2611
|
format: z.ZodOptional<z.ZodEnum<{
|
|
1788
2612
|
number: "number";
|
|
1789
2613
|
compact_number: "compact_number";
|
|
@@ -1802,11 +2626,9 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1802
2626
|
field: z.ZodString;
|
|
1803
2627
|
as: z.ZodOptional<z.ZodString>;
|
|
1804
2628
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1805
|
-
hour: "hour";
|
|
1806
2629
|
day: "day";
|
|
1807
2630
|
week: "week";
|
|
1808
2631
|
month: "month";
|
|
1809
|
-
quarter: "quarter";
|
|
1810
2632
|
year: "year";
|
|
1811
2633
|
}>>;
|
|
1812
2634
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1827,20 +2649,18 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1827
2649
|
as: z.ZodString;
|
|
1828
2650
|
}, z.core.$strict>]>>>;
|
|
1829
2651
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1830
|
-
|
|
2652
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1831
2653
|
field: z.ZodString;
|
|
1832
2654
|
as: z.ZodOptional<z.ZodString>;
|
|
1833
2655
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1834
|
-
hour: "hour";
|
|
1835
2656
|
day: "day";
|
|
1836
2657
|
week: "week";
|
|
1837
2658
|
month: "month";
|
|
1838
|
-
quarter: "quarter";
|
|
1839
2659
|
year: "year";
|
|
1840
2660
|
}>>;
|
|
1841
2661
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1842
2662
|
}, z.core.$strict>]>>>;
|
|
1843
|
-
|
|
2663
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1844
2664
|
field: z.ZodString;
|
|
1845
2665
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
1846
2666
|
asc: "asc";
|
|
@@ -1849,22 +2669,20 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1849
2669
|
}, z.core.$strict>>>;
|
|
1850
2670
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1851
2671
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
1852
|
-
|
|
2672
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
1853
2673
|
field: z.ZodString;
|
|
1854
2674
|
grain: z.ZodEnum<{
|
|
1855
|
-
hour: "hour";
|
|
1856
2675
|
day: "day";
|
|
1857
2676
|
week: "week";
|
|
1858
2677
|
month: "month";
|
|
1859
|
-
quarter: "quarter";
|
|
1860
2678
|
year: "year";
|
|
1861
2679
|
}>;
|
|
1862
2680
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1863
2681
|
}, z.core.$strict>>;
|
|
1864
2682
|
period: z.ZodOptional<z.ZodObject<{
|
|
1865
2683
|
field: z.ZodString;
|
|
1866
|
-
gte: z.ZodOptional<z.
|
|
1867
|
-
lt: z.ZodOptional<z.
|
|
2684
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2685
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1868
2686
|
}, z.core.$strict>>;
|
|
1869
2687
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
1870
2688
|
field: z.ZodString;
|
|
@@ -1878,12 +2696,11 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1878
2696
|
calc: z.ZodString;
|
|
1879
2697
|
as: z.ZodString;
|
|
1880
2698
|
}, z.core.$strict>>>;
|
|
1881
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
2699
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1882
2700
|
}, z.core.$strict>;
|
|
1883
|
-
}, z.core.$
|
|
1884
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1885
|
-
group_id: z.ZodOptional<z.ZodString>;
|
|
2701
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1886
2702
|
label: z.ZodOptional<z.ZodString>;
|
|
2703
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1887
2704
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1888
2705
|
small: "small";
|
|
1889
2706
|
medium: "medium";
|
|
@@ -1893,9 +2710,11 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1893
2710
|
}>>;
|
|
1894
2711
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1895
2712
|
height: z.ZodOptional<z.ZodNumber>;
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
2713
|
+
min_width: z.ZodOptional<z.ZodNumber>;
|
|
2714
|
+
max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2715
|
+
id: z.ZodString;
|
|
2716
|
+
group_id: z.ZodString;
|
|
2717
|
+
order: z.ZodNumber;
|
|
1899
2718
|
target: z.ZodLiteral<"pivot_table">;
|
|
1900
2719
|
pivot: z.ZodObject<{
|
|
1901
2720
|
rows: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1951,11 +2770,9 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1951
2770
|
field: z.ZodString;
|
|
1952
2771
|
as: z.ZodOptional<z.ZodString>;
|
|
1953
2772
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1954
|
-
hour: "hour";
|
|
1955
2773
|
day: "day";
|
|
1956
2774
|
week: "week";
|
|
1957
2775
|
month: "month";
|
|
1958
|
-
quarter: "quarter";
|
|
1959
2776
|
year: "year";
|
|
1960
2777
|
}>>;
|
|
1961
2778
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1976,20 +2793,18 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1976
2793
|
as: z.ZodString;
|
|
1977
2794
|
}, z.core.$strict>]>>>;
|
|
1978
2795
|
filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1979
|
-
|
|
2796
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1980
2797
|
field: z.ZodString;
|
|
1981
2798
|
as: z.ZodOptional<z.ZodString>;
|
|
1982
2799
|
grain: z.ZodOptional<z.ZodEnum<{
|
|
1983
|
-
hour: "hour";
|
|
1984
2800
|
day: "day";
|
|
1985
2801
|
week: "week";
|
|
1986
2802
|
month: "month";
|
|
1987
|
-
quarter: "quarter";
|
|
1988
2803
|
year: "year";
|
|
1989
2804
|
}>>;
|
|
1990
2805
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1991
2806
|
}, z.core.$strict>]>>>;
|
|
1992
|
-
|
|
2807
|
+
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1993
2808
|
field: z.ZodString;
|
|
1994
2809
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
1995
2810
|
asc: "asc";
|
|
@@ -1998,22 +2813,20 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1998
2813
|
}, z.core.$strict>>>;
|
|
1999
2814
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2000
2815
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
2001
|
-
|
|
2816
|
+
time_series: z.ZodOptional<z.ZodObject<{
|
|
2002
2817
|
field: z.ZodString;
|
|
2003
2818
|
grain: z.ZodEnum<{
|
|
2004
|
-
hour: "hour";
|
|
2005
2819
|
day: "day";
|
|
2006
2820
|
week: "week";
|
|
2007
2821
|
month: "month";
|
|
2008
|
-
quarter: "quarter";
|
|
2009
2822
|
year: "year";
|
|
2010
2823
|
}>;
|
|
2011
2824
|
timezone: z.ZodOptional<z.ZodString>;
|
|
2012
2825
|
}, z.core.$strict>>;
|
|
2013
2826
|
period: z.ZodOptional<z.ZodObject<{
|
|
2014
2827
|
field: z.ZodString;
|
|
2015
|
-
gte: z.ZodOptional<z.
|
|
2016
|
-
lt: z.ZodOptional<z.
|
|
2828
|
+
gte: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2829
|
+
lt: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2017
2830
|
}, z.core.$strict>>;
|
|
2018
2831
|
bucket: z.ZodOptional<z.ZodObject<{
|
|
2019
2832
|
field: z.ZodString;
|
|
@@ -2027,6 +2840,6 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2027
2840
|
calc: z.ZodString;
|
|
2028
2841
|
as: z.ZodString;
|
|
2029
2842
|
}, z.core.$strict>>>;
|
|
2030
|
-
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
2843
|
+
formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
2031
2844
|
}, z.core.$strict>;
|
|
2032
|
-
}, z.core.$
|
|
2845
|
+
}, z.core.$strict>], "target">;
|