@prefecthq/prefect-ui-library 1.1.4 → 1.1.6
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-8419f309.mjs → index-a3b116b8.mjs} +15637 -16651
- package/dist/index-a3b116b8.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +613 -607
- package/dist/prefect-ui-library.umd.js +74 -83
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/demo/sections/general/CopyableWrapper.vue.d.ts +2 -0
- package/dist/types/src/components/CodeSnippet.vue.d.ts +14 -3
- package/dist/types/src/components/{CodeLines.vue.d.ts → CollectionCardPreview.vue.d.ts} +3 -4
- package/dist/types/src/components/CollectionItemCard.vue.d.ts +23 -0
- package/dist/types/src/components/CollectionsList.vue.d.ts +2 -0
- package/dist/types/src/components/CopyableWrapper.vue.d.ts +22 -0
- package/dist/types/src/components/DateRangeInputWithFlowRunHistory.vue.d.ts +4 -9
- package/dist/types/src/components/JsonInput.vue.d.ts +2 -7
- package/dist/types/src/components/{CodeHighlighting.vue.d.ts → PageHeadingFlowCollection.vue.d.ts} +3 -6
- package/dist/types/src/components/PageHeadingFlowCollections.vue.d.ts +2 -0
- package/dist/types/src/components/PythonInput.vue.d.ts +2 -7
- package/dist/types/src/components/index.d.ts +6 -2
- package/dist/types/src/compositions/filters.d.ts +1 -0
- package/dist/types/src/compositions/useWorkspaceRoutes.d.ts +15 -0
- package/dist/types/src/maps/collectionItem.d.ts +4 -0
- package/dist/types/src/maps/index.d.ts +6 -0
- package/dist/types/src/mocks/collectionItem.d.ts +3 -0
- package/dist/types/src/mocks/index.d.ts +1 -0
- package/dist/types/src/models/CollectionItem.d.ts +16 -0
- package/dist/types/src/models/api/CollectionItemResponse.d.ts +18 -0
- 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/router/index.d.ts +21 -1
- package/dist/types/src/router/routes.d.ts +15 -19
- package/dist/types/src/services/Api.d.ts +0 -1
- package/dist/types/src/services/CollectionsApi.d.ts +6 -0
- package/dist/types/src/services/Mapper.d.ts +6 -0
- package/dist/types/src/services/Mocker.d.ts +1 -0
- package/dist/types/src/services/can.d.ts +1 -1
- package/dist/types/src/services/index.d.ts +2 -1
- package/dist/types/src/utilities/api.d.ts +2 -0
- package/dist/{viewport.es-5fa29f11-b9064c60.mjs → viewport.es-5fa29f11-3e0f8369.mjs} +2 -2
- package/dist/{viewport.es-5fa29f11-b9064c60.mjs.map → viewport.es-5fa29f11-3e0f8369.mjs.map} +1 -1
- package/package.json +4 -4
- package/dist/index-8419f309.mjs.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
textToCopy: string;
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
textToCopy: string;
|
|
5
|
+
}>>>, {}>, {
|
|
6
|
+
default: (_: {}) => any;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
|
|
3
|
-
endDate: Date | null | undefined;
|
|
2
|
+
range: [Date, Date];
|
|
4
3
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
"update:
|
|
6
|
-
} & {
|
|
7
|
-
"update:endDate": (value: Date | null | undefined) => void;
|
|
4
|
+
"update:range": (value: [Date, Date]) => void;
|
|
8
5
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
|
|
10
|
-
endDate: Date | null | undefined;
|
|
6
|
+
range: [Date, Date];
|
|
11
7
|
}>>> & {
|
|
12
|
-
"onUpdate:
|
|
13
|
-
"onUpdate:endDate"?: ((value: Date | null | undefined) => any) | undefined;
|
|
8
|
+
"onUpdate:range"?: ((value: [Date, Date]) => any) | undefined;
|
|
14
9
|
}, {}>;
|
|
15
10
|
export default _default;
|
|
16
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
modelValue: string | undefined;
|
|
3
3
|
showFormatButton?: boolean | undefined;
|
|
4
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -8,7 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
8
|
showFormatButton?: boolean | undefined;
|
|
9
9
|
}>>> & {
|
|
10
10
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
-
}, {}
|
|
11
|
+
}, {}>;
|
|
12
12
|
export default _default;
|
|
13
13
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
14
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,8 +19,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
-
new (): {
|
|
24
|
-
$slots: S;
|
|
25
|
-
};
|
|
26
|
-
};
|
package/dist/types/src/components/{CodeHighlighting.vue.d.ts → PageHeadingFlowCollection.vue.d.ts}
RENAMED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
+
import { CollectionItem } from '../models';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
|
|
3
|
-
language?: "json" | "python" | undefined;
|
|
4
|
-
showLineNumbers?: boolean | undefined;
|
|
3
|
+
collectionItem: CollectionItem;
|
|
5
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
-
|
|
7
|
-
language?: "json" | "python" | undefined;
|
|
8
|
-
showLineNumbers?: boolean | undefined;
|
|
5
|
+
collectionItem: CollectionItem;
|
|
9
6
|
}>>>, {}>;
|
|
10
7
|
export default _default;
|
|
11
8
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
modelValue: string;
|
|
3
3
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
4
|
"update:modelValue": (value: string) => void;
|
|
@@ -6,7 +6,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
6
|
modelValue: string;
|
|
7
7
|
}>>> & {
|
|
8
8
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
-
}, {}
|
|
9
|
+
}, {}>;
|
|
10
10
|
export default _default;
|
|
11
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
12
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -17,8 +17,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -20,9 +20,10 @@ export { default as BlockTypeList } from './BlockTypeList.vue';
|
|
|
20
20
|
export { default as BlockTypeSelect } from './BlockTypeSelect.vue';
|
|
21
21
|
export { default as BlockTypeSnippet } from './BlockTypeSnippet.vue';
|
|
22
22
|
export { default as CodeBanner } from './CodeBanner.vue';
|
|
23
|
-
export { default as CodeHighlighting } from './CodeHighlighting.vue';
|
|
24
|
-
export { default as CodeLines } from './CodeLines.vue';
|
|
25
23
|
export { default as CodeSnippet } from './CodeSnippet.vue';
|
|
24
|
+
export { default as CollectionItemCard } from './CollectionItemCard.vue';
|
|
25
|
+
export { default as CollectionCardPreview } from './CollectionCardPreview.vue';
|
|
26
|
+
export { default as CollectionsList } from './CollectionsList.vue';
|
|
26
27
|
export { default as ColorModeSelect } from './ColorModeSelect.vue';
|
|
27
28
|
export { default as ColorModeSelectOption } from './ColorModeSelectOption.vue';
|
|
28
29
|
export { default as ConcurrencyLimitActiveRuns } from './ConcurrencyLimitActiveRuns.vue';
|
|
@@ -35,6 +36,7 @@ export { default as ConcurrencyTableActiveSlots } from './ConcurrencyTableActive
|
|
|
35
36
|
export { default as ConfirmDeleteModal } from './ConfirmDeleteModal.vue';
|
|
36
37
|
export { default as ConfirmDeleteModalWithSlot } from './ConfirmDeleteModalWithSlot.vue';
|
|
37
38
|
export { default as ConfirmStateChangeModal } from './ConfirmStateChangeModal.vue';
|
|
39
|
+
export { default as CopyableWrapper } from './CopyableWrapper.vue';
|
|
38
40
|
export { default as CopyOverflowMenuItem } from './CopyOverflowMenuItem.vue';
|
|
39
41
|
export { default as CronScheduleForm } from './CronScheduleForm.vue';
|
|
40
42
|
export { default as DateInput } from './DateInput.vue';
|
|
@@ -131,6 +133,8 @@ export { default as PageHeadingDeployment } from './PageHeadingDeployment.vue';
|
|
|
131
133
|
export { default as PageHeadingDeploymentEdit } from './PageHeadingDeploymentEdit.vue';
|
|
132
134
|
export { default as PageHeadingDeployments } from './PageHeadingDeployments.vue';
|
|
133
135
|
export { default as PageHeadingFlow } from './PageHeadingFlow.vue';
|
|
136
|
+
export { default as PageHeadingFlowCollection } from './PageHeadingFlowCollection.vue';
|
|
137
|
+
export { default as PageHeadingFlowCollections } from './PageHeadingFlowCollections.vue';
|
|
134
138
|
export { default as PageHeadingFlowRun } from './PageHeadingFlowRun.vue';
|
|
135
139
|
export { default as PageHeadingFlowRunCreate } from './PageHeadingFlowRunCreate.vue';
|
|
136
140
|
export { default as PageHeadingFlowRunRadar } from './PageHeadingFlowRunRadar.vue';
|
|
@@ -42,5 +42,6 @@ export declare function useFlowRunsFilterFromRoute(defaultValue?: MaybeReactive<
|
|
|
42
42
|
export declare function useTaskRunsFilterFromRoute(defaultValue?: MaybeReactive<TaskRunsFilter>, prefix?: string): UseFilter<TaskRunsFilter>;
|
|
43
43
|
export declare function useDeploymentsFilterFromRoute(defaultValue?: MaybeReactive<DeploymentsFilter>, prefix?: string): UseFilter<DeploymentsFilter>;
|
|
44
44
|
export declare function useRecentFlowRunsFilter(defaultValue: MaybeReactive<FlowRunsFilter>): UseFilter<FlowRunsFilter>;
|
|
45
|
+
export declare function useRecentFlowRunsFilterFromRoute(defaultValue?: MaybeReactive<FlowRunsFilter>, prefix?: string): UseFilter<FlowRunsFilter>;
|
|
45
46
|
export declare function useFlowRunsHistoryFilter(defaultValue: MaybeReactive<FlowRunsHistoryFilter>): UseFilter<FlowRunsHistoryFilter>;
|
|
46
47
|
export declare function useFlowRunsHistoryFilterFromRoute(defaultValue: MaybeReactive<FlowRunsHistoryFilter>, prefix?: string): UseFilter<FlowRunsHistoryFilter>;
|
|
@@ -45,6 +45,21 @@ export declare function useWorkspaceRoutes(): {
|
|
|
45
45
|
readonly flowId: string;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
+
flowCollections: () => {
|
|
49
|
+
readonly name: "workspace.flows.collections";
|
|
50
|
+
readonly params: {
|
|
51
|
+
readonly accountId?: string | undefined;
|
|
52
|
+
readonly workspaceId?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
flowCollection: (name: string) => {
|
|
56
|
+
readonly name: "workspace.flows.collections.collection";
|
|
57
|
+
readonly params: {
|
|
58
|
+
readonly accountId?: string | undefined;
|
|
59
|
+
readonly workspaceId?: string | undefined;
|
|
60
|
+
readonly name: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
48
63
|
deployments: () => {
|
|
49
64
|
readonly name: "workspace.deployments";
|
|
50
65
|
readonly params: {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CollectionItem, CollectionItemResponse, CollectionsResponse } from '../models';
|
|
2
|
+
import { MapFunction } from '../services/Mapper';
|
|
3
|
+
export declare const mapCollectionItemResponseToCollectionItem: MapFunction<CollectionItemResponse, CollectionItem>;
|
|
4
|
+
export declare const mapCollectionResponseToCollectionItems: MapFunction<CollectionsResponse, CollectionItem[]>;
|
|
@@ -80,6 +80,12 @@ export declare const maps: {
|
|
|
80
80
|
BlockTypeResponse: {
|
|
81
81
|
BlockType: import("..").MapFunction<import("..").BlockTypeResponse, import("..").BlockType>;
|
|
82
82
|
};
|
|
83
|
+
CollectionItemResponse: {
|
|
84
|
+
CollectionItem: import("..").MapFunction<import("..").CollectionItemResponse, import("..").CollectionItem>;
|
|
85
|
+
};
|
|
86
|
+
CollectionResponse: {
|
|
87
|
+
CollectionItems: import("..").MapFunction<import("..").CollectionsResponse, import("..").CollectionItem[]>;
|
|
88
|
+
};
|
|
83
89
|
ConcurrencyLimitCreate: {
|
|
84
90
|
ConcurrencyLimitCreateRequest: import("..").MapFunction<import("..").ConcurrencyLimitCreate, import("..").ConcurrencyLimitCreateRequest>;
|
|
85
91
|
};
|
|
@@ -9,6 +9,7 @@ export declare const mocks: {
|
|
|
9
9
|
blockTypeSnippet: import("..").MockFunction<string, []>;
|
|
10
10
|
boolean: import("..").MockFunction<boolean, []>;
|
|
11
11
|
char: import("..").MockFunction<"a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "h" | "d" | "w" | "m" | "y" | "e" | "o" | "c" | "f" | "j" | "k" | "l" | "n" | "r" | "t" | "v" | "x" | "z", []>;
|
|
12
|
+
collectionItem: import("..").MockFunction<import("..").CollectionItem, [(Partial<import("..").CollectionItem> | undefined)?]>;
|
|
12
13
|
concurrencyLimit: import("..").MockFunction<import("..").ConcurrencyLimit, [(Partial<import("..").ConcurrencyLimit> | undefined)?]>;
|
|
13
14
|
createdOrUpdatedBy: import("..").MockFunction<import("..").CreatedOrUpdatedBy, [(Partial<import("..").CreatedOrUpdatedBy> | undefined)?]>;
|
|
14
15
|
date: import("..").MockFunction<Date, [(Date | undefined)?, (Date | undefined)?]>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type CollectionItem = {
|
|
2
|
+
name: string;
|
|
3
|
+
category?: string;
|
|
4
|
+
description: string;
|
|
5
|
+
logoUrl: string;
|
|
6
|
+
returns: string;
|
|
7
|
+
examples: string[];
|
|
8
|
+
documentationUrl: string;
|
|
9
|
+
entrypoint: string;
|
|
10
|
+
installCommand: string;
|
|
11
|
+
parameters: unknown;
|
|
12
|
+
path: string;
|
|
13
|
+
repositoryUrl: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
collectionType: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CollectionItemResponse = {
|
|
2
|
+
description: {
|
|
3
|
+
summary: string;
|
|
4
|
+
returns: string;
|
|
5
|
+
examples: string[];
|
|
6
|
+
};
|
|
7
|
+
documentation_url: string;
|
|
8
|
+
entrypoint: string;
|
|
9
|
+
install_command: string;
|
|
10
|
+
logo_url: string;
|
|
11
|
+
name: string;
|
|
12
|
+
parameters: unknown;
|
|
13
|
+
path_containing_flow: string;
|
|
14
|
+
repo_url: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
category: string;
|
|
17
|
+
};
|
|
18
|
+
export type CollectionsResponse = Record<string, Record<string, CollectionItemResponse>>;
|
|
@@ -4,6 +4,7 @@ export * from './BlockDocumentResponse';
|
|
|
4
4
|
export * from './BlockDocumentUpdateRequest';
|
|
5
5
|
export * from './BlockSchemaResponse';
|
|
6
6
|
export * from './BlockTypeResponse';
|
|
7
|
+
export * from './CollectionItemResponse';
|
|
7
8
|
export * from './ConcurrencyLimitCreateRequest';
|
|
8
9
|
export * from './ConcurrencyLimitResponse';
|
|
9
10
|
export * from './CreatedOrUpdatedByResponse';
|
|
@@ -5,6 +5,7 @@ export * from './BlockDocumentCreate';
|
|
|
5
5
|
export * from './BlockDocumentUpdate';
|
|
6
6
|
export * from './BlockSchema';
|
|
7
7
|
export * from './BlockType';
|
|
8
|
+
export * from './CollectionItem';
|
|
8
9
|
export * from './ConcurrencyLimit';
|
|
9
10
|
export * from './ConcurrencyLimitCreate';
|
|
10
11
|
export * from './CreatedOrUpdatedBy';
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
import { RouteComponent, RouteLocationRaw, RouteRecordRaw } from 'vue-router';
|
|
3
|
+
import { createWorkspaceRoutes } from '../router/routes';
|
|
4
|
+
export { createWorkspaceRoutes };
|
|
5
|
+
export type Route = Exclude<RouteLocationRaw, string>;
|
|
6
|
+
type WorkspaceRoutes = ReturnType<typeof createWorkspaceRoutes>;
|
|
7
|
+
type WorkspaceRouteKey = keyof WorkspaceRoutes;
|
|
8
|
+
type WorkspaceRoute = ReturnType<WorkspaceRoutes[WorkspaceRouteKey]>;
|
|
9
|
+
type WorkspaceNamedRoute = WorkspaceRoute['name'];
|
|
10
|
+
type WorkspaceRouteRecordParent = {
|
|
11
|
+
name?: WorkspaceNamedRoute;
|
|
12
|
+
children: WorkspaceRouteRecord[];
|
|
13
|
+
};
|
|
14
|
+
type WorkspaceRouteRecordChild = {
|
|
15
|
+
name: WorkspaceNamedRoute;
|
|
16
|
+
};
|
|
17
|
+
type WorkspaceRouteRecord = Omit<RouteRecordRaw, 'name' | 'children'> & WorkspaceRouteRecordParent | WorkspaceRouteRecordChild;
|
|
18
|
+
export declare const workspaceRoutesKey: InjectionKey<WorkspaceRoutes>;
|
|
19
|
+
type WorkspaceComponent = () => Promise<RouteComponent>;
|
|
20
|
+
type WorkspaceRouteComponents = Record<WorkspaceRouteKey, WorkspaceComponent>;
|
|
21
|
+
export declare function createWorkspaceRouteRecords(components: Partial<WorkspaceRouteComponents>): WorkspaceRouteRecord[];
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { InjectionKey } from 'vue';
|
|
2
|
-
import { RouteComponent, RouteLocationRaw, RouteRecordRaw } from 'vue-router';
|
|
3
|
-
export type Route = Exclude<RouteLocationRaw, string>;
|
|
4
1
|
type CreateWorkspaceRoutesConfig = {
|
|
5
2
|
accountId: string;
|
|
6
3
|
workspaceId: string;
|
|
@@ -52,6 +49,21 @@ export declare function createWorkspaceRoutes(config?: CreateWorkspaceRoutesConf
|
|
|
52
49
|
readonly flowId: string;
|
|
53
50
|
};
|
|
54
51
|
};
|
|
52
|
+
flowCollections: () => {
|
|
53
|
+
readonly name: "workspace.flows.collections";
|
|
54
|
+
readonly params: {
|
|
55
|
+
readonly accountId?: string | undefined;
|
|
56
|
+
readonly workspaceId?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
flowCollection: (name: string) => {
|
|
60
|
+
readonly name: "workspace.flows.collections.collection";
|
|
61
|
+
readonly params: {
|
|
62
|
+
readonly accountId?: string | undefined;
|
|
63
|
+
readonly workspaceId?: string | undefined;
|
|
64
|
+
readonly name: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
55
67
|
deployments: () => {
|
|
56
68
|
readonly name: "workspace.deployments";
|
|
57
69
|
readonly params: {
|
|
@@ -258,20 +270,4 @@ export declare function createWorkspaceRoutes(config?: CreateWorkspaceRoutesConf
|
|
|
258
270
|
};
|
|
259
271
|
};
|
|
260
272
|
};
|
|
261
|
-
type WorkspaceRoutes = ReturnType<typeof createWorkspaceRoutes>;
|
|
262
|
-
type WorkspaceRouteKey = keyof WorkspaceRoutes;
|
|
263
|
-
type WorkspaceRoute = ReturnType<WorkspaceRoutes[WorkspaceRouteKey]>;
|
|
264
|
-
type WorkspaceNamedRoute = WorkspaceRoute['name'];
|
|
265
|
-
type WorkspaceRouteRecordParent = {
|
|
266
|
-
name?: WorkspaceNamedRoute;
|
|
267
|
-
children: WorkspaceRouteRecord[];
|
|
268
|
-
};
|
|
269
|
-
type WorkspaceRouteRecordChild = {
|
|
270
|
-
name: WorkspaceNamedRoute;
|
|
271
|
-
};
|
|
272
|
-
type WorkspaceRouteRecord = Omit<RouteRecordRaw, 'name' | 'children'> & WorkspaceRouteRecordParent | WorkspaceRouteRecordChild;
|
|
273
|
-
export declare const workspaceRoutesKey: InjectionKey<WorkspaceRoutes>;
|
|
274
|
-
type WorkspaceComponent = () => Promise<RouteComponent>;
|
|
275
|
-
type WorkspaceRouteComponents = Record<WorkspaceRouteKey, WorkspaceComponent>;
|
|
276
|
-
export declare function createWorkspaceRouteRecords(components: Partial<WorkspaceRouteComponents>): WorkspaceRouteRecord[];
|
|
277
273
|
export {};
|
|
@@ -18,7 +18,6 @@ export declare class Api<T extends PrefectConfig = PrefectConfig> {
|
|
|
18
18
|
constructor(apiConfig: T);
|
|
19
19
|
protected composeBaseUrl(): string;
|
|
20
20
|
protected composeHeaders(): AxiosRequestHeaders;
|
|
21
|
-
protected removeLeadingAndTrailingSlashes(input: string): string;
|
|
22
21
|
protected combinePath(route: string | undefined): string;
|
|
23
22
|
protected instance(): AxiosInstance;
|
|
24
23
|
protected get<T, R = AxiosResponse<T>>(route?: string, config?: AxiosRequestConfig): Promise<R>;
|
|
@@ -104,6 +104,12 @@ export declare const mapper: Mapper<{
|
|
|
104
104
|
BlockTypeResponse: {
|
|
105
105
|
BlockType: MapFunction<import("..").BlockTypeResponse, import("..").BlockType>;
|
|
106
106
|
};
|
|
107
|
+
CollectionItemResponse: {
|
|
108
|
+
CollectionItem: MapFunction<import("..").CollectionItemResponse, import("..").CollectionItem>;
|
|
109
|
+
};
|
|
110
|
+
CollectionResponse: {
|
|
111
|
+
CollectionItems: MapFunction<import("..").CollectionsResponse, import("..").CollectionItem[]>;
|
|
112
|
+
};
|
|
107
113
|
ConcurrencyLimitCreate: {
|
|
108
114
|
ConcurrencyLimitCreateRequest: MapFunction<import("..").ConcurrencyLimitCreate, import("..").ConcurrencyLimitCreateRequest>;
|
|
109
115
|
};
|
|
@@ -22,6 +22,7 @@ export declare const mocker: Mocker<{
|
|
|
22
22
|
blockTypeSnippet: MockFunction<string, []>;
|
|
23
23
|
boolean: MockFunction<boolean, []>;
|
|
24
24
|
char: MockFunction<"a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "h" | "d" | "w" | "m" | "y" | "e" | "o" | "c" | "f" | "j" | "k" | "l" | "n" | "r" | "t" | "v" | "x" | "z", []>;
|
|
25
|
+
collectionItem: MockFunction<import("..").CollectionItem, [(Partial<import("..").CollectionItem> | undefined)?]>;
|
|
25
26
|
concurrencyLimit: MockFunction<import("..").ConcurrencyLimit, [(Partial<import("..").ConcurrencyLimit> | undefined)?]>;
|
|
26
27
|
createdOrUpdatedBy: MockFunction<import("..").CreatedOrUpdatedBy, [(Partial<import("..").CreatedOrUpdatedBy> | undefined)?]>;
|
|
27
28
|
date: MockFunction<Date, [(Date | undefined)?, (Date | undefined)?]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
2
|
import { MaybeRef } from '../types/reactivity';
|
|
3
|
-
export declare const workspaceFeatureFlags: readonly [];
|
|
3
|
+
export declare const workspaceFeatureFlags: readonly ["access:collections"];
|
|
4
4
|
export type WorkspaceFeatureFlag = typeof workspaceFeatureFlags[number];
|
|
5
5
|
export declare const workspacePermissions: readonly ["create:automation", "create:block", "create:concurrency_limit", "create:deployment", "create:flow_run", "create:flow", "create:log", "create:notification_policy", "create:saved_search", "create:task_run", "create:work_queue", "create:work_pool_queue", "create:work_pool", "create:workspace_bot_access", "create:workspace_user_access", "delete:automation", "delete:block", "delete:concurrency_limit", "delete:deployment", "delete:flow_run", "delete:flow", "delete:notification_policy", "delete:saved_search", "delete:task_run", "delete:work_queue", "delete:work_pool_queue", "delete:work_pool", "delete:workspace_bot_access", "delete:workspace_user_access", "read:automation", "read:block", "read:concurrency_limit", "read:deployment", "read:flow_run", "read:flow", "read:log", "read:notification_policy", "read:saved_search", "read:task_run", "read:work_queue", "read:work_pool_queue", "read:work_pool", "read:workspace_bot_access", "read:workspace_settings", "read:workspace_user_access", "run:deployment", "update:automation", "update:block", "update:deployment", "update:flow_run", "update:flow", "update:notification_policy", "update:task_run", "update:work_queue", "update:work_pool_queue", "update:work_pool", "update:workspace_bot_access", "update:workspace_settings", "update:workspace_user_access", "update:workspace"];
|
|
6
6
|
export type WorkspacePermission = typeof workspacePermissions[number];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './Api';
|
|
2
2
|
export * from './can';
|
|
3
|
+
export * from './CollectionsApi';
|
|
3
4
|
export * from './HealthApi';
|
|
4
5
|
export * from './Mapper';
|
|
5
6
|
export * from './Mocker';
|
|
@@ -21,5 +22,5 @@ export * from './WorkspaceSavedSearchesApi';
|
|
|
21
22
|
export * from './WorkspaceTaskRunsApi';
|
|
22
23
|
export * from './WorkspaceWorkPoolQueuesApi';
|
|
23
24
|
export * from './WorkspaceWorkPoolsApi';
|
|
24
|
-
export * from './WorkspaceWorkQueuesApi';
|
|
25
25
|
export * from './WorkspaceWorkPoolWorkersApi';
|
|
26
|
+
export * from './WorkspaceWorkQueuesApi';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
+
import { CollectionsApi } from '../services/CollectionsApi';
|
|
2
3
|
import { HealthApi } from '../services/HealthApi';
|
|
3
4
|
import { UiApi } from '../services/UiApi';
|
|
4
5
|
import { WorkspaceApiConfig } from '../services/WorkspaceApi';
|
|
@@ -23,6 +24,7 @@ export declare function createApi(workspaceConfig: WorkspaceApiConfig): {
|
|
|
23
24
|
blockDocuments: import("@prefecthq/vue-compositions").CreateActions<WorkspaceBlockDocumentsApi>;
|
|
24
25
|
blockSchemas: import("@prefecthq/vue-compositions").CreateActions<WorkspaceBlockSchemasApi>;
|
|
25
26
|
blockTypes: import("@prefecthq/vue-compositions").CreateActions<WorkspaceBlockTypesApi>;
|
|
27
|
+
collections: import("@prefecthq/vue-compositions").CreateActions<CollectionsApi>;
|
|
26
28
|
concurrencyLimits: import("@prefecthq/vue-compositions").CreateActions<WorkspaceConcurrencyLimitsApi>;
|
|
27
29
|
deployments: import("@prefecthq/vue-compositions").CreateActions<WorkspaceDeploymentsApi>;
|
|
28
30
|
flowRuns: import("@prefecthq/vue-compositions").CreateActions<WorkspaceFlowRunsApi>;
|
|
@@ -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-a3b116b8.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-3e0f8369.mjs.map
|