@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.
@@ -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.35",
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.6",
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",
@@ -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
  }
@@ -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,
@@ -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,