windmill-client 1.283.0 → 1.284.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core/OpenAPI.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -139,6 +139,7 @@ export { WindmillFilePreview } from './models/WindmillFilePreview';
|
|
|
139
139
|
export type { WindmillLargeFile } from './models/WindmillLargeFile';
|
|
140
140
|
export type { WorkerPing } from './models/WorkerPing';
|
|
141
141
|
export type { WorkerTag } from './models/WorkerTag';
|
|
142
|
+
export type { WorkflowTask } from './models/WorkflowTask';
|
|
142
143
|
export type { Workspace } from './models/Workspace';
|
|
143
144
|
export type { WorkspaceGitSyncSettings } from './models/WorkspaceGitSyncSettings';
|
|
144
145
|
export type { WorkspaceId } from './models/WorkspaceId';
|
|
@@ -5,6 +5,7 @@ import type { Preview } from '../models/Preview';
|
|
|
5
5
|
import type { QueuedJob } from '../models/QueuedJob';
|
|
6
6
|
import type { RawScriptForDependencies } from '../models/RawScriptForDependencies';
|
|
7
7
|
import type { ScriptArgs } from '../models/ScriptArgs';
|
|
8
|
+
import type { WorkflowTask } from '../models/WorkflowTask';
|
|
8
9
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
10
|
export declare class JobService {
|
|
10
11
|
/**
|
|
@@ -379,6 +380,20 @@ export declare class JobService {
|
|
|
379
380
|
*/
|
|
380
381
|
jobId?: string;
|
|
381
382
|
}): CancelablePromise<string>;
|
|
383
|
+
/**
|
|
384
|
+
* run code-workflow task
|
|
385
|
+
* @returns string job created
|
|
386
|
+
* @throws ApiError
|
|
387
|
+
*/
|
|
388
|
+
static runCodeWorkflowTask({ workspace, jobId, entrypoint, requestBody, }: {
|
|
389
|
+
workspace: string;
|
|
390
|
+
jobId: string;
|
|
391
|
+
entrypoint: string;
|
|
392
|
+
/**
|
|
393
|
+
* preview
|
|
394
|
+
*/
|
|
395
|
+
requestBody: WorkflowTask;
|
|
396
|
+
}): CancelablePromise<string>;
|
|
382
397
|
/**
|
|
383
398
|
* run a one-off dependencies job
|
|
384
399
|
* @returns any dependency job result
|
|
@@ -260,6 +260,24 @@ class JobService {
|
|
|
260
260
|
mediaType: 'application/json',
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* run code-workflow task
|
|
265
|
+
* @returns string job created
|
|
266
|
+
* @throws ApiError
|
|
267
|
+
*/
|
|
268
|
+
static runCodeWorkflowTask({ workspace, jobId, entrypoint, requestBody, }) {
|
|
269
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
270
|
+
method: 'POST',
|
|
271
|
+
url: '/w/{workspace}/jobs/workflow_as_code/{job_id}/{entrypoint}',
|
|
272
|
+
path: {
|
|
273
|
+
'workspace': workspace,
|
|
274
|
+
'job_id': jobId,
|
|
275
|
+
'entrypoint': entrypoint,
|
|
276
|
+
},
|
|
277
|
+
body: requestBody,
|
|
278
|
+
mediaType: 'application/json',
|
|
279
|
+
});
|
|
280
|
+
}
|
|
263
281
|
/**
|
|
264
282
|
* run a one-off dependencies job
|
|
265
283
|
* @returns any dependency job result
|