import { ScriptApi } from "https://deno.land/x/windmill@v1.29.0/windmill-api/index.ts";
Constructors
new
ScriptApi(configuration: Configuration,
requestFactory?: ScriptApiRequestFactory,
responseProcessor?: ScriptApiResponseProcessor,
Methods
archiveScriptByHash(): Promise<Script>
archive script by hash
archiveScriptByPath(): Promise<string>
archive script by path
createScript(): Promise<string>
create script
deleteScriptByHash(): Promise<Script>
delete script by hash (erase content but keep hash)
denoToJsonschema(body: string, _options?: Configuration): Promise<MainArgSignature>
inspect deno code to infer jsonschema of arguments
existsScriptByPath(): Promise<boolean>
exists script by path
getHubScriptContentByPath(path: string, _options?: Configuration): Promise<string>
get hub script content by path
getScriptByHash(): Promise<Script>
get script by hash
getScriptByPath(): Promise<Script>
get script by path
getScriptDeploymentStatus(): Promise<InlineResponse2005>
get script deployment status
listHubScripts(_options?: Configuration): Promise<InlineResponse2002>
list all available hub scripts
listScripts(): Promise<Array<Script>>
workspace: string,
page?: number,
perPage?: number,
orderDesc?: boolean,
createdBy?: string,
pathStart?: string,
pathExact?: string,
firstParentHash?: string,
lastParentHash?: string,
parentHash?: string,
showArchived?: boolean,
isTemplate?: boolean,
isTrigger?: boolean,
_options?: Configuration,
list all available scripts
pythonToJsonschema(body: string, _options?: Configuration): Promise<MainArgSignature>
inspect python code to infer jsonschema of arguments