feat: harden governed runs and add dashboard integration
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import { apiFetch, type ApiSettings } from "@govoplan/core-webui";
|
||||
import {
|
||||
apiFetch,
|
||||
apiReferenceOptionProvider,
|
||||
type ApiSettings,
|
||||
type ReferenceOptionProvider
|
||||
} from "@govoplan/core-webui";
|
||||
import type { DefinitionGraphNodeType } from "@govoplan/core-webui/definition-graph";
|
||||
|
||||
export type PipelineStatus = "draft" | "active" | "archived";
|
||||
@@ -376,6 +381,17 @@ export function deriveDataflowPipeline(
|
||||
);
|
||||
}
|
||||
|
||||
export function dataflowScopeReferenceProvider(
|
||||
settings: ApiSettings,
|
||||
scopeType: "user" | "group"
|
||||
): ReferenceOptionProvider {
|
||||
return apiReferenceOptionProvider(
|
||||
settings,
|
||||
"/api/v1/dataflow/scope-targets",
|
||||
{ scope_type: scopeType }
|
||||
);
|
||||
}
|
||||
|
||||
export async function listDataflowTriggers(
|
||||
settings: ApiSettings,
|
||||
pipelineId: string
|
||||
|
||||
Reference in New Issue
Block a user