Add governed view revision resolution
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user