@prefecthq/prefect-ui-library 1.1.11 → 1.1.13
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-d62482f8.mjs → index-1db88feb.mjs} +16258 -16039
- package/dist/index-1db88feb.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +330 -328
- package/dist/prefect-ui-library.umd.js +79 -68
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/demo/compositions/useArtifactsMock.d.ts +3 -0
- package/dist/types/demo/compositions/useSeeds.d.ts +2 -1
- package/dist/types/demo/sections/artifacts/ArtifactCard.vue.d.ts +2 -0
- package/dist/types/demo/sections/artifacts/ArtifactDescription.vue.d.ts +2 -0
- package/dist/types/demo/sections/artifacts/index.d.ts +2 -0
- package/dist/types/demo/sections/deployments/DeploymentDescription.vue.d.ts +2 -0
- package/dist/types/demo/sections/states/StateSelect.vue.d.ts +2 -0
- package/dist/types/demo/utilities/api.d.ts +2 -1
- package/dist/types/demo/utilities/data.d.ts +3 -1
- package/dist/types/src/components/ArtifactCard.vue.d.ts +25 -0
- package/dist/types/src/components/ArtifactDescription.vue.d.ts +16 -0
- package/dist/types/src/components/FlowMenu.vue.d.ts +2 -6
- package/dist/types/src/components/StateBadge.vue.d.ts +3 -9
- package/dist/types/src/components/WorkPoolQueueMenu.vue.d.ts +11 -2
- package/dist/types/src/localization/index.d.ts +2 -0
- package/dist/types/src/localization/locale/en.d.ts +2 -0
- package/dist/types/src/maps/index.d.ts +1 -0
- package/dist/types/src/mocks/artifact.d.ts +3 -0
- package/dist/types/src/mocks/index.d.ts +22 -0
- package/dist/types/src/mocks/markdown.d.ts +21 -0
- package/dist/types/src/mocks/string.d.ts +2 -1
- package/dist/types/src/models/Artifact.d.ts +32 -7
- package/dist/types/src/models/WorkPoolCreate.d.ts +2 -0
- package/dist/types/src/models/api/ArtifactResponse.d.ts +4 -2
- package/dist/types/src/services/Mapper.d.ts +1 -0
- package/dist/types/src/services/Mocker.d.ts +22 -0
- package/dist/types/src/services/WorkspaceArtifactsApi.d.ts +5 -5
- package/dist/types/src/types/SortOptionTypes.d.ts +4 -0
- package/dist/types/src/types/artifact.d.ts +8 -0
- package/dist/types/src/types/stateBadge.d.ts +5 -0
- package/dist/types/src/utilities/api.d.ts +2 -0
- package/dist/types/src/utilities/eventTarget.d.ts +1 -0
- package/dist/{viewport.es-5fa29f11-43388715.mjs → viewport.es-5fa29f11-4bb82e07.mjs} +2 -2
- package/dist/{viewport.es-5fa29f11-43388715.mjs.map → viewport.es-5fa29f11-4bb82e07.mjs.map} +1 -1
- package/package.json +2 -2
- package/dist/index-d62482f8.mjs.map +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Artifact } from '../models';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
artifact: Artifact;
|
|
4
|
+
condense?: boolean | undefined;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
artifact: Artifact;
|
|
7
|
+
condense?: boolean | undefined;
|
|
8
|
+
}>>>, {}>, {
|
|
9
|
+
default: (_: {}) => any;
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Artifact } from '../models';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
artifact: Artifact;
|
|
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
|
+
artifact: Artifact;
|
|
6
|
+
}>>>, {}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Flow } from '../models';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
flow: Flow;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
delete: (value: string) => void;
|
|
6
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
5
|
flow: Flow;
|
|
8
|
-
}
|
|
9
|
-
onDelete?: ((value: string) => any) | undefined;
|
|
10
|
-
}, {}>, {
|
|
6
|
+
}>>>, {}>, {
|
|
11
7
|
default: (_: {
|
|
12
8
|
flow: Flow;
|
|
13
9
|
}) => any;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateBadgeState } from '../types/stateBadge';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
state:
|
|
4
|
-
name: string;
|
|
5
|
-
type: StateType | null;
|
|
6
|
-
} | null;
|
|
3
|
+
state: StateBadgeState | null;
|
|
7
4
|
flat?: boolean | undefined;
|
|
8
5
|
dismissible?: boolean | undefined;
|
|
9
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
-
state:
|
|
11
|
-
name: string;
|
|
12
|
-
type: StateType | null;
|
|
13
|
-
} | null;
|
|
7
|
+
state: StateBadgeState | null;
|
|
14
8
|
flat?: boolean | undefined;
|
|
15
9
|
dismissible?: boolean | undefined;
|
|
16
10
|
}>>>, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkPoolQueue } from '../models';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
workPoolName: string;
|
|
4
4
|
workPoolQueue: WorkPoolQueue;
|
|
5
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -9,7 +9,11 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
9
9
|
workPoolQueue: WorkPoolQueue;
|
|
10
10
|
}>>> & {
|
|
11
11
|
onDelete?: (() => any) | undefined;
|
|
12
|
-
}, {}
|
|
12
|
+
}, {}>, {
|
|
13
|
+
default: (_: {
|
|
14
|
+
workPoolQueue: WorkPoolQueue;
|
|
15
|
+
}) => any;
|
|
16
|
+
}>;
|
|
13
17
|
export default _default;
|
|
14
18
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
19
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -20,3 +24,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
20
24
|
required: true;
|
|
21
25
|
};
|
|
22
26
|
};
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const mocks: {
|
|
2
|
+
adjective: import("..").MockFunction<string, []>;
|
|
2
3
|
any: import("..").MockFunction<any, []>;
|
|
4
|
+
artifact: import("..").MockFunction<import("..").Artifact, [(Partial<import("..").Artifact> | undefined)?]>;
|
|
3
5
|
blockDocument: import("..").MockFunction<import("..").BlockDocument, [(Partial<import("..").BlockDocument> | undefined)?]>;
|
|
4
6
|
blockDocumentData: import("..").MockFunction<Record<string, unknown>, [("url" | "email_addresses" | undefined)?]>;
|
|
5
7
|
blockSchema: import("..").MockFunction<import("..").BlockSchema, [(Partial<import("..").BlockSchema> | undefined)?]>;
|
|
@@ -30,6 +32,26 @@ export declare const mocks: {
|
|
|
30
32
|
}) | undefined)?]>;
|
|
31
33
|
log: import("..").MockFunction<import("..").Log, [(Partial<import("..").Log> | undefined)?]>;
|
|
32
34
|
logLevel: import("..").MockFunction<0 | 10 | 20 | 50 | 30 | 40, []>;
|
|
35
|
+
markdownCodeBlockString: import("..").MockFunction<string, [({
|
|
36
|
+
lines?: number | undefined;
|
|
37
|
+
} | undefined)?]>;
|
|
38
|
+
markdownCodeSpanString: import("..").MockFunction<string, []>;
|
|
39
|
+
markdownContentString: import("..").MockFunction<string, [({
|
|
40
|
+
lines?: number | undefined;
|
|
41
|
+
} | undefined)?]>;
|
|
42
|
+
markdownHeaderString: import("..").MockFunction<string, [({
|
|
43
|
+
level?: number | undefined;
|
|
44
|
+
} | undefined)?]>;
|
|
45
|
+
markdownQuoteString: import("..").MockFunction<string, [({
|
|
46
|
+
lines?: number | undefined;
|
|
47
|
+
} | undefined)?]>;
|
|
48
|
+
markdownString: import("..").MockFunction<string, [({
|
|
49
|
+
sections?: number | undefined;
|
|
50
|
+
} | undefined)?]>;
|
|
51
|
+
markdownTableString: import("..").MockFunction<string, [({
|
|
52
|
+
rows?: number | undefined;
|
|
53
|
+
columns?: number | undefined;
|
|
54
|
+
} | undefined)?]>;
|
|
33
55
|
notification: import("..").MockFunction<import("..").Notification, [(Partial<import("..").Notification> | undefined)?]>;
|
|
34
56
|
notificationCreate: import("..").MockFunction<import("..").NotificationCreate, [(Partial<import("..").NotificationCreate> | undefined)?]>;
|
|
35
57
|
noun: import("..").MockFunction<string, []>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MockFunction } from '../services/Mocker';
|
|
2
|
+
export declare const randomMarkdownHeaderString: MockFunction<string, [{
|
|
3
|
+
level?: number;
|
|
4
|
+
}?]>;
|
|
5
|
+
export declare const randomMarkdownQuoteString: MockFunction<string, [{
|
|
6
|
+
lines?: number;
|
|
7
|
+
}?]>;
|
|
8
|
+
export declare const randomMarkdownContentString: MockFunction<string, [{
|
|
9
|
+
lines?: number;
|
|
10
|
+
}?]>;
|
|
11
|
+
export declare const randomMarkdownTableString: MockFunction<string, [{
|
|
12
|
+
rows?: number;
|
|
13
|
+
columns?: number;
|
|
14
|
+
}?]>;
|
|
15
|
+
export declare const randomMarkdownCodeSpanString: MockFunction<string, []>;
|
|
16
|
+
export declare const randomMarkdownCodeBlockString: MockFunction<string, [{
|
|
17
|
+
lines?: number;
|
|
18
|
+
}?]>;
|
|
19
|
+
export declare const randomMarkdownString: MockFunction<string, [{
|
|
20
|
+
sections?: number;
|
|
21
|
+
}?]>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { nouns } from '../mocks/sentences/sample';
|
|
1
|
+
import { adjectives, nouns } from '../mocks/sentences/sample';
|
|
2
2
|
import { MockFunction } from '../services/Mocker';
|
|
3
3
|
declare const characters: readonly ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
|
|
4
4
|
export declare const randomChar: MockFunction<typeof characters[number], []>;
|
|
5
5
|
export declare const randomNoun: MockFunction<typeof nouns[number], []>;
|
|
6
|
+
export declare const randomAdjective: MockFunction<typeof adjectives[number], []>;
|
|
6
7
|
export declare const randomString: MockFunction<string, [number?]>;
|
|
7
8
|
export declare const randomSentence: MockFunction<string, []>;
|
|
8
9
|
export declare const randomParagraph: MockFunction<string, [number?]>;
|
|
@@ -1,24 +1,49 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const artifactTypes: readonly ["result", "markdown", "table", "unknown"];
|
|
2
|
+
export type ArtifactType = typeof artifactTypes[number];
|
|
3
|
+
export type ResultArtifactData = Record<string, unknown>;
|
|
4
|
+
export type MarkdownArtifactData = string;
|
|
5
|
+
export type TableArtifactData = Record<string, unknown>[];
|
|
6
|
+
export type UnknownArtifactData = unknown;
|
|
7
|
+
export type ArtifactData = ResultArtifactData | MarkdownArtifactData | TableArtifactData | UnknownArtifactData;
|
|
8
|
+
export type ArtifactMetadata = Record<string, string>;
|
|
2
9
|
export interface IArtifact {
|
|
3
10
|
id: string;
|
|
4
11
|
created: Date;
|
|
5
12
|
updated: Date;
|
|
6
|
-
key: string;
|
|
7
|
-
type:
|
|
13
|
+
key: string | null;
|
|
14
|
+
type: ArtifactType;
|
|
15
|
+
description: string | null;
|
|
8
16
|
data: ArtifactData;
|
|
9
|
-
metadata:
|
|
17
|
+
metadata: ArtifactMetadata;
|
|
10
18
|
flowRunId: string | null;
|
|
11
19
|
taskRunId: string | null;
|
|
12
20
|
}
|
|
21
|
+
export type ResultArtifact = IArtifact & {
|
|
22
|
+
type: 'result';
|
|
23
|
+
data: ResultArtifactData;
|
|
24
|
+
};
|
|
25
|
+
export type MarkdownArtifact = IArtifact & {
|
|
26
|
+
type: 'markdown';
|
|
27
|
+
data: MarkdownArtifactData;
|
|
28
|
+
};
|
|
29
|
+
export type TableArtifact = IArtifact & {
|
|
30
|
+
type: 'table';
|
|
31
|
+
data: TableArtifactData;
|
|
32
|
+
};
|
|
33
|
+
export type UnknownArtifact = IArtifact & {
|
|
34
|
+
type: 'unknown';
|
|
35
|
+
data: unknown;
|
|
36
|
+
};
|
|
13
37
|
export declare class Artifact implements IArtifact {
|
|
14
38
|
readonly id: string;
|
|
39
|
+
readonly key: string | null;
|
|
15
40
|
readonly flowRunId: string | null;
|
|
16
41
|
readonly taskRunId: string | null;
|
|
17
42
|
readonly created: Date;
|
|
18
43
|
readonly updated: Date;
|
|
19
|
-
|
|
20
|
-
|
|
44
|
+
type: ArtifactType;
|
|
45
|
+
description: string | null;
|
|
21
46
|
data: ArtifactData;
|
|
22
|
-
metadata:
|
|
47
|
+
metadata: ArtifactMetadata;
|
|
23
48
|
constructor(artifact: IArtifact);
|
|
24
49
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SchemaValues } from '../types/schemas';
|
|
1
2
|
export type WorkPoolCreate = Partial<{
|
|
2
3
|
name: string;
|
|
3
4
|
description: string;
|
|
@@ -5,4 +6,5 @@ export type WorkPoolCreate = Partial<{
|
|
|
5
6
|
isPaused: boolean;
|
|
6
7
|
concurrencyLimit: number;
|
|
7
8
|
baseJobTemplate: Record<string, unknown>;
|
|
9
|
+
defaultVariableValues: SchemaValues;
|
|
8
10
|
}>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
export type ArtifactDataResponse =
|
|
1
|
+
export type ArtifactDataResponse = unknown;
|
|
2
|
+
export type ArtifactMetadataResponse = Record<string, string>;
|
|
2
3
|
export type ArtifactResponse = {
|
|
3
4
|
id: string;
|
|
4
5
|
created: string;
|
|
5
6
|
updated: string;
|
|
6
7
|
key: string;
|
|
7
8
|
type: string;
|
|
9
|
+
description: string | null;
|
|
8
10
|
data: ArtifactDataResponse;
|
|
9
|
-
metadata_:
|
|
11
|
+
metadata_: ArtifactMetadataResponse;
|
|
10
12
|
flow_run_id: string | null;
|
|
11
13
|
task_run_id: string | null;
|
|
12
14
|
};
|
|
@@ -12,7 +12,9 @@ export declare class Mocker<T extends Record<string, Mock>> {
|
|
|
12
12
|
createMany<K extends keyof T>(...[key, count, args]: CreateManyArguments<T, K>): MockReturns<T[K]>[];
|
|
13
13
|
}
|
|
14
14
|
export declare const mocker: Mocker<{
|
|
15
|
+
adjective: MockFunction<string, []>;
|
|
15
16
|
any: MockFunction<any, []>;
|
|
17
|
+
artifact: MockFunction<import("..").Artifact, [(Partial<import("..").Artifact> | undefined)?]>;
|
|
16
18
|
blockDocument: MockFunction<import("..").BlockDocument, [(Partial<import("..").BlockDocument> | undefined)?]>;
|
|
17
19
|
blockDocumentData: MockFunction<Record<string, unknown>, [("url" | "email_addresses" | undefined)?]>;
|
|
18
20
|
blockSchema: MockFunction<import("..").BlockSchema, [(Partial<import("..").BlockSchema> | undefined)?]>;
|
|
@@ -43,6 +45,26 @@ export declare const mocker: Mocker<{
|
|
|
43
45
|
}) | undefined)?]>;
|
|
44
46
|
log: MockFunction<import("..").Log, [(Partial<import("..").Log> | undefined)?]>;
|
|
45
47
|
logLevel: MockFunction<0 | 10 | 20 | 50 | 30 | 40, []>;
|
|
48
|
+
markdownCodeBlockString: MockFunction<string, [({
|
|
49
|
+
lines?: number | undefined;
|
|
50
|
+
} | undefined)?]>;
|
|
51
|
+
markdownCodeSpanString: MockFunction<string, []>;
|
|
52
|
+
markdownContentString: MockFunction<string, [({
|
|
53
|
+
lines?: number | undefined;
|
|
54
|
+
} | undefined)?]>;
|
|
55
|
+
markdownHeaderString: MockFunction<string, [({
|
|
56
|
+
level?: number | undefined;
|
|
57
|
+
} | undefined)?]>;
|
|
58
|
+
markdownQuoteString: MockFunction<string, [({
|
|
59
|
+
lines?: number | undefined;
|
|
60
|
+
} | undefined)?]>;
|
|
61
|
+
markdownString: MockFunction<string, [({
|
|
62
|
+
sections?: number | undefined;
|
|
63
|
+
} | undefined)?]>;
|
|
64
|
+
markdownTableString: MockFunction<string, [({
|
|
65
|
+
rows?: number | undefined;
|
|
66
|
+
columns?: number | undefined;
|
|
67
|
+
} | undefined)?]>;
|
|
46
68
|
notification: MockFunction<import("..").Notification, [(Partial<import("..").Notification> | undefined)?]>;
|
|
47
69
|
notificationCreate: MockFunction<import("..").NotificationCreate, [(Partial<import("..").NotificationCreate> | undefined)?]>;
|
|
48
70
|
noun: MockFunction<string, []>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Artifact } from '../models';
|
|
2
|
-
import {
|
|
2
|
+
import { ArtifactsFilter } from '../models/Filters';
|
|
3
3
|
import { WorkspaceApi } from '../services/WorkspaceApi';
|
|
4
4
|
export interface IWorkspaceArtifactsApi {
|
|
5
5
|
getArtifact: (id: string) => Promise<Artifact>;
|
|
6
|
-
getArtifacts: (filter:
|
|
7
|
-
getArtifactsCount: (filter:
|
|
6
|
+
getArtifacts: (filter: ArtifactsFilter) => Promise<Artifact[]>;
|
|
7
|
+
getArtifactsCount: (filter: ArtifactsFilter) => Promise<number>;
|
|
8
8
|
deleteArtifact: (id: string) => Promise<void>;
|
|
9
9
|
}
|
|
10
10
|
export declare class WorkspaceArtifactsApi extends WorkspaceApi implements IWorkspaceArtifactsApi {
|
|
11
11
|
protected routePrefix: string;
|
|
12
12
|
private readonly batcher;
|
|
13
13
|
getArtifact(id: string): Promise<Artifact>;
|
|
14
|
-
getArtifacts(filter?:
|
|
15
|
-
getArtifactsCount(filter?:
|
|
14
|
+
getArtifacts(filter?: ArtifactsFilter): Promise<Artifact[]>;
|
|
15
|
+
getArtifactsCount(filter?: ArtifactsFilter): Promise<number>;
|
|
16
16
|
deleteArtifact(id: string): Promise<void>;
|
|
17
17
|
}
|
|
@@ -4,6 +4,10 @@ export type ArtifactSortValues = typeof artifactSortValues[number];
|
|
|
4
4
|
export declare const defaultArtifactSort: FlowSortValues;
|
|
5
5
|
export declare function isArtifactSortValue(value: unknown): value is ArtifactSortValues;
|
|
6
6
|
export declare function isArtifactSortValue(value: Ref<unknown>): value is Ref<ArtifactSortValues>;
|
|
7
|
+
export declare const artifactSortOptions: {
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
7
11
|
export declare const flowSortValues: readonly ["CREATED_DESC", "UPDATED_DESC", "NAME_DESC", "NAME_ASC"];
|
|
8
12
|
export type FlowSortValues = typeof flowSortValues[number];
|
|
9
13
|
export declare const defaultFlowSort: FlowSortValues;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ArtifactType, ResultArtifactData, MarkdownArtifactData, Artifact, ArtifactData, TableArtifactData } from '../models/Artifact';
|
|
2
|
+
export declare function isArtifactType<T extends ArtifactType>(artifact: Artifact, type: T): artifact is Artifact & {
|
|
3
|
+
type: T;
|
|
4
|
+
};
|
|
5
|
+
export declare function isKnownArtifactType(type: unknown): type is ArtifactType & Exclude<ArtifactType, 'unknown'>;
|
|
6
|
+
export declare function isResultArtifactData(data: ArtifactData): data is ResultArtifactData;
|
|
7
|
+
export declare function isMarkdownArtifactData(data: ArtifactData): data is MarkdownArtifactData;
|
|
8
|
+
export declare function isTableArtifactData(data: ArtifactData): data is TableArtifactData;
|
|
@@ -3,6 +3,7 @@ import { CollectionsApi } from '../services/CollectionsApi';
|
|
|
3
3
|
import { HealthApi } from '../services/HealthApi';
|
|
4
4
|
import { UiApi } from '../services/UiApi';
|
|
5
5
|
import { WorkspaceApiConfig } from '../services/WorkspaceApi';
|
|
6
|
+
import { WorkspaceArtifactsApi } from '../services/WorkspaceArtifactsApi';
|
|
6
7
|
import { WorkspaceBlockCapabilitiesApi } from '../services/WorkspaceBlockCapabilitiesApi';
|
|
7
8
|
import { WorkspaceBlockDocumentsApi } from '../services/WorkspaceBlockDocumentsApi';
|
|
8
9
|
import { WorkspaceBlockSchemasApi } from '../services/WorkspaceBlockSchemasApi';
|
|
@@ -20,6 +21,7 @@ import { WorkspaceWorkPoolsApi } from '../services/WorkspaceWorkPoolsApi';
|
|
|
20
21
|
import { WorkspaceWorkPoolWorkersApi } from '../services/WorkspaceWorkPoolWorkersApi';
|
|
21
22
|
import { WorkspaceWorkQueuesApi } from '../services/WorkspaceWorkQueuesApi';
|
|
22
23
|
export declare function createApi(workspaceConfig: WorkspaceApiConfig): {
|
|
24
|
+
artifacts: import("@prefecthq/vue-compositions").CreateActions<WorkspaceArtifactsApi>;
|
|
23
25
|
blockCapabilities: import("@prefecthq/vue-compositions").CreateActions<WorkspaceBlockCapabilitiesApi>;
|
|
24
26
|
blockDocuments: import("@prefecthq/vue-compositions").CreateActions<WorkspaceBlockDocumentsApi>;
|
|
25
27
|
blockSchemas: import("@prefecthq/vue-compositions").CreateActions<WorkspaceBlockSchemasApi>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function eventTargetIsInput(eventTarget: EventTarget | null): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as c, q as b, L as O, w as k } from "./index-
|
|
1
|
+
import { l as c, q as b, L as O, w as k } from "./index-1db88feb.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@prefecthq/prefect-design";
|
|
4
4
|
import "@prefecthq/vue-compositions";
|
|
@@ -1534,4 +1534,4 @@ export {
|
|
|
1534
1534
|
C as Viewport,
|
|
1535
1535
|
$ as Wheel
|
|
1536
1536
|
};
|
|
1537
|
-
//# sourceMappingURL=viewport.es-5fa29f11-
|
|
1537
|
+
//# sourceMappingURL=viewport.es-5fa29f11-4bb82e07.mjs.map
|