2018-07-20 02:55:10 -07:00
|
|
|
import { IDatasetView } from 'wherehows-web/typings/api/datasets/dataset';
|
2018-07-23 10:51:27 -07:00
|
|
|
import { IDropDownOption } from 'wherehows-web/typings/app/dataset-compliance';
|
2018-07-20 02:55:10 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Alias for a list of IDatasetView instances
|
|
|
|
|
* @alias
|
|
|
|
|
* @type Relationships
|
|
|
|
|
*/
|
|
|
|
|
type Relationships = Array<IDatasetView>;
|
|
|
|
|
|
2018-07-23 10:51:27 -07:00
|
|
|
/**
|
|
|
|
|
* Alias for a drop-down option based on an IDatasetView nativeType
|
|
|
|
|
* @alias
|
|
|
|
|
* @type RelationshipType
|
|
|
|
|
*/
|
|
|
|
|
type RelationshipType = IDropDownOption<string>;
|
|
|
|
|
|
2018-09-13 17:31:31 -07:00
|
|
|
/**
|
|
|
|
|
* 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 };
|