@prefecthq/prefect-ui-library 3.11.35 → 3.11.36
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/{RunsPageWithDefaultFilter-BVc0-K26.mjs → RunsPageWithDefaultFilter-DQw7V3Xf.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-BVc0-K26.mjs.map → RunsPageWithDefaultFilter-DQw7V3Xf.mjs.map} +1 -1
- package/dist/{WorkQueueToWorkPoolQueueRedirect-S_SOE-42.mjs → WorkQueueToWorkPoolQueueRedirect-D0AhPwML.mjs} +2 -2
- package/dist/{WorkQueueToWorkPoolQueueRedirect-S_SOE-42.mjs.map → WorkQueueToWorkPoolQueueRedirect-D0AhPwML.mjs.map} +1 -1
- package/dist/{index-BZiJZ6am.mjs → index-D6SL-UPY.mjs} +8 -4
- package/dist/{index-BZiJZ6am.mjs.map → index-D6SL-UPY.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +3 -3
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/models/TaskRun.d.ts +2 -0
- package/dist/types/src/models/api/TaskRunResponse.d.ts +1 -0
- package/package.json +2 -2
- package/src/maps/taskRun.ts +2 -0
- package/src/mocks/taskRun.ts +1 -0
- package/src/models/TaskRun.ts +3 -0
- package/src/models/api/TaskRunResponse.ts +1 -0
|
@@ -25,6 +25,7 @@ export interface ITaskRun {
|
|
|
25
25
|
endTime: Date | null;
|
|
26
26
|
stateId: string | null;
|
|
27
27
|
stateType: StateType | null;
|
|
28
|
+
stateName: string | null;
|
|
28
29
|
state: State | null;
|
|
29
30
|
tags: string[] | null;
|
|
30
31
|
}
|
|
@@ -52,6 +53,7 @@ export declare class TaskRun implements ITaskRun {
|
|
|
52
53
|
endTime: Date | null;
|
|
53
54
|
stateId: string | null;
|
|
54
55
|
stateType: StateType | null;
|
|
56
|
+
stateName: string | null;
|
|
55
57
|
state: State | null;
|
|
56
58
|
tags: string[] | null;
|
|
57
59
|
constructor(taskRun: ITaskRun);
|
|
@@ -19,6 +19,7 @@ export type TaskRunResponse = {
|
|
|
19
19
|
state_id: string | null;
|
|
20
20
|
task_inputs: Record<string, TaskInputResponse[]> | null;
|
|
21
21
|
state_type: ServerStateType | null;
|
|
22
|
+
state_name: string | null;
|
|
22
23
|
run_count: number | null;
|
|
23
24
|
expected_start_time: DateString | null;
|
|
24
25
|
next_scheduled_start_time: DateString | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefecthq/prefect-ui-library",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.36",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@types/lodash.debounce": "4.0.9",
|
|
58
58
|
"@types/lodash.isequal": "^4.5.8",
|
|
59
59
|
"@types/lodash.merge": "4.6.9",
|
|
60
|
-
"@types/node": "^22.10.
|
|
60
|
+
"@types/node": "^22.10.10",
|
|
61
61
|
"@types/prismjs": "^1.26.5",
|
|
62
62
|
"@vitejs/plugin-vue": "5.2.1",
|
|
63
63
|
"auto-changelog": "^2.5.0",
|
package/src/maps/taskRun.ts
CHANGED
|
@@ -27,6 +27,7 @@ export const mapTaskRunResponseToTaskRun: MapFunction<TaskRunResponse, TaskRun>
|
|
|
27
27
|
endTime: this.map('string', source.end_time, 'Date'),
|
|
28
28
|
stateId: source.state_id,
|
|
29
29
|
stateType: this.map('ServerStateType', source.state_type, 'StateType'),
|
|
30
|
+
stateName: source.state_name,
|
|
30
31
|
state: this.map('StateResponse', source.state, 'State'),
|
|
31
32
|
tags: source.tags ? sortStringArray(source.tags) : null,
|
|
32
33
|
})
|
|
@@ -56,6 +57,7 @@ export const mapTaskRunToTaskRunResponse: MapFunction<TaskRun, TaskRunResponse>
|
|
|
56
57
|
end_time: this.map('Date', source.endTime, 'string'),
|
|
57
58
|
state_id: source.stateId,
|
|
58
59
|
state_type: this.map('StateType', source.stateType, 'ServerStateType'),
|
|
60
|
+
state_name: source.stateName,
|
|
59
61
|
state: this.map('State', source.state, 'StateResponse'),
|
|
60
62
|
tags: source.tags,
|
|
61
63
|
}
|
package/src/mocks/taskRun.ts
CHANGED
|
@@ -26,6 +26,7 @@ export const randomTaskRun: MockFunction<TaskRun, [Partial<TaskRun>?]> = functio
|
|
|
26
26
|
endTime: this.create('date'),
|
|
27
27
|
stateId: state.id,
|
|
28
28
|
stateType: state.type,
|
|
29
|
+
stateName: state.name,
|
|
29
30
|
state: state,
|
|
30
31
|
tags: this.createMany('noun', this.create('number', [0, 10])),
|
|
31
32
|
...overrides,
|
package/src/models/TaskRun.ts
CHANGED
|
@@ -26,6 +26,7 @@ export interface ITaskRun {
|
|
|
26
26
|
endTime: Date | null,
|
|
27
27
|
stateId: string | null,
|
|
28
28
|
stateType: StateType | null,
|
|
29
|
+
stateName: string | null,
|
|
29
30
|
state: State | null,
|
|
30
31
|
tags: string[] | null,
|
|
31
32
|
}
|
|
@@ -54,6 +55,7 @@ export class TaskRun implements ITaskRun {
|
|
|
54
55
|
public endTime: Date | null
|
|
55
56
|
public stateId: string | null
|
|
56
57
|
public stateType: StateType | null
|
|
58
|
+
public stateName: string | null
|
|
57
59
|
public state: State | null
|
|
58
60
|
public tags: string[] | null
|
|
59
61
|
|
|
@@ -80,6 +82,7 @@ export class TaskRun implements ITaskRun {
|
|
|
80
82
|
this.endTime = taskRun.endTime
|
|
81
83
|
this.stateId = taskRun.stateId
|
|
82
84
|
this.stateType = taskRun.stateType
|
|
85
|
+
this.stateName = taskRun.stateName
|
|
83
86
|
this.state = taskRun.state
|
|
84
87
|
this.tags = taskRun.tags
|
|
85
88
|
}
|
|
@@ -20,6 +20,7 @@ export type TaskRunResponse = {
|
|
|
20
20
|
state_id: string | null,
|
|
21
21
|
task_inputs: Record<string, TaskInputResponse[]> | null,
|
|
22
22
|
state_type: ServerStateType | null,
|
|
23
|
+
state_name: string | null,
|
|
23
24
|
run_count: number | null,
|
|
24
25
|
expected_start_time: DateString | null,
|
|
25
26
|
next_scheduled_start_time: DateString | null,
|