windmill-client 1.151.1 → 1.152.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 +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/models/CompletedJob.d.ts +1 -0
- package/dist/models/CompletedJob.js +1 -0
- package/dist/models/CreatedOrStartedAfter.d.ts +4 -0
- package/dist/models/CreatedOrStartedAfter.js +6 -0
- package/dist/models/CreatedOrStartedBefore.d.ts +4 -0
- package/dist/models/CreatedOrStartedBefore.js +6 -0
- package/dist/models/QueuedJob.d.ts +1 -0
- package/dist/models/QueuedJob.js +1 -0
- package/dist/models/StartedAfter.d.ts +1 -1
- package/dist/models/StartedBefore.d.ts +1 -1
- package/dist/services/JobService.d.ts +39 -7
- package/dist/services/JobService.js +42 -1
- package/package.json +1 -1
package/dist/core/OpenAPI.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export type { ClientName } from './models/ClientName';
|
|
|
16
16
|
export { CompletedJob } from './models/CompletedJob';
|
|
17
17
|
export type { ContextualVariable } from './models/ContextualVariable';
|
|
18
18
|
export type { CreatedBy } from './models/CreatedBy';
|
|
19
|
+
export type { CreatedOrStartedAfter } from './models/CreatedOrStartedAfter';
|
|
20
|
+
export type { CreatedOrStartedBefore } from './models/CreatedOrStartedBefore';
|
|
19
21
|
export type { CreateInput } from './models/CreateInput';
|
|
20
22
|
export type { CreateResource } from './models/CreateResource';
|
|
21
23
|
export type { CreateVariable } from './models/CreateVariable';
|
|
@@ -13,6 +13,7 @@ var CompletedJob;
|
|
|
13
13
|
job_kind["PREVIEW"] = "preview";
|
|
14
14
|
job_kind["DEPENDENCIES"] = "dependencies";
|
|
15
15
|
job_kind["FLOW"] = "flow";
|
|
16
|
+
job_kind["FLOWDEPENDENCIES"] = "flowdependencies";
|
|
16
17
|
job_kind["FLOWPREVIEW"] = "flowpreview";
|
|
17
18
|
job_kind["SCRIPT_HUB"] = "script_hub";
|
|
18
19
|
job_kind["IDENTITY"] = "identity";
|
package/dist/models/QueuedJob.js
CHANGED
|
@@ -12,6 +12,7 @@ var QueuedJob;
|
|
|
12
12
|
job_kind["SCRIPT"] = "script";
|
|
13
13
|
job_kind["PREVIEW"] = "preview";
|
|
14
14
|
job_kind["DEPENDENCIES"] = "dependencies";
|
|
15
|
+
job_kind["FLOWDEPENDENCIES"] = "flowdependencies";
|
|
15
16
|
job_kind["FLOW"] = "flow";
|
|
16
17
|
job_kind["FLOWPREVIEW"] = "flowpreview";
|
|
17
18
|
job_kind["SCRIPT_HUB"] = "script_hub";
|
|
@@ -369,11 +369,11 @@ export declare class JobService {
|
|
|
369
369
|
*/
|
|
370
370
|
scriptHash?: string;
|
|
371
371
|
/**
|
|
372
|
-
* filter on
|
|
372
|
+
* filter on started before (inclusive) timestamp
|
|
373
373
|
*/
|
|
374
374
|
startedBefore?: string;
|
|
375
375
|
/**
|
|
376
|
-
* filter on
|
|
376
|
+
* filter on started after (exclusive) timestamp
|
|
377
377
|
*/
|
|
378
378
|
startedAfter?: string;
|
|
379
379
|
/**
|
|
@@ -405,6 +405,24 @@ export declare class JobService {
|
|
|
405
405
|
*/
|
|
406
406
|
tag?: string;
|
|
407
407
|
}): CancelablePromise<Array<QueuedJob>>;
|
|
408
|
+
/**
|
|
409
|
+
* get queue count
|
|
410
|
+
* @returns any queue count
|
|
411
|
+
* @throws ApiError
|
|
412
|
+
*/
|
|
413
|
+
static getQueueCount({ workspace, }: {
|
|
414
|
+
workspace: string;
|
|
415
|
+
}): CancelablePromise<{
|
|
416
|
+
database_length: number;
|
|
417
|
+
}>;
|
|
418
|
+
/**
|
|
419
|
+
* cancel all jobs
|
|
420
|
+
* @returns string uuids of canceled jobs
|
|
421
|
+
* @throws ApiError
|
|
422
|
+
*/
|
|
423
|
+
static cancelAll({ workspace, }: {
|
|
424
|
+
workspace: string;
|
|
425
|
+
}): CancelablePromise<Array<string>>;
|
|
408
426
|
/**
|
|
409
427
|
* list all available completed jobs
|
|
410
428
|
* @returns CompletedJob All available completed jobs
|
|
@@ -441,11 +459,11 @@ export declare class JobService {
|
|
|
441
459
|
*/
|
|
442
460
|
scriptHash?: string;
|
|
443
461
|
/**
|
|
444
|
-
* filter on
|
|
462
|
+
* filter on started before (inclusive) timestamp
|
|
445
463
|
*/
|
|
446
464
|
startedBefore?: string;
|
|
447
465
|
/**
|
|
448
|
-
* filter on
|
|
466
|
+
* filter on started after (exclusive) timestamp
|
|
449
467
|
*/
|
|
450
468
|
startedAfter?: string;
|
|
451
469
|
/**
|
|
@@ -482,7 +500,7 @@ export declare class JobService {
|
|
|
482
500
|
* @returns Job All jobs
|
|
483
501
|
* @throws ApiError
|
|
484
502
|
*/
|
|
485
|
-
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }: {
|
|
503
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }: {
|
|
486
504
|
workspace: string;
|
|
487
505
|
/**
|
|
488
506
|
* mask to filter exact matching user creator
|
|
@@ -509,13 +527,21 @@ export declare class JobService {
|
|
|
509
527
|
*/
|
|
510
528
|
scriptHash?: string;
|
|
511
529
|
/**
|
|
512
|
-
* filter on
|
|
530
|
+
* filter on started before (inclusive) timestamp
|
|
513
531
|
*/
|
|
514
532
|
startedBefore?: string;
|
|
515
533
|
/**
|
|
516
|
-
* filter on
|
|
534
|
+
* filter on started after (exclusive) timestamp
|
|
517
535
|
*/
|
|
518
536
|
startedAfter?: string;
|
|
537
|
+
/**
|
|
538
|
+
* filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
|
|
539
|
+
*/
|
|
540
|
+
createdOrStartedBefore?: string;
|
|
541
|
+
/**
|
|
542
|
+
* filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
|
|
543
|
+
*/
|
|
544
|
+
createdOrStartedAfter?: string;
|
|
519
545
|
/**
|
|
520
546
|
* filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
521
547
|
*/
|
|
@@ -545,6 +571,12 @@ export declare class JobService {
|
|
|
545
571
|
*/
|
|
546
572
|
success?: boolean;
|
|
547
573
|
}): CancelablePromise<Array<Job>>;
|
|
574
|
+
/**
|
|
575
|
+
* get db clock
|
|
576
|
+
* @returns number the timestamp of the db that can be used to compute the drift
|
|
577
|
+
* @throws ApiError
|
|
578
|
+
*/
|
|
579
|
+
static getDbClock(): CancelablePromise<number>;
|
|
548
580
|
/**
|
|
549
581
|
* get job
|
|
550
582
|
* @returns Job job details
|
|
@@ -280,6 +280,34 @@ class JobService {
|
|
|
280
280
|
},
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* get queue count
|
|
285
|
+
* @returns any queue count
|
|
286
|
+
* @throws ApiError
|
|
287
|
+
*/
|
|
288
|
+
static getQueueCount({ workspace, }) {
|
|
289
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
290
|
+
method: 'GET',
|
|
291
|
+
url: '/w/{workspace}/jobs/queue/count',
|
|
292
|
+
path: {
|
|
293
|
+
'workspace': workspace,
|
|
294
|
+
},
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* cancel all jobs
|
|
299
|
+
* @returns string uuids of canceled jobs
|
|
300
|
+
* @throws ApiError
|
|
301
|
+
*/
|
|
302
|
+
static cancelAll({ workspace, }) {
|
|
303
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
304
|
+
method: 'POST',
|
|
305
|
+
url: '/w/{workspace}/jobs/queue/cancel_all',
|
|
306
|
+
path: {
|
|
307
|
+
'workspace': workspace,
|
|
308
|
+
},
|
|
309
|
+
});
|
|
310
|
+
}
|
|
283
311
|
/**
|
|
284
312
|
* list all available completed jobs
|
|
285
313
|
* @returns CompletedJob All available completed jobs
|
|
@@ -317,7 +345,7 @@ class JobService {
|
|
|
317
345
|
* @returns Job All jobs
|
|
318
346
|
* @throws ApiError
|
|
319
347
|
*/
|
|
320
|
-
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }) {
|
|
348
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }) {
|
|
321
349
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
322
350
|
method: 'GET',
|
|
323
351
|
url: '/w/{workspace}/jobs/list',
|
|
@@ -333,6 +361,8 @@ class JobService {
|
|
|
333
361
|
'script_hash': scriptHash,
|
|
334
362
|
'started_before': startedBefore,
|
|
335
363
|
'started_after': startedAfter,
|
|
364
|
+
'created_or_started_before': createdOrStartedBefore,
|
|
365
|
+
'created_or_started_after': createdOrStartedAfter,
|
|
336
366
|
'job_kinds': jobKinds,
|
|
337
367
|
'args': args,
|
|
338
368
|
'tag': tag,
|
|
@@ -343,6 +373,17 @@ class JobService {
|
|
|
343
373
|
},
|
|
344
374
|
});
|
|
345
375
|
}
|
|
376
|
+
/**
|
|
377
|
+
* get db clock
|
|
378
|
+
* @returns number the timestamp of the db that can be used to compute the drift
|
|
379
|
+
* @throws ApiError
|
|
380
|
+
*/
|
|
381
|
+
static getDbClock() {
|
|
382
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
383
|
+
method: 'GET',
|
|
384
|
+
url: '/jobs/db_clock',
|
|
385
|
+
});
|
|
386
|
+
}
|
|
346
387
|
/**
|
|
347
388
|
* get job
|
|
348
389
|
* @returns Job job details
|