@prefecthq/prefect-ui-library 1.4.3 → 1.4.5

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.
Files changed (38) hide show
  1. package/dist/{index-d3611b56.mjs → index-ce741345.mjs} +11891 -11741
  2. package/dist/index-ce741345.mjs.map +1 -0
  3. package/dist/prefect-ui-library.mjs +461 -461
  4. package/dist/prefect-ui-library.umd.js +80 -80
  5. package/dist/prefect-ui-library.umd.js.map +1 -1
  6. package/dist/style.css +1 -1
  7. package/dist/types/demo/compositions/useSeeds.d.ts +2 -1
  8. package/dist/types/demo/services/MockApi.d.ts +1 -0
  9. package/dist/types/demo/services/mockWorkspaceArtifactsApi.d.ts +4 -1
  10. package/dist/types/demo/services/mockWorkspaceFlowRunsApi.d.ts +3 -2
  11. package/dist/types/demo/utilities/api.d.ts +2 -1
  12. package/dist/types/demo/utilities/data.d.ts +3 -1
  13. package/dist/types/src/components/ArtifactCard.vue.d.ts +2 -0
  14. package/dist/types/src/components/FlowRunArtifacts.vue.d.ts +23 -0
  15. package/dist/types/src/components/TaskRunArtifacts.vue.d.ts +23 -0
  16. package/dist/types/src/components/index.d.ts +1 -0
  17. package/dist/types/src/compositions/useWorkspaceRoutes.d.ts +2 -2
  18. package/dist/types/src/localization/index.d.ts +6 -0
  19. package/dist/types/src/localization/locale/en.d.ts +6 -0
  20. package/dist/types/src/maps/artifact.d.ts +3 -0
  21. package/dist/types/src/maps/flowRunTimeline.d.ts +2 -2
  22. package/dist/types/src/maps/index.d.ts +5 -2
  23. package/dist/types/src/models/ArtifactCollection.d.ts +19 -0
  24. package/dist/types/src/models/Filters.d.ts +0 -1
  25. package/dist/types/src/models/api/ArtifactCollectionResponse.d.ts +5 -0
  26. package/dist/types/src/models/api/Filters.d.ts +0 -1
  27. package/dist/types/src/models/index.d.ts +1 -1
  28. package/dist/types/src/router/routes.d.ts +2 -2
  29. package/dist/types/src/services/Mapper.d.ts +5 -2
  30. package/dist/types/src/services/WorkspaceApi.d.ts +1 -1
  31. package/dist/types/src/services/WorkspaceArtifactsApi.d.ts +8 -0
  32. package/dist/types/src/services/WorkspaceFlowRunsApi.d.ts +4 -3
  33. package/dist/types/src/utilities/validation.d.ts +2 -0
  34. package/dist/{viewport.es-ff98659c-f500916f.mjs → viewport.es-84fb8076-891a43a9.mjs} +2 -2
  35. package/dist/{viewport.es-ff98659c-f500916f.mjs.map → viewport.es-84fb8076-891a43a9.mjs.map} +1 -1
  36. package/package.json +6 -5
  37. package/dist/index-d3611b56.mjs.map +0 -1
  38. package/dist/types/src/models/TimelineNode.d.ts +0 -19
@@ -1,5 +1,6 @@
1
+ import { GraphTimelineNode } from '@prefecthq/graphs';
1
2
  import { MockApi } from '../../src/../demo/services/MockApi';
2
- import { FlowRun, GraphNode, RunHistory, StateUpdate, TimelineNode } from '../../src/models';
3
+ import { FlowRun, GraphNode, RunHistory, StateUpdate } from '../../src/models';
3
4
  import { FlowRunsFilter, FlowRunsHistoryFilter } from '../../src/models/Filters';
4
5
  import { IWorkspaceFlowRunsApi } from '../../src/services';
5
6
  export declare class MockWorkspaceFlowRunsApi extends MockApi implements IWorkspaceFlowRunsApi {
@@ -8,7 +9,7 @@ export declare class MockWorkspaceFlowRunsApi extends MockApi implements IWorksp
8
9
  getFlowRunsCount(filter: FlowRunsFilter): Promise<number>;
9
10
  getFlowRunsHistory(filter: FlowRunsHistoryFilter): Promise<RunHistory[]>;
10
11
  getFlowRunsGraph(graphId: string): Promise<GraphNode[]>;
11
- getFlowRunsTimeline(): Promise<TimelineNode[]>;
12
+ getFlowRunsTimeline(): Promise<GraphTimelineNode[]>;
12
13
  retryFlowRun(): Promise<void>;
13
14
  setFlowRunState(flowRunId: string, body: StateUpdate): Promise<void>;
14
15
  resumeFlowRun(flowRunId: string): Promise<void>;
@@ -1,9 +1,10 @@
1
1
  import { FlowRunGraphMock } from '../types/flowRunGraphMock';
2
- import { Artifact, BlockDocument, BlockSchema, BlockType, Deployment, Flow, FlowRun, TaskRun, WorkPool, WorkPoolQueue, WorkQueue, WorkPoolWorker } from '../../src/models';
2
+ import { Artifact, BlockDocument, BlockSchema, BlockType, Deployment, Flow, FlowRun, TaskRun, WorkPool, WorkPoolQueue, WorkQueue, WorkPoolWorker, ArtifactCollection } from '../../src/models';
3
3
  import { ConcurrencyLimit } from '../../src/models/ConcurrencyLimit';
4
4
  import { CreateApi } from '../../src/utilities';
5
5
  export type ApiMockSeeds = {
6
6
  artifacts?: Artifact[];
7
+ artifactCollections?: ArtifactCollection[];
7
8
  flows?: Flow[];
8
9
  flowRuns?: FlowRun[];
9
10
  flowRunGraphs?: FlowRunGraphMock[];
@@ -2,9 +2,10 @@ import { KeyedDataStore } from '../services/KeyedDataStore';
2
2
  import { SimpleDataStore } from '../services/SimpleDataStore';
3
3
  import { ApiMockSeeds } from './api';
4
4
  import { FlowRunGraphMock } from '../types/flowRunGraphMock';
5
- import { Flow, FlowRun, BlockDocument, BlockSchema, TaskRun, Deployment, WorkQueue, BlockType, WorkPool, WorkPoolQueue, WorkPoolWorker, Artifact } from '../../src/models';
5
+ import { Flow, FlowRun, BlockDocument, BlockSchema, TaskRun, Deployment, WorkQueue, BlockType, WorkPool, WorkPoolQueue, WorkPoolWorker, Artifact, ArtifactCollection } from '../../src/models';
6
6
  export declare function createDataStores(seeds?: ApiMockSeeds): {
7
7
  artifacts: KeyedDataStore<Artifact, string>;
8
+ artifactCollections: KeyedDataStore<ArtifactCollection, string>;
8
9
  flows: KeyedDataStore<Flow, string>;
9
10
  flowRuns: KeyedDataStore<FlowRun, string>;
10
11
  flowRunGraphs: KeyedDataStore<FlowRunGraphMock, string>;
@@ -23,6 +24,7 @@ export declare function createDataStores(seeds?: ApiMockSeeds): {
23
24
  export type CreateDataStores = ReturnType<typeof createDataStores>;
24
25
  export declare const data: {
25
26
  artifacts: KeyedDataStore<Artifact, string>;
27
+ artifactCollections: KeyedDataStore<ArtifactCollection, string>;
26
28
  flows: KeyedDataStore<Flow, string>;
27
29
  flowRuns: KeyedDataStore<FlowRun, string>;
28
30
  flowRunGraphs: KeyedDataStore<FlowRunGraphMock, string>;
@@ -7,6 +7,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
7
7
  condense?: boolean | undefined;
8
8
  }>>>, {}>, {
9
9
  default: (_: {}) => any;
10
+ 'summary-label': (_: {}) => any;
11
+ 'summary-value': (_: {}) => any;
10
12
  }>;
11
13
  export default _default;
12
14
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,23 @@
1
+ import { FlowRun } from '../models';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ flowRun: FlowRun;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ flowRun: FlowRun;
6
+ }>>>, {}>, {
7
+ actions: (_: {}) => any;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,23 @@
1
+ import { TaskRun } from '../models';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ taskRun: TaskRun;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ taskRun: TaskRun;
6
+ }>>>, {}>, {
7
+ actions: (_: {}) => any;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -81,6 +81,7 @@ export { default as FlowDetails } from './FlowDetails.vue';
81
81
  export { default as FlowIconText } from './FlowIconText.vue';
82
82
  export { default as FlowMenu } from './FlowMenu.vue';
83
83
  export { default as FlowRouterLink } from './FlowRouterLink.vue';
84
+ export { default as FlowRunArtifacts } from './FlowRunArtifacts.vue';
84
85
  export { default as FlowRunCancelButton } from './FlowRunCancelButton.vue';
85
86
  export { default as FlowRunCancelModal } from './FlowRunCancelModal.vue';
86
87
  export { default as FlowRunCreateForm } from './FlowRunCreateForm.vue';
@@ -7,12 +7,12 @@ export declare function useWorkspaceRoutes(): {
7
7
  readonly artifactId: string;
8
8
  };
9
9
  };
10
- artifactKey: (artifactId: string) => {
10
+ artifactKey: (artifactKey: string) => {
11
11
  readonly name: "workspace.artifacts.artifact.key";
12
12
  readonly params: {
13
13
  readonly accountId?: string | undefined;
14
14
  readonly workspaceId?: string | undefined;
15
- readonly artifactId: string;
15
+ readonly artifactKey: string;
16
16
  };
17
17
  };
18
18
  artifacts: () => {
@@ -49,6 +49,7 @@ export declare const localization: {
49
49
  stringValueTooLong: (property: string, max: number) => string;
50
50
  numberValueTooLarge: (property: string, max: number) => string;
51
51
  valueTooLarge: (property: string, max: number) => string;
52
+ mustBeSnakeCase: (property: string) => string;
52
53
  submitNotification: string;
53
54
  updateBlock: string;
54
55
  updateNotification: string;
@@ -124,6 +125,11 @@ export declare const localization: {
124
125
  filterByTags: string;
125
126
  invalidData: (docsUrl: string) => string;
126
127
  noResults: string;
128
+ none: string;
129
+ terminalTaskRunNoArtifacts: string;
130
+ nonTerminalTaskRunNoArtifacts: string;
131
+ terminalFlowRunNoArtifacts: string;
132
+ nonTerminalFlowRunNoArtifacts: string;
127
133
  flowRun: string;
128
134
  taskRun: string;
129
135
  taskRuns: string;
@@ -49,6 +49,7 @@ export declare const en: {
49
49
  stringValueTooLong: (property: string, max: number) => string;
50
50
  numberValueTooLarge: (property: string, max: number) => string;
51
51
  valueTooLarge: (property: string, max: number) => string;
52
+ mustBeSnakeCase: (property: string) => string;
52
53
  submitNotification: string;
53
54
  updateBlock: string;
54
55
  updateNotification: string;
@@ -124,6 +125,11 @@ export declare const en: {
124
125
  filterByTags: string;
125
126
  invalidData: (docsUrl: string) => string;
126
127
  noResults: string;
128
+ none: string;
129
+ terminalTaskRunNoArtifacts: string;
130
+ nonTerminalTaskRunNoArtifacts: string;
131
+ terminalFlowRunNoArtifacts: string;
132
+ nonTerminalFlowRunNoArtifacts: string;
127
133
  flowRun: string;
128
134
  taskRun: string;
129
135
  taskRuns: string;
@@ -1,4 +1,7 @@
1
+ import { ArtifactCollectionResponse } from '../models/api/ArtifactCollectionResponse';
1
2
  import { ArtifactResponse } from '../models/api/ArtifactResponse';
2
3
  import { Artifact } from '../models/Artifact';
4
+ import { ArtifactCollection } from '../models/ArtifactCollection';
3
5
  import { MapFunction } from '../services/Mapper';
4
6
  export declare const mapArtifactResponseToArtifact: MapFunction<ArtifactResponse, Artifact>;
7
+ export declare const mapArtifactCollectionResponseToArtifactCollection: MapFunction<ArtifactCollectionResponse, ArtifactCollection>;
@@ -1,4 +1,4 @@
1
+ import { GraphTimelineNode } from '@prefecthq/graphs';
1
2
  import { FlowRunGraphResponse } from '../models/api/FlowRunGraphResponse';
2
- import { TimelineNode } from '../models/TimelineNode';
3
3
  import { MapFunction } from '../services/Mapper';
4
- export declare const mapFlowRunGraphResponseToTimelineNode: MapFunction<FlowRunGraphResponse, TimelineNode>;
4
+ export declare const mapFlowRunGraphResponseToTimelineNode: MapFunction<FlowRunGraphResponse, GraphTimelineNode>;
@@ -5,6 +5,9 @@ export declare const maps: {
5
5
  ArtifactResponse: {
6
6
  Artifact: import("..").MapFunction<import("..").ArtifactResponse, import("..").Artifact>;
7
7
  };
8
+ ArtifactCollectionResponse: {
9
+ ArtifactCollection: import("..").MapFunction<import("../models/api/ArtifactCollectionResponse").ArtifactCollectionResponse, import("..").ArtifactCollection>;
10
+ };
8
11
  ArtifactsFilter: {
9
12
  ArtifactsFilterRequest: import("..").MapFunction<import("..").ArtifactsFilter, import("../models/api/Filters").ArtifactsFilterRequest>;
10
13
  };
@@ -126,7 +129,7 @@ export declare const maps: {
126
129
  };
127
130
  FlowRunGraphResponse: {
128
131
  GraphNode: import("..").MapFunction<import("..").FlowRunGraphResponse, import("..").GraphNode>;
129
- TimelineNode: import("..").MapFunction<import("..").FlowRunGraphResponse, import("..").TimelineNode>;
132
+ TimelineNode: import("..").MapFunction<import("..").FlowRunGraphResponse, import("@prefecthq/graphs").GraphTimelineNode>;
130
133
  };
131
134
  FlowRunHistoryResponse: {
132
135
  RunHistory: import("..").MapFunction<import("..").FlowRunHistoryResponse, import("..").RunHistory>;
@@ -175,7 +178,7 @@ export declare const maps: {
175
178
  };
176
179
  RunHistory: {
177
180
  FlowRunHistoryResponse: import("..").MapFunction<import("..").RunHistory, import("..").FlowRunHistoryResponse>;
178
- DivergingBarChartItem: import("..").MapFunction<import("..").RunHistory, import("@prefecthq/vue-charts").DivergingBarChartItem>;
181
+ DivergingBarChartItem: import("..").MapFunction<import("..").RunHistory, import("@prefecthq/vue-charts").DivergingBarChartItem<Record<string, number>>>;
179
182
  };
180
183
  SavedSearchCreate: {
181
184
  SavedSearchCreateRequest: import("..").MapFunction<import("..").SavedSearchCreate, import("..").SavedSearchCreateRequest>;
@@ -0,0 +1,19 @@
1
+ import { ArtifactData, ArtifactMetadata, ArtifactType, IArtifact } from '../models/Artifact';
2
+ export interface IArtifactCollection extends IArtifact {
3
+ latestId: string;
4
+ key: string;
5
+ }
6
+ export declare class ArtifactCollection implements IArtifactCollection {
7
+ readonly id: string;
8
+ readonly latestId: string;
9
+ readonly key: string;
10
+ readonly flowRunId: string | null;
11
+ readonly taskRunId: string | null;
12
+ readonly created: Date;
13
+ readonly updated: Date;
14
+ type: ArtifactType;
15
+ description: string | null;
16
+ data: ArtifactData;
17
+ metadata: ArtifactMetadata;
18
+ constructor(artifact: IArtifactCollection);
19
+ }
@@ -61,7 +61,6 @@ export type ArtifactFilter = {
61
61
  key?: string[];
62
62
  keyLike?: string;
63
63
  keyExists?: boolean;
64
- isLatest?: boolean;
65
64
  type?: string[];
66
65
  notType?: string[];
67
66
  flowRunId?: string[];
@@ -0,0 +1,5 @@
1
+ import { ArtifactResponse } from '../../models/api/ArtifactResponse';
2
+ export type ArtifactCollectionResponse = ArtifactResponse & {
3
+ latest_id: string;
4
+ key: string;
5
+ };
@@ -145,7 +145,6 @@ export type ArtifactFilterRequest = {
145
145
  type?: Any & NotAny;
146
146
  flow_run_id?: Any;
147
147
  task_run_id?: Any;
148
- is_latest?: Latest;
149
148
  };
150
149
  export type ArtifactsFilterRequest = {
151
150
  artifacts?: ArtifactFilterRequest;
@@ -1,5 +1,6 @@
1
1
  export * from './api';
2
2
  export * from './Artifact';
3
+ export * from './ArtifactCollection';
3
4
  export * from './BatchLookupError';
4
5
  export * from './BlockDocument';
5
6
  export * from './BlockDocumentCreate';
@@ -45,7 +46,6 @@ export * from './StateType';
45
46
  export * from './StateUpdate';
46
47
  export * from './TaskInput';
47
48
  export * from './TaskRun';
48
- export * from './TimelineNode';
49
49
  export * from './UiFlowRunHistory';
50
50
  export * from './Variable';
51
51
  export * from './VariableCreate';
@@ -11,12 +11,12 @@ export declare function createWorkspaceRoutes(config?: CreateWorkspaceRoutesConf
11
11
  readonly artifactId: string;
12
12
  };
13
13
  };
14
- artifactKey: (artifactId: string) => {
14
+ artifactKey: (artifactKey: string) => {
15
15
  readonly name: "workspace.artifacts.artifact.key";
16
16
  readonly params: {
17
17
  readonly accountId?: string | undefined;
18
18
  readonly workspaceId?: string | undefined;
19
- readonly artifactId: string;
19
+ readonly artifactKey: string;
20
20
  };
21
21
  };
22
22
  artifacts: () => {
@@ -29,6 +29,9 @@ export declare const mapper: Mapper<{
29
29
  ArtifactResponse: {
30
30
  Artifact: MapFunction<import("..").ArtifactResponse, import("..").Artifact>;
31
31
  };
32
+ ArtifactCollectionResponse: {
33
+ ArtifactCollection: MapFunction<import("../models/api/ArtifactCollectionResponse").ArtifactCollectionResponse, import("..").ArtifactCollection>;
34
+ };
32
35
  ArtifactsFilter: {
33
36
  ArtifactsFilterRequest: MapFunction<import("..").ArtifactsFilter, import("../models/api/Filters").ArtifactsFilterRequest>;
34
37
  };
@@ -150,7 +153,7 @@ export declare const mapper: Mapper<{
150
153
  };
151
154
  FlowRunGraphResponse: {
152
155
  GraphNode: MapFunction<import("..").FlowRunGraphResponse, import("..").GraphNode>;
153
- TimelineNode: MapFunction<import("..").FlowRunGraphResponse, import("..").TimelineNode>;
156
+ TimelineNode: MapFunction<import("..").FlowRunGraphResponse, import("@prefecthq/graphs").GraphTimelineNode>;
154
157
  };
155
158
  FlowRunHistoryResponse: {
156
159
  RunHistory: MapFunction<import("..").FlowRunHistoryResponse, import("..").RunHistory>;
@@ -199,7 +202,7 @@ export declare const mapper: Mapper<{
199
202
  };
200
203
  RunHistory: {
201
204
  FlowRunHistoryResponse: MapFunction<import("..").RunHistory, import("..").FlowRunHistoryResponse>;
202
- DivergingBarChartItem: MapFunction<import("..").RunHistory, import("@prefecthq/vue-charts").DivergingBarChartItem>;
205
+ DivergingBarChartItem: MapFunction<import("..").RunHistory, import("@prefecthq/vue-charts").DivergingBarChartItem<Record<string, number>>>;
203
206
  };
204
207
  SavedSearchCreate: {
205
208
  SavedSearchCreateRequest: MapFunction<import("..").SavedSearchCreate, import("..").SavedSearchCreateRequest>;
@@ -6,5 +6,5 @@ export type CloudApiConfig = PrefectConfig & {
6
6
  export type WorkspaceApiConfig = PrefectConfig | CloudApiConfig;
7
7
  export declare function isCloudConfig(config: WorkspaceApiConfig): config is CloudApiConfig;
8
8
  export declare class WorkspaceApi extends Api<WorkspaceApiConfig> {
9
- protected apiBaseUrl: ApiBaseUrl;
9
+ protected apiBaseUrl: ApiBaseUrl<PrefectConfig>;
10
10
  }
@@ -1,17 +1,25 @@
1
1
  import { Artifact } from '../models';
2
+ import { ArtifactCollection } from '../models/ArtifactCollection';
2
3
  import { ArtifactsFilter } from '../models/Filters';
3
4
  import { WorkspaceApi } from '../services/WorkspaceApi';
4
5
  export interface IWorkspaceArtifactsApi {
5
6
  getArtifact: (id: string) => Promise<Artifact>;
6
7
  getArtifacts: (filter: ArtifactsFilter) => Promise<Artifact[]>;
8
+ getArtifactCollection: (key: string) => Promise<ArtifactCollection>;
9
+ getArtifactCollections: (filter: ArtifactsFilter) => Promise<ArtifactCollection[]>;
7
10
  getArtifactsCount: (filter: ArtifactsFilter) => Promise<number>;
11
+ getArtifactCollectionsCount: (filter: ArtifactsFilter) => Promise<number>;
8
12
  deleteArtifact: (id: string) => Promise<void>;
9
13
  }
10
14
  export declare class WorkspaceArtifactsApi extends WorkspaceApi implements IWorkspaceArtifactsApi {
11
15
  protected routePrefix: string;
12
16
  private readonly batcher;
17
+ private readonly keyBatcher;
13
18
  getArtifact(id: string): Promise<Artifact>;
19
+ getArtifactCollection(key: string): Promise<ArtifactCollection>;
14
20
  getArtifacts(filter?: ArtifactsFilter): Promise<Artifact[]>;
15
21
  getArtifactsCount(filter?: ArtifactsFilter): Promise<number>;
22
+ getArtifactCollections(filter?: ArtifactsFilter): Promise<ArtifactCollection[]>;
23
+ getArtifactCollectionsCount(filter?: ArtifactsFilter): Promise<number>;
16
24
  deleteArtifact(id: string): Promise<void>;
17
25
  }
@@ -1,4 +1,5 @@
1
- import { StateUpdate, TimelineNode } from '../models';
1
+ import { GraphTimelineNode } from '@prefecthq/graphs';
2
+ import { StateUpdate } from '../models';
2
3
  import { FlowRunsFilter, FlowRunsHistoryFilter } from '../models/Filters';
3
4
  import { FlowRun } from '../models/FlowRun';
4
5
  import { GraphNode } from '../models/GraphNode';
@@ -10,7 +11,7 @@ export interface IWorkspaceFlowRunsApi {
10
11
  getFlowRunsCount: (filter: FlowRunsFilter) => Promise<number>;
11
12
  getFlowRunsHistory: (filter: FlowRunsHistoryFilter) => Promise<RunHistory[]>;
12
13
  getFlowRunsGraph: (flowRunId: string) => Promise<GraphNode[]>;
13
- getFlowRunsTimeline: (flowRunId: string) => Promise<TimelineNode[]>;
14
+ getFlowRunsTimeline: (flowRunId: string) => Promise<GraphTimelineNode[]>;
14
15
  retryFlowRun: (flowRunId: string) => Promise<void>;
15
16
  setFlowRunState: (flowRunId: string, body: StateUpdate) => Promise<void>;
16
17
  resumeFlowRun: (flowRunId: string) => Promise<void>;
@@ -24,7 +25,7 @@ export declare class WorkspaceFlowRunsApi extends WorkspaceApi implements IWorks
24
25
  getFlowRunsCount(filter?: FlowRunsFilter): Promise<number>;
25
26
  getFlowRunsHistory(filter: FlowRunsHistoryFilter): Promise<RunHistory[]>;
26
27
  getFlowRunsGraph(flowRunId: string): Promise<GraphNode[]>;
27
- getFlowRunsTimeline(id: string): Promise<TimelineNode[]>;
28
+ getFlowRunsTimeline(id: string): Promise<GraphTimelineNode[]>;
28
29
  retryFlowRun(id: string): Promise<void>;
29
30
  setFlowRunState(id: string, body: StateUpdate): Promise<void>;
30
31
  resumeFlowRun(id: string): Promise<void>;
@@ -1,3 +1,4 @@
1
+ import { ValidationRule } from '@prefecthq/vue-compositions';
1
2
  export type ValidationMethod = (value: unknown) => true | string | Promise<true | string>;
2
3
  export type ValidationMethodFactory = (property: string) => ValidationMethod;
3
4
  export type WithMessageArgs = [validationFactory: ValidationMethodFactory, message: string];
@@ -28,3 +29,4 @@ export declare const isAfterOrEqual: (min: Date, { time: showTime }?: {
28
29
  }) => ValidationMethodFactory;
29
30
  export declare const isJson: ValidationMethodFactory;
30
31
  export declare const isHandle: ValidationMethodFactory;
32
+ export declare const isSnakeCase: ValidationRule<unknown>;
@@ -1,4 +1,4 @@
1
- import { u as c, Q as b, X as O, l as k } from "./index-d3611b56.mjs";
1
+ import { u as c, Q as b, X as O, l as k } from "./index-ce741345.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
  $ as Wheel
1537
1537
  };
1538
- //# sourceMappingURL=viewport.es-ff98659c-f500916f.mjs.map
1538
+ //# sourceMappingURL=viewport.es-84fb8076-891a43a9.mjs.map