@prefecthq/prefect-ui-library 2.1.4 → 2.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/{FlowRunsPageWithDefaultFilter-ac42a53a.mjs → FlowRunsPageWithDefaultFilter-dfb7c768.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-ac42a53a.mjs.map → FlowRunsPageWithDefaultFilter-dfb7c768.mjs.map} +1 -1
- package/dist/{index-0a299f59.mjs → index-34c9294b.mjs} +7924 -7826
- package/dist/index-34c9294b.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +690 -687
- package/dist/prefect-ui-library.umd.js +73 -73
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/demo/services/mockWorkspaceBlockDocumentsApi.d.ts +1 -0
- package/dist/types/src/components/DeploymentStatusBadge.vue.d.ts +16 -0
- package/dist/types/src/components/DeploymentStatusIcon.vue.d.ts +16 -0
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/compositions/useBlockDocuments.d.ts +6 -0
- package/dist/types/src/maps/deploymentStatus.d.ts +4 -0
- package/dist/types/src/maps/index.d.ts +6 -0
- package/dist/types/src/mocks/deploymentStatus.d.ts +3 -0
- package/dist/types/src/mocks/index.d.ts +1 -0
- package/dist/types/src/models/Deployment.d.ts +3 -0
- package/dist/types/src/models/DeploymentStatus.d.ts +3 -0
- package/dist/types/src/models/api/DeploymentResponse.d.ts +2 -0
- package/dist/types/src/models/index.d.ts +1 -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/WorkspaceBlockDocumentsApi.d.ts +2 -0
- package/dist/types/src/services/can.d.ts +1 -1
- package/dist/{viewport.es-88169ec4-14c08196.mjs → viewport.es-88169ec4-d5027844.mjs} +2 -2
- package/dist/{viewport.es-88169ec4-14c08196.mjs.map → viewport.es-88169ec4-d5027844.mjs.map} +1 -1
- package/package.json +3 -3
- package/dist/index-0a299f59.mjs.map +0 -1
|
@@ -18,6 +18,7 @@ export declare const mocks: {
|
|
|
18
18
|
date: import("..").MockFunction<Date, [(Date | undefined)?, (Date | undefined)?]>;
|
|
19
19
|
dateString: import("..").MockFunction<string, [(Date | undefined)?, (Date | undefined)?]>;
|
|
20
20
|
deployment: import("..").MockFunction<import("..").Deployment, [(Partial<import("..").Deployment> | undefined)?]>;
|
|
21
|
+
deploymentStatus: import("..").MockFunction<"ready" | "not_ready", []>;
|
|
21
22
|
email: import("..").MockFunction<string, []>;
|
|
22
23
|
flow: import("..").MockFunction<import("..").Flow, [(Partial<import("..").Flow> | undefined)?]>;
|
|
23
24
|
flowResponse: import("..").MockFunction<import("..").FlowResponse, [(Partial<import("..").FlowResponse> | undefined)?]>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SchemaResponse } from '../models/api/SchemaResponse';
|
|
2
2
|
import { CreatedOrUpdatedBy } from '../models/CreatedOrUpdatedBy';
|
|
3
|
+
import { DeploymentStatus } from '../models/DeploymentStatus';
|
|
3
4
|
import { ObjectLevelCan } from '../models/ObjectLevelCan';
|
|
4
5
|
import { Schedule } from '../models/Schedule';
|
|
5
6
|
import { Schema, SchemaValues } from '../types/schemas';
|
|
@@ -31,6 +32,7 @@ export interface IDeployment {
|
|
|
31
32
|
enforceParameterSchema: boolean;
|
|
32
33
|
pullSteps: unknown;
|
|
33
34
|
can: ObjectLevelCan<'deployment'>;
|
|
35
|
+
status: DeploymentStatus;
|
|
34
36
|
}
|
|
35
37
|
export declare class Deployment implements IDeployment {
|
|
36
38
|
readonly id: string;
|
|
@@ -60,6 +62,7 @@ export declare class Deployment implements IDeployment {
|
|
|
60
62
|
enforceParameterSchema: boolean;
|
|
61
63
|
pullSteps: unknown;
|
|
62
64
|
can: ObjectLevelCan<'deployment'>;
|
|
65
|
+
status: DeploymentStatus;
|
|
63
66
|
constructor(deployment: IDeployment);
|
|
64
67
|
get deprecated(): boolean;
|
|
65
68
|
get appliedBy(): string | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CreatedOrUpdatedByResponse } from '../../models/api/CreatedOrUpdatedByResponse';
|
|
2
2
|
import { ScheduleResponse } from '../../models/api/ScheduleResponse';
|
|
3
3
|
import { SchemaResponse } from '../../models/api/SchemaResponse';
|
|
4
|
+
import { ServerDeploymentStatus } from '../../models/DeploymentStatus';
|
|
4
5
|
import { DateString } from '../../types/dates';
|
|
5
6
|
import { SchemaValues } from '../../types/schemas';
|
|
6
7
|
export type DeploymentResponse = {
|
|
@@ -28,4 +29,5 @@ export type DeploymentResponse = {
|
|
|
28
29
|
work_pool_name: string | null;
|
|
29
30
|
enforce_parameter_schema: boolean;
|
|
30
31
|
pull_steps: unknown;
|
|
32
|
+
status: ServerDeploymentStatus;
|
|
31
33
|
};
|
|
@@ -16,6 +16,7 @@ export * from './CronSchedule';
|
|
|
16
16
|
export * from './CronStringLengthError';
|
|
17
17
|
export * from './Deployment';
|
|
18
18
|
export * from './DeploymentFlowRunCreate';
|
|
19
|
+
export * from './DeploymentStatus';
|
|
19
20
|
export * from './DeploymentUpdate';
|
|
20
21
|
export * from './ObjectLevelCan';
|
|
21
22
|
export * from './EmpiricalPolicy';
|
|
@@ -127,6 +127,9 @@ export declare const mapper: Mapper<{
|
|
|
127
127
|
DeploymentsFilter: {
|
|
128
128
|
DeploymentsFilterRequest: MapFunction<import("..").DeploymentsFilter, import("../models/api/Filters").DeploymentsFilterRequest>;
|
|
129
129
|
};
|
|
130
|
+
DeploymentStatus: {
|
|
131
|
+
ServerDeploymentStatus: MapFunction<"ready" | "not_ready", "READY" | "NOT_READY">;
|
|
132
|
+
};
|
|
130
133
|
DeploymentUpdate: {
|
|
131
134
|
DeploymentUpdateRequest: MapFunction<import("..").DeploymentUpdate, Partial<{
|
|
132
135
|
name: string | null;
|
|
@@ -264,6 +267,9 @@ export declare const mapper: Mapper<{
|
|
|
264
267
|
references?: import("..").BlockDocumentReferencesResponse | undefined;
|
|
265
268
|
}, import("..").SchemaValues>;
|
|
266
269
|
};
|
|
270
|
+
ServerDeploymentStatus: {
|
|
271
|
+
DeploymentStatus: MapFunction<"READY" | "NOT_READY", "ready" | "not_ready">;
|
|
272
|
+
};
|
|
267
273
|
ServerStateType: {
|
|
268
274
|
StateType: MapFunction<"COMPLETED" | "RUNNING" | "SCHEDULED" | "PENDING" | "FAILED" | "CANCELLED" | "CANCELLING" | "CRASHED" | "PAUSED", "completed" | "running" | "scheduled" | "pending" | "failed" | "cancelled" | "cancelling" | "crashed" | "paused">;
|
|
269
275
|
};
|
|
@@ -31,6 +31,7 @@ export declare const mocker: Mocker<{
|
|
|
31
31
|
date: MockFunction<Date, [(Date | undefined)?, (Date | undefined)?]>;
|
|
32
32
|
dateString: MockFunction<string, [(Date | undefined)?, (Date | undefined)?]>;
|
|
33
33
|
deployment: MockFunction<import("..").Deployment, [(Partial<import("..").Deployment> | undefined)?]>;
|
|
34
|
+
deploymentStatus: MockFunction<"ready" | "not_ready", []>;
|
|
34
35
|
email: MockFunction<string, []>;
|
|
35
36
|
flow: MockFunction<import("..").Flow, [(Partial<import("..").Flow> | undefined)?]>;
|
|
36
37
|
flowResponse: MockFunction<import("..").FlowResponse, [(Partial<import("..").FlowResponse> | undefined)?]>;
|
|
@@ -9,6 +9,7 @@ export interface IWorkspaceBlockDocumentsApi {
|
|
|
9
9
|
createBlockDocument: (blockDocument: BlockDocumentCreate) => Promise<BlockDocument>;
|
|
10
10
|
updateBlockDocument: (blockDocumentId: string, blockDocument: BlockDocumentUpdate) => Promise<void>;
|
|
11
11
|
deleteBlockDocument: (blockDocumentId: string) => Promise<void>;
|
|
12
|
+
getBlockDocumentsCount: (filter: BlockDocumentsFilter) => Promise<number>;
|
|
12
13
|
}
|
|
13
14
|
export declare class WorkspaceBlockDocumentsApi extends WorkspaceApi implements IWorkspaceBlockDocumentsApi {
|
|
14
15
|
protected routePrefix: string;
|
|
@@ -18,4 +19,5 @@ export declare class WorkspaceBlockDocumentsApi extends WorkspaceApi implements
|
|
|
18
19
|
createBlockDocument(blockDocument: BlockDocumentCreate): Promise<BlockDocument>;
|
|
19
20
|
updateBlockDocument(blockDocumentId: string, blockDocument: BlockDocumentUpdate): Promise<void>;
|
|
20
21
|
deleteBlockDocument(blockDocumentId: string): Promise<void>;
|
|
22
|
+
getBlockDocumentsCount(filter?: BlockDocumentsFilter): Promise<number>;
|
|
21
23
|
}
|
|
@@ -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:deploymentStatus"];
|
|
4
4
|
export type WorkspaceFeatureFlag = typeof workspaceFeatureFlags[number];
|
|
5
5
|
export declare const workspacePermissions: readonly ["create:artifact", "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:variable", "create:work_queue", "create:work_pool_queue", "create:work_pool", "create:workspace_bot_access", "create:workspace_user_access", "delete:artifact", "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", "delete:variable", "read:artifact", "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:variable", "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:concurrency_limit", "update:deployment", "update:flow_run", "update:flow", "update:notification_policy", "update:task_run", "update:variable", "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,4 +1,4 @@
|
|
|
1
|
-
import { X as O, c as k, J as b, f as c } from "./index-
|
|
1
|
+
import { X as O, c as k, J as b, f as c } from "./index-34c9294b.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
|
N as Wheel
|
|
1537
1537
|
};
|
|
1538
|
-
//# sourceMappingURL=viewport.es-88169ec4-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-88169ec4-d5027844.mjs.map
|