@prefecthq/prefect-ui-library 3.12.17 → 3.13.1

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.
@@ -26,7 +26,7 @@ export declare class WorkspaceFlowRunsApi extends WorkspaceApi {
26
26
  getFlowRunInputSchema(id: string, keyset: FlowRunInputKeyset): Promise<Schema>;
27
27
  getFlowRunInputSchemaV2(id: string, keyset: FlowRunInputKeyset): Promise<SchemaV2>;
28
28
  retryFlowRun(id: string): Promise<void>;
29
- setFlowRunState(id: string, body: StateUpdate): Promise<void>;
29
+ setFlowRunState(id: string, body: StateUpdate, force?: boolean): Promise<void>;
30
30
  resumeFlowRun(id: string, values?: SchemaValues): Promise<OrchestrationResult>;
31
31
  resumeFlowRunV2(id: string, values: SchemaValuesV2): Promise<OrchestrationResult>;
32
32
  deleteFlowRun(flowRunId: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "3.12.17",
3
+ "version": "3.13.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -120,12 +120,12 @@ export class WorkspaceFlowRunsApi extends WorkspaceApi {
120
120
  name: 'AwaitingRetry',
121
121
  message: 'Retry from the UI',
122
122
  },
123
- })
123
+ }, false)
124
124
  }
125
125
 
126
- public setFlowRunState(id: string, body: StateUpdate): Promise<void> {
126
+ public setFlowRunState(id: string, body: StateUpdate, force = true): Promise<void> {
127
127
  const requestBody = mapper.map('StateUpdate', body, 'StateUpdateRequest')
128
- return this.post(`/${id}/set_state`, { state: requestBody.state, force: true })
128
+ return this.post(`/${id}/set_state`, { state: requestBody.state, force })
129
129
  }
130
130
 
131
131
  public async resumeFlowRun(id: string, values?: SchemaValues): Promise<OrchestrationResult> {