Line

ui/client/features/plan/services/PlanCheckApi

The plan: the server's verdict after every edit (/api/plan/validate) and Run (/api/plan/run).

Cockpit client (features), v0.9. Source: ui/client/features/plan/services/PlanCheckApi.ts.

Functions#

runPlanOnServer()#

runPlanOnServer(plan, noteId?): Promise<ApiResult<{ models: string[]; processId: string; }>>

Defined in: ui/client/features/plan/services/PlanCheckApi.ts:20

noteId names the durable note the plan was made in; the server marks it ran once the process has started.

Parameters#

plan

PlanDoc

noteId?

string

Returns#

Promise<ApiResult<{ models: string[]; processId: string; }>>


validatePlanOnServer()#

validatePlanOnServer(plan): Promise<ApiResult<Validation>>

Defined in: ui/client/features/plan/services/PlanCheckApi.ts:9

Parameters#

plan

PlanDoc

Returns#

Promise<ApiResult<Validation>>