@datarecce/ui 0.1.8 → 0.1.10
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/LineageViewContext-BPpYWJ2B.d.mts +103 -0
- package/dist/LineageViewContext-DqJPwm_c.d.ts +103 -0
- package/dist/api.d.mts +102 -0
- package/dist/api.d.ts +102 -0
- package/dist/components.d.mts +388 -0
- package/dist/components.d.ts +388 -0
- package/dist/hooks.d.mts +212 -0
- package/dist/hooks.d.ts +212 -0
- package/dist/hooks.js +7078 -34
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +7026 -21
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.d.mts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +1375 -314
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1094 -54
- package/dist/index.mjs.map +1 -1
- package/dist/lineagecheck-BIlm5vq1.d.mts +597 -0
- package/dist/lineagecheck-BIlm5vq1.d.ts +597 -0
- package/dist/types.d.mts +33 -0
- package/dist/types.d.ts +33 -0
- package/package.json +13 -18
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { y as NodeData, M as ManifestMetadata, A as CatalogMetadata, w as ColumnLineageData, Y as LineageDiffViewOptions, aL as Run, t as CllInput } from './lineagecheck-BIlm5vq1.mjs';
|
|
3
|
+
import { Node, Edge } from '@xyflow/react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The types for internal data structures.
|
|
7
|
+
*/
|
|
8
|
+
type LineageFrom = "both" | "base" | "current";
|
|
9
|
+
type LineageGraphNode = Node<{
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
from: LineageFrom;
|
|
13
|
+
data: {
|
|
14
|
+
base?: NodeData;
|
|
15
|
+
current?: NodeData;
|
|
16
|
+
};
|
|
17
|
+
changeStatus?: "added" | "removed" | "modified";
|
|
18
|
+
change?: {
|
|
19
|
+
category: "breaking" | "non_breaking" | "partial_breaking" | "unknown";
|
|
20
|
+
columns: Record<string, "added" | "removed" | "modified"> | null;
|
|
21
|
+
};
|
|
22
|
+
resourceType?: string;
|
|
23
|
+
packageName?: string;
|
|
24
|
+
parents: Record<string, LineageGraphEdge>;
|
|
25
|
+
children: Record<string, LineageGraphEdge>;
|
|
26
|
+
}, "lineageGraphNode">;
|
|
27
|
+
type LineageGraphColumnNode = Node<{
|
|
28
|
+
node: LineageGraphNode["data"];
|
|
29
|
+
column: string;
|
|
30
|
+
type: string;
|
|
31
|
+
transformationType?: string;
|
|
32
|
+
changeStatus?: "added" | "removed" | "modified";
|
|
33
|
+
}, "lineageGraphColumnNode">;
|
|
34
|
+
type LineageGraphEdge = Edge<{
|
|
35
|
+
from: LineageFrom;
|
|
36
|
+
changeStatus?: "added" | "removed";
|
|
37
|
+
}, "lineageGraphEdge">;
|
|
38
|
+
type LineageGraphNodes = LineageGraphNode | LineageGraphColumnNode;
|
|
39
|
+
interface LineageGraph {
|
|
40
|
+
nodes: Record<string, LineageGraphNode>;
|
|
41
|
+
edges: Record<string, LineageGraphEdge>;
|
|
42
|
+
modifiedSet: string[];
|
|
43
|
+
manifestMetadata: {
|
|
44
|
+
base?: ManifestMetadata;
|
|
45
|
+
current?: ManifestMetadata;
|
|
46
|
+
};
|
|
47
|
+
catalogMetadata: {
|
|
48
|
+
base?: CatalogMetadata;
|
|
49
|
+
current?: CatalogMetadata;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
type NewType = LineageDiffViewOptions;
|
|
54
|
+
type ActionMode = "per_node" | "multi_nodes";
|
|
55
|
+
interface NodeAction {
|
|
56
|
+
mode: ActionMode;
|
|
57
|
+
status?: "pending" | "running" | "success" | "failure" | "skipped";
|
|
58
|
+
skipReason?: string;
|
|
59
|
+
run?: Run;
|
|
60
|
+
}
|
|
61
|
+
interface ActionState {
|
|
62
|
+
mode: ActionMode;
|
|
63
|
+
status: "pending" | "running" | "canceling" | "canceled" | "completed";
|
|
64
|
+
currentRun?: Partial<Run>;
|
|
65
|
+
completed: number;
|
|
66
|
+
total: number;
|
|
67
|
+
actions: Record<string, NodeAction>;
|
|
68
|
+
}
|
|
69
|
+
interface LineageViewContextType {
|
|
70
|
+
interactive: boolean;
|
|
71
|
+
nodes: LineageGraphNodes[];
|
|
72
|
+
focusedNode?: LineageGraphNode;
|
|
73
|
+
selectedNodes: LineageGraphNode[];
|
|
74
|
+
cll: ColumnLineageData | undefined;
|
|
75
|
+
showContextMenu: (event: React__default.MouseEvent, node: LineageGraphNodes) => void;
|
|
76
|
+
viewOptions: LineageDiffViewOptions;
|
|
77
|
+
onViewOptionsChanged: (options: NewType) => void;
|
|
78
|
+
selectMode: "selecting" | "action_result" | undefined;
|
|
79
|
+
selectNode: (nodeId: string) => void;
|
|
80
|
+
selectParentNodes: (nodeId: string, degree?: number) => void;
|
|
81
|
+
selectChildNodes: (nodeId: string, degree?: number) => void;
|
|
82
|
+
deselect: () => void;
|
|
83
|
+
isNodeHighlighted: (nodeId: string) => boolean;
|
|
84
|
+
isNodeSelected: (nodeId: string) => boolean;
|
|
85
|
+
isEdgeHighlighted: (source: string, target: string) => boolean;
|
|
86
|
+
getNodeAction: (nodeId: string) => NodeAction;
|
|
87
|
+
getNodeColumnSet: (nodeId: string) => Set<string>;
|
|
88
|
+
isNodeShowingChangeAnalysis: (nodeId: string) => boolean;
|
|
89
|
+
runRowCount: () => Promise<void>;
|
|
90
|
+
runRowCountDiff: () => Promise<void>;
|
|
91
|
+
runValueDiff: () => Promise<void>;
|
|
92
|
+
addLineageDiffCheck: (viewMode?: string) => void;
|
|
93
|
+
addSchemaDiffCheck: () => void;
|
|
94
|
+
cancel: () => void;
|
|
95
|
+
actionState: ActionState;
|
|
96
|
+
centerNode: (nodeId: string) => void;
|
|
97
|
+
showColumnLevelLineage: (cll?: CllInput) => Promise<void>;
|
|
98
|
+
resetColumnLevelLineage: (previous?: boolean) => Promise<void>;
|
|
99
|
+
}
|
|
100
|
+
declare const LineageViewContext: React__default.Context<LineageViewContextType>;
|
|
101
|
+
declare const useLineageViewContext: () => LineageViewContextType | undefined;
|
|
102
|
+
|
|
103
|
+
export { LineageViewContext as L, type LineageGraphNode as a, type LineageGraphEdge as b, type LineageGraphColumnNode as c, type LineageGraph as d, useLineageViewContext as u };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { y as NodeData, M as ManifestMetadata, A as CatalogMetadata, w as ColumnLineageData, Y as LineageDiffViewOptions, aL as Run, t as CllInput } from './lineagecheck-BIlm5vq1.js';
|
|
3
|
+
import { Node, Edge } from '@xyflow/react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The types for internal data structures.
|
|
7
|
+
*/
|
|
8
|
+
type LineageFrom = "both" | "base" | "current";
|
|
9
|
+
type LineageGraphNode = Node<{
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
from: LineageFrom;
|
|
13
|
+
data: {
|
|
14
|
+
base?: NodeData;
|
|
15
|
+
current?: NodeData;
|
|
16
|
+
};
|
|
17
|
+
changeStatus?: "added" | "removed" | "modified";
|
|
18
|
+
change?: {
|
|
19
|
+
category: "breaking" | "non_breaking" | "partial_breaking" | "unknown";
|
|
20
|
+
columns: Record<string, "added" | "removed" | "modified"> | null;
|
|
21
|
+
};
|
|
22
|
+
resourceType?: string;
|
|
23
|
+
packageName?: string;
|
|
24
|
+
parents: Record<string, LineageGraphEdge>;
|
|
25
|
+
children: Record<string, LineageGraphEdge>;
|
|
26
|
+
}, "lineageGraphNode">;
|
|
27
|
+
type LineageGraphColumnNode = Node<{
|
|
28
|
+
node: LineageGraphNode["data"];
|
|
29
|
+
column: string;
|
|
30
|
+
type: string;
|
|
31
|
+
transformationType?: string;
|
|
32
|
+
changeStatus?: "added" | "removed" | "modified";
|
|
33
|
+
}, "lineageGraphColumnNode">;
|
|
34
|
+
type LineageGraphEdge = Edge<{
|
|
35
|
+
from: LineageFrom;
|
|
36
|
+
changeStatus?: "added" | "removed";
|
|
37
|
+
}, "lineageGraphEdge">;
|
|
38
|
+
type LineageGraphNodes = LineageGraphNode | LineageGraphColumnNode;
|
|
39
|
+
interface LineageGraph {
|
|
40
|
+
nodes: Record<string, LineageGraphNode>;
|
|
41
|
+
edges: Record<string, LineageGraphEdge>;
|
|
42
|
+
modifiedSet: string[];
|
|
43
|
+
manifestMetadata: {
|
|
44
|
+
base?: ManifestMetadata;
|
|
45
|
+
current?: ManifestMetadata;
|
|
46
|
+
};
|
|
47
|
+
catalogMetadata: {
|
|
48
|
+
base?: CatalogMetadata;
|
|
49
|
+
current?: CatalogMetadata;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
type NewType = LineageDiffViewOptions;
|
|
54
|
+
type ActionMode = "per_node" | "multi_nodes";
|
|
55
|
+
interface NodeAction {
|
|
56
|
+
mode: ActionMode;
|
|
57
|
+
status?: "pending" | "running" | "success" | "failure" | "skipped";
|
|
58
|
+
skipReason?: string;
|
|
59
|
+
run?: Run;
|
|
60
|
+
}
|
|
61
|
+
interface ActionState {
|
|
62
|
+
mode: ActionMode;
|
|
63
|
+
status: "pending" | "running" | "canceling" | "canceled" | "completed";
|
|
64
|
+
currentRun?: Partial<Run>;
|
|
65
|
+
completed: number;
|
|
66
|
+
total: number;
|
|
67
|
+
actions: Record<string, NodeAction>;
|
|
68
|
+
}
|
|
69
|
+
interface LineageViewContextType {
|
|
70
|
+
interactive: boolean;
|
|
71
|
+
nodes: LineageGraphNodes[];
|
|
72
|
+
focusedNode?: LineageGraphNode;
|
|
73
|
+
selectedNodes: LineageGraphNode[];
|
|
74
|
+
cll: ColumnLineageData | undefined;
|
|
75
|
+
showContextMenu: (event: React__default.MouseEvent, node: LineageGraphNodes) => void;
|
|
76
|
+
viewOptions: LineageDiffViewOptions;
|
|
77
|
+
onViewOptionsChanged: (options: NewType) => void;
|
|
78
|
+
selectMode: "selecting" | "action_result" | undefined;
|
|
79
|
+
selectNode: (nodeId: string) => void;
|
|
80
|
+
selectParentNodes: (nodeId: string, degree?: number) => void;
|
|
81
|
+
selectChildNodes: (nodeId: string, degree?: number) => void;
|
|
82
|
+
deselect: () => void;
|
|
83
|
+
isNodeHighlighted: (nodeId: string) => boolean;
|
|
84
|
+
isNodeSelected: (nodeId: string) => boolean;
|
|
85
|
+
isEdgeHighlighted: (source: string, target: string) => boolean;
|
|
86
|
+
getNodeAction: (nodeId: string) => NodeAction;
|
|
87
|
+
getNodeColumnSet: (nodeId: string) => Set<string>;
|
|
88
|
+
isNodeShowingChangeAnalysis: (nodeId: string) => boolean;
|
|
89
|
+
runRowCount: () => Promise<void>;
|
|
90
|
+
runRowCountDiff: () => Promise<void>;
|
|
91
|
+
runValueDiff: () => Promise<void>;
|
|
92
|
+
addLineageDiffCheck: (viewMode?: string) => void;
|
|
93
|
+
addSchemaDiffCheck: () => void;
|
|
94
|
+
cancel: () => void;
|
|
95
|
+
actionState: ActionState;
|
|
96
|
+
centerNode: (nodeId: string) => void;
|
|
97
|
+
showColumnLevelLineage: (cll?: CllInput) => Promise<void>;
|
|
98
|
+
resetColumnLevelLineage: (previous?: boolean) => Promise<void>;
|
|
99
|
+
}
|
|
100
|
+
declare const LineageViewContext: React__default.Context<LineageViewContextType>;
|
|
101
|
+
declare const useLineageViewContext: () => LineageViewContextType | undefined;
|
|
102
|
+
|
|
103
|
+
export { LineageViewContext as L, type LineageGraphNode as a, type LineageGraphEdge as b, type LineageGraphColumnNode as c, type LineageGraph as d, useLineageViewContext as u };
|
package/dist/api.d.mts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { C as Check } from './lineagecheck-BIlm5vq1.mjs';
|
|
4
|
+
export { A as CatalogMetadata, t as CllInput, v as CllNodeData, w as ColumnLineageData, j as CreateCheckBody, ab as HistogramDiffParams, ad as HistogramDiffResult, ac as HistogramResult, I as ImpactRadiusParams, L as LineageData, B as LineageDataFromMetadata, D as LineageDiffData, G as LineageDiffResult, Y as LineageDiffViewOptions, M as ManifestMetadata, W as ModelInfoResult, N as NodeColumnData, y as NodeData, a4 as ProfileDiffParams, a5 as ProfileDiffResult, a6 as ProfileDiffViewOptions, e as QueryDiffParams, f as QueryDiffResult, g as QueryDiffViewOptions, Q as QueryParams, a as QueryPreviewChangeParams, d as QueryResult, a0 as QueryRowCountResult, b as QueryRunParams, c as QueryViewOptions, _ as RowCount, $ as RowCountDiff, ag as RowCountDiffParams, ah as RowCountDiffResult, ae as RowCountParams, af as RowCountResult, as as RunsAggregated, z as SQLMeshInfo, T as ServerInfoResult, ak as SubmitOptions, aj as SubmitRunTrackProps, a8 as TopKDiffParams, aa as TopKDiffResult, a9 as TopKResult, ay as ValueDiffDetailParams, ax as ValueDiffDetailResult, az as ValueDiffDetailViewOptions, av as ValueDiffParams, au as ValueDiffResult, at as aggregateRuns, ao as cancelRun, l as createCheckByRun, Z as createLineageDiffCheck, k as createSimpleCheck, p as deleteCheck, a1 as fetchModelRowCount, n as getCheck, x as getCll, E as getLineage, H as getLineageDiff, F as getLineageWithError, X as getModelInfo, am as getRun, U as getServerInfo, K as gitInfo, m as listChecks, ar as listRuns, q as markAsPresetCheck, O as pullRequestInfo, a2 as queryModelRowCount, a3 as queryRowCount, r as reorderChecks, aq as searchRuns, J as stateMetadata, a7 as submitProfileDiff, s as submitQuery, h as submitQueryBase, i as submitQueryDiff, ai as submitRowCountDiff, al as submitRun, ap as submitRunFromCheck, aw as submitValueDiff, aA as submitValueDiffDetail, o as updateCheck, u as useChecks, an as waitRun } from './lineagecheck-BIlm5vq1.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'react-icons';
|
|
7
|
+
import 'react/jsx-runtime';
|
|
8
|
+
import 'ag-grid-community';
|
|
9
|
+
import 'ag-grid-react';
|
|
10
|
+
|
|
11
|
+
declare const axiosClient: axios.AxiosInstance;
|
|
12
|
+
declare const reactQueryClient: QueryClient;
|
|
13
|
+
|
|
14
|
+
interface ConnectToCloud {
|
|
15
|
+
connection_url: string;
|
|
16
|
+
}
|
|
17
|
+
declare function connectToCloud(): Promise<ConnectToCloud>;
|
|
18
|
+
|
|
19
|
+
interface RecceServerFlags {
|
|
20
|
+
single_env_onboarding: boolean;
|
|
21
|
+
show_relaunch_hint: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare function getServerFlag(): Promise<RecceServerFlags>;
|
|
24
|
+
declare function markOnboardingCompleted(): Promise<void>;
|
|
25
|
+
declare function markRelaunchHintCompleted(): Promise<void>;
|
|
26
|
+
|
|
27
|
+
interface SchemaDiffViewParams {
|
|
28
|
+
node_id?: string | string[];
|
|
29
|
+
select?: string;
|
|
30
|
+
exclude?: string;
|
|
31
|
+
view_mode?: "all" | "changed_models";
|
|
32
|
+
packages?: string[];
|
|
33
|
+
}
|
|
34
|
+
declare function createSchemaDiffCheck(params: SchemaDiffViewParams): Promise<Check>;
|
|
35
|
+
|
|
36
|
+
interface SelectInput {
|
|
37
|
+
select?: string;
|
|
38
|
+
exclude?: string;
|
|
39
|
+
packages?: string[];
|
|
40
|
+
view_mode?: "all" | "changed_models";
|
|
41
|
+
}
|
|
42
|
+
interface SelectOutput {
|
|
43
|
+
nodes: string[];
|
|
44
|
+
}
|
|
45
|
+
declare function select(input: SelectInput): Promise<SelectOutput>;
|
|
46
|
+
|
|
47
|
+
interface SaveAsInput {
|
|
48
|
+
filename: string;
|
|
49
|
+
overwrite?: boolean;
|
|
50
|
+
}
|
|
51
|
+
interface ImportedState {
|
|
52
|
+
runs: number;
|
|
53
|
+
checks: number;
|
|
54
|
+
}
|
|
55
|
+
declare function saveAs(input: SaveAsInput): Promise<void>;
|
|
56
|
+
declare function rename(input: SaveAsInput): Promise<void>;
|
|
57
|
+
declare function exportState(): Promise<string>;
|
|
58
|
+
declare function importState(file: File, checksOnly?: boolean): Promise<ImportedState>;
|
|
59
|
+
declare function isStateSyncing(): Promise<boolean>;
|
|
60
|
+
interface SyncStateInput {
|
|
61
|
+
method?: "overwrite" | "revert" | "merge";
|
|
62
|
+
}
|
|
63
|
+
interface SyncStateResponse {
|
|
64
|
+
status: "accepted" | "conflict" | "syncing";
|
|
65
|
+
}
|
|
66
|
+
declare function syncState(input: SyncStateInput): Promise<SyncStateResponse>;
|
|
67
|
+
interface ShareStateResponse {
|
|
68
|
+
status: string;
|
|
69
|
+
message: string;
|
|
70
|
+
share_url?: string;
|
|
71
|
+
}
|
|
72
|
+
declare function shareState(): Promise<ShareStateResponse>;
|
|
73
|
+
|
|
74
|
+
interface User {
|
|
75
|
+
id: string;
|
|
76
|
+
login: string;
|
|
77
|
+
login_type: string;
|
|
78
|
+
email: string;
|
|
79
|
+
onboarding_state: string;
|
|
80
|
+
}
|
|
81
|
+
declare function fetchUser(): Promise<User>;
|
|
82
|
+
declare function fetchGitHubAvatar(userId: string): Promise<string | null>;
|
|
83
|
+
|
|
84
|
+
declare function useVersionNumber(): {
|
|
85
|
+
version: string;
|
|
86
|
+
latestVersion: string;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
declare const localStorageKeys: {
|
|
90
|
+
bypassSaveOverwrite: string;
|
|
91
|
+
previewChangeFeedbackID: string;
|
|
92
|
+
prepareEnvGuideID: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
declare const sessionStorageKeys: {
|
|
96
|
+
recommendationIgnored: string;
|
|
97
|
+
recommendationShowed: string;
|
|
98
|
+
prevRefreshTimeStamp: string;
|
|
99
|
+
lineageNotificationDismissed: string;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export { Check, type ConnectToCloud, type ImportedState, type RecceServerFlags, type SaveAsInput, type SchemaDiffViewParams, type SelectInput, type SelectOutput, type ShareStateResponse, type SyncStateInput, type SyncStateResponse, type User, axiosClient, connectToCloud, createSchemaDiffCheck, exportState, fetchGitHubAvatar, fetchUser, getServerFlag, importState, isStateSyncing, localStorageKeys, markOnboardingCompleted, markRelaunchHintCompleted, reactQueryClient, rename, saveAs, select, sessionStorageKeys, shareState, syncState, useVersionNumber };
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { C as Check } from './lineagecheck-BIlm5vq1.js';
|
|
4
|
+
export { A as CatalogMetadata, t as CllInput, v as CllNodeData, w as ColumnLineageData, j as CreateCheckBody, ab as HistogramDiffParams, ad as HistogramDiffResult, ac as HistogramResult, I as ImpactRadiusParams, L as LineageData, B as LineageDataFromMetadata, D as LineageDiffData, G as LineageDiffResult, Y as LineageDiffViewOptions, M as ManifestMetadata, W as ModelInfoResult, N as NodeColumnData, y as NodeData, a4 as ProfileDiffParams, a5 as ProfileDiffResult, a6 as ProfileDiffViewOptions, e as QueryDiffParams, f as QueryDiffResult, g as QueryDiffViewOptions, Q as QueryParams, a as QueryPreviewChangeParams, d as QueryResult, a0 as QueryRowCountResult, b as QueryRunParams, c as QueryViewOptions, _ as RowCount, $ as RowCountDiff, ag as RowCountDiffParams, ah as RowCountDiffResult, ae as RowCountParams, af as RowCountResult, as as RunsAggregated, z as SQLMeshInfo, T as ServerInfoResult, ak as SubmitOptions, aj as SubmitRunTrackProps, a8 as TopKDiffParams, aa as TopKDiffResult, a9 as TopKResult, ay as ValueDiffDetailParams, ax as ValueDiffDetailResult, az as ValueDiffDetailViewOptions, av as ValueDiffParams, au as ValueDiffResult, at as aggregateRuns, ao as cancelRun, l as createCheckByRun, Z as createLineageDiffCheck, k as createSimpleCheck, p as deleteCheck, a1 as fetchModelRowCount, n as getCheck, x as getCll, E as getLineage, H as getLineageDiff, F as getLineageWithError, X as getModelInfo, am as getRun, U as getServerInfo, K as gitInfo, m as listChecks, ar as listRuns, q as markAsPresetCheck, O as pullRequestInfo, a2 as queryModelRowCount, a3 as queryRowCount, r as reorderChecks, aq as searchRuns, J as stateMetadata, a7 as submitProfileDiff, s as submitQuery, h as submitQueryBase, i as submitQueryDiff, ai as submitRowCountDiff, al as submitRun, ap as submitRunFromCheck, aw as submitValueDiff, aA as submitValueDiffDetail, o as updateCheck, u as useChecks, an as waitRun } from './lineagecheck-BIlm5vq1.js';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'react-icons';
|
|
7
|
+
import 'react/jsx-runtime';
|
|
8
|
+
import 'ag-grid-community';
|
|
9
|
+
import 'ag-grid-react';
|
|
10
|
+
|
|
11
|
+
declare const axiosClient: axios.AxiosInstance;
|
|
12
|
+
declare const reactQueryClient: QueryClient;
|
|
13
|
+
|
|
14
|
+
interface ConnectToCloud {
|
|
15
|
+
connection_url: string;
|
|
16
|
+
}
|
|
17
|
+
declare function connectToCloud(): Promise<ConnectToCloud>;
|
|
18
|
+
|
|
19
|
+
interface RecceServerFlags {
|
|
20
|
+
single_env_onboarding: boolean;
|
|
21
|
+
show_relaunch_hint: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare function getServerFlag(): Promise<RecceServerFlags>;
|
|
24
|
+
declare function markOnboardingCompleted(): Promise<void>;
|
|
25
|
+
declare function markRelaunchHintCompleted(): Promise<void>;
|
|
26
|
+
|
|
27
|
+
interface SchemaDiffViewParams {
|
|
28
|
+
node_id?: string | string[];
|
|
29
|
+
select?: string;
|
|
30
|
+
exclude?: string;
|
|
31
|
+
view_mode?: "all" | "changed_models";
|
|
32
|
+
packages?: string[];
|
|
33
|
+
}
|
|
34
|
+
declare function createSchemaDiffCheck(params: SchemaDiffViewParams): Promise<Check>;
|
|
35
|
+
|
|
36
|
+
interface SelectInput {
|
|
37
|
+
select?: string;
|
|
38
|
+
exclude?: string;
|
|
39
|
+
packages?: string[];
|
|
40
|
+
view_mode?: "all" | "changed_models";
|
|
41
|
+
}
|
|
42
|
+
interface SelectOutput {
|
|
43
|
+
nodes: string[];
|
|
44
|
+
}
|
|
45
|
+
declare function select(input: SelectInput): Promise<SelectOutput>;
|
|
46
|
+
|
|
47
|
+
interface SaveAsInput {
|
|
48
|
+
filename: string;
|
|
49
|
+
overwrite?: boolean;
|
|
50
|
+
}
|
|
51
|
+
interface ImportedState {
|
|
52
|
+
runs: number;
|
|
53
|
+
checks: number;
|
|
54
|
+
}
|
|
55
|
+
declare function saveAs(input: SaveAsInput): Promise<void>;
|
|
56
|
+
declare function rename(input: SaveAsInput): Promise<void>;
|
|
57
|
+
declare function exportState(): Promise<string>;
|
|
58
|
+
declare function importState(file: File, checksOnly?: boolean): Promise<ImportedState>;
|
|
59
|
+
declare function isStateSyncing(): Promise<boolean>;
|
|
60
|
+
interface SyncStateInput {
|
|
61
|
+
method?: "overwrite" | "revert" | "merge";
|
|
62
|
+
}
|
|
63
|
+
interface SyncStateResponse {
|
|
64
|
+
status: "accepted" | "conflict" | "syncing";
|
|
65
|
+
}
|
|
66
|
+
declare function syncState(input: SyncStateInput): Promise<SyncStateResponse>;
|
|
67
|
+
interface ShareStateResponse {
|
|
68
|
+
status: string;
|
|
69
|
+
message: string;
|
|
70
|
+
share_url?: string;
|
|
71
|
+
}
|
|
72
|
+
declare function shareState(): Promise<ShareStateResponse>;
|
|
73
|
+
|
|
74
|
+
interface User {
|
|
75
|
+
id: string;
|
|
76
|
+
login: string;
|
|
77
|
+
login_type: string;
|
|
78
|
+
email: string;
|
|
79
|
+
onboarding_state: string;
|
|
80
|
+
}
|
|
81
|
+
declare function fetchUser(): Promise<User>;
|
|
82
|
+
declare function fetchGitHubAvatar(userId: string): Promise<string | null>;
|
|
83
|
+
|
|
84
|
+
declare function useVersionNumber(): {
|
|
85
|
+
version: string;
|
|
86
|
+
latestVersion: string;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
declare const localStorageKeys: {
|
|
90
|
+
bypassSaveOverwrite: string;
|
|
91
|
+
previewChangeFeedbackID: string;
|
|
92
|
+
prepareEnvGuideID: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
declare const sessionStorageKeys: {
|
|
96
|
+
recommendationIgnored: string;
|
|
97
|
+
recommendationShowed: string;
|
|
98
|
+
prevRefreshTimeStamp: string;
|
|
99
|
+
lineageNotificationDismissed: string;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export { Check, type ConnectToCloud, type ImportedState, type RecceServerFlags, type SaveAsInput, type SchemaDiffViewParams, type SelectInput, type SelectOutput, type ShareStateResponse, type SyncStateInput, type SyncStateResponse, type User, axiosClient, connectToCloud, createSchemaDiffCheck, exportState, fetchGitHubAvatar, fetchUser, getServerFlag, importState, isStateSyncing, localStorageKeys, markOnboardingCompleted, markRelaunchHintCompleted, reactQueryClient, rename, saveAs, select, sessionStorageKeys, shareState, syncState, useVersionNumber };
|