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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '/api',
6
- VERSION: '1.283.0',
6
+ VERSION: '1.284.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
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';
@@ -0,0 +1,4 @@
1
+ import type { ScriptArgs } from './ScriptArgs';
2
+ export type WorkflowTask = {
3
+ args: ScriptArgs;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "1.283.0",
4
+ "version": "1.284.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {