windmill-cli 1.587.1 → 1.588.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/esm/gen/core/OpenAPI.js +1 -1
- package/esm/gen/services.gen.js +101 -0
- package/esm/src/commands/app/apps.js +15 -5
- package/esm/src/commands/flow/flow.js +0 -1
- package/esm/src/commands/jobs/jobs.js +186 -0
- package/esm/src/commands/sync/global.js +23 -0
- package/esm/src/commands/sync/sync.js +24 -10
- package/esm/src/main.js +3 -1
- package/package.json +1 -1
- package/types/gen/services.gen.d.ts +48 -1
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +186 -0
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/commands/app/apps.d.ts.map +1 -1
- package/types/src/commands/flow/flow.d.ts.map +1 -1
- package/types/src/commands/jobs/jobs.d.ts +28 -0
- package/types/src/commands/jobs/jobs.d.ts.map +1 -0
- package/types/src/commands/sync/global.d.ts +3 -0
- package/types/src/commands/sync/global.d.ts.map +1 -0
- package/types/src/commands/sync/sync.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
- package/types/src/main.d.ts.map +1 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +186 -0
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
package/types/gen/types.gen.d.ts
CHANGED
|
@@ -690,6 +690,153 @@ export type CompletedJob = {
|
|
|
690
690
|
preprocessed?: boolean;
|
|
691
691
|
worker?: string;
|
|
692
692
|
};
|
|
693
|
+
/**
|
|
694
|
+
* Completed job with full data for export/import operations
|
|
695
|
+
*/
|
|
696
|
+
export type ExportableCompletedJob = {
|
|
697
|
+
id: string;
|
|
698
|
+
parent_job?: string;
|
|
699
|
+
created_by: string;
|
|
700
|
+
created_at: string;
|
|
701
|
+
started_at?: string;
|
|
702
|
+
completed_at?: string;
|
|
703
|
+
duration_ms?: number;
|
|
704
|
+
script_path?: string;
|
|
705
|
+
script_hash?: string;
|
|
706
|
+
/**
|
|
707
|
+
* Full job arguments without size restrictions
|
|
708
|
+
*/
|
|
709
|
+
args?: {
|
|
710
|
+
[key: string]: unknown;
|
|
711
|
+
};
|
|
712
|
+
/**
|
|
713
|
+
* Full job result without size restrictions
|
|
714
|
+
*/
|
|
715
|
+
result?: {
|
|
716
|
+
[key: string]: unknown;
|
|
717
|
+
};
|
|
718
|
+
/**
|
|
719
|
+
* Complete job logs from v2_job table
|
|
720
|
+
*/
|
|
721
|
+
logs?: string;
|
|
722
|
+
raw_code?: string;
|
|
723
|
+
raw_lock?: string;
|
|
724
|
+
canceled_by?: string;
|
|
725
|
+
canceled_reason?: string;
|
|
726
|
+
job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlestepflow' | 'flowscript' | 'flownode' | 'appscript';
|
|
727
|
+
/**
|
|
728
|
+
* Trigger path for the job (replaces schedule_path)
|
|
729
|
+
*/
|
|
730
|
+
trigger?: string;
|
|
731
|
+
trigger_kind?: 'webhook' | 'http' | 'websocket' | 'kafka' | 'email' | 'nats' | 'schedule' | 'app' | 'ui' | 'postgres' | 'sqs' | 'gcp';
|
|
732
|
+
permissioned_as: string;
|
|
733
|
+
permissioned_as_email?: string;
|
|
734
|
+
/**
|
|
735
|
+
* Flow status from v2_job_status table
|
|
736
|
+
*/
|
|
737
|
+
flow_status?: {
|
|
738
|
+
[key: string]: unknown;
|
|
739
|
+
};
|
|
740
|
+
workflow_as_code_status?: {
|
|
741
|
+
[key: string]: unknown;
|
|
742
|
+
};
|
|
743
|
+
raw_flow?: {
|
|
744
|
+
[key: string]: unknown;
|
|
745
|
+
};
|
|
746
|
+
is_flow_step?: boolean;
|
|
747
|
+
language?: ScriptLang;
|
|
748
|
+
is_skipped?: boolean;
|
|
749
|
+
email: string;
|
|
750
|
+
visible_to_owner: boolean;
|
|
751
|
+
mem_peak?: number;
|
|
752
|
+
tag?: string;
|
|
753
|
+
priority?: number;
|
|
754
|
+
labels?: Array<(string)>;
|
|
755
|
+
same_worker?: boolean;
|
|
756
|
+
flow_step_id?: string;
|
|
757
|
+
flow_innermost_root_job?: string;
|
|
758
|
+
concurrent_limit?: number;
|
|
759
|
+
concurrency_time_window_s?: number;
|
|
760
|
+
timeout?: number;
|
|
761
|
+
cache_ttl?: number;
|
|
762
|
+
self_wait_time_ms?: number;
|
|
763
|
+
aggregate_wait_time_ms?: number;
|
|
764
|
+
preprocessed?: boolean;
|
|
765
|
+
worker?: string;
|
|
766
|
+
/**
|
|
767
|
+
* Actual job status from database
|
|
768
|
+
*/
|
|
769
|
+
status?: string;
|
|
770
|
+
};
|
|
771
|
+
export type job_kind2 = 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlestepflow' | 'flowscript' | 'flownode' | 'appscript';
|
|
772
|
+
export type trigger_kind = 'webhook' | 'http' | 'websocket' | 'kafka' | 'email' | 'nats' | 'schedule' | 'app' | 'ui' | 'postgres' | 'sqs' | 'gcp';
|
|
773
|
+
/**
|
|
774
|
+
* Queued job with full data for export/import operations
|
|
775
|
+
*/
|
|
776
|
+
export type ExportableQueuedJob = {
|
|
777
|
+
id: string;
|
|
778
|
+
parent_job?: string;
|
|
779
|
+
created_by: string;
|
|
780
|
+
created_at: string;
|
|
781
|
+
started_at?: string;
|
|
782
|
+
scheduled_for?: string;
|
|
783
|
+
script_path?: string;
|
|
784
|
+
script_hash?: string;
|
|
785
|
+
/**
|
|
786
|
+
* Full job arguments without size restrictions
|
|
787
|
+
*/
|
|
788
|
+
args?: {
|
|
789
|
+
[key: string]: unknown;
|
|
790
|
+
};
|
|
791
|
+
/**
|
|
792
|
+
* Complete job logs from v2_job table
|
|
793
|
+
*/
|
|
794
|
+
logs?: string;
|
|
795
|
+
raw_code?: string;
|
|
796
|
+
raw_lock?: string;
|
|
797
|
+
canceled_by?: string;
|
|
798
|
+
canceled_reason?: string;
|
|
799
|
+
job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlestepflow' | 'flowscript' | 'flownode' | 'appscript';
|
|
800
|
+
/**
|
|
801
|
+
* Trigger path for the job (replaces schedule_path)
|
|
802
|
+
*/
|
|
803
|
+
trigger?: string;
|
|
804
|
+
trigger_kind?: 'webhook' | 'http' | 'websocket' | 'kafka' | 'email' | 'nats' | 'schedule' | 'app' | 'ui' | 'postgres' | 'sqs' | 'gcp';
|
|
805
|
+
permissioned_as: string;
|
|
806
|
+
permissioned_as_email?: string;
|
|
807
|
+
/**
|
|
808
|
+
* Flow status from v2_job_status table
|
|
809
|
+
*/
|
|
810
|
+
flow_status?: {
|
|
811
|
+
[key: string]: unknown;
|
|
812
|
+
};
|
|
813
|
+
workflow_as_code_status?: {
|
|
814
|
+
[key: string]: unknown;
|
|
815
|
+
};
|
|
816
|
+
raw_flow?: {
|
|
817
|
+
[key: string]: unknown;
|
|
818
|
+
};
|
|
819
|
+
is_flow_step?: boolean;
|
|
820
|
+
language?: ScriptLang;
|
|
821
|
+
email: string;
|
|
822
|
+
visible_to_owner: boolean;
|
|
823
|
+
mem_peak?: number;
|
|
824
|
+
tag?: string;
|
|
825
|
+
priority?: number;
|
|
826
|
+
labels?: Array<(string)>;
|
|
827
|
+
same_worker?: boolean;
|
|
828
|
+
flow_step_id?: string;
|
|
829
|
+
flow_innermost_root_job?: string;
|
|
830
|
+
concurrent_limit?: number;
|
|
831
|
+
concurrency_time_window_s?: number;
|
|
832
|
+
timeout?: number;
|
|
833
|
+
cache_ttl?: number;
|
|
834
|
+
self_wait_time_ms?: number;
|
|
835
|
+
aggregate_wait_time_ms?: number;
|
|
836
|
+
preprocessed?: boolean;
|
|
837
|
+
suspend?: number;
|
|
838
|
+
suspend_until?: string;
|
|
839
|
+
};
|
|
693
840
|
export type ObscuredJob = {
|
|
694
841
|
typ?: string;
|
|
695
842
|
started_at?: string;
|
|
@@ -6558,6 +6705,45 @@ export type ListCompletedJobsData = {
|
|
|
6558
6705
|
workspace: string;
|
|
6559
6706
|
};
|
|
6560
6707
|
export type ListCompletedJobsResponse = (Array<CompletedJob>);
|
|
6708
|
+
export type ExportCompletedJobsData = {
|
|
6709
|
+
/**
|
|
6710
|
+
* which page to return (start at 1, default 1)
|
|
6711
|
+
*/
|
|
6712
|
+
page?: number;
|
|
6713
|
+
/**
|
|
6714
|
+
* number of items to return for a given page (default 30, max 100)
|
|
6715
|
+
*/
|
|
6716
|
+
perPage?: number;
|
|
6717
|
+
workspace: string;
|
|
6718
|
+
};
|
|
6719
|
+
export type ExportCompletedJobsResponse = (Array<ExportableCompletedJob>);
|
|
6720
|
+
export type ImportCompletedJobsData = {
|
|
6721
|
+
requestBody: Array<ExportableCompletedJob>;
|
|
6722
|
+
workspace: string;
|
|
6723
|
+
};
|
|
6724
|
+
export type ImportCompletedJobsResponse = (string);
|
|
6725
|
+
export type ExportQueuedJobsData = {
|
|
6726
|
+
/**
|
|
6727
|
+
* which page to return (start at 1, default 1)
|
|
6728
|
+
*/
|
|
6729
|
+
page?: number;
|
|
6730
|
+
/**
|
|
6731
|
+
* number of items to return for a given page (default 30, max 100)
|
|
6732
|
+
*/
|
|
6733
|
+
perPage?: number;
|
|
6734
|
+
workspace: string;
|
|
6735
|
+
};
|
|
6736
|
+
export type ExportQueuedJobsResponse = (Array<ExportableQueuedJob>);
|
|
6737
|
+
export type ImportQueuedJobsData = {
|
|
6738
|
+
requestBody: Array<ExportableQueuedJob>;
|
|
6739
|
+
workspace: string;
|
|
6740
|
+
};
|
|
6741
|
+
export type ImportQueuedJobsResponse = (string);
|
|
6742
|
+
export type DeleteJobsData = {
|
|
6743
|
+
requestBody: Array<(string)>;
|
|
6744
|
+
workspace: string;
|
|
6745
|
+
};
|
|
6746
|
+
export type DeleteJobsResponse = (string);
|
|
6561
6747
|
export type ListJobsData = {
|
|
6562
6748
|
/**
|
|
6563
6749
|
* allow wildcards (*) in the filter of label, tag, worker
|