@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_.
34 lines (29 loc) • 766 B
text/typescript
import { DateRangeSelectValue } from '@prefecthq/prefect-design'
export interface ISavedSearch {
id: string | null,
name: string,
filters: SavedSearchFilter,
}
export interface SavedSearchCreate {
name: string,
filters: SavedSearchFilter,
}
export class SavedSearch implements ISavedSearch {
public readonly id: string | null
public name: string
public filters: SavedSearchFilter
public constructor(savedSearch: ISavedSearch) {
this.id = savedSearch.id
this.name = savedSearch.name
this.filters = savedSearch.filters
}
}
export type SavedSearchFilter = {
state?: string[],
flow?: string[],
tag?: string[],
deployment?: string[],
workQueue?: string[],
workPool?: string[],
range: NonNullable<DateRangeSelectValue>,
}