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