@prefecthq/prefect-ui-library 2.4.32 → 2.4.33
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-h3yilDq9.mjs → FlowRunsPageWithDefaultFilter-qZ3a2GVv.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-h3yilDq9.mjs.map → FlowRunsPageWithDefaultFilter-qZ3a2GVv.mjs.map} +1 -1
- package/dist/{index-G8ZXHlz0.mjs → index-LyI-ooWX.mjs} +14709 -14826
- package/dist/index-LyI-ooWX.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +703 -704
- package/dist/prefect-ui-library.umd.js +79 -79
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/DeploymentsList.vue.d.ts +2 -0
- package/dist/types/src/components/index.d.ts +0 -1
- package/dist/types/src/models/FlowRunInputKeyset.d.ts +1 -0
- package/dist/types/src/models/api/FlowRunInputKeysetResponse.d.ts +1 -0
- package/dist/types/src/schemas/components/SchemaFormProperties.vue.d.ts +4 -4
- package/dist/types/src/{components/DeploymentsTable.vue.d.ts → schemas/components/SchemaFormPropertyArray.vue.d.ts} +11 -7
- package/dist/types/src/schemas/components/SchemaFormPropertyBlockDocument.vue.d.ts +2 -2
- package/dist/types/src/schemas/components/SchemaFormPropertyObject.vue.d.ts +27 -0
- package/dist/types/src/schemas/compositions/useSchemaProperty.d.ts +3 -0
- package/dist/types/src/schemas/mapper.d.ts +13 -0
- package/dist/types/src/schemas/maps/index.d.ts +11 -0
- package/dist/types/src/schemas/maps/schema.d.ts +6 -0
- package/dist/types/src/schemas/types/schema.d.ts +11 -13
- package/dist/types/src/schemas/types/schemaResponse.d.ts +24 -0
- package/dist/types/src/services/WorkspaceFlowRunsApi.d.ts +3 -1
- package/package.json +2 -2
- package/dist/index-G8ZXHlz0.mjs.map +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Mapper } from '../services/Mapper';
|
|
2
|
+
export declare const mapper: Mapper<{
|
|
3
|
+
SchemaResponse: {
|
|
4
|
+
Schema: MapFunction<import("./types/schemaResponse").SchemaResponse, import("./types/schema").Schema>;
|
|
5
|
+
};
|
|
6
|
+
SchemaPropertyResponse: {
|
|
7
|
+
SchemaProperty: MapFunction<import("./types/schemaResponse").SchemaPropertyResponse, import("./types/schema").SchemaProperty>;
|
|
8
|
+
};
|
|
9
|
+
SchemaPropertiesResponse: {
|
|
10
|
+
SchemaProperties: MapFunction<import("./types/schemaResponse").SchemaPropertiesResponse, import("./types/schema").SchemaProperties>;
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
13
|
+
export type MapFunction<S, D> = (this: typeof mapper, source: S) => D;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const maps: {
|
|
2
|
+
SchemaResponse: {
|
|
3
|
+
Schema: import("../mapper").MapFunction<import("../types/schemaResponse").SchemaResponse, import("../types/schema").Schema>;
|
|
4
|
+
};
|
|
5
|
+
SchemaPropertyResponse: {
|
|
6
|
+
SchemaProperty: import("../mapper").MapFunction<import("../types/schemaResponse").SchemaPropertyResponse, import("../types/schema").SchemaProperty>;
|
|
7
|
+
};
|
|
8
|
+
SchemaPropertiesResponse: {
|
|
9
|
+
SchemaProperties: import("../mapper").MapFunction<import("../types/schemaResponse").SchemaPropertiesResponse, import("../types/schema").SchemaProperties>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MapFunction } from '../../schemas/mapper';
|
|
2
|
+
import { Schema, SchemaProperties, SchemaProperty } from '../../schemas/types/schema';
|
|
3
|
+
import { SchemaPropertiesResponse, SchemaPropertyResponse, SchemaResponse } from '../../schemas/types/schemaResponse';
|
|
4
|
+
export declare const mapSchemaResponseToSchema: MapFunction<SchemaResponse, Schema>;
|
|
5
|
+
export declare const mapSchemaPropertiesResponseToSchemaProperties: MapFunction<SchemaPropertiesResponse, SchemaProperties>;
|
|
6
|
+
export declare const mapSchemaPropertyResponseToSchemaProperty: MapFunction<SchemaPropertyResponse, SchemaProperty>;
|
|
@@ -4,30 +4,28 @@ export type SchemaPropertyType = typeof schemaTypes[number];
|
|
|
4
4
|
export declare function isSchemaPropertyType<T extends SchemaPropertyType | undefined>(value: unknown, type: T): value is T;
|
|
5
5
|
export declare const schemaStringFormat: readonly ["date", "date-time", "regex", "password"], isSchemaStringFormat: (value: unknown) => value is "date" | "regex" | "date-time" | "password";
|
|
6
6
|
export type SchemaStringFormat = typeof schemaStringFormat[number];
|
|
7
|
-
export type SchemaPropertiesResponse = Record<string, SchemaPropertyResponse>;
|
|
8
|
-
export type SchemaDefinitionsResponse = Record<string, SchemaPropertyResponse>;
|
|
9
7
|
export type SchemaDefinition = `#/definitions/${string}`;
|
|
10
|
-
export type
|
|
8
|
+
export type SchemaProperties = Record<string, SchemaProperty>;
|
|
9
|
+
export type SchemaDefinitions = Record<string, SchemaProperty>;
|
|
10
|
+
export type SchemaProperty = {
|
|
11
11
|
position?: number;
|
|
12
|
-
|
|
12
|
+
blockTypeSlug?: string;
|
|
13
13
|
$ref?: SchemaDefinition;
|
|
14
|
-
anyOf?:
|
|
15
|
-
allOf?:
|
|
14
|
+
anyOf?: SchemaProperty[];
|
|
15
|
+
allOf?: SchemaProperty[];
|
|
16
16
|
example?: string;
|
|
17
17
|
default?: unknown;
|
|
18
|
+
const?: unknown;
|
|
18
19
|
description?: string;
|
|
19
20
|
enum?: unknown[];
|
|
20
21
|
format?: SchemaStringFormat;
|
|
21
|
-
items?:
|
|
22
|
-
properties?:
|
|
22
|
+
items?: SchemaProperty;
|
|
23
|
+
properties?: SchemaProperties;
|
|
23
24
|
required?: string[];
|
|
24
25
|
title?: string;
|
|
25
26
|
type?: SchemaPropertyType;
|
|
26
27
|
};
|
|
27
28
|
export declare function isPropertyWith<TKey extends keyof SchemaProperty>(value: SchemaProperty, property: TKey): value is Simplify<SchemaProperty & Required<Pick<SchemaProperty, TKey>>>;
|
|
28
|
-
export type
|
|
29
|
-
definitions?:
|
|
29
|
+
export type Schema = SchemaProperty & {
|
|
30
|
+
definitions?: SchemaDefinitions;
|
|
30
31
|
};
|
|
31
|
-
export type SchemaProperties = SchemaPropertiesResponse;
|
|
32
|
-
export type SchemaProperty = SchemaPropertyResponse;
|
|
33
|
-
export type Schema = SchemaResponse;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SchemaDefinition, SchemaPropertyType, SchemaStringFormat } from '../../schemas/types/schema';
|
|
2
|
+
export type SchemaPropertiesResponse = Record<string, SchemaPropertyResponse>;
|
|
3
|
+
export type SchemaDefinitionsResponse = Record<string, SchemaPropertyResponse>;
|
|
4
|
+
export type SchemaPropertyResponse = {
|
|
5
|
+
position?: number;
|
|
6
|
+
block_type_slug?: string;
|
|
7
|
+
$ref?: SchemaDefinition;
|
|
8
|
+
anyOf?: SchemaPropertyResponse[];
|
|
9
|
+
allOf?: SchemaPropertyResponse[];
|
|
10
|
+
example?: string;
|
|
11
|
+
default?: unknown;
|
|
12
|
+
const?: unknown;
|
|
13
|
+
description?: string;
|
|
14
|
+
enum?: unknown[];
|
|
15
|
+
format?: SchemaStringFormat;
|
|
16
|
+
items?: SchemaPropertyResponse;
|
|
17
|
+
properties?: SchemaPropertiesResponse;
|
|
18
|
+
required?: string[];
|
|
19
|
+
title?: string;
|
|
20
|
+
type?: SchemaPropertyType;
|
|
21
|
+
};
|
|
22
|
+
export type SchemaResponse = SchemaPropertyResponse & {
|
|
23
|
+
definitions?: SchemaDefinitionsResponse;
|
|
24
|
+
};
|
|
@@ -3,6 +3,7 @@ import { StateUpdate } from '../models';
|
|
|
3
3
|
import { OrchestrationResult } from '../models/api/OrchestrationResult';
|
|
4
4
|
import { FlowRunsFilter, FlowRunsHistoryFilter } from '../models/Filters';
|
|
5
5
|
import { FlowRun } from '../models/FlowRun';
|
|
6
|
+
import { FlowRunInputKeyset } from '../models/FlowRunInputKeyset';
|
|
6
7
|
import { RunHistory } from '../models/RunHistory';
|
|
7
8
|
import { WorkspaceApi } from '../services/WorkspaceApi';
|
|
8
9
|
import { Schema, SchemaValues } from '../types/schemas';
|
|
@@ -15,7 +16,8 @@ export declare class WorkspaceFlowRunsApi extends WorkspaceApi {
|
|
|
15
16
|
getFlowRunsHistory(filter: FlowRunsHistoryFilter): Promise<RunHistory[]>;
|
|
16
17
|
getFlowRunsAverageLateness(filter: FlowRunsFilter): Promise<number | null>;
|
|
17
18
|
getFlowRunsGraph(id: string): Promise<RunGraphData>;
|
|
18
|
-
|
|
19
|
+
getFlowRunInputDescription(id: string, keyset: FlowRunInputKeyset): Promise<string | null>;
|
|
20
|
+
getFlowRunInputSchema(id: string, keyset: FlowRunInputKeyset): Promise<Schema>;
|
|
19
21
|
retryFlowRun(id: string): Promise<void>;
|
|
20
22
|
setFlowRunState(id: string, body: StateUpdate): Promise<void>;
|
|
21
23
|
resumeFlowRun(id: string, values?: SchemaValues): Promise<OrchestrationResult>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefecthq/prefect-ui-library",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.33",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"vue-tsc": "1.8.27"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@prefecthq/prefect-design": "^2.
|
|
64
|
+
"@prefecthq/prefect-design": "^2.3.0",
|
|
65
65
|
"@prefecthq/vue-charts": "^2.0.3",
|
|
66
66
|
"@prefecthq/vue-compositions": "^1.7.1",
|
|
67
67
|
"vee-validate": "^4.7.0",
|