@prefecthq/prefect-ui-library 1.1.1 → 1.1.2
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.
- package/dist/{index-d6993d5a.mjs → index-349da0b8.mjs} +11701 -11523
- package/dist/index-349da0b8.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +589 -585
- package/dist/prefect-ui-library.umd.js +69 -69
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/maps/artifact.d.ts +4 -0
- package/dist/types/src/maps/filters.d.ts +4 -2
- package/dist/types/src/maps/index.d.ts +9 -0
- package/dist/types/src/models/Artifact.d.ts +24 -0
- package/dist/types/src/models/Filters.d.ts +16 -1
- package/dist/types/src/models/api/ArtifactResponse.d.ts +12 -0
- package/dist/types/src/models/api/Filters.d.ts +15 -1
- package/dist/types/src/models/api/index.d.ts +1 -0
- package/dist/types/src/models/index.d.ts +1 -0
- package/dist/types/src/services/Mapper.d.ts +9 -0
- package/dist/types/src/services/WorkspaceArtifactsApi.d.ts +17 -0
- package/dist/types/src/types/SortOptionTypes.d.ts +5 -0
- package/dist/{viewport.es-a6380c41-6542fca9.mjs → viewport.es-5fa29f11-37567970.mjs} +2 -2
- package/dist/{viewport.es-a6380c41-6542fca9.mjs.map → viewport.es-5fa29f11-37567970.mjs.map} +1 -1
- package/package.json +6 -6
- package/dist/index-d6993d5a.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlowSortValues, FlowRunSortValues, TaskRunSortValues, DeploymentSortValues, LogSortValues } from '../types';
|
|
1
|
+
import { ArtifactSortValues, FlowSortValues, FlowRunSortValues, TaskRunSortValues, DeploymentSortValues, LogSortValues } from '../types';
|
|
2
2
|
export type Operation = 'and' | 'or';
|
|
3
3
|
export declare function isOperation(value: string): value is Operation;
|
|
4
4
|
export type TagFilter = {
|
|
@@ -56,6 +56,21 @@ export type TaskRunFilter = {
|
|
|
56
56
|
startTimeNull?: boolean;
|
|
57
57
|
subFlowRunsExist?: boolean;
|
|
58
58
|
};
|
|
59
|
+
export type ArtifactFilter = {
|
|
60
|
+
id?: string[];
|
|
61
|
+
key?: string[];
|
|
62
|
+
keyLike?: string;
|
|
63
|
+
flowRunId?: string[];
|
|
64
|
+
taskRunId?: string[];
|
|
65
|
+
};
|
|
66
|
+
export type ArtifactsFilter = {
|
|
67
|
+
artifacts?: ArtifactFilter;
|
|
68
|
+
flowRuns?: FlowRunFilter;
|
|
69
|
+
taskRuns?: TaskRunFilter;
|
|
70
|
+
sort?: ArtifactSortValues;
|
|
71
|
+
limit?: number;
|
|
72
|
+
offset?: number;
|
|
73
|
+
};
|
|
59
74
|
export type DeploymentFilter = {
|
|
60
75
|
id?: string[];
|
|
61
76
|
isScheduleActive?: boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ArtifactDataResponse = Record<string, unknown>;
|
|
2
|
+
export type ArtifactResponse = {
|
|
3
|
+
id: string;
|
|
4
|
+
created: string;
|
|
5
|
+
updated: string;
|
|
6
|
+
key: string;
|
|
7
|
+
type: string;
|
|
8
|
+
data: ArtifactDataResponse;
|
|
9
|
+
metadata_: ArtifactDataResponse;
|
|
10
|
+
flow_run_id: string | null;
|
|
11
|
+
task_run_id: string | null;
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeploymentSortValues, FlowRunSortValues, FlowSortValues, LogSortValues, TaskRunSortValues } from '../../types/SortOptionTypes';
|
|
1
|
+
import { ArtifactSortValues, DeploymentSortValues, FlowRunSortValues, FlowSortValues, LogSortValues, TaskRunSortValues } from '../../types/SortOptionTypes';
|
|
2
2
|
/** A list where results will be returned only if they match all the values in the list */
|
|
3
3
|
export type All = {
|
|
4
4
|
all_?: string[];
|
|
@@ -132,6 +132,20 @@ export type FlowsFilterRequest = UnionFilterRequest<FlowSortValues>;
|
|
|
132
132
|
export type FlowRunsFilterRequest = UnionFilterRequest<FlowRunSortValues>;
|
|
133
133
|
export type TaskRunsFilterRequest = UnionFilterRequest<TaskRunSortValues>;
|
|
134
134
|
export type DeploymentsFilterRequest = UnionFilterRequest<DeploymentSortValues>;
|
|
135
|
+
export type ArtifactFilterRequest = {
|
|
136
|
+
id?: Any;
|
|
137
|
+
key?: Any & Like;
|
|
138
|
+
flow_run_id?: Any;
|
|
139
|
+
task_run_id?: Any;
|
|
140
|
+
};
|
|
141
|
+
export type ArtifactsFilterRequest = {
|
|
142
|
+
artifacts?: ArtifactFilterRequest;
|
|
143
|
+
task_runs?: TaskRunFilterRequest;
|
|
144
|
+
flow_runs?: FlowRunFilterRequest;
|
|
145
|
+
sort?: ArtifactSortValues;
|
|
146
|
+
offset?: number;
|
|
147
|
+
limit?: number;
|
|
148
|
+
};
|
|
135
149
|
export type FlowRunsHistoryFilterRequest = FlowRunsFilterRequest & {
|
|
136
150
|
history_start: string;
|
|
137
151
|
history_end: string;
|
|
@@ -23,6 +23,15 @@ export declare class Mapper<T extends Maps> {
|
|
|
23
23
|
private bindMapper;
|
|
24
24
|
}
|
|
25
25
|
export declare const mapper: Mapper<{
|
|
26
|
+
ArtifactResponse: {
|
|
27
|
+
Artifact: MapFunction<import("..").ArtifactResponse, import("..").Artifact>;
|
|
28
|
+
};
|
|
29
|
+
ArtifactFilter: {
|
|
30
|
+
ArtifactFilterRequest: MapFunction<import("..").ArtifactFilter, import("../models/api/Filters").ArtifactFilterRequest>;
|
|
31
|
+
};
|
|
32
|
+
ArtifactsFilter: {
|
|
33
|
+
ArtifactsFilterRequest: MapFunction<import("..").ArtifactsFilter, import("../models/api/Filters").ArtifactsFilterRequest>;
|
|
34
|
+
};
|
|
26
35
|
FlowFilter: {
|
|
27
36
|
FlowFilterRequest: MapFunction<import("..").FlowFilter, import("../models/api/Filters").FlowFilterRequest>;
|
|
28
37
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Artifact } from '../models';
|
|
2
|
+
import { ArtifactFilter } from '../models/Filters';
|
|
3
|
+
import { WorkspaceApi } from '../services/WorkspaceApi';
|
|
4
|
+
export interface IWorkspaceArtifactsApi {
|
|
5
|
+
getArtifact: (id: string) => Promise<Artifact>;
|
|
6
|
+
getArtifacts: (filter: ArtifactFilter) => Promise<Artifact[]>;
|
|
7
|
+
getArtifactsCount: (filter: ArtifactFilter) => Promise<number>;
|
|
8
|
+
deleteArtifact: (id: string) => Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export declare class WorkspaceArtifactsApi extends WorkspaceApi implements IWorkspaceArtifactsApi {
|
|
11
|
+
protected routePrefix: string;
|
|
12
|
+
private readonly batcher;
|
|
13
|
+
getArtifact(id: string): Promise<Artifact>;
|
|
14
|
+
getArtifacts(filter?: ArtifactFilter): Promise<Artifact[]>;
|
|
15
|
+
getArtifactsCount(filter?: ArtifactFilter): Promise<number>;
|
|
16
|
+
deleteArtifact(id: string): Promise<void>;
|
|
17
|
+
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
+
export declare const artifactSortValues: readonly ["CREATED_DESC", "UPDATED_DESC", "KEY_DESC", "KEY_ASC", "ID_ASC", "ID_DESC"];
|
|
3
|
+
export type ArtifactSortValues = typeof artifactSortValues[number];
|
|
4
|
+
export declare const defaultArtifactSort: FlowSortValues;
|
|
5
|
+
export declare function isArtifactSortValue(value: unknown): value is ArtifactSortValues;
|
|
6
|
+
export declare function isArtifactSortValue(value: Ref<unknown>): value is Ref<ArtifactSortValues>;
|
|
2
7
|
export declare const flowSortValues: readonly ["CREATED_DESC", "UPDATED_DESC", "NAME_DESC", "NAME_ASC"];
|
|
3
8
|
export type FlowSortValues = typeof flowSortValues[number];
|
|
4
9
|
export declare const defaultFlowSort: FlowSortValues;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as c, q as b, L as O, w as k } from "./index-349da0b8.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@prefecthq/vue-compositions";
|
|
4
4
|
import "@prefecthq/prefect-design";
|
|
@@ -1534,4 +1534,4 @@ export {
|
|
|
1534
1534
|
C as Viewport,
|
|
1535
1535
|
$ as Wheel
|
|
1536
1536
|
};
|
|
1537
|
-
//# sourceMappingURL=viewport.es-
|
|
1537
|
+
//# sourceMappingURL=viewport.es-5fa29f11-37567970.mjs.map
|