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

46 lines (45 loc) 1.6 kB
import { DateRangeSelectAroundUnit } from '@prefecthq/prefect-design'; export type SavedSearchResponse = { id: string; created?: string; updated?: string; name: string; filters?: SavedSearchFilterResponse[]; }; export type DateRangeSpanResponse = { type: 'span'; seconds: number; }; export declare function isDateRangeSpanResponse(value: unknown): value is DateRangeSpanResponse; export type DateRangeRangeResponse = { type: 'range'; startDate: string; endDate: string; }; export declare function isDateRangeRangeResponse(value: unknown): value is DateRangeRangeResponse; export type DateRangePeriodResponse = { type: 'period'; period: 'Today'; }; export declare function isDateRangePeriodResponse(value: unknown): value is DateRangePeriodResponse; export type DateRangeAroundResponse = { type: 'around'; date: string; quantity: number; unit: DateRangeSelectAroundUnit; }; export declare function isDateRangeAroundResponse(value: unknown): value is DateRangeAroundResponse; export type DateRangeResponse = DateRangeSpanResponse | DateRangeRangeResponse | DateRangePeriodResponse | DateRangeAroundResponse; export declare function isDateRangeResponse(value: unknown): value is DateRangeResponse; export type FilterResponseValue = string | string[] | DateRangeResponse; export interface SavedSearchFilterResponse { object?: string; property?: string; type?: string; operation?: string; value?: FilterResponseValue; } export type SavedSearchCreateRequest = { name?: string; filters?: SavedSearchFilterResponse[]; };