@prefecthq/prefect-ui-library 3.9.2 → 3.9.4

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.
@@ -31,5 +31,6 @@ export declare class WorkspaceFlowRunsApi extends WorkspaceApi {
31
31
  resumeFlowRunV2(id: string, values: SchemaValuesV2): Promise<OrchestrationResult>;
32
32
  deleteFlowRun(flowRunId: string): Promise<void>;
33
33
  downloadFlowRunLogs(flowRunId: string, flowRunName: string | null): Promise<void>;
34
+ getFlowRunJobConfig(flowRunId: string): Promise<Record<string, unknown>>;
34
35
  }
35
36
  export {};
@@ -1,10 +1,11 @@
1
- export declare const prefectStateNames: readonly ["Scheduled", "Late", "Resuming", "AwaitingRetry", "Pending", "Paused", "Suspended", "Running", "Retrying", "Completed", "Cancelled", "Cancelling", "Crashed", "Failed", "TimedOut"];
1
+ export declare const prefectStateNames: readonly ["Scheduled", "Late", "Resuming", "AwaitingRetry", "AwaitingConcurrencySlot", "Pending", "Paused", "Suspended", "Running", "Retrying", "Completed", "Cancelled", "Cancelling", "Crashed", "Failed", "TimedOut"];
2
2
  export type PrefectStateNames = typeof prefectStateNames[number];
3
3
  export declare const prefectStateNameTypes: {
4
4
  readonly Scheduled: "scheduled";
5
5
  readonly Late: "scheduled";
6
6
  readonly Resuming: "scheduled";
7
7
  readonly AwaitingRetry: "scheduled";
8
+ readonly AwaitingConcurrencySlot: "scheduled";
8
9
  readonly Pending: "pending";
9
10
  readonly Paused: "paused";
10
11
  readonly Suspended: "paused";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "3.9.2",
3
+ "version": "3.9.4",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -166,4 +166,8 @@ export class WorkspaceFlowRunsApi extends WorkspaceApi {
166
166
  URL.revokeObjectURL(url)
167
167
  }
168
168
 
169
+ public async getFlowRunJobConfig(flowRunId: string): Promise<Record<string, unknown>> {
170
+ const { data } = await this.get<Record<string, unknown>>(`${flowRunId}/job/config`)
171
+ return data
172
+ }
169
173
  }
@@ -7,6 +7,7 @@ export const prefectStateNames = [
7
7
  'Late',
8
8
  'Resuming',
9
9
  'AwaitingRetry',
10
+ 'AwaitingConcurrencySlot',
10
11
  'Pending',
11
12
  'Paused',
12
13
  'Suspended',
@@ -26,6 +27,7 @@ export const prefectStateNameTypes = {
26
27
  'Late': 'scheduled',
27
28
  'Resuming': 'scheduled',
28
29
  'AwaitingRetry': 'scheduled',
30
+ 'AwaitingConcurrencySlot': 'scheduled',
29
31
  'Pending': 'pending',
30
32
  'Paused': 'paused',
31
33
  'Suspended': 'paused',