@prefecthq/prefect-ui-library 1.1.3 → 1.1.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.
- package/dist/{index-ac647112.mjs → index-11494d43.mjs} +14851 -15889
- package/dist/index-11494d43.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +633 -625
- package/dist/prefect-ui-library.umd.js +76 -85
- 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/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/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/CloudConfigMissingParamsError.d.ts +3 -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 -2
- 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 +30 -34
- package/dist/types/src/services/CollectionsApi.d.ts +6 -0
- package/dist/types/src/services/HealthApi.d.ts +4 -3
- 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/UiApi.d.ts +3 -5
- package/dist/types/src/services/WorkspaceApi.d.ts +6 -23
- package/dist/types/src/services/can.d.ts +1 -1
- package/dist/types/src/services/index.d.ts +2 -2
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/utilities/api.d.ts +9 -3
- package/dist/types/src/utilities/variables.d.ts +1 -0
- package/dist/{viewport.es-5fa29f11-359082e6.mjs → viewport.es-5fa29f11-0c579320.mjs} +3 -3
- package/dist/{viewport.es-5fa29f11-359082e6.mjs.map → viewport.es-5fa29f11-0c579320.mjs.map} +1 -1
- package/package.json +4 -4
- package/dist/index-ac647112.mjs.map +0 -1
- package/dist/types/src/models/ApiRouteParams.d.ts +0 -7
- package/dist/types/src/models/ServerSettings.d.ts +0 -42
- package/dist/types/src/services/AdminApi.d.ts +0 -7
- package/dist/types/src/types/classes.d.ts +0 -2
|
@@ -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,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';
|
|
@@ -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';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from './api';
|
|
2
|
-
export * from './ApiRouteParams';
|
|
3
2
|
export * from './Artifact';
|
|
4
3
|
export * from './BlockDocument';
|
|
5
4
|
export * from './BlockDocumentCreate';
|
|
6
5
|
export * from './BlockDocumentUpdate';
|
|
7
6
|
export * from './BlockSchema';
|
|
8
7
|
export * from './BlockType';
|
|
8
|
+
export * from './CollectionItem';
|
|
9
9
|
export * from './ConcurrencyLimit';
|
|
10
10
|
export * from './ConcurrencyLimitCreate';
|
|
11
11
|
export * from './CreatedOrUpdatedBy';
|
|
@@ -33,7 +33,6 @@ export * from './NotificationUpdate';
|
|
|
33
33
|
export * from './RRuleSchedule';
|
|
34
34
|
export * from './RunHistory';
|
|
35
35
|
export * from './SavedSearch';
|
|
36
|
-
export * from './ServerSettings';
|
|
37
36
|
export * from './Schedule';
|
|
38
37
|
export * from './State';
|
|
39
38
|
export * from './StateCreate';
|
|
@@ -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 {};
|
|
@@ -1,35 +1,31 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
protected
|
|
17
|
-
protected
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
protected instance():
|
|
23
|
-
protected config
|
|
24
|
-
protected
|
|
25
|
-
protected
|
|
26
|
-
protected
|
|
27
|
-
protected
|
|
28
|
-
protected
|
|
29
|
-
protected
|
|
30
|
-
protected put<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
|
|
31
|
-
protected patch<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
|
|
32
|
-
protected withParams(params?: ApiRouteParams): this;
|
|
33
|
-
protected getRoute(params?: ApiRouteParams): string;
|
|
34
|
-
private withRoute;
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig, AxiosRequestHeaders, AxiosResponse } from 'axios';
|
|
2
|
+
import { MaybeArray } from '../types/utilities';
|
|
3
|
+
export type PrefectConfig = {
|
|
4
|
+
baseUrl: string;
|
|
5
|
+
token?: string;
|
|
6
|
+
};
|
|
7
|
+
type ConfigFunction<R, T extends PrefectConfig = PrefectConfig> = (config: T) => R;
|
|
8
|
+
export type ApiBaseUrl<T extends PrefectConfig = PrefectConfig> = string | ConfigFunction<string, T>;
|
|
9
|
+
export type ApiHeaders<T extends PrefectConfig = PrefectConfig> = AxiosRequestHeaders | ConfigFunction<AxiosRequestHeaders, T>;
|
|
10
|
+
export declare const getPrefectBaseUrl: ApiBaseUrl;
|
|
11
|
+
export declare const getPrefectUIHeaders: ApiHeaders;
|
|
12
|
+
export declare const getAuthorizationHeaders: ApiHeaders;
|
|
13
|
+
export declare class Api<T extends PrefectConfig = PrefectConfig> {
|
|
14
|
+
protected readonly apiConfig: T;
|
|
15
|
+
protected apiHeaders: MaybeArray<ApiHeaders>;
|
|
16
|
+
protected apiBaseUrl: ApiBaseUrl;
|
|
17
|
+
protected routePrefix: string | undefined;
|
|
18
|
+
constructor(apiConfig: T);
|
|
19
|
+
protected composeBaseUrl(): string;
|
|
20
|
+
protected composeHeaders(): AxiosRequestHeaders;
|
|
21
|
+
protected combinePath(route: string | undefined): string;
|
|
22
|
+
protected instance(): AxiosInstance;
|
|
23
|
+
protected get<T, R = AxiosResponse<T>>(route?: string, config?: AxiosRequestConfig): Promise<R>;
|
|
24
|
+
protected delete<T, R = AxiosResponse<T>>(route?: string, config?: AxiosRequestConfig): Promise<R>;
|
|
25
|
+
protected head<T, R = AxiosResponse<T>>(route?: string, config?: AxiosRequestConfig): Promise<R>;
|
|
26
|
+
protected options<T, R = AxiosResponse<T>>(route?: string, config?: AxiosRequestConfig): Promise<R>;
|
|
27
|
+
protected post<T, R = AxiosResponse<T>>(route?: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
|
|
28
|
+
protected put<T, R = AxiosResponse<T>>(route?: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
|
|
29
|
+
protected patch<T, R = AxiosResponse<T>>(route?: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
|
|
35
30
|
}
|
|
31
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Api
|
|
1
|
+
import { Api } from '../services/Api';
|
|
2
2
|
export declare class HealthApi extends Api {
|
|
3
|
-
protected
|
|
4
|
-
getHealth(): Promise<
|
|
3
|
+
protected routePrefix: string;
|
|
4
|
+
getHealth(): Promise<boolean>;
|
|
5
|
+
isHealthy(): Promise<boolean>;
|
|
5
6
|
}
|
|
@@ -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,9 +1,7 @@
|
|
|
1
|
-
import { InjectionKey } from 'vue';
|
|
2
1
|
import { FlowRunsFilter } from '../models/Filters';
|
|
3
2
|
import { UiFlowRunHistory } from '../models/UiFlowRunHistory';
|
|
4
|
-
import {
|
|
5
|
-
export declare class UiApi extends
|
|
6
|
-
protected
|
|
3
|
+
import { WorkspaceApi } from '../services/WorkspaceApi';
|
|
4
|
+
export declare class UiApi extends WorkspaceApi {
|
|
5
|
+
protected routePrefix: string;
|
|
7
6
|
getFlowRunHistory(filter: FlowRunsFilter): Promise<UiFlowRunHistory[]>;
|
|
8
7
|
}
|
|
9
|
-
export declare const uiApiKey: InjectionKey<UiApi>;
|
|
@@ -1,27 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
3
|
-
baseUrl: string;
|
|
4
|
-
};
|
|
5
|
-
export type PrefectCloudConfig = {
|
|
6
|
-
baseUrl: string;
|
|
1
|
+
import { Api, ApiBaseUrl, PrefectConfig } from '../services/Api';
|
|
2
|
+
export type CloudApiConfig = PrefectConfig & {
|
|
7
3
|
accountId: string;
|
|
8
4
|
workspaceId: string;
|
|
9
|
-
token: string;
|
|
10
5
|
};
|
|
11
|
-
export type WorkspaceApiConfig = PrefectConfig |
|
|
12
|
-
export declare
|
|
13
|
-
|
|
14
|
-
protected
|
|
15
|
-
constructor(workspaceConfig: WorkspaceApiConfig);
|
|
16
|
-
private get config();
|
|
17
|
-
private get baseUrl();
|
|
18
|
-
private get headers();
|
|
19
|
-
protected instance(): AxiosInstance;
|
|
20
|
-
protected get<T, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
|
|
21
|
-
protected delete<T, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
|
|
22
|
-
protected head<T, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
|
|
23
|
-
protected options<T, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
|
|
24
|
-
protected post<T, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
|
|
25
|
-
protected put<T, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
|
|
26
|
-
protected patch<T, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
|
|
6
|
+
export type WorkspaceApiConfig = PrefectConfig | CloudApiConfig;
|
|
7
|
+
export declare function isCloudConfig(config: WorkspaceApiConfig): config is CloudApiConfig;
|
|
8
|
+
export declare class WorkspaceApi extends Api<WorkspaceApiConfig> {
|
|
9
|
+
protected apiBaseUrl: ApiBaseUrl<PrefectConfig>;
|
|
27
10
|
}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
export * from './AdminApi';
|
|
2
1
|
export * from './Api';
|
|
3
2
|
export * from './can';
|
|
3
|
+
export * from './CollectionsApi';
|
|
4
4
|
export * from './HealthApi';
|
|
5
5
|
export * from './Mapper';
|
|
6
6
|
export * from './Mocker';
|
|
@@ -22,5 +22,5 @@ export * from './WorkspaceSavedSearchesApi';
|
|
|
22
22
|
export * from './WorkspaceTaskRunsApi';
|
|
23
23
|
export * from './WorkspaceWorkPoolQueuesApi';
|
|
24
24
|
export * from './WorkspaceWorkPoolsApi';
|
|
25
|
-
export * from './WorkspaceWorkQueuesApi';
|
|
26
25
|
export * from './WorkspaceWorkPoolWorkersApi';
|
|
26
|
+
export * from './WorkspaceWorkQueuesApi';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
+
import { CollectionsApi } from '../services/CollectionsApi';
|
|
3
|
+
import { HealthApi } from '../services/HealthApi';
|
|
4
|
+
import { UiApi } from '../services/UiApi';
|
|
2
5
|
import { WorkspaceApiConfig } from '../services/WorkspaceApi';
|
|
3
6
|
import { WorkspaceBlockCapabilitiesApi } from '../services/WorkspaceBlockCapabilitiesApi';
|
|
4
7
|
import { WorkspaceBlockDocumentsApi } from '../services/WorkspaceBlockDocumentsApi';
|
|
@@ -21,18 +24,21 @@ export declare function createApi(workspaceConfig: WorkspaceApiConfig): {
|
|
|
21
24
|
blockDocuments: import("@prefecthq/vue-compositions").CreateActions<WorkspaceBlockDocumentsApi>;
|
|
22
25
|
blockSchemas: import("@prefecthq/vue-compositions").CreateActions<WorkspaceBlockSchemasApi>;
|
|
23
26
|
blockTypes: import("@prefecthq/vue-compositions").CreateActions<WorkspaceBlockTypesApi>;
|
|
27
|
+
collections: import("@prefecthq/vue-compositions").CreateActions<CollectionsApi>;
|
|
24
28
|
concurrencyLimits: import("@prefecthq/vue-compositions").CreateActions<WorkspaceConcurrencyLimitsApi>;
|
|
25
29
|
deployments: import("@prefecthq/vue-compositions").CreateActions<WorkspaceDeploymentsApi>;
|
|
26
30
|
flowRuns: import("@prefecthq/vue-compositions").CreateActions<WorkspaceFlowRunsApi>;
|
|
27
31
|
flows: import("@prefecthq/vue-compositions").CreateActions<WorkspaceFlowsApi>;
|
|
32
|
+
health: import("@prefecthq/vue-compositions").CreateActions<HealthApi>;
|
|
28
33
|
logs: import("@prefecthq/vue-compositions").CreateActions<WorkspaceLogsApi>;
|
|
29
34
|
notifications: import("@prefecthq/vue-compositions").CreateActions<WorkspaceNotificationsApi>;
|
|
30
|
-
taskRuns: import("@prefecthq/vue-compositions").CreateActions<WorkspaceTaskRunsApi>;
|
|
31
|
-
workQueues: import("@prefecthq/vue-compositions").CreateActions<WorkspaceWorkQueuesApi>;
|
|
32
35
|
savedSearches: import("@prefecthq/vue-compositions").CreateActions<WorkspaceSavedSearchesApi>;
|
|
33
|
-
|
|
36
|
+
taskRuns: import("@prefecthq/vue-compositions").CreateActions<WorkspaceTaskRunsApi>;
|
|
37
|
+
ui: import("@prefecthq/vue-compositions").CreateActions<UiApi>;
|
|
34
38
|
workPoolQueues: import("@prefecthq/vue-compositions").CreateActions<WorkspaceWorkPoolQueuesApi>;
|
|
39
|
+
workPools: import("@prefecthq/vue-compositions").CreateActions<WorkspaceWorkPoolsApi>;
|
|
35
40
|
workPoolWorkers: import("@prefecthq/vue-compositions").CreateActions<WorkspaceWorkPoolWorkersApi>;
|
|
41
|
+
workQueues: import("@prefecthq/vue-compositions").CreateActions<WorkspaceWorkQueuesApi>;
|
|
36
42
|
};
|
|
37
43
|
export type CreateApi = ReturnType<typeof createApi>;
|
|
38
44
|
export declare const workspaceApiKey: InjectionKey<CreateApi>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function sameValue(valueA: unknown, valueB: unknown): boolean;
|
|
2
2
|
export declare function isNullish(value: unknown): value is null | undefined;
|
|
3
3
|
export declare function isNotNullish<T>(value: T | null | undefined): value is T;
|
|
4
|
+
export declare function isDefined<T>(input: T | undefined): input is T;
|
|
@@ -1,7 +1,7 @@
|
|
|
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-11494d43.mjs";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "@prefecthq/vue-compositions";
|
|
4
3
|
import "@prefecthq/prefect-design";
|
|
4
|
+
import "@prefecthq/vue-compositions";
|
|
5
5
|
import "vee-validate";
|
|
6
6
|
import "vue-router";
|
|
7
7
|
class d {
|
|
@@ -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-0c579320.mjs.map
|