@voyant-travel/reporting-contracts 0.1.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.
@@ -0,0 +1,1058 @@
1
+ import { z } from "zod";
2
+ export declare const reportingIdentifierSchema: z.ZodString;
3
+ export declare const reportingVersionSchema: z.ZodNumber;
4
+ export declare const reportingScopeSchema: z.ZodString;
5
+ export declare const reportScalarSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6
+ export type ReportScalar = z.infer<typeof reportScalarSchema>;
7
+ export declare const reportParameterValueSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
8
+ export declare const reportParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
9
+ export type ReportParameters = z.infer<typeof reportParametersSchema>;
10
+ export declare const reportFieldValueTypeSchema: z.ZodEnum<{
11
+ string: "string";
12
+ number: "number";
13
+ boolean: "boolean";
14
+ date: "date";
15
+ integer: "integer";
16
+ datetime: "datetime";
17
+ currency: "currency";
18
+ json: "json";
19
+ }>;
20
+ export declare const reportFieldSensitivitySchema: z.ZodEnum<{
21
+ public: "public";
22
+ internal: "internal";
23
+ pii: "pii";
24
+ sensitive: "sensitive";
25
+ }>;
26
+ export declare const reportAggregationSchema: z.ZodEnum<{
27
+ minimum: "minimum";
28
+ maximum: "maximum";
29
+ count: "count";
30
+ countDistinct: "countDistinct";
31
+ sum: "sum";
32
+ average: "average";
33
+ }>;
34
+ export declare const reportDatasetFieldSchema: z.ZodObject<{
35
+ id: z.ZodString;
36
+ label: z.ZodString;
37
+ description: z.ZodOptional<z.ZodString>;
38
+ role: z.ZodEnum<{
39
+ dimension: "dimension";
40
+ measure: "measure";
41
+ }>;
42
+ valueType: z.ZodEnum<{
43
+ string: "string";
44
+ number: "number";
45
+ boolean: "boolean";
46
+ date: "date";
47
+ integer: "integer";
48
+ datetime: "datetime";
49
+ currency: "currency";
50
+ json: "json";
51
+ }>;
52
+ sensitivity: z.ZodDefault<z.ZodEnum<{
53
+ public: "public";
54
+ internal: "internal";
55
+ pii: "pii";
56
+ sensitive: "sensitive";
57
+ }>>;
58
+ requiredScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
59
+ aggregations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
60
+ minimum: "minimum";
61
+ maximum: "maximum";
62
+ count: "count";
63
+ countDistinct: "countDistinct";
64
+ sum: "sum";
65
+ average: "average";
66
+ }>>>;
67
+ }, z.core.$strict>;
68
+ export declare const reportDatasetDefinitionSchema: z.ZodObject<{
69
+ id: z.ZodString;
70
+ version: z.ZodNumber;
71
+ label: z.ZodString;
72
+ description: z.ZodOptional<z.ZodString>;
73
+ grain: z.ZodString;
74
+ requiredScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
75
+ fields: z.ZodArray<z.ZodObject<{
76
+ id: z.ZodString;
77
+ label: z.ZodString;
78
+ description: z.ZodOptional<z.ZodString>;
79
+ role: z.ZodEnum<{
80
+ dimension: "dimension";
81
+ measure: "measure";
82
+ }>;
83
+ valueType: z.ZodEnum<{
84
+ string: "string";
85
+ number: "number";
86
+ boolean: "boolean";
87
+ date: "date";
88
+ integer: "integer";
89
+ datetime: "datetime";
90
+ currency: "currency";
91
+ json: "json";
92
+ }>;
93
+ sensitivity: z.ZodDefault<z.ZodEnum<{
94
+ public: "public";
95
+ internal: "internal";
96
+ pii: "pii";
97
+ sensitive: "sensitive";
98
+ }>>;
99
+ requiredScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
100
+ aggregations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
101
+ minimum: "minimum";
102
+ maximum: "maximum";
103
+ count: "count";
104
+ countDistinct: "countDistinct";
105
+ sum: "sum";
106
+ average: "average";
107
+ }>>>;
108
+ }, z.core.$strict>>;
109
+ defaultLimit: z.ZodDefault<z.ZodNumber>;
110
+ maximumLimit: z.ZodDefault<z.ZodNumber>;
111
+ }, z.core.$strict>;
112
+ export type ReportDatasetDefinition = z.infer<typeof reportDatasetDefinitionSchema>;
113
+ export type ReportDatasetField = z.infer<typeof reportDatasetFieldSchema>;
114
+ export declare const reportValueReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
+ kind: z.ZodLiteral<"literal">;
116
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
117
+ }, z.core.$strict>, z.ZodObject<{
118
+ kind: z.ZodLiteral<"parameter">;
119
+ name: z.ZodString;
120
+ }, z.core.$strict>], "kind">;
121
+ export declare const reportFilterSchema: z.ZodObject<{
122
+ field: z.ZodString;
123
+ operator: z.ZodEnum<{
124
+ in: "in";
125
+ equal: "equal";
126
+ notEqual: "notEqual";
127
+ notIn: "notIn";
128
+ greaterThan: "greaterThan";
129
+ greaterThanOrEqual: "greaterThanOrEqual";
130
+ lessThan: "lessThan";
131
+ lessThanOrEqual: "lessThanOrEqual";
132
+ between: "between";
133
+ contains: "contains";
134
+ isNull: "isNull";
135
+ isNotNull: "isNotNull";
136
+ }>;
137
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
138
+ kind: z.ZodLiteral<"literal">;
139
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
140
+ }, z.core.$strict>, z.ZodObject<{
141
+ kind: z.ZodLiteral<"parameter">;
142
+ name: z.ZodString;
143
+ }, z.core.$strict>], "kind">>;
144
+ }, z.core.$strict>;
145
+ export declare const reportSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
146
+ kind: z.ZodLiteral<"field">;
147
+ field: z.ZodString;
148
+ as: z.ZodOptional<z.ZodString>;
149
+ }, z.core.$strict>, z.ZodObject<{
150
+ kind: z.ZodLiteral<"aggregate">;
151
+ operation: z.ZodEnum<{
152
+ minimum: "minimum";
153
+ maximum: "maximum";
154
+ count: "count";
155
+ countDistinct: "countDistinct";
156
+ sum: "sum";
157
+ average: "average";
158
+ }>;
159
+ field: z.ZodOptional<z.ZodString>;
160
+ as: z.ZodString;
161
+ }, z.core.$strict>], "kind">;
162
+ export declare const reportGroupSchema: z.ZodObject<{
163
+ field: z.ZodString;
164
+ timeGrain: z.ZodOptional<z.ZodEnum<{
165
+ day: "day";
166
+ week: "week";
167
+ month: "month";
168
+ quarter: "quarter";
169
+ year: "year";
170
+ }>>;
171
+ }, z.core.$strict>;
172
+ export declare const reportOrderSchema: z.ZodObject<{
173
+ by: z.ZodString;
174
+ direction: z.ZodDefault<z.ZodEnum<{
175
+ ascending: "ascending";
176
+ descending: "descending";
177
+ }>>;
178
+ }, z.core.$strict>;
179
+ export declare const reportQuerySchema: z.ZodObject<{
180
+ dataset: z.ZodObject<{
181
+ id: z.ZodString;
182
+ version: z.ZodOptional<z.ZodNumber>;
183
+ }, z.core.$strip>;
184
+ select: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
185
+ kind: z.ZodLiteral<"field">;
186
+ field: z.ZodString;
187
+ as: z.ZodOptional<z.ZodString>;
188
+ }, z.core.$strict>, z.ZodObject<{
189
+ kind: z.ZodLiteral<"aggregate">;
190
+ operation: z.ZodEnum<{
191
+ minimum: "minimum";
192
+ maximum: "maximum";
193
+ count: "count";
194
+ countDistinct: "countDistinct";
195
+ sum: "sum";
196
+ average: "average";
197
+ }>;
198
+ field: z.ZodOptional<z.ZodString>;
199
+ as: z.ZodString;
200
+ }, z.core.$strict>], "kind">>;
201
+ filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
202
+ field: z.ZodString;
203
+ operator: z.ZodEnum<{
204
+ in: "in";
205
+ equal: "equal";
206
+ notEqual: "notEqual";
207
+ notIn: "notIn";
208
+ greaterThan: "greaterThan";
209
+ greaterThanOrEqual: "greaterThanOrEqual";
210
+ lessThan: "lessThan";
211
+ lessThanOrEqual: "lessThanOrEqual";
212
+ between: "between";
213
+ contains: "contains";
214
+ isNull: "isNull";
215
+ isNotNull: "isNotNull";
216
+ }>;
217
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
218
+ kind: z.ZodLiteral<"literal">;
219
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ kind: z.ZodLiteral<"parameter">;
222
+ name: z.ZodString;
223
+ }, z.core.$strict>], "kind">>;
224
+ }, z.core.$strict>>>;
225
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
226
+ field: z.ZodString;
227
+ timeGrain: z.ZodOptional<z.ZodEnum<{
228
+ day: "day";
229
+ week: "week";
230
+ month: "month";
231
+ quarter: "quarter";
232
+ year: "year";
233
+ }>>;
234
+ }, z.core.$strict>>>;
235
+ orderBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
236
+ by: z.ZodString;
237
+ direction: z.ZodDefault<z.ZodEnum<{
238
+ ascending: "ascending";
239
+ descending: "descending";
240
+ }>>;
241
+ }, z.core.$strict>>>;
242
+ limit: z.ZodOptional<z.ZodNumber>;
243
+ }, z.core.$strict>;
244
+ export type ReportQuery = z.infer<typeof reportQuerySchema>;
245
+ export declare const reportColumnSchema: z.ZodObject<{
246
+ id: z.ZodString;
247
+ label: z.ZodString;
248
+ valueType: z.ZodEnum<{
249
+ string: "string";
250
+ number: "number";
251
+ boolean: "boolean";
252
+ date: "date";
253
+ integer: "integer";
254
+ datetime: "datetime";
255
+ currency: "currency";
256
+ json: "json";
257
+ }>;
258
+ }, z.core.$strict>;
259
+ export declare const reportResultSchema: z.ZodObject<{
260
+ columns: z.ZodArray<z.ZodObject<{
261
+ id: z.ZodString;
262
+ label: z.ZodString;
263
+ valueType: z.ZodEnum<{
264
+ string: "string";
265
+ number: "number";
266
+ boolean: "boolean";
267
+ date: "date";
268
+ integer: "integer";
269
+ datetime: "datetime";
270
+ currency: "currency";
271
+ json: "json";
272
+ }>;
273
+ }, z.core.$strict>>;
274
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
275
+ truncated: z.ZodDefault<z.ZodBoolean>;
276
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
277
+ }, z.core.$strict>;
278
+ export type ReportResult = z.infer<typeof reportResultSchema>;
279
+ export declare const reportVisualizationSchema: z.ZodObject<{
280
+ type: z.ZodEnum<{
281
+ kpi: "kpi";
282
+ table: "table";
283
+ line: "line";
284
+ bar: "bar";
285
+ pie: "pie";
286
+ }>;
287
+ options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
288
+ }, z.core.$strict>;
289
+ export declare const reportGridSizeSchema: z.ZodObject<{
290
+ width: z.ZodNumber;
291
+ height: z.ZodNumber;
292
+ }, z.core.$strict>;
293
+ export declare const reportGridLayoutSchema: z.ZodObject<{
294
+ width: z.ZodNumber;
295
+ height: z.ZodNumber;
296
+ x: z.ZodNumber;
297
+ y: z.ZodNumber;
298
+ }, z.core.$strict>;
299
+ export declare const reportWidgetDefinitionSchema: z.ZodObject<{
300
+ id: z.ZodString;
301
+ version: z.ZodNumber;
302
+ label: z.ZodString;
303
+ description: z.ZodOptional<z.ZodString>;
304
+ query: z.ZodObject<{
305
+ dataset: z.ZodObject<{
306
+ id: z.ZodString;
307
+ version: z.ZodOptional<z.ZodNumber>;
308
+ }, z.core.$strip>;
309
+ select: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
310
+ kind: z.ZodLiteral<"field">;
311
+ field: z.ZodString;
312
+ as: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strict>, z.ZodObject<{
314
+ kind: z.ZodLiteral<"aggregate">;
315
+ operation: z.ZodEnum<{
316
+ minimum: "minimum";
317
+ maximum: "maximum";
318
+ count: "count";
319
+ countDistinct: "countDistinct";
320
+ sum: "sum";
321
+ average: "average";
322
+ }>;
323
+ field: z.ZodOptional<z.ZodString>;
324
+ as: z.ZodString;
325
+ }, z.core.$strict>], "kind">>;
326
+ filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
327
+ field: z.ZodString;
328
+ operator: z.ZodEnum<{
329
+ in: "in";
330
+ equal: "equal";
331
+ notEqual: "notEqual";
332
+ notIn: "notIn";
333
+ greaterThan: "greaterThan";
334
+ greaterThanOrEqual: "greaterThanOrEqual";
335
+ lessThan: "lessThan";
336
+ lessThanOrEqual: "lessThanOrEqual";
337
+ between: "between";
338
+ contains: "contains";
339
+ isNull: "isNull";
340
+ isNotNull: "isNotNull";
341
+ }>;
342
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
343
+ kind: z.ZodLiteral<"literal">;
344
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
345
+ }, z.core.$strict>, z.ZodObject<{
346
+ kind: z.ZodLiteral<"parameter">;
347
+ name: z.ZodString;
348
+ }, z.core.$strict>], "kind">>;
349
+ }, z.core.$strict>>>;
350
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
351
+ field: z.ZodString;
352
+ timeGrain: z.ZodOptional<z.ZodEnum<{
353
+ day: "day";
354
+ week: "week";
355
+ month: "month";
356
+ quarter: "quarter";
357
+ year: "year";
358
+ }>>;
359
+ }, z.core.$strict>>>;
360
+ orderBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
361
+ by: z.ZodString;
362
+ direction: z.ZodDefault<z.ZodEnum<{
363
+ ascending: "ascending";
364
+ descending: "descending";
365
+ }>>;
366
+ }, z.core.$strict>>>;
367
+ limit: z.ZodOptional<z.ZodNumber>;
368
+ }, z.core.$strict>;
369
+ visualization: z.ZodObject<{
370
+ type: z.ZodEnum<{
371
+ kpi: "kpi";
372
+ table: "table";
373
+ line: "line";
374
+ bar: "bar";
375
+ pie: "pie";
376
+ }>;
377
+ options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
378
+ }, z.core.$strict>;
379
+ defaultSize: z.ZodObject<{
380
+ width: z.ZodNumber;
381
+ height: z.ZodNumber;
382
+ }, z.core.$strict>;
383
+ minimumSize: z.ZodOptional<z.ZodObject<{
384
+ width: z.ZodNumber;
385
+ height: z.ZodNumber;
386
+ }, z.core.$strict>>;
387
+ maximumSize: z.ZodOptional<z.ZodObject<{
388
+ width: z.ZodNumber;
389
+ height: z.ZodNumber;
390
+ }, z.core.$strict>>;
391
+ }, z.core.$strict>;
392
+ export type ReportWidgetDefinition = z.infer<typeof reportWidgetDefinitionSchema>;
393
+ export declare const reportWidgetInstanceSchema: z.ZodObject<{
394
+ id: z.ZodString;
395
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
396
+ kind: z.ZodLiteral<"preset">;
397
+ widgetId: z.ZodString;
398
+ version: z.ZodOptional<z.ZodNumber>;
399
+ }, z.core.$strict>, z.ZodObject<{
400
+ kind: z.ZodLiteral<"custom">;
401
+ definition: z.ZodObject<{
402
+ id: z.ZodString;
403
+ version: z.ZodNumber;
404
+ label: z.ZodString;
405
+ description: z.ZodOptional<z.ZodString>;
406
+ query: z.ZodObject<{
407
+ dataset: z.ZodObject<{
408
+ id: z.ZodString;
409
+ version: z.ZodOptional<z.ZodNumber>;
410
+ }, z.core.$strip>;
411
+ select: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
412
+ kind: z.ZodLiteral<"field">;
413
+ field: z.ZodString;
414
+ as: z.ZodOptional<z.ZodString>;
415
+ }, z.core.$strict>, z.ZodObject<{
416
+ kind: z.ZodLiteral<"aggregate">;
417
+ operation: z.ZodEnum<{
418
+ minimum: "minimum";
419
+ maximum: "maximum";
420
+ count: "count";
421
+ countDistinct: "countDistinct";
422
+ sum: "sum";
423
+ average: "average";
424
+ }>;
425
+ field: z.ZodOptional<z.ZodString>;
426
+ as: z.ZodString;
427
+ }, z.core.$strict>], "kind">>;
428
+ filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
429
+ field: z.ZodString;
430
+ operator: z.ZodEnum<{
431
+ in: "in";
432
+ equal: "equal";
433
+ notEqual: "notEqual";
434
+ notIn: "notIn";
435
+ greaterThan: "greaterThan";
436
+ greaterThanOrEqual: "greaterThanOrEqual";
437
+ lessThan: "lessThan";
438
+ lessThanOrEqual: "lessThanOrEqual";
439
+ between: "between";
440
+ contains: "contains";
441
+ isNull: "isNull";
442
+ isNotNull: "isNotNull";
443
+ }>;
444
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
445
+ kind: z.ZodLiteral<"literal">;
446
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
447
+ }, z.core.$strict>, z.ZodObject<{
448
+ kind: z.ZodLiteral<"parameter">;
449
+ name: z.ZodString;
450
+ }, z.core.$strict>], "kind">>;
451
+ }, z.core.$strict>>>;
452
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
453
+ field: z.ZodString;
454
+ timeGrain: z.ZodOptional<z.ZodEnum<{
455
+ day: "day";
456
+ week: "week";
457
+ month: "month";
458
+ quarter: "quarter";
459
+ year: "year";
460
+ }>>;
461
+ }, z.core.$strict>>>;
462
+ orderBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
463
+ by: z.ZodString;
464
+ direction: z.ZodDefault<z.ZodEnum<{
465
+ ascending: "ascending";
466
+ descending: "descending";
467
+ }>>;
468
+ }, z.core.$strict>>>;
469
+ limit: z.ZodOptional<z.ZodNumber>;
470
+ }, z.core.$strict>;
471
+ visualization: z.ZodObject<{
472
+ type: z.ZodEnum<{
473
+ kpi: "kpi";
474
+ table: "table";
475
+ line: "line";
476
+ bar: "bar";
477
+ pie: "pie";
478
+ }>;
479
+ options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
480
+ }, z.core.$strict>;
481
+ defaultSize: z.ZodObject<{
482
+ width: z.ZodNumber;
483
+ height: z.ZodNumber;
484
+ }, z.core.$strict>;
485
+ minimumSize: z.ZodOptional<z.ZodObject<{
486
+ width: z.ZodNumber;
487
+ height: z.ZodNumber;
488
+ }, z.core.$strict>>;
489
+ maximumSize: z.ZodOptional<z.ZodObject<{
490
+ width: z.ZodNumber;
491
+ height: z.ZodNumber;
492
+ }, z.core.$strict>>;
493
+ }, z.core.$strict>;
494
+ }, z.core.$strict>], "kind">;
495
+ title: z.ZodOptional<z.ZodString>;
496
+ layout: z.ZodObject<{
497
+ width: z.ZodNumber;
498
+ height: z.ZodNumber;
499
+ x: z.ZodNumber;
500
+ y: z.ZodNumber;
501
+ }, z.core.$strict>;
502
+ }, z.core.$strict>;
503
+ export type ReportWidgetInstance = z.infer<typeof reportWidgetInstanceSchema>;
504
+ export declare const reportTemplateDefinitionSchema: z.ZodObject<{
505
+ id: z.ZodString;
506
+ version: z.ZodNumber;
507
+ label: z.ZodString;
508
+ description: z.ZodOptional<z.ZodString>;
509
+ parameters: z.ZodDefault<z.ZodArray<z.ZodString>>;
510
+ widgets: z.ZodArray<z.ZodObject<{
511
+ id: z.ZodString;
512
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
513
+ kind: z.ZodLiteral<"preset">;
514
+ widgetId: z.ZodString;
515
+ version: z.ZodOptional<z.ZodNumber>;
516
+ }, z.core.$strict>, z.ZodObject<{
517
+ kind: z.ZodLiteral<"custom">;
518
+ definition: z.ZodObject<{
519
+ id: z.ZodString;
520
+ version: z.ZodNumber;
521
+ label: z.ZodString;
522
+ description: z.ZodOptional<z.ZodString>;
523
+ query: z.ZodObject<{
524
+ dataset: z.ZodObject<{
525
+ id: z.ZodString;
526
+ version: z.ZodOptional<z.ZodNumber>;
527
+ }, z.core.$strip>;
528
+ select: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
529
+ kind: z.ZodLiteral<"field">;
530
+ field: z.ZodString;
531
+ as: z.ZodOptional<z.ZodString>;
532
+ }, z.core.$strict>, z.ZodObject<{
533
+ kind: z.ZodLiteral<"aggregate">;
534
+ operation: z.ZodEnum<{
535
+ minimum: "minimum";
536
+ maximum: "maximum";
537
+ count: "count";
538
+ countDistinct: "countDistinct";
539
+ sum: "sum";
540
+ average: "average";
541
+ }>;
542
+ field: z.ZodOptional<z.ZodString>;
543
+ as: z.ZodString;
544
+ }, z.core.$strict>], "kind">>;
545
+ filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
546
+ field: z.ZodString;
547
+ operator: z.ZodEnum<{
548
+ in: "in";
549
+ equal: "equal";
550
+ notEqual: "notEqual";
551
+ notIn: "notIn";
552
+ greaterThan: "greaterThan";
553
+ greaterThanOrEqual: "greaterThanOrEqual";
554
+ lessThan: "lessThan";
555
+ lessThanOrEqual: "lessThanOrEqual";
556
+ between: "between";
557
+ contains: "contains";
558
+ isNull: "isNull";
559
+ isNotNull: "isNotNull";
560
+ }>;
561
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
562
+ kind: z.ZodLiteral<"literal">;
563
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
564
+ }, z.core.$strict>, z.ZodObject<{
565
+ kind: z.ZodLiteral<"parameter">;
566
+ name: z.ZodString;
567
+ }, z.core.$strict>], "kind">>;
568
+ }, z.core.$strict>>>;
569
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
570
+ field: z.ZodString;
571
+ timeGrain: z.ZodOptional<z.ZodEnum<{
572
+ day: "day";
573
+ week: "week";
574
+ month: "month";
575
+ quarter: "quarter";
576
+ year: "year";
577
+ }>>;
578
+ }, z.core.$strict>>>;
579
+ orderBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
580
+ by: z.ZodString;
581
+ direction: z.ZodDefault<z.ZodEnum<{
582
+ ascending: "ascending";
583
+ descending: "descending";
584
+ }>>;
585
+ }, z.core.$strict>>>;
586
+ limit: z.ZodOptional<z.ZodNumber>;
587
+ }, z.core.$strict>;
588
+ visualization: z.ZodObject<{
589
+ type: z.ZodEnum<{
590
+ kpi: "kpi";
591
+ table: "table";
592
+ line: "line";
593
+ bar: "bar";
594
+ pie: "pie";
595
+ }>;
596
+ options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
597
+ }, z.core.$strict>;
598
+ defaultSize: z.ZodObject<{
599
+ width: z.ZodNumber;
600
+ height: z.ZodNumber;
601
+ }, z.core.$strict>;
602
+ minimumSize: z.ZodOptional<z.ZodObject<{
603
+ width: z.ZodNumber;
604
+ height: z.ZodNumber;
605
+ }, z.core.$strict>>;
606
+ maximumSize: z.ZodOptional<z.ZodObject<{
607
+ width: z.ZodNumber;
608
+ height: z.ZodNumber;
609
+ }, z.core.$strict>>;
610
+ }, z.core.$strict>;
611
+ }, z.core.$strict>], "kind">;
612
+ title: z.ZodOptional<z.ZodString>;
613
+ layout: z.ZodObject<{
614
+ width: z.ZodNumber;
615
+ height: z.ZodNumber;
616
+ x: z.ZodNumber;
617
+ y: z.ZodNumber;
618
+ }, z.core.$strict>;
619
+ }, z.core.$strict>>;
620
+ }, z.core.$strict>;
621
+ export type ReportTemplateDefinition = z.infer<typeof reportTemplateDefinitionSchema>;
622
+ export declare const reportDraftSchema: z.ZodObject<{
623
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
624
+ widgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
625
+ id: z.ZodString;
626
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
627
+ kind: z.ZodLiteral<"preset">;
628
+ widgetId: z.ZodString;
629
+ version: z.ZodOptional<z.ZodNumber>;
630
+ }, z.core.$strict>, z.ZodObject<{
631
+ kind: z.ZodLiteral<"custom">;
632
+ definition: z.ZodObject<{
633
+ id: z.ZodString;
634
+ version: z.ZodNumber;
635
+ label: z.ZodString;
636
+ description: z.ZodOptional<z.ZodString>;
637
+ query: z.ZodObject<{
638
+ dataset: z.ZodObject<{
639
+ id: z.ZodString;
640
+ version: z.ZodOptional<z.ZodNumber>;
641
+ }, z.core.$strip>;
642
+ select: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
643
+ kind: z.ZodLiteral<"field">;
644
+ field: z.ZodString;
645
+ as: z.ZodOptional<z.ZodString>;
646
+ }, z.core.$strict>, z.ZodObject<{
647
+ kind: z.ZodLiteral<"aggregate">;
648
+ operation: z.ZodEnum<{
649
+ minimum: "minimum";
650
+ maximum: "maximum";
651
+ count: "count";
652
+ countDistinct: "countDistinct";
653
+ sum: "sum";
654
+ average: "average";
655
+ }>;
656
+ field: z.ZodOptional<z.ZodString>;
657
+ as: z.ZodString;
658
+ }, z.core.$strict>], "kind">>;
659
+ filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
660
+ field: z.ZodString;
661
+ operator: z.ZodEnum<{
662
+ in: "in";
663
+ equal: "equal";
664
+ notEqual: "notEqual";
665
+ notIn: "notIn";
666
+ greaterThan: "greaterThan";
667
+ greaterThanOrEqual: "greaterThanOrEqual";
668
+ lessThan: "lessThan";
669
+ lessThanOrEqual: "lessThanOrEqual";
670
+ between: "between";
671
+ contains: "contains";
672
+ isNull: "isNull";
673
+ isNotNull: "isNotNull";
674
+ }>;
675
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
676
+ kind: z.ZodLiteral<"literal">;
677
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
678
+ }, z.core.$strict>, z.ZodObject<{
679
+ kind: z.ZodLiteral<"parameter">;
680
+ name: z.ZodString;
681
+ }, z.core.$strict>], "kind">>;
682
+ }, z.core.$strict>>>;
683
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
684
+ field: z.ZodString;
685
+ timeGrain: z.ZodOptional<z.ZodEnum<{
686
+ day: "day";
687
+ week: "week";
688
+ month: "month";
689
+ quarter: "quarter";
690
+ year: "year";
691
+ }>>;
692
+ }, z.core.$strict>>>;
693
+ orderBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
694
+ by: z.ZodString;
695
+ direction: z.ZodDefault<z.ZodEnum<{
696
+ ascending: "ascending";
697
+ descending: "descending";
698
+ }>>;
699
+ }, z.core.$strict>>>;
700
+ limit: z.ZodOptional<z.ZodNumber>;
701
+ }, z.core.$strict>;
702
+ visualization: z.ZodObject<{
703
+ type: z.ZodEnum<{
704
+ kpi: "kpi";
705
+ table: "table";
706
+ line: "line";
707
+ bar: "bar";
708
+ pie: "pie";
709
+ }>;
710
+ options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
711
+ }, z.core.$strict>;
712
+ defaultSize: z.ZodObject<{
713
+ width: z.ZodNumber;
714
+ height: z.ZodNumber;
715
+ }, z.core.$strict>;
716
+ minimumSize: z.ZodOptional<z.ZodObject<{
717
+ width: z.ZodNumber;
718
+ height: z.ZodNumber;
719
+ }, z.core.$strict>>;
720
+ maximumSize: z.ZodOptional<z.ZodObject<{
721
+ width: z.ZodNumber;
722
+ height: z.ZodNumber;
723
+ }, z.core.$strict>>;
724
+ }, z.core.$strict>;
725
+ }, z.core.$strict>], "kind">;
726
+ title: z.ZodOptional<z.ZodString>;
727
+ layout: z.ZodObject<{
728
+ width: z.ZodNumber;
729
+ height: z.ZodNumber;
730
+ x: z.ZodNumber;
731
+ y: z.ZodNumber;
732
+ }, z.core.$strict>;
733
+ }, z.core.$strict>>>;
734
+ }, z.core.$strict>;
735
+ export type ReportDraft = z.infer<typeof reportDraftSchema>;
736
+ export declare const createReportDefinitionSchema: z.ZodObject<{
737
+ name: z.ZodString;
738
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
+ sourceTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
740
+ sourceTemplateVersion: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
741
+ draft: z.ZodDefault<z.ZodObject<{
742
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
743
+ widgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
744
+ id: z.ZodString;
745
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
746
+ kind: z.ZodLiteral<"preset">;
747
+ widgetId: z.ZodString;
748
+ version: z.ZodOptional<z.ZodNumber>;
749
+ }, z.core.$strict>, z.ZodObject<{
750
+ kind: z.ZodLiteral<"custom">;
751
+ definition: z.ZodObject<{
752
+ id: z.ZodString;
753
+ version: z.ZodNumber;
754
+ label: z.ZodString;
755
+ description: z.ZodOptional<z.ZodString>;
756
+ query: z.ZodObject<{
757
+ dataset: z.ZodObject<{
758
+ id: z.ZodString;
759
+ version: z.ZodOptional<z.ZodNumber>;
760
+ }, z.core.$strip>;
761
+ select: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
762
+ kind: z.ZodLiteral<"field">;
763
+ field: z.ZodString;
764
+ as: z.ZodOptional<z.ZodString>;
765
+ }, z.core.$strict>, z.ZodObject<{
766
+ kind: z.ZodLiteral<"aggregate">;
767
+ operation: z.ZodEnum<{
768
+ minimum: "minimum";
769
+ maximum: "maximum";
770
+ count: "count";
771
+ countDistinct: "countDistinct";
772
+ sum: "sum";
773
+ average: "average";
774
+ }>;
775
+ field: z.ZodOptional<z.ZodString>;
776
+ as: z.ZodString;
777
+ }, z.core.$strict>], "kind">>;
778
+ filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
779
+ field: z.ZodString;
780
+ operator: z.ZodEnum<{
781
+ in: "in";
782
+ equal: "equal";
783
+ notEqual: "notEqual";
784
+ notIn: "notIn";
785
+ greaterThan: "greaterThan";
786
+ greaterThanOrEqual: "greaterThanOrEqual";
787
+ lessThan: "lessThan";
788
+ lessThanOrEqual: "lessThanOrEqual";
789
+ between: "between";
790
+ contains: "contains";
791
+ isNull: "isNull";
792
+ isNotNull: "isNotNull";
793
+ }>;
794
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
795
+ kind: z.ZodLiteral<"literal">;
796
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
797
+ }, z.core.$strict>, z.ZodObject<{
798
+ kind: z.ZodLiteral<"parameter">;
799
+ name: z.ZodString;
800
+ }, z.core.$strict>], "kind">>;
801
+ }, z.core.$strict>>>;
802
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
803
+ field: z.ZodString;
804
+ timeGrain: z.ZodOptional<z.ZodEnum<{
805
+ day: "day";
806
+ week: "week";
807
+ month: "month";
808
+ quarter: "quarter";
809
+ year: "year";
810
+ }>>;
811
+ }, z.core.$strict>>>;
812
+ orderBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
813
+ by: z.ZodString;
814
+ direction: z.ZodDefault<z.ZodEnum<{
815
+ ascending: "ascending";
816
+ descending: "descending";
817
+ }>>;
818
+ }, z.core.$strict>>>;
819
+ limit: z.ZodOptional<z.ZodNumber>;
820
+ }, z.core.$strict>;
821
+ visualization: z.ZodObject<{
822
+ type: z.ZodEnum<{
823
+ kpi: "kpi";
824
+ table: "table";
825
+ line: "line";
826
+ bar: "bar";
827
+ pie: "pie";
828
+ }>;
829
+ options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
830
+ }, z.core.$strict>;
831
+ defaultSize: z.ZodObject<{
832
+ width: z.ZodNumber;
833
+ height: z.ZodNumber;
834
+ }, z.core.$strict>;
835
+ minimumSize: z.ZodOptional<z.ZodObject<{
836
+ width: z.ZodNumber;
837
+ height: z.ZodNumber;
838
+ }, z.core.$strict>>;
839
+ maximumSize: z.ZodOptional<z.ZodObject<{
840
+ width: z.ZodNumber;
841
+ height: z.ZodNumber;
842
+ }, z.core.$strict>>;
843
+ }, z.core.$strict>;
844
+ }, z.core.$strict>], "kind">;
845
+ title: z.ZodOptional<z.ZodString>;
846
+ layout: z.ZodObject<{
847
+ width: z.ZodNumber;
848
+ height: z.ZodNumber;
849
+ x: z.ZodNumber;
850
+ y: z.ZodNumber;
851
+ }, z.core.$strict>;
852
+ }, z.core.$strict>>>;
853
+ }, z.core.$strict>>;
854
+ }, z.core.$strict>;
855
+ export declare const updateReportDefinitionSchema: z.ZodObject<{
856
+ revision: z.ZodNumber;
857
+ name: z.ZodOptional<z.ZodString>;
858
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
859
+ draft: z.ZodOptional<z.ZodObject<{
860
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
861
+ widgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
862
+ id: z.ZodString;
863
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
864
+ kind: z.ZodLiteral<"preset">;
865
+ widgetId: z.ZodString;
866
+ version: z.ZodOptional<z.ZodNumber>;
867
+ }, z.core.$strict>, z.ZodObject<{
868
+ kind: z.ZodLiteral<"custom">;
869
+ definition: z.ZodObject<{
870
+ id: z.ZodString;
871
+ version: z.ZodNumber;
872
+ label: z.ZodString;
873
+ description: z.ZodOptional<z.ZodString>;
874
+ query: z.ZodObject<{
875
+ dataset: z.ZodObject<{
876
+ id: z.ZodString;
877
+ version: z.ZodOptional<z.ZodNumber>;
878
+ }, z.core.$strip>;
879
+ select: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
880
+ kind: z.ZodLiteral<"field">;
881
+ field: z.ZodString;
882
+ as: z.ZodOptional<z.ZodString>;
883
+ }, z.core.$strict>, z.ZodObject<{
884
+ kind: z.ZodLiteral<"aggregate">;
885
+ operation: z.ZodEnum<{
886
+ minimum: "minimum";
887
+ maximum: "maximum";
888
+ count: "count";
889
+ countDistinct: "countDistinct";
890
+ sum: "sum";
891
+ average: "average";
892
+ }>;
893
+ field: z.ZodOptional<z.ZodString>;
894
+ as: z.ZodString;
895
+ }, z.core.$strict>], "kind">>;
896
+ filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
897
+ field: z.ZodString;
898
+ operator: z.ZodEnum<{
899
+ in: "in";
900
+ equal: "equal";
901
+ notEqual: "notEqual";
902
+ notIn: "notIn";
903
+ greaterThan: "greaterThan";
904
+ greaterThanOrEqual: "greaterThanOrEqual";
905
+ lessThan: "lessThan";
906
+ lessThanOrEqual: "lessThanOrEqual";
907
+ between: "between";
908
+ contains: "contains";
909
+ isNull: "isNull";
910
+ isNotNull: "isNotNull";
911
+ }>;
912
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
913
+ kind: z.ZodLiteral<"literal">;
914
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
915
+ }, z.core.$strict>, z.ZodObject<{
916
+ kind: z.ZodLiteral<"parameter">;
917
+ name: z.ZodString;
918
+ }, z.core.$strict>], "kind">>;
919
+ }, z.core.$strict>>>;
920
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
921
+ field: z.ZodString;
922
+ timeGrain: z.ZodOptional<z.ZodEnum<{
923
+ day: "day";
924
+ week: "week";
925
+ month: "month";
926
+ quarter: "quarter";
927
+ year: "year";
928
+ }>>;
929
+ }, z.core.$strict>>>;
930
+ orderBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
931
+ by: z.ZodString;
932
+ direction: z.ZodDefault<z.ZodEnum<{
933
+ ascending: "ascending";
934
+ descending: "descending";
935
+ }>>;
936
+ }, z.core.$strict>>>;
937
+ limit: z.ZodOptional<z.ZodNumber>;
938
+ }, z.core.$strict>;
939
+ visualization: z.ZodObject<{
940
+ type: z.ZodEnum<{
941
+ kpi: "kpi";
942
+ table: "table";
943
+ line: "line";
944
+ bar: "bar";
945
+ pie: "pie";
946
+ }>;
947
+ options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
948
+ }, z.core.$strict>;
949
+ defaultSize: z.ZodObject<{
950
+ width: z.ZodNumber;
951
+ height: z.ZodNumber;
952
+ }, z.core.$strict>;
953
+ minimumSize: z.ZodOptional<z.ZodObject<{
954
+ width: z.ZodNumber;
955
+ height: z.ZodNumber;
956
+ }, z.core.$strict>>;
957
+ maximumSize: z.ZodOptional<z.ZodObject<{
958
+ width: z.ZodNumber;
959
+ height: z.ZodNumber;
960
+ }, z.core.$strict>>;
961
+ }, z.core.$strict>;
962
+ }, z.core.$strict>], "kind">;
963
+ title: z.ZodOptional<z.ZodString>;
964
+ layout: z.ZodObject<{
965
+ width: z.ZodNumber;
966
+ height: z.ZodNumber;
967
+ x: z.ZodNumber;
968
+ y: z.ZodNumber;
969
+ }, z.core.$strict>;
970
+ }, z.core.$strict>>>;
971
+ }, z.core.$strict>>;
972
+ }, z.core.$strict>;
973
+ export declare const listReportDefinitionsQuerySchema: z.ZodObject<{
974
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
975
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
976
+ }, z.core.$strip>;
977
+ export declare const createReportVersionSchema: z.ZodObject<{
978
+ expectedRevision: z.ZodNumber;
979
+ }, z.core.$strict>;
980
+ export declare const executeReportVersionSchema: z.ZodObject<{
981
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
982
+ }, z.core.$strict>;
983
+ export declare const previewReportQuerySchema: z.ZodObject<{
984
+ query: z.ZodObject<{
985
+ dataset: z.ZodObject<{
986
+ id: z.ZodString;
987
+ version: z.ZodOptional<z.ZodNumber>;
988
+ }, z.core.$strip>;
989
+ select: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
990
+ kind: z.ZodLiteral<"field">;
991
+ field: z.ZodString;
992
+ as: z.ZodOptional<z.ZodString>;
993
+ }, z.core.$strict>, z.ZodObject<{
994
+ kind: z.ZodLiteral<"aggregate">;
995
+ operation: z.ZodEnum<{
996
+ minimum: "minimum";
997
+ maximum: "maximum";
998
+ count: "count";
999
+ countDistinct: "countDistinct";
1000
+ sum: "sum";
1001
+ average: "average";
1002
+ }>;
1003
+ field: z.ZodOptional<z.ZodString>;
1004
+ as: z.ZodString;
1005
+ }, z.core.$strict>], "kind">>;
1006
+ filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
1007
+ field: z.ZodString;
1008
+ operator: z.ZodEnum<{
1009
+ in: "in";
1010
+ equal: "equal";
1011
+ notEqual: "notEqual";
1012
+ notIn: "notIn";
1013
+ greaterThan: "greaterThan";
1014
+ greaterThanOrEqual: "greaterThanOrEqual";
1015
+ lessThan: "lessThan";
1016
+ lessThanOrEqual: "lessThanOrEqual";
1017
+ between: "between";
1018
+ contains: "contains";
1019
+ isNull: "isNull";
1020
+ isNotNull: "isNotNull";
1021
+ }>;
1022
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1023
+ kind: z.ZodLiteral<"literal">;
1024
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
1025
+ }, z.core.$strict>, z.ZodObject<{
1026
+ kind: z.ZodLiteral<"parameter">;
1027
+ name: z.ZodString;
1028
+ }, z.core.$strict>], "kind">>;
1029
+ }, z.core.$strict>>>;
1030
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
1031
+ field: z.ZodString;
1032
+ timeGrain: z.ZodOptional<z.ZodEnum<{
1033
+ day: "day";
1034
+ week: "week";
1035
+ month: "month";
1036
+ quarter: "quarter";
1037
+ year: "year";
1038
+ }>>;
1039
+ }, z.core.$strict>>>;
1040
+ orderBy: z.ZodDefault<z.ZodArray<z.ZodObject<{
1041
+ by: z.ZodString;
1042
+ direction: z.ZodDefault<z.ZodEnum<{
1043
+ ascending: "ascending";
1044
+ descending: "descending";
1045
+ }>>;
1046
+ }, z.core.$strict>>>;
1047
+ limit: z.ZodOptional<z.ZodNumber>;
1048
+ }, z.core.$strict>;
1049
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
1050
+ }, z.core.$strict>;
1051
+ export declare const parseReportQuerySourceSchema: z.ZodObject<{
1052
+ source: z.ZodString;
1053
+ }, z.core.$strict>;
1054
+ export declare const instantiateReportTemplateSchema: z.ZodObject<{
1055
+ name: z.ZodString;
1056
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1057
+ version: z.ZodOptional<z.ZodNumber>;
1058
+ }, z.core.$strict>;