@magemetrics/ai 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fonts.css +2 -1
- package/dist/fonts.js +0 -1
- package/dist/react/ai.js +39183 -37135
- package/dist/react/index.d.ts +102 -100
- package/dist/styles.css +2 -1
- package/dist/styles.js +0 -1
- package/dist/web-component/web-component.es.js +98242 -100762
- package/package.json +36 -36
package/dist/react/index.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export declare type CellContentProps = {
|
|
|
77
77
|
formattedValue: FormattedData | undefined;
|
|
78
78
|
unit?: string;
|
|
79
79
|
renderType?: string;
|
|
80
|
+
isNumeric?: boolean;
|
|
80
81
|
};
|
|
81
82
|
|
|
82
83
|
export declare const Chat: React.FC<PublicChatProps>;
|
|
@@ -464,6 +465,8 @@ declare const FrontendVisualizationSchema: z.ZodObject<{
|
|
|
464
465
|
type: z.ZodLiteral<"pie">;
|
|
465
466
|
}, z.core.$strip>], "type">;
|
|
466
467
|
created_at: z.ZodString;
|
|
468
|
+
flow_data_id: z.ZodNumber;
|
|
469
|
+
report_uuid: z.ZodString;
|
|
467
470
|
flow_data: z.ZodOptional<z.ZodObject<{
|
|
468
471
|
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
469
472
|
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
@@ -474,8 +477,6 @@ declare const FrontendVisualizationSchema: z.ZodObject<{
|
|
|
474
477
|
running: "running";
|
|
475
478
|
}>>;
|
|
476
479
|
}, z.core.$strip>>;
|
|
477
|
-
flow_data_id: z.ZodNumber;
|
|
478
|
-
report_uuid: z.ZodString;
|
|
479
480
|
materialization: z.ZodOptional<z.ZodObject<{
|
|
480
481
|
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
481
482
|
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
@@ -762,12 +763,12 @@ declare const TableFilterValueSchema: z.ZodObject<{
|
|
|
762
763
|
* }
|
|
763
764
|
* ```
|
|
764
765
|
*/
|
|
765
|
-
export declare const useCanvas: (canvasId: string | undefined | null, options?: Omit<UseQueryOptions<FrontendCanvas, unknown>, "queryKey" | "queryFn">) => UseQueryResult<
|
|
766
|
-
title: string | null;
|
|
767
|
-
id: string;
|
|
768
|
-
nodes: any[];
|
|
769
|
-
edges: any[];
|
|
770
|
-
is_public: boolean;
|
|
766
|
+
export declare const useCanvas: (canvasId: string | undefined | null, options?: Omit<UseQueryOptions<FrontendCanvas, unknown>, "queryKey" | "queryFn">) => UseQueryResult<{
|
|
767
|
+
title: string | null;
|
|
768
|
+
id: string;
|
|
769
|
+
nodes: any[];
|
|
770
|
+
edges: any[];
|
|
771
|
+
is_public: boolean;
|
|
771
772
|
}, unknown>;
|
|
772
773
|
|
|
773
774
|
export declare const useChatContext: () => ChatContextValue;
|
|
@@ -783,11 +784,11 @@ export declare const useChatInputContext: () => ChatInputContextValue;
|
|
|
783
784
|
export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
784
785
|
flowId: string;
|
|
785
786
|
}, Error, CreateFlowParam>) => {
|
|
786
|
-
createFlow: UseMutateFunction<
|
|
787
|
-
|
|
787
|
+
createFlow: UseMutateFunction<{
|
|
788
|
+
flowId: string;
|
|
788
789
|
}, Error, CreateFlowParam, unknown>;
|
|
789
|
-
createFlowAsync: UseMutateAsyncFunction<
|
|
790
|
-
|
|
790
|
+
createFlowAsync: UseMutateAsyncFunction<{
|
|
791
|
+
flowId: string;
|
|
791
792
|
}, Error, CreateFlowParam, unknown>;
|
|
792
793
|
isCreatingFlow: boolean;
|
|
793
794
|
data: undefined;
|
|
@@ -798,8 +799,8 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
798
799
|
isPending: false;
|
|
799
800
|
isSuccess: false;
|
|
800
801
|
status: "idle";
|
|
801
|
-
mutate: UseMutateFunction<
|
|
802
|
-
|
|
802
|
+
mutate: UseMutateFunction<{
|
|
803
|
+
flowId: string;
|
|
803
804
|
}, Error, CreateFlowParam, unknown>;
|
|
804
805
|
reset: () => void;
|
|
805
806
|
context: unknown;
|
|
@@ -807,15 +808,15 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
807
808
|
failureReason: Error | null;
|
|
808
809
|
isPaused: boolean;
|
|
809
810
|
submittedAt: number;
|
|
810
|
-
mutateAsync: UseMutateAsyncFunction<
|
|
811
|
-
|
|
811
|
+
mutateAsync: UseMutateAsyncFunction<{
|
|
812
|
+
flowId: string;
|
|
812
813
|
}, Error, CreateFlowParam, unknown>;
|
|
813
814
|
} | {
|
|
814
|
-
createFlow: UseMutateFunction<
|
|
815
|
-
|
|
815
|
+
createFlow: UseMutateFunction<{
|
|
816
|
+
flowId: string;
|
|
816
817
|
}, Error, CreateFlowParam, unknown>;
|
|
817
|
-
createFlowAsync: UseMutateAsyncFunction<
|
|
818
|
-
|
|
818
|
+
createFlowAsync: UseMutateAsyncFunction<{
|
|
819
|
+
flowId: string;
|
|
819
820
|
}, Error, CreateFlowParam, unknown>;
|
|
820
821
|
isCreatingFlow: boolean;
|
|
821
822
|
data: undefined;
|
|
@@ -826,8 +827,8 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
826
827
|
isPending: true;
|
|
827
828
|
isSuccess: false;
|
|
828
829
|
status: "pending";
|
|
829
|
-
mutate: UseMutateFunction<
|
|
830
|
-
|
|
830
|
+
mutate: UseMutateFunction<{
|
|
831
|
+
flowId: string;
|
|
831
832
|
}, Error, CreateFlowParam, unknown>;
|
|
832
833
|
reset: () => void;
|
|
833
834
|
context: unknown;
|
|
@@ -835,15 +836,15 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
835
836
|
failureReason: Error | null;
|
|
836
837
|
isPaused: boolean;
|
|
837
838
|
submittedAt: number;
|
|
838
|
-
mutateAsync: UseMutateAsyncFunction<
|
|
839
|
-
|
|
839
|
+
mutateAsync: UseMutateAsyncFunction<{
|
|
840
|
+
flowId: string;
|
|
840
841
|
}, Error, CreateFlowParam, unknown>;
|
|
841
842
|
} | {
|
|
842
|
-
createFlow: UseMutateFunction<
|
|
843
|
-
|
|
843
|
+
createFlow: UseMutateFunction<{
|
|
844
|
+
flowId: string;
|
|
844
845
|
}, Error, CreateFlowParam, unknown>;
|
|
845
|
-
createFlowAsync: UseMutateAsyncFunction<
|
|
846
|
-
|
|
846
|
+
createFlowAsync: UseMutateAsyncFunction<{
|
|
847
|
+
flowId: string;
|
|
847
848
|
}, Error, CreateFlowParam, unknown>;
|
|
848
849
|
isCreatingFlow: boolean;
|
|
849
850
|
data: undefined;
|
|
@@ -854,8 +855,8 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
854
855
|
isPending: false;
|
|
855
856
|
isSuccess: false;
|
|
856
857
|
status: "error";
|
|
857
|
-
mutate: UseMutateFunction<
|
|
858
|
-
|
|
858
|
+
mutate: UseMutateFunction<{
|
|
859
|
+
flowId: string;
|
|
859
860
|
}, Error, CreateFlowParam, unknown>;
|
|
860
861
|
reset: () => void;
|
|
861
862
|
context: unknown;
|
|
@@ -863,15 +864,15 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
863
864
|
failureReason: Error | null;
|
|
864
865
|
isPaused: boolean;
|
|
865
866
|
submittedAt: number;
|
|
866
|
-
mutateAsync: UseMutateAsyncFunction<
|
|
867
|
-
|
|
867
|
+
mutateAsync: UseMutateAsyncFunction<{
|
|
868
|
+
flowId: string;
|
|
868
869
|
}, Error, CreateFlowParam, unknown>;
|
|
869
870
|
} | {
|
|
870
|
-
createFlow: UseMutateFunction<
|
|
871
|
-
|
|
871
|
+
createFlow: UseMutateFunction<{
|
|
872
|
+
flowId: string;
|
|
872
873
|
}, Error, CreateFlowParam, unknown>;
|
|
873
|
-
createFlowAsync: UseMutateAsyncFunction<
|
|
874
|
-
|
|
874
|
+
createFlowAsync: UseMutateAsyncFunction<{
|
|
875
|
+
flowId: string;
|
|
875
876
|
}, Error, CreateFlowParam, unknown>;
|
|
876
877
|
isCreatingFlow: boolean;
|
|
877
878
|
data: {
|
|
@@ -884,8 +885,8 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
884
885
|
isPending: false;
|
|
885
886
|
isSuccess: true;
|
|
886
887
|
status: "success";
|
|
887
|
-
mutate: UseMutateFunction<
|
|
888
|
-
|
|
888
|
+
mutate: UseMutateFunction<{
|
|
889
|
+
flowId: string;
|
|
889
890
|
}, Error, CreateFlowParam, unknown>;
|
|
890
891
|
reset: () => void;
|
|
891
892
|
context: unknown;
|
|
@@ -893,13 +894,13 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
|
|
|
893
894
|
failureReason: Error | null;
|
|
894
895
|
isPaused: boolean;
|
|
895
896
|
submittedAt: number;
|
|
896
|
-
mutateAsync: UseMutateAsyncFunction<
|
|
897
|
-
|
|
897
|
+
mutateAsync: UseMutateAsyncFunction<{
|
|
898
|
+
flowId: string;
|
|
898
899
|
}, Error, CreateFlowParam, unknown>;
|
|
899
900
|
};
|
|
900
901
|
|
|
901
|
-
export declare const useDataReportColumnValue: (reportId: string, filters: ReportDataFilters) => UseQueryResult<
|
|
902
|
-
[x: string]: unknown;
|
|
902
|
+
export declare const useDataReportColumnValue: (reportId: string, filters: ReportDataFilters) => UseQueryResult<{
|
|
903
|
+
[x: string]: unknown;
|
|
903
904
|
}[], Error>;
|
|
904
905
|
|
|
905
906
|
export declare const useDataTableContext: () => {
|
|
@@ -937,9 +938,9 @@ export declare const useDataTableContext: () => {
|
|
|
937
938
|
materialized_error_message: string | null;
|
|
938
939
|
materialized_status: "completed" | "running" | "failed" | null;
|
|
939
940
|
};
|
|
940
|
-
fetchNextPage: (options?: FetchNextPageOptions) => Promise<InfiniteQueryObserverResult<InfiniteData<
|
|
941
|
-
|
|
942
|
-
}[], unknown>,
|
|
941
|
+
fetchNextPage: (options?: FetchNextPageOptions) => Promise< InfiniteQueryObserverResult<InfiniteData<{
|
|
942
|
+
[x: string]: unknown;
|
|
943
|
+
}[], unknown>, unknown>>;
|
|
943
944
|
pages: {
|
|
944
945
|
[x: string]: unknown;
|
|
945
946
|
}[][] | undefined;
|
|
@@ -950,6 +951,10 @@ export declare const useDataTableContext: () => {
|
|
|
950
951
|
renderType?: string | undefined;
|
|
951
952
|
unit?: string | undefined;
|
|
952
953
|
canonicalDataType?: "numeric" | "boolean" | "datetime" | "text" | "array" | "json" | "other" | undefined;
|
|
954
|
+
formatHint?: {
|
|
955
|
+
isNumeric?: boolean | undefined;
|
|
956
|
+
isLikelyYear?: boolean | undefined;
|
|
957
|
+
} | undefined;
|
|
953
958
|
}[] | undefined;
|
|
954
959
|
isPendingColumns: boolean;
|
|
955
960
|
hasMoreData: boolean;
|
|
@@ -1043,22 +1048,19 @@ export declare const useMageMetricsClient: () => MageMetricsClient;
|
|
|
1043
1048
|
|
|
1044
1049
|
export declare const useMageMetricsReady: () => false | MageMetricsClient;
|
|
1045
1050
|
|
|
1046
|
-
export declare const useRecentFlows: (limit?: number) => UseQueryResult<
|
|
1047
|
-
title: string | null;
|
|
1048
|
-
id: string;
|
|
1049
|
-
request: string;
|
|
1050
|
-
created_at: string;
|
|
1051
|
-
user_id: string | null;
|
|
1052
|
-
application_id?: number | null | undefined;
|
|
1053
|
-
context_tokens?: number | undefined;
|
|
1054
|
-
acc_input_tokens?: number | undefined;
|
|
1055
|
-
acc_output_tokens?: number | undefined;
|
|
1051
|
+
export declare const useRecentFlows: (limit?: number) => UseQueryResult<{
|
|
1052
|
+
title: string | null;
|
|
1053
|
+
id: string;
|
|
1054
|
+
request: string;
|
|
1055
|
+
created_at: string;
|
|
1056
|
+
user_id: string | null;
|
|
1057
|
+
application_id?: number | null | undefined;
|
|
1056
1058
|
}[], Error>;
|
|
1057
1059
|
|
|
1058
|
-
export declare const useRecommendations: (count: number) => UseQueryResult<
|
|
1059
|
-
starter: string;
|
|
1060
|
-
explanation: string;
|
|
1061
|
-
type: string;
|
|
1060
|
+
export declare const useRecommendations: (count: number) => UseQueryResult<{
|
|
1061
|
+
starter: string;
|
|
1062
|
+
explanation: string;
|
|
1063
|
+
type: string;
|
|
1062
1064
|
}[], Error>;
|
|
1063
1065
|
|
|
1064
1066
|
export declare const useReport: (reportId: string | undefined) => {
|
|
@@ -1102,41 +1104,41 @@ export declare const useReport: (reportId: string | undefined) => {
|
|
|
1102
1104
|
error: Error | null;
|
|
1103
1105
|
isError: boolean;
|
|
1104
1106
|
isSuccess: boolean;
|
|
1105
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1107
|
+
refetch: (options?: RefetchOptions) => Promise< QueryObserverResult<{
|
|
1108
|
+
created_at: string;
|
|
1109
|
+
id: number;
|
|
1110
|
+
uuid: string;
|
|
1111
|
+
title: string;
|
|
1112
|
+
request: string | null;
|
|
1113
|
+
data_summary: {
|
|
1114
|
+
[x: string]: unknown;
|
|
1115
|
+
columns: {
|
|
1116
|
+
[x: string]: {
|
|
1117
|
+
[x: string]: unknown;
|
|
1118
|
+
position?: number | undefined;
|
|
1119
|
+
data_type: string;
|
|
1120
|
+
null_count: number | null;
|
|
1121
|
+
unique_count: number | null;
|
|
1122
|
+
unique_percentage: number | null;
|
|
1123
|
+
min_value?: number | null | undefined;
|
|
1124
|
+
max_value?: number | null | undefined;
|
|
1125
|
+
avg_value?: number | null | undefined;
|
|
1126
|
+
median_value?: number | null | undefined;
|
|
1127
|
+
std_value?: number | null | undefined;
|
|
1128
|
+
min_date?: string | null | undefined;
|
|
1129
|
+
max_date?: string | null | undefined;
|
|
1130
|
+
min_length?: number | null | undefined;
|
|
1131
|
+
max_length?: number | null | undefined;
|
|
1132
|
+
avg_length?: number | null | undefined;
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
status: string | null;
|
|
1137
|
+
is_removed: boolean;
|
|
1138
|
+
is_materialized: boolean | null;
|
|
1139
|
+
last_materialized_at: string | null;
|
|
1140
|
+
materialized_error_message: string | null;
|
|
1141
|
+
materialized_status: "completed" | "running" | "failed" | null;
|
|
1140
1142
|
} | null, Error>>;
|
|
1141
1143
|
isRefetching: boolean;
|
|
1142
1144
|
isFetching: boolean;
|
|
@@ -1183,6 +1185,8 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<{
|
|
|
1183
1185
|
type: z.ZodLiteral<"pie">;
|
|
1184
1186
|
}, z.core.$strip>], "type">;
|
|
1185
1187
|
created_at: z.ZodString;
|
|
1188
|
+
flow_data_id: z.ZodNumber;
|
|
1189
|
+
report_uuid: z.ZodString;
|
|
1186
1190
|
flow_data: z.ZodOptional<z.ZodObject<{
|
|
1187
1191
|
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
1188
1192
|
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
@@ -1193,8 +1197,6 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<{
|
|
|
1193
1197
|
running: "running";
|
|
1194
1198
|
}>>;
|
|
1195
1199
|
}, z.core.$strip>>;
|
|
1196
|
-
flow_data_id: z.ZodNumber;
|
|
1197
|
-
report_uuid: z.ZodString;
|
|
1198
1200
|
materialization: z.ZodOptional<z.ZodObject<{
|
|
1199
1201
|
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
1200
1202
|
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
@@ -1207,10 +1209,10 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<{
|
|
|
1207
1209
|
}, z.core.$strip>>;
|
|
1208
1210
|
}, z.core.$strip>;
|
|
1209
1211
|
|
|
1210
|
-
export declare const Visualization: ForwardRefExoticComponent<
|
|
1211
|
-
visualizationId: string;
|
|
1212
|
-
withTitle: boolean;
|
|
1213
|
-
exportingEnabled?: boolean;
|
|
1212
|
+
export declare const Visualization: ForwardRefExoticComponent<{
|
|
1213
|
+
visualizationId: string;
|
|
1214
|
+
withTitle: boolean;
|
|
1215
|
+
exportingEnabled?: boolean;
|
|
1214
1216
|
} & RefAttributes<HTMLDivElement>>;
|
|
1215
1217
|
|
|
1216
1218
|
export declare type WebComponentManagedModalProps = StandaloneManagedModalProps & {
|