import { JobApi } from "https://deno.land/x/windmill@v1.26.0/mod.ts";
Constructors
new
JobApi(configuration: Configuration,
requestFactory?: JobApiRequestFactory,
responseProcessor?: JobApiResponseProcessor,
Methods
cancelQueuedJob(): Promise<string>
cancel queued job
deleteCompletedJob(): Promise<CompletedJob>
delete completed job (erase content but keep run id)
getCompletedJob(): Promise<CompletedJob>
get completed job
getJob(): Promise<Job>
get job
getJobUpdates(): Promise<InlineResponse2005>
get job updates
listCompletedJobs(): Promise<Array<CompletedJob>>
workspace: string,
orderDesc?: boolean,
createdBy?: string,
parentJob?: string,
scriptPathExact?: string,
scriptPathStart?: string,
scriptHash?: string,
createdBefore?: Date,
createdAfter?: Date,
success?: boolean,
jobKinds?: string,
isSkipped?: boolean,
_options?: Configuration,
list all available completed jobs
listJobs(): Promise<Array<Job>>
workspace: string,
createdBy?: string,
parentJob?: string,
scriptPathExact?: string,
scriptPathStart?: string,
scriptHash?: string,
createdBefore?: Date,
createdAfter?: Date,
jobKinds?: string,
isSkipped?: boolean,
success?: boolean,
_options?: Configuration,
list all available jobs
listQueue(): Promise<Array<QueuedJob>>
workspace: string,
orderDesc?: boolean,
createdBy?: string,
parentJob?: string,
scriptPathExact?: string,
scriptPathStart?: string,
scriptHash?: string,
createdBefore?: Date,
createdAfter?: Date,
success?: boolean,
jobKinds?: string,
_options?: Configuration,
list all available queued jobs
runFlowByPath(): Promise<string>
workspace: string,
path: string,
requestBody: { [key: string]: any; },
scheduledFor?: Date,
scheduledInSecs?: number,
parentJob?: string,
_options?: Configuration,
run flow by path
runFlowPreview(): Promise<string>
run flow preview
runScriptByHash(): Promise<string>
workspace: string,
hash: string,
body: any,
scheduledFor?: Date,
scheduledInSecs?: number,
parentJob?: string,
_options?: Configuration,
run script by hash
runScriptByPath(): Promise<string>
workspace: string,
path: string,
requestBody: { [key: string]: any; },
scheduledFor?: Date,
scheduledInSecs?: number,
parentJob?: string,
_options?: Configuration,
run script by path
runScriptPreview(): Promise<string>
run script preview
runWaitResultScriptByPath(): Promise<any>
workspace: string,
path: string,
requestBody: { [key: string]: any; },
scheduledFor?: Date,
scheduledInSecs?: number,
parentJob?: string,
_options?: Configuration,
run script by path