@prefecthq/prefect-ui-library 1.6.30 → 1.6.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,6 +20,7 @@ export * from './useFlowRunsInfiniteScroll';
20
20
  export * from './useFlows';
21
21
  export * from './useFlowsCount';
22
22
  export * from './useForm';
23
+ export * from './useInterval';
23
24
  export * from './useJsonRecord';
24
25
  export * from './useLastFlowRun';
25
26
  export * from './useNextFlowRun';
@@ -1,7 +1,8 @@
1
+ import { SubscriptionOptions } from '@prefecthq/vue-compositions';
1
2
  import { FlowsFilter } from '../models';
2
3
  import { WorkspaceFlowsApi } from '../services';
3
4
  import { MaybeRef } from '../types';
4
5
  import { UseEntitySubscription } from '../types/useEntitySubscription';
5
6
  export type UseFlows = UseEntitySubscription<WorkspaceFlowsApi['getFlows'], 'flows'>;
6
- export declare function useFlows(filter: MaybeRef<FlowsFilter>): UseFlows;
7
- export declare function useFlows(flowIds: MaybeRef<string[] | null | undefined>): UseFlows;
7
+ export declare function useFlows(filter: MaybeRef<FlowsFilter | null | undefined>, options?: SubscriptionOptions): UseFlows;
8
+ export declare function useFlows(flowIds: MaybeRef<string[] | null | undefined>, options?: SubscriptionOptions): UseFlows;
@@ -0,0 +1,5 @@
1
+ import { SubscriptionOptions } from '@prefecthq/vue-compositions';
2
+ import { InjectionKey } from 'vue';
3
+ export type UseInterval = Pick<SubscriptionOptions, 'interval'>;
4
+ export declare const subscriptionIntervalKey: InjectionKey<UseInterval>;
5
+ export declare function useInterval(defaults?: UseInterval): UseInterval | undefined;
@@ -161,6 +161,8 @@ export declare const localization: {
161
161
  result: string;
162
162
  noResults: string;
163
163
  none: string;
164
+ dashboardWorkPoolsCard: string;
165
+ percentChangeOverTimePeriod: (percent: string | number) => string;
164
166
  infraOverrides: string;
165
167
  terminalTaskRunNoArtifacts: string;
166
168
  nonTerminalTaskRunNoArtifacts: string;
@@ -161,6 +161,8 @@ export declare const en: {
161
161
  result: string;
162
162
  noResults: string;
163
163
  none: string;
164
+ dashboardWorkPoolsCard: string;
165
+ percentChangeOverTimePeriod: (percent: string | number) => string;
164
166
  infraOverrides: string;
165
167
  terminalTaskRunNoArtifacts: string;
166
168
  nonTerminalTaskRunNoArtifacts: string;
@@ -8,6 +8,7 @@ export interface IWorkPool {
8
8
  description: string | null;
9
9
  type: string;
10
10
  isPaused: boolean;
11
+ isPushPool: boolean;
11
12
  defaultQueueId: string;
12
13
  concurrencyLimit: number | null;
13
14
  baseJobTemplate: BaseJobTemplateRequest;
@@ -20,6 +21,7 @@ export declare class WorkPool implements IWorkPool {
20
21
  description: string | null;
21
22
  type: string;
22
23
  isPaused: boolean;
24
+ isPushPool: boolean;
23
25
  defaultQueueId: string;
24
26
  concurrencyLimit: number | null;
25
27
  baseJobTemplate: BaseJobTemplateRequest;
@@ -12,6 +12,7 @@ export type WorkPoolResponse = {
12
12
  description: string | null;
13
13
  type: string;
14
14
  is_paused: boolean | null;
15
+ is_push_pool?: boolean;
15
16
  concurrency_limit: number | null;
16
17
  default_queue_id: string;
17
18
  base_job_template: BaseJobTemplateResponse;
@@ -10,6 +10,7 @@ export interface IWorkspaceFlowRunsApi {
10
10
  getFlowRuns: (filter: FlowRunsFilter) => Promise<FlowRun[]>;
11
11
  getFlowRunsCount: (filter: FlowRunsFilter) => Promise<number>;
12
12
  getFlowRunsHistory: (filter: FlowRunsHistoryFilter) => Promise<RunHistory[]>;
13
+ getFlowRunsAverageLateness: (filter: FlowRunsFilter) => Promise<number | null>;
13
14
  getFlowRunsGraph: (flowRunId: string) => Promise<GraphNode[]>;
14
15
  getFlowRunsTimeline: (flowRunId: string) => Promise<GraphTimelineNode[]>;
15
16
  retryFlowRun: (flowRunId: string) => Promise<void>;
@@ -24,6 +25,7 @@ export declare class WorkspaceFlowRunsApi extends WorkspaceApi implements IWorks
24
25
  getFlowRuns(filter?: FlowRunsFilter): Promise<FlowRun[]>;
25
26
  getFlowRunsCount(filter?: FlowRunsFilter): Promise<number>;
26
27
  getFlowRunsHistory(filter: FlowRunsHistoryFilter): Promise<RunHistory[]>;
28
+ getFlowRunsAverageLateness(filter: FlowRunsFilter): Promise<number | null>;
27
29
  getFlowRunsGraph(flowRunId: string): Promise<GraphNode[]>;
28
30
  getFlowRunsTimeline(id: string): Promise<GraphTimelineNode[]>;
29
31
  retryFlowRun(id: string): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { k as O, f as k, $ as b, l as c } from "./index-a944666a.mjs";
1
+ import { k as O, f as k, $ as b, l as c } from "./index-9c80682e.mjs";
2
2
  import "vue";
3
3
  import "@prefecthq/vue-charts";
4
4
  import "@prefecthq/prefect-design";
@@ -1535,4 +1535,4 @@ export {
1535
1535
  C as Viewport,
1536
1536
  N as Wheel
1537
1537
  };
1538
- //# sourceMappingURL=viewport.es-ae91b8e8-ffafa92a.mjs.map
1538
+ //# sourceMappingURL=viewport.es-ae91b8e8-8b154159.mjs.map