@datarecce/ui 0.1.21 → 0.1.23
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/RecceCheckContext-DIQjrvH8.mjs +228 -0
- package/dist/RecceCheckContext-DIQjrvH8.mjs.map +1 -0
- package/dist/RecceCheckContext-_xzNlnbJ.js +302 -0
- package/dist/RecceCheckContext-_xzNlnbJ.js.map +1 -0
- package/dist/api.d.mts +2 -102
- package/dist/api.d.ts +2 -102
- package/dist/api.js +59 -497
- package/dist/api.mjs +5 -437
- package/dist/components-CfY72Lq2.mjs +11686 -0
- package/dist/components-CfY72Lq2.mjs.map +1 -0
- package/dist/{styles-JV3V5MVO.css → components-D2DRqJsz.css} +28 -0
- package/dist/components-D2DRqJsz.css.map +1 -0
- package/dist/components-DXbVq9Cw.js +14038 -0
- package/dist/components-DXbVq9Cw.js.map +1 -0
- package/dist/components-dVXbmdqd.css +70 -0
- package/dist/components-dVXbmdqd.css.map +1 -0
- package/dist/components.d.mts +2 -471
- package/dist/components.d.ts +2 -471
- package/dist/components.js +85 -27392
- package/dist/components.mjs +8 -27250
- package/dist/hooks-C4jkoryM.js +40 -0
- package/dist/hooks-C4jkoryM.js.map +1 -0
- package/dist/hooks-C8pyX9m_.mjs +34 -0
- package/dist/hooks-C8pyX9m_.mjs.map +1 -0
- package/dist/hooks.d.mts +2 -296
- package/dist/hooks.d.ts +2 -296
- package/dist/hooks.js +33 -7583
- package/dist/hooks.mjs +6 -7521
- package/dist/html2canvas-pro.esm-BR5xeFe-.mjs +7249 -0
- package/dist/html2canvas-pro.esm-BR5xeFe-.mjs.map +1 -0
- package/dist/html2canvas-pro.esm-CVOsBdk0.js +7250 -0
- package/dist/html2canvas-pro.esm-CVOsBdk0.js.map +1 -0
- package/dist/index-CVPmrztP.d.ts +1825 -0
- package/dist/index-CVPmrztP.d.ts.map +1 -0
- package/dist/index-DIHuswfP.d.mts +1827 -0
- package/dist/index-DIHuswfP.d.mts.map +1 -0
- package/dist/index.d.mts +2 -29
- package/dist/index.d.ts +2 -29
- package/dist/index.js +177 -28784
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -28555
- package/dist/index.mjs.map +1 -1
- package/dist/state-AeoqV9ja.js +9176 -0
- package/dist/state-AeoqV9ja.js.map +1 -0
- package/dist/state-BbgVwFV2.mjs +8204 -0
- package/dist/state-BbgVwFV2.mjs.map +1 -0
- package/dist/{style-466WWZLM.css → state-IA7HWYOs.css} +81 -0
- package/dist/state-IA7HWYOs.css.map +1 -0
- package/dist/state-eEsMhIy4.css +215 -0
- package/dist/state-eEsMhIy4.css.map +1 -0
- package/dist/tooltipMessage-CrXjOmVM.mjs +7 -0
- package/dist/tooltipMessage-CrXjOmVM.mjs.map +1 -0
- package/dist/tooltipMessage-Dbi1kkfi.js +13 -0
- package/dist/tooltipMessage-Dbi1kkfi.js.map +1 -0
- package/dist/types.d.mts +2 -32
- package/dist/types.d.ts +2 -32
- package/dist/types.js +8 -24
- package/dist/types.mjs +4 -18
- package/dist/urls-D7PrPolY.mjs +16 -0
- package/dist/urls-D7PrPolY.mjs.map +1 -0
- package/dist/urls-SazAekCZ.js +34 -0
- package/dist/urls-SazAekCZ.js.map +1 -0
- package/dist/version-C2NU3xyx.mjs +89 -0
- package/dist/version-C2NU3xyx.mjs.map +1 -0
- package/dist/version-MxW9vrDY.js +137 -0
- package/dist/version-MxW9vrDY.js.map +1 -0
- package/package.json +7 -7
- package/dist/LineageViewContext-DEa54ZNF.d.mts +0 -103
- package/dist/LineageViewContext-DPVC8ak8.d.ts +0 -103
- package/dist/agGridStyles-VYALGSJU.css +0 -55
- package/dist/api.js.map +0 -1
- package/dist/api.mjs.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/components.mjs.map +0 -1
- package/dist/hooks.js.map +0 -1
- package/dist/hooks.mjs.map +0 -1
- package/dist/lineagecheck-BQaKAQzn.d.mts +0 -597
- package/dist/lineagecheck-BQaKAQzn.d.ts +0 -597
- package/dist/styles-QUPOR3LM.css +0 -24
- package/dist/styles-TU5BYTIL.css +0 -21
- package/dist/types.js.map +0 -1
- package/dist/types.mjs.map +0 -1
|
@@ -0,0 +1,1825 @@
|
|
|
1
|
+
|
|
2
|
+
import * as axios0 from "axios";
|
|
3
|
+
import { AxiosInstance, AxiosResponse } from "axios";
|
|
4
|
+
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
5
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
6
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
|
+
import * as React$2 from "react";
|
|
8
|
+
import React$1, { CSSProperties, ComponentType, Dispatch, ForwardRefExoticComponent, ReactNode, Ref, RefAttributes, SetStateAction } from "react";
|
|
9
|
+
import { FallbackRender } from "@sentry/react";
|
|
10
|
+
import { SplitProps } from "react-split";
|
|
11
|
+
import { BoxProps } from "@mui/material/Box";
|
|
12
|
+
import { Edge, EdgeProps, Node, NodeProps } from "@xyflow/react";
|
|
13
|
+
import { IconType } from "react-icons";
|
|
14
|
+
import { ColDef, ColGroupDef, GridReadyEvent } from "ag-grid-community";
|
|
15
|
+
import { AgGridReactProps } from "ag-grid-react";
|
|
16
|
+
import { AnimationOptions } from "chart.js";
|
|
17
|
+
|
|
18
|
+
//#region recce-source/js/src/lib/api/axiosClient.d.ts
|
|
19
|
+
declare const axiosClient: axios0.AxiosInstance;
|
|
20
|
+
declare const reactQueryClient: QueryClient;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region recce-source/js/src/components/ui/mui-provider.d.ts
|
|
23
|
+
interface MuiProviderProps {
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Force a specific theme mode. If not provided, follows system/user preference.
|
|
27
|
+
*/
|
|
28
|
+
forcedTheme?: "light" | "dark";
|
|
29
|
+
/**
|
|
30
|
+
* Whether to include MUI's CssBaseline for consistent baseline styles.
|
|
31
|
+
* Disabled by default to avoid conflicts with Chakra/Tailwind during migration.
|
|
32
|
+
*/
|
|
33
|
+
enableCssBaseline?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* MUI Theme Provider for Recce
|
|
37
|
+
*
|
|
38
|
+
* This provider integrates MUI theming with the existing next-themes
|
|
39
|
+
* color mode system used by Chakra UI. During the migration period,
|
|
40
|
+
* both Chakra and MUI components will share the same theme mode.
|
|
41
|
+
*
|
|
42
|
+
* Usage:
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <MuiProvider>
|
|
45
|
+
* <MuiButton>Click me</MuiButton>
|
|
46
|
+
* </MuiProvider>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
declare function MuiProvider({
|
|
50
|
+
children,
|
|
51
|
+
forcedTheme,
|
|
52
|
+
enableCssBaseline
|
|
53
|
+
}: MuiProviderProps): react_jsx_runtime0.JSX.Element;
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region recce-source/js/src/components/ui/toaster.d.ts
|
|
56
|
+
/**
|
|
57
|
+
* Toast types and interfaces
|
|
58
|
+
*/
|
|
59
|
+
interface ToastOptions {
|
|
60
|
+
id?: string;
|
|
61
|
+
title?: string;
|
|
62
|
+
description?: ReactNode;
|
|
63
|
+
type?: "success" | "error" | "warning" | "info" | "loading";
|
|
64
|
+
duration?: number;
|
|
65
|
+
closable?: boolean;
|
|
66
|
+
action?: {
|
|
67
|
+
label: string;
|
|
68
|
+
onClick: () => void;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
interface ToasterContextValue {
|
|
72
|
+
toast: (options: ToastOptions) => string;
|
|
73
|
+
success: (options: Omit<ToastOptions, "type">) => string;
|
|
74
|
+
error: (options: Omit<ToastOptions, "type">) => string;
|
|
75
|
+
warning: (options: Omit<ToastOptions, "type">) => string;
|
|
76
|
+
info: (options: Omit<ToastOptions, "type">) => string;
|
|
77
|
+
loading: (options: Omit<ToastOptions, "type">) => string;
|
|
78
|
+
dismiss: (id: string) => void;
|
|
79
|
+
update: (id: string, options: Partial<ToastOptions>) => void;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Simple toaster implementation using MUI Snackbar
|
|
83
|
+
*/
|
|
84
|
+
declare function ToasterProvider({
|
|
85
|
+
children
|
|
86
|
+
}: {
|
|
87
|
+
children: ReactNode;
|
|
88
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
89
|
+
/**
|
|
90
|
+
* Hook to use the toaster
|
|
91
|
+
*/
|
|
92
|
+
declare function useToaster(): ToasterContextValue;
|
|
93
|
+
/**
|
|
94
|
+
* Toaster component that renders toasts from the standalone toaster
|
|
95
|
+
*/
|
|
96
|
+
declare function Toaster(): react_jsx_runtime0.JSX.Element;
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region recce-source/js/src/components/errorboundary/ErrorBoundary.d.ts
|
|
99
|
+
declare const ErrorBoundary: ({
|
|
100
|
+
children,
|
|
101
|
+
fallback
|
|
102
|
+
}: {
|
|
103
|
+
children: ReactNode;
|
|
104
|
+
fallback?: React$2.ReactElement | FallbackRender | undefined;
|
|
105
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region recce-source/js/src/components/split/Split.d.ts
|
|
108
|
+
declare const HSplit: (props: SplitProps) => react_jsx_runtime0.JSX.Element;
|
|
109
|
+
declare const VSplit: (props: SplitProps) => react_jsx_runtime0.JSX.Element;
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region recce-source/js/src/components/screenshot/ScreenshotBox.d.ts
|
|
112
|
+
interface ScreenshotBoxProps extends BoxProps {
|
|
113
|
+
backgroundColor?: string;
|
|
114
|
+
blockSize?: string;
|
|
115
|
+
children?: React.ReactNode;
|
|
116
|
+
}
|
|
117
|
+
declare const ScreenshotBox: React$2.ForwardRefExoticComponent<Omit<ScreenshotBoxProps, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region recce-source/js/src/components/lineage/LineagePage.d.ts
|
|
120
|
+
declare function LineagePage(): react_jsx_runtime0.JSX.Element;
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region recce-source/js/src/lib/api/info.d.ts
|
|
123
|
+
/**
|
|
124
|
+
* The data from the API
|
|
125
|
+
*/
|
|
126
|
+
interface NodeColumnData {
|
|
127
|
+
name: string;
|
|
128
|
+
type: string;
|
|
129
|
+
transformation_type?: string;
|
|
130
|
+
change_status?: "added" | "removed" | "modified";
|
|
131
|
+
not_null?: boolean;
|
|
132
|
+
unique?: boolean;
|
|
133
|
+
}
|
|
134
|
+
interface NodeData {
|
|
135
|
+
id: string;
|
|
136
|
+
unique_id: string;
|
|
137
|
+
name: string;
|
|
138
|
+
schema?: string;
|
|
139
|
+
checksum?: {
|
|
140
|
+
name: string;
|
|
141
|
+
checksum: string;
|
|
142
|
+
};
|
|
143
|
+
raw_code?: string;
|
|
144
|
+
resource_type?: string;
|
|
145
|
+
package_name?: string;
|
|
146
|
+
columns?: Record<string, NodeColumnData | undefined>;
|
|
147
|
+
primary_key?: string;
|
|
148
|
+
}
|
|
149
|
+
interface ArtifactMetadata {
|
|
150
|
+
dbt_version: string;
|
|
151
|
+
dbt_schema_version: string;
|
|
152
|
+
generated_at: string;
|
|
153
|
+
adapter_type: string;
|
|
154
|
+
env: Record<string, string>;
|
|
155
|
+
invocation_id: string;
|
|
156
|
+
}
|
|
157
|
+
interface ManifestMetadata extends ArtifactMetadata {
|
|
158
|
+
project_id?: string;
|
|
159
|
+
project_name?: string;
|
|
160
|
+
user_id?: string;
|
|
161
|
+
}
|
|
162
|
+
interface SQLMeshInfo {
|
|
163
|
+
base_env: string;
|
|
164
|
+
current_env: string;
|
|
165
|
+
}
|
|
166
|
+
type CatalogMetadata = ArtifactMetadata;
|
|
167
|
+
interface LineageData {
|
|
168
|
+
metadata: {
|
|
169
|
+
pr_url: string;
|
|
170
|
+
git_branch?: string;
|
|
171
|
+
};
|
|
172
|
+
nodes: Record<string, NodeData>;
|
|
173
|
+
parent_map: Record<string, string[]>;
|
|
174
|
+
manifest_metadata?: ManifestMetadata | null;
|
|
175
|
+
catalog_metadata?: CatalogMetadata | null;
|
|
176
|
+
}
|
|
177
|
+
interface LineageDataFromMetadata extends Omit<LineageData, "nodes"> {
|
|
178
|
+
nodes: Record<string, NodeData | undefined>;
|
|
179
|
+
}
|
|
180
|
+
type LineageDiffData = Record<string, {
|
|
181
|
+
change_status: "added" | "removed" | "modified";
|
|
182
|
+
change: {
|
|
183
|
+
category: "breaking" | "non_breaking" | "partial_breaking" | "unknown";
|
|
184
|
+
columns: Record<string, "added" | "removed" | "modified"> | null;
|
|
185
|
+
} | null;
|
|
186
|
+
}>;
|
|
187
|
+
interface LineageOutput {
|
|
188
|
+
error?: string;
|
|
189
|
+
data?: LineageData;
|
|
190
|
+
}
|
|
191
|
+
declare function getLineage(base?: boolean): Promise<LineageData>;
|
|
192
|
+
declare function getLineageWithError(base?: boolean): Promise<LineageOutput>;
|
|
193
|
+
interface LineageDiffResult {
|
|
194
|
+
base?: LineageData;
|
|
195
|
+
current?: LineageData;
|
|
196
|
+
base_error?: string;
|
|
197
|
+
current_error?: string;
|
|
198
|
+
}
|
|
199
|
+
declare function getLineageDiff(): Promise<LineageDiffResult>;
|
|
200
|
+
interface stateMetadata {
|
|
201
|
+
schema_version: string;
|
|
202
|
+
recce_version: string;
|
|
203
|
+
generated_at: string;
|
|
204
|
+
}
|
|
205
|
+
interface gitInfo {
|
|
206
|
+
branch?: string;
|
|
207
|
+
}
|
|
208
|
+
interface pullRequestInfo {
|
|
209
|
+
id?: string | number;
|
|
210
|
+
title?: string;
|
|
211
|
+
url?: string;
|
|
212
|
+
branch?: string;
|
|
213
|
+
base_branch?: string;
|
|
214
|
+
}
|
|
215
|
+
interface ServerInfoResult {
|
|
216
|
+
state_metadata: stateMetadata;
|
|
217
|
+
adapter_type: string;
|
|
218
|
+
review_mode: boolean;
|
|
219
|
+
cloud_mode: boolean;
|
|
220
|
+
file_mode: boolean;
|
|
221
|
+
filename?: string;
|
|
222
|
+
git?: gitInfo;
|
|
223
|
+
pull_request?: pullRequestInfo;
|
|
224
|
+
sqlmesh?: SQLMeshInfo;
|
|
225
|
+
lineage: {
|
|
226
|
+
base: LineageData;
|
|
227
|
+
current: LineageData;
|
|
228
|
+
diff: LineageDiffData;
|
|
229
|
+
};
|
|
230
|
+
demo: boolean;
|
|
231
|
+
codespace: boolean;
|
|
232
|
+
support_tasks: Record<string, boolean>;
|
|
233
|
+
}
|
|
234
|
+
declare function getServerInfo(client?: AxiosInstance): Promise<ServerInfoResult>;
|
|
235
|
+
interface ModelInfoResult {
|
|
236
|
+
model: {
|
|
237
|
+
base: {
|
|
238
|
+
columns?: Record<string, NodeColumnData>;
|
|
239
|
+
primary_key?: string;
|
|
240
|
+
};
|
|
241
|
+
current: {
|
|
242
|
+
columns?: Record<string, NodeColumnData>;
|
|
243
|
+
primary_key?: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
declare function getModelInfo(model: string): Promise<ModelInfoResult>;
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region recce-source/js/src/lib/api/cll.d.ts
|
|
250
|
+
interface CllInput {
|
|
251
|
+
node_id?: string;
|
|
252
|
+
column?: string;
|
|
253
|
+
change_analysis?: boolean;
|
|
254
|
+
no_cll?: boolean;
|
|
255
|
+
no_upstream?: boolean;
|
|
256
|
+
no_downstream?: boolean;
|
|
257
|
+
}
|
|
258
|
+
interface ImpactRadiusParams {
|
|
259
|
+
node_id: string;
|
|
260
|
+
}
|
|
261
|
+
interface CllNodeData {
|
|
262
|
+
id: string;
|
|
263
|
+
name: string;
|
|
264
|
+
source_name: string;
|
|
265
|
+
resource_type: string;
|
|
266
|
+
raw_code?: string;
|
|
267
|
+
change_status?: "added" | "removed" | "modified";
|
|
268
|
+
change_category?: "breaking" | "non_breaking" | "partial_breaking" | "unknown";
|
|
269
|
+
impacted?: boolean;
|
|
270
|
+
columns?: Record<string, NodeColumnData>;
|
|
271
|
+
}
|
|
272
|
+
interface ColumnLineageData {
|
|
273
|
+
current: {
|
|
274
|
+
nodes: Record<string, CllNodeData>;
|
|
275
|
+
columns: Record<string, NodeColumnData>;
|
|
276
|
+
parent_map: Record<string, Set<string>>;
|
|
277
|
+
child_map: Record<string, Set<string>>;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
declare function getCll(input: CllInput): Promise<ColumnLineageData>;
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region recce-source/js/src/components/lineage/lineage.d.ts
|
|
283
|
+
/**
|
|
284
|
+
* The types for internal data structures.
|
|
285
|
+
*/
|
|
286
|
+
type LineageFrom = "both" | "base" | "current";
|
|
287
|
+
type LineageGraphNode = Node<{
|
|
288
|
+
id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
from: LineageFrom;
|
|
291
|
+
data: {
|
|
292
|
+
base?: NodeData;
|
|
293
|
+
current?: NodeData;
|
|
294
|
+
};
|
|
295
|
+
changeStatus?: "added" | "removed" | "modified";
|
|
296
|
+
change?: {
|
|
297
|
+
category: "breaking" | "non_breaking" | "partial_breaking" | "unknown";
|
|
298
|
+
columns: Record<string, "added" | "removed" | "modified"> | null;
|
|
299
|
+
};
|
|
300
|
+
resourceType?: string;
|
|
301
|
+
packageName?: string;
|
|
302
|
+
parents: Record<string, LineageGraphEdge>;
|
|
303
|
+
children: Record<string, LineageGraphEdge>;
|
|
304
|
+
}, "lineageGraphNode">;
|
|
305
|
+
type LineageGraphColumnNode = Node<{
|
|
306
|
+
node: LineageGraphNode["data"];
|
|
307
|
+
column: string;
|
|
308
|
+
type: string;
|
|
309
|
+
transformationType?: string;
|
|
310
|
+
changeStatus?: "added" | "removed" | "modified";
|
|
311
|
+
}, "lineageGraphColumnNode">;
|
|
312
|
+
type LineageGraphEdge = Edge<{
|
|
313
|
+
from: LineageFrom;
|
|
314
|
+
changeStatus?: "added" | "removed";
|
|
315
|
+
}, "lineageGraphEdge">;
|
|
316
|
+
type LineageGraphNodes = LineageGraphNode | LineageGraphColumnNode;
|
|
317
|
+
interface LineageGraph {
|
|
318
|
+
nodes: Record<string, LineageGraphNode>;
|
|
319
|
+
edges: Record<string, LineageGraphEdge>;
|
|
320
|
+
modifiedSet: string[];
|
|
321
|
+
manifestMetadata: {
|
|
322
|
+
base?: ManifestMetadata;
|
|
323
|
+
current?: ManifestMetadata;
|
|
324
|
+
};
|
|
325
|
+
catalogMetadata: {
|
|
326
|
+
base?: CatalogMetadata;
|
|
327
|
+
current?: CatalogMetadata;
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region recce-source/js/src/lib/api/runs.d.ts
|
|
332
|
+
interface SubmitRunTrackProps {
|
|
333
|
+
breaking_change_analysis?: boolean;
|
|
334
|
+
source?: "lineage_model_node" | "lineage_column_node";
|
|
335
|
+
[key: string]: unknown;
|
|
336
|
+
}
|
|
337
|
+
interface SubmitOptions {
|
|
338
|
+
nowait?: boolean;
|
|
339
|
+
trackProps?: SubmitRunTrackProps;
|
|
340
|
+
}
|
|
341
|
+
declare function submitRun(type: RunType, params?: RunParamTypes, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
|
|
342
|
+
declare function getRun(runId: string): Promise<Run>;
|
|
343
|
+
declare function waitRun(runId: string, timeout?: number): Promise<Run>;
|
|
344
|
+
declare function cancelRun(runId: string): Promise<AxiosResponse<never, any, {}>>;
|
|
345
|
+
declare function submitRunFromCheck(checkId: string, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
|
|
346
|
+
declare function searchRuns(type: string, params?: AxiosQueryParams, limit?: number): Promise<Run[]>;
|
|
347
|
+
declare function listRuns(): Promise<Run[]>;
|
|
348
|
+
type RunsAggregated = Record<string, Record<"row_count_diff" | "value_diff" | "row_count", {
|
|
349
|
+
run_id: string;
|
|
350
|
+
result: unknown;
|
|
351
|
+
}>>;
|
|
352
|
+
declare function aggregateRuns(client?: AxiosInstance): Promise<RunsAggregated>;
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region recce-source/js/src/lib/api/profile.d.ts
|
|
355
|
+
interface ProfileDiffParams {
|
|
356
|
+
model: string;
|
|
357
|
+
columns?: string[];
|
|
358
|
+
}
|
|
359
|
+
interface ProfileDiffResult {
|
|
360
|
+
base?: DataFrame;
|
|
361
|
+
current?: DataFrame;
|
|
362
|
+
}
|
|
363
|
+
interface ProfileDiffViewOptions {
|
|
364
|
+
pinned_columns?: string[];
|
|
365
|
+
display_mode?: "side_by_side" | "inline";
|
|
366
|
+
columnsRenderMode?: Record<string, ColumnRenderMode>;
|
|
367
|
+
}
|
|
368
|
+
declare function submitProfileDiff(params: ProfileDiffParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
|
|
369
|
+
interface TopKDiffParams {
|
|
370
|
+
model: string;
|
|
371
|
+
column_name: string;
|
|
372
|
+
k: number;
|
|
373
|
+
}
|
|
374
|
+
interface TopKResult {
|
|
375
|
+
values: (string | number | undefined)[];
|
|
376
|
+
counts: number[];
|
|
377
|
+
valids: number;
|
|
378
|
+
}
|
|
379
|
+
interface TopKDiffResult {
|
|
380
|
+
base: TopKResult;
|
|
381
|
+
current: TopKResult;
|
|
382
|
+
}
|
|
383
|
+
interface HistogramDiffParams {
|
|
384
|
+
model: string;
|
|
385
|
+
column_name: string;
|
|
386
|
+
column_type: string;
|
|
387
|
+
}
|
|
388
|
+
interface HistogramResult {
|
|
389
|
+
counts: number[];
|
|
390
|
+
total: number;
|
|
391
|
+
}
|
|
392
|
+
interface HistogramDiffResult {
|
|
393
|
+
base: HistogramResult;
|
|
394
|
+
current: HistogramResult;
|
|
395
|
+
min: number;
|
|
396
|
+
max: number;
|
|
397
|
+
bin_edges: number[];
|
|
398
|
+
labels?: string[];
|
|
399
|
+
}
|
|
400
|
+
//#endregion
|
|
401
|
+
//#region recce-source/js/src/lib/api/models.d.ts
|
|
402
|
+
interface RowCount {
|
|
403
|
+
name?: string;
|
|
404
|
+
curr: number | null;
|
|
405
|
+
}
|
|
406
|
+
interface RowCountDiff {
|
|
407
|
+
name?: string;
|
|
408
|
+
base: number | null;
|
|
409
|
+
curr: number | null;
|
|
410
|
+
}
|
|
411
|
+
interface QueryRowCountResult {
|
|
412
|
+
runId: string;
|
|
413
|
+
result: RowCountDiffResult;
|
|
414
|
+
}
|
|
415
|
+
declare function fetchModelRowCount(modelName: string): Promise<RowCountDiff>;
|
|
416
|
+
declare function queryModelRowCount(modelName: string): Promise<RowCountDiff>;
|
|
417
|
+
declare function queryRowCount(modelNames: string[]): Promise<QueryRowCountResult>;
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region recce-source/js/src/lib/api/rowcount.d.ts
|
|
420
|
+
interface RowCountParams {
|
|
421
|
+
node_names: string[];
|
|
422
|
+
}
|
|
423
|
+
type RowCountResult = Record<string, RowCount>;
|
|
424
|
+
interface RowCountDiffParams {
|
|
425
|
+
node_names: string[];
|
|
426
|
+
}
|
|
427
|
+
type RowCountDiffResult = Record<string, RowCountDiff>;
|
|
428
|
+
declare function submitRowCountDiff(params: RowCountDiffParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
|
|
429
|
+
//#endregion
|
|
430
|
+
//#region recce-source/js/src/lib/api/valuediff.d.ts
|
|
431
|
+
interface ValueDiffResult {
|
|
432
|
+
summary: {
|
|
433
|
+
total: number;
|
|
434
|
+
added: number;
|
|
435
|
+
removed: number;
|
|
436
|
+
};
|
|
437
|
+
data: DataFrame;
|
|
438
|
+
}
|
|
439
|
+
interface ValueDiffParams {
|
|
440
|
+
model: string;
|
|
441
|
+
primary_key: string | string[];
|
|
442
|
+
columns?: string[];
|
|
443
|
+
}
|
|
444
|
+
declare function submitValueDiff(params: ValueDiffParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
|
|
445
|
+
type ValueDiffDetailResult = DataFrame;
|
|
446
|
+
type ValueDiffDetailParams = ValueDiffParams;
|
|
447
|
+
interface ValueDiffDetailViewOptions {
|
|
448
|
+
changed_only?: boolean;
|
|
449
|
+
pinned_columns?: string[];
|
|
450
|
+
display_mode?: "inline" | "side_by_side";
|
|
451
|
+
columnsRenderMode?: Record<string, ColumnRenderMode>;
|
|
452
|
+
}
|
|
453
|
+
declare function submitValueDiffDetail(params: ValueDiffParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
|
|
454
|
+
//#endregion
|
|
455
|
+
//#region recce-source/js/src/lib/api/types.d.ts
|
|
456
|
+
type AxiosQueryParams = Record<string, string | string[] | number | number[] | undefined>;
|
|
457
|
+
type RowDataTypes = number | string | boolean | null | undefined;
|
|
458
|
+
type RowData = RowDataTypes[];
|
|
459
|
+
type RowObjectType = Record<string, RowDataTypes> & {
|
|
460
|
+
__status: "added" | "removed" | "modified" | undefined;
|
|
461
|
+
_index?: number;
|
|
462
|
+
};
|
|
463
|
+
type ColumnType = "number" | "integer" | "text" | "boolean" | "date" | "datetime" | "timedelta" | "unknown";
|
|
464
|
+
type ColumnRenderMode = "raw" | "percent" | "delta" | 2;
|
|
465
|
+
interface DataFrame {
|
|
466
|
+
columns: {
|
|
467
|
+
key: string;
|
|
468
|
+
name: string;
|
|
469
|
+
type: ColumnType;
|
|
470
|
+
}[];
|
|
471
|
+
data: RowData[];
|
|
472
|
+
limit?: number;
|
|
473
|
+
more?: boolean;
|
|
474
|
+
}
|
|
475
|
+
interface SchemaDiffParams {
|
|
476
|
+
node_id?: string | string[];
|
|
477
|
+
select?: string;
|
|
478
|
+
exclude?: string;
|
|
479
|
+
packages?: string[];
|
|
480
|
+
view_mode?: "all" | "changed_models";
|
|
481
|
+
}
|
|
482
|
+
interface LineageDiffParams {
|
|
483
|
+
select?: string;
|
|
484
|
+
exclude?: string;
|
|
485
|
+
packages?: string[];
|
|
486
|
+
view_mode?: "all" | "changed_models";
|
|
487
|
+
}
|
|
488
|
+
type RunParamTypes = QueryRunParams | QueryDiffParams | ValueDiffParams | SchemaDiffParams | ProfileDiffParams | RowCountParams | RowCountDiffParams | LineageDiffParams | TopKDiffParams | HistogramDiffParams | undefined;
|
|
489
|
+
interface BaseRun {
|
|
490
|
+
type: RunType;
|
|
491
|
+
run_id: string;
|
|
492
|
+
run_at: string;
|
|
493
|
+
name?: string;
|
|
494
|
+
check_id?: string;
|
|
495
|
+
progress?: {
|
|
496
|
+
message?: string;
|
|
497
|
+
percentage?: number;
|
|
498
|
+
};
|
|
499
|
+
error?: string;
|
|
500
|
+
status?: "finished" | "failed" | "cancelled" | "running";
|
|
501
|
+
}
|
|
502
|
+
type Run = (BaseRun & {
|
|
503
|
+
type: "simple";
|
|
504
|
+
params?: undefined;
|
|
505
|
+
result?: undefined;
|
|
506
|
+
}) | (BaseRun & {
|
|
507
|
+
type: "sandbox";
|
|
508
|
+
params?: undefined;
|
|
509
|
+
result?: undefined;
|
|
510
|
+
}) | (BaseRun & {
|
|
511
|
+
type: "query";
|
|
512
|
+
params?: QueryRunParams;
|
|
513
|
+
result?: QueryResult;
|
|
514
|
+
}) | (BaseRun & {
|
|
515
|
+
type: "query_base";
|
|
516
|
+
params?: QueryRunParams;
|
|
517
|
+
result?: QueryResult;
|
|
518
|
+
}) | (BaseRun & {
|
|
519
|
+
type: "query_diff";
|
|
520
|
+
params?: QueryDiffParams;
|
|
521
|
+
result?: QueryDiffResult;
|
|
522
|
+
}) | (BaseRun & {
|
|
523
|
+
type: "value_diff";
|
|
524
|
+
params?: ValueDiffParams;
|
|
525
|
+
result?: ValueDiffResult;
|
|
526
|
+
}) | (BaseRun & {
|
|
527
|
+
type: "value_diff_detail";
|
|
528
|
+
params?: ValueDiffDetailParams;
|
|
529
|
+
result?: ValueDiffDetailResult;
|
|
530
|
+
}) | (BaseRun & {
|
|
531
|
+
type: "schema_diff";
|
|
532
|
+
params?: SchemaDiffParams;
|
|
533
|
+
result?: undefined;
|
|
534
|
+
}) | (BaseRun & {
|
|
535
|
+
type: "profile";
|
|
536
|
+
params?: ProfileDiffParams;
|
|
537
|
+
result?: ProfileDiffResult;
|
|
538
|
+
}) | (BaseRun & {
|
|
539
|
+
type: "profile_diff";
|
|
540
|
+
params?: ProfileDiffParams;
|
|
541
|
+
result?: ProfileDiffResult;
|
|
542
|
+
}) | (BaseRun & {
|
|
543
|
+
type: "row_count";
|
|
544
|
+
params?: RowCountParams;
|
|
545
|
+
result?: RowCountResult;
|
|
546
|
+
}) | (BaseRun & {
|
|
547
|
+
type: "row_count_diff";
|
|
548
|
+
params?: RowCountDiffParams;
|
|
549
|
+
result?: RowCountDiffResult;
|
|
550
|
+
}) | (BaseRun & {
|
|
551
|
+
type: "lineage_diff";
|
|
552
|
+
params?: LineageDiffParams;
|
|
553
|
+
result?: LineageDiffResult;
|
|
554
|
+
}) | (BaseRun & {
|
|
555
|
+
type: "top_k_diff";
|
|
556
|
+
params?: TopKDiffParams;
|
|
557
|
+
result?: TopKDiffResult;
|
|
558
|
+
}) | (BaseRun & {
|
|
559
|
+
type: "histogram_diff";
|
|
560
|
+
params?: HistogramDiffParams;
|
|
561
|
+
result?: HistogramDiffResult;
|
|
562
|
+
});
|
|
563
|
+
declare function isSimpleRun(run: Run): run is Extract<Run, {
|
|
564
|
+
type: "simple";
|
|
565
|
+
}>;
|
|
566
|
+
declare function isQueryRun(run: Run): run is Extract<Run, {
|
|
567
|
+
type: "query";
|
|
568
|
+
}>;
|
|
569
|
+
declare function isQueryBaseRun(run: Run): run is Extract<Run, {
|
|
570
|
+
type: "query_base";
|
|
571
|
+
}>;
|
|
572
|
+
declare function isQueryDiffRun(run: Run): run is Extract<Run, {
|
|
573
|
+
type: "query_diff";
|
|
574
|
+
}>;
|
|
575
|
+
declare function isValueDiffRun(run: Run): run is Extract<Run, {
|
|
576
|
+
type: "value_diff";
|
|
577
|
+
}>;
|
|
578
|
+
declare function isValueDiffDetailRun(run: Run): run is Extract<Run, {
|
|
579
|
+
type: "value_diff_detail";
|
|
580
|
+
}>;
|
|
581
|
+
declare function isSchemaDiffRun(run: Run): run is Extract<Run, {
|
|
582
|
+
type: "schema_diff";
|
|
583
|
+
}>;
|
|
584
|
+
declare function isProfileRun(run: Run): run is Extract<Run, {
|
|
585
|
+
type: "profile";
|
|
586
|
+
}>;
|
|
587
|
+
declare function isProfileDiffRun(run: Run): run is Extract<Run, {
|
|
588
|
+
type: "profile_diff";
|
|
589
|
+
}>;
|
|
590
|
+
declare function isRowCountRun(run: Run): run is Extract<Run, {
|
|
591
|
+
type: "row_count";
|
|
592
|
+
}>;
|
|
593
|
+
declare function isRowCountDiffRun(run: Run): run is Extract<Run, {
|
|
594
|
+
type: "row_count_diff";
|
|
595
|
+
}>;
|
|
596
|
+
declare function isLineageDiffRun(run: Run): run is Extract<Run, {
|
|
597
|
+
type: "lineage_diff";
|
|
598
|
+
}>;
|
|
599
|
+
declare function isTopKDiffRun(run: Run): run is Extract<Run, {
|
|
600
|
+
type: "top_k_diff";
|
|
601
|
+
}>;
|
|
602
|
+
declare function isHistogramDiffRun(run: Run): run is Extract<Run, {
|
|
603
|
+
type: "histogram_diff";
|
|
604
|
+
}>;
|
|
605
|
+
//#endregion
|
|
606
|
+
//#region recce-source/js/src/components/run/types.d.ts
|
|
607
|
+
interface RunFormProps<PT> {
|
|
608
|
+
params: Partial<PT>;
|
|
609
|
+
onParamsChanged: (params: Partial<PT>) => void;
|
|
610
|
+
setIsReadyToExecute: (isReadyToExecute: boolean) => void;
|
|
611
|
+
}
|
|
612
|
+
interface RunResultViewProps<VO = ViewOptionTypes> {
|
|
613
|
+
run: Run;
|
|
614
|
+
viewOptions?: VO;
|
|
615
|
+
onViewOptionsChanged?: (viewOptions: VO) => void;
|
|
616
|
+
}
|
|
617
|
+
//#endregion
|
|
618
|
+
//#region recce-source/js/src/components/run/RunToolbar.d.ts
|
|
619
|
+
interface DiffViewOptions {
|
|
620
|
+
changed_only?: boolean;
|
|
621
|
+
}
|
|
622
|
+
interface RunToolbarProps<VO> extends RunResultViewProps<VO> {
|
|
623
|
+
warnings?: string[];
|
|
624
|
+
children?: ReactNode;
|
|
625
|
+
}
|
|
626
|
+
declare const RunToolbar: ({
|
|
627
|
+
warnings,
|
|
628
|
+
children
|
|
629
|
+
}: RunToolbarProps<DiffViewOptions>) => react_jsx_runtime0.JSX.Element;
|
|
630
|
+
//#endregion
|
|
631
|
+
//#region recce-source/js/src/components/data-grid/ScreenshotDataGrid.d.ts
|
|
632
|
+
/**
|
|
633
|
+
* Handle type for accessing AG Grid API and DOM element (for screenshots)
|
|
634
|
+
*/
|
|
635
|
+
interface DataGridHandle {
|
|
636
|
+
api: GridReadyEvent["api"] | null;
|
|
637
|
+
/** DOM element for screenshot functionality */
|
|
638
|
+
element: HTMLElement | null;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Props for ScreenshotDataGrid component
|
|
642
|
+
*
|
|
643
|
+
* Supports both new AG Grid style props (columnDefs/rowData) and
|
|
644
|
+
* legacy react-data-grid style props (columns/rows) for backward compatibility
|
|
645
|
+
*/
|
|
646
|
+
interface ScreenshotDataGridProps<TData = RowObjectType> extends Omit<AgGridReactProps<TData>, "theme" | "rowClass"> {
|
|
647
|
+
/** Container style */
|
|
648
|
+
style?: CSSProperties;
|
|
649
|
+
/** Additional CSS class for container */
|
|
650
|
+
className?: string;
|
|
651
|
+
/** Empty state renderer (legacy) */
|
|
652
|
+
renderers?: {
|
|
653
|
+
noRowsFallback?: React$1.ReactNode;
|
|
654
|
+
};
|
|
655
|
+
/** Legacy: Column definitions (maps to columnDefs) */
|
|
656
|
+
columns?: (ColDef<TData> | ColGroupDef<TData>)[];
|
|
657
|
+
/** Legacy: Row data (maps to rowData) */
|
|
658
|
+
rows?: TData[];
|
|
659
|
+
/** Legacy: Default column options (maps to defaultColDef) */
|
|
660
|
+
defaultColumnOptions?: ColDef<TData>;
|
|
661
|
+
}
|
|
662
|
+
declare const ScreenshotDataGrid: <TData = RowObjectType>(props: ScreenshotDataGridProps<TData> & {
|
|
663
|
+
ref?: Ref<DataGridHandle>;
|
|
664
|
+
}) => React$1.ReactNode;
|
|
665
|
+
//#endregion
|
|
666
|
+
//#region recce-source/js/src/components/profile/ProfileDiffForm.d.ts
|
|
667
|
+
interface ProfileDiffFormParams {
|
|
668
|
+
model: string;
|
|
669
|
+
primary_key?: string | (string | undefined)[];
|
|
670
|
+
columns?: string[];
|
|
671
|
+
}
|
|
672
|
+
type ProfileDiffFormProp = RunFormProps<ProfileDiffFormParams>;
|
|
673
|
+
declare function ProfileDiffForm({
|
|
674
|
+
params,
|
|
675
|
+
onParamsChanged,
|
|
676
|
+
setIsReadyToExecute
|
|
677
|
+
}: ProfileDiffFormProp): react_jsx_runtime0.JSX.Element;
|
|
678
|
+
//#endregion
|
|
679
|
+
//#region recce-source/js/src/components/valuediff/ValueDiffForm.d.ts
|
|
680
|
+
interface ValueDiffFormParams {
|
|
681
|
+
model: string;
|
|
682
|
+
primary_key?: string | (string | undefined)[];
|
|
683
|
+
columns?: string[];
|
|
684
|
+
}
|
|
685
|
+
type ValueDiffFormProp = RunFormProps<ValueDiffFormParams>;
|
|
686
|
+
declare function ValueDiffForm({
|
|
687
|
+
params,
|
|
688
|
+
onParamsChanged,
|
|
689
|
+
setIsReadyToExecute
|
|
690
|
+
}: ValueDiffFormProp): react_jsx_runtime0.JSX.Element;
|
|
691
|
+
//#endregion
|
|
692
|
+
//#region recce-source/js/src/components/run/registry.d.ts
|
|
693
|
+
type ViewOptionTypes = LineageDiffViewOptions | DiffViewOptions | QueryViewOptions | QueryDiffViewOptions | ProfileDiffViewOptions | ValueDiffDetailViewOptions;
|
|
694
|
+
type RunType = "simple" | "query" | "query_base" | "query_diff" | "value_diff" | "value_diff_detail" | "schema_diff" | "profile" | "profile_diff" | "row_count" | "row_count_diff" | "lineage_diff" | "top_k_diff" | "histogram_diff" | "sandbox";
|
|
695
|
+
type RefTypes = React$1.Ref<DataGridHandle> | React$1.Ref<HTMLDivElement>;
|
|
696
|
+
type RunFormParamTypes = ProfileDiffFormParams | ValueDiffFormParams | TopKDiffParams | HistogramDiffParams | AxiosQueryParams;
|
|
697
|
+
interface RegistryEntry<PT = RefTypes, VO = ViewOptionTypes> {
|
|
698
|
+
title: string;
|
|
699
|
+
icon: IconType;
|
|
700
|
+
RunResultView?: ForwardRefExoticComponent<RunResultViewProps<VO> & RefAttributes<PT>>;
|
|
701
|
+
RunForm?: ComponentType<RunFormProps<RunFormParamTypes>>;
|
|
702
|
+
}
|
|
703
|
+
//#endregion
|
|
704
|
+
//#region recce-source/js/src/lib/api/checks.d.ts
|
|
705
|
+
interface Check<PT = unknown, VO = unknown> {
|
|
706
|
+
check_id: string;
|
|
707
|
+
name: string;
|
|
708
|
+
description?: string;
|
|
709
|
+
type: RunType;
|
|
710
|
+
params?: PT;
|
|
711
|
+
view_options?: VO;
|
|
712
|
+
is_checked?: boolean;
|
|
713
|
+
is_preset?: boolean;
|
|
714
|
+
last_run?: Run;
|
|
715
|
+
}
|
|
716
|
+
interface CreateCheckBody {
|
|
717
|
+
name?: string;
|
|
718
|
+
description?: string;
|
|
719
|
+
run_id?: string;
|
|
720
|
+
type?: RunType;
|
|
721
|
+
params?: Record<string, string | boolean>;
|
|
722
|
+
view_options?: Record<string, string | boolean>;
|
|
723
|
+
track_props?: Record<string, string | boolean>;
|
|
724
|
+
}
|
|
725
|
+
declare function createSimpleCheck(): Promise<Check>;
|
|
726
|
+
declare function createCheckByRun(runId: string, viewOptions?: Record<string, unknown>): Promise<Check>;
|
|
727
|
+
declare function listChecks(): Promise<Check[]>;
|
|
728
|
+
declare function useChecks(enabled: boolean): _tanstack_react_query0.UseQueryResult<Check<unknown, unknown>[], Error>;
|
|
729
|
+
declare function getCheck(checkId: string): Promise<Check<RunParamTypes>>;
|
|
730
|
+
declare function updateCheck(checkId: string, payload: Partial<Check>): Promise<Check>;
|
|
731
|
+
declare function deleteCheck(checkId: string): Promise<Pick<Check<unknown, unknown>, "check_id">>;
|
|
732
|
+
declare function reorderChecks(order: {
|
|
733
|
+
source: number;
|
|
734
|
+
destination: number;
|
|
735
|
+
}): Promise<AxiosResponse<unknown, any, {}>>;
|
|
736
|
+
declare function markAsPresetCheck(checkId: string): Promise<void>;
|
|
737
|
+
//#endregion
|
|
738
|
+
//#region recce-source/js/src/lib/api/lineagecheck.d.ts
|
|
739
|
+
interface LineageDiffViewOptions {
|
|
740
|
+
view_mode?: "changed_models" | "all";
|
|
741
|
+
node_ids?: string[];
|
|
742
|
+
packages?: string[];
|
|
743
|
+
select?: string;
|
|
744
|
+
exclude?: string;
|
|
745
|
+
column_level_lineage?: CllInput;
|
|
746
|
+
}
|
|
747
|
+
declare function createLineageDiffCheck(viewOptions: LineageDiffViewOptions): Promise<Check>;
|
|
748
|
+
//#endregion
|
|
749
|
+
//#region recce-source/js/src/components/lineage/LineageView.d.ts
|
|
750
|
+
interface LineageViewProps {
|
|
751
|
+
viewOptions?: LineageDiffViewOptions;
|
|
752
|
+
interactive?: boolean;
|
|
753
|
+
weight?: number;
|
|
754
|
+
height?: number;
|
|
755
|
+
filterNodes?: (key: string, node: LineageGraphNode) => boolean;
|
|
756
|
+
}
|
|
757
|
+
interface LineageViewRef {
|
|
758
|
+
copyToClipboard: () => void;
|
|
759
|
+
}
|
|
760
|
+
declare const LineageView: React$1.ForwardRefExoticComponent<LineageViewProps & React$1.RefAttributes<LineageViewRef>>;
|
|
761
|
+
//#endregion
|
|
762
|
+
//#region recce-source/js/src/components/lineage/LineageViewContext.d.ts
|
|
763
|
+
type NewType = LineageDiffViewOptions;
|
|
764
|
+
type ActionMode = "per_node" | "multi_nodes";
|
|
765
|
+
interface NodeAction {
|
|
766
|
+
mode: ActionMode;
|
|
767
|
+
status?: "pending" | "running" | "success" | "failure" | "skipped";
|
|
768
|
+
skipReason?: string;
|
|
769
|
+
run?: Run;
|
|
770
|
+
}
|
|
771
|
+
interface ActionState {
|
|
772
|
+
mode: ActionMode;
|
|
773
|
+
status: "pending" | "running" | "canceling" | "canceled" | "completed";
|
|
774
|
+
currentRun?: Partial<Run>;
|
|
775
|
+
completed: number;
|
|
776
|
+
total: number;
|
|
777
|
+
actions: Record<string, NodeAction>;
|
|
778
|
+
}
|
|
779
|
+
interface LineageViewContextType {
|
|
780
|
+
interactive: boolean;
|
|
781
|
+
nodes: LineageGraphNodes[];
|
|
782
|
+
focusedNode?: LineageGraphNode;
|
|
783
|
+
selectedNodes: LineageGraphNode[];
|
|
784
|
+
cll: ColumnLineageData | undefined;
|
|
785
|
+
showContextMenu: (event: React$1.MouseEvent, node: LineageGraphNodes) => void;
|
|
786
|
+
viewOptions: LineageDiffViewOptions;
|
|
787
|
+
onViewOptionsChanged: (options: NewType) => void;
|
|
788
|
+
selectMode: "selecting" | "action_result" | undefined;
|
|
789
|
+
selectNode: (nodeId: string) => void;
|
|
790
|
+
selectParentNodes: (nodeId: string, degree?: number) => void;
|
|
791
|
+
selectChildNodes: (nodeId: string, degree?: number) => void;
|
|
792
|
+
deselect: () => void;
|
|
793
|
+
isNodeHighlighted: (nodeId: string) => boolean;
|
|
794
|
+
isNodeSelected: (nodeId: string) => boolean;
|
|
795
|
+
isEdgeHighlighted: (source: string, target: string) => boolean;
|
|
796
|
+
getNodeAction: (nodeId: string) => NodeAction;
|
|
797
|
+
getNodeColumnSet: (nodeId: string) => Set<string>;
|
|
798
|
+
isNodeShowingChangeAnalysis: (nodeId: string) => boolean;
|
|
799
|
+
runRowCount: () => Promise<void>;
|
|
800
|
+
runRowCountDiff: () => Promise<void>;
|
|
801
|
+
runValueDiff: () => Promise<void>;
|
|
802
|
+
addLineageDiffCheck: (viewMode?: string) => void;
|
|
803
|
+
addSchemaDiffCheck: () => void;
|
|
804
|
+
cancel: () => void;
|
|
805
|
+
actionState: ActionState;
|
|
806
|
+
centerNode: (nodeId: string) => void;
|
|
807
|
+
showColumnLevelLineage: (cll?: CllInput) => Promise<void>;
|
|
808
|
+
resetColumnLevelLineage: (previous?: boolean) => Promise<void>;
|
|
809
|
+
}
|
|
810
|
+
declare const LineageViewContext: React$1.Context<LineageViewContextType>;
|
|
811
|
+
declare const useLineageViewContext: () => LineageViewContextType | undefined;
|
|
812
|
+
//#endregion
|
|
813
|
+
//#region recce-source/js/src/components/lineage/LineageViewTopBar.d.ts
|
|
814
|
+
declare const LineageViewTopBar: () => react_jsx_runtime0.JSX.Element;
|
|
815
|
+
//#endregion
|
|
816
|
+
//#region recce-source/js/src/components/lineage/GraphNode.d.ts
|
|
817
|
+
type GraphNodeProps = NodeProps<LineageGraphNode>;
|
|
818
|
+
declare function GraphNode(nodeProps: GraphNodeProps): react_jsx_runtime0.JSX.Element;
|
|
819
|
+
//#endregion
|
|
820
|
+
//#region recce-source/js/src/components/lineage/GraphEdge.d.ts
|
|
821
|
+
type GraphEdgeProps = EdgeProps<LineageGraphEdge>;
|
|
822
|
+
declare function GraphEdge(props: GraphEdgeProps): react_jsx_runtime0.JSX.Element;
|
|
823
|
+
//#endregion
|
|
824
|
+
//#region recce-source/js/src/components/lineage/GraphColumnNode.d.ts
|
|
825
|
+
type GrapeColumnNodeProps = NodeProps<LineageGraphColumnNode>;
|
|
826
|
+
declare function GraphColumnNode(nodeProps: GrapeColumnNodeProps): react_jsx_runtime0.JSX.Element;
|
|
827
|
+
//#endregion
|
|
828
|
+
//#region recce-source/js/src/components/lineage/NodeView.d.ts
|
|
829
|
+
interface NodeViewProps {
|
|
830
|
+
node: LineageGraphNode;
|
|
831
|
+
onCloseNode: () => void;
|
|
832
|
+
}
|
|
833
|
+
declare function NodeView({
|
|
834
|
+
node,
|
|
835
|
+
onCloseNode
|
|
836
|
+
}: NodeViewProps): react_jsx_runtime0.JSX.Element;
|
|
837
|
+
//#endregion
|
|
838
|
+
//#region recce-source/js/src/components/lineage/NodeSqlView.d.ts
|
|
839
|
+
interface NodeSqlViewProps {
|
|
840
|
+
node: LineageGraphNode;
|
|
841
|
+
}
|
|
842
|
+
declare const NodeSqlView: ({
|
|
843
|
+
node
|
|
844
|
+
}: NodeSqlViewProps) => react_jsx_runtime0.JSX.Element | "Not available";
|
|
845
|
+
//#endregion
|
|
846
|
+
//#region recce-source/js/src/components/lineage/NodeTag.d.ts
|
|
847
|
+
declare function ResourceTypeTag({
|
|
848
|
+
node
|
|
849
|
+
}: {
|
|
850
|
+
node: LineageGraphNode;
|
|
851
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
852
|
+
interface ModelRowCountProps {
|
|
853
|
+
rowCount?: RowCountDiff;
|
|
854
|
+
}
|
|
855
|
+
declare function ModelRowCount({
|
|
856
|
+
rowCount
|
|
857
|
+
}: ModelRowCountProps): react_jsx_runtime0.JSX.Element;
|
|
858
|
+
interface RowCountDiffTagProps {
|
|
859
|
+
node: LineageGraphNode;
|
|
860
|
+
rowCount?: RowCountDiff;
|
|
861
|
+
onRefresh?: () => void;
|
|
862
|
+
isFetching?: boolean;
|
|
863
|
+
error?: Error | null;
|
|
864
|
+
}
|
|
865
|
+
declare function RowCountDiffTag({
|
|
866
|
+
rowCount: fetchedRowCount,
|
|
867
|
+
node,
|
|
868
|
+
onRefresh,
|
|
869
|
+
isFetching
|
|
870
|
+
}: RowCountDiffTagProps): react_jsx_runtime0.JSX.Element;
|
|
871
|
+
interface RowCountTagProps {
|
|
872
|
+
node: LineageGraphNode;
|
|
873
|
+
rowCount?: RowCount;
|
|
874
|
+
onRefresh?: () => void;
|
|
875
|
+
isFetching?: boolean;
|
|
876
|
+
error?: Error | null;
|
|
877
|
+
}
|
|
878
|
+
//#endregion
|
|
879
|
+
//#region recce-source/js/src/components/lineage/SetupConnectionBanner.d.ts
|
|
880
|
+
declare function SetupConnectionBanner(): react_jsx_runtime0.JSX.Element;
|
|
881
|
+
//#endregion
|
|
882
|
+
//#region recce-source/js/src/components/query/QueryPage.d.ts
|
|
883
|
+
declare const QueryPage: () => react_jsx_runtime0.JSX.Element;
|
|
884
|
+
//#endregion
|
|
885
|
+
//#region recce-source/js/src/components/query/QueryForm.d.ts
|
|
886
|
+
interface QueryFormProps extends BoxProps {
|
|
887
|
+
defaultPrimaryKeys: string[] | undefined;
|
|
888
|
+
onPrimaryKeysChange: (primaryKeys: string[]) => void;
|
|
889
|
+
}
|
|
890
|
+
declare const QueryForm: ({
|
|
891
|
+
defaultPrimaryKeys,
|
|
892
|
+
onPrimaryKeysChange,
|
|
893
|
+
...props
|
|
894
|
+
}: QueryFormProps) => react_jsx_runtime0.JSX.Element;
|
|
895
|
+
//#endregion
|
|
896
|
+
//#region recce-source/js/src/components/query/SqlEditor.d.ts
|
|
897
|
+
interface SqlEditorProps {
|
|
898
|
+
language?: string;
|
|
899
|
+
theme?: string;
|
|
900
|
+
value: string;
|
|
901
|
+
baseValue?: string;
|
|
902
|
+
onChange?: (value: string) => void;
|
|
903
|
+
onChangeBase?: (value: string) => void;
|
|
904
|
+
onRun?: () => void;
|
|
905
|
+
onRunBase?: () => void;
|
|
906
|
+
onRunDiff?: () => void;
|
|
907
|
+
options?: {
|
|
908
|
+
readOnly?: boolean;
|
|
909
|
+
fontSize?: number;
|
|
910
|
+
lineNumbers?: "on" | "off";
|
|
911
|
+
wordWrap?: "on" | "off";
|
|
912
|
+
};
|
|
913
|
+
manifestData?: ManifestMetadata;
|
|
914
|
+
schemas?: string;
|
|
915
|
+
label?: string;
|
|
916
|
+
CustomEditor?: React$1.ReactNode;
|
|
917
|
+
}
|
|
918
|
+
declare function SqlEditor({
|
|
919
|
+
value,
|
|
920
|
+
onChange,
|
|
921
|
+
onRun,
|
|
922
|
+
onRunBase,
|
|
923
|
+
onRunDiff,
|
|
924
|
+
label,
|
|
925
|
+
CustomEditor,
|
|
926
|
+
options,
|
|
927
|
+
manifestData,
|
|
928
|
+
schemas,
|
|
929
|
+
...props
|
|
930
|
+
}: SqlEditorProps): react_jsx_runtime0.JSX.Element;
|
|
931
|
+
//#endregion
|
|
932
|
+
//#region recce-source/js/src/components/query/QueryResultView.d.ts
|
|
933
|
+
interface QueryResultViewProp extends RunResultViewProps<QueryViewOptions> {
|
|
934
|
+
onAddToChecklist?: (run: Run) => void;
|
|
935
|
+
}
|
|
936
|
+
declare const QueryResultView: React$1.ForwardRefExoticComponent<QueryResultViewProp & React$1.RefAttributes<DataGridHandle>>;
|
|
937
|
+
//#endregion
|
|
938
|
+
//#region recce-source/js/src/components/query/QueryDiffResultView.d.ts
|
|
939
|
+
interface QueryDiffResultViewProps extends RunResultViewProps<QueryDiffViewOptions> {
|
|
940
|
+
onAddToChecklist?: (run: Run) => void;
|
|
941
|
+
baseTitle?: string;
|
|
942
|
+
currentTitle?: string;
|
|
943
|
+
}
|
|
944
|
+
declare const QueryDiffResultView: React$2.ForwardRefExoticComponent<QueryDiffResultViewProps & React$2.RefAttributes<DataGridHandle>>;
|
|
945
|
+
//#endregion
|
|
946
|
+
//#region recce-source/js/src/components/query/DiffText.d.ts
|
|
947
|
+
interface DiffTextProps {
|
|
948
|
+
value: string;
|
|
949
|
+
colorPalette: "red" | "green";
|
|
950
|
+
grayOut?: boolean;
|
|
951
|
+
noCopy?: boolean;
|
|
952
|
+
fontSize?: string;
|
|
953
|
+
}
|
|
954
|
+
declare const DiffText: ({
|
|
955
|
+
value,
|
|
956
|
+
colorPalette,
|
|
957
|
+
grayOut,
|
|
958
|
+
noCopy,
|
|
959
|
+
fontSize
|
|
960
|
+
}: DiffTextProps) => react_jsx_runtime0.JSX.Element;
|
|
961
|
+
//#endregion
|
|
962
|
+
//#region recce-source/js/src/components/query/SetupConnectionGuide.d.ts
|
|
963
|
+
declare function SetupConnectionGuide(): react_jsx_runtime0.JSX.Element;
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region recce-source/js/src/components/editor/CodeEditor.d.ts
|
|
966
|
+
type CodeEditorLanguage = "sql" | "yaml";
|
|
967
|
+
type CodeEditorTheme = "light" | "dark";
|
|
968
|
+
interface CodeEditorProps {
|
|
969
|
+
value: string;
|
|
970
|
+
onChange?: (value: string) => void;
|
|
971
|
+
language?: CodeEditorLanguage;
|
|
972
|
+
readOnly?: boolean;
|
|
973
|
+
lineNumbers?: boolean;
|
|
974
|
+
wordWrap?: boolean;
|
|
975
|
+
fontSize?: number;
|
|
976
|
+
height?: string;
|
|
977
|
+
className?: string;
|
|
978
|
+
/** Theme: "light" for githubLight, "dark" for githubDark */
|
|
979
|
+
theme?: CodeEditorTheme;
|
|
980
|
+
/** Custom keyboard shortcuts: { key: handler } */
|
|
981
|
+
keyBindings?: Array<{
|
|
982
|
+
key: string;
|
|
983
|
+
run: () => boolean;
|
|
984
|
+
}>;
|
|
985
|
+
}
|
|
986
|
+
declare function CodeEditor({
|
|
987
|
+
value,
|
|
988
|
+
onChange,
|
|
989
|
+
language,
|
|
990
|
+
readOnly,
|
|
991
|
+
lineNumbers,
|
|
992
|
+
wordWrap,
|
|
993
|
+
fontSize,
|
|
994
|
+
height,
|
|
995
|
+
className,
|
|
996
|
+
theme,
|
|
997
|
+
keyBindings
|
|
998
|
+
}: CodeEditorProps): react_jsx_runtime0.JSX.Element;
|
|
999
|
+
//#endregion
|
|
1000
|
+
//#region recce-source/js/src/components/editor/DiffEditor.d.ts
|
|
1001
|
+
type DiffEditorLanguage = "sql" | "yaml";
|
|
1002
|
+
type DiffEditorTheme = "light" | "dark";
|
|
1003
|
+
interface DiffEditorProps {
|
|
1004
|
+
original: string;
|
|
1005
|
+
modified: string;
|
|
1006
|
+
language?: DiffEditorLanguage;
|
|
1007
|
+
readOnly?: boolean;
|
|
1008
|
+
lineNumbers?: boolean;
|
|
1009
|
+
sideBySide?: boolean;
|
|
1010
|
+
height?: string;
|
|
1011
|
+
className?: string;
|
|
1012
|
+
/** Theme: "light" for githubLight, "dark" for githubDark */
|
|
1013
|
+
theme?: DiffEditorTheme;
|
|
1014
|
+
/** Called when modified content changes (only if not readOnly) */
|
|
1015
|
+
onModifiedChange?: (value: string) => void;
|
|
1016
|
+
}
|
|
1017
|
+
declare function DiffEditor({
|
|
1018
|
+
original,
|
|
1019
|
+
modified,
|
|
1020
|
+
language,
|
|
1021
|
+
readOnly,
|
|
1022
|
+
lineNumbers,
|
|
1023
|
+
sideBySide,
|
|
1024
|
+
height,
|
|
1025
|
+
className,
|
|
1026
|
+
theme,
|
|
1027
|
+
onModifiedChange
|
|
1028
|
+
}: DiffEditorProps): react_jsx_runtime0.JSX.Element;
|
|
1029
|
+
//#endregion
|
|
1030
|
+
//#region recce-source/js/src/components/schema/SchemaView.d.ts
|
|
1031
|
+
interface SchemaViewProps {
|
|
1032
|
+
base?: NodeData;
|
|
1033
|
+
current?: NodeData;
|
|
1034
|
+
enableScreenshot?: boolean;
|
|
1035
|
+
showMenu?: boolean;
|
|
1036
|
+
}
|
|
1037
|
+
declare const SchemaView: React$2.ForwardRefExoticComponent<SchemaViewProps & React$2.RefAttributes<DataGridHandle>>;
|
|
1038
|
+
//#endregion
|
|
1039
|
+
//#region recce-source/js/src/lib/dataGrid/generators/toSchemaDataGrid.d.ts
|
|
1040
|
+
interface SchemaDiffRow extends RowObjectType {
|
|
1041
|
+
name: string;
|
|
1042
|
+
reordered?: boolean;
|
|
1043
|
+
currentIndex?: number;
|
|
1044
|
+
baseIndex?: number;
|
|
1045
|
+
currentType?: string;
|
|
1046
|
+
baseType?: string;
|
|
1047
|
+
}
|
|
1048
|
+
//#endregion
|
|
1049
|
+
//#region recce-source/js/src/components/schema/ColumnNameCell.d.ts
|
|
1050
|
+
declare function ColumnNameCell({
|
|
1051
|
+
model,
|
|
1052
|
+
row,
|
|
1053
|
+
singleEnv,
|
|
1054
|
+
cllRunning,
|
|
1055
|
+
showMenu
|
|
1056
|
+
}: {
|
|
1057
|
+
model: NodeData;
|
|
1058
|
+
row: SchemaDiffRow;
|
|
1059
|
+
singleEnv?: boolean;
|
|
1060
|
+
cllRunning?: boolean;
|
|
1061
|
+
showMenu?: boolean;
|
|
1062
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
1063
|
+
//#endregion
|
|
1064
|
+
//#region recce-source/js/src/components/check/CheckList.d.ts
|
|
1065
|
+
declare const CheckList: ({
|
|
1066
|
+
checks,
|
|
1067
|
+
selectedItem,
|
|
1068
|
+
onCheckSelected,
|
|
1069
|
+
onChecksReordered
|
|
1070
|
+
}: {
|
|
1071
|
+
checks: Check[];
|
|
1072
|
+
selectedItem: string | null;
|
|
1073
|
+
onCheckSelected: (checkId: string) => void;
|
|
1074
|
+
onChecksReordered: (source: number, destination: number) => void;
|
|
1075
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
1076
|
+
//#endregion
|
|
1077
|
+
//#region recce-source/js/src/components/check/CheckDetail.d.ts
|
|
1078
|
+
interface CheckDetailProps {
|
|
1079
|
+
checkId: string;
|
|
1080
|
+
refreshCheckList?: () => void;
|
|
1081
|
+
}
|
|
1082
|
+
declare function CheckDetail({
|
|
1083
|
+
checkId,
|
|
1084
|
+
refreshCheckList
|
|
1085
|
+
}: CheckDetailProps): ReactNode;
|
|
1086
|
+
//#endregion
|
|
1087
|
+
//#region recce-source/js/src/components/check/CheckBreadcrumb.d.ts
|
|
1088
|
+
interface CheckBreadcrumbProps {
|
|
1089
|
+
name: string;
|
|
1090
|
+
setName: (name: string) => void;
|
|
1091
|
+
}
|
|
1092
|
+
declare function CheckBreadcrumb({
|
|
1093
|
+
name,
|
|
1094
|
+
setName
|
|
1095
|
+
}: CheckBreadcrumbProps): react_jsx_runtime0.JSX.Element;
|
|
1096
|
+
//#endregion
|
|
1097
|
+
//#region recce-source/js/src/components/check/CheckDescription.d.ts
|
|
1098
|
+
interface CheckDescriptionProps {
|
|
1099
|
+
value?: string;
|
|
1100
|
+
onChange?: (value?: string) => void;
|
|
1101
|
+
}
|
|
1102
|
+
declare function CheckDescription({
|
|
1103
|
+
value,
|
|
1104
|
+
onChange
|
|
1105
|
+
}: CheckDescriptionProps): react_jsx_runtime0.JSX.Element;
|
|
1106
|
+
//#endregion
|
|
1107
|
+
//#region recce-source/js/src/components/check/CheckEmptyState.d.ts
|
|
1108
|
+
declare const CheckEmptyState: () => react_jsx_runtime0.JSX.Element;
|
|
1109
|
+
//#endregion
|
|
1110
|
+
//#region recce-source/js/src/components/check/LineageDiffView.d.ts
|
|
1111
|
+
interface LineageDiffViewProps {
|
|
1112
|
+
check: Check;
|
|
1113
|
+
}
|
|
1114
|
+
declare const LineageDiffView: React$2.ForwardRefExoticComponent<LineageDiffViewProps & React$2.RefAttributes<LineageViewRef>>;
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region recce-source/js/src/components/check/SchemaDiffView.d.ts
|
|
1117
|
+
interface SchemaDiffViewProps {
|
|
1118
|
+
check: Check;
|
|
1119
|
+
}
|
|
1120
|
+
declare const SchemaDiffView: React$1.ForwardRefExoticComponent<SchemaDiffViewProps & React$1.RefAttributes<DataGridHandle>>;
|
|
1121
|
+
//#endregion
|
|
1122
|
+
//#region recce-source/js/src/components/run/RunPage.d.ts
|
|
1123
|
+
interface RunPageProps$1 {
|
|
1124
|
+
runId: string;
|
|
1125
|
+
}
|
|
1126
|
+
declare const RunPage: ({
|
|
1127
|
+
runId
|
|
1128
|
+
}: RunPageProps$1) => react_jsx_runtime0.JSX.Element;
|
|
1129
|
+
//#endregion
|
|
1130
|
+
//#region recce-source/js/src/components/run/RunList.d.ts
|
|
1131
|
+
declare const RunList: () => react_jsx_runtime0.JSX.Element;
|
|
1132
|
+
//#endregion
|
|
1133
|
+
//#region recce-source/js/src/components/run/RunView.d.ts
|
|
1134
|
+
interface RunViewProps<VO = ViewOptionTypes> {
|
|
1135
|
+
isRunning?: boolean;
|
|
1136
|
+
run?: Run;
|
|
1137
|
+
error?: Error | null;
|
|
1138
|
+
progress?: Run["progress"];
|
|
1139
|
+
isAborting?: boolean;
|
|
1140
|
+
isCheckDetail?: boolean;
|
|
1141
|
+
onCancel?: () => void;
|
|
1142
|
+
onExecuteRun?: () => void;
|
|
1143
|
+
viewOptions?: VO;
|
|
1144
|
+
onViewOptionsChanged?: (viewOptions: VO) => void;
|
|
1145
|
+
RunResultView?: RegistryEntry["RunResultView"] | undefined;
|
|
1146
|
+
children?: (params: RunResultViewProps) => React$1.ReactNode;
|
|
1147
|
+
}
|
|
1148
|
+
declare const RunView: React$1.ForwardRefExoticComponent<RunViewProps<ViewOptionTypes> & React$1.RefAttributes<RefTypes>>;
|
|
1149
|
+
//#endregion
|
|
1150
|
+
//#region recce-source/js/src/components/run/RunModal.d.ts
|
|
1151
|
+
interface RunModalProps {
|
|
1152
|
+
isOpen: boolean;
|
|
1153
|
+
onClose: () => void;
|
|
1154
|
+
onExecute: (type: RunType, params: RunFormParamTypes) => void;
|
|
1155
|
+
title: string;
|
|
1156
|
+
type: RunType;
|
|
1157
|
+
params?: RunFormParamTypes;
|
|
1158
|
+
initialRun?: Run;
|
|
1159
|
+
RunForm?: ComponentType<RunFormProps<RunFormParamTypes>>;
|
|
1160
|
+
}
|
|
1161
|
+
declare const RunModal: ({
|
|
1162
|
+
isOpen,
|
|
1163
|
+
onClose,
|
|
1164
|
+
onExecute,
|
|
1165
|
+
type,
|
|
1166
|
+
title,
|
|
1167
|
+
params: defaultParams,
|
|
1168
|
+
RunForm
|
|
1169
|
+
}: RunModalProps) => react_jsx_runtime0.JSX.Element;
|
|
1170
|
+
//#endregion
|
|
1171
|
+
//#region recce-source/js/src/components/run/RunResultPane.d.ts
|
|
1172
|
+
interface RunPageProps {
|
|
1173
|
+
onClose?: () => void;
|
|
1174
|
+
disableAddToChecklist?: boolean;
|
|
1175
|
+
isSingleEnvironment?: boolean;
|
|
1176
|
+
}
|
|
1177
|
+
declare const RunResultPane: ({
|
|
1178
|
+
onClose,
|
|
1179
|
+
isSingleEnvironment
|
|
1180
|
+
}: RunPageProps) => react_jsx_runtime0.JSX.Element;
|
|
1181
|
+
//#endregion
|
|
1182
|
+
//#region recce-source/js/src/components/run/RunStatusAndDate.d.ts
|
|
1183
|
+
declare const RunStatusAndDate: ({
|
|
1184
|
+
run
|
|
1185
|
+
}: {
|
|
1186
|
+
run: Run;
|
|
1187
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
1188
|
+
//#endregion
|
|
1189
|
+
//#region recce-source/js/src/components/profile/ProfileDiffResultView.d.ts
|
|
1190
|
+
type ProfileDiffResultViewProp = RunResultViewProps<ProfileDiffViewOptions>;
|
|
1191
|
+
declare const ProfileDiffResultView: React$2.ForwardRefExoticComponent<ProfileDiffResultViewProp & React$2.RefAttributes<DataGridHandle>>;
|
|
1192
|
+
//#endregion
|
|
1193
|
+
//#region recce-source/js/src/components/valuediff/ValueDiffResultView.d.ts
|
|
1194
|
+
type ValueDiffResultViewProp = RunResultViewProps;
|
|
1195
|
+
declare const ValueDiffResultView: React$1.ForwardRefExoticComponent<ValueDiffResultViewProp & React$1.RefAttributes<DataGridHandle>>;
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region recce-source/js/src/components/valuediff/ValueDiffDetailResultView.d.ts
|
|
1198
|
+
interface ValueDiffDetailResultViewProps extends RunResultViewProps<ValueDiffDetailViewOptions> {
|
|
1199
|
+
onAddToChecklist?: (run: Run) => void;
|
|
1200
|
+
}
|
|
1201
|
+
declare const ValueDiffDetailResultView: React$2.ForwardRefExoticComponent<ValueDiffDetailResultViewProps & React$2.RefAttributes<DataGridHandle>>;
|
|
1202
|
+
//#endregion
|
|
1203
|
+
//#region recce-source/js/src/components/histogram/HistogramDiffForm.d.ts
|
|
1204
|
+
type HistogramDiffEditProps = RunFormProps<HistogramDiffParams>;
|
|
1205
|
+
declare function HistogramDiffForm({
|
|
1206
|
+
params,
|
|
1207
|
+
onParamsChanged,
|
|
1208
|
+
setIsReadyToExecute
|
|
1209
|
+
}: HistogramDiffEditProps): react_jsx_runtime0.JSX.Element;
|
|
1210
|
+
//#endregion
|
|
1211
|
+
//#region recce-source/js/src/components/histogram/HistogramDiffResultView.d.ts
|
|
1212
|
+
type HistogramDiffResultViewProp = RunResultViewProps;
|
|
1213
|
+
declare const HistogramDiffResultView: React$2.ForwardRefExoticComponent<HistogramDiffResultViewProp & React$2.RefAttributes<HTMLDivElement>>;
|
|
1214
|
+
//#endregion
|
|
1215
|
+
//#region recce-source/js/src/components/top-k/TopKDiffForm.d.ts
|
|
1216
|
+
type TopKDiffFormProps = RunFormProps<TopKDiffParams>;
|
|
1217
|
+
declare function TopKDiffForm({
|
|
1218
|
+
params,
|
|
1219
|
+
onParamsChanged,
|
|
1220
|
+
setIsReadyToExecute
|
|
1221
|
+
}: TopKDiffFormProps): react_jsx_runtime0.JSX.Element;
|
|
1222
|
+
//#endregion
|
|
1223
|
+
//#region recce-source/js/src/components/top-k/TopKDiffResultView.d.ts
|
|
1224
|
+
type TopKDiffResultViewProp = RunResultViewProps;
|
|
1225
|
+
declare const TopKDiffResultView: React$2.ForwardRefExoticComponent<TopKDiffResultViewProp & React$2.RefAttributes<HTMLDivElement>>;
|
|
1226
|
+
//#endregion
|
|
1227
|
+
//#region recce-source/js/src/components/rowcount/RowCountDiffResultView.d.ts
|
|
1228
|
+
declare const RowCountDiffResultView: React$2.ForwardRefExoticComponent<RunResultViewProps<ViewOptionTypes> & React$2.RefAttributes<DataGridHandle>>;
|
|
1229
|
+
//#endregion
|
|
1230
|
+
//#region recce-source/js/src/components/charts/HistogramChart.d.ts
|
|
1231
|
+
/**
|
|
1232
|
+
* Histogram Chart that can display generic data types such as Numeric, Datetime, Integer
|
|
1233
|
+
* X: The Min/Max of the labels range is the scaled width of charting area
|
|
1234
|
+
* Y: The Min/Max of the counts range is the scaled height of charting area
|
|
1235
|
+
* Counts: Abbreviated based on K, Mn, Bn, Tr (see formatters)
|
|
1236
|
+
*/
|
|
1237
|
+
interface HistogramChartProps {
|
|
1238
|
+
data: {
|
|
1239
|
+
title: string;
|
|
1240
|
+
type: string;
|
|
1241
|
+
samples?: number;
|
|
1242
|
+
min?: string | number;
|
|
1243
|
+
max?: string | number;
|
|
1244
|
+
binEdges: number[];
|
|
1245
|
+
datasets: HistogramResult[];
|
|
1246
|
+
};
|
|
1247
|
+
animation?: AnimationOptions<"bar">["animation"];
|
|
1248
|
+
hideAxis?: boolean;
|
|
1249
|
+
}
|
|
1250
|
+
declare function HistogramChart({
|
|
1251
|
+
data,
|
|
1252
|
+
hideAxis,
|
|
1253
|
+
animation
|
|
1254
|
+
}: HistogramChartProps): react_jsx_runtime0.JSX.Element;
|
|
1255
|
+
//#endregion
|
|
1256
|
+
//#region recce-source/js/src/components/charts/TopKSummaryList.d.ts
|
|
1257
|
+
interface Props$2 {
|
|
1258
|
+
topk: TopKResult;
|
|
1259
|
+
valids: number;
|
|
1260
|
+
isDisplayTopTen: boolean;
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* A list of each topk summary item (categorical)
|
|
1264
|
+
* Last list item will show 'others' when there are leftover values, which is the count difference of valids and displayed topk items
|
|
1265
|
+
*/
|
|
1266
|
+
declare function TopKSummaryList({
|
|
1267
|
+
topk,
|
|
1268
|
+
valids,
|
|
1269
|
+
isDisplayTopTen
|
|
1270
|
+
}: Props$2): react_jsx_runtime0.JSX.Element;
|
|
1271
|
+
//#endregion
|
|
1272
|
+
//#region recce-source/js/src/components/charts/SquareIcon.d.ts
|
|
1273
|
+
declare function SquareIcon({
|
|
1274
|
+
color
|
|
1275
|
+
}: {
|
|
1276
|
+
color: string;
|
|
1277
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
1278
|
+
//#endregion
|
|
1279
|
+
//#region recce-source/js/src/components/summary/SummaryView.d.ts
|
|
1280
|
+
declare function SummaryView(): react_jsx_runtime0.JSX.Element;
|
|
1281
|
+
//#endregion
|
|
1282
|
+
//#region recce-source/js/src/components/summary/ChangeSummary.d.ts
|
|
1283
|
+
interface Props$1 {
|
|
1284
|
+
lineageGraph: LineageGraph;
|
|
1285
|
+
}
|
|
1286
|
+
declare function ChangeSummary({
|
|
1287
|
+
lineageGraph
|
|
1288
|
+
}: Props$1): react_jsx_runtime0.JSX.Element;
|
|
1289
|
+
//#endregion
|
|
1290
|
+
//#region recce-source/js/src/components/summary/SchemaSummary.d.ts
|
|
1291
|
+
interface Props {
|
|
1292
|
+
lineageGraph: LineageGraph;
|
|
1293
|
+
}
|
|
1294
|
+
declare function SchemaSummary({
|
|
1295
|
+
lineageGraph
|
|
1296
|
+
}: Props): react_jsx_runtime0.JSX.Element;
|
|
1297
|
+
//#endregion
|
|
1298
|
+
//#region recce-source/js/src/components/app/EnvInfo.d.ts
|
|
1299
|
+
declare function EnvInfo$1(): react_jsx_runtime0.JSX.Element;
|
|
1300
|
+
//#endregion
|
|
1301
|
+
//#region recce-source/js/app/(mainComponents)/TopBar.d.ts
|
|
1302
|
+
declare function TopBar(): react_jsx_runtime0.JSX.Element;
|
|
1303
|
+
//#endregion
|
|
1304
|
+
//#region recce-source/js/app/(mainComponents)/NavBar.d.ts
|
|
1305
|
+
declare function NavBar(): react_jsx_runtime0.JSX.Element;
|
|
1306
|
+
//#endregion
|
|
1307
|
+
//#region recce-source/js/app/(mainComponents)/DisplayModeToggle.d.ts
|
|
1308
|
+
/**
|
|
1309
|
+
* Display Mode Toggle - switches between light and dark themes
|
|
1310
|
+
*
|
|
1311
|
+
* Uses next-themes to persist the user's preference.
|
|
1312
|
+
* Default is light theme, with future support for system preference.
|
|
1313
|
+
*/
|
|
1314
|
+
declare function DisplayModeToggle(): react_jsx_runtime0.JSX.Element;
|
|
1315
|
+
//#endregion
|
|
1316
|
+
//#region recce-source/js/app/(mainComponents)/RecceVersionBadge.d.ts
|
|
1317
|
+
declare function RecceVersionBadge(): react_jsx_runtime0.JSX.Element;
|
|
1318
|
+
//#endregion
|
|
1319
|
+
//#region recce-source/js/src/components/shared/HistoryToggle.d.ts
|
|
1320
|
+
declare function HistoryToggle(): ReactNode;
|
|
1321
|
+
//#endregion
|
|
1322
|
+
//#region recce-source/js/src/components/timeout/IdleTimeoutBadge.d.ts
|
|
1323
|
+
/**
|
|
1324
|
+
* Badge component that displays idle timeout warning countdown
|
|
1325
|
+
* Only shows when remaining time is below the warning threshold
|
|
1326
|
+
* Styled as a warning indicator to draw user attention
|
|
1327
|
+
*/
|
|
1328
|
+
declare function IdleTimeoutBadge(): react_jsx_runtime0.JSX.Element;
|
|
1329
|
+
//#endregion
|
|
1330
|
+
//#region recce-source/js/src/components/icons/index.d.ts
|
|
1331
|
+
declare const IconSync: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime0.JSX.Element;
|
|
1332
|
+
declare const IconExport: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime0.JSX.Element;
|
|
1333
|
+
declare const IconImport: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime0.JSX.Element;
|
|
1334
|
+
declare const IconSave: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime0.JSX.Element;
|
|
1335
|
+
declare const IconEdit: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime0.JSX.Element;
|
|
1336
|
+
declare const IconInfo: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime0.JSX.Element;
|
|
1337
|
+
//#endregion
|
|
1338
|
+
//#region recce-source/js/src/lib/api/instanceInfo.d.ts
|
|
1339
|
+
interface RecceInstanceInfo {
|
|
1340
|
+
server_mode: "server" | "preview" | "read-only";
|
|
1341
|
+
single_env: boolean;
|
|
1342
|
+
authed: boolean;
|
|
1343
|
+
cloud_instance: boolean;
|
|
1344
|
+
lifetime_expired_at?: Date;
|
|
1345
|
+
idle_timeout?: number;
|
|
1346
|
+
share_url?: string;
|
|
1347
|
+
session_id?: string;
|
|
1348
|
+
organization_name?: string;
|
|
1349
|
+
web_url?: string;
|
|
1350
|
+
}
|
|
1351
|
+
//#endregion
|
|
1352
|
+
//#region recce-source/js/src/lib/hooks/useRecceInstanceInfo.d.ts
|
|
1353
|
+
declare const useRecceInstanceInfo: () => _tanstack_react_query0.UseQueryResult<RecceInstanceInfo, Error>;
|
|
1354
|
+
//#endregion
|
|
1355
|
+
//#region recce-source/js/src/lib/hooks/useCheckToast.d.ts
|
|
1356
|
+
declare function useCheckToast(): {
|
|
1357
|
+
markedAsApprovedToast: () => void;
|
|
1358
|
+
};
|
|
1359
|
+
//#endregion
|
|
1360
|
+
//#region recce-source/js/src/lib/hooks/useClipBoardToast.d.ts
|
|
1361
|
+
declare function useClipBoardToast(): {
|
|
1362
|
+
successToast: (message: string) => void;
|
|
1363
|
+
failToast: (title: string, error: unknown) => void;
|
|
1364
|
+
};
|
|
1365
|
+
//#endregion
|
|
1366
|
+
//#region recce-source/js/src/components/lineage/useValueDiffAlertDialog.d.ts
|
|
1367
|
+
declare function useValueDiffAlertDialog(): {
|
|
1368
|
+
confirm: (nodeCount: number) => Promise<boolean>;
|
|
1369
|
+
AlertDialog: react_jsx_runtime0.JSX.Element;
|
|
1370
|
+
};
|
|
1371
|
+
//#endregion
|
|
1372
|
+
//#region recce-source/js/src/lib/hooks/RecceContextProvider.d.ts
|
|
1373
|
+
interface RecceContextProps {
|
|
1374
|
+
children: React$1.ReactNode;
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* Main context provider for Recce application.
|
|
1378
|
+
*
|
|
1379
|
+
* For custom API configuration (e.g., recce-cloud), wrap this provider
|
|
1380
|
+
* with ApiConfigProvider:
|
|
1381
|
+
*
|
|
1382
|
+
* ```tsx
|
|
1383
|
+
* <ApiConfigProvider
|
|
1384
|
+
* apiPrefix="/api/v2/sessions/abc123"
|
|
1385
|
+
* authToken="eyJ..."
|
|
1386
|
+
* >
|
|
1387
|
+
* <RecceContextProvider>
|
|
1388
|
+
* {children}
|
|
1389
|
+
* </RecceContextProvider>
|
|
1390
|
+
* </ApiConfigProvider>
|
|
1391
|
+
* ```
|
|
1392
|
+
*
|
|
1393
|
+
* When used without ApiConfigProvider (OSS mode), hooks will use
|
|
1394
|
+
* the default axios client with standard /api/* endpoints.
|
|
1395
|
+
*/
|
|
1396
|
+
declare function RecceContextProvider({
|
|
1397
|
+
children
|
|
1398
|
+
}: RecceContextProps): react_jsx_runtime0.JSX.Element;
|
|
1399
|
+
//#endregion
|
|
1400
|
+
//#region recce-source/js/src/lib/hooks/RecceInstanceContext.d.ts
|
|
1401
|
+
type RecceFeatureMode = "read only" | "metadata only" | null;
|
|
1402
|
+
interface RecceFeatureToggles {
|
|
1403
|
+
mode: RecceFeatureMode;
|
|
1404
|
+
disableSaveToFile: boolean;
|
|
1405
|
+
disableExportStateFile: boolean;
|
|
1406
|
+
disableImportStateFile: boolean;
|
|
1407
|
+
disableUpdateChecklist: boolean;
|
|
1408
|
+
disableDatabaseQuery: boolean;
|
|
1409
|
+
disableViewActionDropdown: boolean;
|
|
1410
|
+
disableNodeActionDropdown: boolean;
|
|
1411
|
+
disableShare: boolean;
|
|
1412
|
+
}
|
|
1413
|
+
interface InstanceInfoType {
|
|
1414
|
+
singleEnv: boolean;
|
|
1415
|
+
authed: boolean;
|
|
1416
|
+
featureToggles: RecceFeatureToggles;
|
|
1417
|
+
lifetimeExpiredAt?: Date;
|
|
1418
|
+
shareUrl?: string;
|
|
1419
|
+
sessionId?: string;
|
|
1420
|
+
}
|
|
1421
|
+
declare function RecceInstanceInfoProvider({
|
|
1422
|
+
children
|
|
1423
|
+
}: {
|
|
1424
|
+
children: React.ReactNode;
|
|
1425
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
1426
|
+
declare const useRecceInstanceContext: () => InstanceInfoType;
|
|
1427
|
+
//#endregion
|
|
1428
|
+
//#region recce-source/js/src/lib/hooks/LineageGraphContext.d.ts
|
|
1429
|
+
interface EnvInfo {
|
|
1430
|
+
stateMetadata?: stateMetadata;
|
|
1431
|
+
adapterType?: string;
|
|
1432
|
+
git?: gitInfo;
|
|
1433
|
+
pullRequest?: pullRequestInfo;
|
|
1434
|
+
dbt?: {
|
|
1435
|
+
base: ManifestMetadata | undefined | null;
|
|
1436
|
+
current: ManifestMetadata | undefined | null;
|
|
1437
|
+
};
|
|
1438
|
+
sqlmesh?: SQLMeshInfo | null;
|
|
1439
|
+
}
|
|
1440
|
+
interface LineageGraphContextType {
|
|
1441
|
+
lineageGraph?: LineageGraph;
|
|
1442
|
+
envInfo?: EnvInfo;
|
|
1443
|
+
reviewMode?: boolean;
|
|
1444
|
+
cloudMode?: boolean;
|
|
1445
|
+
fileMode?: boolean;
|
|
1446
|
+
fileName?: string;
|
|
1447
|
+
isDemoSite: boolean;
|
|
1448
|
+
isCodespace?: boolean;
|
|
1449
|
+
isLoading?: boolean;
|
|
1450
|
+
error?: string;
|
|
1451
|
+
supportTasks?: Record<string, boolean>;
|
|
1452
|
+
retchLineageGraph?: () => void;
|
|
1453
|
+
isActionAvailable: (actionName: string) => boolean;
|
|
1454
|
+
runsAggregated?: RunsAggregated;
|
|
1455
|
+
refetchRunsAggregated?: () => void;
|
|
1456
|
+
}
|
|
1457
|
+
interface LineageGraphProps {
|
|
1458
|
+
children: React$1.ReactNode;
|
|
1459
|
+
}
|
|
1460
|
+
declare function LineageGraphContextProvider({
|
|
1461
|
+
children
|
|
1462
|
+
}: LineageGraphProps): react_jsx_runtime0.JSX.Element;
|
|
1463
|
+
declare const useLineageGraphContext: () => LineageGraphContextType;
|
|
1464
|
+
declare const useRunsAggregated: () => [RunsAggregated | undefined, () => void];
|
|
1465
|
+
//#endregion
|
|
1466
|
+
//#region recce-source/js/src/lib/hooks/RecceShareStateContext.d.ts
|
|
1467
|
+
interface ShareStateProps {
|
|
1468
|
+
shareUrl?: string;
|
|
1469
|
+
isLoading: boolean;
|
|
1470
|
+
error?: string;
|
|
1471
|
+
handleShareClick: () => Promise<void>;
|
|
1472
|
+
}
|
|
1473
|
+
declare function RecceShareStateContextProvider({
|
|
1474
|
+
children
|
|
1475
|
+
}: {
|
|
1476
|
+
children: React$1.ReactNode;
|
|
1477
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
1478
|
+
declare const useRecceShareStateContext: () => ShareStateProps;
|
|
1479
|
+
//#endregion
|
|
1480
|
+
//#region recce-source/js/src/lib/hooks/RecceQueryContext.d.ts
|
|
1481
|
+
interface QueryContext {
|
|
1482
|
+
sqlQuery: string;
|
|
1483
|
+
setSqlQuery: (sqlQuery: string) => void;
|
|
1484
|
+
primaryKeys: string[] | undefined;
|
|
1485
|
+
setPrimaryKeys: (primaryKeys: string[] | undefined) => void;
|
|
1486
|
+
isCustomQueries: boolean;
|
|
1487
|
+
setCustomQueries: (isCustomQueries: boolean) => void;
|
|
1488
|
+
baseSqlQuery?: string;
|
|
1489
|
+
setBaseSqlQuery?: (baseSqlQuery: string) => void;
|
|
1490
|
+
}
|
|
1491
|
+
interface QueryContextProps {
|
|
1492
|
+
children: React$1.ReactNode;
|
|
1493
|
+
}
|
|
1494
|
+
declare function RecceQueryContextProvider({
|
|
1495
|
+
children
|
|
1496
|
+
}: QueryContextProps): react_jsx_runtime0.JSX.Element;
|
|
1497
|
+
declare const useRecceQueryContext: () => QueryContext;
|
|
1498
|
+
interface RowCountStateContext {
|
|
1499
|
+
isNodesFetching: string[];
|
|
1500
|
+
setIsNodesFetching: (nodes: string[]) => void;
|
|
1501
|
+
}
|
|
1502
|
+
interface RowCountStateContextProps {
|
|
1503
|
+
children: React$1.ReactNode;
|
|
1504
|
+
}
|
|
1505
|
+
declare function RowCountStateContextProvider({
|
|
1506
|
+
children
|
|
1507
|
+
}: RowCountStateContextProps): react_jsx_runtime0.JSX.Element;
|
|
1508
|
+
declare const useRowCountStateContext: () => RowCountStateContext;
|
|
1509
|
+
//#endregion
|
|
1510
|
+
//#region recce-source/js/src/lib/hooks/RecceActionContext.d.ts
|
|
1511
|
+
interface RecceActionOptions {
|
|
1512
|
+
showForm: boolean;
|
|
1513
|
+
showLast?: boolean;
|
|
1514
|
+
trackProps?: SubmitRunTrackProps;
|
|
1515
|
+
}
|
|
1516
|
+
interface RecceActionContextType {
|
|
1517
|
+
runAction: (type: RunType, params?: AxiosQueryParams, actionOptions?: RecceActionOptions) => void;
|
|
1518
|
+
runId?: string;
|
|
1519
|
+
showRunId: (runId: string, refreshHistory?: boolean) => void;
|
|
1520
|
+
isRunResultOpen: boolean;
|
|
1521
|
+
closeRunResult: () => void;
|
|
1522
|
+
isHistoryOpen: boolean;
|
|
1523
|
+
closeHistory: () => void;
|
|
1524
|
+
showHistory: () => void;
|
|
1525
|
+
setHistoryOpen: Dispatch<SetStateAction<boolean>>;
|
|
1526
|
+
clearRunResult: () => void;
|
|
1527
|
+
}
|
|
1528
|
+
interface RecceActionContextProviderProps {
|
|
1529
|
+
children: React$1.ReactNode;
|
|
1530
|
+
}
|
|
1531
|
+
declare function RecceActionContextProvider({
|
|
1532
|
+
children
|
|
1533
|
+
}: RecceActionContextProviderProps): react_jsx_runtime0.JSX.Element;
|
|
1534
|
+
declare const useRecceActionContext: () => RecceActionContextType;
|
|
1535
|
+
//#endregion
|
|
1536
|
+
//#region recce-source/js/src/lib/hooks/RecceCheckContext.d.ts
|
|
1537
|
+
interface CheckContext {
|
|
1538
|
+
latestSelectedCheckId: string;
|
|
1539
|
+
setLatestSelectedCheckId: (selectCheckId: string) => void;
|
|
1540
|
+
}
|
|
1541
|
+
interface CheckContextProps {
|
|
1542
|
+
children: React$1.ReactNode;
|
|
1543
|
+
}
|
|
1544
|
+
declare function RecceCheckContextProvider({
|
|
1545
|
+
children
|
|
1546
|
+
}: CheckContextProps): react_jsx_runtime0.JSX.Element;
|
|
1547
|
+
declare const useRecceCheckContext: () => CheckContext;
|
|
1548
|
+
//#endregion
|
|
1549
|
+
//#region recce-source/js/src/lib/hooks/IdleTimeoutContext.d.ts
|
|
1550
|
+
/**
|
|
1551
|
+
* Context for sharing idle timeout state across components
|
|
1552
|
+
*
|
|
1553
|
+
* IMPORTANT: The countdown is based on the last SUCCESSFUL keep-alive API call,
|
|
1554
|
+
* NOT on user activity. This ensures the countdown accurately reflects the
|
|
1555
|
+
* server's idle timeout state.
|
|
1556
|
+
*/
|
|
1557
|
+
interface IdleTimeoutContextType {
|
|
1558
|
+
/** Remaining seconds until timeout (null if idle timeout not enabled) */
|
|
1559
|
+
remainingSeconds: number | null;
|
|
1560
|
+
/** Idle timeout value from server in seconds (null if not configured) */
|
|
1561
|
+
idleTimeout: number | null;
|
|
1562
|
+
/** Whether idle timeout is enabled */
|
|
1563
|
+
isEnabled: boolean;
|
|
1564
|
+
/** Mark as disconnected - stops countdown and keep-alive */
|
|
1565
|
+
setDisconnected: () => void;
|
|
1566
|
+
/** Reset connection state - restarts countdown and keep-alive after successful reconnect */
|
|
1567
|
+
resetConnection: () => void;
|
|
1568
|
+
/** Whether the connection is disconnected */
|
|
1569
|
+
isDisconnected: boolean;
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Provider for idle timeout state
|
|
1573
|
+
*
|
|
1574
|
+
* The countdown is based on lastServerSyncTime (when keep-alive API was last
|
|
1575
|
+
* successfully sent), not on user activity. This provides accurate server state.
|
|
1576
|
+
*/
|
|
1577
|
+
declare function IdleTimeoutProvider({
|
|
1578
|
+
children
|
|
1579
|
+
}: {
|
|
1580
|
+
children: ReactNode;
|
|
1581
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
1582
|
+
/**
|
|
1583
|
+
* Hook to access idle timeout context
|
|
1584
|
+
* @throws Error if used outside IdleTimeoutProvider
|
|
1585
|
+
*/
|
|
1586
|
+
declare function useIdleTimeout(): IdleTimeoutContextType;
|
|
1587
|
+
//#endregion
|
|
1588
|
+
//#region recce-source/js/src/lib/hooks/ApiConfigContext.d.ts
|
|
1589
|
+
/**
|
|
1590
|
+
* API Configuration Context
|
|
1591
|
+
*
|
|
1592
|
+
* Provides configurable API endpoint prefix and authentication token
|
|
1593
|
+
* for use with recce-cloud or other custom API backends.
|
|
1594
|
+
*
|
|
1595
|
+
* Default behavior (OSS):
|
|
1596
|
+
* - apiPrefix: "" (uses /api/* paths directly)
|
|
1597
|
+
* - authToken: undefined (no auth header)
|
|
1598
|
+
*
|
|
1599
|
+
* Cloud usage example:
|
|
1600
|
+
* - apiPrefix: "/api/v2/sessions/abc123" (replaces /api with this prefix)
|
|
1601
|
+
* - authToken: "eyJ..." (adds Authorization: Bearer header)
|
|
1602
|
+
*/
|
|
1603
|
+
interface ApiConfig {
|
|
1604
|
+
/**
|
|
1605
|
+
* API endpoint prefix to replace `/api` in all requests.
|
|
1606
|
+
* For OSS: "" (empty string, uses default /api/* paths)
|
|
1607
|
+
* For Cloud: "/api/v2/sessions/<session_id>" (replaces /api with this)
|
|
1608
|
+
*/
|
|
1609
|
+
apiPrefix: string;
|
|
1610
|
+
/**
|
|
1611
|
+
* Optional authentication token for API requests.
|
|
1612
|
+
* When provided, adds "Authorization: Bearer <token>" header.
|
|
1613
|
+
*/
|
|
1614
|
+
authToken?: string;
|
|
1615
|
+
/**
|
|
1616
|
+
* Optional base URL override.
|
|
1617
|
+
* When provided, overrides the PUBLIC_API_URL for this context.
|
|
1618
|
+
*/
|
|
1619
|
+
baseUrl?: string;
|
|
1620
|
+
}
|
|
1621
|
+
interface ApiConfigContextType extends ApiConfig {
|
|
1622
|
+
/**
|
|
1623
|
+
* Pre-configured axios instance with interceptors for
|
|
1624
|
+
* API prefix replacement and auth token injection.
|
|
1625
|
+
*/
|
|
1626
|
+
apiClient: AxiosInstance;
|
|
1627
|
+
}
|
|
1628
|
+
interface ApiConfigProviderProps extends Partial<ApiConfig> {
|
|
1629
|
+
children: React$1.ReactNode;
|
|
1630
|
+
}
|
|
1631
|
+
declare function ApiConfigProvider({
|
|
1632
|
+
children,
|
|
1633
|
+
apiPrefix,
|
|
1634
|
+
authToken,
|
|
1635
|
+
baseUrl
|
|
1636
|
+
}: ApiConfigProviderProps): react_jsx_runtime0.JSX.Element;
|
|
1637
|
+
/**
|
|
1638
|
+
* Hook to access the API configuration and configured axios client.
|
|
1639
|
+
*
|
|
1640
|
+
* When used outside ApiConfigProvider, returns default config with
|
|
1641
|
+
* standard axiosClient (for OSS backward compatibility).
|
|
1642
|
+
*
|
|
1643
|
+
* @returns ApiConfigContextType with apiPrefix, authToken, and apiClient
|
|
1644
|
+
*/
|
|
1645
|
+
declare function useApiConfig(): ApiConfigContextType;
|
|
1646
|
+
/**
|
|
1647
|
+
* Hook to get the configured axios client.
|
|
1648
|
+
* Convenience wrapper around useApiConfig().apiClient
|
|
1649
|
+
*
|
|
1650
|
+
* @returns AxiosInstance configured with API prefix and auth token
|
|
1651
|
+
*/
|
|
1652
|
+
declare function useApiClient(): AxiosInstance;
|
|
1653
|
+
/**
|
|
1654
|
+
* Safe version of useApiConfig that returns null if outside provider.
|
|
1655
|
+
* Useful for components that need to detect if ApiConfigProvider is present.
|
|
1656
|
+
*/
|
|
1657
|
+
declare function useApiConfigSafe(): ApiConfigContextType | null;
|
|
1658
|
+
//#endregion
|
|
1659
|
+
//#region recce-source/js/src/components/check/check.d.ts
|
|
1660
|
+
declare function buildTitle(check: Check): string;
|
|
1661
|
+
declare function buildDescription(check: Check): string;
|
|
1662
|
+
declare function buildQuery(check: Check<RunParamTypes>): string;
|
|
1663
|
+
//#endregion
|
|
1664
|
+
//#region recce-source/js/src/components/schema/schemaDiff.d.ts
|
|
1665
|
+
declare function isSchemaChanged(baseSchema: NodeData["columns"], currSchema: NodeData["columns"]): boolean;
|
|
1666
|
+
//#endregion
|
|
1667
|
+
//#region recce-source/js/src/components/valuediff/shared.d.ts
|
|
1668
|
+
declare function columnPrecisionSelectOptions(colName: string, onColumnsRenderModeChanged: (col: Record<string, ColumnRenderMode>) => void): {
|
|
1669
|
+
value: string;
|
|
1670
|
+
onClick: () => void;
|
|
1671
|
+
}[];
|
|
1672
|
+
//#endregion
|
|
1673
|
+
//#region recce-source/js/src/components/rowcount/delta.d.ts
|
|
1674
|
+
declare function deltaPercentageString(base: number, current: number): string;
|
|
1675
|
+
//#endregion
|
|
1676
|
+
//#region recce-source/js/src/constants/urls.d.ts
|
|
1677
|
+
declare const RECCE_SUPPORT_CALENDAR_URL = "https://cal.com/team/recce/chat";
|
|
1678
|
+
//#endregion
|
|
1679
|
+
//#region recce-source/js/src/constants/tooltipMessage.d.ts
|
|
1680
|
+
declare const DisableTooltipMessages: {
|
|
1681
|
+
readonly add_or_remove: "Unavailable for added or removed resources.";
|
|
1682
|
+
};
|
|
1683
|
+
//#endregion
|
|
1684
|
+
//#region recce-source/js/src/lib/const.d.ts
|
|
1685
|
+
declare const PUBLIC_API_URL: string;
|
|
1686
|
+
declare const PUBLIC_CLOUD_WEB_URL: string;
|
|
1687
|
+
//#endregion
|
|
1688
|
+
//#region src/index.d.ts
|
|
1689
|
+
declare const VERSION = "0.1.0";
|
|
1690
|
+
//#endregion
|
|
1691
|
+
//#region recce-source/js/src/lib/api/adhocQuery.d.ts
|
|
1692
|
+
interface QueryParams extends QueryRunParams, QueryDiffParams, QueryPreviewChangeParams {}
|
|
1693
|
+
interface QueryPreviewChangeParams {
|
|
1694
|
+
current_model?: string;
|
|
1695
|
+
sql_template: string;
|
|
1696
|
+
primary_keys?: string[];
|
|
1697
|
+
}
|
|
1698
|
+
interface QueryRunParams {
|
|
1699
|
+
sql_template: string;
|
|
1700
|
+
}
|
|
1701
|
+
interface QueryViewOptions {
|
|
1702
|
+
pinned_columns?: string[];
|
|
1703
|
+
columnsRenderMode?: Record<string, ColumnRenderMode>;
|
|
1704
|
+
}
|
|
1705
|
+
type QueryResult = DataFrame;
|
|
1706
|
+
interface QueryDiffParams {
|
|
1707
|
+
sql_template: string;
|
|
1708
|
+
base_sql_template?: string;
|
|
1709
|
+
primary_keys?: string[];
|
|
1710
|
+
}
|
|
1711
|
+
interface QueryDiffResult {
|
|
1712
|
+
base?: DataFrame;
|
|
1713
|
+
current?: DataFrame;
|
|
1714
|
+
diff?: DataFrame;
|
|
1715
|
+
}
|
|
1716
|
+
interface QueryDiffViewOptions {
|
|
1717
|
+
changed_only?: boolean;
|
|
1718
|
+
primary_keys?: string[];
|
|
1719
|
+
pinned_columns?: string[];
|
|
1720
|
+
display_mode?: "inline" | "side_by_side";
|
|
1721
|
+
columnsRenderMode?: Record<string, ColumnRenderMode>;
|
|
1722
|
+
}
|
|
1723
|
+
declare function submitQuery(params: QueryRunParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
|
|
1724
|
+
declare function submitQueryBase(params: QueryRunParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
|
|
1725
|
+
declare function submitQueryDiff(params: QueryDiffParams, options?: SubmitOptions): Promise<Run | Pick<Run, "run_id">>;
|
|
1726
|
+
//#endregion
|
|
1727
|
+
//#region recce-source/js/src/lib/api/connectToCloud.d.ts
|
|
1728
|
+
interface ConnectToCloud {
|
|
1729
|
+
connection_url: string;
|
|
1730
|
+
}
|
|
1731
|
+
declare function connectToCloud(): Promise<ConnectToCloud>;
|
|
1732
|
+
//#endregion
|
|
1733
|
+
//#region recce-source/js/src/lib/api/flag.d.ts
|
|
1734
|
+
interface RecceServerFlags {
|
|
1735
|
+
single_env_onboarding: boolean;
|
|
1736
|
+
show_relaunch_hint: boolean;
|
|
1737
|
+
}
|
|
1738
|
+
declare function getServerFlag(client?: AxiosInstance): Promise<RecceServerFlags>;
|
|
1739
|
+
declare function markOnboardingCompleted(client?: AxiosInstance): Promise<void>;
|
|
1740
|
+
declare function markRelaunchHintCompleted(client?: AxiosInstance): Promise<void>;
|
|
1741
|
+
//#endregion
|
|
1742
|
+
//#region recce-source/js/src/lib/api/schemacheck.d.ts
|
|
1743
|
+
interface SchemaDiffViewParams {
|
|
1744
|
+
node_id?: string | string[];
|
|
1745
|
+
select?: string;
|
|
1746
|
+
exclude?: string;
|
|
1747
|
+
view_mode?: "all" | "changed_models";
|
|
1748
|
+
packages?: string[];
|
|
1749
|
+
}
|
|
1750
|
+
declare function createSchemaDiffCheck(params: SchemaDiffViewParams): Promise<Check>;
|
|
1751
|
+
//#endregion
|
|
1752
|
+
//#region recce-source/js/src/lib/api/select.d.ts
|
|
1753
|
+
interface SelectInput {
|
|
1754
|
+
select?: string;
|
|
1755
|
+
exclude?: string;
|
|
1756
|
+
packages?: string[];
|
|
1757
|
+
view_mode?: "all" | "changed_models";
|
|
1758
|
+
}
|
|
1759
|
+
interface SelectOutput {
|
|
1760
|
+
nodes: string[];
|
|
1761
|
+
}
|
|
1762
|
+
declare function select(input: SelectInput): Promise<SelectOutput>;
|
|
1763
|
+
//#endregion
|
|
1764
|
+
//#region recce-source/js/src/lib/api/state.d.ts
|
|
1765
|
+
interface SaveAsInput {
|
|
1766
|
+
filename: string;
|
|
1767
|
+
overwrite?: boolean;
|
|
1768
|
+
}
|
|
1769
|
+
interface ImportedState {
|
|
1770
|
+
runs: number;
|
|
1771
|
+
checks: number;
|
|
1772
|
+
}
|
|
1773
|
+
declare function saveAs(input: SaveAsInput): Promise<void>;
|
|
1774
|
+
declare function rename(input: SaveAsInput): Promise<void>;
|
|
1775
|
+
declare function exportState(): Promise<string>;
|
|
1776
|
+
declare function importState(file: File, checksOnly?: boolean): Promise<ImportedState>;
|
|
1777
|
+
declare function isStateSyncing(): Promise<boolean>;
|
|
1778
|
+
interface SyncStateInput {
|
|
1779
|
+
method?: "overwrite" | "revert" | "merge";
|
|
1780
|
+
}
|
|
1781
|
+
interface SyncStateResponse {
|
|
1782
|
+
status: "accepted" | "conflict" | "syncing";
|
|
1783
|
+
}
|
|
1784
|
+
declare function syncState(input: SyncStateInput): Promise<SyncStateResponse>;
|
|
1785
|
+
interface ShareStateResponse {
|
|
1786
|
+
status: string;
|
|
1787
|
+
message: string;
|
|
1788
|
+
share_url?: string;
|
|
1789
|
+
}
|
|
1790
|
+
declare function shareState(): Promise<ShareStateResponse>;
|
|
1791
|
+
//#endregion
|
|
1792
|
+
//#region recce-source/js/src/lib/api/user.d.ts
|
|
1793
|
+
interface User {
|
|
1794
|
+
id: string;
|
|
1795
|
+
login: string;
|
|
1796
|
+
login_type: string;
|
|
1797
|
+
email: string;
|
|
1798
|
+
onboarding_state: string;
|
|
1799
|
+
}
|
|
1800
|
+
declare function fetchUser(): Promise<User>;
|
|
1801
|
+
declare function fetchGitHubAvatar(userId: string): Promise<string | null>;
|
|
1802
|
+
//#endregion
|
|
1803
|
+
//#region recce-source/js/src/lib/api/version.d.ts
|
|
1804
|
+
declare function useVersionNumber(): {
|
|
1805
|
+
version: string;
|
|
1806
|
+
latestVersion: string;
|
|
1807
|
+
};
|
|
1808
|
+
//#endregion
|
|
1809
|
+
//#region recce-source/js/src/lib/api/localStorageKeys.d.ts
|
|
1810
|
+
declare const localStorageKeys: {
|
|
1811
|
+
bypassSaveOverwrite: string;
|
|
1812
|
+
previewChangeFeedbackID: string;
|
|
1813
|
+
prepareEnvGuideID: string;
|
|
1814
|
+
};
|
|
1815
|
+
//#endregion
|
|
1816
|
+
//#region recce-source/js/src/lib/api/sessionStorageKeys.d.ts
|
|
1817
|
+
declare const sessionStorageKeys: {
|
|
1818
|
+
recommendationIgnored: string;
|
|
1819
|
+
recommendationShowed: string;
|
|
1820
|
+
prevRefreshTimeStamp: string;
|
|
1821
|
+
lineageNotificationDismissed: string;
|
|
1822
|
+
};
|
|
1823
|
+
//#endregion
|
|
1824
|
+
export { ApiConfigProvider as $, RunToolbar as $n, TopKResult as $r, RunResultPane as $t, QueryDiffParams as A, getLineageWithError as Ai, GraphColumnNode as An, ValueDiffParams as Ar, IconSync as At, submitQueryDiff as B, ErrorBoundary as Bi, CreateCheckBody as Bn, RowCount as Br, SummaryView as Bt, createSchemaDiffCheck as C, ModelInfoResult as Ci, ModelRowCount as Cn, isSimpleRun as Cr, useCheckToast as Ct, markRelaunchHintCompleted as D, ServerInfoResult as Di, RowCountTagProps as Dn, ValueDiffDetailParams as Dr, IconImport as Dt, markOnboardingCompleted as E, SQLMeshInfo as Ei, RowCountDiffTagProps as En, isValueDiffRun as Er, IconExport as Et, QueryResult as F, stateMetadata as Fi, useLineageViewContext as Fn, RowCountDiffResult as Fr, NavBar as Ft, RECCE_SUPPORT_CALENDAR_URL as G, axiosClient as Gi, listChecks as Gn, HistogramDiffParams as Gr, TopKDiffResultView as Gt, PUBLIC_API_URL as H, ToasterProvider as Hi, createSimpleCheck as Hn, fetchModelRowCount as Hr, TopKSummaryList as Ht, QueryRunParams as I, LineagePage as Ii, LineageView as In, RowCountParams as Ir, TopBar as It, isSchemaChanged as J, updateCheck as Jn, ProfileDiffParams as Jr, HistogramDiffForm as Jt, deltaPercentageString as K, reactQueryClient as Ki, markAsPresetCheck as Kn, HistogramDiffResult as Kr, TopKDiffForm as Kt, QueryViewOptions as L, ScreenshotBox as Li, LineageDiffViewOptions as Ln, RowCountResult as Lr, EnvInfo$1 as Lt, QueryDiffViewOptions as M, getServerInfo as Mi, GraphNode as Mn, submitValueDiff as Mr, HistoryToggle as Mt, QueryParams as N, gitInfo as Ni, LineageViewTopBar as Nn, submitValueDiffDetail as Nr, RecceVersionBadge as Nt, ConnectToCloud as O, getLineage as Oi, NodeSqlView as On, ValueDiffDetailResult as Or, IconInfo as Ot, QueryPreviewChangeParams as P, pullRequestInfo as Pi, LineageViewContext as Pn, RowCountDiffParams as Pr, DisplayModeToggle as Pt, ApiConfig as Q, ScreenshotDataGrid as Qn, TopKDiffResult as Qr, RunStatusAndDate as Qt, submitQuery as R, HSplit as Ri, createLineageDiffCheck as Rn, submitRowCountDiff as Rr, SchemaSummary as Rt, SchemaDiffViewParams as S, ManifestMetadata as Si, SetupConnectionBanner as Sn, isSchemaDiffRun as Sr, useClipBoardToast as St, getServerFlag as T, NodeData as Ti, RowCountDiffTag as Tn, isValueDiffDetailRun as Tr, IconEdit as Tt, PUBLIC_CLOUD_WEB_URL as U, useToaster as Ui, deleteCheck as Un, queryModelRowCount as Ur, HistogramChart as Ut, VERSION as V, Toaster as Vi, createCheckByRun as Vn, RowCountDiff as Vr, SquareIcon as Vt, DisableTooltipMessages as W, MuiProvider as Wi, getCheck as Wn, queryRowCount as Wr, RowCountDiffResultView as Wt, buildQuery as X, ValueDiffForm as Xn, ProfileDiffViewOptions as Xr, ValueDiffResultView as Xt, buildDescription as Y, useChecks as Yn, ProfileDiffResult as Yr, ValueDiffDetailResultView as Yt, buildTitle as Z, ProfileDiffForm as Zn, TopKDiffParams as Zr, ProfileDiffResultView as Zt, shareState as _, CatalogMetadata as _i, QueryDiffResultView as _n, isQueryBaseRun as _r, useRunsAggregated as _t, fetchGitHubAvatar as a, cancelRun as ai, LineageDiffView as an, DataFrame as ar, RecceCheckContextProvider as at, SelectOutput as b, LineageDiffData as bi, QueryForm as bn, isRowCountDiffRun as br, RecceContextProvider as bt, SaveAsInput as c, searchRuns as ci, CheckBreadcrumb as cn, RowDataTypes as cr, useRecceActionContext as ct, SyncStateResponse as d, waitRun as di, ColumnNameCell as dn, RunParamTypes as dr, useRecceQueryContext as dt, submitProfileDiff as ei, RunModal as en, RunFormProps as er, useApiClient as et, exportState as f, CllInput as fi, SchemaView as fn, SchemaDiffParams as fr, useRowCountStateContext as ft, saveAs as g, getCll as gi, DiffText as gn, isProfileRun as gr, useLineageGraphContext as gt, rename as h, ImpactRadiusParams as hi, SetupConnectionGuide as hn, isProfileDiffRun as hr, LineageGraphContextProvider as ht, User as i, aggregateRuns as ii, SchemaDiffView as in, ColumnType as ir, useIdleTimeout as it, QueryDiffResult as j, getModelInfo as ji, GraphEdge as jn, ValueDiffResult as jr, IdleTimeoutBadge as jt, connectToCloud as k, getLineageDiff as ki, NodeView as kn, ValueDiffDetailViewOptions as kr, IconSave as kt, ShareStateResponse as l, submitRun as li, CheckDetail as ln, RowObjectType as lr, RecceQueryContextProvider as lt, isStateSyncing as m, ColumnLineageData as mi, CodeEditor as mn, isLineageDiffRun as mr, useRecceShareStateContext as mt, localStorageKeys as n, SubmitOptions as ni, RunList as nn, AxiosQueryParams as nr, useApiConfigSafe as nt, fetchUser as o, getRun as oi, CheckEmptyState as on, LineageDiffParams as or, useRecceCheckContext as ot, importState as p, CllNodeData as pi, DiffEditor as pn, isHistogramDiffRun as pr, RecceShareStateContextProvider as pt, columnPrecisionSelectOptions as q, reorderChecks as qn, HistogramResult as qr, HistogramDiffResultView as qt, useVersionNumber as r, SubmitRunTrackProps as ri, RunPage as rn, ColumnRenderMode as rr, IdleTimeoutProvider as rt, ImportedState as s, listRuns as si, CheckDescription as sn, RowData as sr, RecceActionContextProvider as st, sessionStorageKeys as t, RunsAggregated as ti, RunView as tn, RunResultViewProps as tr, useApiConfig as tt, SyncStateInput as u, submitRunFromCheck as ui, CheckList as un, Run as ur, RowCountStateContextProvider as ut, syncState as v, LineageData as vi, QueryResultView as vn, isQueryDiffRun as vr, RecceInstanceInfoProvider as vt, RecceServerFlags as w, NodeColumnData as wi, ResourceTypeTag as wn, isTopKDiffRun as wr, useRecceInstanceInfo as wt, select as x, LineageDiffResult as xi, QueryPage as xn, isRowCountRun as xr, useValueDiffAlertDialog as xt, SelectInput as y, LineageDataFromMetadata as yi, SqlEditor as yn, isQueryRun as yr, useRecceInstanceContext as yt, submitQueryBase as z, VSplit as zi, Check as zn, QueryRowCountResult as zr, ChangeSummary as zt };
|
|
1825
|
+
//# sourceMappingURL=index-CVPmrztP.d.ts.map
|