@adminforth/dashboard 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/custom/api/dashboardApi.ts +137 -1
  2. package/custom/model/dashboard.types.ts +32 -22
  3. package/custom/package.json +1 -0
  4. package/custom/pnpm-lock.yaml +31 -0
  5. package/custom/runtime/DashboardRuntime.vue +9 -15
  6. package/custom/runtime/YamlConfigEditor.vue +109 -0
  7. package/custom/skills/adminforth-dashboard/SKILL.md +66 -10
  8. package/custom/widgets/KpiCardWidget.vue +172 -9
  9. package/custom/widgets/chart/ChartWidget.vue +5 -5
  10. package/custom/widgets/registry.ts +4 -4
  11. package/dist/custom/api/dashboardApi.d.ts +46 -1
  12. package/dist/custom/api/dashboardApi.js +90 -0
  13. package/dist/custom/api/dashboardApi.ts +137 -1
  14. package/dist/custom/model/dashboard.types.d.ts +30 -14
  15. package/dist/custom/model/dashboard.types.js +2 -2
  16. package/dist/custom/model/dashboard.types.ts +32 -22
  17. package/dist/custom/package.json +1 -0
  18. package/dist/custom/pnpm-lock.yaml +31 -0
  19. package/dist/custom/queries/useDashboardConfig.d.ts +106 -104
  20. package/dist/custom/queries/useWidgetData.d.ts +106 -104
  21. package/dist/custom/runtime/DashboardRuntime.vue +9 -15
  22. package/dist/custom/runtime/YamlConfigEditor.vue +109 -0
  23. package/dist/custom/skills/adminforth-dashboard/SKILL.md +66 -10
  24. package/dist/custom/widgets/KpiCardWidget.vue +172 -9
  25. package/dist/custom/widgets/chart/ChartWidget.vue +5 -5
  26. package/dist/custom/widgets/registry.js +4 -4
  27. package/dist/custom/widgets/registry.ts +4 -4
  28. package/dist/endpoint/widgets.js +99 -14
  29. package/dist/schema/api.d.ts +11426 -1634
  30. package/dist/schema/api.js +118 -21
  31. package/dist/schema/widget.d.ts +425 -1980
  32. package/dist/schema/widget.js +13 -374
  33. package/dist/schema/widgets/charts.d.ts +1689 -0
  34. package/dist/schema/widgets/charts.js +92 -0
  35. package/dist/schema/widgets/common.d.ts +275 -0
  36. package/dist/schema/widgets/common.js +171 -0
  37. package/dist/schema/widgets/gauge-card.d.ts +172 -0
  38. package/dist/schema/widgets/gauge-card.js +28 -0
  39. package/dist/schema/widgets/kpi-card.d.ts +212 -0
  40. package/dist/schema/widgets/kpi-card.js +43 -0
  41. package/dist/schema/widgets/pivot-table.d.ts +196 -0
  42. package/dist/schema/widgets/pivot-table.js +17 -0
  43. package/dist/schema/widgets/table.d.ts +130 -0
  44. package/dist/schema/widgets/table.js +12 -0
  45. package/dist/services/widgetDataService.js +96 -2
  46. package/endpoint/widgets.ts +173 -26
  47. package/package.json +1 -1
  48. package/schema/api.ts +148 -22
  49. package/schema/widget.ts +43 -425
  50. package/schema/widgets/charts.ts +113 -0
  51. package/schema/widgets/common.ts +194 -0
  52. package/schema/widgets/gauge-card.ts +34 -0
  53. package/schema/widgets/kpi-card.ts +49 -0
  54. package/schema/widgets/pivot-table.ts +24 -0
  55. package/schema/widgets/table.ts +18 -0
  56. package/services/widgetDataService.ts +129 -3
  57. package/shims-vue.d.ts +11 -0
  58. package/tsconfig.json +3 -1
@@ -1,1608 +1,35 @@
1
1
  import { z } from 'zod';
2
2
  export type { DashboardWidgetConfigValidationError } from '../custom/model/dashboard.types.js';
3
- export declare const QueryConfigSchema: z.ZodObject<{
4
- resource: z.ZodString;
5
- select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
6
- field: z.ZodString;
7
- as: z.ZodOptional<z.ZodString>;
8
- grain: z.ZodOptional<z.ZodEnum<{
9
- day: "day";
10
- week: "week";
11
- month: "month";
12
- year: "year";
13
- }>>;
14
- }, z.core.$strict>, z.ZodObject<{
15
- agg: z.ZodEnum<{
16
- sum: "sum";
17
- count: "count";
18
- count_distinct: "count_distinct";
19
- avg: "avg";
20
- min: "min";
21
- max: "max";
22
- median: "median";
23
- }>;
24
- field: z.ZodOptional<z.ZodString>;
25
- as: z.ZodString;
26
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
27
- }, z.core.$strict>, z.ZodObject<{
28
- calc: z.ZodString;
29
- as: z.ZodString;
30
- }, z.core.$strict>]>>>;
31
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
32
- group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
33
- field: z.ZodString;
34
- as: z.ZodOptional<z.ZodString>;
35
- grain: z.ZodOptional<z.ZodEnum<{
36
- day: "day";
37
- week: "week";
38
- month: "month";
39
- year: "year";
40
- }>>;
41
- timezone: z.ZodOptional<z.ZodString>;
42
- }, z.core.$strict>]>>>;
43
- order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
44
- field: z.ZodString;
45
- direction: z.ZodOptional<z.ZodEnum<{
46
- asc: "asc";
47
- desc: "desc";
48
- }>>;
49
- }, z.core.$strict>>>;
50
- limit: z.ZodOptional<z.ZodNumber>;
51
- offset: z.ZodOptional<z.ZodNumber>;
52
- time_series: z.ZodOptional<z.ZodObject<{
53
- field: z.ZodString;
54
- grain: z.ZodEnum<{
55
- day: "day";
56
- week: "week";
57
- month: "month";
58
- year: "year";
59
- }>;
60
- timezone: z.ZodOptional<z.ZodString>;
61
- }, z.core.$strict>>;
62
- period: z.ZodOptional<z.ZodObject<{
63
- field: z.ZodString;
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>>>;
66
- }, z.core.$strict>>;
67
- bucket: z.ZodOptional<z.ZodObject<{
68
- field: z.ZodString;
69
- buckets: z.ZodArray<z.ZodObject<{
70
- label: z.ZodString;
71
- min: z.ZodOptional<z.ZodNumber>;
72
- max: z.ZodOptional<z.ZodNumber>;
73
- }, z.core.$strict>>;
74
- }, z.core.$strict>>;
75
- calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
76
- calc: z.ZodString;
77
- as: z.ZodString;
78
- }, z.core.$strict>>>;
79
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
80
- }, z.core.$strict>;
81
- export declare const FunnelQueryConfigSchema: z.ZodObject<{
82
- steps: z.ZodArray<z.ZodObject<{
83
- name: z.ZodString;
84
- resource: z.ZodString;
85
- metric: z.ZodObject<{
86
- agg: z.ZodEnum<{
87
- sum: "sum";
88
- count: "count";
89
- count_distinct: "count_distinct";
90
- avg: "avg";
91
- min: "min";
92
- max: "max";
93
- median: "median";
94
- }>;
95
- field: z.ZodOptional<z.ZodString>;
96
- as: z.ZodString;
97
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
98
- }, z.core.$strict>;
99
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
100
- }, z.core.$strict>>;
101
- calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
- calc: z.ZodString;
103
- as: z.ZodString;
104
- }, z.core.$strict>>>;
105
- }, z.core.$strict>;
106
- export declare const ChartConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
107
- title: z.ZodOptional<z.ZodString>;
108
- type: z.ZodLiteral<"line">;
109
- x: z.ZodObject<{
110
- field: z.ZodString;
111
- label: z.ZodOptional<z.ZodString>;
112
- format: z.ZodOptional<z.ZodEnum<{
113
- number: "number";
114
- compact_number: "compact_number";
115
- currency: "currency";
116
- percent: "percent";
117
- percent_delta: "percent_delta";
118
- number_delta: "number_delta";
119
- currency_delta: "currency_delta";
120
- }>>;
121
- }, z.core.$strict>;
122
- y: z.ZodArray<z.ZodObject<{
123
- field: z.ZodString;
124
- label: z.ZodOptional<z.ZodString>;
125
- format: z.ZodOptional<z.ZodEnum<{
126
- number: "number";
127
- compact_number: "compact_number";
128
- currency: "currency";
129
- percent: "percent";
130
- percent_delta: "percent_delta";
131
- number_delta: "number_delta";
132
- currency_delta: "currency_delta";
133
- }>>;
134
- }, z.core.$strict>>;
135
- series: z.ZodOptional<z.ZodObject<{
136
- field: z.ZodString;
137
- label: z.ZodOptional<z.ZodString>;
138
- }, z.core.$strict>>;
139
- color: z.ZodOptional<z.ZodString>;
140
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
- }, z.core.$strict>, z.ZodObject<{
142
- title: z.ZodOptional<z.ZodString>;
143
- type: z.ZodLiteral<"bar">;
144
- x: z.ZodObject<{
145
- field: z.ZodString;
146
- label: z.ZodOptional<z.ZodString>;
147
- format: z.ZodOptional<z.ZodEnum<{
148
- number: "number";
149
- compact_number: "compact_number";
150
- currency: "currency";
151
- percent: "percent";
152
- percent_delta: "percent_delta";
153
- number_delta: "number_delta";
154
- currency_delta: "currency_delta";
155
- }>>;
156
- }, z.core.$strict>;
157
- y: z.ZodObject<{
158
- field: z.ZodString;
159
- label: z.ZodOptional<z.ZodString>;
160
- format: z.ZodOptional<z.ZodEnum<{
161
- number: "number";
162
- compact_number: "compact_number";
163
- currency: "currency";
164
- percent: "percent";
165
- percent_delta: "percent_delta";
166
- number_delta: "number_delta";
167
- currency_delta: "currency_delta";
168
- }>>;
169
- }, z.core.$strict>;
170
- color: z.ZodOptional<z.ZodString>;
171
- }, z.core.$strict>, z.ZodObject<{
172
- title: z.ZodOptional<z.ZodString>;
173
- type: z.ZodLiteral<"stacked_bar">;
174
- x: z.ZodObject<{
175
- field: z.ZodString;
176
- label: z.ZodOptional<z.ZodString>;
177
- format: z.ZodOptional<z.ZodEnum<{
178
- number: "number";
179
- compact_number: "compact_number";
180
- currency: "currency";
181
- percent: "percent";
182
- percent_delta: "percent_delta";
183
- number_delta: "number_delta";
184
- currency_delta: "currency_delta";
185
- }>>;
186
- }, z.core.$strict>;
187
- y: z.ZodUnion<readonly [z.ZodObject<{
188
- field: z.ZodString;
189
- label: z.ZodOptional<z.ZodString>;
190
- format: z.ZodOptional<z.ZodEnum<{
191
- number: "number";
192
- compact_number: "compact_number";
193
- currency: "currency";
194
- percent: "percent";
195
- percent_delta: "percent_delta";
196
- number_delta: "number_delta";
197
- currency_delta: "currency_delta";
198
- }>>;
199
- }, z.core.$strict>, z.ZodArray<z.ZodObject<{
200
- field: z.ZodString;
201
- label: z.ZodOptional<z.ZodString>;
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>>;
216
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
217
- }, z.core.$strict>, z.ZodObject<{
218
- title: z.ZodOptional<z.ZodString>;
219
- type: z.ZodLiteral<"pie">;
220
- label: z.ZodObject<{
221
- field: z.ZodString;
222
- label: z.ZodOptional<z.ZodString>;
223
- format: z.ZodOptional<z.ZodEnum<{
224
- number: "number";
225
- compact_number: "compact_number";
226
- currency: "currency";
227
- percent: "percent";
228
- percent_delta: "percent_delta";
229
- number_delta: "number_delta";
230
- currency_delta: "currency_delta";
231
- }>>;
232
- }, z.core.$strict>;
233
- value: z.ZodObject<{
234
- field: z.ZodString;
235
- label: z.ZodOptional<z.ZodString>;
236
- format: z.ZodOptional<z.ZodEnum<{
237
- number: "number";
238
- compact_number: "compact_number";
239
- currency: "currency";
240
- percent: "percent";
241
- percent_delta: "percent_delta";
242
- number_delta: "number_delta";
243
- currency_delta: "currency_delta";
244
- }>>;
245
- }, z.core.$strict>;
246
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
247
- }, z.core.$strict>, z.ZodObject<{
248
- title: z.ZodOptional<z.ZodString>;
249
- type: z.ZodLiteral<"histogram">;
250
- x: z.ZodObject<{
251
- field: z.ZodString;
252
- label: z.ZodOptional<z.ZodString>;
253
- format: z.ZodOptional<z.ZodEnum<{
254
- number: "number";
255
- compact_number: "compact_number";
256
- currency: "currency";
257
- percent: "percent";
258
- percent_delta: "percent_delta";
259
- number_delta: "number_delta";
260
- currency_delta: "currency_delta";
261
- }>>;
262
- }, z.core.$strict>;
263
- y: z.ZodObject<{
264
- field: z.ZodString;
265
- label: z.ZodOptional<z.ZodString>;
266
- format: z.ZodOptional<z.ZodEnum<{
267
- number: "number";
268
- compact_number: "compact_number";
269
- currency: "currency";
270
- percent: "percent";
271
- percent_delta: "percent_delta";
272
- number_delta: "number_delta";
273
- currency_delta: "currency_delta";
274
- }>>;
275
- }, z.core.$strict>;
276
- buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
277
- label: z.ZodString;
278
- min: z.ZodOptional<z.ZodNumber>;
279
- max: z.ZodOptional<z.ZodNumber>;
280
- }, z.core.$strict>>>;
281
- color: z.ZodOptional<z.ZodString>;
282
- }, z.core.$strict>, z.ZodObject<{
283
- title: z.ZodOptional<z.ZodString>;
284
- type: z.ZodLiteral<"funnel">;
285
- label: z.ZodOptional<z.ZodObject<{
286
- field: z.ZodString;
287
- label: z.ZodOptional<z.ZodString>;
288
- format: z.ZodOptional<z.ZodEnum<{
289
- number: "number";
290
- compact_number: "compact_number";
291
- currency: "currency";
292
- percent: "percent";
293
- percent_delta: "percent_delta";
294
- number_delta: "number_delta";
295
- currency_delta: "currency_delta";
296
- }>>;
297
- }, z.core.$strict>>;
298
- value: z.ZodOptional<z.ZodObject<{
299
- field: z.ZodString;
300
- label: z.ZodOptional<z.ZodString>;
301
- format: z.ZodOptional<z.ZodEnum<{
302
- number: "number";
303
- compact_number: "compact_number";
304
- currency: "currency";
305
- percent: "percent";
306
- percent_delta: "percent_delta";
307
- number_delta: "number_delta";
308
- currency_delta: "currency_delta";
309
- }>>;
310
- }, z.core.$strict>>;
311
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
312
- }, z.core.$strict>], "type">;
313
- export declare const EmptyWidgetConfigSchema: z.ZodObject<{
314
- label: z.ZodOptional<z.ZodString>;
315
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
316
- size: z.ZodOptional<z.ZodEnum<{
317
- small: "small";
318
- medium: "medium";
319
- large: "large";
320
- wide: "wide";
321
- full: "full";
322
- }>>;
323
- width: z.ZodOptional<z.ZodNumber>;
324
- height: z.ZodOptional<z.ZodNumber>;
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;
330
- target: z.ZodLiteral<"empty">;
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<{
348
- label: z.ZodOptional<z.ZodString>;
349
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
350
- size: z.ZodOptional<z.ZodEnum<{
351
- small: "small";
352
- medium: "medium";
353
- large: "large";
354
- wide: "wide";
355
- full: "full";
356
- }>>;
357
- width: z.ZodOptional<z.ZodNumber>;
358
- height: z.ZodOptional<z.ZodNumber>;
359
- min_width: z.ZodOptional<z.ZodNumber>;
360
- max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
361
- target: z.ZodLiteral<"table">;
362
- table: z.ZodOptional<z.ZodObject<{
363
- columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
364
- field: z.ZodString;
365
- label: z.ZodOptional<z.ZodString>;
366
- format: z.ZodOptional<z.ZodEnum<{
367
- number: "number";
368
- compact_number: "compact_number";
369
- currency: "currency";
370
- percent: "percent";
371
- percent_delta: "percent_delta";
372
- number_delta: "number_delta";
373
- currency_delta: "currency_delta";
374
- }>>;
375
- }, z.core.$strict>]>>>;
376
- pagination: z.ZodOptional<z.ZodBoolean>;
377
- page_size: z.ZodOptional<z.ZodNumber>;
378
- }, z.core.$strict>>;
379
- query: z.ZodObject<{
380
- resource: z.ZodString;
381
- select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
382
- field: z.ZodString;
383
- as: z.ZodOptional<z.ZodString>;
384
- grain: z.ZodOptional<z.ZodEnum<{
385
- day: "day";
386
- week: "week";
387
- month: "month";
388
- year: "year";
389
- }>>;
390
- }, z.core.$strict>, z.ZodObject<{
391
- agg: z.ZodEnum<{
392
- sum: "sum";
393
- count: "count";
394
- count_distinct: "count_distinct";
395
- avg: "avg";
396
- min: "min";
397
- max: "max";
398
- median: "median";
399
- }>;
400
- field: z.ZodOptional<z.ZodString>;
401
- as: z.ZodString;
402
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
403
- }, z.core.$strict>, z.ZodObject<{
404
- calc: z.ZodString;
405
- as: z.ZodString;
406
- }, z.core.$strict>]>>>;
407
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
408
- group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
409
- field: z.ZodString;
410
- as: z.ZodOptional<z.ZodString>;
411
- grain: z.ZodOptional<z.ZodEnum<{
412
- day: "day";
413
- week: "week";
414
- month: "month";
415
- year: "year";
416
- }>>;
417
- timezone: z.ZodOptional<z.ZodString>;
418
- }, z.core.$strict>]>>>;
419
- order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
420
- field: z.ZodString;
421
- direction: z.ZodOptional<z.ZodEnum<{
422
- asc: "asc";
423
- desc: "desc";
424
- }>>;
425
- }, z.core.$strict>>>;
426
- limit: z.ZodOptional<z.ZodNumber>;
427
- offset: z.ZodOptional<z.ZodNumber>;
428
- time_series: z.ZodOptional<z.ZodObject<{
429
- field: z.ZodString;
430
- grain: z.ZodEnum<{
431
- day: "day";
432
- week: "week";
433
- month: "month";
434
- year: "year";
435
- }>;
436
- timezone: z.ZodOptional<z.ZodString>;
437
- }, z.core.$strict>>;
438
- period: z.ZodOptional<z.ZodObject<{
439
- field: z.ZodString;
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>>>;
442
- }, z.core.$strict>>;
443
- bucket: z.ZodOptional<z.ZodObject<{
444
- field: z.ZodString;
445
- buckets: z.ZodArray<z.ZodObject<{
446
- label: z.ZodString;
447
- min: z.ZodOptional<z.ZodNumber>;
448
- max: z.ZodOptional<z.ZodNumber>;
449
- }, z.core.$strict>>;
450
- }, z.core.$strict>>;
451
- calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
452
- calc: z.ZodString;
453
- as: z.ZodString;
454
- }, z.core.$strict>>>;
455
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
456
- }, z.core.$strict>;
457
- }, z.core.$strict>, z.ZodObject<{
458
- label: z.ZodOptional<z.ZodString>;
459
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
460
- size: z.ZodOptional<z.ZodEnum<{
461
- small: "small";
462
- medium: "medium";
463
- large: "large";
464
- wide: "wide";
465
- full: "full";
466
- }>>;
467
- width: z.ZodOptional<z.ZodNumber>;
468
- height: z.ZodOptional<z.ZodNumber>;
469
- min_width: z.ZodOptional<z.ZodNumber>;
470
- max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
471
- target: z.ZodLiteral<"chart">;
472
- chart: z.ZodDiscriminatedUnion<[z.ZodObject<{
473
- title: z.ZodOptional<z.ZodString>;
474
- type: z.ZodLiteral<"line">;
475
- x: z.ZodObject<{
476
- field: z.ZodString;
477
- label: z.ZodOptional<z.ZodString>;
478
- format: z.ZodOptional<z.ZodEnum<{
479
- number: "number";
480
- compact_number: "compact_number";
481
- currency: "currency";
482
- percent: "percent";
483
- percent_delta: "percent_delta";
484
- number_delta: "number_delta";
485
- currency_delta: "currency_delta";
486
- }>>;
487
- }, z.core.$strict>;
488
- y: z.ZodArray<z.ZodObject<{
489
- field: z.ZodString;
490
- label: z.ZodOptional<z.ZodString>;
491
- format: z.ZodOptional<z.ZodEnum<{
492
- number: "number";
493
- compact_number: "compact_number";
494
- currency: "currency";
495
- percent: "percent";
496
- percent_delta: "percent_delta";
497
- number_delta: "number_delta";
498
- currency_delta: "currency_delta";
499
- }>>;
500
- }, z.core.$strict>>;
501
- series: z.ZodOptional<z.ZodObject<{
502
- field: z.ZodString;
503
- label: z.ZodOptional<z.ZodString>;
504
- }, z.core.$strict>>;
505
- color: z.ZodOptional<z.ZodString>;
506
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
507
- }, z.core.$strict>, z.ZodObject<{
508
- title: z.ZodOptional<z.ZodString>;
509
- type: z.ZodLiteral<"bar">;
510
- x: z.ZodObject<{
511
- field: z.ZodString;
512
- label: z.ZodOptional<z.ZodString>;
513
- format: z.ZodOptional<z.ZodEnum<{
514
- number: "number";
515
- compact_number: "compact_number";
516
- currency: "currency";
517
- percent: "percent";
518
- percent_delta: "percent_delta";
519
- number_delta: "number_delta";
520
- currency_delta: "currency_delta";
521
- }>>;
522
- }, z.core.$strict>;
523
- y: z.ZodObject<{
524
- field: z.ZodString;
525
- label: z.ZodOptional<z.ZodString>;
526
- format: z.ZodOptional<z.ZodEnum<{
527
- number: "number";
528
- compact_number: "compact_number";
529
- currency: "currency";
530
- percent: "percent";
531
- percent_delta: "percent_delta";
532
- number_delta: "number_delta";
533
- currency_delta: "currency_delta";
534
- }>>;
535
- }, z.core.$strict>;
536
- color: z.ZodOptional<z.ZodString>;
537
- }, z.core.$strict>, z.ZodObject<{
538
- title: z.ZodOptional<z.ZodString>;
539
- type: z.ZodLiteral<"stacked_bar">;
540
- x: z.ZodObject<{
541
- field: z.ZodString;
542
- label: z.ZodOptional<z.ZodString>;
543
- format: z.ZodOptional<z.ZodEnum<{
544
- number: "number";
545
- compact_number: "compact_number";
546
- currency: "currency";
547
- percent: "percent";
548
- percent_delta: "percent_delta";
549
- number_delta: "number_delta";
550
- currency_delta: "currency_delta";
551
- }>>;
552
- }, z.core.$strict>;
553
- y: z.ZodUnion<readonly [z.ZodObject<{
554
- field: z.ZodString;
555
- label: z.ZodOptional<z.ZodString>;
556
- format: z.ZodOptional<z.ZodEnum<{
557
- number: "number";
558
- compact_number: "compact_number";
559
- currency: "currency";
560
- percent: "percent";
561
- percent_delta: "percent_delta";
562
- number_delta: "number_delta";
563
- currency_delta: "currency_delta";
564
- }>>;
565
- }, z.core.$strict>, z.ZodArray<z.ZodObject<{
566
- field: z.ZodString;
567
- label: z.ZodOptional<z.ZodString>;
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>>;
582
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
583
- }, z.core.$strict>, z.ZodObject<{
584
- title: z.ZodOptional<z.ZodString>;
585
- type: z.ZodLiteral<"pie">;
586
- label: z.ZodObject<{
587
- field: z.ZodString;
588
- label: z.ZodOptional<z.ZodString>;
589
- format: z.ZodOptional<z.ZodEnum<{
590
- number: "number";
591
- compact_number: "compact_number";
592
- currency: "currency";
593
- percent: "percent";
594
- percent_delta: "percent_delta";
595
- number_delta: "number_delta";
596
- currency_delta: "currency_delta";
597
- }>>;
598
- }, z.core.$strict>;
599
- value: z.ZodObject<{
600
- field: z.ZodString;
601
- label: z.ZodOptional<z.ZodString>;
602
- format: z.ZodOptional<z.ZodEnum<{
603
- number: "number";
604
- compact_number: "compact_number";
605
- currency: "currency";
606
- percent: "percent";
607
- percent_delta: "percent_delta";
608
- number_delta: "number_delta";
609
- currency_delta: "currency_delta";
610
- }>>;
611
- }, z.core.$strict>;
612
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
613
- }, z.core.$strict>, z.ZodObject<{
614
- title: z.ZodOptional<z.ZodString>;
615
- type: z.ZodLiteral<"histogram">;
616
- x: z.ZodObject<{
617
- field: z.ZodString;
618
- label: z.ZodOptional<z.ZodString>;
619
- format: z.ZodOptional<z.ZodEnum<{
620
- number: "number";
621
- compact_number: "compact_number";
622
- currency: "currency";
623
- percent: "percent";
624
- percent_delta: "percent_delta";
625
- number_delta: "number_delta";
626
- currency_delta: "currency_delta";
627
- }>>;
628
- }, z.core.$strict>;
629
- y: z.ZodObject<{
630
- field: z.ZodString;
631
- label: z.ZodOptional<z.ZodString>;
632
- format: z.ZodOptional<z.ZodEnum<{
633
- number: "number";
634
- compact_number: "compact_number";
635
- currency: "currency";
636
- percent: "percent";
637
- percent_delta: "percent_delta";
638
- number_delta: "number_delta";
639
- currency_delta: "currency_delta";
640
- }>>;
641
- }, z.core.$strict>;
642
- buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
643
- label: z.ZodString;
644
- min: z.ZodOptional<z.ZodNumber>;
645
- max: z.ZodOptional<z.ZodNumber>;
646
- }, z.core.$strict>>>;
647
- color: z.ZodOptional<z.ZodString>;
648
- }, z.core.$strict>, z.ZodObject<{
649
- title: z.ZodOptional<z.ZodString>;
650
- type: z.ZodLiteral<"funnel">;
651
- label: z.ZodOptional<z.ZodObject<{
652
- field: z.ZodString;
653
- label: z.ZodOptional<z.ZodString>;
654
- format: z.ZodOptional<z.ZodEnum<{
655
- number: "number";
656
- compact_number: "compact_number";
657
- currency: "currency";
658
- percent: "percent";
659
- percent_delta: "percent_delta";
660
- number_delta: "number_delta";
661
- currency_delta: "currency_delta";
662
- }>>;
663
- }, z.core.$strict>>;
664
- value: z.ZodOptional<z.ZodObject<{
665
- field: z.ZodString;
666
- label: z.ZodOptional<z.ZodString>;
667
- format: z.ZodOptional<z.ZodEnum<{
668
- number: "number";
669
- compact_number: "compact_number";
670
- currency: "currency";
671
- percent: "percent";
672
- percent_delta: "percent_delta";
673
- number_delta: "number_delta";
674
- currency_delta: "currency_delta";
675
- }>>;
676
- }, z.core.$strict>>;
677
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
678
- }, z.core.$strict>], "type">;
679
- query: z.ZodUnion<readonly [z.ZodObject<{
680
- resource: z.ZodString;
681
- select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
682
- field: z.ZodString;
683
- as: z.ZodOptional<z.ZodString>;
684
- grain: z.ZodOptional<z.ZodEnum<{
685
- day: "day";
686
- week: "week";
687
- month: "month";
688
- year: "year";
689
- }>>;
690
- }, z.core.$strict>, z.ZodObject<{
691
- agg: z.ZodEnum<{
692
- sum: "sum";
693
- count: "count";
694
- count_distinct: "count_distinct";
695
- avg: "avg";
696
- min: "min";
697
- max: "max";
698
- median: "median";
699
- }>;
700
- field: z.ZodOptional<z.ZodString>;
701
- as: z.ZodString;
702
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
703
- }, z.core.$strict>, z.ZodObject<{
704
- calc: z.ZodString;
705
- as: z.ZodString;
706
- }, z.core.$strict>]>>>;
707
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
708
- group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
709
- field: z.ZodString;
710
- as: z.ZodOptional<z.ZodString>;
711
- grain: z.ZodOptional<z.ZodEnum<{
712
- day: "day";
713
- week: "week";
714
- month: "month";
715
- year: "year";
716
- }>>;
717
- timezone: z.ZodOptional<z.ZodString>;
718
- }, z.core.$strict>]>>>;
719
- order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
720
- field: z.ZodString;
721
- direction: z.ZodOptional<z.ZodEnum<{
722
- asc: "asc";
723
- desc: "desc";
724
- }>>;
725
- }, z.core.$strict>>>;
726
- limit: z.ZodOptional<z.ZodNumber>;
727
- offset: z.ZodOptional<z.ZodNumber>;
728
- time_series: z.ZodOptional<z.ZodObject<{
729
- field: z.ZodString;
730
- grain: z.ZodEnum<{
731
- day: "day";
732
- week: "week";
733
- month: "month";
734
- year: "year";
735
- }>;
736
- timezone: z.ZodOptional<z.ZodString>;
737
- }, z.core.$strict>>;
738
- period: z.ZodOptional<z.ZodObject<{
739
- field: z.ZodString;
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>>>;
742
- }, z.core.$strict>>;
743
- bucket: z.ZodOptional<z.ZodObject<{
744
- field: z.ZodString;
745
- buckets: z.ZodArray<z.ZodObject<{
746
- label: z.ZodString;
747
- min: z.ZodOptional<z.ZodNumber>;
748
- max: z.ZodOptional<z.ZodNumber>;
749
- }, z.core.$strict>>;
750
- }, z.core.$strict>>;
751
- calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
752
- calc: z.ZodString;
753
- as: z.ZodString;
754
- }, z.core.$strict>>>;
755
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
756
- }, z.core.$strict>, z.ZodObject<{
757
- steps: z.ZodArray<z.ZodObject<{
758
- name: z.ZodString;
759
- resource: z.ZodString;
760
- metric: z.ZodObject<{
761
- agg: z.ZodEnum<{
762
- sum: "sum";
763
- count: "count";
764
- count_distinct: "count_distinct";
765
- avg: "avg";
766
- min: "min";
767
- max: "max";
768
- median: "median";
769
- }>;
770
- field: z.ZodOptional<z.ZodString>;
771
- as: z.ZodString;
772
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
773
- }, z.core.$strict>;
774
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
775
- }, z.core.$strict>>;
776
- calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
777
- calc: z.ZodString;
778
- as: z.ZodString;
779
- }, z.core.$strict>>>;
780
- }, z.core.$strict>]>;
781
- }, z.core.$strict>, z.ZodObject<{
782
- label: z.ZodOptional<z.ZodString>;
783
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
784
- size: z.ZodOptional<z.ZodEnum<{
785
- small: "small";
786
- medium: "medium";
787
- large: "large";
788
- wide: "wide";
789
- full: "full";
790
- }>>;
791
- width: z.ZodOptional<z.ZodNumber>;
792
- height: z.ZodOptional<z.ZodNumber>;
793
- min_width: z.ZodOptional<z.ZodNumber>;
794
- max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
795
- target: z.ZodLiteral<"kpi_card">;
796
- card: z.ZodObject<{
797
- title: z.ZodOptional<z.ZodString>;
798
- value: z.ZodObject<{
799
- field: z.ZodString;
800
- format: z.ZodOptional<z.ZodEnum<{
801
- number: "number";
802
- compact_number: "compact_number";
803
- currency: "currency";
804
- percent: "percent";
805
- percent_delta: "percent_delta";
806
- number_delta: "number_delta";
807
- currency_delta: "currency_delta";
808
- }>>;
809
- prefix: z.ZodOptional<z.ZodString>;
810
- suffix: z.ZodOptional<z.ZodString>;
811
- }, z.core.$strict>;
812
- subtitle: z.ZodOptional<z.ZodObject<{
813
- text: z.ZodOptional<z.ZodString>;
814
- field: z.ZodOptional<z.ZodString>;
815
- }, z.core.$strict>>;
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>>>;
818
- }, z.core.$strict>;
819
- query: z.ZodObject<{
820
- resource: z.ZodString;
821
- select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
822
- field: z.ZodString;
823
- as: z.ZodOptional<z.ZodString>;
824
- grain: z.ZodOptional<z.ZodEnum<{
825
- day: "day";
826
- week: "week";
827
- month: "month";
828
- year: "year";
829
- }>>;
830
- }, z.core.$strict>, z.ZodObject<{
831
- agg: z.ZodEnum<{
832
- sum: "sum";
833
- count: "count";
834
- count_distinct: "count_distinct";
835
- avg: "avg";
836
- min: "min";
837
- max: "max";
838
- median: "median";
839
- }>;
840
- field: z.ZodOptional<z.ZodString>;
841
- as: z.ZodString;
842
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
843
- }, z.core.$strict>, z.ZodObject<{
844
- calc: z.ZodString;
845
- as: z.ZodString;
846
- }, z.core.$strict>]>>>;
847
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
848
- group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
849
- field: z.ZodString;
850
- as: z.ZodOptional<z.ZodString>;
851
- grain: z.ZodOptional<z.ZodEnum<{
852
- day: "day";
853
- week: "week";
854
- month: "month";
855
- year: "year";
856
- }>>;
857
- timezone: z.ZodOptional<z.ZodString>;
858
- }, z.core.$strict>]>>>;
859
- order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
860
- field: z.ZodString;
861
- direction: z.ZodOptional<z.ZodEnum<{
862
- asc: "asc";
863
- desc: "desc";
864
- }>>;
865
- }, z.core.$strict>>>;
866
- limit: z.ZodOptional<z.ZodNumber>;
867
- offset: z.ZodOptional<z.ZodNumber>;
868
- time_series: z.ZodOptional<z.ZodObject<{
869
- field: z.ZodString;
870
- grain: z.ZodEnum<{
871
- day: "day";
872
- week: "week";
873
- month: "month";
874
- year: "year";
875
- }>;
876
- timezone: z.ZodOptional<z.ZodString>;
877
- }, z.core.$strict>>;
878
- period: z.ZodOptional<z.ZodObject<{
879
- field: z.ZodString;
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>>>;
882
- }, z.core.$strict>>;
883
- bucket: z.ZodOptional<z.ZodObject<{
884
- field: z.ZodString;
885
- buckets: z.ZodArray<z.ZodObject<{
886
- label: z.ZodString;
887
- min: z.ZodOptional<z.ZodNumber>;
888
- max: z.ZodOptional<z.ZodNumber>;
889
- }, z.core.$strict>>;
890
- }, z.core.$strict>>;
891
- calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
892
- calc: z.ZodString;
893
- as: z.ZodString;
894
- }, z.core.$strict>>>;
895
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
896
- }, z.core.$strict>;
897
- }, z.core.$strict>, z.ZodObject<{
898
- label: z.ZodOptional<z.ZodString>;
899
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
900
- size: z.ZodOptional<z.ZodEnum<{
901
- small: "small";
902
- medium: "medium";
903
- large: "large";
904
- wide: "wide";
905
- full: "full";
906
- }>>;
907
- width: z.ZodOptional<z.ZodNumber>;
908
- height: z.ZodOptional<z.ZodNumber>;
909
- min_width: z.ZodOptional<z.ZodNumber>;
910
- max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
911
- target: z.ZodLiteral<"gauge_card">;
912
- card: z.ZodObject<{
913
- title: z.ZodOptional<z.ZodString>;
914
- value: z.ZodObject<{
915
- field: z.ZodString;
916
- format: z.ZodOptional<z.ZodEnum<{
917
- number: "number";
918
- compact_number: "compact_number";
919
- currency: "currency";
920
- percent: "percent";
921
- percent_delta: "percent_delta";
922
- number_delta: "number_delta";
923
- currency_delta: "currency_delta";
924
- }>>;
925
- prefix: z.ZodOptional<z.ZodString>;
926
- suffix: z.ZodOptional<z.ZodString>;
927
- }, z.core.$strict>;
928
- target: z.ZodOptional<z.ZodObject<{
929
- value: z.ZodOptional<z.ZodNumber>;
930
- field: z.ZodOptional<z.ZodString>;
931
- label: z.ZodOptional<z.ZodString>;
932
- }, z.core.$strict>>;
933
- progress: z.ZodOptional<z.ZodObject<{
934
- value_field: z.ZodString;
935
- target_value: z.ZodOptional<z.ZodNumber>;
936
- target_field: z.ZodOptional<z.ZodString>;
937
- format: z.ZodOptional<z.ZodEnum<{
938
- number: "number";
939
- compact_number: "compact_number";
940
- currency: "currency";
941
- percent: "percent";
942
- percent_delta: "percent_delta";
943
- number_delta: "number_delta";
944
- currency_delta: "currency_delta";
945
- }>>;
946
- }, z.core.$strict>>;
947
- color: z.ZodOptional<z.ZodString>;
948
- }, z.core.$strict>;
949
- query: z.ZodObject<{
950
- resource: z.ZodString;
951
- select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
952
- field: z.ZodString;
953
- as: z.ZodOptional<z.ZodString>;
954
- grain: z.ZodOptional<z.ZodEnum<{
955
- day: "day";
956
- week: "week";
957
- month: "month";
958
- year: "year";
959
- }>>;
960
- }, z.core.$strict>, z.ZodObject<{
961
- agg: z.ZodEnum<{
962
- sum: "sum";
963
- count: "count";
964
- count_distinct: "count_distinct";
965
- avg: "avg";
966
- min: "min";
967
- max: "max";
968
- median: "median";
969
- }>;
970
- field: z.ZodOptional<z.ZodString>;
971
- as: z.ZodString;
972
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
973
- }, z.core.$strict>, z.ZodObject<{
974
- calc: z.ZodString;
975
- as: z.ZodString;
976
- }, z.core.$strict>]>>>;
977
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
978
- group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
979
- field: z.ZodString;
980
- as: z.ZodOptional<z.ZodString>;
981
- grain: z.ZodOptional<z.ZodEnum<{
982
- day: "day";
983
- week: "week";
984
- month: "month";
985
- year: "year";
986
- }>>;
987
- timezone: z.ZodOptional<z.ZodString>;
988
- }, z.core.$strict>]>>>;
989
- order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
990
- field: z.ZodString;
991
- direction: z.ZodOptional<z.ZodEnum<{
992
- asc: "asc";
993
- desc: "desc";
994
- }>>;
995
- }, z.core.$strict>>>;
996
- limit: z.ZodOptional<z.ZodNumber>;
997
- offset: z.ZodOptional<z.ZodNumber>;
998
- time_series: z.ZodOptional<z.ZodObject<{
999
- field: z.ZodString;
1000
- grain: z.ZodEnum<{
1001
- day: "day";
1002
- week: "week";
1003
- month: "month";
1004
- year: "year";
1005
- }>;
1006
- timezone: z.ZodOptional<z.ZodString>;
1007
- }, z.core.$strict>>;
1008
- period: z.ZodOptional<z.ZodObject<{
1009
- field: z.ZodString;
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>>>;
1012
- }, z.core.$strict>>;
1013
- bucket: z.ZodOptional<z.ZodObject<{
1014
- field: z.ZodString;
1015
- buckets: z.ZodArray<z.ZodObject<{
1016
- label: z.ZodString;
1017
- min: z.ZodOptional<z.ZodNumber>;
1018
- max: z.ZodOptional<z.ZodNumber>;
1019
- }, z.core.$strict>>;
1020
- }, z.core.$strict>>;
1021
- calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1022
- calc: z.ZodString;
1023
- as: z.ZodString;
1024
- }, z.core.$strict>>>;
1025
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1026
- }, z.core.$strict>;
1027
- }, z.core.$strict>, z.ZodObject<{
1028
- label: z.ZodOptional<z.ZodString>;
1029
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1030
- size: z.ZodOptional<z.ZodEnum<{
1031
- small: "small";
1032
- medium: "medium";
1033
- large: "large";
1034
- wide: "wide";
1035
- full: "full";
1036
- }>>;
1037
- width: z.ZodOptional<z.ZodNumber>;
1038
- height: z.ZodOptional<z.ZodNumber>;
1039
- min_width: z.ZodOptional<z.ZodNumber>;
1040
- max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1041
- target: z.ZodLiteral<"pivot_table">;
1042
- pivot: z.ZodObject<{
1043
- rows: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1044
- field: z.ZodString;
1045
- label: z.ZodOptional<z.ZodString>;
1046
- format: z.ZodOptional<z.ZodEnum<{
1047
- number: "number";
1048
- compact_number: "compact_number";
1049
- currency: "currency";
1050
- percent: "percent";
1051
- percent_delta: "percent_delta";
1052
- number_delta: "number_delta";
1053
- currency_delta: "currency_delta";
1054
- }>>;
1055
- }, z.core.$strict>]>>;
1056
- columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1057
- field: z.ZodString;
1058
- label: z.ZodOptional<z.ZodString>;
1059
- format: z.ZodOptional<z.ZodEnum<{
1060
- number: "number";
1061
- compact_number: "compact_number";
1062
- currency: "currency";
1063
- percent: "percent";
1064
- percent_delta: "percent_delta";
1065
- number_delta: "number_delta";
1066
- currency_delta: "currency_delta";
1067
- }>>;
1068
- }, z.core.$strict>]>>>;
1069
- values: z.ZodArray<z.ZodObject<{
1070
- field: z.ZodString;
1071
- label: z.ZodOptional<z.ZodString>;
1072
- format: z.ZodOptional<z.ZodEnum<{
1073
- number: "number";
1074
- compact_number: "compact_number";
1075
- currency: "currency";
1076
- percent: "percent";
1077
- percent_delta: "percent_delta";
1078
- number_delta: "number_delta";
1079
- currency_delta: "currency_delta";
1080
- }>>;
1081
- aggregation: z.ZodOptional<z.ZodEnum<{
1082
- sum: "sum";
1083
- count: "count";
1084
- avg: "avg";
1085
- min: "min";
1086
- max: "max";
1087
- }>>;
1088
- }, z.core.$strict>>;
1089
- }, z.core.$strict>;
1090
- query: z.ZodObject<{
1091
- resource: z.ZodString;
1092
- select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1093
- field: z.ZodString;
1094
- as: z.ZodOptional<z.ZodString>;
1095
- grain: z.ZodOptional<z.ZodEnum<{
1096
- day: "day";
1097
- week: "week";
1098
- month: "month";
1099
- year: "year";
1100
- }>>;
1101
- }, z.core.$strict>, z.ZodObject<{
1102
- agg: z.ZodEnum<{
1103
- sum: "sum";
1104
- count: "count";
1105
- count_distinct: "count_distinct";
1106
- avg: "avg";
1107
- min: "min";
1108
- max: "max";
1109
- median: "median";
1110
- }>;
1111
- field: z.ZodOptional<z.ZodString>;
1112
- as: z.ZodString;
1113
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1114
- }, z.core.$strict>, z.ZodObject<{
1115
- calc: z.ZodString;
1116
- as: z.ZodString;
1117
- }, z.core.$strict>]>>>;
1118
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1119
- group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1120
- field: z.ZodString;
1121
- as: z.ZodOptional<z.ZodString>;
1122
- grain: z.ZodOptional<z.ZodEnum<{
1123
- day: "day";
1124
- week: "week";
1125
- month: "month";
1126
- year: "year";
1127
- }>>;
1128
- timezone: z.ZodOptional<z.ZodString>;
1129
- }, z.core.$strict>]>>>;
1130
- order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
1131
- field: z.ZodString;
1132
- direction: z.ZodOptional<z.ZodEnum<{
1133
- asc: "asc";
1134
- desc: "desc";
1135
- }>>;
1136
- }, z.core.$strict>>>;
1137
- limit: z.ZodOptional<z.ZodNumber>;
1138
- offset: z.ZodOptional<z.ZodNumber>;
1139
- time_series: z.ZodOptional<z.ZodObject<{
1140
- field: z.ZodString;
1141
- grain: z.ZodEnum<{
1142
- day: "day";
1143
- week: "week";
1144
- month: "month";
1145
- year: "year";
1146
- }>;
1147
- timezone: z.ZodOptional<z.ZodString>;
1148
- }, z.core.$strict>>;
1149
- period: z.ZodOptional<z.ZodObject<{
1150
- field: z.ZodString;
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>>>;
1153
- }, z.core.$strict>>;
1154
- bucket: z.ZodOptional<z.ZodObject<{
1155
- field: z.ZodString;
1156
- buckets: z.ZodArray<z.ZodObject<{
1157
- label: z.ZodString;
1158
- min: z.ZodOptional<z.ZodNumber>;
1159
- max: z.ZodOptional<z.ZodNumber>;
1160
- }, z.core.$strict>>;
1161
- }, z.core.$strict>>;
1162
- calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1163
- calc: z.ZodString;
1164
- as: z.ZodString;
1165
- }, z.core.$strict>>>;
1166
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1167
- }, z.core.$strict>;
1168
- }, z.core.$strict>], "target">;
1169
- export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1170
- label: z.ZodOptional<z.ZodString>;
1171
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1172
- size: z.ZodOptional<z.ZodEnum<{
1173
- small: "small";
1174
- medium: "medium";
1175
- large: "large";
1176
- wide: "wide";
1177
- full: "full";
1178
- }>>;
1179
- width: z.ZodOptional<z.ZodNumber>;
1180
- height: z.ZodOptional<z.ZodNumber>;
1181
- min_width: z.ZodOptional<z.ZodNumber>;
1182
- max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1183
- target: z.ZodLiteral<"table">;
1184
- table: z.ZodOptional<z.ZodObject<{
1185
- columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1186
- field: z.ZodString;
1187
- label: z.ZodOptional<z.ZodString>;
1188
- format: z.ZodOptional<z.ZodEnum<{
1189
- number: "number";
1190
- compact_number: "compact_number";
1191
- currency: "currency";
1192
- percent: "percent";
1193
- percent_delta: "percent_delta";
1194
- number_delta: "number_delta";
1195
- currency_delta: "currency_delta";
1196
- }>>;
1197
- }, z.core.$strict>]>>>;
1198
- pagination: z.ZodOptional<z.ZodBoolean>;
1199
- page_size: z.ZodOptional<z.ZodNumber>;
1200
- }, z.core.$strict>>;
1201
- query: z.ZodObject<{
1202
- resource: z.ZodString;
1203
- select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1204
- field: z.ZodString;
1205
- as: z.ZodOptional<z.ZodString>;
1206
- grain: z.ZodOptional<z.ZodEnum<{
1207
- day: "day";
1208
- week: "week";
1209
- month: "month";
1210
- year: "year";
1211
- }>>;
1212
- }, z.core.$strict>, z.ZodObject<{
1213
- agg: z.ZodEnum<{
1214
- sum: "sum";
1215
- count: "count";
1216
- count_distinct: "count_distinct";
1217
- avg: "avg";
1218
- min: "min";
1219
- max: "max";
1220
- median: "median";
1221
- }>;
1222
- field: z.ZodOptional<z.ZodString>;
1223
- as: z.ZodString;
1224
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1225
- }, z.core.$strict>, z.ZodObject<{
1226
- calc: z.ZodString;
1227
- as: z.ZodString;
1228
- }, z.core.$strict>]>>>;
1229
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1230
- group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1231
- field: z.ZodString;
1232
- as: z.ZodOptional<z.ZodString>;
1233
- grain: z.ZodOptional<z.ZodEnum<{
1234
- day: "day";
1235
- week: "week";
1236
- month: "month";
1237
- year: "year";
1238
- }>>;
1239
- timezone: z.ZodOptional<z.ZodString>;
1240
- }, z.core.$strict>]>>>;
1241
- order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
1242
- field: z.ZodString;
1243
- direction: z.ZodOptional<z.ZodEnum<{
1244
- asc: "asc";
1245
- desc: "desc";
1246
- }>>;
1247
- }, z.core.$strict>>>;
1248
- limit: z.ZodOptional<z.ZodNumber>;
1249
- offset: z.ZodOptional<z.ZodNumber>;
1250
- time_series: z.ZodOptional<z.ZodObject<{
1251
- field: z.ZodString;
1252
- grain: z.ZodEnum<{
1253
- day: "day";
1254
- week: "week";
1255
- month: "month";
1256
- year: "year";
1257
- }>;
1258
- timezone: z.ZodOptional<z.ZodString>;
1259
- }, z.core.$strict>>;
1260
- period: z.ZodOptional<z.ZodObject<{
1261
- field: z.ZodString;
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>>>;
1264
- }, z.core.$strict>>;
1265
- bucket: z.ZodOptional<z.ZodObject<{
1266
- field: z.ZodString;
1267
- buckets: z.ZodArray<z.ZodObject<{
1268
- label: z.ZodString;
1269
- min: z.ZodOptional<z.ZodNumber>;
1270
- max: z.ZodOptional<z.ZodNumber>;
1271
- }, z.core.$strict>>;
1272
- }, z.core.$strict>>;
1273
- calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1274
- calc: z.ZodString;
1275
- as: z.ZodString;
1276
- }, z.core.$strict>>>;
1277
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1278
- }, z.core.$strict>;
1279
- }, z.core.$strict>, z.ZodObject<{
1280
- label: z.ZodOptional<z.ZodString>;
1281
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1282
- size: z.ZodOptional<z.ZodEnum<{
1283
- small: "small";
1284
- medium: "medium";
1285
- large: "large";
1286
- wide: "wide";
1287
- full: "full";
1288
- }>>;
1289
- width: z.ZodOptional<z.ZodNumber>;
1290
- height: z.ZodOptional<z.ZodNumber>;
1291
- min_width: z.ZodOptional<z.ZodNumber>;
1292
- max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1293
- target: z.ZodLiteral<"chart">;
1294
- chart: z.ZodDiscriminatedUnion<[z.ZodObject<{
1295
- title: z.ZodOptional<z.ZodString>;
1296
- type: z.ZodLiteral<"line">;
1297
- x: z.ZodObject<{
1298
- field: z.ZodString;
1299
- label: z.ZodOptional<z.ZodString>;
1300
- format: z.ZodOptional<z.ZodEnum<{
1301
- number: "number";
1302
- compact_number: "compact_number";
1303
- currency: "currency";
1304
- percent: "percent";
1305
- percent_delta: "percent_delta";
1306
- number_delta: "number_delta";
1307
- currency_delta: "currency_delta";
1308
- }>>;
1309
- }, z.core.$strict>;
1310
- y: z.ZodArray<z.ZodObject<{
1311
- field: z.ZodString;
1312
- label: z.ZodOptional<z.ZodString>;
1313
- format: z.ZodOptional<z.ZodEnum<{
1314
- number: "number";
1315
- compact_number: "compact_number";
1316
- currency: "currency";
1317
- percent: "percent";
1318
- percent_delta: "percent_delta";
1319
- number_delta: "number_delta";
1320
- currency_delta: "currency_delta";
1321
- }>>;
1322
- }, z.core.$strict>>;
1323
- series: z.ZodOptional<z.ZodObject<{
1324
- field: z.ZodString;
1325
- label: z.ZodOptional<z.ZodString>;
1326
- }, z.core.$strict>>;
1327
- color: z.ZodOptional<z.ZodString>;
1328
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1329
- }, z.core.$strict>, z.ZodObject<{
1330
- title: z.ZodOptional<z.ZodString>;
1331
- type: z.ZodLiteral<"bar">;
1332
- x: z.ZodObject<{
1333
- field: z.ZodString;
1334
- label: z.ZodOptional<z.ZodString>;
1335
- format: z.ZodOptional<z.ZodEnum<{
1336
- number: "number";
1337
- compact_number: "compact_number";
1338
- currency: "currency";
1339
- percent: "percent";
1340
- percent_delta: "percent_delta";
1341
- number_delta: "number_delta";
1342
- currency_delta: "currency_delta";
1343
- }>>;
1344
- }, z.core.$strict>;
1345
- y: z.ZodObject<{
1346
- field: z.ZodString;
1347
- label: z.ZodOptional<z.ZodString>;
1348
- format: z.ZodOptional<z.ZodEnum<{
1349
- number: "number";
1350
- compact_number: "compact_number";
1351
- currency: "currency";
1352
- percent: "percent";
1353
- percent_delta: "percent_delta";
1354
- number_delta: "number_delta";
1355
- currency_delta: "currency_delta";
1356
- }>>;
1357
- }, z.core.$strict>;
1358
- color: z.ZodOptional<z.ZodString>;
1359
- }, z.core.$strict>, z.ZodObject<{
1360
- title: z.ZodOptional<z.ZodString>;
1361
- type: z.ZodLiteral<"stacked_bar">;
1362
- x: z.ZodObject<{
1363
- field: z.ZodString;
1364
- label: z.ZodOptional<z.ZodString>;
1365
- format: z.ZodOptional<z.ZodEnum<{
1366
- number: "number";
1367
- compact_number: "compact_number";
1368
- currency: "currency";
1369
- percent: "percent";
1370
- percent_delta: "percent_delta";
1371
- number_delta: "number_delta";
1372
- currency_delta: "currency_delta";
1373
- }>>;
1374
- }, z.core.$strict>;
1375
- y: z.ZodUnion<readonly [z.ZodObject<{
1376
- field: z.ZodString;
1377
- label: z.ZodOptional<z.ZodString>;
1378
- format: z.ZodOptional<z.ZodEnum<{
1379
- number: "number";
1380
- compact_number: "compact_number";
1381
- currency: "currency";
1382
- percent: "percent";
1383
- percent_delta: "percent_delta";
1384
- number_delta: "number_delta";
1385
- currency_delta: "currency_delta";
1386
- }>>;
1387
- }, z.core.$strict>, z.ZodArray<z.ZodObject<{
1388
- field: z.ZodString;
1389
- label: z.ZodOptional<z.ZodString>;
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>>;
1404
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1405
- }, z.core.$strict>, z.ZodObject<{
1406
- title: z.ZodOptional<z.ZodString>;
1407
- type: z.ZodLiteral<"pie">;
1408
- label: z.ZodObject<{
1409
- field: z.ZodString;
1410
- label: z.ZodOptional<z.ZodString>;
1411
- format: z.ZodOptional<z.ZodEnum<{
1412
- number: "number";
1413
- compact_number: "compact_number";
1414
- currency: "currency";
1415
- percent: "percent";
1416
- percent_delta: "percent_delta";
1417
- number_delta: "number_delta";
1418
- currency_delta: "currency_delta";
1419
- }>>;
1420
- }, z.core.$strict>;
1421
- value: z.ZodObject<{
1422
- field: z.ZodString;
1423
- label: z.ZodOptional<z.ZodString>;
1424
- format: z.ZodOptional<z.ZodEnum<{
1425
- number: "number";
1426
- compact_number: "compact_number";
1427
- currency: "currency";
1428
- percent: "percent";
1429
- percent_delta: "percent_delta";
1430
- number_delta: "number_delta";
1431
- currency_delta: "currency_delta";
1432
- }>>;
1433
- }, z.core.$strict>;
1434
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1435
- }, z.core.$strict>, z.ZodObject<{
1436
- title: z.ZodOptional<z.ZodString>;
1437
- type: z.ZodLiteral<"histogram">;
1438
- x: z.ZodObject<{
1439
- field: z.ZodString;
1440
- label: z.ZodOptional<z.ZodString>;
1441
- format: z.ZodOptional<z.ZodEnum<{
1442
- number: "number";
1443
- compact_number: "compact_number";
1444
- currency: "currency";
1445
- percent: "percent";
1446
- percent_delta: "percent_delta";
1447
- number_delta: "number_delta";
1448
- currency_delta: "currency_delta";
1449
- }>>;
1450
- }, z.core.$strict>;
1451
- y: z.ZodObject<{
1452
- field: z.ZodString;
1453
- label: z.ZodOptional<z.ZodString>;
1454
- format: z.ZodOptional<z.ZodEnum<{
1455
- number: "number";
1456
- compact_number: "compact_number";
1457
- currency: "currency";
1458
- percent: "percent";
1459
- percent_delta: "percent_delta";
1460
- number_delta: "number_delta";
1461
- currency_delta: "currency_delta";
1462
- }>>;
1463
- }, z.core.$strict>;
1464
- buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1465
- label: z.ZodString;
1466
- min: z.ZodOptional<z.ZodNumber>;
1467
- max: z.ZodOptional<z.ZodNumber>;
1468
- }, z.core.$strict>>>;
1469
- color: z.ZodOptional<z.ZodString>;
1470
- }, z.core.$strict>, z.ZodObject<{
1471
- title: z.ZodOptional<z.ZodString>;
1472
- type: z.ZodLiteral<"funnel">;
1473
- label: z.ZodOptional<z.ZodObject<{
1474
- field: z.ZodString;
1475
- label: z.ZodOptional<z.ZodString>;
1476
- format: z.ZodOptional<z.ZodEnum<{
1477
- number: "number";
1478
- compact_number: "compact_number";
1479
- currency: "currency";
1480
- percent: "percent";
1481
- percent_delta: "percent_delta";
1482
- number_delta: "number_delta";
1483
- currency_delta: "currency_delta";
1484
- }>>;
1485
- }, z.core.$strict>>;
1486
- value: z.ZodOptional<z.ZodObject<{
1487
- field: z.ZodString;
1488
- label: z.ZodOptional<z.ZodString>;
1489
- format: z.ZodOptional<z.ZodEnum<{
1490
- number: "number";
1491
- compact_number: "compact_number";
1492
- currency: "currency";
1493
- percent: "percent";
1494
- percent_delta: "percent_delta";
1495
- number_delta: "number_delta";
1496
- currency_delta: "currency_delta";
1497
- }>>;
1498
- }, z.core.$strict>>;
1499
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1500
- }, z.core.$strict>], "type">;
1501
- query: z.ZodUnion<readonly [z.ZodObject<{
1502
- resource: z.ZodString;
1503
- select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1504
- field: z.ZodString;
1505
- as: z.ZodOptional<z.ZodString>;
1506
- grain: z.ZodOptional<z.ZodEnum<{
1507
- day: "day";
1508
- week: "week";
1509
- month: "month";
1510
- year: "year";
1511
- }>>;
1512
- }, z.core.$strict>, z.ZodObject<{
1513
- agg: z.ZodEnum<{
1514
- sum: "sum";
1515
- count: "count";
1516
- count_distinct: "count_distinct";
1517
- avg: "avg";
1518
- min: "min";
1519
- max: "max";
1520
- median: "median";
1521
- }>;
1522
- field: z.ZodOptional<z.ZodString>;
1523
- as: z.ZodString;
1524
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1525
- }, z.core.$strict>, z.ZodObject<{
1526
- calc: z.ZodString;
1527
- as: z.ZodString;
1528
- }, z.core.$strict>]>>>;
1529
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1530
- group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1531
- field: z.ZodString;
1532
- as: z.ZodOptional<z.ZodString>;
1533
- grain: z.ZodOptional<z.ZodEnum<{
1534
- day: "day";
1535
- week: "week";
1536
- month: "month";
1537
- year: "year";
1538
- }>>;
1539
- timezone: z.ZodOptional<z.ZodString>;
1540
- }, z.core.$strict>]>>>;
1541
- order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
1542
- field: z.ZodString;
1543
- direction: z.ZodOptional<z.ZodEnum<{
1544
- asc: "asc";
1545
- desc: "desc";
1546
- }>>;
1547
- }, z.core.$strict>>>;
1548
- limit: z.ZodOptional<z.ZodNumber>;
1549
- offset: z.ZodOptional<z.ZodNumber>;
1550
- time_series: z.ZodOptional<z.ZodObject<{
1551
- field: z.ZodString;
1552
- grain: z.ZodEnum<{
1553
- day: "day";
1554
- week: "week";
1555
- month: "month";
1556
- year: "year";
1557
- }>;
1558
- timezone: z.ZodOptional<z.ZodString>;
1559
- }, z.core.$strict>>;
1560
- period: z.ZodOptional<z.ZodObject<{
1561
- field: z.ZodString;
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>>>;
1564
- }, z.core.$strict>>;
1565
- bucket: z.ZodOptional<z.ZodObject<{
1566
- field: z.ZodString;
1567
- buckets: z.ZodArray<z.ZodObject<{
1568
- label: z.ZodString;
1569
- min: z.ZodOptional<z.ZodNumber>;
1570
- max: z.ZodOptional<z.ZodNumber>;
1571
- }, z.core.$strict>>;
1572
- }, z.core.$strict>>;
1573
- calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1574
- calc: z.ZodString;
1575
- as: z.ZodString;
1576
- }, z.core.$strict>>>;
1577
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1578
- }, z.core.$strict>, z.ZodObject<{
1579
- steps: z.ZodArray<z.ZodObject<{
1580
- name: z.ZodString;
1581
- resource: z.ZodString;
1582
- metric: z.ZodObject<{
1583
- agg: z.ZodEnum<{
1584
- sum: "sum";
1585
- count: "count";
1586
- count_distinct: "count_distinct";
1587
- avg: "avg";
1588
- min: "min";
1589
- max: "max";
1590
- median: "median";
1591
- }>;
1592
- field: z.ZodOptional<z.ZodString>;
1593
- as: z.ZodString;
1594
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1595
- }, z.core.$strict>;
1596
- filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
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>]>;
3
+ export { BarChartWidgetConfigSchema, ChartWidgetTargetConfigSchema, BarChartSchema, FunnelChartWidgetConfigSchema, FunnelChartSchema, HistogramChartSchema, HistogramChartWidgetConfigSchema, LineChartWidgetConfigSchema, LineChartSchema, PieChartSchema, PieChartWidgetConfigSchema, StackedBarChartSchema, StackedBarChartWidgetConfigSchema, } from './widgets/charts.js';
4
+ export { GaugeCardWidgetConfigSchema, GaugeCardViewConfigSchema, } from './widgets/gauge-card.js';
5
+ export { KpiCardViewConfigSchema, KpiCardWidgetConfigSchema, } from './widgets/kpi-card.js';
6
+ export { PivotTableViewConfigSchema, PivotTableWidgetConfigSchema, } from './widgets/pivot-table.js';
7
+ export { TableViewConfigSchema, TableWidgetConfigSchema, } from './widgets/table.js';
8
+ export { EmptyWidgetConfigSchema, FunnelQueryConfigSchema, QueryConfigSchema, WidgetEditableBaseSchema, } from './widgets/common.js';
9
+ export declare const WidgetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
10
+ id: z.ZodString;
11
+ group_id: z.ZodString;
12
+ order: z.ZodNumber;
13
+ label: z.ZodOptional<z.ZodString>;
14
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
+ size: z.ZodOptional<z.ZodEnum<{
16
+ small: "small";
17
+ medium: "medium";
18
+ large: "large";
19
+ wide: "wide";
20
+ full: "full";
21
+ }>>;
22
+ width: z.ZodOptional<z.ZodNumber>;
23
+ height: z.ZodOptional<z.ZodNumber>;
24
+ min_width: z.ZodOptional<z.ZodNumber>;
25
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ target: z.ZodLiteral<"empty">;
1603
27
  }, z.core.$strict>, z.ZodObject<{
28
+ id: z.ZodString;
29
+ group_id: z.ZodString;
30
+ order: z.ZodNumber;
1604
31
  label: z.ZodOptional<z.ZodString>;
1605
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
32
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1606
33
  size: z.ZodOptional<z.ZodEnum<{
1607
34
  small: "small";
1608
35
  medium: "medium";
@@ -1614,13 +41,14 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1614
41
  height: z.ZodOptional<z.ZodNumber>;
1615
42
  min_width: z.ZodOptional<z.ZodNumber>;
1616
43
  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<{
44
+ target: z.ZodLiteral<"table">;
45
+ table: z.ZodOptional<z.ZodObject<{
46
+ columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
1621
47
  field: z.ZodString;
48
+ label: z.ZodOptional<z.ZodString>;
1622
49
  format: z.ZodOptional<z.ZodEnum<{
1623
50
  number: "number";
51
+ integer: "integer";
1624
52
  compact_number: "compact_number";
1625
53
  currency: "currency";
1626
54
  percent: "percent";
@@ -1628,16 +56,10 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1628
56
  number_delta: "number_delta";
1629
57
  currency_delta: "currency_delta";
1630
58
  }>>;
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>;
59
+ }, z.core.$strict>>>;
60
+ pagination: z.ZodOptional<z.ZodBoolean>;
61
+ page_size: z.ZodOptional<z.ZodNumber>;
62
+ }, z.core.$strict>>;
1641
63
  query: z.ZodObject<{
1642
64
  resource: z.ZodString;
1643
65
  select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -1666,6 +88,17 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1666
88
  calc: z.ZodString;
1667
89
  as: z.ZodString;
1668
90
  }, z.core.$strict>]>>>;
91
+ sparkline: z.ZodOptional<z.ZodObject<{
92
+ field: z.ZodString;
93
+ grain: z.ZodEnum<{
94
+ day: "day";
95
+ week: "week";
96
+ month: "month";
97
+ year: "year";
98
+ }>;
99
+ as: z.ZodString;
100
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
101
+ }, z.core.$strict>>;
1669
102
  filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1670
103
  group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1671
104
  field: z.ZodString;
@@ -1687,21 +120,6 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1687
120
  }, z.core.$strict>>>;
1688
121
  limit: z.ZodOptional<z.ZodNumber>;
1689
122
  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
123
  bucket: z.ZodOptional<z.ZodObject<{
1706
124
  field: z.ZodString;
1707
125
  buckets: z.ZodArray<z.ZodObject<{
@@ -1714,11 +132,14 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1714
132
  calc: z.ZodString;
1715
133
  as: z.ZodString;
1716
134
  }, z.core.$strict>>>;
1717
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
135
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1718
136
  }, z.core.$strict>;
1719
- }, z.core.$strict>, z.ZodObject<{
137
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
138
+ id: z.ZodString;
139
+ group_id: z.ZodString;
140
+ order: z.ZodNumber;
1720
141
  label: z.ZodOptional<z.ZodString>;
1721
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
142
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1722
143
  size: z.ZodOptional<z.ZodEnum<{
1723
144
  small: "small";
1724
145
  medium: "medium";
@@ -1730,13 +151,16 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1730
151
  height: z.ZodOptional<z.ZodNumber>;
1731
152
  min_width: z.ZodOptional<z.ZodNumber>;
1732
153
  max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1733
- target: z.ZodLiteral<"gauge_card">;
1734
- card: z.ZodObject<{
154
+ target: z.ZodLiteral<"chart">;
155
+ chart: z.ZodObject<{
1735
156
  title: z.ZodOptional<z.ZodString>;
1736
- value: z.ZodObject<{
157
+ type: z.ZodLiteral<"line">;
158
+ x: z.ZodObject<{
1737
159
  field: z.ZodString;
160
+ label: z.ZodOptional<z.ZodString>;
1738
161
  format: z.ZodOptional<z.ZodEnum<{
1739
162
  number: "number";
163
+ integer: "integer";
1740
164
  compact_number: "compact_number";
1741
165
  currency: "currency";
1742
166
  percent: "percent";
@@ -1744,20 +168,13 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1744
168
  number_delta: "number_delta";
1745
169
  currency_delta: "currency_delta";
1746
170
  }>>;
1747
- prefix: z.ZodOptional<z.ZodString>;
1748
- suffix: z.ZodOptional<z.ZodString>;
1749
171
  }, z.core.$strict>;
1750
- target: z.ZodOptional<z.ZodObject<{
1751
- value: z.ZodOptional<z.ZodNumber>;
1752
- field: z.ZodOptional<z.ZodString>;
172
+ y: z.ZodArray<z.ZodObject<{
173
+ field: z.ZodString;
1753
174
  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
175
  format: z.ZodOptional<z.ZodEnum<{
1760
176
  number: "number";
177
+ integer: "integer";
1761
178
  compact_number: "compact_number";
1762
179
  currency: "currency";
1763
180
  percent: "percent";
@@ -1766,7 +183,12 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1766
183
  currency_delta: "currency_delta";
1767
184
  }>>;
1768
185
  }, z.core.$strict>>;
186
+ series: z.ZodOptional<z.ZodObject<{
187
+ field: z.ZodString;
188
+ label: z.ZodOptional<z.ZodString>;
189
+ }, z.core.$strict>>;
1769
190
  color: z.ZodOptional<z.ZodString>;
191
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1770
192
  }, z.core.$strict>;
1771
193
  query: z.ZodObject<{
1772
194
  resource: z.ZodString;
@@ -1796,6 +218,17 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1796
218
  calc: z.ZodString;
1797
219
  as: z.ZodString;
1798
220
  }, z.core.$strict>]>>>;
221
+ sparkline: z.ZodOptional<z.ZodObject<{
222
+ field: z.ZodString;
223
+ grain: z.ZodEnum<{
224
+ day: "day";
225
+ week: "week";
226
+ month: "month";
227
+ year: "year";
228
+ }>;
229
+ as: z.ZodString;
230
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
231
+ }, z.core.$strict>>;
1799
232
  filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1800
233
  group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1801
234
  field: z.ZodString;
@@ -1817,21 +250,6 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1817
250
  }, z.core.$strict>>>;
1818
251
  limit: z.ZodOptional<z.ZodNumber>;
1819
252
  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
253
  bucket: z.ZodOptional<z.ZodObject<{
1836
254
  field: z.ZodString;
1837
255
  buckets: z.ZodArray<z.ZodObject<{
@@ -1844,11 +262,14 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1844
262
  calc: z.ZodString;
1845
263
  as: z.ZodString;
1846
264
  }, z.core.$strict>>>;
1847
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
265
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1848
266
  }, z.core.$strict>;
1849
267
  }, z.core.$strict>, z.ZodObject<{
268
+ id: z.ZodString;
269
+ group_id: z.ZodString;
270
+ order: z.ZodNumber;
1850
271
  label: z.ZodOptional<z.ZodString>;
1851
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
272
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1852
273
  size: z.ZodOptional<z.ZodEnum<{
1853
274
  small: "small";
1854
275
  medium: "medium";
@@ -1860,26 +281,16 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1860
281
  height: z.ZodOptional<z.ZodNumber>;
1861
282
  min_width: z.ZodOptional<z.ZodNumber>;
1862
283
  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<{
284
+ target: z.ZodLiteral<"chart">;
285
+ chart: z.ZodObject<{
286
+ title: z.ZodOptional<z.ZodString>;
287
+ type: z.ZodLiteral<"bar">;
288
+ x: z.ZodObject<{
1879
289
  field: z.ZodString;
1880
290
  label: z.ZodOptional<z.ZodString>;
1881
291
  format: z.ZodOptional<z.ZodEnum<{
1882
292
  number: "number";
293
+ integer: "integer";
1883
294
  compact_number: "compact_number";
1884
295
  currency: "currency";
1885
296
  percent: "percent";
@@ -1887,12 +298,13 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1887
298
  number_delta: "number_delta";
1888
299
  currency_delta: "currency_delta";
1889
300
  }>>;
1890
- }, z.core.$strict>]>>>;
1891
- values: z.ZodArray<z.ZodObject<{
301
+ }, z.core.$strict>;
302
+ y: z.ZodObject<{
1892
303
  field: z.ZodString;
1893
304
  label: z.ZodOptional<z.ZodString>;
1894
305
  format: z.ZodOptional<z.ZodEnum<{
1895
306
  number: "number";
307
+ integer: "integer";
1896
308
  compact_number: "compact_number";
1897
309
  currency: "currency";
1898
310
  percent: "percent";
@@ -1900,14 +312,8 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1900
312
  number_delta: "number_delta";
1901
313
  currency_delta: "currency_delta";
1902
314
  }>>;
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>>;
315
+ }, z.core.$strict>;
316
+ color: z.ZodOptional<z.ZodString>;
1911
317
  }, z.core.$strict>;
1912
318
  query: z.ZodObject<{
1913
319
  resource: z.ZodString;
@@ -1937,6 +343,17 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1937
343
  calc: z.ZodString;
1938
344
  as: z.ZodString;
1939
345
  }, z.core.$strict>]>>>;
346
+ sparkline: z.ZodOptional<z.ZodObject<{
347
+ field: z.ZodString;
348
+ grain: z.ZodEnum<{
349
+ day: "day";
350
+ week: "week";
351
+ month: "month";
352
+ year: "year";
353
+ }>;
354
+ as: z.ZodString;
355
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
356
+ }, z.core.$strict>>;
1940
357
  filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1941
358
  group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1942
359
  field: z.ZodString;
@@ -1958,21 +375,6 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1958
375
  }, z.core.$strict>>>;
1959
376
  limit: z.ZodOptional<z.ZodNumber>;
1960
377
  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
378
  bucket: z.ZodOptional<z.ZodObject<{
1977
379
  field: z.ZodString;
1978
380
  buckets: z.ZodArray<z.ZodObject<{
@@ -1985,30 +387,14 @@ export declare const WidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1985
387
  calc: z.ZodString;
1986
388
  as: z.ZodString;
1987
389
  }, z.core.$strict>>>;
1988
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
390
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1989
391
  }, 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>>;
392
+ }, z.core.$strict>, z.ZodObject<{
2005
393
  id: z.ZodString;
2006
394
  group_id: z.ZodString;
2007
395
  order: z.ZodNumber;
2008
- target: z.ZodLiteral<"empty">;
2009
- }, z.core.$strict>, z.ZodObject<{
2010
396
  label: z.ZodOptional<z.ZodString>;
2011
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
397
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2012
398
  size: z.ZodOptional<z.ZodEnum<{
2013
399
  small: "small";
2014
400
  medium: "medium";
@@ -2020,16 +406,16 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2020
406
  height: z.ZodOptional<z.ZodNumber>;
2021
407
  min_width: z.ZodOptional<z.ZodNumber>;
2022
408
  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<{
409
+ target: z.ZodLiteral<"chart">;
410
+ chart: z.ZodObject<{
411
+ title: z.ZodOptional<z.ZodString>;
412
+ type: z.ZodLiteral<"stacked_bar">;
413
+ x: z.ZodObject<{
2029
414
  field: z.ZodString;
2030
415
  label: z.ZodOptional<z.ZodString>;
2031
416
  format: z.ZodOptional<z.ZodEnum<{
2032
417
  number: "number";
418
+ integer: "integer";
2033
419
  compact_number: "compact_number";
2034
420
  currency: "currency";
2035
421
  percent: "percent";
@@ -2037,10 +423,40 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2037
423
  number_delta: "number_delta";
2038
424
  currency_delta: "currency_delta";
2039
425
  }>>;
2040
- }, z.core.$strict>]>>>;
2041
- pagination: z.ZodOptional<z.ZodBoolean>;
2042
- page_size: z.ZodOptional<z.ZodNumber>;
2043
- }, z.core.$strict>>;
426
+ }, z.core.$strict>;
427
+ y: z.ZodUnion<readonly [z.ZodObject<{
428
+ field: z.ZodString;
429
+ label: z.ZodOptional<z.ZodString>;
430
+ format: z.ZodOptional<z.ZodEnum<{
431
+ number: "number";
432
+ integer: "integer";
433
+ compact_number: "compact_number";
434
+ currency: "currency";
435
+ percent: "percent";
436
+ percent_delta: "percent_delta";
437
+ number_delta: "number_delta";
438
+ currency_delta: "currency_delta";
439
+ }>>;
440
+ }, z.core.$strict>, z.ZodArray<z.ZodObject<{
441
+ field: z.ZodString;
442
+ label: z.ZodOptional<z.ZodString>;
443
+ format: z.ZodOptional<z.ZodEnum<{
444
+ number: "number";
445
+ integer: "integer";
446
+ compact_number: "compact_number";
447
+ currency: "currency";
448
+ percent: "percent";
449
+ percent_delta: "percent_delta";
450
+ number_delta: "number_delta";
451
+ currency_delta: "currency_delta";
452
+ }>>;
453
+ }, z.core.$strict>>]>;
454
+ series: z.ZodOptional<z.ZodObject<{
455
+ field: z.ZodString;
456
+ label: z.ZodOptional<z.ZodString>;
457
+ }, z.core.$strict>>;
458
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
459
+ }, z.core.$strict>;
2044
460
  query: z.ZodObject<{
2045
461
  resource: z.ZodString;
2046
462
  select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -2069,6 +485,17 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2069
485
  calc: z.ZodString;
2070
486
  as: z.ZodString;
2071
487
  }, z.core.$strict>]>>>;
488
+ sparkline: z.ZodOptional<z.ZodObject<{
489
+ field: z.ZodString;
490
+ grain: z.ZodEnum<{
491
+ day: "day";
492
+ week: "week";
493
+ month: "month";
494
+ year: "year";
495
+ }>;
496
+ as: z.ZodString;
497
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
498
+ }, z.core.$strict>>;
2072
499
  filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2073
500
  group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2074
501
  field: z.ZodString;
@@ -2090,21 +517,6 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2090
517
  }, z.core.$strict>>>;
2091
518
  limit: z.ZodOptional<z.ZodNumber>;
2092
519
  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
520
  bucket: z.ZodOptional<z.ZodObject<{
2109
521
  field: z.ZodString;
2110
522
  buckets: z.ZodArray<z.ZodObject<{
@@ -2117,11 +529,14 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2117
529
  calc: z.ZodString;
2118
530
  as: z.ZodString;
2119
531
  }, z.core.$strict>>>;
2120
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
532
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2121
533
  }, z.core.$strict>;
2122
534
  }, z.core.$strict>, z.ZodObject<{
535
+ id: z.ZodString;
536
+ group_id: z.ZodString;
537
+ order: z.ZodNumber;
2123
538
  label: z.ZodOptional<z.ZodString>;
2124
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
539
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2125
540
  size: z.ZodOptional<z.ZodEnum<{
2126
541
  small: "small";
2127
542
  medium: "medium";
@@ -2133,66 +548,16 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2133
548
  height: z.ZodOptional<z.ZodNumber>;
2134
549
  min_width: z.ZodOptional<z.ZodNumber>;
2135
550
  max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2136
- id: z.ZodString;
2137
- group_id: z.ZodString;
2138
- order: z.ZodNumber;
2139
551
  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<{
552
+ chart: z.ZodObject<{
2176
553
  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<{
554
+ type: z.ZodLiteral<"pie">;
555
+ label: z.ZodObject<{
2192
556
  field: z.ZodString;
2193
557
  label: z.ZodOptional<z.ZodString>;
2194
558
  format: z.ZodOptional<z.ZodEnum<{
2195
559
  number: "number";
560
+ integer: "integer";
2196
561
  compact_number: "compact_number";
2197
562
  currency: "currency";
2198
563
  percent: "percent";
@@ -2201,15 +566,12 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2201
566
  currency_delta: "currency_delta";
2202
567
  }>>;
2203
568
  }, 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<{
569
+ value: z.ZodObject<{
2209
570
  field: z.ZodString;
2210
571
  label: z.ZodOptional<z.ZodString>;
2211
572
  format: z.ZodOptional<z.ZodEnum<{
2212
573
  number: "number";
574
+ integer: "integer";
2213
575
  compact_number: "compact_number";
2214
576
  currency: "currency";
2215
577
  percent: "percent";
@@ -2218,67 +580,101 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2218
580
  currency_delta: "currency_delta";
2219
581
  }>>;
2220
582
  }, 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<{
583
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
584
+ }, z.core.$strict>;
585
+ query: z.ZodObject<{
586
+ resource: z.ZodString;
587
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2234
588
  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";
589
+ as: z.ZodOptional<z.ZodString>;
590
+ grain: z.ZodOptional<z.ZodEnum<{
591
+ day: "day";
592
+ week: "week";
593
+ month: "month";
594
+ year: "year";
2244
595
  }>>;
2245
- }, z.core.$strict>>]>;
2246
- series: z.ZodOptional<z.ZodObject<{
596
+ }, z.core.$strict>, z.ZodObject<{
597
+ agg: z.ZodEnum<{
598
+ sum: "sum";
599
+ count: "count";
600
+ count_distinct: "count_distinct";
601
+ avg: "avg";
602
+ min: "min";
603
+ max: "max";
604
+ median: "median";
605
+ }>;
606
+ field: z.ZodOptional<z.ZodString>;
607
+ as: z.ZodString;
608
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
609
+ }, z.core.$strict>, z.ZodObject<{
610
+ calc: z.ZodString;
611
+ as: z.ZodString;
612
+ }, z.core.$strict>]>>>;
613
+ sparkline: z.ZodOptional<z.ZodObject<{
2247
614
  field: z.ZodString;
2248
- label: z.ZodOptional<z.ZodString>;
615
+ grain: z.ZodEnum<{
616
+ day: "day";
617
+ week: "week";
618
+ month: "month";
619
+ year: "year";
620
+ }>;
621
+ as: z.ZodString;
622
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2249
623
  }, 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<{
624
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
625
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2255
626
  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";
627
+ as: z.ZodOptional<z.ZodString>;
628
+ grain: z.ZodOptional<z.ZodEnum<{
629
+ day: "day";
630
+ week: "week";
631
+ month: "month";
632
+ year: "year";
2265
633
  }>>;
2266
- }, z.core.$strict>;
2267
- value: z.ZodObject<{
634
+ timezone: z.ZodOptional<z.ZodString>;
635
+ }, z.core.$strict>]>>>;
636
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
2268
637
  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";
638
+ direction: z.ZodOptional<z.ZodEnum<{
639
+ asc: "asc";
640
+ desc: "desc";
2278
641
  }>>;
2279
- }, z.core.$strict>;
2280
- colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
2281
- }, z.core.$strict>, z.ZodObject<{
642
+ }, z.core.$strict>>>;
643
+ limit: z.ZodOptional<z.ZodNumber>;
644
+ offset: z.ZodOptional<z.ZodNumber>;
645
+ bucket: z.ZodOptional<z.ZodObject<{
646
+ field: z.ZodString;
647
+ buckets: z.ZodArray<z.ZodObject<{
648
+ label: z.ZodString;
649
+ min: z.ZodOptional<z.ZodNumber>;
650
+ max: z.ZodOptional<z.ZodNumber>;
651
+ }, z.core.$strict>>;
652
+ }, z.core.$strict>>;
653
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
654
+ calc: z.ZodString;
655
+ as: z.ZodString;
656
+ }, z.core.$strict>>>;
657
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
658
+ }, z.core.$strict>;
659
+ }, z.core.$strict>, z.ZodObject<{
660
+ id: z.ZodString;
661
+ group_id: z.ZodString;
662
+ order: z.ZodNumber;
663
+ label: z.ZodOptional<z.ZodString>;
664
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
665
+ size: z.ZodOptional<z.ZodEnum<{
666
+ small: "small";
667
+ medium: "medium";
668
+ large: "large";
669
+ wide: "wide";
670
+ full: "full";
671
+ }>>;
672
+ width: z.ZodOptional<z.ZodNumber>;
673
+ height: z.ZodOptional<z.ZodNumber>;
674
+ min_width: z.ZodOptional<z.ZodNumber>;
675
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
676
+ target: z.ZodLiteral<"chart">;
677
+ chart: z.ZodObject<{
2282
678
  title: z.ZodOptional<z.ZodString>;
2283
679
  type: z.ZodLiteral<"histogram">;
2284
680
  x: z.ZodObject<{
@@ -2286,6 +682,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2286
682
  label: z.ZodOptional<z.ZodString>;
2287
683
  format: z.ZodOptional<z.ZodEnum<{
2288
684
  number: "number";
685
+ integer: "integer";
2289
686
  compact_number: "compact_number";
2290
687
  currency: "currency";
2291
688
  percent: "percent";
@@ -2299,6 +696,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2299
696
  label: z.ZodOptional<z.ZodString>;
2300
697
  format: z.ZodOptional<z.ZodEnum<{
2301
698
  number: "number";
699
+ integer: "integer";
2302
700
  compact_number: "compact_number";
2303
701
  currency: "currency";
2304
702
  percent: "percent";
@@ -2313,38 +711,8 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2313
711
  max: z.ZodOptional<z.ZodNumber>;
2314
712
  }, z.core.$strict>>>;
2315
713
  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<{
714
+ }, z.core.$strict>;
715
+ query: z.ZodObject<{
2348
716
  resource: z.ZodString;
2349
717
  select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2350
718
  field: z.ZodString;
@@ -2372,6 +740,17 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2372
740
  calc: z.ZodString;
2373
741
  as: z.ZodString;
2374
742
  }, z.core.$strict>]>>>;
743
+ sparkline: z.ZodOptional<z.ZodObject<{
744
+ field: z.ZodString;
745
+ grain: z.ZodEnum<{
746
+ day: "day";
747
+ week: "week";
748
+ month: "month";
749
+ year: "year";
750
+ }>;
751
+ as: z.ZodString;
752
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
753
+ }, z.core.$strict>>;
2375
754
  filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2376
755
  group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2377
756
  field: z.ZodString;
@@ -2393,21 +772,6 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2393
772
  }, z.core.$strict>>>;
2394
773
  limit: z.ZodOptional<z.ZodNumber>;
2395
774
  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
775
  bucket: z.ZodOptional<z.ZodObject<{
2412
776
  field: z.ZodString;
2413
777
  buckets: z.ZodArray<z.ZodObject<{
@@ -2420,8 +784,60 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2420
784
  calc: z.ZodString;
2421
785
  as: z.ZodString;
2422
786
  }, 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<{
787
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
788
+ }, z.core.$strict>;
789
+ }, z.core.$strict>, z.ZodObject<{
790
+ id: z.ZodString;
791
+ group_id: z.ZodString;
792
+ order: z.ZodNumber;
793
+ label: z.ZodOptional<z.ZodString>;
794
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
795
+ size: z.ZodOptional<z.ZodEnum<{
796
+ small: "small";
797
+ medium: "medium";
798
+ large: "large";
799
+ wide: "wide";
800
+ full: "full";
801
+ }>>;
802
+ width: z.ZodOptional<z.ZodNumber>;
803
+ height: z.ZodOptional<z.ZodNumber>;
804
+ min_width: z.ZodOptional<z.ZodNumber>;
805
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
806
+ target: z.ZodLiteral<"chart">;
807
+ chart: z.ZodObject<{
808
+ title: z.ZodOptional<z.ZodString>;
809
+ type: z.ZodLiteral<"funnel">;
810
+ label: z.ZodOptional<z.ZodObject<{
811
+ field: z.ZodString;
812
+ label: z.ZodOptional<z.ZodString>;
813
+ format: z.ZodOptional<z.ZodEnum<{
814
+ number: "number";
815
+ integer: "integer";
816
+ compact_number: "compact_number";
817
+ currency: "currency";
818
+ percent: "percent";
819
+ percent_delta: "percent_delta";
820
+ number_delta: "number_delta";
821
+ currency_delta: "currency_delta";
822
+ }>>;
823
+ }, z.core.$strict>>;
824
+ value: z.ZodOptional<z.ZodObject<{
825
+ field: z.ZodString;
826
+ label: z.ZodOptional<z.ZodString>;
827
+ format: z.ZodOptional<z.ZodEnum<{
828
+ number: "number";
829
+ integer: "integer";
830
+ compact_number: "compact_number";
831
+ currency: "currency";
832
+ percent: "percent";
833
+ percent_delta: "percent_delta";
834
+ number_delta: "number_delta";
835
+ currency_delta: "currency_delta";
836
+ }>>;
837
+ }, z.core.$strict>>;
838
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
839
+ }, z.core.$strict>;
840
+ query: z.ZodObject<{
2425
841
  steps: z.ZodArray<z.ZodObject<{
2426
842
  name: z.ZodString;
2427
843
  resource: z.ZodString;
@@ -2445,10 +861,13 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2445
861
  calc: z.ZodString;
2446
862
  as: z.ZodString;
2447
863
  }, z.core.$strict>>>;
2448
- }, z.core.$strict>]>;
2449
- }, z.core.$strict>, z.ZodObject<{
864
+ }, z.core.$strict>;
865
+ }, z.core.$strict>]>, z.ZodObject<{
866
+ id: z.ZodString;
867
+ group_id: z.ZodString;
868
+ order: z.ZodNumber;
2450
869
  label: z.ZodOptional<z.ZodString>;
2451
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
870
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2452
871
  size: z.ZodOptional<z.ZodEnum<{
2453
872
  small: "small";
2454
873
  medium: "medium";
@@ -2460,9 +879,6 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2460
879
  height: z.ZodOptional<z.ZodNumber>;
2461
880
  min_width: z.ZodOptional<z.ZodNumber>;
2462
881
  max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2463
- id: z.ZodString;
2464
- group_id: z.ZodString;
2465
- order: z.ZodNumber;
2466
882
  target: z.ZodLiteral<"kpi_card">;
2467
883
  card: z.ZodObject<{
2468
884
  title: z.ZodOptional<z.ZodString>;
@@ -2470,6 +886,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2470
886
  field: z.ZodString;
2471
887
  format: z.ZodOptional<z.ZodEnum<{
2472
888
  number: "number";
889
+ integer: "integer";
2473
890
  compact_number: "compact_number";
2474
891
  currency: "currency";
2475
892
  percent: "percent";
@@ -2484,8 +901,43 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2484
901
  text: z.ZodOptional<z.ZodString>;
2485
902
  field: z.ZodOptional<z.ZodString>;
2486
903
  }, z.core.$strict>>;
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>>>;
904
+ comparison: z.ZodOptional<z.ZodObject<{
905
+ field: z.ZodString;
906
+ format: z.ZodOptional<z.ZodEnum<{
907
+ number: "number";
908
+ integer: "integer";
909
+ compact_number: "compact_number";
910
+ currency: "currency";
911
+ percent: "percent";
912
+ percent_delta: "percent_delta";
913
+ number_delta: "number_delta";
914
+ currency_delta: "currency_delta";
915
+ }>>;
916
+ positive_is_good: z.ZodOptional<z.ZodBoolean>;
917
+ compact: z.ZodOptional<z.ZodObject<{
918
+ show: z.ZodOptional<z.ZodBoolean>;
919
+ template: z.ZodOptional<z.ZodString>;
920
+ }, z.core.$strict>>;
921
+ tooltip: z.ZodOptional<z.ZodObject<{
922
+ label: z.ZodOptional<z.ZodString>;
923
+ template: z.ZodOptional<z.ZodString>;
924
+ }, z.core.$strict>>;
925
+ }, z.core.$strict>>;
926
+ sparkline: z.ZodOptional<z.ZodObject<{
927
+ type: z.ZodOptional<z.ZodEnum<{
928
+ line: "line";
929
+ }>>;
930
+ field: z.ZodString;
931
+ x: z.ZodString;
932
+ show_axes: z.ZodOptional<z.ZodBoolean>;
933
+ show_labels: z.ZodOptional<z.ZodBoolean>;
934
+ fill: z.ZodOptional<z.ZodObject<{
935
+ type: z.ZodOptional<z.ZodEnum<{
936
+ gradient: "gradient";
937
+ solid: "solid";
938
+ }>>;
939
+ }, z.core.$strict>>;
940
+ }, z.core.$strict>>;
2489
941
  }, z.core.$strict>;
2490
942
  query: z.ZodObject<{
2491
943
  resource: z.ZodString;
@@ -2515,6 +967,17 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2515
967
  calc: z.ZodString;
2516
968
  as: z.ZodString;
2517
969
  }, z.core.$strict>]>>>;
970
+ sparkline: z.ZodOptional<z.ZodObject<{
971
+ field: z.ZodString;
972
+ grain: z.ZodEnum<{
973
+ day: "day";
974
+ week: "week";
975
+ month: "month";
976
+ year: "year";
977
+ }>;
978
+ as: z.ZodString;
979
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
980
+ }, z.core.$strict>>;
2518
981
  filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2519
982
  group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2520
983
  field: z.ZodString;
@@ -2536,21 +999,6 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2536
999
  }, z.core.$strict>>>;
2537
1000
  limit: z.ZodOptional<z.ZodNumber>;
2538
1001
  offset: z.ZodOptional<z.ZodNumber>;
2539
- time_series: z.ZodOptional<z.ZodObject<{
2540
- field: z.ZodString;
2541
- grain: z.ZodEnum<{
2542
- day: "day";
2543
- week: "week";
2544
- month: "month";
2545
- year: "year";
2546
- }>;
2547
- timezone: z.ZodOptional<z.ZodString>;
2548
- }, z.core.$strict>>;
2549
- period: z.ZodOptional<z.ZodObject<{
2550
- field: z.ZodString;
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>>>;
2553
- }, z.core.$strict>>;
2554
1002
  bucket: z.ZodOptional<z.ZodObject<{
2555
1003
  field: z.ZodString;
2556
1004
  buckets: z.ZodArray<z.ZodObject<{
@@ -2563,11 +1011,14 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2563
1011
  calc: z.ZodString;
2564
1012
  as: z.ZodString;
2565
1013
  }, z.core.$strict>>>;
2566
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1014
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2567
1015
  }, z.core.$strict>;
2568
1016
  }, z.core.$strict>, z.ZodObject<{
1017
+ id: z.ZodString;
1018
+ group_id: z.ZodString;
1019
+ order: z.ZodNumber;
2569
1020
  label: z.ZodOptional<z.ZodString>;
2570
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1021
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2571
1022
  size: z.ZodOptional<z.ZodEnum<{
2572
1023
  small: "small";
2573
1024
  medium: "medium";
@@ -2579,9 +1030,6 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2579
1030
  height: z.ZodOptional<z.ZodNumber>;
2580
1031
  min_width: z.ZodOptional<z.ZodNumber>;
2581
1032
  max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2582
- id: z.ZodString;
2583
- group_id: z.ZodString;
2584
- order: z.ZodNumber;
2585
1033
  target: z.ZodLiteral<"gauge_card">;
2586
1034
  card: z.ZodObject<{
2587
1035
  title: z.ZodOptional<z.ZodString>;
@@ -2589,6 +1037,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2589
1037
  field: z.ZodString;
2590
1038
  format: z.ZodOptional<z.ZodEnum<{
2591
1039
  number: "number";
1040
+ integer: "integer";
2592
1041
  compact_number: "compact_number";
2593
1042
  currency: "currency";
2594
1043
  percent: "percent";
@@ -2610,6 +1059,7 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2610
1059
  target_field: z.ZodOptional<z.ZodString>;
2611
1060
  format: z.ZodOptional<z.ZodEnum<{
2612
1061
  number: "number";
1062
+ integer: "integer";
2613
1063
  compact_number: "compact_number";
2614
1064
  currency: "currency";
2615
1065
  percent: "percent";
@@ -2648,6 +1098,17 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2648
1098
  calc: z.ZodString;
2649
1099
  as: z.ZodString;
2650
1100
  }, z.core.$strict>]>>>;
1101
+ sparkline: z.ZodOptional<z.ZodObject<{
1102
+ field: z.ZodString;
1103
+ grain: z.ZodEnum<{
1104
+ day: "day";
1105
+ week: "week";
1106
+ month: "month";
1107
+ year: "year";
1108
+ }>;
1109
+ as: z.ZodString;
1110
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1111
+ }, z.core.$strict>>;
2651
1112
  filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2652
1113
  group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2653
1114
  field: z.ZodString;
@@ -2669,21 +1130,6 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2669
1130
  }, z.core.$strict>>>;
2670
1131
  limit: z.ZodOptional<z.ZodNumber>;
2671
1132
  offset: z.ZodOptional<z.ZodNumber>;
2672
- time_series: z.ZodOptional<z.ZodObject<{
2673
- field: z.ZodString;
2674
- grain: z.ZodEnum<{
2675
- day: "day";
2676
- week: "week";
2677
- month: "month";
2678
- year: "year";
2679
- }>;
2680
- timezone: z.ZodOptional<z.ZodString>;
2681
- }, z.core.$strict>>;
2682
- period: z.ZodOptional<z.ZodObject<{
2683
- field: z.ZodString;
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>>>;
2686
- }, z.core.$strict>>;
2687
1133
  bucket: z.ZodOptional<z.ZodObject<{
2688
1134
  field: z.ZodString;
2689
1135
  buckets: z.ZodArray<z.ZodObject<{
@@ -2696,11 +1142,14 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2696
1142
  calc: z.ZodString;
2697
1143
  as: z.ZodString;
2698
1144
  }, z.core.$strict>>>;
2699
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1145
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2700
1146
  }, z.core.$strict>;
2701
1147
  }, z.core.$strict>, z.ZodObject<{
1148
+ id: z.ZodString;
1149
+ group_id: z.ZodString;
1150
+ order: z.ZodNumber;
2702
1151
  label: z.ZodOptional<z.ZodString>;
2703
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1152
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2704
1153
  size: z.ZodOptional<z.ZodEnum<{
2705
1154
  small: "small";
2706
1155
  medium: "medium";
@@ -2712,16 +1161,14 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2712
1161
  height: z.ZodOptional<z.ZodNumber>;
2713
1162
  min_width: z.ZodOptional<z.ZodNumber>;
2714
1163
  max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2715
- id: z.ZodString;
2716
- group_id: z.ZodString;
2717
- order: z.ZodNumber;
2718
1164
  target: z.ZodLiteral<"pivot_table">;
2719
1165
  pivot: z.ZodObject<{
2720
- rows: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1166
+ rows: z.ZodArray<z.ZodObject<{
2721
1167
  field: z.ZodString;
2722
1168
  label: z.ZodOptional<z.ZodString>;
2723
1169
  format: z.ZodOptional<z.ZodEnum<{
2724
1170
  number: "number";
1171
+ integer: "integer";
2725
1172
  compact_number: "compact_number";
2726
1173
  currency: "currency";
2727
1174
  percent: "percent";
@@ -2729,12 +1176,13 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2729
1176
  number_delta: "number_delta";
2730
1177
  currency_delta: "currency_delta";
2731
1178
  }>>;
2732
- }, z.core.$strict>]>>;
2733
- columns: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1179
+ }, z.core.$strict>>;
1180
+ columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
2734
1181
  field: z.ZodString;
2735
1182
  label: z.ZodOptional<z.ZodString>;
2736
1183
  format: z.ZodOptional<z.ZodEnum<{
2737
1184
  number: "number";
1185
+ integer: "integer";
2738
1186
  compact_number: "compact_number";
2739
1187
  currency: "currency";
2740
1188
  percent: "percent";
@@ -2742,12 +1190,13 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2742
1190
  number_delta: "number_delta";
2743
1191
  currency_delta: "currency_delta";
2744
1192
  }>>;
2745
- }, z.core.$strict>]>>>;
1193
+ }, z.core.$strict>>>;
2746
1194
  values: z.ZodArray<z.ZodObject<{
2747
1195
  field: z.ZodString;
2748
1196
  label: z.ZodOptional<z.ZodString>;
2749
1197
  format: z.ZodOptional<z.ZodEnum<{
2750
1198
  number: "number";
1199
+ integer: "integer";
2751
1200
  compact_number: "compact_number";
2752
1201
  currency: "currency";
2753
1202
  percent: "percent";
@@ -2792,6 +1241,17 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2792
1241
  calc: z.ZodString;
2793
1242
  as: z.ZodString;
2794
1243
  }, z.core.$strict>]>>>;
1244
+ sparkline: z.ZodOptional<z.ZodObject<{
1245
+ field: z.ZodString;
1246
+ grain: z.ZodEnum<{
1247
+ day: "day";
1248
+ week: "week";
1249
+ month: "month";
1250
+ year: "year";
1251
+ }>;
1252
+ as: z.ZodString;
1253
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1254
+ }, z.core.$strict>>;
2795
1255
  filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2796
1256
  group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2797
1257
  field: z.ZodString;
@@ -2813,21 +1273,6 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2813
1273
  }, z.core.$strict>>>;
2814
1274
  limit: z.ZodOptional<z.ZodNumber>;
2815
1275
  offset: z.ZodOptional<z.ZodNumber>;
2816
- time_series: z.ZodOptional<z.ZodObject<{
2817
- field: z.ZodString;
2818
- grain: z.ZodEnum<{
2819
- day: "day";
2820
- week: "week";
2821
- month: "month";
2822
- year: "year";
2823
- }>;
2824
- timezone: z.ZodOptional<z.ZodString>;
2825
- }, z.core.$strict>>;
2826
- period: z.ZodOptional<z.ZodObject<{
2827
- field: z.ZodString;
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>>>;
2830
- }, z.core.$strict>>;
2831
1276
  bucket: z.ZodOptional<z.ZodObject<{
2832
1277
  field: z.ZodString;
2833
1278
  buckets: z.ZodArray<z.ZodObject<{
@@ -2840,6 +1285,6 @@ export declare const StoredWidgetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObj
2840
1285
  calc: z.ZodString;
2841
1286
  as: z.ZodString;
2842
1287
  }, z.core.$strict>>>;
2843
- formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1288
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2844
1289
  }, z.core.$strict>;
2845
- }, z.core.$strict>], "target">;
1290
+ }, z.core.$strict>]>;