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

36 lines (32 loc) 1.08 kB
import type { Schedule } from '@/models/Schedule' import type { SchemaValuesV2 } from '@/schemas' export interface IDeploymentSchedule { id: string, created: Date, updated: Date, slug: string | null, active: boolean, schedule: Schedule, jobVariables: Record<string, unknown>, parameters: SchemaValuesV2 | null, } export class DeploymentSchedule implements IDeploymentSchedule { public readonly id: string public created: Date public updated: Date public slug: string | null public active: boolean public schedule: Schedule public jobVariables: Record<string, unknown> public parameters: SchemaValuesV2 | null public constructor(deploymentSchedule: IDeploymentSchedule) { this.id = deploymentSchedule.id this.created = deploymentSchedule.created this.updated = deploymentSchedule.updated this.slug = deploymentSchedule.slug this.active = deploymentSchedule.active this.schedule = deploymentSchedule.schedule this.jobVariables = deploymentSchedule.jobVariables this.parameters = deploymentSchedule.parameters } }