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.
@@ -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.151.1',
6
+ VERSION: '1.152.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
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';
@@ -44,6 +44,7 @@ export declare namespace CompletedJob {
44
44
  PREVIEW = "preview",
45
45
  DEPENDENCIES = "dependencies",
46
46
  FLOW = "flow",
47
+ FLOWDEPENDENCIES = "flowdependencies",
47
48
  FLOWPREVIEW = "flowpreview",
48
49
  SCRIPT_HUB = "script_hub",
49
50
  IDENTITY = "identity"
@@ -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";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
3
+ */
4
+ export type CreatedOrStartedAfter = string;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /* generated using openapi-typescript-codegen -- do no edit */
3
+ /* istanbul ignore file */
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
3
+ */
4
+ export type CreatedOrStartedBefore = string;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /* generated using openapi-typescript-codegen -- do no edit */
3
+ /* istanbul ignore file */
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -41,6 +41,7 @@ export declare namespace QueuedJob {
41
41
  SCRIPT = "script",
42
42
  PREVIEW = "preview",
43
43
  DEPENDENCIES = "dependencies",
44
+ FLOWDEPENDENCIES = "flowdependencies",
44
45
  FLOW = "flow",
45
46
  FLOWPREVIEW = "flowpreview",
46
47
  SCRIPT_HUB = "script_hub",
@@ -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";
@@ -1,4 +1,4 @@
1
1
  /**
2
- * filter on created after (exclusive) timestamp
2
+ * filter on started after (exclusive) timestamp
3
3
  */
4
4
  export type StartedAfter = string;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * filter on created before (inclusive) timestamp
2
+ * filter on started before (inclusive) timestamp
3
3
  */
4
4
  export type StartedBefore = string;
@@ -369,11 +369,11 @@ export declare class JobService {
369
369
  */
370
370
  scriptHash?: string;
371
371
  /**
372
- * filter on created before (inclusive) timestamp
372
+ * filter on started before (inclusive) timestamp
373
373
  */
374
374
  startedBefore?: string;
375
375
  /**
376
- * filter on created after (exclusive) timestamp
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 created before (inclusive) timestamp
462
+ * filter on started before (inclusive) timestamp
445
463
  */
446
464
  startedBefore?: string;
447
465
  /**
448
- * filter on created after (exclusive) timestamp
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 created before (inclusive) timestamp
530
+ * filter on started before (inclusive) timestamp
513
531
  */
514
532
  startedBefore?: string;
515
533
  /**
516
- * filter on created after (exclusive) timestamp
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
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.151.1",
4
+ "version": "1.152.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {