@magemetrics/ai 0.0.43 → 0.0.44
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 +7894 -7484
- package/dist/react/index.d.ts +212 -2
- package/dist/styles.css +1 -1
- package/dist/web-component/{browser-w1PBQiWa.js → browser-BEtEmtej.js} +1 -1
- package/dist/web-component/{web-component-t8s5LBp8.js → web-component-D7L8akX4.js} +43105 -41977
- package/dist/web-component/web-component.es.d.ts +11 -2
- package/dist/web-component/web-component.es.js +1 -1
- package/package.json +3 -2
package/dist/react/index.d.ts
CHANGED
|
@@ -24,7 +24,13 @@ export declare type CellContentProps = {
|
|
|
24
24
|
|
|
25
25
|
export declare interface Components {
|
|
26
26
|
dataTableCells?: {
|
|
27
|
-
|
|
27
|
+
empty?: (props: CellContentProps) => default_2.ReactNode;
|
|
28
|
+
units?: {
|
|
29
|
+
[key: string]: (props: CellContentProps) => default_2.ReactNode;
|
|
30
|
+
};
|
|
31
|
+
renderTypes?: {
|
|
32
|
+
[key: string]: (props: CellContentProps) => default_2.ReactNode;
|
|
33
|
+
};
|
|
28
34
|
};
|
|
29
35
|
dataReportTable?: (props: DataReportMessageProps) => default_2.ReactNode;
|
|
30
36
|
}
|
|
@@ -38,9 +44,10 @@ export declare interface DataReportMessageProps {
|
|
|
38
44
|
report: FrontendFlowData;
|
|
39
45
|
isOpened: boolean;
|
|
40
46
|
setIsOpened: (opened: boolean) => void;
|
|
47
|
+
explainability: FrontendFlowDataExplainability | null | undefined;
|
|
41
48
|
infiniteData: {
|
|
42
49
|
data?: {
|
|
43
|
-
pages: unknown[][];
|
|
50
|
+
pages: Record<string, unknown>[][];
|
|
44
51
|
};
|
|
45
52
|
isPending: boolean;
|
|
46
53
|
fetchNextPage: () => Promise<unknown>;
|
|
@@ -52,6 +59,8 @@ export declare interface DataReportMessageProps {
|
|
|
52
59
|
totalRows: number;
|
|
53
60
|
}
|
|
54
61
|
|
|
62
|
+
export declare const DataTable: React.FC<InfiniteDataTableUIProps>;
|
|
63
|
+
|
|
55
64
|
declare type DisplayControlProps = {
|
|
56
65
|
showRecommendations?: boolean;
|
|
57
66
|
showRecentChats?: boolean;
|
|
@@ -110,6 +119,186 @@ declare const FrontendFlowColumnsSchema: z.ZodArray<z.ZodObject<{
|
|
|
110
119
|
|
|
111
120
|
declare type FrontendFlowData = z.infer<typeof FrontendFlowDataSchema>;
|
|
112
121
|
|
|
122
|
+
declare type FrontendFlowDataExplainability = z.infer<typeof FrontendFlowDataExplainabilitySchema>;
|
|
123
|
+
|
|
124
|
+
declare const FrontendFlowDataExplainabilitySchema: z.ZodObject<Omit<{
|
|
125
|
+
sql_explanation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
126
|
+
chunk_title: z.ZodString;
|
|
127
|
+
chunk_explanation: z.ZodString;
|
|
128
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
129
|
+
sql: z.ZodString;
|
|
130
|
+
explanation: z.ZodString;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
sql: string;
|
|
133
|
+
explanation: string;
|
|
134
|
+
}, {
|
|
135
|
+
sql: string;
|
|
136
|
+
explanation: string;
|
|
137
|
+
}>, "many">;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
chunk_title: string;
|
|
140
|
+
chunk_explanation: string;
|
|
141
|
+
lines: {
|
|
142
|
+
sql: string;
|
|
143
|
+
explanation: string;
|
|
144
|
+
}[];
|
|
145
|
+
}, {
|
|
146
|
+
chunk_title: string;
|
|
147
|
+
chunk_explanation: string;
|
|
148
|
+
lines: {
|
|
149
|
+
sql: string;
|
|
150
|
+
explanation: string;
|
|
151
|
+
}[];
|
|
152
|
+
}>, "many">>>;
|
|
153
|
+
business_explanation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
154
|
+
summary: z.ZodString;
|
|
155
|
+
implementation: z.ZodArray<z.ZodString, "many">;
|
|
156
|
+
assumptions: z.ZodArray<z.ZodObject<{
|
|
157
|
+
type: z.ZodEnum<["grain", "completeness", "transformation", "relationship", "other"]>;
|
|
158
|
+
details: z.ZodString;
|
|
159
|
+
explanation: z.ZodString;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
162
|
+
explanation: string;
|
|
163
|
+
details: string;
|
|
164
|
+
}, {
|
|
165
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
166
|
+
explanation: string;
|
|
167
|
+
details: string;
|
|
168
|
+
}>, "many">;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
summary: string;
|
|
171
|
+
implementation: string[];
|
|
172
|
+
assumptions: {
|
|
173
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
174
|
+
explanation: string;
|
|
175
|
+
details: string;
|
|
176
|
+
}[];
|
|
177
|
+
}, {
|
|
178
|
+
summary: string;
|
|
179
|
+
implementation: string[];
|
|
180
|
+
assumptions: {
|
|
181
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
182
|
+
explanation: string;
|
|
183
|
+
details: string;
|
|
184
|
+
}[];
|
|
185
|
+
}>>>;
|
|
186
|
+
columns_lineage: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
187
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
type: z.ZodEnum<["entity", "attribute", "filter", "process", "combine", "result"]>;
|
|
190
|
+
explanation: z.ZodString;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
193
|
+
id: string;
|
|
194
|
+
explanation: string;
|
|
195
|
+
}, {
|
|
196
|
+
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
197
|
+
id: string;
|
|
198
|
+
explanation: string;
|
|
199
|
+
}>, "many">;
|
|
200
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
201
|
+
source: z.ZodString;
|
|
202
|
+
target: z.ZodString;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
source: string;
|
|
205
|
+
target: string;
|
|
206
|
+
}, {
|
|
207
|
+
source: string;
|
|
208
|
+
target: string;
|
|
209
|
+
}>, "many">;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
nodes: {
|
|
212
|
+
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
213
|
+
id: string;
|
|
214
|
+
explanation: string;
|
|
215
|
+
}[];
|
|
216
|
+
edges: {
|
|
217
|
+
source: string;
|
|
218
|
+
target: string;
|
|
219
|
+
}[];
|
|
220
|
+
}, {
|
|
221
|
+
nodes: {
|
|
222
|
+
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
223
|
+
id: string;
|
|
224
|
+
explanation: string;
|
|
225
|
+
}[];
|
|
226
|
+
edges: {
|
|
227
|
+
source: string;
|
|
228
|
+
target: string;
|
|
229
|
+
}[];
|
|
230
|
+
}>>;
|
|
231
|
+
confidence_score: z.ZodNumber;
|
|
232
|
+
confidence_score_reason: z.ZodString;
|
|
233
|
+
id: z.ZodNumber;
|
|
234
|
+
flow_data_id: z.ZodNumber;
|
|
235
|
+
created_at: z.ZodString;
|
|
236
|
+
}, "id" | "created_at">, "strip", z.ZodTypeAny, {
|
|
237
|
+
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
|
+
confidence_score: number;
|
|
250
|
+
confidence_score_reason: string;
|
|
251
|
+
sql_explanation?: {
|
|
252
|
+
chunk_title: string;
|
|
253
|
+
chunk_explanation: string;
|
|
254
|
+
lines: {
|
|
255
|
+
sql: string;
|
|
256
|
+
explanation: string;
|
|
257
|
+
}[];
|
|
258
|
+
}[] | null | undefined;
|
|
259
|
+
business_explanation?: {
|
|
260
|
+
summary: string;
|
|
261
|
+
implementation: string[];
|
|
262
|
+
assumptions: {
|
|
263
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
264
|
+
explanation: string;
|
|
265
|
+
details: string;
|
|
266
|
+
}[];
|
|
267
|
+
} | null | undefined;
|
|
268
|
+
}, {
|
|
269
|
+
flow_data_id: number;
|
|
270
|
+
columns_lineage: Record<string, {
|
|
271
|
+
nodes: {
|
|
272
|
+
type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
|
|
273
|
+
id: string;
|
|
274
|
+
explanation: string;
|
|
275
|
+
}[];
|
|
276
|
+
edges: {
|
|
277
|
+
source: string;
|
|
278
|
+
target: string;
|
|
279
|
+
}[];
|
|
280
|
+
}>;
|
|
281
|
+
confidence_score: number;
|
|
282
|
+
confidence_score_reason: string;
|
|
283
|
+
sql_explanation?: {
|
|
284
|
+
chunk_title: string;
|
|
285
|
+
chunk_explanation: string;
|
|
286
|
+
lines: {
|
|
287
|
+
sql: string;
|
|
288
|
+
explanation: string;
|
|
289
|
+
}[];
|
|
290
|
+
}[] | null | undefined;
|
|
291
|
+
business_explanation?: {
|
|
292
|
+
summary: string;
|
|
293
|
+
implementation: string[];
|
|
294
|
+
assumptions: {
|
|
295
|
+
type: "grain" | "completeness" | "transformation" | "relationship" | "other";
|
|
296
|
+
explanation: string;
|
|
297
|
+
details: string;
|
|
298
|
+
}[];
|
|
299
|
+
} | null | undefined;
|
|
300
|
+
}>;
|
|
301
|
+
|
|
113
302
|
declare const FrontendFlowDataSchema: z.ZodObject<Omit<{
|
|
114
303
|
created_at: z.ZodString;
|
|
115
304
|
flow_id: z.ZodString;
|
|
@@ -181,9 +370,13 @@ declare const FrontendFlowDataSchema: z.ZodObject<Omit<{
|
|
|
181
370
|
unique_percentage: z.ZodNullable<z.ZodNumber>;
|
|
182
371
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
183
372
|
}, z.ZodTypeAny, "passthrough">>;
|
|
373
|
+
bookmarked: z.ZodBoolean;
|
|
374
|
+
status: z.ZodNullable<z.ZodString>;
|
|
184
375
|
}, "schema" | "sql" | "table" | "created_at" | "is_sample" | "data_sample">, "strip", z.ZodTypeAny, {
|
|
376
|
+
status: string | null;
|
|
185
377
|
title: string;
|
|
186
378
|
id: number;
|
|
379
|
+
bookmarked: boolean;
|
|
187
380
|
flow_id: string;
|
|
188
381
|
data_summary: {
|
|
189
382
|
columns: Record<string, z.objectOutputType<{
|
|
@@ -197,8 +390,10 @@ declare const FrontendFlowDataSchema: z.ZodObject<Omit<{
|
|
|
197
390
|
[k: string]: unknown;
|
|
198
391
|
};
|
|
199
392
|
}, {
|
|
393
|
+
status: string | null;
|
|
200
394
|
title: string;
|
|
201
395
|
id: number;
|
|
396
|
+
bookmarked: boolean;
|
|
202
397
|
flow_id: string;
|
|
203
398
|
data_summary: {
|
|
204
399
|
columns: Record<string, z.objectInputType<{
|
|
@@ -213,6 +408,20 @@ declare const FrontendFlowDataSchema: z.ZodObject<Omit<{
|
|
|
213
408
|
};
|
|
214
409
|
}>;
|
|
215
410
|
|
|
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
|
+
|
|
216
425
|
export declare const logout: () => Promise<void>;
|
|
217
426
|
|
|
218
427
|
export declare const MageMetricsContextProvider: default_2.FC<MageMetricsContextProviderProps>;
|
|
@@ -254,6 +463,7 @@ declare type StandaloneConversationModalProps = {
|
|
|
254
463
|
declare type StartOptions = DisplayControlProps & {
|
|
255
464
|
label?: string;
|
|
256
465
|
recommendationsLabel?: string;
|
|
466
|
+
placeholders?: string[];
|
|
257
467
|
};
|
|
258
468
|
|
|
259
469
|
export { }
|