import { MetadataStoreServicePromiseClient } from 'src/third_party/mlmd' ; /** Known Artifact properties */ export enum ArtifactProperties { ALL_META = '__ALL_META__' , CREATE_TIME = 'create_time' , DESCRIPTION = 'description' , NAME = 'name' , PIPELINE_NAME = 'pipeline_name' , VERSION = 'version' } /** Known Artifact custom properties */ export enum ArtifactCustomProperties { WORKSPACE = '__kf_workspace__' , RUN = '__kf_run__' , NAME = 'name' , PIPELINE_NAME = 'pipeline_name' , RUN_ID = 'run_id' } /** Known Execution properties */ export enum ExecutionProperties { NAME = 'name' , COMPONENT_ID = 'component_id' , PIPELINE_NAME = 'pipeline_name' , RUN_ID = 'run_id' , STATE = 'state' } /** Known Execution custom properties */ export enum ExecutionCustomProperties { NAME = 'name' , WORKSPACE = '__kf_workspace__' , RUN = '__kf_run__' , RUN_ID = 'run_id' , TASK_ID = 'task_id' } /** Format for a List request */ export interface ListRequest { filter ? : string ; orderAscending ? : boolean ; pageSize ? : number ; pageToken ? : string ; sortBy ? : string ; } /**
 * Class to wrap backend APIs.
 */ export class Api { private static instance : Api ; private metadataServicePromiseClient = new MetadataStoreServicePromiseClient ( '' , null , null ) ; /**
     * Factory function to return an Api instance.
     */ public static getInstance ( ) { if ( ! Api . instance ) { Api . instance = new Api ( ) ; } return Api . instance ; } get metadataStoreService ( ) { return this . metadataServicePromiseClient ; } }