@prefecthq/prefect-ui-library 3.11.37 → 3.11.38

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.
@@ -8,6 +8,7 @@ import { SchemaValues } from '../types/schemas';
8
8
  export interface IFlowRun {
9
9
  id: string;
10
10
  flowId: string;
11
+ flowName: string | null;
11
12
  deploymentId: string | null;
12
13
  flowVersion: string | null;
13
14
  idempotencyKey: string | null;
@@ -42,6 +43,7 @@ export interface IFlowRun {
42
43
  export declare class FlowRun extends StorageItem implements IFlowRun {
43
44
  readonly id: string;
44
45
  readonly flowId: string;
46
+ readonly flowName: string | null;
45
47
  readonly deploymentId: string | null;
46
48
  readonly workQueueName: string | null;
47
49
  readonly kind = "flowRun";
@@ -12,6 +12,7 @@ export type FlowRunResponse = {
12
12
  updated: DateString;
13
13
  name: string | null;
14
14
  flow_id: string;
15
+ flow_name: string | null;
15
16
  state_id: string | null;
16
17
  deployment_id: string | null;
17
18
  flow_version: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "3.11.37",
3
+ "version": "3.11.38",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,6 +8,7 @@ export const mapFlowRunResponseToFlowRun: MapFunction<FlowRunResponse, FlowRun>
8
8
  id: source.id,
9
9
  deploymentId: source.deployment_id,
10
10
  flowId: source.flow_id,
11
+ flowName: source.flow_name,
11
12
  flowVersion: source.flow_version,
12
13
  idempotencyKey: source.idempotency_key,
13
14
  expectedStartTime: this.map('string', source.expected_start_time, 'Date'),
@@ -8,6 +8,7 @@ export const randomFlowRun: MockFunction<FlowRun, [Partial<FlowRun>?]> = functio
8
8
  return new FlowRun({
9
9
  id: this.create('id'),
10
10
  flowId: this.create('id'),
11
+ flowName: random() > 0.7 ? this.create('noun') : null,
11
12
  deploymentId: random() > 0.7 ? this.create('id') : null,
12
13
  flowVersion: this.create('string'),
13
14
  idempotencyKey: this.create('string'),
@@ -10,6 +10,7 @@ import { secondsToApproximateString } from '@/utilities/seconds'
10
10
  export interface IFlowRun {
11
11
  id: string,
12
12
  flowId: string,
13
+ flowName: string | null,
13
14
  deploymentId: string | null,
14
15
  flowVersion: string | null,
15
16
  idempotencyKey: string | null,
@@ -45,6 +46,7 @@ export interface IFlowRun {
45
46
  export class FlowRun extends StorageItem implements IFlowRun {
46
47
  public readonly id: string
47
48
  public readonly flowId: string
49
+ public readonly flowName: string | null
48
50
  public readonly deploymentId: string | null
49
51
  public readonly workQueueName: string | null
50
52
  public readonly kind = 'flowRun'
@@ -83,6 +85,7 @@ export class FlowRun extends StorageItem implements IFlowRun {
83
85
  this.id = flowRun.id
84
86
  this.deploymentId = flowRun.deploymentId
85
87
  this.flowId = flowRun.flowId
88
+ this.flowName = flowRun.flowName
86
89
  this.flowVersion = flowRun.flowVersion
87
90
  this.idempotencyKey = flowRun.idempotencyKey
88
91
  this.expectedStartTime = flowRun.expectedStartTime
@@ -13,6 +13,7 @@ export type FlowRunResponse = {
13
13
  updated: DateString,
14
14
  name: string | null,
15
15
  flow_id: string,
16
+ flow_name: string | null,
16
17
  state_id: string | null,
17
18
  deployment_id: string | null,
18
19
  flow_version: string | null,