@magemetrics/ai 0.0.44 → 0.0.45
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 +10272 -9999
- package/dist/react/index.d.ts +19 -32
- package/dist/styles.css +1 -1
- package/dist/web-component/web-component.es.js +105330 -3
- package/package.json +11 -11
- package/dist/web-component/browser-BEtEmtej.js +0 -17
- package/dist/web-component/web-component-D7L8akX4.js +0 -104905
package/dist/react/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
3
|
import { z } from 'zod';
|
|
3
4
|
|
|
4
5
|
export declare class ApiService {
|
|
@@ -59,7 +60,7 @@ export declare interface DataReportMessageProps {
|
|
|
59
60
|
totalRows: number;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
export declare const DataTable:
|
|
63
|
+
export declare const DataTable: (props: DataReportMessageProps) => JSX.Element;
|
|
63
64
|
|
|
64
65
|
declare type DisplayControlProps = {
|
|
65
66
|
showRecommendations?: boolean;
|
|
@@ -183,7 +184,7 @@ declare const FrontendFlowDataExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
183
184
|
details: string;
|
|
184
185
|
}[];
|
|
185
186
|
}>>>;
|
|
186
|
-
columns_lineage: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
187
|
+
columns_lineage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
187
188
|
nodes: z.ZodArray<z.ZodObject<{
|
|
188
189
|
id: z.ZodString;
|
|
189
190
|
type: z.ZodEnum<["entity", "attribute", "filter", "process", "combine", "result"]>;
|
|
@@ -227,7 +228,7 @@ declare const FrontendFlowDataExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
227
228
|
source: string;
|
|
228
229
|
target: string;
|
|
229
230
|
}[];
|
|
230
|
-
}
|
|
231
|
+
}>>>>;
|
|
231
232
|
confidence_score: z.ZodNumber;
|
|
232
233
|
confidence_score_reason: z.ZodString;
|
|
233
234
|
id: z.ZodNumber;
|
|
@@ -235,17 +236,6 @@ declare const FrontendFlowDataExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
235
236
|
created_at: z.ZodString;
|
|
236
237
|
}, "id" | "created_at">, "strip", z.ZodTypeAny, {
|
|
237
238
|
flow_data_id: number;
|
|
238
|
-
columns_lineage: Record<string, {
|
|
239
|
-
nodes: {
|
|
240
|
-
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
241
|
-
id: string;
|
|
242
|
-
explanation: string;
|
|
243
|
-
}[];
|
|
244
|
-
edges: {
|
|
245
|
-
source: string;
|
|
246
|
-
target: string;
|
|
247
|
-
}[];
|
|
248
|
-
}>;
|
|
249
239
|
confidence_score: number;
|
|
250
240
|
confidence_score_reason: string;
|
|
251
241
|
sql_explanation?: {
|
|
@@ -265,9 +255,7 @@ declare const FrontendFlowDataExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
265
255
|
details: string;
|
|
266
256
|
}[];
|
|
267
257
|
} | null | undefined;
|
|
268
|
-
|
|
269
|
-
flow_data_id: number;
|
|
270
|
-
columns_lineage: Record<string, {
|
|
258
|
+
columns_lineage?: Record<string, {
|
|
271
259
|
nodes: {
|
|
272
260
|
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
273
261
|
id: string;
|
|
@@ -277,7 +265,9 @@ declare const FrontendFlowDataExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
277
265
|
source: string;
|
|
278
266
|
target: string;
|
|
279
267
|
}[];
|
|
280
|
-
}
|
|
268
|
+
}> | null | undefined;
|
|
269
|
+
}, {
|
|
270
|
+
flow_data_id: number;
|
|
281
271
|
confidence_score: number;
|
|
282
272
|
confidence_score_reason: string;
|
|
283
273
|
sql_explanation?: {
|
|
@@ -297,6 +287,17 @@ declare const FrontendFlowDataExplainabilitySchema: z.ZodObject<Omit<{
|
|
|
297
287
|
details: string;
|
|
298
288
|
}[];
|
|
299
289
|
} | null | undefined;
|
|
290
|
+
columns_lineage?: Record<string, {
|
|
291
|
+
nodes: {
|
|
292
|
+
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
293
|
+
id: string;
|
|
294
|
+
explanation: string;
|
|
295
|
+
}[];
|
|
296
|
+
edges: {
|
|
297
|
+
source: string;
|
|
298
|
+
target: string;
|
|
299
|
+
}[];
|
|
300
|
+
}> | null | undefined;
|
|
300
301
|
}>;
|
|
301
302
|
|
|
302
303
|
declare const FrontendFlowDataSchema: z.ZodObject<Omit<{
|
|
@@ -408,20 +409,6 @@ declare const FrontendFlowDataSchema: z.ZodObject<Omit<{
|
|
|
408
409
|
};
|
|
409
410
|
}>;
|
|
410
411
|
|
|
411
|
-
declare type InfiniteDataTableUIProps = {
|
|
412
|
-
flowId: string;
|
|
413
|
-
data: Record<string, unknown>[];
|
|
414
|
-
columns: FrontendFlowColumns;
|
|
415
|
-
explainability: FrontendFlowDataExplainability | null | undefined;
|
|
416
|
-
isOpened: boolean;
|
|
417
|
-
setIsOpened: (opened: boolean) => void;
|
|
418
|
-
hasNextPage?: boolean;
|
|
419
|
-
fetchNextPage: () => Promise<unknown>;
|
|
420
|
-
isFetchingNextPage: boolean;
|
|
421
|
-
isFetching: boolean;
|
|
422
|
-
totalRows: number;
|
|
423
|
-
};
|
|
424
|
-
|
|
425
412
|
export declare const logout: () => Promise<void>;
|
|
426
413
|
|
|
427
414
|
export declare const MageMetricsContextProvider: default_2.FC<MageMetricsContextProviderProps>;
|