windmill-client 1.267.0 → 1.269.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GitRepositorySettings } from './GitRepositorySettings';
|
|
2
2
|
export type WorkspaceGitSyncSettings = {
|
|
3
3
|
include_path?: Array<string>;
|
|
4
|
-
include_type?: Array<'script' | 'flow' | 'app' | 'folder'>;
|
|
4
|
+
include_type?: Array<'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule'>;
|
|
5
5
|
repositories?: Array<GitRepositorySettings>;
|
|
6
6
|
};
|
|
@@ -427,7 +427,7 @@ export declare class JobService {
|
|
|
427
427
|
* @returns QueuedJob All queued jobs
|
|
428
428
|
* @throws ApiError
|
|
429
429
|
*/
|
|
430
|
-
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, }: {
|
|
430
|
+
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, allWorkspaces, }: {
|
|
431
431
|
workspace: string;
|
|
432
432
|
/**
|
|
433
433
|
* order by desc order (default true)
|
|
@@ -497,14 +497,22 @@ export declare class JobService {
|
|
|
497
497
|
* filter on jobs with a given tag/worker group
|
|
498
498
|
*/
|
|
499
499
|
tag?: string;
|
|
500
|
+
/**
|
|
501
|
+
* get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
502
|
+
*/
|
|
503
|
+
allWorkspaces?: boolean;
|
|
500
504
|
}): CancelablePromise<Array<QueuedJob>>;
|
|
501
505
|
/**
|
|
502
506
|
* get queue count
|
|
503
507
|
* @returns any queue count
|
|
504
508
|
* @throws ApiError
|
|
505
509
|
*/
|
|
506
|
-
static getQueueCount({ workspace, }: {
|
|
510
|
+
static getQueueCount({ workspace, allWorkspaces, }: {
|
|
507
511
|
workspace: string;
|
|
512
|
+
/**
|
|
513
|
+
* get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
514
|
+
*/
|
|
515
|
+
allWorkspaces?: boolean;
|
|
508
516
|
}): CancelablePromise<{
|
|
509
517
|
database_length: number;
|
|
510
518
|
}>;
|
|
@@ -603,7 +611,7 @@ export declare class JobService {
|
|
|
603
611
|
* @returns Job All jobs
|
|
604
612
|
* @throws ApiError
|
|
605
613
|
*/
|
|
606
|
-
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }: {
|
|
614
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, allWorkspaces, }: {
|
|
607
615
|
workspace: string;
|
|
608
616
|
/**
|
|
609
617
|
* mask to filter exact matching user creator
|
|
@@ -681,6 +689,10 @@ export declare class JobService {
|
|
|
681
689
|
* filter on successful jobs
|
|
682
690
|
*/
|
|
683
691
|
success?: boolean;
|
|
692
|
+
/**
|
|
693
|
+
* get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
694
|
+
*/
|
|
695
|
+
allWorkspaces?: boolean;
|
|
684
696
|
}): CancelablePromise<Array<Job>>;
|
|
685
697
|
/**
|
|
686
698
|
* get db clock
|
|
@@ -302,7 +302,7 @@ class JobService {
|
|
|
302
302
|
* @returns QueuedJob All queued jobs
|
|
303
303
|
* @throws ApiError
|
|
304
304
|
*/
|
|
305
|
-
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, }) {
|
|
305
|
+
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, allWorkspaces, }) {
|
|
306
306
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
307
307
|
method: 'GET',
|
|
308
308
|
url: '/w/{workspace}/jobs/queue/list',
|
|
@@ -327,6 +327,7 @@ class JobService {
|
|
|
327
327
|
'args': args,
|
|
328
328
|
'result': result,
|
|
329
329
|
'tag': tag,
|
|
330
|
+
'all_workspaces': allWorkspaces,
|
|
330
331
|
},
|
|
331
332
|
});
|
|
332
333
|
}
|
|
@@ -335,13 +336,16 @@ class JobService {
|
|
|
335
336
|
* @returns any queue count
|
|
336
337
|
* @throws ApiError
|
|
337
338
|
*/
|
|
338
|
-
static getQueueCount({ workspace, }) {
|
|
339
|
+
static getQueueCount({ workspace, allWorkspaces, }) {
|
|
339
340
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
340
341
|
method: 'GET',
|
|
341
342
|
url: '/w/{workspace}/jobs/queue/count',
|
|
342
343
|
path: {
|
|
343
344
|
'workspace': workspace,
|
|
344
345
|
},
|
|
346
|
+
query: {
|
|
347
|
+
'all_workspaces': allWorkspaces,
|
|
348
|
+
},
|
|
345
349
|
});
|
|
346
350
|
}
|
|
347
351
|
/**
|
|
@@ -409,7 +413,7 @@ class JobService {
|
|
|
409
413
|
* @returns Job All jobs
|
|
410
414
|
* @throws ApiError
|
|
411
415
|
*/
|
|
412
|
-
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }) {
|
|
416
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, allWorkspaces, }) {
|
|
413
417
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
414
418
|
method: 'GET',
|
|
415
419
|
url: '/w/{workspace}/jobs/list',
|
|
@@ -436,6 +440,7 @@ class JobService {
|
|
|
436
440
|
'is_skipped': isSkipped,
|
|
437
441
|
'is_flow_step': isFlowStep,
|
|
438
442
|
'success': success,
|
|
443
|
+
'all_workspaces': allWorkspaces,
|
|
439
444
|
},
|
|
440
445
|
});
|
|
441
446
|
}
|