@magemetrics/ai 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react/ai.js +9049 -8978
- package/dist/react/index.d.ts +164 -171
- package/dist/styles.css +1 -1
- package/dist/web-component/web-component.es.js +29184 -24543
- package/package.json +11 -11
package/dist/react/index.d.ts
CHANGED
|
@@ -399,9 +399,9 @@ declare type FrontendCanvas = z.infer<typeof FrontendCanvasSchema>;
|
|
|
399
399
|
declare const FrontendCanvasSchema: z.ZodObject<{
|
|
400
400
|
id: z.ZodUUID;
|
|
401
401
|
title: z.ZodNullable<z.ZodString>;
|
|
402
|
+
is_public: z.ZodBoolean;
|
|
402
403
|
nodes: z.ZodArray<z.ZodAny>;
|
|
403
404
|
edges: z.ZodArray<z.ZodAny>;
|
|
404
|
-
is_public: z.ZodBoolean;
|
|
405
405
|
}, z.core.$strip>;
|
|
406
406
|
|
|
407
407
|
declare const FrontendRecommendationsSchema: z.ZodObject<{
|
|
@@ -411,32 +411,6 @@ declare const FrontendRecommendationsSchema: z.ZodObject<{
|
|
|
411
411
|
}, z.core.$strip>;
|
|
412
412
|
|
|
413
413
|
declare const FrontendReportSchema: z.ZodObject<{
|
|
414
|
-
id: z.ZodNumber;
|
|
415
|
-
status: z.ZodNullable<z.ZodString>;
|
|
416
|
-
title: z.ZodString;
|
|
417
|
-
uuid: z.ZodString;
|
|
418
|
-
created_at: z.ZodString;
|
|
419
|
-
request: z.ZodNullable<z.ZodString>;
|
|
420
|
-
data_summary: z.ZodObject<{
|
|
421
|
-
columns: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
422
|
-
position: z.ZodOptional<z.ZodNumber>;
|
|
423
|
-
data_type: z.ZodString;
|
|
424
|
-
null_count: z.ZodNullable<z.ZodNumber>;
|
|
425
|
-
unique_count: z.ZodNullable<z.ZodNumber>;
|
|
426
|
-
unique_percentage: z.ZodNullable<z.ZodNumber>;
|
|
427
|
-
min_value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
428
|
-
max_value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
429
|
-
avg_value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
430
|
-
median_value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
431
|
-
std_value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
432
|
-
min_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
433
|
-
max_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
434
|
-
min_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
435
|
-
max_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
436
|
-
avg_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
437
|
-
}, z.core.$loose>>;
|
|
438
|
-
}, z.core.$loose>;
|
|
439
|
-
is_removed: z.ZodBoolean;
|
|
440
414
|
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
441
415
|
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
442
416
|
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
@@ -445,6 +419,36 @@ declare const FrontendReportSchema: z.ZodObject<{
|
|
|
445
419
|
failed: "failed";
|
|
446
420
|
running: "running";
|
|
447
421
|
}>>;
|
|
422
|
+
created_at: z.ZodString;
|
|
423
|
+
id: z.ZodNumber;
|
|
424
|
+
uuid: z.ZodString;
|
|
425
|
+
title: z.ZodString;
|
|
426
|
+
request: z.ZodNullable<z.ZodString>;
|
|
427
|
+
status: z.ZodNullable<z.ZodString>;
|
|
428
|
+
data_summary: z.ZodObject<{
|
|
429
|
+
columns: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
430
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
431
|
+
data_type: z.ZodString;
|
|
432
|
+
render_type: z.ZodOptional<z.ZodString>;
|
|
433
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
434
|
+
canonical_data_type: z.ZodOptional<z.ZodEnum<{
|
|
435
|
+
array: "array";
|
|
436
|
+
boolean: "boolean";
|
|
437
|
+
date: "date";
|
|
438
|
+
datetime: "datetime";
|
|
439
|
+
json: "json";
|
|
440
|
+
numeric: "numeric";
|
|
441
|
+
other: "other";
|
|
442
|
+
text: "text";
|
|
443
|
+
}>>;
|
|
444
|
+
format_hint: z.ZodOptional<z.ZodObject<{
|
|
445
|
+
is_numeric: z.ZodOptional<z.ZodBoolean>;
|
|
446
|
+
is_likely_year: z.ZodOptional<z.ZodBoolean>;
|
|
447
|
+
isNumeric: z.ZodOptional<z.ZodBoolean>;
|
|
448
|
+
isLikelyYear: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
}, z.core.$strip>>;
|
|
451
|
+
}, z.core.$strip>;
|
|
448
452
|
}, z.core.$strip>;
|
|
449
453
|
|
|
450
454
|
declare type FrontendVisualization = z.output<typeof FrontendVisualizationSchema>;
|
|
@@ -452,69 +456,69 @@ declare type FrontendVisualization = z.output<typeof FrontendVisualizationSchema
|
|
|
452
456
|
declare const FrontendVisualizationSchema: z.ZodObject<{
|
|
453
457
|
id: z.ZodNumber;
|
|
454
458
|
uuid: z.ZodString;
|
|
459
|
+
report_uuid: z.ZodString;
|
|
460
|
+
flow_data_id: z.ZodNumber;
|
|
455
461
|
created_at: z.ZodString;
|
|
462
|
+
flow_data: z.ZodOptional<z.ZodObject<{
|
|
463
|
+
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
464
|
+
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
465
|
+
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
466
|
+
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
467
|
+
completed: "completed";
|
|
468
|
+
failed: "failed";
|
|
469
|
+
running: "running";
|
|
470
|
+
}>>;
|
|
471
|
+
}, z.core.$strip>>;
|
|
472
|
+
materialization: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
474
|
+
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
475
|
+
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
476
|
+
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
477
|
+
completed: "completed";
|
|
478
|
+
failed: "failed";
|
|
479
|
+
running: "running";
|
|
480
|
+
}>>;
|
|
481
|
+
}, z.core.$strip>>;
|
|
456
482
|
configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
483
|
+
title: z.ZodString;
|
|
484
|
+
type: z.ZodLiteral<"bar">;
|
|
457
485
|
config_version: z.ZodLiteral<2>;
|
|
458
486
|
xAxisLabel: z.ZodString;
|
|
459
487
|
yAxisLabel: z.ZodString;
|
|
460
488
|
categoryColumn: z.ZodString;
|
|
461
489
|
secondaryCategoryColumn: z.ZodOptional<z.ZodString>;
|
|
462
490
|
valueColumn: z.ZodString;
|
|
463
|
-
title: z.ZodString;
|
|
464
|
-
type: z.ZodLiteral<"bar">;
|
|
465
491
|
}, z.core.$strip>, z.ZodObject<{
|
|
466
|
-
xAxisColumn: z.ZodString;
|
|
467
|
-
valueColumns: z.ZodArray<z.ZodString>;
|
|
468
|
-
yAxisLabels: z.ZodArray<z.ZodString>;
|
|
469
492
|
title: z.ZodString;
|
|
470
493
|
type: z.ZodLiteral<"line/area">;
|
|
471
494
|
config_version: z.ZodLiteral<2>;
|
|
495
|
+
xAxisColumn: z.ZodString;
|
|
496
|
+
valueColumns: z.ZodArray<z.ZodString>;
|
|
497
|
+
yAxisLabels: z.ZodArray<z.ZodString>;
|
|
472
498
|
}, z.core.$strip>, z.ZodObject<{
|
|
499
|
+
title: z.ZodString;
|
|
500
|
+
type: z.ZodLiteral<"line/area-categorical">;
|
|
473
501
|
config_version: z.ZodLiteral<2>;
|
|
474
502
|
valueColumn: z.ZodString;
|
|
475
503
|
xAxisColumn: z.ZodString;
|
|
476
504
|
xAxisLabel: z.ZodString;
|
|
477
505
|
yAxisLabel: z.ZodString;
|
|
478
506
|
categoryColumn: z.ZodString;
|
|
479
|
-
title: z.ZodString;
|
|
480
|
-
type: z.ZodLiteral<"line/area-categorical">;
|
|
481
507
|
}, z.core.$strip>, z.ZodObject<{
|
|
508
|
+
title: z.ZodString;
|
|
509
|
+
type: z.ZodLiteral<"scatter">;
|
|
482
510
|
config_version: z.ZodLiteral<2>;
|
|
483
511
|
xAxisLabel: z.ZodString;
|
|
484
512
|
yAxisLabel: z.ZodString;
|
|
485
513
|
xAxisValueColumn: z.ZodString;
|
|
486
514
|
yAxisValueColumn: z.ZodString;
|
|
487
|
-
title: z.ZodString;
|
|
488
|
-
type: z.ZodLiteral<"scatter">;
|
|
489
515
|
}, z.core.$strip>, z.ZodObject<{
|
|
516
|
+
title: z.ZodString;
|
|
517
|
+
type: z.ZodLiteral<"pie">;
|
|
490
518
|
config_version: z.ZodLiteral<2>;
|
|
491
519
|
categoryColumn: z.ZodString;
|
|
492
520
|
valueColumn: z.ZodString;
|
|
493
|
-
title: z.ZodString;
|
|
494
|
-
type: z.ZodLiteral<"pie">;
|
|
495
521
|
}, z.core.$strip>], "type">;
|
|
496
|
-
flow_data_id: z.ZodNumber;
|
|
497
|
-
report_uuid: z.ZodString;
|
|
498
|
-
flow_data: z.ZodOptional<z.ZodObject<{
|
|
499
|
-
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
500
|
-
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
501
|
-
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
502
|
-
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
503
|
-
completed: "completed";
|
|
504
|
-
failed: "failed";
|
|
505
|
-
running: "running";
|
|
506
|
-
}>>;
|
|
507
|
-
}, z.core.$strip>>;
|
|
508
|
-
materialization: z.ZodOptional<z.ZodObject<{
|
|
509
|
-
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
510
|
-
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
511
|
-
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
512
|
-
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
513
|
-
completed: "completed";
|
|
514
|
-
failed: "failed";
|
|
515
|
-
running: "running";
|
|
516
|
-
}>>;
|
|
517
|
-
}, z.core.$strip>>;
|
|
518
522
|
}, z.core.$strip>;
|
|
519
523
|
|
|
520
524
|
export { GetRecentFlowsParams }
|
|
@@ -769,17 +773,17 @@ declare type TableFilterValue = z.infer<typeof TableFilterValueSchema>;
|
|
|
769
773
|
|
|
770
774
|
declare const TableFilterValueSchema: z.ZodObject<{
|
|
771
775
|
operator: z.ZodEnum<{
|
|
776
|
+
between: "between";
|
|
772
777
|
contains: "contains";
|
|
778
|
+
endsWith: "endsWith";
|
|
773
779
|
eq: "eq";
|
|
774
780
|
gt: "gt";
|
|
775
781
|
gte: "gte";
|
|
776
782
|
lt: "lt";
|
|
777
783
|
lte: "lte";
|
|
778
|
-
endsWith: "endsWith";
|
|
779
|
-
startsWith: "startsWith";
|
|
780
784
|
neq: "neq";
|
|
781
785
|
regex: "regex";
|
|
782
|
-
|
|
786
|
+
startsWith: "startsWith";
|
|
783
787
|
}>;
|
|
784
788
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
|
|
785
789
|
}, z.core.$strip>;
|
|
@@ -797,13 +801,13 @@ declare const TableFilterValueSchema: z.ZodObject<{
|
|
|
797
801
|
* }
|
|
798
802
|
* ```
|
|
799
803
|
*/
|
|
800
|
-
export declare const useCanvas: (canvasId: string | undefined | null, options?: Omit<UseQueryOptions<FrontendCanvas, unknown>, "queryKey" | "queryFn">) => UseQueryResult<
|
|
804
|
+
export declare const useCanvas: (canvasId: string | undefined | null, options?: Omit<UseQueryOptions<FrontendCanvas, unknown>, "queryKey" | "queryFn">) => UseQueryResult<{
|
|
801
805
|
id: string;
|
|
802
806
|
title: string | null;
|
|
807
|
+
is_public: boolean;
|
|
803
808
|
nodes: any[];
|
|
804
809
|
edges: any[];
|
|
805
|
-
|
|
806
|
-
}>, unknown>;
|
|
810
|
+
}, unknown>;
|
|
807
811
|
|
|
808
812
|
export declare const useChatContext: () => ChatContextValue;
|
|
809
813
|
|
|
@@ -933,44 +937,37 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
933
937
|
}, Error, CreateFlowParam, unknown>;
|
|
934
938
|
};
|
|
935
939
|
|
|
936
|
-
export declare const useDataReportColumnValue: (reportId: string, filters: ReportDataFilters) => UseQueryResult<
|
|
940
|
+
export declare const useDataReportColumnValue: (reportId: string, filters: ReportDataFilters) => UseQueryResult<{
|
|
937
941
|
[x: string]: unknown;
|
|
938
|
-
}[]
|
|
942
|
+
}[], Error>;
|
|
939
943
|
|
|
940
944
|
export declare const useDataTableContext: () => {
|
|
941
945
|
report: {
|
|
946
|
+
is_materialized: boolean | null;
|
|
947
|
+
last_materialized_at: string | null;
|
|
948
|
+
materialized_error_message: string | null;
|
|
949
|
+
materialized_status: "completed" | "running" | "failed" | null;
|
|
950
|
+
created_at: string;
|
|
942
951
|
id: number;
|
|
943
|
-
status: string | null;
|
|
944
|
-
title: string;
|
|
945
952
|
uuid: string;
|
|
946
|
-
|
|
953
|
+
title: string;
|
|
947
954
|
request: string | null;
|
|
955
|
+
status: string | null;
|
|
948
956
|
data_summary: {
|
|
949
|
-
[x: string]: unknown;
|
|
950
957
|
columns: Record<string, {
|
|
951
|
-
[x: string]: unknown;
|
|
952
958
|
data_type: string;
|
|
953
|
-
null_count: number | null;
|
|
954
|
-
unique_count: number | null;
|
|
955
|
-
unique_percentage: number | null;
|
|
956
959
|
position?: number | undefined;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
avg_length?: number | null | undefined;
|
|
960
|
+
render_type?: string | undefined;
|
|
961
|
+
unit?: string | undefined;
|
|
962
|
+
canonical_data_type?: "boolean" | "json" | "text" | "numeric" | "datetime" | "date" | "array" | "other" | undefined;
|
|
963
|
+
format_hint?: {
|
|
964
|
+
is_numeric?: boolean | undefined;
|
|
965
|
+
is_likely_year?: boolean | undefined;
|
|
966
|
+
isNumeric?: boolean | undefined;
|
|
967
|
+
isLikelyYear?: boolean | undefined;
|
|
968
|
+
} | undefined;
|
|
967
969
|
}>;
|
|
968
970
|
};
|
|
969
|
-
is_removed: boolean;
|
|
970
|
-
is_materialized: boolean | null;
|
|
971
|
-
last_materialized_at: string | null;
|
|
972
|
-
materialized_error_message: string | null;
|
|
973
|
-
materialized_status: "completed" | "running" | "failed" | null;
|
|
974
971
|
};
|
|
975
972
|
fetchNextPage: (options?: FetchNextPageOptions) => Promise< InfiniteQueryObserverResult<InfiniteData<{
|
|
976
973
|
[x: string]: unknown;
|
|
@@ -981,11 +978,14 @@ export declare const useDataTableContext: () => {
|
|
|
981
978
|
columns: {
|
|
982
979
|
name: string;
|
|
983
980
|
data_type: string;
|
|
981
|
+
position?: number | undefined;
|
|
984
982
|
dataType: string;
|
|
985
983
|
renderType?: string | undefined;
|
|
986
984
|
unit?: string | undefined;
|
|
987
985
|
canonicalDataType?: "numeric" | "boolean" | "datetime" | "date" | "text" | "array" | "json" | "other" | undefined;
|
|
988
986
|
formatHint?: {
|
|
987
|
+
is_numeric?: boolean | undefined;
|
|
988
|
+
is_likely_year?: boolean | undefined;
|
|
989
989
|
isNumeric?: boolean | undefined;
|
|
990
990
|
isLikelyYear?: boolean | undefined;
|
|
991
991
|
} | undefined;
|
|
@@ -1082,99 +1082,85 @@ export declare const useMageMetricsClient: () => MageMetricsClient;
|
|
|
1082
1082
|
|
|
1083
1083
|
export declare const useMageMetricsReady: () => false | MageMetricsClient;
|
|
1084
1084
|
|
|
1085
|
-
export declare const useRecentFlows: (limit?: number, metadataFilter?: FlowMetadata_2) => UseQueryResult<
|
|
1086
|
-
id: string;
|
|
1087
|
-
title: string | null;
|
|
1088
|
-
metadata: Record<string, string | number | boolean>;
|
|
1085
|
+
export declare const useRecentFlows: (limit?: number, metadataFilter?: FlowMetadata_2) => UseQueryResult<{
|
|
1089
1086
|
created_at: string;
|
|
1087
|
+
id: string;
|
|
1090
1088
|
request: string;
|
|
1089
|
+
title: string | null;
|
|
1091
1090
|
user_id: string | null;
|
|
1091
|
+
metadata: Record<string, string | number | boolean>;
|
|
1092
1092
|
application_id?: number | null | undefined;
|
|
1093
|
-
}[]
|
|
1093
|
+
}[], Error>;
|
|
1094
1094
|
|
|
1095
|
-
export declare const useRecommendations: (count: number) => UseQueryResult<
|
|
1095
|
+
export declare const useRecommendations: (count: number) => UseQueryResult<{
|
|
1096
1096
|
starter: string;
|
|
1097
1097
|
explanation: string;
|
|
1098
1098
|
type: string;
|
|
1099
|
-
}[]
|
|
1099
|
+
}[], Error>;
|
|
1100
1100
|
|
|
1101
1101
|
export declare const useReport: (reportId: string | undefined) => {
|
|
1102
|
-
data:
|
|
1102
|
+
data: {
|
|
1103
1103
|
created_at: string;
|
|
1104
1104
|
id: number;
|
|
1105
1105
|
uuid: string;
|
|
1106
1106
|
title: string;
|
|
1107
1107
|
request: string | null;
|
|
1108
|
+
status: string | null;
|
|
1109
|
+
is_materialized: boolean | null;
|
|
1110
|
+
last_materialized_at: string | null;
|
|
1111
|
+
materialized_error_message: string | null;
|
|
1112
|
+
materialized_status: "completed" | "running" | "failed" | null;
|
|
1108
1113
|
data_summary: {
|
|
1109
|
-
[x: string]: unknown;
|
|
1110
1114
|
columns: {
|
|
1111
1115
|
[x: string]: {
|
|
1112
|
-
[x: string]: unknown;
|
|
1113
1116
|
position?: number | undefined;
|
|
1114
1117
|
data_type: string;
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
max_date?: string | null | undefined;
|
|
1125
|
-
min_length?: number | null | undefined;
|
|
1126
|
-
max_length?: number | null | undefined;
|
|
1127
|
-
avg_length?: number | null | undefined;
|
|
1118
|
+
render_type?: string | undefined;
|
|
1119
|
+
unit?: string | undefined;
|
|
1120
|
+
canonical_data_type?: "numeric" | "boolean" | "datetime" | "date" | "text" | "array" | "json" | "other" | undefined;
|
|
1121
|
+
format_hint?: {
|
|
1122
|
+
is_numeric?: boolean | undefined;
|
|
1123
|
+
is_likely_year?: boolean | undefined;
|
|
1124
|
+
isNumeric?: boolean | undefined;
|
|
1125
|
+
isLikelyYear?: boolean | undefined;
|
|
1126
|
+
} | undefined;
|
|
1128
1127
|
};
|
|
1129
1128
|
};
|
|
1130
1129
|
};
|
|
1131
|
-
|
|
1132
|
-
is_removed: boolean;
|
|
1133
|
-
is_materialized: boolean | null;
|
|
1134
|
-
last_materialized_at: string | null;
|
|
1135
|
-
materialized_error_message: string | null;
|
|
1136
|
-
materialized_status: "completed" | "running" | "failed" | null;
|
|
1137
|
-
} | null> | undefined;
|
|
1130
|
+
} | null | undefined;
|
|
1138
1131
|
isLoading: boolean;
|
|
1139
1132
|
error: Error | null;
|
|
1140
1133
|
isError: boolean;
|
|
1141
1134
|
isSuccess: boolean;
|
|
1142
|
-
refetch: (options?: RefetchOptions) => Promise< QueryObserverResult<
|
|
1135
|
+
refetch: (options?: RefetchOptions) => Promise< QueryObserverResult<{
|
|
1143
1136
|
created_at: string;
|
|
1144
1137
|
id: number;
|
|
1145
1138
|
uuid: string;
|
|
1146
1139
|
title: string;
|
|
1147
1140
|
request: string | null;
|
|
1141
|
+
status: string | null;
|
|
1142
|
+
is_materialized: boolean | null;
|
|
1143
|
+
last_materialized_at: string | null;
|
|
1144
|
+
materialized_error_message: string | null;
|
|
1145
|
+
materialized_status: "completed" | "running" | "failed" | null;
|
|
1148
1146
|
data_summary: {
|
|
1149
|
-
[x: string]: unknown;
|
|
1150
1147
|
columns: {
|
|
1151
1148
|
[x: string]: {
|
|
1152
|
-
[x: string]: unknown;
|
|
1153
1149
|
position?: number | undefined;
|
|
1154
1150
|
data_type: string;
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
max_date?: string | null | undefined;
|
|
1165
|
-
min_length?: number | null | undefined;
|
|
1166
|
-
max_length?: number | null | undefined;
|
|
1167
|
-
avg_length?: number | null | undefined;
|
|
1151
|
+
render_type?: string | undefined;
|
|
1152
|
+
unit?: string | undefined;
|
|
1153
|
+
canonical_data_type?: "numeric" | "boolean" | "datetime" | "date" | "text" | "array" | "json" | "other" | undefined;
|
|
1154
|
+
format_hint?: {
|
|
1155
|
+
is_numeric?: boolean | undefined;
|
|
1156
|
+
is_likely_year?: boolean | undefined;
|
|
1157
|
+
isNumeric?: boolean | undefined;
|
|
1158
|
+
isLikelyYear?: boolean | undefined;
|
|
1159
|
+
} | undefined;
|
|
1168
1160
|
};
|
|
1169
1161
|
};
|
|
1170
1162
|
};
|
|
1171
|
-
|
|
1172
|
-
is_removed: boolean;
|
|
1173
|
-
is_materialized: boolean | null;
|
|
1174
|
-
last_materialized_at: string | null;
|
|
1175
|
-
materialized_error_message: string | null;
|
|
1176
|
-
materialized_status: "completed" | "running" | "failed" | null;
|
|
1177
|
-
} | null>, Error>>;
|
|
1163
|
+
} | null, Error>>;
|
|
1178
1164
|
isRefetching: boolean;
|
|
1179
1165
|
isFetching: boolean;
|
|
1180
1166
|
};
|
|
@@ -1186,62 +1172,62 @@ declare type V1FrontendVisualization = z.output<typeof V1FrontendVisualizationSc
|
|
|
1186
1172
|
declare const V1FrontendVisualizationSchema: z.ZodObject<{
|
|
1187
1173
|
id: z.ZodNumber;
|
|
1188
1174
|
uuid: z.ZodString;
|
|
1175
|
+
report_uuid: z.ZodString;
|
|
1176
|
+
flow_data_id: z.ZodNumber;
|
|
1189
1177
|
created_at: z.ZodString;
|
|
1178
|
+
flow_data: z.ZodOptional<z.ZodObject<{
|
|
1179
|
+
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
1180
|
+
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
1181
|
+
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
1182
|
+
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
1183
|
+
completed: "completed";
|
|
1184
|
+
failed: "failed";
|
|
1185
|
+
running: "running";
|
|
1186
|
+
}>>;
|
|
1187
|
+
}, z.core.$strip>>;
|
|
1188
|
+
materialization: z.ZodOptional<z.ZodObject<{
|
|
1189
|
+
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
1190
|
+
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
1191
|
+
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
1192
|
+
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
1193
|
+
completed: "completed";
|
|
1194
|
+
failed: "failed";
|
|
1195
|
+
running: "running";
|
|
1196
|
+
}>>;
|
|
1197
|
+
}, z.core.$strip>>;
|
|
1190
1198
|
configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1199
|
+
title: z.ZodString;
|
|
1191
1200
|
xAxisLabel: z.ZodString;
|
|
1192
1201
|
yAxisLabel: z.ZodString;
|
|
1193
1202
|
xAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
1194
1203
|
yAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
1195
1204
|
dimensionDataKey: z.ZodOptional<z.ZodString>;
|
|
1196
1205
|
valueColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1197
|
-
title: z.ZodString;
|
|
1198
1206
|
type: z.ZodLiteral<"bar">;
|
|
1199
1207
|
}, z.core.$strip>, z.ZodObject<{
|
|
1208
|
+
title: z.ZodString;
|
|
1200
1209
|
xAxisLabel: z.ZodString;
|
|
1201
1210
|
yAxisLabel: z.ZodString;
|
|
1202
1211
|
xAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
1203
1212
|
yAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
1204
1213
|
dimensionDataKey: z.ZodOptional<z.ZodString>;
|
|
1205
1214
|
valueColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1206
|
-
title: z.ZodString;
|
|
1207
1215
|
type: z.ZodLiteral<"line/area">;
|
|
1208
1216
|
}, z.core.$strip>, z.ZodObject<{
|
|
1217
|
+
title: z.ZodString;
|
|
1209
1218
|
xAxisLabel: z.ZodString;
|
|
1210
1219
|
yAxisLabel: z.ZodString;
|
|
1211
1220
|
xAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
1212
1221
|
yAxisDataKey: z.ZodOptional<z.ZodString>;
|
|
1213
1222
|
dimensionDataKey: z.ZodOptional<z.ZodString>;
|
|
1214
1223
|
valueColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1215
|
-
title: z.ZodString;
|
|
1216
1224
|
type: z.ZodLiteral<"scatter">;
|
|
1217
1225
|
}, z.core.$strip>, z.ZodObject<{
|
|
1218
|
-
nameKey: z.ZodString;
|
|
1219
|
-
dataKey: z.ZodString;
|
|
1220
1226
|
title: z.ZodString;
|
|
1221
1227
|
type: z.ZodLiteral<"pie">;
|
|
1228
|
+
nameKey: z.ZodString;
|
|
1229
|
+
dataKey: z.ZodString;
|
|
1222
1230
|
}, z.core.$strip>], "type">;
|
|
1223
|
-
flow_data_id: z.ZodNumber;
|
|
1224
|
-
report_uuid: z.ZodString;
|
|
1225
|
-
flow_data: z.ZodOptional<z.ZodObject<{
|
|
1226
|
-
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
1227
|
-
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
1228
|
-
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
1229
|
-
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
1230
|
-
completed: "completed";
|
|
1231
|
-
failed: "failed";
|
|
1232
|
-
running: "running";
|
|
1233
|
-
}>>;
|
|
1234
|
-
}, z.core.$strip>>;
|
|
1235
|
-
materialization: z.ZodOptional<z.ZodObject<{
|
|
1236
|
-
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
1237
|
-
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
1238
|
-
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
1239
|
-
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
1240
|
-
completed: "completed";
|
|
1241
|
-
failed: "failed";
|
|
1242
|
-
running: "running";
|
|
1243
|
-
}>>;
|
|
1244
|
-
}, z.core.$strip>>;
|
|
1245
1231
|
}, z.core.$strip>;
|
|
1246
1232
|
|
|
1247
1233
|
export declare const Visualization: ForwardRefExoticComponent<{
|
|
@@ -1257,6 +1243,13 @@ export declare type WebComponentManagedModalProps = StandaloneManagedModalProps
|
|
|
1257
1243
|
export { }
|
|
1258
1244
|
|
|
1259
1245
|
|
|
1246
|
+
declare module "highcharts" {
|
|
1247
|
+
interface Exporting {
|
|
1248
|
+
exportChart(exportingOptions?: ExportingOptions, chartOptions?: Options): void;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
|
|
1260
1253
|
declare module "react" {
|
|
1261
1254
|
namespace JSX {
|
|
1262
1255
|
interface IntrinsicElements {
|