@magemetrics/ai 0.0.44-rc1 → 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.
@@ -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: React.FC<InfiniteDataTableUIProps>;
63
+ export declare const DataTable: (props: DataReportMessageProps) => JSX.Element;
63
64
 
64
65
  declare type DisplayControlProps = {
65
66
  showRecommendations?: boolean;
@@ -129,25 +130,25 @@ declare const FrontendFlowDataExplainabilitySchema: z.ZodObject<Omit<{
129
130
  sql: z.ZodString;
130
131
  explanation: z.ZodString;
131
132
  }, "strip", z.ZodTypeAny, {
132
- explanation: string;
133
133
  sql: string;
134
- }, {
135
134
  explanation: string;
135
+ }, {
136
136
  sql: string;
137
+ explanation: string;
137
138
  }>, "many">;
138
139
  }, "strip", z.ZodTypeAny, {
139
140
  chunk_title: string;
140
141
  chunk_explanation: string;
141
142
  lines: {
142
- explanation: string;
143
143
  sql: string;
144
+ explanation: string;
144
145
  }[];
145
146
  }, {
146
147
  chunk_title: string;
147
148
  chunk_explanation: string;
148
149
  lines: {
149
- explanation: string;
150
150
  sql: string;
151
+ explanation: string;
151
152
  }[];
152
153
  }>, "many">>>;
153
154
  business_explanation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -183,17 +184,17 @@ 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"]>;
190
191
  explanation: z.ZodString;
191
192
  }, "strip", z.ZodTypeAny, {
192
- type: "filter" | "entity" | "attribute" | "process" | "combine" | "result";
193
+ type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
193
194
  id: string;
194
195
  explanation: string;
195
196
  }, {
196
- type: "filter" | "entity" | "attribute" | "process" | "combine" | "result";
197
+ type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
197
198
  id: string;
198
199
  explanation: string;
199
200
  }>, "many">;
@@ -209,7 +210,7 @@ declare const FrontendFlowDataExplainabilitySchema: z.ZodObject<Omit<{
209
210
  }>, "many">;
210
211
  }, "strip", z.ZodTypeAny, {
211
212
  nodes: {
212
- type: "filter" | "entity" | "attribute" | "process" | "combine" | "result";
213
+ type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
213
214
  id: string;
214
215
  explanation: string;
215
216
  }[];
@@ -219,7 +220,7 @@ declare const FrontendFlowDataExplainabilitySchema: z.ZodObject<Omit<{
219
220
  }[];
220
221
  }, {
221
222
  nodes: {
222
- type: "filter" | "entity" | "attribute" | "process" | "combine" | "result";
223
+ type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
223
224
  id: string;
224
225
  explanation: string;
225
226
  }[];
@@ -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,25 +236,14 @@ 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" | "entity" | "attribute" | "process" | "combine" | "result";
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?: {
252
242
  chunk_title: string;
253
243
  chunk_explanation: string;
254
244
  lines: {
255
- explanation: string;
256
245
  sql: string;
246
+ explanation: string;
257
247
  }[];
258
248
  }[] | null | undefined;
259
249
  business_explanation?: {
@@ -265,11 +255,9 @@ 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
- type: "filter" | "entity" | "attribute" | "process" | "combine" | "result";
260
+ type: "filter" | "result" | "entity" | "attribute" | "process" | "combine";
273
261
  id: string;
274
262
  explanation: string;
275
263
  }[];
@@ -277,15 +265,17 @@ 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?: {
284
274
  chunk_title: string;
285
275
  chunk_explanation: string;
286
276
  lines: {
287
- explanation: string;
288
277
  sql: string;
278
+ explanation: string;
289
279
  }[];
290
280
  }[] | null | undefined;
291
281
  business_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<{
@@ -372,9 +373,9 @@ declare const FrontendFlowDataSchema: z.ZodObject<Omit<{
372
373
  }, z.ZodTypeAny, "passthrough">>;
373
374
  bookmarked: z.ZodBoolean;
374
375
  status: z.ZodNullable<z.ZodString>;
375
- }, "schema" | "sql" | "created_at" | "table" | "is_sample" | "data_sample">, "strip", z.ZodTypeAny, {
376
- title: string;
376
+ }, "schema" | "sql" | "table" | "created_at" | "is_sample" | "data_sample">, "strip", z.ZodTypeAny, {
377
377
  status: string | null;
378
+ title: string;
378
379
  id: number;
379
380
  bookmarked: boolean;
380
381
  flow_id: string;
@@ -390,8 +391,8 @@ declare const FrontendFlowDataSchema: z.ZodObject<Omit<{
390
391
  [k: string]: unknown;
391
392
  };
392
393
  }, {
393
- title: string;
394
394
  status: string | null;
395
+ title: string;
395
396
  id: number;
396
397
  bookmarked: boolean;
397
398
  flow_id: string;
@@ -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>;