-
Notifications
You must be signed in to change notification settings - Fork 969
/
Copy pathLineage.ts
46 lines (41 loc) · 912 Bytes
/
Lineage.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { Badge } from './Badges';
export interface LineageItem {
badges: Badge[];
cluster: string;
database: string;
key: string;
level: number;
name: string;
schema: string;
parent: string | null;
usage: number | null;
source?: string;
link?: string;
in_amundsen?: boolean;
}
export interface Lineage {
key?: string;
direction?: string;
depth?: number;
downstream_entities: LineageItem[];
upstream_entities: LineageItem[];
}
export interface TableLineageParams {
key: string;
direction: string;
depth: number;
}
export interface ColumnLineageParams {
key: string;
direction: string;
depth: number;
column: string;
}
// To keep the backward compatibility for the list based lineage
// ToDo: Please remove once list based view is deprecated
export interface ColumnLineageMap {
[columnName: string]: {
lineageTree: Lineage;
isLoading: boolean;
};
}