@magemetrics/ai 0.0.54 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react/ai.js +10488 -9668
- package/dist/react/index.d.ts +1254 -332
- package/dist/styles.css +1 -1
- package/dist/web-component/web-component.es.d.ts +2 -1
- package/dist/web-component/web-component.es.js +28910 -28064
- package/package.json +6 -6
package/dist/react/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare interface Components {
|
|
|
69
69
|
report: FrontendReport;
|
|
70
70
|
} | {
|
|
71
71
|
type: "visualization";
|
|
72
|
-
visualization: FrontendVisualization;
|
|
72
|
+
visualization: FrontendVisualization | V1FrontendVisualization;
|
|
73
73
|
}) => default_2.ReactNode;
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -159,6 +159,25 @@ declare type ExportReportDataResult = {
|
|
|
159
159
|
data: Blob | string;
|
|
160
160
|
};
|
|
161
161
|
|
|
162
|
+
declare type ExtractInsightResponse = z.infer<typeof ExtractInsightResponseSchema>;
|
|
163
|
+
|
|
164
|
+
declare const ExtractInsightResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
165
|
+
type: z.ZodLiteral<"text">;
|
|
166
|
+
insight: z.ZodString;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
type: "text";
|
|
169
|
+
insight: string;
|
|
170
|
+
}, {
|
|
171
|
+
type: "text";
|
|
172
|
+
insight: string;
|
|
173
|
+
}>, z.ZodObject<{
|
|
174
|
+
type: z.ZodLiteral<"missing">;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
type: "missing";
|
|
177
|
+
}, {
|
|
178
|
+
type: "missing";
|
|
179
|
+
}>]>;
|
|
180
|
+
|
|
162
181
|
/**
|
|
163
182
|
* This module handles the formatting and normalization of table cell values for display and sorting.
|
|
164
183
|
*
|
|
@@ -221,25 +240,25 @@ declare const FrontendReportExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
221
240
|
sql: z.ZodString;
|
|
222
241
|
explanation: z.ZodString;
|
|
223
242
|
}, "strip", z.ZodTypeAny, {
|
|
224
|
-
sql: string;
|
|
225
243
|
explanation: string;
|
|
226
|
-
}, {
|
|
227
244
|
sql: string;
|
|
245
|
+
}, {
|
|
228
246
|
explanation: string;
|
|
247
|
+
sql: string;
|
|
229
248
|
}>, "many">;
|
|
230
249
|
}, "strip", z.ZodTypeAny, {
|
|
231
250
|
chunk_title: string;
|
|
232
251
|
chunk_explanation: string;
|
|
233
252
|
lines: {
|
|
234
|
-
sql: string;
|
|
235
253
|
explanation: string;
|
|
254
|
+
sql: string;
|
|
236
255
|
}[];
|
|
237
256
|
}, {
|
|
238
257
|
chunk_title: string;
|
|
239
258
|
chunk_explanation: string;
|
|
240
259
|
lines: {
|
|
241
|
-
sql: string;
|
|
242
260
|
explanation: string;
|
|
261
|
+
sql: string;
|
|
243
262
|
}[];
|
|
244
263
|
}>, "many">>>;
|
|
245
264
|
business_explanation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -250,28 +269,28 @@ declare const FrontendReportExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
250
269
|
details: z.ZodString;
|
|
251
270
|
explanation: z.ZodString;
|
|
252
271
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
254
272
|
explanation: string;
|
|
273
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
255
274
|
details: string;
|
|
256
275
|
}, {
|
|
257
|
-
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
258
276
|
explanation: string;
|
|
277
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
259
278
|
details: string;
|
|
260
279
|
}>, "many">;
|
|
261
280
|
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
summary: string;
|
|
263
281
|
implementation: string[];
|
|
282
|
+
summary: string;
|
|
264
283
|
assumptions: {
|
|
265
|
-
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
266
284
|
explanation: string;
|
|
285
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
267
286
|
details: string;
|
|
268
287
|
}[];
|
|
269
288
|
}, {
|
|
270
|
-
summary: string;
|
|
271
289
|
implementation: string[];
|
|
290
|
+
summary: string;
|
|
272
291
|
assumptions: {
|
|
273
|
-
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
274
292
|
explanation: string;
|
|
293
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
275
294
|
details: string;
|
|
276
295
|
}[];
|
|
277
296
|
}>>>;
|
|
@@ -281,13 +300,13 @@ declare const FrontendReportExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
281
300
|
type: z.ZodEnum<["entity", "attribute", "filter", "process", "combine", "result"]>;
|
|
282
301
|
explanation: z.ZodString;
|
|
283
302
|
}, "strip", z.ZodTypeAny, {
|
|
303
|
+
explanation: string;
|
|
284
304
|
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
285
305
|
id: string;
|
|
286
|
-
explanation: string;
|
|
287
306
|
}, {
|
|
307
|
+
explanation: string;
|
|
288
308
|
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
289
309
|
id: string;
|
|
290
|
-
explanation: string;
|
|
291
310
|
}>, "many">;
|
|
292
311
|
edges: z.ZodArray<z.ZodObject<{
|
|
293
312
|
source: z.ZodString;
|
|
@@ -301,9 +320,9 @@ declare const FrontendReportExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
301
320
|
}>, "many">;
|
|
302
321
|
}, "strip", z.ZodTypeAny, {
|
|
303
322
|
nodes: {
|
|
323
|
+
explanation: string;
|
|
304
324
|
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
305
325
|
id: string;
|
|
306
|
-
explanation: string;
|
|
307
326
|
}[];
|
|
308
327
|
edges: {
|
|
309
328
|
source: string;
|
|
@@ -311,9 +330,9 @@ declare const FrontendReportExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
311
330
|
}[];
|
|
312
331
|
}, {
|
|
313
332
|
nodes: {
|
|
333
|
+
explanation: string;
|
|
314
334
|
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
315
335
|
id: string;
|
|
316
|
-
explanation: string;
|
|
317
336
|
}[];
|
|
318
337
|
edges: {
|
|
319
338
|
source: string;
|
|
@@ -337,24 +356,24 @@ declare const FrontendReportExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
337
356
|
chunk_title: string;
|
|
338
357
|
chunk_explanation: string;
|
|
339
358
|
lines: {
|
|
340
|
-
sql: string;
|
|
341
359
|
explanation: string;
|
|
360
|
+
sql: string;
|
|
342
361
|
}[];
|
|
343
362
|
}[] | null | undefined;
|
|
344
363
|
business_explanation?: {
|
|
345
|
-
summary: string;
|
|
346
364
|
implementation: string[];
|
|
365
|
+
summary: string;
|
|
347
366
|
assumptions: {
|
|
348
|
-
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
349
367
|
explanation: string;
|
|
368
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
350
369
|
details: string;
|
|
351
370
|
}[];
|
|
352
371
|
} | null | undefined;
|
|
353
372
|
columns_lineage?: Record<string, {
|
|
354
373
|
nodes: {
|
|
374
|
+
explanation: string;
|
|
355
375
|
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
356
376
|
id: string;
|
|
357
|
-
explanation: string;
|
|
358
377
|
}[];
|
|
359
378
|
edges: {
|
|
360
379
|
source: string;
|
|
@@ -373,24 +392,24 @@ declare const FrontendReportExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
373
392
|
chunk_title: string;
|
|
374
393
|
chunk_explanation: string;
|
|
375
394
|
lines: {
|
|
376
|
-
sql: string;
|
|
377
395
|
explanation: string;
|
|
396
|
+
sql: string;
|
|
378
397
|
}[];
|
|
379
398
|
}[] | null | undefined;
|
|
380
399
|
business_explanation?: {
|
|
381
|
-
summary: string;
|
|
382
400
|
implementation: string[];
|
|
401
|
+
summary: string;
|
|
383
402
|
assumptions: {
|
|
384
|
-
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
385
403
|
explanation: string;
|
|
404
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
386
405
|
details: string;
|
|
387
406
|
}[];
|
|
388
407
|
} | null | undefined;
|
|
389
408
|
columns_lineage?: Record<string, {
|
|
390
409
|
nodes: {
|
|
410
|
+
explanation: string;
|
|
391
411
|
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
392
412
|
id: string;
|
|
393
|
-
explanation: string;
|
|
394
413
|
}[];
|
|
395
414
|
edges: {
|
|
396
415
|
source: string;
|
|
@@ -412,6 +431,7 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
412
431
|
sql: z.ZodString;
|
|
413
432
|
table: z.ZodString;
|
|
414
433
|
title: z.ZodString;
|
|
434
|
+
request: z.ZodNullable<z.ZodString>;
|
|
415
435
|
data_sample: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
|
|
416
436
|
data_summary: z.ZodObject<{
|
|
417
437
|
columns: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -477,9 +497,10 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
477
497
|
bookmarked: z.ZodBoolean;
|
|
478
498
|
status: z.ZodNullable<z.ZodString>;
|
|
479
499
|
}, "schema" | "sql" | "table" | "is_sample" | "data_sample">, "strip", z.ZodTypeAny, {
|
|
480
|
-
status: string | null;
|
|
481
500
|
title: string;
|
|
501
|
+
status: string | null;
|
|
482
502
|
id: number;
|
|
503
|
+
request: string | null;
|
|
483
504
|
created_at: string;
|
|
484
505
|
bookmarked: boolean;
|
|
485
506
|
flow_id: string;
|
|
@@ -495,9 +516,10 @@ declare const FrontendReportSchema: z.ZodObject<Omit<{
|
|
|
495
516
|
[k: string]: unknown;
|
|
496
517
|
};
|
|
497
518
|
}, {
|
|
498
|
-
status: string | null;
|
|
499
519
|
title: string;
|
|
520
|
+
status: string | null;
|
|
500
521
|
id: number;
|
|
522
|
+
request: string | null;
|
|
501
523
|
created_at: string;
|
|
502
524
|
bookmarked: boolean;
|
|
503
525
|
flow_id: string;
|
|
@@ -521,12 +543,12 @@ declare const FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
521
543
|
flow_data_id: z.ZodNumber;
|
|
522
544
|
created_at: z.ZodString;
|
|
523
545
|
configuration: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
546
|
+
config_version: z.ZodLiteral<2>;
|
|
524
547
|
xAxisLabel: z.ZodString;
|
|
525
548
|
yAxisLabel: z.ZodString;
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
valueColumns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
549
|
+
categoryColumn: z.ZodString;
|
|
550
|
+
secondaryCategoryColumn: z.ZodOptional<z.ZodString>;
|
|
551
|
+
valueColumn: z.ZodString;
|
|
530
552
|
title: z.ZodString;
|
|
531
553
|
type: z.ZodLiteral<"bar">;
|
|
532
554
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -534,53 +556,73 @@ declare const FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
534
556
|
title: string;
|
|
535
557
|
xAxisLabel: string;
|
|
536
558
|
yAxisLabel: string;
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
559
|
+
config_version: 2;
|
|
560
|
+
categoryColumn: string;
|
|
561
|
+
valueColumn: string;
|
|
562
|
+
secondaryCategoryColumn?: string | undefined;
|
|
541
563
|
}, {
|
|
542
564
|
type: "bar";
|
|
543
565
|
title: string;
|
|
544
566
|
xAxisLabel: string;
|
|
545
567
|
yAxisLabel: string;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
568
|
+
config_version: 2;
|
|
569
|
+
categoryColumn: string;
|
|
570
|
+
valueColumn: string;
|
|
571
|
+
secondaryCategoryColumn?: string | undefined;
|
|
550
572
|
}>, z.ZodObject<{
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
yAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
555
|
-
dimensionDataKey: z.ZodOptional<z.ZodString>;
|
|
556
|
-
valueColumns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
573
|
+
xAxisColumn: z.ZodString;
|
|
574
|
+
valueColumns: z.ZodArray<z.ZodString, "many">;
|
|
575
|
+
yAxisLabels: z.ZodArray<z.ZodString, "many">;
|
|
557
576
|
title: z.ZodString;
|
|
558
577
|
type: z.ZodLiteral<"line/area">;
|
|
578
|
+
config_version: z.ZodLiteral<2>;
|
|
559
579
|
}, "strip", z.ZodTypeAny, {
|
|
560
580
|
type: "line/area";
|
|
561
581
|
title: string;
|
|
582
|
+
valueColumns: string[];
|
|
583
|
+
config_version: 2;
|
|
584
|
+
xAxisColumn: string;
|
|
585
|
+
yAxisLabels: string[];
|
|
586
|
+
}, {
|
|
587
|
+
type: "line/area";
|
|
588
|
+
title: string;
|
|
589
|
+
valueColumns: string[];
|
|
590
|
+
config_version: 2;
|
|
591
|
+
xAxisColumn: string;
|
|
592
|
+
yAxisLabels: string[];
|
|
593
|
+
}>, z.ZodObject<{
|
|
594
|
+
config_version: z.ZodLiteral<2>;
|
|
595
|
+
valueColumn: z.ZodString;
|
|
596
|
+
xAxisColumn: z.ZodString;
|
|
597
|
+
xAxisLabel: z.ZodString;
|
|
598
|
+
yAxisLabel: z.ZodString;
|
|
599
|
+
categoryColumn: z.ZodString;
|
|
600
|
+
title: z.ZodString;
|
|
601
|
+
type: z.ZodLiteral<"line/area-categorical">;
|
|
602
|
+
}, "strip", z.ZodTypeAny, {
|
|
603
|
+
type: "line/area-categorical";
|
|
604
|
+
title: string;
|
|
562
605
|
xAxisLabel: string;
|
|
563
606
|
yAxisLabel: string;
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
607
|
+
config_version: 2;
|
|
608
|
+
categoryColumn: string;
|
|
609
|
+
valueColumn: string;
|
|
610
|
+
xAxisColumn: string;
|
|
568
611
|
}, {
|
|
569
|
-
type: "line/area";
|
|
612
|
+
type: "line/area-categorical";
|
|
570
613
|
title: string;
|
|
571
614
|
xAxisLabel: string;
|
|
572
615
|
yAxisLabel: string;
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
616
|
+
config_version: 2;
|
|
617
|
+
categoryColumn: string;
|
|
618
|
+
valueColumn: string;
|
|
619
|
+
xAxisColumn: string;
|
|
577
620
|
}>, z.ZodObject<{
|
|
621
|
+
config_version: z.ZodLiteral<2>;
|
|
578
622
|
xAxisLabel: z.ZodString;
|
|
579
623
|
yAxisLabel: z.ZodString;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
dimensionDataKey: z.ZodOptional<z.ZodString>;
|
|
583
|
-
valueColumns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
624
|
+
xAxisValueColumn: z.ZodString;
|
|
625
|
+
yAxisValueColumn: z.ZodString;
|
|
584
626
|
title: z.ZodString;
|
|
585
627
|
type: z.ZodLiteral<"scatter">;
|
|
586
628
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -588,34 +630,35 @@ declare const FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
588
630
|
title: string;
|
|
589
631
|
xAxisLabel: string;
|
|
590
632
|
yAxisLabel: string;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
dimensionDataKey?: string | undefined;
|
|
633
|
+
config_version: 2;
|
|
634
|
+
xAxisValueColumn: string;
|
|
635
|
+
yAxisValueColumn: string;
|
|
595
636
|
}, {
|
|
596
637
|
type: "scatter";
|
|
597
638
|
title: string;
|
|
598
639
|
xAxisLabel: string;
|
|
599
640
|
yAxisLabel: string;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
dimensionDataKey?: string | undefined;
|
|
641
|
+
config_version: 2;
|
|
642
|
+
xAxisValueColumn: string;
|
|
643
|
+
yAxisValueColumn: string;
|
|
604
644
|
}>, z.ZodObject<{
|
|
605
|
-
|
|
606
|
-
|
|
645
|
+
config_version: z.ZodLiteral<2>;
|
|
646
|
+
categoryColumn: z.ZodString;
|
|
647
|
+
valueColumn: z.ZodString;
|
|
607
648
|
title: z.ZodString;
|
|
608
649
|
type: z.ZodLiteral<"pie">;
|
|
609
650
|
}, "strip", z.ZodTypeAny, {
|
|
610
651
|
type: "pie";
|
|
611
652
|
title: string;
|
|
612
|
-
|
|
613
|
-
|
|
653
|
+
config_version: 2;
|
|
654
|
+
categoryColumn: string;
|
|
655
|
+
valueColumn: string;
|
|
614
656
|
}, {
|
|
615
657
|
type: "pie";
|
|
616
658
|
title: string;
|
|
617
|
-
|
|
618
|
-
|
|
659
|
+
config_version: 2;
|
|
660
|
+
categoryColumn: string;
|
|
661
|
+
valueColumn: string;
|
|
619
662
|
}>]>;
|
|
620
663
|
sql: z.ZodString;
|
|
621
664
|
bookmarked: z.ZodBoolean;
|
|
@@ -628,33 +671,40 @@ declare const FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
628
671
|
title: string;
|
|
629
672
|
xAxisLabel: string;
|
|
630
673
|
yAxisLabel: string;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
674
|
+
config_version: 2;
|
|
675
|
+
categoryColumn: string;
|
|
676
|
+
valueColumn: string;
|
|
677
|
+
secondaryCategoryColumn?: string | undefined;
|
|
635
678
|
} | {
|
|
636
679
|
type: "line/area";
|
|
637
680
|
title: string;
|
|
681
|
+
valueColumns: string[];
|
|
682
|
+
config_version: 2;
|
|
683
|
+
xAxisColumn: string;
|
|
684
|
+
yAxisLabels: string[];
|
|
685
|
+
} | {
|
|
686
|
+
type: "line/area-categorical";
|
|
687
|
+
title: string;
|
|
638
688
|
xAxisLabel: string;
|
|
639
689
|
yAxisLabel: string;
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
690
|
+
config_version: 2;
|
|
691
|
+
categoryColumn: string;
|
|
692
|
+
valueColumn: string;
|
|
693
|
+
xAxisColumn: string;
|
|
644
694
|
} | {
|
|
645
695
|
type: "scatter";
|
|
646
696
|
title: string;
|
|
647
697
|
xAxisLabel: string;
|
|
648
698
|
yAxisLabel: string;
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
dimensionDataKey?: string | undefined;
|
|
699
|
+
config_version: 2;
|
|
700
|
+
xAxisValueColumn: string;
|
|
701
|
+
yAxisValueColumn: string;
|
|
653
702
|
} | {
|
|
654
703
|
type: "pie";
|
|
655
704
|
title: string;
|
|
656
|
-
|
|
657
|
-
|
|
705
|
+
config_version: 2;
|
|
706
|
+
categoryColumn: string;
|
|
707
|
+
valueColumn: string;
|
|
658
708
|
};
|
|
659
709
|
bookmarked: boolean;
|
|
660
710
|
}, {
|
|
@@ -666,37 +716,49 @@ declare const FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
|
666
716
|
title: string;
|
|
667
717
|
xAxisLabel: string;
|
|
668
718
|
yAxisLabel: string;
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
719
|
+
config_version: 2;
|
|
720
|
+
categoryColumn: string;
|
|
721
|
+
valueColumn: string;
|
|
722
|
+
secondaryCategoryColumn?: string | undefined;
|
|
673
723
|
} | {
|
|
674
724
|
type: "line/area";
|
|
675
725
|
title: string;
|
|
726
|
+
valueColumns: string[];
|
|
727
|
+
config_version: 2;
|
|
728
|
+
xAxisColumn: string;
|
|
729
|
+
yAxisLabels: string[];
|
|
730
|
+
} | {
|
|
731
|
+
type: "line/area-categorical";
|
|
732
|
+
title: string;
|
|
676
733
|
xAxisLabel: string;
|
|
677
734
|
yAxisLabel: string;
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
735
|
+
config_version: 2;
|
|
736
|
+
categoryColumn: string;
|
|
737
|
+
valueColumn: string;
|
|
738
|
+
xAxisColumn: string;
|
|
682
739
|
} | {
|
|
683
740
|
type: "scatter";
|
|
684
741
|
title: string;
|
|
685
742
|
xAxisLabel: string;
|
|
686
743
|
yAxisLabel: string;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
dimensionDataKey?: string | undefined;
|
|
744
|
+
config_version: 2;
|
|
745
|
+
xAxisValueColumn: string;
|
|
746
|
+
yAxisValueColumn: string;
|
|
691
747
|
} | {
|
|
692
748
|
type: "pie";
|
|
693
749
|
title: string;
|
|
694
|
-
|
|
695
|
-
|
|
750
|
+
config_version: 2;
|
|
751
|
+
categoryColumn: string;
|
|
752
|
+
valueColumn: string;
|
|
696
753
|
};
|
|
697
754
|
bookmarked: boolean;
|
|
698
755
|
}>;
|
|
699
756
|
|
|
757
|
+
export declare type GenerateInsightParam = {
|
|
758
|
+
selectedFilterValue: string;
|
|
759
|
+
customId: string;
|
|
760
|
+
};
|
|
761
|
+
|
|
700
762
|
export declare const InfiniteDataTableUI: React.FC<InfiniteDataTableUIProps>;
|
|
701
763
|
|
|
702
764
|
declare type InfiniteDataTableUIProps = {
|
|
@@ -753,9 +815,10 @@ export declare class MageMetricsClient extends EventTarget {
|
|
|
753
815
|
}) => Promise<{
|
|
754
816
|
count: false;
|
|
755
817
|
data_reports: {
|
|
756
|
-
status: string | null;
|
|
757
818
|
title: string;
|
|
819
|
+
status: string | null;
|
|
758
820
|
id: number;
|
|
821
|
+
request: string | null;
|
|
759
822
|
created_at: string;
|
|
760
823
|
bookmarked: boolean;
|
|
761
824
|
flow_id: string;
|
|
@@ -780,33 +843,40 @@ export declare class MageMetricsClient extends EventTarget {
|
|
|
780
843
|
title: string;
|
|
781
844
|
xAxisLabel: string;
|
|
782
845
|
yAxisLabel: string;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
846
|
+
config_version: 2;
|
|
847
|
+
categoryColumn: string;
|
|
848
|
+
valueColumn: string;
|
|
849
|
+
secondaryCategoryColumn?: string | undefined;
|
|
787
850
|
} | {
|
|
788
851
|
type: "line/area";
|
|
789
852
|
title: string;
|
|
853
|
+
valueColumns: string[];
|
|
854
|
+
config_version: 2;
|
|
855
|
+
xAxisColumn: string;
|
|
856
|
+
yAxisLabels: string[];
|
|
857
|
+
} | {
|
|
858
|
+
type: "line/area-categorical";
|
|
859
|
+
title: string;
|
|
790
860
|
xAxisLabel: string;
|
|
791
861
|
yAxisLabel: string;
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
862
|
+
config_version: 2;
|
|
863
|
+
categoryColumn: string;
|
|
864
|
+
valueColumn: string;
|
|
865
|
+
xAxisColumn: string;
|
|
796
866
|
} | {
|
|
797
867
|
type: "scatter";
|
|
798
868
|
title: string;
|
|
799
869
|
xAxisLabel: string;
|
|
800
870
|
yAxisLabel: string;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
dimensionDataKey?: string | undefined;
|
|
871
|
+
config_version: 2;
|
|
872
|
+
xAxisValueColumn: string;
|
|
873
|
+
yAxisValueColumn: string;
|
|
805
874
|
} | {
|
|
806
875
|
type: "pie";
|
|
807
876
|
title: string;
|
|
808
|
-
|
|
809
|
-
|
|
877
|
+
config_version: 2;
|
|
878
|
+
categoryColumn: string;
|
|
879
|
+
valueColumn: string;
|
|
810
880
|
};
|
|
811
881
|
bookmarked: boolean;
|
|
812
882
|
}[];
|
|
@@ -849,6 +919,7 @@ export declare class MageMetricsClient extends EventTarget {
|
|
|
849
919
|
filename: string;
|
|
850
920
|
data: string | Blob;
|
|
851
921
|
}>;
|
|
922
|
+
generateContextualInsight: (payload: GenerateInsightParam) => Promise<ExtractInsightResponse>;
|
|
852
923
|
};
|
|
853
924
|
/**
|
|
854
925
|
* Initialize authentication flow
|
|
@@ -875,6 +946,10 @@ export declare class MageMetricsClient extends EventTarget {
|
|
|
875
946
|
private exchangeExternalToken;
|
|
876
947
|
private createSupabaseHeaderMiddleware;
|
|
877
948
|
private setState;
|
|
949
|
+
private encodeCheckKey;
|
|
950
|
+
saveCheckKey(externalJwt: string, apiKey: string): Promise<void>;
|
|
951
|
+
compareCheckKey(externalJwt: string, apiKey: string): Promise<boolean>;
|
|
952
|
+
clearCheckKey(): void;
|
|
878
953
|
}
|
|
879
954
|
|
|
880
955
|
export declare interface MageMetricsClientConfig {
|
|
@@ -1227,6 +1302,7 @@ declare interface operations {
|
|
|
1227
1302
|
flow_id: string;
|
|
1228
1303
|
id: number;
|
|
1229
1304
|
title: string;
|
|
1305
|
+
request: string | null;
|
|
1230
1306
|
data_summary: {
|
|
1231
1307
|
columns: {
|
|
1232
1308
|
[key: string]: {
|
|
@@ -1249,38 +1325,51 @@ declare interface operations {
|
|
|
1249
1325
|
/** @enum {string} */
|
|
1250
1326
|
type: "bar";
|
|
1251
1327
|
title: string;
|
|
1328
|
+
/** @enum {number} */
|
|
1329
|
+
config_version: 2;
|
|
1252
1330
|
xAxisLabel: string;
|
|
1253
1331
|
yAxisLabel: string;
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
valueColumns?: string[];
|
|
1332
|
+
categoryColumn: string;
|
|
1333
|
+
secondaryCategoryColumn?: string;
|
|
1334
|
+
valueColumn: string;
|
|
1258
1335
|
} | {
|
|
1259
1336
|
/** @enum {string} */
|
|
1260
1337
|
type: "line/area";
|
|
1338
|
+
/** @enum {number} */
|
|
1339
|
+
config_version: 2;
|
|
1340
|
+
title: string;
|
|
1341
|
+
xAxisColumn: string;
|
|
1342
|
+
valueColumns: string[];
|
|
1343
|
+
yAxisLabels: string[];
|
|
1344
|
+
} | {
|
|
1345
|
+
/** @enum {string} */
|
|
1346
|
+
type: "line/area-categorical";
|
|
1261
1347
|
title: string;
|
|
1348
|
+
/** @enum {number} */
|
|
1349
|
+
config_version: 2;
|
|
1350
|
+
valueColumn: string;
|
|
1351
|
+
xAxisColumn: string;
|
|
1262
1352
|
xAxisLabel: string;
|
|
1263
1353
|
yAxisLabel: string;
|
|
1264
|
-
|
|
1265
|
-
yAxisDataKey?: string;
|
|
1266
|
-
dimensionDataKey?: string;
|
|
1267
|
-
valueColumns?: string[];
|
|
1354
|
+
categoryColumn: string;
|
|
1268
1355
|
} | {
|
|
1269
1356
|
/** @enum {string} */
|
|
1270
1357
|
type: "scatter";
|
|
1271
1358
|
title: string;
|
|
1359
|
+
/** @enum {number} */
|
|
1360
|
+
config_version: 2;
|
|
1272
1361
|
xAxisLabel: string;
|
|
1273
1362
|
yAxisLabel: string;
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
dimensionDataKey?: string;
|
|
1277
|
-
valueColumns?: string[];
|
|
1363
|
+
xAxisValueColumn: string;
|
|
1364
|
+
yAxisValueColumn: string;
|
|
1278
1365
|
} | {
|
|
1279
1366
|
/** @enum {string} */
|
|
1280
1367
|
type: "pie";
|
|
1281
1368
|
title: string;
|
|
1282
|
-
|
|
1283
|
-
|
|
1369
|
+
/** @enum {number} */
|
|
1370
|
+
config_version: 2;
|
|
1371
|
+
categoryColumn: string;
|
|
1372
|
+
valueColumn: string;
|
|
1284
1373
|
};
|
|
1285
1374
|
bookmarked: boolean;
|
|
1286
1375
|
}[];
|
|
@@ -1341,6 +1430,7 @@ declare interface operations {
|
|
|
1341
1430
|
flow_id: string;
|
|
1342
1431
|
id: number;
|
|
1343
1432
|
title: string;
|
|
1433
|
+
request: string | null;
|
|
1344
1434
|
data_summary: {
|
|
1345
1435
|
columns: {
|
|
1346
1436
|
[key: string]: {
|
|
@@ -1990,6 +2080,7 @@ declare interface operations {
|
|
|
1990
2080
|
flow_id: string;
|
|
1991
2081
|
id: number;
|
|
1992
2082
|
title: string;
|
|
2083
|
+
request: string | null;
|
|
1993
2084
|
data_summary: {
|
|
1994
2085
|
columns: {
|
|
1995
2086
|
[key: string]: {
|
|
@@ -2003,7 +2094,7 @@ declare interface operations {
|
|
|
2003
2094
|
};
|
|
2004
2095
|
bookmarked: boolean;
|
|
2005
2096
|
status: string | null;
|
|
2006
|
-
visualizations: {
|
|
2097
|
+
visualizations: ({
|
|
2007
2098
|
id: number;
|
|
2008
2099
|
flow_data_id: number;
|
|
2009
2100
|
created_at: string;
|
|
@@ -2045,7 +2136,62 @@ declare interface operations {
|
|
|
2045
2136
|
dataKey: string;
|
|
2046
2137
|
};
|
|
2047
2138
|
bookmarked: boolean;
|
|
2048
|
-
}
|
|
2139
|
+
} | {
|
|
2140
|
+
id: number;
|
|
2141
|
+
flow_data_id: number;
|
|
2142
|
+
created_at: string;
|
|
2143
|
+
configuration: {
|
|
2144
|
+
/** @enum {string} */
|
|
2145
|
+
type: "bar";
|
|
2146
|
+
title: string;
|
|
2147
|
+
/** @enum {number} */
|
|
2148
|
+
config_version: 2;
|
|
2149
|
+
xAxisLabel: string;
|
|
2150
|
+
yAxisLabel: string;
|
|
2151
|
+
categoryColumn: string;
|
|
2152
|
+
secondaryCategoryColumn?: string;
|
|
2153
|
+
valueColumn: string;
|
|
2154
|
+
} | {
|
|
2155
|
+
/** @enum {string} */
|
|
2156
|
+
type: "line/area";
|
|
2157
|
+
/** @enum {number} */
|
|
2158
|
+
config_version: 2;
|
|
2159
|
+
title: string;
|
|
2160
|
+
xAxisColumn: string;
|
|
2161
|
+
valueColumns: string[];
|
|
2162
|
+
yAxisLabels: string[];
|
|
2163
|
+
} | {
|
|
2164
|
+
/** @enum {string} */
|
|
2165
|
+
type: "line/area-categorical";
|
|
2166
|
+
title: string;
|
|
2167
|
+
/** @enum {number} */
|
|
2168
|
+
config_version: 2;
|
|
2169
|
+
valueColumn: string;
|
|
2170
|
+
xAxisColumn: string;
|
|
2171
|
+
xAxisLabel: string;
|
|
2172
|
+
yAxisLabel: string;
|
|
2173
|
+
categoryColumn: string;
|
|
2174
|
+
} | {
|
|
2175
|
+
/** @enum {string} */
|
|
2176
|
+
type: "scatter";
|
|
2177
|
+
title: string;
|
|
2178
|
+
/** @enum {number} */
|
|
2179
|
+
config_version: 2;
|
|
2180
|
+
xAxisLabel: string;
|
|
2181
|
+
yAxisLabel: string;
|
|
2182
|
+
xAxisValueColumn: string;
|
|
2183
|
+
yAxisValueColumn: string;
|
|
2184
|
+
} | {
|
|
2185
|
+
/** @enum {string} */
|
|
2186
|
+
type: "pie";
|
|
2187
|
+
title: string;
|
|
2188
|
+
/** @enum {number} */
|
|
2189
|
+
config_version: 2;
|
|
2190
|
+
categoryColumn: string;
|
|
2191
|
+
valueColumn: string;
|
|
2192
|
+
};
|
|
2193
|
+
bookmarked: boolean;
|
|
2194
|
+
})[];
|
|
2049
2195
|
};
|
|
2050
2196
|
};
|
|
2051
2197
|
};
|
|
@@ -2338,6 +2484,67 @@ declare interface operations {
|
|
|
2338
2484
|
originalCount: number;
|
|
2339
2485
|
sampledCount: number;
|
|
2340
2486
|
};
|
|
2487
|
+
} | {
|
|
2488
|
+
id: number;
|
|
2489
|
+
flow_data_id: number;
|
|
2490
|
+
created_at: string;
|
|
2491
|
+
configuration: {
|
|
2492
|
+
/** @enum {string} */
|
|
2493
|
+
type: "bar";
|
|
2494
|
+
title: string;
|
|
2495
|
+
/** @enum {number} */
|
|
2496
|
+
config_version: 2;
|
|
2497
|
+
xAxisLabel: string;
|
|
2498
|
+
yAxisLabel: string;
|
|
2499
|
+
categoryColumn: string;
|
|
2500
|
+
secondaryCategoryColumn?: string;
|
|
2501
|
+
valueColumn: string;
|
|
2502
|
+
} | {
|
|
2503
|
+
/** @enum {string} */
|
|
2504
|
+
type: "line/area";
|
|
2505
|
+
/** @enum {number} */
|
|
2506
|
+
config_version: 2;
|
|
2507
|
+
title: string;
|
|
2508
|
+
xAxisColumn: string;
|
|
2509
|
+
valueColumns: string[];
|
|
2510
|
+
yAxisLabels: string[];
|
|
2511
|
+
} | {
|
|
2512
|
+
/** @enum {string} */
|
|
2513
|
+
type: "line/area-categorical";
|
|
2514
|
+
title: string;
|
|
2515
|
+
/** @enum {number} */
|
|
2516
|
+
config_version: 2;
|
|
2517
|
+
valueColumn: string;
|
|
2518
|
+
xAxisColumn: string;
|
|
2519
|
+
xAxisLabel: string;
|
|
2520
|
+
yAxisLabel: string;
|
|
2521
|
+
categoryColumn: string;
|
|
2522
|
+
} | {
|
|
2523
|
+
/** @enum {string} */
|
|
2524
|
+
type: "scatter";
|
|
2525
|
+
title: string;
|
|
2526
|
+
/** @enum {number} */
|
|
2527
|
+
config_version: 2;
|
|
2528
|
+
xAxisLabel: string;
|
|
2529
|
+
yAxisLabel: string;
|
|
2530
|
+
xAxisValueColumn: string;
|
|
2531
|
+
yAxisValueColumn: string;
|
|
2532
|
+
} | {
|
|
2533
|
+
/** @enum {string} */
|
|
2534
|
+
type: "pie";
|
|
2535
|
+
title: string;
|
|
2536
|
+
/** @enum {number} */
|
|
2537
|
+
config_version: 2;
|
|
2538
|
+
categoryColumn: string;
|
|
2539
|
+
valueColumn: string;
|
|
2540
|
+
};
|
|
2541
|
+
bookmarked: boolean;
|
|
2542
|
+
data: components["schemas"]["VisualizationData"];
|
|
2543
|
+
_metadata?: {
|
|
2544
|
+
wasSampled: boolean;
|
|
2545
|
+
originalCount: number;
|
|
2546
|
+
sampledCount: number;
|
|
2547
|
+
};
|
|
2341
2548
|
};
|
|
2342
2549
|
};
|
|
2343
2550
|
};
|
|
@@ -2406,38 +2613,51 @@ declare interface operations {
|
|
|
2406
2613
|
/** @enum {string} */
|
|
2407
2614
|
type: "bar";
|
|
2408
2615
|
title: string;
|
|
2616
|
+
/** @enum {number} */
|
|
2617
|
+
config_version: 2;
|
|
2409
2618
|
xAxisLabel: string;
|
|
2410
2619
|
yAxisLabel: string;
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
valueColumns?: string[];
|
|
2620
|
+
categoryColumn: string;
|
|
2621
|
+
secondaryCategoryColumn?: string;
|
|
2622
|
+
valueColumn: string;
|
|
2415
2623
|
} | {
|
|
2416
2624
|
/** @enum {string} */
|
|
2417
2625
|
type: "line/area";
|
|
2626
|
+
/** @enum {number} */
|
|
2627
|
+
config_version: 2;
|
|
2628
|
+
title: string;
|
|
2629
|
+
xAxisColumn: string;
|
|
2630
|
+
valueColumns: string[];
|
|
2631
|
+
yAxisLabels: string[];
|
|
2632
|
+
} | {
|
|
2633
|
+
/** @enum {string} */
|
|
2634
|
+
type: "line/area-categorical";
|
|
2418
2635
|
title: string;
|
|
2636
|
+
/** @enum {number} */
|
|
2637
|
+
config_version: 2;
|
|
2638
|
+
valueColumn: string;
|
|
2639
|
+
xAxisColumn: string;
|
|
2419
2640
|
xAxisLabel: string;
|
|
2420
2641
|
yAxisLabel: string;
|
|
2421
|
-
|
|
2422
|
-
yAxisDataKey?: string;
|
|
2423
|
-
dimensionDataKey?: string;
|
|
2424
|
-
valueColumns?: string[];
|
|
2642
|
+
categoryColumn: string;
|
|
2425
2643
|
} | {
|
|
2426
2644
|
/** @enum {string} */
|
|
2427
2645
|
type: "scatter";
|
|
2428
2646
|
title: string;
|
|
2647
|
+
/** @enum {number} */
|
|
2648
|
+
config_version: 2;
|
|
2429
2649
|
xAxisLabel: string;
|
|
2430
2650
|
yAxisLabel: string;
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
dimensionDataKey?: string;
|
|
2434
|
-
valueColumns?: string[];
|
|
2651
|
+
xAxisValueColumn: string;
|
|
2652
|
+
yAxisValueColumn: string;
|
|
2435
2653
|
} | {
|
|
2436
2654
|
/** @enum {string} */
|
|
2437
2655
|
type: "pie";
|
|
2438
2656
|
title: string;
|
|
2439
|
-
|
|
2440
|
-
|
|
2657
|
+
/** @enum {number} */
|
|
2658
|
+
config_version: 2;
|
|
2659
|
+
categoryColumn: string;
|
|
2660
|
+
valueColumn: string;
|
|
2441
2661
|
};
|
|
2442
2662
|
bookmarked: boolean;
|
|
2443
2663
|
}[];
|
|
@@ -2621,7 +2841,7 @@ declare interface operations {
|
|
|
2621
2841
|
};
|
|
2622
2842
|
};
|
|
2623
2843
|
};
|
|
2624
|
-
|
|
2844
|
+
generateInsight: {
|
|
2625
2845
|
parameters: {
|
|
2626
2846
|
query?: never;
|
|
2627
2847
|
header?: never;
|
|
@@ -2631,20 +2851,87 @@ declare interface operations {
|
|
|
2631
2851
|
requestBody?: {
|
|
2632
2852
|
content: {
|
|
2633
2853
|
"application/json": {
|
|
2634
|
-
|
|
2635
|
-
|
|
2854
|
+
selected_filter_value: string;
|
|
2855
|
+
custom_id: string;
|
|
2636
2856
|
};
|
|
2637
2857
|
};
|
|
2638
2858
|
};
|
|
2639
2859
|
responses: {
|
|
2640
|
-
/** @description
|
|
2860
|
+
/** @description Insight generated successfully */
|
|
2641
2861
|
200: {
|
|
2642
2862
|
headers: {
|
|
2643
2863
|
[name: string]: unknown;
|
|
2644
2864
|
};
|
|
2645
2865
|
content: {
|
|
2646
2866
|
"application/json": {
|
|
2647
|
-
|
|
2867
|
+
/** @enum {string} */
|
|
2868
|
+
type: "text";
|
|
2869
|
+
insight: string;
|
|
2870
|
+
} | {
|
|
2871
|
+
/** @enum {string} */
|
|
2872
|
+
type: "missing";
|
|
2873
|
+
};
|
|
2874
|
+
};
|
|
2875
|
+
};
|
|
2876
|
+
/** @description Invalid request */
|
|
2877
|
+
400: {
|
|
2878
|
+
headers: {
|
|
2879
|
+
[name: string]: unknown;
|
|
2880
|
+
};
|
|
2881
|
+
content: {
|
|
2882
|
+
"application/json": {
|
|
2883
|
+
error: string;
|
|
2884
|
+
};
|
|
2885
|
+
};
|
|
2886
|
+
};
|
|
2887
|
+
/** @description Insight not found */
|
|
2888
|
+
404: {
|
|
2889
|
+
headers: {
|
|
2890
|
+
[name: string]: unknown;
|
|
2891
|
+
};
|
|
2892
|
+
content: {
|
|
2893
|
+
"application/json": {
|
|
2894
|
+
error: string;
|
|
2895
|
+
};
|
|
2896
|
+
};
|
|
2897
|
+
};
|
|
2898
|
+
/** @description Something wrong happened */
|
|
2899
|
+
500: {
|
|
2900
|
+
headers: {
|
|
2901
|
+
[name: string]: unknown;
|
|
2902
|
+
};
|
|
2903
|
+
content: {
|
|
2904
|
+
"application/json": {
|
|
2905
|
+
error: string;
|
|
2906
|
+
};
|
|
2907
|
+
};
|
|
2908
|
+
};
|
|
2909
|
+
};
|
|
2910
|
+
};
|
|
2911
|
+
createQueryExample: {
|
|
2912
|
+
parameters: {
|
|
2913
|
+
query?: never;
|
|
2914
|
+
header?: never;
|
|
2915
|
+
path?: never;
|
|
2916
|
+
cookie?: never;
|
|
2917
|
+
};
|
|
2918
|
+
requestBody?: {
|
|
2919
|
+
content: {
|
|
2920
|
+
"application/json": {
|
|
2921
|
+
request: string;
|
|
2922
|
+
sql: string;
|
|
2923
|
+
};
|
|
2924
|
+
};
|
|
2925
|
+
};
|
|
2926
|
+
responses: {
|
|
2927
|
+
/** @description Query example created successfully */
|
|
2928
|
+
200: {
|
|
2929
|
+
headers: {
|
|
2930
|
+
[name: string]: unknown;
|
|
2931
|
+
};
|
|
2932
|
+
content: {
|
|
2933
|
+
"application/json": {
|
|
2934
|
+
id: number;
|
|
2648
2935
|
};
|
|
2649
2936
|
};
|
|
2650
2937
|
};
|
|
@@ -2827,96 +3114,359 @@ declare interface operations {
|
|
|
2827
3114
|
};
|
|
2828
3115
|
};
|
|
2829
3116
|
};
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
declare type PatchParam<T, Config extends RemoveParamsConfig, P extends keyof Config> = Simplify<T extends {
|
|
2833
|
-
[key in P]: infer H;
|
|
2834
|
-
} ? H extends Partial<Record<string, unknown>> ? Config[P] extends string ? Omit<H, Config[P]> : H : never : never>;
|
|
2835
|
-
|
|
2836
|
-
/**
|
|
2837
|
-
* This file was auto-generated by openapi-typescript.
|
|
2838
|
-
* Do not make direct changes to the file.
|
|
2839
|
-
*/
|
|
2840
|
-
|
|
2841
|
-
declare interface paths {
|
|
2842
|
-
"/api/v1/auth/exchangeExternalToken": {
|
|
3117
|
+
generateInsightTemplate: {
|
|
2843
3118
|
parameters: {
|
|
2844
3119
|
query?: never;
|
|
2845
3120
|
header?: never;
|
|
2846
3121
|
path?: never;
|
|
2847
3122
|
cookie?: never;
|
|
2848
3123
|
};
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
3124
|
+
requestBody?: {
|
|
3125
|
+
content: {
|
|
3126
|
+
"application/json": {
|
|
3127
|
+
request: string;
|
|
3128
|
+
insight_type: string;
|
|
3129
|
+
additional_context?: string;
|
|
3130
|
+
};
|
|
3131
|
+
};
|
|
3132
|
+
};
|
|
3133
|
+
responses: {
|
|
3134
|
+
/** @description Insight template generated successfully */
|
|
3135
|
+
200: {
|
|
3136
|
+
headers: {
|
|
3137
|
+
[name: string]: unknown;
|
|
3138
|
+
};
|
|
3139
|
+
content: {
|
|
3140
|
+
"application/json": {
|
|
3141
|
+
expanded_request: string;
|
|
3142
|
+
};
|
|
3143
|
+
};
|
|
3144
|
+
};
|
|
3145
|
+
/** @description Something wrong happened */
|
|
3146
|
+
500: {
|
|
3147
|
+
headers: {
|
|
3148
|
+
[name: string]: unknown;
|
|
3149
|
+
};
|
|
3150
|
+
content: {
|
|
3151
|
+
"application/json": {
|
|
3152
|
+
error: string;
|
|
3153
|
+
};
|
|
3154
|
+
};
|
|
3155
|
+
};
|
|
2864
3156
|
};
|
|
2865
|
-
get: operations["getApiInformation"];
|
|
2866
|
-
put?: never;
|
|
2867
|
-
post?: never;
|
|
2868
|
-
delete?: never;
|
|
2869
|
-
options?: never;
|
|
2870
|
-
head?: never;
|
|
2871
|
-
patch?: never;
|
|
2872
|
-
trace?: never;
|
|
2873
3157
|
};
|
|
2874
|
-
|
|
3158
|
+
getContextualInsightPreviewData: {
|
|
2875
3159
|
parameters: {
|
|
2876
|
-
query?:
|
|
3160
|
+
query?: {
|
|
3161
|
+
limit?: number;
|
|
3162
|
+
/** @example name:asc,date:desc */
|
|
3163
|
+
order?: string;
|
|
3164
|
+
cursor?: number;
|
|
3165
|
+
/** @example status:active,name:John%20Doe */
|
|
3166
|
+
filter?: string;
|
|
3167
|
+
};
|
|
2877
3168
|
header?: never;
|
|
2878
|
-
path
|
|
3169
|
+
path: {
|
|
3170
|
+
report_id: string;
|
|
3171
|
+
};
|
|
2879
3172
|
cookie?: never;
|
|
2880
3173
|
};
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
3174
|
+
requestBody?: never;
|
|
3175
|
+
responses: {
|
|
3176
|
+
/** @description The preview data for the contextual insight */
|
|
3177
|
+
200: {
|
|
3178
|
+
headers: {
|
|
3179
|
+
[name: string]: unknown;
|
|
3180
|
+
};
|
|
3181
|
+
content: {
|
|
3182
|
+
"application/json": {
|
|
3183
|
+
columns: {
|
|
3184
|
+
id: string;
|
|
3185
|
+
accessorKey: string;
|
|
3186
|
+
header: string;
|
|
3187
|
+
cell?: unknown;
|
|
3188
|
+
meta?: {
|
|
3189
|
+
[key: string]: unknown;
|
|
3190
|
+
};
|
|
3191
|
+
}[];
|
|
3192
|
+
data: {
|
|
3193
|
+
[key: string]: unknown;
|
|
3194
|
+
}[];
|
|
3195
|
+
metadata?: {
|
|
3196
|
+
wasSampled: boolean;
|
|
3197
|
+
originalCount: number;
|
|
3198
|
+
sampledCount: number;
|
|
3199
|
+
};
|
|
3200
|
+
};
|
|
3201
|
+
};
|
|
3202
|
+
};
|
|
3203
|
+
/** @description Unable to retrieve flow data with this id */
|
|
3204
|
+
404: {
|
|
3205
|
+
headers: {
|
|
3206
|
+
[name: string]: unknown;
|
|
3207
|
+
};
|
|
3208
|
+
content: {
|
|
3209
|
+
"application/json": {
|
|
3210
|
+
error: string;
|
|
3211
|
+
};
|
|
3212
|
+
};
|
|
3213
|
+
};
|
|
3214
|
+
/** @description Something wrong happened */
|
|
3215
|
+
500: {
|
|
3216
|
+
headers: {
|
|
3217
|
+
[name: string]: unknown;
|
|
3218
|
+
};
|
|
3219
|
+
content: {
|
|
3220
|
+
"application/json": {
|
|
3221
|
+
error: string;
|
|
3222
|
+
};
|
|
3223
|
+
};
|
|
3224
|
+
};
|
|
3225
|
+
};
|
|
2889
3226
|
};
|
|
2890
|
-
|
|
3227
|
+
getContextualInsightColumnSampleValues: {
|
|
2891
3228
|
parameters: {
|
|
2892
|
-
query
|
|
3229
|
+
query: {
|
|
3230
|
+
column_name: string;
|
|
3231
|
+
};
|
|
2893
3232
|
header?: never;
|
|
2894
|
-
path
|
|
3233
|
+
path: {
|
|
3234
|
+
report_id: string;
|
|
3235
|
+
};
|
|
2895
3236
|
cookie?: never;
|
|
2896
3237
|
};
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
3238
|
+
requestBody?: never;
|
|
3239
|
+
responses: {
|
|
3240
|
+
/** @description Sample values for the specified column */
|
|
3241
|
+
200: {
|
|
3242
|
+
headers: {
|
|
3243
|
+
[name: string]: unknown;
|
|
3244
|
+
};
|
|
3245
|
+
content: {
|
|
3246
|
+
"application/json": {
|
|
3247
|
+
options: unknown[];
|
|
3248
|
+
};
|
|
3249
|
+
};
|
|
3250
|
+
};
|
|
3251
|
+
/** @description Unable to retrieve flow data with this id */
|
|
3252
|
+
404: {
|
|
3253
|
+
headers: {
|
|
3254
|
+
[name: string]: unknown;
|
|
3255
|
+
};
|
|
3256
|
+
content: {
|
|
3257
|
+
"application/json": {
|
|
3258
|
+
error: string;
|
|
3259
|
+
};
|
|
3260
|
+
};
|
|
3261
|
+
};
|
|
3262
|
+
/** @description Something wrong happened */
|
|
3263
|
+
500: {
|
|
3264
|
+
headers: {
|
|
3265
|
+
[name: string]: unknown;
|
|
3266
|
+
};
|
|
3267
|
+
content: {
|
|
3268
|
+
"application/json": {
|
|
3269
|
+
error: string;
|
|
3270
|
+
};
|
|
3271
|
+
};
|
|
3272
|
+
};
|
|
3273
|
+
};
|
|
2905
3274
|
};
|
|
2906
|
-
|
|
3275
|
+
extractInsight: {
|
|
2907
3276
|
parameters: {
|
|
2908
3277
|
query?: never;
|
|
2909
3278
|
header?: never;
|
|
2910
3279
|
path?: never;
|
|
2911
3280
|
cookie?: never;
|
|
2912
3281
|
};
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
3282
|
+
requestBody?: {
|
|
3283
|
+
content: {
|
|
3284
|
+
"application/json": {
|
|
3285
|
+
flow_id: string;
|
|
3286
|
+
report_id: number;
|
|
3287
|
+
topic: string;
|
|
3288
|
+
expanded_request: string;
|
|
3289
|
+
insight_type: string;
|
|
3290
|
+
selected_filter: string;
|
|
3291
|
+
selected_filter_value: string;
|
|
3292
|
+
additional_context?: string;
|
|
3293
|
+
};
|
|
3294
|
+
};
|
|
3295
|
+
};
|
|
3296
|
+
responses: {
|
|
3297
|
+
/** @description Insight extracted successfully */
|
|
3298
|
+
200: {
|
|
3299
|
+
headers: {
|
|
3300
|
+
[name: string]: unknown;
|
|
3301
|
+
};
|
|
3302
|
+
content: {
|
|
3303
|
+
"application/json": {
|
|
3304
|
+
/** @enum {string} */
|
|
3305
|
+
type: "text";
|
|
3306
|
+
insight: string;
|
|
3307
|
+
} | {
|
|
3308
|
+
/** @enum {string} */
|
|
3309
|
+
type: "missing";
|
|
3310
|
+
};
|
|
3311
|
+
};
|
|
3312
|
+
};
|
|
3313
|
+
/** @description Something wrong happened */
|
|
3314
|
+
500: {
|
|
3315
|
+
headers: {
|
|
3316
|
+
[name: string]: unknown;
|
|
3317
|
+
};
|
|
3318
|
+
content: {
|
|
3319
|
+
"application/json": {
|
|
3320
|
+
error: string;
|
|
3321
|
+
};
|
|
3322
|
+
};
|
|
3323
|
+
};
|
|
3324
|
+
};
|
|
3325
|
+
};
|
|
3326
|
+
suggestFilterColumn: {
|
|
3327
|
+
parameters: {
|
|
3328
|
+
query?: never;
|
|
3329
|
+
header?: never;
|
|
3330
|
+
path?: never;
|
|
3331
|
+
cookie?: never;
|
|
3332
|
+
};
|
|
3333
|
+
requestBody?: {
|
|
3334
|
+
content: {
|
|
3335
|
+
"application/json": {
|
|
3336
|
+
report_id: number;
|
|
3337
|
+
request: string;
|
|
3338
|
+
insight_type: string;
|
|
3339
|
+
additional_context?: string;
|
|
3340
|
+
};
|
|
3341
|
+
};
|
|
3342
|
+
};
|
|
3343
|
+
responses: {
|
|
3344
|
+
/** @description Filter column suggestion generated successfully */
|
|
3345
|
+
200: {
|
|
3346
|
+
headers: {
|
|
3347
|
+
[name: string]: unknown;
|
|
3348
|
+
};
|
|
3349
|
+
content: {
|
|
3350
|
+
"application/json": {
|
|
3351
|
+
recommended_column: string;
|
|
3352
|
+
reasoning: string;
|
|
3353
|
+
};
|
|
3354
|
+
};
|
|
3355
|
+
};
|
|
3356
|
+
/** @description Report not found */
|
|
3357
|
+
404: {
|
|
3358
|
+
headers: {
|
|
3359
|
+
[name: string]: unknown;
|
|
3360
|
+
};
|
|
3361
|
+
content: {
|
|
3362
|
+
"application/json": {
|
|
3363
|
+
error: string;
|
|
3364
|
+
};
|
|
3365
|
+
};
|
|
3366
|
+
};
|
|
3367
|
+
/** @description Something wrong happened */
|
|
3368
|
+
500: {
|
|
3369
|
+
headers: {
|
|
3370
|
+
[name: string]: unknown;
|
|
3371
|
+
};
|
|
3372
|
+
content: {
|
|
3373
|
+
"application/json": {
|
|
3374
|
+
error: string;
|
|
3375
|
+
};
|
|
3376
|
+
};
|
|
3377
|
+
};
|
|
3378
|
+
};
|
|
3379
|
+
};
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
declare type PatchParam<T, Config extends RemoveParamsConfig, P extends keyof Config> = Simplify<T extends {
|
|
3383
|
+
[key in P]: infer H;
|
|
3384
|
+
} ? H extends Partial<Record<string, unknown>> ? Config[P] extends string ? Omit<H, Config[P]> : H : never : never>;
|
|
3385
|
+
|
|
3386
|
+
/**
|
|
3387
|
+
* This file was auto-generated by openapi-typescript.
|
|
3388
|
+
* Do not make direct changes to the file.
|
|
3389
|
+
*/
|
|
3390
|
+
|
|
3391
|
+
declare interface paths {
|
|
3392
|
+
"/api/v1/auth/exchangeExternalToken": {
|
|
3393
|
+
parameters: {
|
|
3394
|
+
query?: never;
|
|
3395
|
+
header?: never;
|
|
3396
|
+
path?: never;
|
|
3397
|
+
cookie?: never;
|
|
3398
|
+
};
|
|
3399
|
+
get?: never;
|
|
3400
|
+
put?: never;
|
|
3401
|
+
post: operations["exchangeExternalToken"];
|
|
3402
|
+
delete?: never;
|
|
3403
|
+
options?: never;
|
|
3404
|
+
head?: never;
|
|
3405
|
+
patch?: never;
|
|
3406
|
+
trace?: never;
|
|
3407
|
+
};
|
|
3408
|
+
"/api/v1/auth/apiInformation": {
|
|
3409
|
+
parameters: {
|
|
3410
|
+
query?: never;
|
|
3411
|
+
header?: never;
|
|
3412
|
+
path?: never;
|
|
3413
|
+
cookie?: never;
|
|
3414
|
+
};
|
|
3415
|
+
get: operations["getApiInformation"];
|
|
3416
|
+
put?: never;
|
|
3417
|
+
post?: never;
|
|
3418
|
+
delete?: never;
|
|
3419
|
+
options?: never;
|
|
3420
|
+
head?: never;
|
|
3421
|
+
patch?: never;
|
|
3422
|
+
trace?: never;
|
|
3423
|
+
};
|
|
3424
|
+
"/api/auth/apiInformation": {
|
|
3425
|
+
parameters: {
|
|
3426
|
+
query?: never;
|
|
3427
|
+
header?: never;
|
|
3428
|
+
path?: never;
|
|
3429
|
+
cookie?: never;
|
|
3430
|
+
};
|
|
3431
|
+
get: operations["getApiInformation"];
|
|
3432
|
+
put?: never;
|
|
3433
|
+
post?: never;
|
|
3434
|
+
delete?: never;
|
|
3435
|
+
options?: never;
|
|
3436
|
+
head?: never;
|
|
3437
|
+
patch?: never;
|
|
3438
|
+
trace?: never;
|
|
3439
|
+
};
|
|
3440
|
+
"/api/v1/end2end": {
|
|
3441
|
+
parameters: {
|
|
3442
|
+
query?: never;
|
|
3443
|
+
header?: never;
|
|
3444
|
+
path?: never;
|
|
3445
|
+
cookie?: never;
|
|
3446
|
+
};
|
|
3447
|
+
get?: never;
|
|
3448
|
+
put?: never;
|
|
3449
|
+
post: operations["runEnd2EndFlow"];
|
|
3450
|
+
delete?: never;
|
|
3451
|
+
options?: never;
|
|
3452
|
+
head?: never;
|
|
3453
|
+
patch?: never;
|
|
3454
|
+
trace?: never;
|
|
3455
|
+
};
|
|
3456
|
+
"/api/v1/flows/{flowId}": {
|
|
3457
|
+
parameters: {
|
|
3458
|
+
query?: never;
|
|
3459
|
+
header?: never;
|
|
3460
|
+
path?: never;
|
|
3461
|
+
cookie?: never;
|
|
3462
|
+
};
|
|
3463
|
+
get: operations["retrieveFlow"];
|
|
3464
|
+
put?: never;
|
|
3465
|
+
post?: never;
|
|
3466
|
+
delete?: never;
|
|
3467
|
+
options?: never;
|
|
3468
|
+
head?: never;
|
|
3469
|
+
patch?: never;
|
|
2920
3470
|
trace?: never;
|
|
2921
3471
|
};
|
|
2922
3472
|
"/api/v1/recent-flows": {
|
|
@@ -3175,88 +3725,6 @@ declare interface paths {
|
|
|
3175
3725
|
patch?: never;
|
|
3176
3726
|
trace?: never;
|
|
3177
3727
|
};
|
|
3178
|
-
"/api/v1/chat/{flowId}/quick-actions": {
|
|
3179
|
-
parameters: {
|
|
3180
|
-
query?: never;
|
|
3181
|
-
header?: never;
|
|
3182
|
-
path?: never;
|
|
3183
|
-
cookie?: never;
|
|
3184
|
-
};
|
|
3185
|
-
get?: never;
|
|
3186
|
-
put?: never;
|
|
3187
|
-
post: {
|
|
3188
|
-
parameters: {
|
|
3189
|
-
query?: never;
|
|
3190
|
-
header: {
|
|
3191
|
-
"sp-access-token": string;
|
|
3192
|
-
"sp-refresh-token"?: string;
|
|
3193
|
-
};
|
|
3194
|
-
path: {
|
|
3195
|
-
flowId: string;
|
|
3196
|
-
};
|
|
3197
|
-
cookie?: never;
|
|
3198
|
-
};
|
|
3199
|
-
requestBody?: {
|
|
3200
|
-
content: {
|
|
3201
|
-
"application/json": {
|
|
3202
|
-
content: string;
|
|
3203
|
-
};
|
|
3204
|
-
};
|
|
3205
|
-
};
|
|
3206
|
-
responses: {
|
|
3207
|
-
/** @description The quick actions for the given message */
|
|
3208
|
-
200: {
|
|
3209
|
-
headers: {
|
|
3210
|
-
[name: string]: unknown;
|
|
3211
|
-
};
|
|
3212
|
-
content: {
|
|
3213
|
-
"application/json": {
|
|
3214
|
-
label: string;
|
|
3215
|
-
explanation: string;
|
|
3216
|
-
}[];
|
|
3217
|
-
};
|
|
3218
|
-
};
|
|
3219
|
-
/** @description The provided content is invalid */
|
|
3220
|
-
400: {
|
|
3221
|
-
headers: {
|
|
3222
|
-
[name: string]: unknown;
|
|
3223
|
-
};
|
|
3224
|
-
content: {
|
|
3225
|
-
"application/json": {
|
|
3226
|
-
error: string;
|
|
3227
|
-
};
|
|
3228
|
-
};
|
|
3229
|
-
};
|
|
3230
|
-
/** @description Unable to retrieve flow with this id */
|
|
3231
|
-
404: {
|
|
3232
|
-
headers: {
|
|
3233
|
-
[name: string]: unknown;
|
|
3234
|
-
};
|
|
3235
|
-
content: {
|
|
3236
|
-
"application/json": {
|
|
3237
|
-
error: string;
|
|
3238
|
-
};
|
|
3239
|
-
};
|
|
3240
|
-
};
|
|
3241
|
-
/** @description Something wrong happened */
|
|
3242
|
-
500: {
|
|
3243
|
-
headers: {
|
|
3244
|
-
[name: string]: unknown;
|
|
3245
|
-
};
|
|
3246
|
-
content: {
|
|
3247
|
-
"application/json": {
|
|
3248
|
-
error: string;
|
|
3249
|
-
};
|
|
3250
|
-
};
|
|
3251
|
-
};
|
|
3252
|
-
};
|
|
3253
|
-
};
|
|
3254
|
-
delete?: never;
|
|
3255
|
-
options?: never;
|
|
3256
|
-
head?: never;
|
|
3257
|
-
patch?: never;
|
|
3258
|
-
trace?: never;
|
|
3259
|
-
};
|
|
3260
3728
|
"/api/v1/recommendations": {
|
|
3261
3729
|
parameters: {
|
|
3262
3730
|
query?: never;
|
|
@@ -3337,6 +3805,22 @@ declare interface paths {
|
|
|
3337
3805
|
patch?: never;
|
|
3338
3806
|
trace?: never;
|
|
3339
3807
|
};
|
|
3808
|
+
"/api/v1/contextual-insights/generate-insight": {
|
|
3809
|
+
parameters: {
|
|
3810
|
+
query?: never;
|
|
3811
|
+
header?: never;
|
|
3812
|
+
path?: never;
|
|
3813
|
+
cookie?: never;
|
|
3814
|
+
};
|
|
3815
|
+
get?: never;
|
|
3816
|
+
put?: never;
|
|
3817
|
+
post: operations["generateInsight"];
|
|
3818
|
+
delete?: never;
|
|
3819
|
+
options?: never;
|
|
3820
|
+
head?: never;
|
|
3821
|
+
patch?: never;
|
|
3822
|
+
trace?: never;
|
|
3823
|
+
};
|
|
3340
3824
|
"/api/v1/admin-console/query-examples": {
|
|
3341
3825
|
parameters: {
|
|
3342
3826
|
query?: never;
|
|
@@ -3401,28 +3885,108 @@ declare interface paths {
|
|
|
3401
3885
|
patch?: never;
|
|
3402
3886
|
trace?: never;
|
|
3403
3887
|
};
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
}
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
cookie?: PatchParam<P, Config, "cookie">;
|
|
3888
|
+
"/api/v1/admin-console/contextual-insights/generate-template": {
|
|
3889
|
+
parameters: {
|
|
3890
|
+
query?: never;
|
|
3891
|
+
header?: never;
|
|
3892
|
+
path?: never;
|
|
3893
|
+
cookie?: never;
|
|
3894
|
+
};
|
|
3895
|
+
get?: never;
|
|
3896
|
+
put?: never;
|
|
3897
|
+
post: operations["generateInsightTemplate"];
|
|
3898
|
+
delete?: never;
|
|
3899
|
+
options?: never;
|
|
3900
|
+
head?: never;
|
|
3901
|
+
patch?: never;
|
|
3902
|
+
trace?: never;
|
|
3420
3903
|
};
|
|
3421
|
-
}
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3904
|
+
"/api/v1/admin-console/contextual-insights/preview/{report_id}/data": {
|
|
3905
|
+
parameters: {
|
|
3906
|
+
query?: never;
|
|
3907
|
+
header?: never;
|
|
3908
|
+
path?: never;
|
|
3909
|
+
cookie?: never;
|
|
3910
|
+
};
|
|
3911
|
+
get: operations["getContextualInsightPreviewData"];
|
|
3912
|
+
put?: never;
|
|
3913
|
+
post?: never;
|
|
3914
|
+
delete?: never;
|
|
3915
|
+
options?: never;
|
|
3916
|
+
head?: never;
|
|
3917
|
+
patch?: never;
|
|
3918
|
+
trace?: never;
|
|
3919
|
+
};
|
|
3920
|
+
"/api/v1/admin-console/contextual-insights/preview/{report_id}/sample-values": {
|
|
3921
|
+
parameters: {
|
|
3922
|
+
query?: never;
|
|
3923
|
+
header?: never;
|
|
3924
|
+
path?: never;
|
|
3925
|
+
cookie?: never;
|
|
3926
|
+
};
|
|
3927
|
+
get: operations["getContextualInsightColumnSampleValues"];
|
|
3928
|
+
put?: never;
|
|
3929
|
+
post?: never;
|
|
3930
|
+
delete?: never;
|
|
3931
|
+
options?: never;
|
|
3932
|
+
head?: never;
|
|
3933
|
+
patch?: never;
|
|
3934
|
+
trace?: never;
|
|
3935
|
+
};
|
|
3936
|
+
"/api/v1/admin-console/contextual-insights/extract-insight": {
|
|
3937
|
+
parameters: {
|
|
3938
|
+
query?: never;
|
|
3939
|
+
header?: never;
|
|
3940
|
+
path?: never;
|
|
3941
|
+
cookie?: never;
|
|
3942
|
+
};
|
|
3943
|
+
get?: never;
|
|
3944
|
+
put?: never;
|
|
3945
|
+
post: operations["extractInsight"];
|
|
3946
|
+
delete?: never;
|
|
3947
|
+
options?: never;
|
|
3948
|
+
head?: never;
|
|
3949
|
+
patch?: never;
|
|
3950
|
+
trace?: never;
|
|
3951
|
+
};
|
|
3952
|
+
"/api/v1/admin-console/contextual-insights/suggest-filter-column": {
|
|
3953
|
+
parameters: {
|
|
3954
|
+
query?: never;
|
|
3955
|
+
header?: never;
|
|
3956
|
+
path?: never;
|
|
3957
|
+
cookie?: never;
|
|
3958
|
+
};
|
|
3959
|
+
get?: never;
|
|
3960
|
+
put?: never;
|
|
3961
|
+
post: operations["suggestFilterColumn"];
|
|
3962
|
+
delete?: never;
|
|
3963
|
+
options?: never;
|
|
3964
|
+
head?: never;
|
|
3965
|
+
patch?: never;
|
|
3966
|
+
trace?: never;
|
|
3967
|
+
};
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3970
|
+
declare type PersistenceOptions = "queryParam" | "none";
|
|
3971
|
+
|
|
3972
|
+
declare type RemoveAuthHeader<PathSchema> = Simplify<{
|
|
3973
|
+
[Method in keyof PathSchema]: RemoveParams<PathSchema[Method], ToRemove>;
|
|
3974
|
+
}>;
|
|
3975
|
+
|
|
3976
|
+
declare type RemoveParams<MethodSchema, Config extends RemoveParamsConfig> = Simplify<MethodSchema extends {
|
|
3977
|
+
parameters: infer P;
|
|
3978
|
+
} ? Omit<MethodSchema, "parameters"> & {
|
|
3979
|
+
parameters: {
|
|
3980
|
+
header?: PatchParam<P, Config, "header">;
|
|
3981
|
+
query?: PatchParam<P, Config, "query">;
|
|
3982
|
+
path?: PatchParam<P, Config, "path">;
|
|
3983
|
+
cookie?: PatchParam<P, Config, "cookie">;
|
|
3984
|
+
};
|
|
3985
|
+
} : MethodSchema>;
|
|
3986
|
+
|
|
3987
|
+
declare type RemoveParamsConfig = Simplify<{
|
|
3988
|
+
header?: string;
|
|
3989
|
+
query?: string;
|
|
3426
3990
|
path?: string;
|
|
3427
3991
|
cookie?: string;
|
|
3428
3992
|
}>;
|
|
@@ -3461,6 +4025,7 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
3461
4025
|
createFlowAsync: UseMutateAsyncFunction< {
|
|
3462
4026
|
flowId: string;
|
|
3463
4027
|
}, Error, StartFlowParam, unknown>;
|
|
4028
|
+
isCreatingFlow: boolean;
|
|
3464
4029
|
data: undefined;
|
|
3465
4030
|
variables: undefined;
|
|
3466
4031
|
error: null;
|
|
@@ -3488,6 +4053,7 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
3488
4053
|
createFlowAsync: UseMutateAsyncFunction< {
|
|
3489
4054
|
flowId: string;
|
|
3490
4055
|
}, Error, StartFlowParam, unknown>;
|
|
4056
|
+
isCreatingFlow: boolean;
|
|
3491
4057
|
data: undefined;
|
|
3492
4058
|
variables: StartFlowParam;
|
|
3493
4059
|
error: null;
|
|
@@ -3515,6 +4081,7 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
3515
4081
|
createFlowAsync: UseMutateAsyncFunction< {
|
|
3516
4082
|
flowId: string;
|
|
3517
4083
|
}, Error, StartFlowParam, unknown>;
|
|
4084
|
+
isCreatingFlow: boolean;
|
|
3518
4085
|
data: undefined;
|
|
3519
4086
|
error: Error;
|
|
3520
4087
|
variables: StartFlowParam;
|
|
@@ -3542,6 +4109,7 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
3542
4109
|
createFlowAsync: UseMutateAsyncFunction< {
|
|
3543
4110
|
flowId: string;
|
|
3544
4111
|
}, Error, StartFlowParam, unknown>;
|
|
4112
|
+
isCreatingFlow: boolean;
|
|
3545
4113
|
data: {
|
|
3546
4114
|
flowId: string;
|
|
3547
4115
|
};
|
|
@@ -3701,9 +4269,10 @@ export declare const useDownloadReportData: (options?: UseMutationOptions<Export
|
|
|
3701
4269
|
export declare const useFlowDataInsights: (flowId: string, enabled?: boolean) => UseQueryResult< {
|
|
3702
4270
|
count: false;
|
|
3703
4271
|
data_reports: {
|
|
3704
|
-
status: string | null;
|
|
3705
4272
|
title: string;
|
|
4273
|
+
status: string | null;
|
|
3706
4274
|
id: number;
|
|
4275
|
+
request: string | null;
|
|
3707
4276
|
created_at: string;
|
|
3708
4277
|
bookmarked: boolean;
|
|
3709
4278
|
flow_id: string;
|
|
@@ -3728,33 +4297,40 @@ type: "bar";
|
|
|
3728
4297
|
title: string;
|
|
3729
4298
|
xAxisLabel: string;
|
|
3730
4299
|
yAxisLabel: string;
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
4300
|
+
config_version: 2;
|
|
4301
|
+
categoryColumn: string;
|
|
4302
|
+
valueColumn: string;
|
|
4303
|
+
secondaryCategoryColumn?: string | undefined;
|
|
3735
4304
|
} | {
|
|
3736
4305
|
type: "line/area";
|
|
3737
4306
|
title: string;
|
|
4307
|
+
valueColumns: string[];
|
|
4308
|
+
config_version: 2;
|
|
4309
|
+
xAxisColumn: string;
|
|
4310
|
+
yAxisLabels: string[];
|
|
4311
|
+
} | {
|
|
4312
|
+
type: "line/area-categorical";
|
|
4313
|
+
title: string;
|
|
3738
4314
|
xAxisLabel: string;
|
|
3739
4315
|
yAxisLabel: string;
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
4316
|
+
config_version: 2;
|
|
4317
|
+
categoryColumn: string;
|
|
4318
|
+
valueColumn: string;
|
|
4319
|
+
xAxisColumn: string;
|
|
3744
4320
|
} | {
|
|
3745
4321
|
type: "scatter";
|
|
3746
4322
|
title: string;
|
|
3747
4323
|
xAxisLabel: string;
|
|
3748
4324
|
yAxisLabel: string;
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
dimensionDataKey?: string | undefined;
|
|
4325
|
+
config_version: 2;
|
|
4326
|
+
xAxisValueColumn: string;
|
|
4327
|
+
yAxisValueColumn: string;
|
|
3753
4328
|
} | {
|
|
3754
4329
|
type: "pie";
|
|
3755
4330
|
title: string;
|
|
3756
|
-
|
|
3757
|
-
|
|
4331
|
+
config_version: 2;
|
|
4332
|
+
categoryColumn: string;
|
|
4333
|
+
valueColumn: string;
|
|
3758
4334
|
};
|
|
3759
4335
|
bookmarked: boolean;
|
|
3760
4336
|
}[];
|
|
@@ -3766,6 +4342,169 @@ data_reports: number;
|
|
|
3766
4342
|
visualizations: number;
|
|
3767
4343
|
}, Error>;
|
|
3768
4344
|
|
|
4345
|
+
export declare const useGenerateContextualInsight: (options?: UseMutationOptions<ExtractInsightResponse, Error, GenerateInsightParam>) => {
|
|
4346
|
+
generateInsight: UseMutateFunction< {
|
|
4347
|
+
type: "text";
|
|
4348
|
+
insight: string;
|
|
4349
|
+
} | {
|
|
4350
|
+
type: "missing";
|
|
4351
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4352
|
+
generateInsightAsync: UseMutateAsyncFunction< {
|
|
4353
|
+
type: "text";
|
|
4354
|
+
insight: string;
|
|
4355
|
+
} | {
|
|
4356
|
+
type: "missing";
|
|
4357
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4358
|
+
data: undefined;
|
|
4359
|
+
variables: undefined;
|
|
4360
|
+
error: null;
|
|
4361
|
+
isError: false;
|
|
4362
|
+
isIdle: true;
|
|
4363
|
+
isPending: false;
|
|
4364
|
+
isSuccess: false;
|
|
4365
|
+
status: "idle";
|
|
4366
|
+
mutate: UseMutateFunction< {
|
|
4367
|
+
type: "text";
|
|
4368
|
+
insight: string;
|
|
4369
|
+
} | {
|
|
4370
|
+
type: "missing";
|
|
4371
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4372
|
+
reset: () => void;
|
|
4373
|
+
context: unknown;
|
|
4374
|
+
failureCount: number;
|
|
4375
|
+
failureReason: Error | null;
|
|
4376
|
+
isPaused: boolean;
|
|
4377
|
+
submittedAt: number;
|
|
4378
|
+
mutateAsync: UseMutateAsyncFunction< {
|
|
4379
|
+
type: "text";
|
|
4380
|
+
insight: string;
|
|
4381
|
+
} | {
|
|
4382
|
+
type: "missing";
|
|
4383
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4384
|
+
} | {
|
|
4385
|
+
generateInsight: UseMutateFunction< {
|
|
4386
|
+
type: "text";
|
|
4387
|
+
insight: string;
|
|
4388
|
+
} | {
|
|
4389
|
+
type: "missing";
|
|
4390
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4391
|
+
generateInsightAsync: UseMutateAsyncFunction< {
|
|
4392
|
+
type: "text";
|
|
4393
|
+
insight: string;
|
|
4394
|
+
} | {
|
|
4395
|
+
type: "missing";
|
|
4396
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4397
|
+
data: undefined;
|
|
4398
|
+
variables: GenerateInsightParam;
|
|
4399
|
+
error: null;
|
|
4400
|
+
isError: false;
|
|
4401
|
+
isIdle: false;
|
|
4402
|
+
isPending: true;
|
|
4403
|
+
isSuccess: false;
|
|
4404
|
+
status: "pending";
|
|
4405
|
+
mutate: UseMutateFunction< {
|
|
4406
|
+
type: "text";
|
|
4407
|
+
insight: string;
|
|
4408
|
+
} | {
|
|
4409
|
+
type: "missing";
|
|
4410
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4411
|
+
reset: () => void;
|
|
4412
|
+
context: unknown;
|
|
4413
|
+
failureCount: number;
|
|
4414
|
+
failureReason: Error | null;
|
|
4415
|
+
isPaused: boolean;
|
|
4416
|
+
submittedAt: number;
|
|
4417
|
+
mutateAsync: UseMutateAsyncFunction< {
|
|
4418
|
+
type: "text";
|
|
4419
|
+
insight: string;
|
|
4420
|
+
} | {
|
|
4421
|
+
type: "missing";
|
|
4422
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4423
|
+
} | {
|
|
4424
|
+
generateInsight: UseMutateFunction< {
|
|
4425
|
+
type: "text";
|
|
4426
|
+
insight: string;
|
|
4427
|
+
} | {
|
|
4428
|
+
type: "missing";
|
|
4429
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4430
|
+
generateInsightAsync: UseMutateAsyncFunction< {
|
|
4431
|
+
type: "text";
|
|
4432
|
+
insight: string;
|
|
4433
|
+
} | {
|
|
4434
|
+
type: "missing";
|
|
4435
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4436
|
+
data: undefined;
|
|
4437
|
+
error: Error;
|
|
4438
|
+
variables: GenerateInsightParam;
|
|
4439
|
+
isError: true;
|
|
4440
|
+
isIdle: false;
|
|
4441
|
+
isPending: false;
|
|
4442
|
+
isSuccess: false;
|
|
4443
|
+
status: "error";
|
|
4444
|
+
mutate: UseMutateFunction< {
|
|
4445
|
+
type: "text";
|
|
4446
|
+
insight: string;
|
|
4447
|
+
} | {
|
|
4448
|
+
type: "missing";
|
|
4449
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4450
|
+
reset: () => void;
|
|
4451
|
+
context: unknown;
|
|
4452
|
+
failureCount: number;
|
|
4453
|
+
failureReason: Error | null;
|
|
4454
|
+
isPaused: boolean;
|
|
4455
|
+
submittedAt: number;
|
|
4456
|
+
mutateAsync: UseMutateAsyncFunction< {
|
|
4457
|
+
type: "text";
|
|
4458
|
+
insight: string;
|
|
4459
|
+
} | {
|
|
4460
|
+
type: "missing";
|
|
4461
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4462
|
+
} | {
|
|
4463
|
+
generateInsight: UseMutateFunction< {
|
|
4464
|
+
type: "text";
|
|
4465
|
+
insight: string;
|
|
4466
|
+
} | {
|
|
4467
|
+
type: "missing";
|
|
4468
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4469
|
+
generateInsightAsync: UseMutateAsyncFunction< {
|
|
4470
|
+
type: "text";
|
|
4471
|
+
insight: string;
|
|
4472
|
+
} | {
|
|
4473
|
+
type: "missing";
|
|
4474
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4475
|
+
data: {
|
|
4476
|
+
type: "text";
|
|
4477
|
+
insight: string;
|
|
4478
|
+
} | {
|
|
4479
|
+
type: "missing";
|
|
4480
|
+
};
|
|
4481
|
+
error: null;
|
|
4482
|
+
variables: GenerateInsightParam;
|
|
4483
|
+
isError: false;
|
|
4484
|
+
isIdle: false;
|
|
4485
|
+
isPending: false;
|
|
4486
|
+
isSuccess: true;
|
|
4487
|
+
status: "success";
|
|
4488
|
+
mutate: UseMutateFunction< {
|
|
4489
|
+
type: "text";
|
|
4490
|
+
insight: string;
|
|
4491
|
+
} | {
|
|
4492
|
+
type: "missing";
|
|
4493
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4494
|
+
reset: () => void;
|
|
4495
|
+
context: unknown;
|
|
4496
|
+
failureCount: number;
|
|
4497
|
+
failureReason: Error | null;
|
|
4498
|
+
isPaused: boolean;
|
|
4499
|
+
submittedAt: number;
|
|
4500
|
+
mutateAsync: UseMutateAsyncFunction< {
|
|
4501
|
+
type: "text";
|
|
4502
|
+
insight: string;
|
|
4503
|
+
} | {
|
|
4504
|
+
type: "missing";
|
|
4505
|
+
}, Error, GenerateInsightParam, unknown>;
|
|
4506
|
+
};
|
|
4507
|
+
|
|
3769
4508
|
export declare const useMageMetricsApiUrl: () => string;
|
|
3770
4509
|
|
|
3771
4510
|
export declare const useMageMetricsClient: () => MageMetricsClient | undefined;
|
|
@@ -3863,6 +4602,189 @@ export declare const useStartFlow: (options?: UseMutationOptions<string, Error,
|
|
|
3863
4602
|
mutateAsync: UseMutateAsyncFunction<string, Error, StartFlowParam, unknown>;
|
|
3864
4603
|
};
|
|
3865
4604
|
|
|
4605
|
+
declare type V1FrontendVisualization = z.output<typeof V1FrontendVisualizationSchema>;
|
|
4606
|
+
|
|
4607
|
+
declare const V1FrontendVisualizationSchema: z.ZodObject<Omit<{
|
|
4608
|
+
id: z.ZodNumber;
|
|
4609
|
+
flow_data_id: z.ZodNumber;
|
|
4610
|
+
created_at: z.ZodString;
|
|
4611
|
+
configuration: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4612
|
+
xAxisLabel: z.ZodString;
|
|
4613
|
+
yAxisLabel: z.ZodString;
|
|
4614
|
+
xAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
4615
|
+
yAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
4616
|
+
dimensionDataKey: z.ZodOptional<z.ZodString>;
|
|
4617
|
+
valueColumns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4618
|
+
title: z.ZodString;
|
|
4619
|
+
type: z.ZodLiteral<"bar">;
|
|
4620
|
+
}, "strip", z.ZodTypeAny, {
|
|
4621
|
+
type: "bar";
|
|
4622
|
+
title: string;
|
|
4623
|
+
xAxisLabel: string;
|
|
4624
|
+
yAxisLabel: string;
|
|
4625
|
+
valueColumns?: string[] | undefined;
|
|
4626
|
+
xAxisDataKey?: string | undefined;
|
|
4627
|
+
yAxisDataKey?: string | undefined;
|
|
4628
|
+
dimensionDataKey?: string | undefined;
|
|
4629
|
+
}, {
|
|
4630
|
+
type: "bar";
|
|
4631
|
+
title: string;
|
|
4632
|
+
xAxisLabel: string;
|
|
4633
|
+
yAxisLabel: string;
|
|
4634
|
+
valueColumns?: string[] | undefined;
|
|
4635
|
+
xAxisDataKey?: string | undefined;
|
|
4636
|
+
yAxisDataKey?: string | undefined;
|
|
4637
|
+
dimensionDataKey?: string | undefined;
|
|
4638
|
+
}>, z.ZodObject<{
|
|
4639
|
+
xAxisLabel: z.ZodString;
|
|
4640
|
+
yAxisLabel: z.ZodString;
|
|
4641
|
+
xAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
4642
|
+
yAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
4643
|
+
dimensionDataKey: z.ZodOptional<z.ZodString>;
|
|
4644
|
+
valueColumns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4645
|
+
title: z.ZodString;
|
|
4646
|
+
type: z.ZodLiteral<"line/area">;
|
|
4647
|
+
}, "strip", z.ZodTypeAny, {
|
|
4648
|
+
type: "line/area";
|
|
4649
|
+
title: string;
|
|
4650
|
+
xAxisLabel: string;
|
|
4651
|
+
yAxisLabel: string;
|
|
4652
|
+
valueColumns?: string[] | undefined;
|
|
4653
|
+
xAxisDataKey?: string | undefined;
|
|
4654
|
+
yAxisDataKey?: string | undefined;
|
|
4655
|
+
dimensionDataKey?: string | undefined;
|
|
4656
|
+
}, {
|
|
4657
|
+
type: "line/area";
|
|
4658
|
+
title: string;
|
|
4659
|
+
xAxisLabel: string;
|
|
4660
|
+
yAxisLabel: string;
|
|
4661
|
+
valueColumns?: string[] | undefined;
|
|
4662
|
+
xAxisDataKey?: string | undefined;
|
|
4663
|
+
yAxisDataKey?: string | undefined;
|
|
4664
|
+
dimensionDataKey?: string | undefined;
|
|
4665
|
+
}>, z.ZodObject<{
|
|
4666
|
+
xAxisLabel: z.ZodString;
|
|
4667
|
+
yAxisLabel: z.ZodString;
|
|
4668
|
+
xAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
4669
|
+
yAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
4670
|
+
dimensionDataKey: z.ZodOptional<z.ZodString>;
|
|
4671
|
+
valueColumns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4672
|
+
title: z.ZodString;
|
|
4673
|
+
type: z.ZodLiteral<"scatter">;
|
|
4674
|
+
}, "strip", z.ZodTypeAny, {
|
|
4675
|
+
type: "scatter";
|
|
4676
|
+
title: string;
|
|
4677
|
+
xAxisLabel: string;
|
|
4678
|
+
yAxisLabel: string;
|
|
4679
|
+
valueColumns?: string[] | undefined;
|
|
4680
|
+
xAxisDataKey?: string | undefined;
|
|
4681
|
+
yAxisDataKey?: string | undefined;
|
|
4682
|
+
dimensionDataKey?: string | undefined;
|
|
4683
|
+
}, {
|
|
4684
|
+
type: "scatter";
|
|
4685
|
+
title: string;
|
|
4686
|
+
xAxisLabel: string;
|
|
4687
|
+
yAxisLabel: string;
|
|
4688
|
+
valueColumns?: string[] | undefined;
|
|
4689
|
+
xAxisDataKey?: string | undefined;
|
|
4690
|
+
yAxisDataKey?: string | undefined;
|
|
4691
|
+
dimensionDataKey?: string | undefined;
|
|
4692
|
+
}>, z.ZodObject<{
|
|
4693
|
+
nameKey: z.ZodString;
|
|
4694
|
+
dataKey: z.ZodString;
|
|
4695
|
+
title: z.ZodString;
|
|
4696
|
+
type: z.ZodLiteral<"pie">;
|
|
4697
|
+
}, "strip", z.ZodTypeAny, {
|
|
4698
|
+
type: "pie";
|
|
4699
|
+
title: string;
|
|
4700
|
+
nameKey: string;
|
|
4701
|
+
dataKey: string;
|
|
4702
|
+
}, {
|
|
4703
|
+
type: "pie";
|
|
4704
|
+
title: string;
|
|
4705
|
+
nameKey: string;
|
|
4706
|
+
dataKey: string;
|
|
4707
|
+
}>]>;
|
|
4708
|
+
sql: z.ZodString;
|
|
4709
|
+
bookmarked: z.ZodBoolean;
|
|
4710
|
+
}, "sql">, "strip", z.ZodTypeAny, {
|
|
4711
|
+
id: number;
|
|
4712
|
+
flow_data_id: number;
|
|
4713
|
+
created_at: string;
|
|
4714
|
+
configuration: {
|
|
4715
|
+
type: "bar";
|
|
4716
|
+
title: string;
|
|
4717
|
+
xAxisLabel: string;
|
|
4718
|
+
yAxisLabel: string;
|
|
4719
|
+
valueColumns?: string[] | undefined;
|
|
4720
|
+
xAxisDataKey?: string | undefined;
|
|
4721
|
+
yAxisDataKey?: string | undefined;
|
|
4722
|
+
dimensionDataKey?: string | undefined;
|
|
4723
|
+
} | {
|
|
4724
|
+
type: "line/area";
|
|
4725
|
+
title: string;
|
|
4726
|
+
xAxisLabel: string;
|
|
4727
|
+
yAxisLabel: string;
|
|
4728
|
+
valueColumns?: string[] | undefined;
|
|
4729
|
+
xAxisDataKey?: string | undefined;
|
|
4730
|
+
yAxisDataKey?: string | undefined;
|
|
4731
|
+
dimensionDataKey?: string | undefined;
|
|
4732
|
+
} | {
|
|
4733
|
+
type: "scatter";
|
|
4734
|
+
title: string;
|
|
4735
|
+
xAxisLabel: string;
|
|
4736
|
+
yAxisLabel: string;
|
|
4737
|
+
valueColumns?: string[] | undefined;
|
|
4738
|
+
xAxisDataKey?: string | undefined;
|
|
4739
|
+
yAxisDataKey?: string | undefined;
|
|
4740
|
+
dimensionDataKey?: string | undefined;
|
|
4741
|
+
} | {
|
|
4742
|
+
type: "pie";
|
|
4743
|
+
title: string;
|
|
4744
|
+
nameKey: string;
|
|
4745
|
+
dataKey: string;
|
|
4746
|
+
};
|
|
4747
|
+
bookmarked: boolean;
|
|
4748
|
+
}, {
|
|
4749
|
+
id: number;
|
|
4750
|
+
flow_data_id: number;
|
|
4751
|
+
created_at: string;
|
|
4752
|
+
configuration: {
|
|
4753
|
+
type: "bar";
|
|
4754
|
+
title: string;
|
|
4755
|
+
xAxisLabel: string;
|
|
4756
|
+
yAxisLabel: string;
|
|
4757
|
+
valueColumns?: string[] | undefined;
|
|
4758
|
+
xAxisDataKey?: string | undefined;
|
|
4759
|
+
yAxisDataKey?: string | undefined;
|
|
4760
|
+
dimensionDataKey?: string | undefined;
|
|
4761
|
+
} | {
|
|
4762
|
+
type: "line/area";
|
|
4763
|
+
title: string;
|
|
4764
|
+
xAxisLabel: string;
|
|
4765
|
+
yAxisLabel: string;
|
|
4766
|
+
valueColumns?: string[] | undefined;
|
|
4767
|
+
xAxisDataKey?: string | undefined;
|
|
4768
|
+
yAxisDataKey?: string | undefined;
|
|
4769
|
+
dimensionDataKey?: string | undefined;
|
|
4770
|
+
} | {
|
|
4771
|
+
type: "scatter";
|
|
4772
|
+
title: string;
|
|
4773
|
+
xAxisLabel: string;
|
|
4774
|
+
yAxisLabel: string;
|
|
4775
|
+
valueColumns?: string[] | undefined;
|
|
4776
|
+
xAxisDataKey?: string | undefined;
|
|
4777
|
+
yAxisDataKey?: string | undefined;
|
|
4778
|
+
dimensionDataKey?: string | undefined;
|
|
4779
|
+
} | {
|
|
4780
|
+
type: "pie";
|
|
4781
|
+
title: string;
|
|
4782
|
+
nameKey: string;
|
|
4783
|
+
dataKey: string;
|
|
4784
|
+
};
|
|
4785
|
+
bookmarked: boolean;
|
|
4786
|
+
}>;
|
|
4787
|
+
|
|
3866
4788
|
export declare const Visualization: ForwardRefExoticComponent< {
|
|
3867
4789
|
visualizationId: number;
|
|
3868
4790
|
isFullWidth: boolean;
|