windmill-client 1.304.2 → 1.304.3

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.304.2',
6
+ VERSION: '1.304.3',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -459,7 +459,7 @@ export declare class JobService {
459
459
  * @returns QueuedJob All queued jobs
460
460
  * @throws ApiError
461
461
  */
462
- static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, allWorkspaces, }: {
462
+ static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, page, perPage, allWorkspaces, }: {
463
463
  workspace: string;
464
464
  /**
465
465
  * order by desc order (default true)
@@ -529,6 +529,14 @@ export declare class JobService {
529
529
  * filter on jobs with a given tag/worker group
530
530
  */
531
531
  tag?: string;
532
+ /**
533
+ * which page to return (start at 1, default 1)
534
+ */
535
+ page?: number;
536
+ /**
537
+ * number of items to return for a given page (default 30, max 100)
538
+ */
539
+ perPage?: number;
532
540
  /**
533
541
  * get jobs from all workspaces (only valid if request come from the `admins` workspace)
534
542
  */
@@ -571,7 +579,7 @@ export declare class JobService {
571
579
  * @returns CompletedJob All completed jobs
572
580
  * @throws ApiError
573
581
  */
574
- static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, hasNullParent, }: {
582
+ static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, page, perPage, isSkipped, isFlowStep, hasNullParent, }: {
575
583
  workspace: string;
576
584
  /**
577
585
  * order by desc order (default true)
@@ -629,6 +637,14 @@ export declare class JobService {
629
637
  * filter on jobs with a given tag/worker group
630
638
  */
631
639
  tag?: string;
640
+ /**
641
+ * which page to return (start at 1, default 1)
642
+ */
643
+ page?: number;
644
+ /**
645
+ * number of items to return for a given page (default 30, max 100)
646
+ */
647
+ perPage?: number;
632
648
  /**
633
649
  * is the job skipped
634
650
  */
@@ -647,7 +663,7 @@ export declare class JobService {
647
663
  * @returns Job All jobs
648
664
  * @throws ApiError
649
665
  */
650
- static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, hasNullParent, success, allWorkspaces, }: {
666
+ static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, page, perPage, isSkipped, isFlowStep, hasNullParent, success, allWorkspaces, }: {
651
667
  workspace: string;
652
668
  /**
653
669
  * mask to filter exact matching user creator
@@ -713,6 +729,14 @@ export declare class JobService {
713
729
  * filter on jobs containing those result as a json subset (@> in postgres)
714
730
  */
715
731
  result?: string;
732
+ /**
733
+ * which page to return (start at 1, default 1)
734
+ */
735
+ page?: number;
736
+ /**
737
+ * number of items to return for a given page (default 30, max 100)
738
+ */
739
+ perPage?: number;
716
740
  /**
717
741
  * is the job skipped
718
742
  */
@@ -324,7 +324,7 @@ class JobService {
324
324
  * @returns QueuedJob All queued jobs
325
325
  * @throws ApiError
326
326
  */
327
- static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, allWorkspaces, }) {
327
+ static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, page, perPage, allWorkspaces, }) {
328
328
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
329
329
  method: 'GET',
330
330
  url: '/w/{workspace}/jobs/queue/list',
@@ -349,6 +349,8 @@ class JobService {
349
349
  'args': args,
350
350
  'result': result,
351
351
  'tag': tag,
352
+ 'page': page,
353
+ 'per_page': perPage,
352
354
  'all_workspaces': allWorkspaces,
353
355
  },
354
356
  });
@@ -403,7 +405,7 @@ class JobService {
403
405
  * @returns CompletedJob All completed jobs
404
406
  * @throws ApiError
405
407
  */
406
- static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, hasNullParent, }) {
408
+ static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, page, perPage, isSkipped, isFlowStep, hasNullParent, }) {
407
409
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
408
410
  method: 'GET',
409
411
  url: '/w/{workspace}/jobs/completed/list',
@@ -425,6 +427,8 @@ class JobService {
425
427
  'args': args,
426
428
  'result': result,
427
429
  'tag': tag,
430
+ 'page': page,
431
+ 'per_page': perPage,
428
432
  'is_skipped': isSkipped,
429
433
  'is_flow_step': isFlowStep,
430
434
  'has_null_parent': hasNullParent,
@@ -436,7 +440,7 @@ class JobService {
436
440
  * @returns Job All jobs
437
441
  * @throws ApiError
438
442
  */
439
- static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, hasNullParent, success, allWorkspaces, }) {
443
+ static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, page, perPage, isSkipped, isFlowStep, hasNullParent, success, allWorkspaces, }) {
440
444
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
441
445
  method: 'GET',
442
446
  url: '/w/{workspace}/jobs/list',
@@ -460,6 +464,8 @@ class JobService {
460
464
  'args': args,
461
465
  'tag': tag,
462
466
  'result': result,
467
+ 'page': page,
468
+ 'per_page': perPage,
463
469
  'is_skipped': isSkipped,
464
470
  'is_flow_step': isFlowStep,
465
471
  'has_null_parent': hasNullParent,
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.304.2",
4
+ "version": "1.304.3",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {