/**
 * This file provides common types used by the Lineage Explorer components
 */ import { Artifact , Execution } from 'src/third_party/mlmd' ; export type LineageCardType = 'artifact' | 'execution' ; export interface LineageRow { prev ? : boolean ; next ? : boolean ; typedResource : LineageTypedResource ; resourceDetailsPageRoute : string ; } export type LineageResource = Artifact | Execution ; export type LineageTypedResource = { type : 'artifact' ; resource : Artifact ; } | { type : 'execution' ; resource : Execution ; } ; export const DEFAULT_LINEAGE_CARD_TYPE = 'artifact' as LineageCardType ;