@prefecthq/prefect-ui-library 2.4.10 → 2.4.12
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-EYLOXLho.mjs → FlowRunsPageWithDefaultFilter-xNd3Zurp.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-EYLOXLho.mjs.map → FlowRunsPageWithDefaultFilter-xNd3Zurp.mjs.map} +1 -1
- package/dist/{index-UD_uv5IJ.mjs → index-44X1kEqE.mjs} +6577 -6531
- package/dist/index-44X1kEqE.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +74 -74
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/demo/services/mockWorkspaceFlowRunsApi.d.ts +2 -0
- package/dist/types/src/components/SchemaInput.vue.d.ts +2 -0
- package/dist/types/src/maps/index.d.ts +6 -0
- package/dist/types/src/maps/mapFlowRunInputKeysetResponseToFlowRunInputKeyset.d.ts +5 -0
- package/dist/types/src/models/FlowRunInputKeyset.d.ts +4 -0
- package/dist/types/src/models/StateDetails.d.ts +2 -0
- package/dist/types/src/models/api/FlowRunInputKeysetResponse.d.ts +4 -0
- package/dist/types/src/models/api/StateDetailsResponse.d.ts +2 -0
- package/dist/types/src/services/Mapper.d.ts +6 -0
- package/dist/types/src/services/WorkspaceFlowRunsApi.d.ts +4 -2
- package/package.json +1 -1
- package/dist/index-UD_uv5IJ.mjs.map +0 -1
|
@@ -3,6 +3,7 @@ import { MockApi } from '../../src/../demo/services/MockApi';
|
|
|
3
3
|
import { FlowRun, RunHistory, StateUpdate } from '../../src/models';
|
|
4
4
|
import { FlowRunsFilter, FlowRunsHistoryFilter } from '../../src/models/Filters';
|
|
5
5
|
import { IWorkspaceFlowRunsApi } from '../../src/services';
|
|
6
|
+
import { Schema } from '../../src/types';
|
|
6
7
|
export declare class MockWorkspaceFlowRunsApi extends MockApi implements IWorkspaceFlowRunsApi {
|
|
7
8
|
getFlowRun(flowRunId: string): Promise<FlowRun>;
|
|
8
9
|
/**
|
|
@@ -20,4 +21,5 @@ export declare class MockWorkspaceFlowRunsApi extends MockApi implements IWorksp
|
|
|
20
21
|
setFlowRunState(flowRunId: string, body: StateUpdate): Promise<void>;
|
|
21
22
|
resumeFlowRun(flowRunId: string): Promise<void>;
|
|
22
23
|
deleteFlowRun(flowRunId: string): Promise<void>;
|
|
24
|
+
getFlowRunInput(id: string, key: string): Promise<Schema>;
|
|
23
25
|
}
|
|
@@ -3,6 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
3
3
|
modelValue: SchemaValues | null | undefined;
|
|
4
4
|
schema: Schema;
|
|
5
5
|
inputType?: "json" | "form" | null | undefined;
|
|
6
|
+
disableInputTypes?: boolean | undefined;
|
|
6
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
8
|
"update:modelValue": (value: SchemaValues | null | undefined) => void;
|
|
8
9
|
"update:inputType": (value: "json" | "form" | null) => void;
|
|
@@ -10,6 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
10
11
|
modelValue: SchemaValues | null | undefined;
|
|
11
12
|
schema: Schema;
|
|
12
13
|
inputType?: "json" | "form" | null | undefined;
|
|
14
|
+
disableInputTypes?: boolean | undefined;
|
|
13
15
|
}>>> & {
|
|
14
16
|
"onUpdate:modelValue"?: ((value: SchemaValues | null | undefined) => any) | undefined;
|
|
15
17
|
"onUpdate:inputType"?: ((value: "json" | "form" | null) => any) | undefined;
|
|
@@ -155,6 +155,12 @@ export declare const maps: {
|
|
|
155
155
|
FlowRunHistoryResponse: {
|
|
156
156
|
RunHistory: import("..").MapFunction<import("..").FlowRunHistoryResponse, import("..").RunHistory>;
|
|
157
157
|
};
|
|
158
|
+
FlowRunInputKeyset: {
|
|
159
|
+
FlowRunInputKeysetResponse: import("..").MapFunction<import("../models/api/FlowRunInputKeysetResponse").FlowRunInputKeysetResponse, import("../models/FlowRunInputKeyset").FlowRunInputKeyset>;
|
|
160
|
+
};
|
|
161
|
+
FlowRunInputKeysetResponse: {
|
|
162
|
+
FlowRunInputKeyset: import("..").MapFunction<import("../models/FlowRunInputKeyset").FlowRunInputKeyset, import("../models/api/FlowRunInputKeysetResponse").FlowRunInputKeysetResponse>;
|
|
163
|
+
};
|
|
158
164
|
FlowRunResponse: {
|
|
159
165
|
FlowRun: import("..").MapFunction<import("..").FlowRunResponse, import("..").FlowRun>;
|
|
160
166
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FlowRunInputKeysetResponse } from '../models/api/FlowRunInputKeysetResponse';
|
|
2
|
+
import { FlowRunInputKeyset } from '../models/FlowRunInputKeyset';
|
|
3
|
+
import { MapFunction } from '../services/Mapper';
|
|
4
|
+
export declare const mapFlowRunInputKeysetResponseToFlowRunInputKeyset: MapFunction<FlowRunInputKeysetResponse, FlowRunInputKeyset>;
|
|
5
|
+
export declare const mapFlowRunInputKeysetToFlowRunInputKeysetResponse: MapFunction<FlowRunInputKeyset, FlowRunInputKeysetResponse>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FlowRunInputKeyset } from '../models/FlowRunInputKeyset';
|
|
1
2
|
export type StateDetails = {
|
|
2
3
|
flowRunId?: string | null;
|
|
3
4
|
taskRunId?: string | null;
|
|
@@ -7,4 +8,5 @@ export type StateDetails = {
|
|
|
7
8
|
cacheExpiration?: Date | null;
|
|
8
9
|
pauseTimeout?: Date | null;
|
|
9
10
|
pauseReschedule?: boolean | null;
|
|
11
|
+
runInputKeyset?: FlowRunInputKeyset | null;
|
|
10
12
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FlowRunInputKeysetResponse } from '../../models/api/FlowRunInputKeysetResponse';
|
|
1
2
|
import { DateString } from '../../types/dates';
|
|
2
3
|
export type StateDetailsResponse = {
|
|
3
4
|
flow_run_id?: string | null;
|
|
@@ -8,4 +9,5 @@ export type StateDetailsResponse = {
|
|
|
8
9
|
cache_expiration?: string | null;
|
|
9
10
|
pause_timeout?: DateString | null;
|
|
10
11
|
pause_reschedule?: boolean | null;
|
|
12
|
+
run_input_keyset?: FlowRunInputKeysetResponse | null;
|
|
11
13
|
};
|
|
@@ -179,6 +179,12 @@ export declare const mapper: Mapper<{
|
|
|
179
179
|
FlowRunHistoryResponse: {
|
|
180
180
|
RunHistory: MapFunction<import("..").FlowRunHistoryResponse, import("..").RunHistory>;
|
|
181
181
|
};
|
|
182
|
+
FlowRunInputKeyset: {
|
|
183
|
+
FlowRunInputKeysetResponse: MapFunction<import("../models/api/FlowRunInputKeysetResponse").FlowRunInputKeysetResponse, import("../models/FlowRunInputKeyset").FlowRunInputKeyset>;
|
|
184
|
+
};
|
|
185
|
+
FlowRunInputKeysetResponse: {
|
|
186
|
+
FlowRunInputKeyset: MapFunction<import("../models/FlowRunInputKeyset").FlowRunInputKeyset, import("../models/api/FlowRunInputKeysetResponse").FlowRunInputKeysetResponse>;
|
|
187
|
+
};
|
|
182
188
|
FlowRunResponse: {
|
|
183
189
|
FlowRun: MapFunction<import("..").FlowRunResponse, import("..").FlowRun>;
|
|
184
190
|
};
|
|
@@ -4,6 +4,7 @@ import { FlowRunsFilter, FlowRunsHistoryFilter } from '../models/Filters';
|
|
|
4
4
|
import { FlowRun } from '../models/FlowRun';
|
|
5
5
|
import { RunHistory } from '../models/RunHistory';
|
|
6
6
|
import { WorkspaceApi } from '../services/WorkspaceApi';
|
|
7
|
+
import { Schema, SchemaValues } from '../types/schemas';
|
|
7
8
|
export interface IWorkspaceFlowRunsApi {
|
|
8
9
|
getFlowRun: (flowRunId: string) => Promise<FlowRun>;
|
|
9
10
|
getFlowRuns: (filter: FlowRunsFilter) => Promise<FlowRun[]>;
|
|
@@ -13,7 +14,7 @@ export interface IWorkspaceFlowRunsApi {
|
|
|
13
14
|
getFlowRunsGraph: (flowRunId: string) => Promise<RunGraphData>;
|
|
14
15
|
retryFlowRun: (flowRunId: string) => Promise<void>;
|
|
15
16
|
setFlowRunState: (flowRunId: string, body: StateUpdate) => Promise<void>;
|
|
16
|
-
resumeFlowRun: (flowRunId: string) => Promise<void>;
|
|
17
|
+
resumeFlowRun: (flowRunId: string, values?: SchemaValues) => Promise<void>;
|
|
17
18
|
deleteFlowRun: (flowRunId: string) => Promise<void>;
|
|
18
19
|
}
|
|
19
20
|
export declare class WorkspaceFlowRunsApi extends WorkspaceApi implements IWorkspaceFlowRunsApi {
|
|
@@ -25,8 +26,9 @@ export declare class WorkspaceFlowRunsApi extends WorkspaceApi implements IWorks
|
|
|
25
26
|
getFlowRunsHistory(filter: FlowRunsHistoryFilter): Promise<RunHistory[]>;
|
|
26
27
|
getFlowRunsAverageLateness(filter: FlowRunsFilter): Promise<number | null>;
|
|
27
28
|
getFlowRunsGraph(id: string): Promise<RunGraphData>;
|
|
29
|
+
getFlowRunInput(id: string, key: string): Promise<Schema>;
|
|
28
30
|
retryFlowRun(id: string): Promise<void>;
|
|
29
31
|
setFlowRunState(id: string, body: StateUpdate): Promise<void>;
|
|
30
|
-
resumeFlowRun(id: string): Promise<void>;
|
|
32
|
+
resumeFlowRun(id: string, values?: SchemaValues): Promise<void>;
|
|
31
33
|
deleteFlowRun(flowRunId: string): Promise<void>;
|
|
32
34
|
}
|