Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/windmill-api/apis/JobApi.ts>JobApiRequestFactory

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
class JobApiRequestFactory
import { JobApiRequestFactory } from "https://deno.land/x/windmill@v1.38.0/windmill-api/apis/JobApi.ts";

no description

Methods

cancelQueuedJob(
workspace: string,
id: string,
inlineObject16: InlineObject16,
_options?: Configuration,
): Promise<RequestContext>

cancel queued job

cancelSuspendedJobGet(
workspace: string,
id: string,
resumeId: number,
signature: string,
payload?: any,
_options?: Configuration,
): Promise<RequestContext>

cancel a job for a suspended flow

cancelSuspendedJobPost(
workspace: string,
id: string,
resumeId: number,
signature: string,
body?: any,
_options?: Configuration,
): Promise<RequestContext>

cancel a job for a suspended flow

createJobSignature(
workspace: string,
id: string,
resumeId: number,
_options?: Configuration,
): Promise<RequestContext>

create an HMac signature given a job id and a resume id

deleteCompletedJob(
workspace: string,
id: string,
_options?: Configuration,
): Promise<RequestContext>

delete completed job (erase content but keep run id)

getCompletedJob(
workspace: string,
id: string,
_options?: Configuration,
): Promise<RequestContext>

get completed job

getJob(
workspace: string,
id: string,
_options?: Configuration,
): Promise<RequestContext>

get job

getJobUpdates(
workspace: string,
id: string,
running?: boolean,
logOffset?: number,
_options?: Configuration,
): Promise<RequestContext>

get job updates

listCompletedJobs(
workspace: string,
orderDesc?: boolean,
createdBy?: string,
parentJob?: string,
scriptPathExact?: string,
scriptPathStart?: string,
scriptHash?: string,
createdBefore?: Date,
createdAfter?: Date,
success?: boolean,
jobKinds?: string,
isSkipped?: boolean,
isFlowStep?: boolean,
_options?: Configuration,
): Promise<RequestContext>

list all available completed jobs

listJobs(
workspace: string,
createdBy?: string,
parentJob?: string,
scriptPathExact?: string,
scriptPathStart?: string,
scriptHash?: string,
createdBefore?: Date,
createdAfter?: Date,
jobKinds?: string,
isSkipped?: boolean,
isFlowStep?: boolean,
success?: boolean,
_options?: Configuration,
): Promise<RequestContext>

list all available jobs

listQueue(
workspace: string,
orderDesc?: boolean,
createdBy?: string,
parentJob?: string,
scriptPathExact?: string,
scriptPathStart?: string,
scriptHash?: string,
createdBefore?: Date,
createdAfter?: Date,
success?: boolean,
jobKinds?: string,
_options?: Configuration,
): Promise<RequestContext>

list all available queued jobs

resumeSuspendedJobGet(
workspace: string,
id: string,
resumeId: number,
signature: string,
payload?: any,
_options?: Configuration,
): Promise<RequestContext>

resume a job for a suspended flow

resumeSuspendedJobPost(
workspace: string,
id: string,
resumeId: number,
signature: string,
body?: any,
_options?: Configuration,
): Promise<RequestContext>

resume a job for a suspended flow

runFlowByPath(
workspace: string,
path: string,
requestBody: { [key: string]: any; },
scheduledFor?: Date,
scheduledInSecs?: number,
parentJob?: string,
_options?: Configuration,
): Promise<RequestContext>

run flow by path

runFlowPreview(
workspace: string,
flowPreview: FlowPreview,
_options?: Configuration,
): Promise<RequestContext>

run flow preview

runScriptByHash(
workspace: string,
hash: string,
body: any,
scheduledFor?: Date,
scheduledInSecs?: number,
parentJob?: string,
_options?: Configuration,
): Promise<RequestContext>

run script by hash

runScriptByPath(
workspace: string,
path: string,
requestBody: { [key: string]: any; },
scheduledFor?: Date,
scheduledInSecs?: number,
parentJob?: string,
_options?: Configuration,
): Promise<RequestContext>

run script by path

runScriptPreview(
workspace: string,
preview: Preview,
_options?: Configuration,
): Promise<RequestContext>

run script preview

runWaitResultScriptByPath(
workspace: string,
path: string,
requestBody: { [key: string]: any; },
scheduledFor?: Date,
scheduledInSecs?: number,
parentJob?: string,
_options?: Configuration,
): Promise<RequestContext>

run script by path