UNPKG

@prefecthq/prefect-ui-library

Version:

This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.

26 lines (25 loc) 792 B
import { EmpiricalPolicy } from '../models/EmpiricalPolicy'; import { StateCreate } from '../models/StateCreate'; import { SchemaValuesV2 } from '../schemas'; type Base = { name?: string | null; idempotencyKey?: string | null; context?: unknown; empiricalPolicy?: EmpiricalPolicy; tags?: string[] | null; parentTaskRunId?: string | null; infrastructureDocumentId?: string | null; state?: StateCreate; workQueueName?: string | null; jobVariables?: Record<string, unknown>; enforceParameterSchema?: boolean | null; }; type WithoutParameters = Base & { schema?: never; parameters?: never; }; type WithParameters = Base & { parameters: SchemaValuesV2; }; export type DeploymentFlowRunCreate = WithoutParameters | WithParameters; export {};