Add governed view revision resolution

This commit is contained in:
2026-07-31 02:48:57 +02:00
parent 2df42fb0f8
commit 5c5aeecc19
8 changed files with 496 additions and 43 deletions
+24
View File
@@ -163,6 +163,30 @@ export async function selectEffectiveView(
);
}
export async function resolveWorkflowView(
settings: ApiSettings,
context: {
viewId: string;
revisionId?: string | null;
visibleSurfaceIds?: string[];
}
): Promise<EffectiveViewProjection> {
return projection(
await apiFetch<EffectiveViewApiResponse>(
settings,
"/api/v1/views/effective/workflow",
{
method: "POST",
...jsonBody({
view_id: context.viewId,
revision_id: context.revisionId ?? null,
visible_surface_ids: context.visibleSurfaceIds ?? []
})
}
)
);
}
export async function fetchViewDefinitions(
settings: ApiSettings,
scopeType: ViewScopeType,