30 lines
803 B
TypeScript

import { IDatasetView } from 'wherehows-web/typings/api/datasets/dataset';
import { IDropDownOption } from 'wherehows-web/typings/app/dataset-compliance';
/**
* Alias for a list of IDatasetView instances
* @alias
* @type Relationships
*/
type Relationships = Array<IDatasetView>;
/**
* Alias for a drop-down option based on an IDatasetView nativeType
* @alias
* @type RelationshipType
*/
type RelationshipType = IDropDownOption<string>;
/**
* Relationship upstream and downstream api will return Array<IDatasetLineage> displaying
* the type of dataset, type of lineage, and actor urn that modified that relationship
*/
interface IDatasetLineage {
dataset: IDatasetView;
type: string;
actor: string;
modified: string;
}
export { Relationships, RelationshipType, IDatasetLineage };