import { PromiseJobApi } from "https://deno.land/x/windmill@v1.38.0/windmill-api/types/PromiseAPI.ts";
Constructors
new
PromiseJobApi(configuration: Configuration,
requestFactory?: JobApiRequestFactory,
responseProcessor?: JobApiResponseProcessor,
Properties
private
api: ObservableJobApiMethods
cancelQueuedJob(): Promise<string>
cancel queued job
cancelSuspendedJobGet(): Promise<string>
workspace: string,
id: string,
resumeId: number,
signature: string,
payload?: any,
_options?: Configuration,
cancel a job for a suspended flow
cancelSuspendedJobPost(): Promise<string>
workspace: string,
id: string,
resumeId: number,
signature: string,
body?: any,
_options?: Configuration,
cancel a job for a suspended flow
createJobSignature(): Promise<string>
create an HMac signature given a job id and a resume id
deleteCompletedJob(): Promise<CompletedJob>
delete completed job (erase content but keep run id)
getCompletedJob(): Promise<CompletedJob>
get completed job
getJobUpdates(): Promise<InlineResponse2006>
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,
isFlowStep?: 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,
isFlowStep?: 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
resumeSuspendedJobGet(): Promise<string>
workspace: string,
id: string,
resumeId: number,
signature: string,
payload?: any,
_options?: Configuration,
resume a job for a suspended flow
resumeSuspendedJobPost(): Promise<string>
workspace: string,
id: string,
resumeId: number,
signature: string,
body?: any,
_options?: Configuration,
resume a job for a suspended flow
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