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_.

27 lines (22 loc) 710 B
import { DeploymentConcurrencyOptions } from '@/models/Deployment' import { SchemaValuesV2 } from '@/schemas' type Base = { description?: string | null, paused?: boolean, tags?: string[] | null, workQueueName?: string | null, workPoolName?: string | null, jobVariables?: Record<string, unknown> | null, enforceParameterSchema?: boolean, concurrencyLimit?: number | null, concurrencyOptions?: DeploymentConcurrencyOptions | null, } type WithoutParameters = Base & { schema?: never, parameters?: never, } type WithParameters = Base & { parameters: SchemaValuesV2, } export type DeploymentUpdateV2 = WithoutParameters | WithParameters export type DeploymentUpdate = DeploymentUpdateV2