windmill-components 1.13.25 → 1.22.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/common.js +1 -5
- package/components/AppConnect.svelte +281 -0
- package/components/AppConnect.svelte.d.ts +22 -0
- package/components/ArgInfo.svelte +11 -16
- package/components/ArgInput.svelte +73 -70
- package/components/ArgInput.svelte.d.ts +6 -1
- package/components/AutosizedTextarea.svelte +6 -8
- package/components/Badge.svelte +4 -10
- package/components/Button.svelte +22 -18
- package/components/ButtonAndDropdown.svelte +6 -12
- package/components/CenteredModal.svelte +30 -0
- package/components/CenteredModal.svelte.d.ts +19 -0
- package/components/ChevronButton.svelte +4 -9
- package/components/DisplayResult.svelte +58 -57
- package/components/Dropdown.svelte +8 -13
- package/components/Editor.svelte +108 -149
- package/components/Editor.svelte.d.ts +3 -1
- package/components/FieldHeader.svelte +7 -12
- package/components/FlowBuilder.svelte +72 -121
- package/components/FlowBuilder.svelte.d.ts +0 -2
- package/components/FlowEditor.svelte +185 -73
- package/components/FlowEditor.svelte.d.ts +4 -4
- package/components/FlowJobResult.svelte +23 -0
- package/components/FlowJobResult.svelte.d.ts +17 -0
- package/components/FlowPreview.svelte +36 -51
- package/components/FlowPreview.svelte.d.ts +7 -1
- package/components/FlowStatusViewer.svelte +66 -40
- package/components/FlowStatusViewer.svelte.d.ts +1 -1
- package/components/FlowViewer.svelte +100 -0
- package/components/FlowViewer.svelte.d.ts +24 -0
- package/components/GroupModal.svelte +13 -20
- package/components/IconedResourceType.svelte +15 -18
- package/components/InviteGlobalUser.svelte +8 -15
- package/components/InviteUser.svelte +9 -16
- package/components/ItemPicker.svelte +11 -14
- package/components/JobStatus.svelte +6 -11
- package/components/Modal.svelte +14 -17
- package/components/ModuleStep.svelte +125 -64
- package/components/ModuleStep.svelte.d.ts +4 -8
- package/components/ObjectResourceInput.svelte +15 -20
- package/components/ObjectTypeNarrowing.svelte +7 -12
- package/components/PageHeader.svelte +4 -9
- package/components/Password.svelte +6 -8
- package/components/Path.svelte +78 -38
- package/components/Path.svelte.d.ts +2 -0
- package/components/RadioButton.svelte +7 -8
- package/components/RadioButtonV2.svelte +33 -0
- package/components/RadioButtonV2.svelte.d.ts +20 -0
- package/components/Required.svelte +2 -4
- package/components/ResourceEditor.svelte +44 -48
- package/components/ResourcePicker.svelte +6 -7
- package/components/ResourcePicker.svelte.d.ts +2 -2
- package/components/ResourceTypePicker.svelte +8 -13
- package/components/RunForm.svelte +15 -20
- package/components/SchemaEditor.svelte +31 -61
- package/components/SchemaForm.svelte +126 -134
- package/components/SchemaForm.svelte.d.ts +6 -4
- package/components/SchemaModal.svelte +25 -40
- package/components/SchemaModal.svelte.d.ts +1 -1
- package/components/SchemaViewer.svelte +6 -12
- package/components/ScriptBuilder.svelte +76 -101
- package/components/ScriptEditor.svelte +55 -60
- package/components/ScriptPicker.svelte +28 -34
- package/components/ScriptPicker.svelte.d.ts +1 -0
- package/components/ScriptSchema.svelte +13 -17
- package/components/ShareModal.svelte +23 -29
- package/components/SharedBadge.svelte +11 -16
- package/components/StringTypeNarrowing.svelte +8 -11
- package/components/Switch.svelte.d.ts +2 -2
- package/components/TableCustom.svelte +5 -8
- package/components/TableSimple.svelte +9 -8
- package/components/Tabs.svelte +6 -8
- package/components/Toggle.svelte +34 -0
- package/components/Toggle.svelte.d.ts +28 -0
- package/components/Tooltip.svelte +56 -89
- package/components/Tooltip.svelte.d.ts +1 -5
- package/components/VariableEditor.svelte +30 -29
- package/components/flows/CopyFirstStepSchema.svelte +10 -0
- package/components/flows/CopyFirstStepSchema.svelte.d.ts +14 -0
- package/components/flows/DynamicInputHelpBox.svelte +72 -0
- package/components/flows/DynamicInputHelpBox.svelte.d.ts +14 -0
- package/components/flows/FlowInputs.svelte +27 -0
- package/components/flows/FlowInputs.svelte.d.ts +19 -0
- package/components/flows/FlowModuleHeader.svelte +91 -0
- package/components/flows/FlowModuleHeader.svelte.d.ts +22 -0
- package/components/flows/flowStore.d.ts +17 -0
- package/components/flows/flowStore.js +161 -0
- package/components/flows/pickers/FlowScriptPicker.svelte +11 -0
- package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +22 -0
- package/components/flows/pickers/PickHubScript.svelte +30 -0
- package/components/flows/pickers/PickHubScript.svelte.d.ts +18 -0
- package/components/flows/pickers/PickScript.svelte +38 -0
- package/components/flows/pickers/PickScript.svelte.d.ts +18 -0
- package/components/flows/utils.d.ts +21 -0
- package/components/flows/utils.js +164 -0
- package/components/icons/DbIcon.svelte +2 -5
- package/components/icons/Mail.svelte +2 -5
- package/components/icons/Mysql.svelte +2 -5
- package/components/icons/PostgresIcon.svelte +2 -5
- package/components/icons/Slack.svelte +2 -5
- package/components/propertyPicker/ObjectViewer.svelte +113 -0
- package/components/propertyPicker/ObjectViewer.svelte.d.ts +21 -0
- package/components/propertyPicker/OverlayPropertyPicker.svelte +69 -0
- package/components/propertyPicker/OverlayPropertyPicker.svelte.d.ts +21 -0
- package/components/propertyPicker/PropPicker.svelte +24 -0
- package/components/propertyPicker/PropPicker.svelte.d.ts +18 -0
- package/components/propertyPicker/WarningMessage.svelte +43 -0
- package/components/propertyPicker/WarningMessage.svelte.d.ts +16 -0
- package/components/propertyPicker/utils.d.ts +2 -0
- package/components/propertyPicker/utils.js +40 -0
- package/gen/core/ApiError.d.ts +3 -1
- package/gen/core/ApiError.js +4 -6
- package/gen/core/ApiRequestOptions.js +1 -2
- package/gen/core/ApiResult.js +1 -2
- package/gen/core/CancelablePromise.js +2 -7
- package/gen/core/OpenAPI.js +2 -5
- package/gen/core/request.js +8 -13
- package/gen/index.d.ts +3 -0
- package/gen/index.js +28 -58
- package/gen/models/AuditLog.js +2 -5
- package/gen/models/CompletedJob.d.ts +3 -1
- package/gen/models/CompletedJob.js +3 -5
- package/gen/models/ContextualVariable.js +1 -2
- package/gen/models/CreateResource.d.ts +1 -0
- package/gen/models/CreateResource.js +1 -2
- package/gen/models/CreateVariable.d.ts +2 -0
- package/gen/models/CreateVariable.js +1 -2
- package/gen/models/CreateWorkspace.js +1 -2
- package/gen/models/EditResource.js +1 -2
- package/gen/models/EditResourceType.js +1 -2
- package/gen/models/EditSchedule.js +1 -2
- package/gen/models/EditVariable.js +1 -2
- package/gen/models/EditWorkspaceUser.js +1 -2
- package/gen/models/Flow.js +1 -2
- package/gen/models/FlowModule.d.ts +2 -0
- package/gen/models/FlowModule.js +1 -2
- package/gen/models/FlowModuleValue.d.ts +14 -2
- package/gen/models/FlowModuleValue.js +9 -5
- package/gen/models/FlowPreview.js +1 -2
- package/gen/models/FlowStatus.js +1 -2
- package/gen/models/FlowStatusModule.d.ts +6 -0
- package/gen/models/FlowStatusModule.js +2 -5
- package/gen/models/FlowValue.js +1 -2
- package/gen/models/GlobalUserInfo.js +2 -5
- package/gen/models/Group.js +1 -2
- package/gen/models/InputTransform.js +2 -5
- package/gen/models/Job.js +2 -5
- package/gen/models/ListableVariable.d.ts +2 -0
- package/gen/models/ListableVariable.js +1 -2
- package/gen/models/Login.js +1 -2
- package/gen/models/MainArgSignature.js +1 -2
- package/gen/models/NewSchedule.js +1 -2
- package/gen/models/NewToken.js +1 -2
- package/gen/models/NewUser.js +1 -2
- package/gen/models/Preview.js +2 -5
- package/gen/models/QueuedJob.d.ts +2 -1
- package/gen/models/QueuedJob.js +3 -5
- package/gen/models/Resource.d.ts +1 -0
- package/gen/models/Resource.js +1 -2
- package/gen/models/ResourceType.js +1 -2
- package/gen/models/Schedule.js +1 -2
- package/gen/models/Script.d.ts +1 -0
- package/gen/models/Script.js +2 -5
- package/gen/models/ScriptArgs.js +1 -2
- package/gen/models/SlackToken.d.ts +8 -0
- package/gen/models/SlackToken.js +4 -0
- package/gen/models/TokenResponse.d.ts +6 -0
- package/gen/models/TokenResponse.js +4 -0
- package/gen/models/TruncatedToken.js +1 -2
- package/gen/models/User.js +1 -2
- package/gen/models/UserWorkspaceList.js +1 -2
- package/gen/models/WorkerPing.js +1 -2
- package/gen/models/Workspace.js +1 -2
- package/gen/models/WorkspaceInvite.js +1 -2
- package/gen/services/AdminService.d.ts +6 -2
- package/gen/services/AdminService.js +6 -10
- package/gen/services/AuditService.d.ts +24 -8
- package/gen/services/AuditService.js +5 -9
- package/gen/services/FlowService.d.ts +37 -10
- package/gen/services/FlowService.js +23 -12
- package/gen/services/GranularAclService.d.ts +6 -2
- package/gen/services/GranularAclService.js +6 -10
- package/gen/services/GroupService.d.ts +18 -6
- package/gen/services/GroupService.js +11 -15
- package/gen/services/JobService.d.ts +167 -46
- package/gen/services/JobService.js +42 -22
- package/gen/services/OauthService.d.ts +104 -0
- package/gen/services/OauthService.js +133 -0
- package/gen/services/ResourceService.d.ts +39 -7
- package/gen/services/ResourceService.js +44 -18
- package/gen/services/ScheduleService.d.ts +36 -6
- package/gen/services/ScheduleService.js +39 -13
- package/gen/services/ScriptService.d.ts +66 -19
- package/gen/services/ScriptService.js +32 -20
- package/gen/services/SettingsService.js +5 -9
- package/gen/services/UserService.d.ts +49 -11
- package/gen/services/UserService.js +42 -29
- package/gen/services/VariableService.d.ts +19 -4
- package/gen/services/VariableService.js +24 -13
- package/gen/services/WorkerService.d.ts +6 -2
- package/gen/services/WorkerService.js +4 -8
- package/gen/services/WorkspaceService.d.ts +29 -24
- package/gen/services/WorkspaceService.js +23 -42
- package/infer.js +5 -9
- package/logout.js +20 -18
- package/package.json +51 -24
- package/script_helpers.d.ts +4 -0
- package/script_helpers.js +70 -0
- package/scripts.d.ts +2 -1
- package/scripts.js +11 -15
- package/stores.d.ts +6 -0
- package/stores.js +30 -22
- package/user.js +10 -15
- package/utils.d.ts +15 -1
- package/utils.js +191 -52
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class GroupService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class GroupService {
|
|
7
4
|
/**
|
|
8
5
|
* list groups
|
|
9
6
|
* @returns Group group list
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static listGroups({ workspace, page, perPage, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'GET',
|
|
15
12
|
url: '/w/{workspace}/groups/list',
|
|
16
13
|
path: {
|
|
@@ -28,7 +25,7 @@ class GroupService {
|
|
|
28
25
|
* @throws ApiError
|
|
29
26
|
*/
|
|
30
27
|
static listGroupNames({ workspace, }) {
|
|
31
|
-
return (
|
|
28
|
+
return __request(OpenAPI, {
|
|
32
29
|
method: 'GET',
|
|
33
30
|
url: '/w/{workspace}/groups/listnames',
|
|
34
31
|
path: {
|
|
@@ -42,7 +39,7 @@ class GroupService {
|
|
|
42
39
|
* @throws ApiError
|
|
43
40
|
*/
|
|
44
41
|
static createGroup({ workspace, requestBody, }) {
|
|
45
|
-
return (
|
|
42
|
+
return __request(OpenAPI, {
|
|
46
43
|
method: 'POST',
|
|
47
44
|
url: '/w/{workspace}/groups/create',
|
|
48
45
|
path: {
|
|
@@ -58,7 +55,7 @@ class GroupService {
|
|
|
58
55
|
* @throws ApiError
|
|
59
56
|
*/
|
|
60
57
|
static updateGroup({ workspace, name, requestBody, }) {
|
|
61
|
-
return (
|
|
58
|
+
return __request(OpenAPI, {
|
|
62
59
|
method: 'POST',
|
|
63
60
|
url: '/w/{workspace}/groups/update/{name}',
|
|
64
61
|
path: {
|
|
@@ -75,7 +72,7 @@ class GroupService {
|
|
|
75
72
|
* @throws ApiError
|
|
76
73
|
*/
|
|
77
74
|
static deleteGroup({ workspace, name, }) {
|
|
78
|
-
return (
|
|
75
|
+
return __request(OpenAPI, {
|
|
79
76
|
method: 'DELETE',
|
|
80
77
|
url: '/w/{workspace}/groups/delete/{name}',
|
|
81
78
|
path: {
|
|
@@ -90,7 +87,7 @@ class GroupService {
|
|
|
90
87
|
* @throws ApiError
|
|
91
88
|
*/
|
|
92
89
|
static getGroup({ workspace, name, }) {
|
|
93
|
-
return (
|
|
90
|
+
return __request(OpenAPI, {
|
|
94
91
|
method: 'GET',
|
|
95
92
|
url: '/w/{workspace}/groups/get/{name}',
|
|
96
93
|
path: {
|
|
@@ -105,7 +102,7 @@ class GroupService {
|
|
|
105
102
|
* @throws ApiError
|
|
106
103
|
*/
|
|
107
104
|
static addUserToGroup({ workspace, name, requestBody, }) {
|
|
108
|
-
return (
|
|
105
|
+
return __request(OpenAPI, {
|
|
109
106
|
method: 'POST',
|
|
110
107
|
url: '/w/{workspace}/groups/adduser/{name}',
|
|
111
108
|
path: {
|
|
@@ -122,7 +119,7 @@ class GroupService {
|
|
|
122
119
|
* @throws ApiError
|
|
123
120
|
*/
|
|
124
121
|
static removeUserToGroup({ workspace, name, requestBody, }) {
|
|
125
|
-
return (
|
|
122
|
+
return __request(OpenAPI, {
|
|
126
123
|
method: 'POST',
|
|
127
124
|
url: '/w/{workspace}/groups/removeuser/{name}',
|
|
128
125
|
path: {
|
|
@@ -134,4 +131,3 @@ class GroupService {
|
|
|
134
131
|
});
|
|
135
132
|
}
|
|
136
133
|
}
|
|
137
|
-
exports.GroupService = GroupService;
|
|
@@ -14,15 +14,48 @@ export declare class JobService {
|
|
|
14
14
|
static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }: {
|
|
15
15
|
workspace: string;
|
|
16
16
|
path: string;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* script args
|
|
19
|
+
*/
|
|
18
20
|
requestBody: ScriptArgs;
|
|
19
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* when to schedule this job (leave empty for immediate run)
|
|
23
|
+
*/
|
|
20
24
|
scheduledFor?: string;
|
|
21
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* schedule the script to execute in the number of seconds starting now
|
|
27
|
+
*/
|
|
22
28
|
scheduledInSecs?: number;
|
|
23
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
31
|
+
*/
|
|
24
32
|
parentJob?: string;
|
|
25
33
|
}): CancelablePromise<string>;
|
|
34
|
+
/**
|
|
35
|
+
* run script by path
|
|
36
|
+
* @returns any job result
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static runWaitResultScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }: {
|
|
40
|
+
workspace: string;
|
|
41
|
+
path: string;
|
|
42
|
+
/**
|
|
43
|
+
* script args
|
|
44
|
+
*/
|
|
45
|
+
requestBody: ScriptArgs;
|
|
46
|
+
/**
|
|
47
|
+
* when to schedule this job (leave empty for immediate run)
|
|
48
|
+
*/
|
|
49
|
+
scheduledFor?: string;
|
|
50
|
+
/**
|
|
51
|
+
* schedule the script to execute in the number of seconds starting now
|
|
52
|
+
*/
|
|
53
|
+
scheduledInSecs?: number;
|
|
54
|
+
/**
|
|
55
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
56
|
+
*/
|
|
57
|
+
parentJob?: string;
|
|
58
|
+
}): CancelablePromise<any>;
|
|
26
59
|
/**
|
|
27
60
|
* run flow by path
|
|
28
61
|
* @returns string job created
|
|
@@ -31,13 +64,21 @@ export declare class JobService {
|
|
|
31
64
|
static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }: {
|
|
32
65
|
workspace: string;
|
|
33
66
|
path: string;
|
|
34
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* flow args
|
|
69
|
+
*/
|
|
35
70
|
requestBody: ScriptArgs;
|
|
36
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* when to schedule this job (leave empty for immediate run)
|
|
73
|
+
*/
|
|
37
74
|
scheduledFor?: string;
|
|
38
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* schedule the script to execute in the number of seconds starting now
|
|
77
|
+
*/
|
|
39
78
|
scheduledInSecs?: number;
|
|
40
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
81
|
+
*/
|
|
41
82
|
parentJob?: string;
|
|
42
83
|
}): CancelablePromise<string>;
|
|
43
84
|
/**
|
|
@@ -48,13 +89,21 @@ export declare class JobService {
|
|
|
48
89
|
static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, }: {
|
|
49
90
|
workspace: string;
|
|
50
91
|
hash: string;
|
|
51
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Partially filled args
|
|
94
|
+
*/
|
|
52
95
|
requestBody: any;
|
|
53
|
-
/**
|
|
96
|
+
/**
|
|
97
|
+
* when to schedule this job (leave empty for immediate run)
|
|
98
|
+
*/
|
|
54
99
|
scheduledFor?: string;
|
|
55
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* schedule the script to execute in the number of seconds starting now
|
|
102
|
+
*/
|
|
56
103
|
scheduledInSecs?: number;
|
|
57
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
106
|
+
*/
|
|
58
107
|
parentJob?: string;
|
|
59
108
|
}): CancelablePromise<string>;
|
|
60
109
|
/**
|
|
@@ -64,7 +113,9 @@ export declare class JobService {
|
|
|
64
113
|
*/
|
|
65
114
|
static runScriptPreview({ workspace, requestBody, }: {
|
|
66
115
|
workspace: string;
|
|
67
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* previw
|
|
118
|
+
*/
|
|
68
119
|
requestBody: Preview;
|
|
69
120
|
}): CancelablePromise<string>;
|
|
70
121
|
/**
|
|
@@ -74,7 +125,9 @@ export declare class JobService {
|
|
|
74
125
|
*/
|
|
75
126
|
static runFlowPreview({ workspace, requestBody, }: {
|
|
76
127
|
workspace: string;
|
|
77
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* preview
|
|
130
|
+
*/
|
|
78
131
|
requestBody: FlowPreview;
|
|
79
132
|
}): CancelablePromise<string>;
|
|
80
133
|
/**
|
|
@@ -84,25 +137,45 @@ export declare class JobService {
|
|
|
84
137
|
*/
|
|
85
138
|
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, success, jobKinds, }: {
|
|
86
139
|
workspace: string;
|
|
87
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* order by desc order (default true)
|
|
142
|
+
*/
|
|
88
143
|
orderDesc?: boolean;
|
|
89
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* mask to filter exact matching user creator
|
|
146
|
+
*/
|
|
90
147
|
createdBy?: string;
|
|
91
|
-
/**
|
|
148
|
+
/**
|
|
149
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
150
|
+
*/
|
|
92
151
|
parentJob?: string;
|
|
93
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* mask to filter exact matching path
|
|
154
|
+
*/
|
|
94
155
|
scriptPathExact?: string;
|
|
95
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* mask to filter matching starting path
|
|
158
|
+
*/
|
|
96
159
|
scriptPathStart?: string;
|
|
97
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* mask to filter exact matching path
|
|
162
|
+
*/
|
|
98
163
|
scriptHash?: string;
|
|
99
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* filter on created before (inclusive) timestamp
|
|
166
|
+
*/
|
|
100
167
|
createdBefore?: string;
|
|
101
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* filter on created after (exclusive) timestamp
|
|
170
|
+
*/
|
|
102
171
|
createdAfter?: string;
|
|
103
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* filter on successful jobs
|
|
174
|
+
*/
|
|
104
175
|
success?: boolean;
|
|
105
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
178
|
+
*/
|
|
106
179
|
jobKinds?: string;
|
|
107
180
|
}): CancelablePromise<Array<QueuedJob>>;
|
|
108
181
|
/**
|
|
@@ -110,53 +183,99 @@ export declare class JobService {
|
|
|
110
183
|
* @returns CompletedJob All available completed jobs
|
|
111
184
|
* @throws ApiError
|
|
112
185
|
*/
|
|
113
|
-
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, success, jobKinds, }: {
|
|
186
|
+
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, success, jobKinds, isSkipped, }: {
|
|
114
187
|
workspace: string;
|
|
115
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* order by desc order (default true)
|
|
190
|
+
*/
|
|
116
191
|
orderDesc?: boolean;
|
|
117
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* mask to filter exact matching user creator
|
|
194
|
+
*/
|
|
118
195
|
createdBy?: string;
|
|
119
|
-
/**
|
|
196
|
+
/**
|
|
197
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
198
|
+
*/
|
|
120
199
|
parentJob?: string;
|
|
121
|
-
/**
|
|
200
|
+
/**
|
|
201
|
+
* mask to filter exact matching path
|
|
202
|
+
*/
|
|
122
203
|
scriptPathExact?: string;
|
|
123
|
-
/**
|
|
204
|
+
/**
|
|
205
|
+
* mask to filter matching starting path
|
|
206
|
+
*/
|
|
124
207
|
scriptPathStart?: string;
|
|
125
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* mask to filter exact matching path
|
|
210
|
+
*/
|
|
126
211
|
scriptHash?: string;
|
|
127
|
-
/**
|
|
212
|
+
/**
|
|
213
|
+
* filter on created before (inclusive) timestamp
|
|
214
|
+
*/
|
|
128
215
|
createdBefore?: string;
|
|
129
|
-
/**
|
|
216
|
+
/**
|
|
217
|
+
* filter on created after (exclusive) timestamp
|
|
218
|
+
*/
|
|
130
219
|
createdAfter?: string;
|
|
131
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* filter on successful jobs
|
|
222
|
+
*/
|
|
132
223
|
success?: boolean;
|
|
133
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
226
|
+
*/
|
|
134
227
|
jobKinds?: string;
|
|
228
|
+
/**
|
|
229
|
+
* is the job skipped
|
|
230
|
+
*/
|
|
231
|
+
isSkipped?: boolean;
|
|
135
232
|
}): CancelablePromise<Array<CompletedJob>>;
|
|
136
233
|
/**
|
|
137
234
|
* list all available jobs
|
|
138
235
|
* @returns Job All jobs
|
|
139
236
|
* @throws ApiError
|
|
140
237
|
*/
|
|
141
|
-
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, jobKinds, success, }: {
|
|
238
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, jobKinds, isSkipped, success, }: {
|
|
142
239
|
workspace: string;
|
|
143
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* mask to filter exact matching user creator
|
|
242
|
+
*/
|
|
144
243
|
createdBy?: string;
|
|
145
|
-
/**
|
|
244
|
+
/**
|
|
245
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
246
|
+
*/
|
|
146
247
|
parentJob?: string;
|
|
147
|
-
/**
|
|
248
|
+
/**
|
|
249
|
+
* mask to filter exact matching path
|
|
250
|
+
*/
|
|
148
251
|
scriptPathExact?: string;
|
|
149
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* mask to filter matching starting path
|
|
254
|
+
*/
|
|
150
255
|
scriptPathStart?: string;
|
|
151
|
-
/**
|
|
256
|
+
/**
|
|
257
|
+
* mask to filter exact matching path
|
|
258
|
+
*/
|
|
152
259
|
scriptHash?: string;
|
|
153
|
-
/**
|
|
260
|
+
/**
|
|
261
|
+
* filter on created before (inclusive) timestamp
|
|
262
|
+
*/
|
|
154
263
|
createdBefore?: string;
|
|
155
|
-
/**
|
|
264
|
+
/**
|
|
265
|
+
* filter on created after (exclusive) timestamp
|
|
266
|
+
*/
|
|
156
267
|
createdAfter?: string;
|
|
157
|
-
/**
|
|
268
|
+
/**
|
|
269
|
+
* filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
270
|
+
*/
|
|
158
271
|
jobKinds?: string;
|
|
159
|
-
/**
|
|
272
|
+
/**
|
|
273
|
+
* is the job skipped
|
|
274
|
+
*/
|
|
275
|
+
isSkipped?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* filter on successful jobs
|
|
278
|
+
*/
|
|
160
279
|
success?: boolean;
|
|
161
280
|
}): CancelablePromise<Array<Job>>;
|
|
162
281
|
/**
|
|
@@ -209,7 +328,9 @@ export declare class JobService {
|
|
|
209
328
|
static cancelQueuedJob({ workspace, id, requestBody, }: {
|
|
210
329
|
workspace: string;
|
|
211
330
|
id: string;
|
|
212
|
-
/**
|
|
331
|
+
/**
|
|
332
|
+
* reason
|
|
333
|
+
*/
|
|
213
334
|
requestBody: {
|
|
214
335
|
reason?: string;
|
|
215
336
|
};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class JobService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class JobService {
|
|
7
4
|
/**
|
|
8
5
|
* run script by path
|
|
9
6
|
* @returns string job created
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'POST',
|
|
15
12
|
url: '/w/{workspace}/jobs/run/p/{path}',
|
|
16
13
|
path: {
|
|
@@ -26,13 +23,35 @@ class JobService {
|
|
|
26
23
|
mediaType: 'application/json',
|
|
27
24
|
});
|
|
28
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* run script by path
|
|
28
|
+
* @returns any job result
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static runWaitResultScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }) {
|
|
32
|
+
return __request(OpenAPI, {
|
|
33
|
+
method: 'POST',
|
|
34
|
+
url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
|
|
35
|
+
path: {
|
|
36
|
+
'workspace': workspace,
|
|
37
|
+
'path': path,
|
|
38
|
+
},
|
|
39
|
+
query: {
|
|
40
|
+
'scheduled_for': scheduledFor,
|
|
41
|
+
'scheduled_in_secs': scheduledInSecs,
|
|
42
|
+
'parent_job': parentJob,
|
|
43
|
+
},
|
|
44
|
+
body: requestBody,
|
|
45
|
+
mediaType: 'application/json',
|
|
46
|
+
});
|
|
47
|
+
}
|
|
29
48
|
/**
|
|
30
49
|
* run flow by path
|
|
31
50
|
* @returns string job created
|
|
32
51
|
* @throws ApiError
|
|
33
52
|
*/
|
|
34
53
|
static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }) {
|
|
35
|
-
return (
|
|
54
|
+
return __request(OpenAPI, {
|
|
36
55
|
method: 'POST',
|
|
37
56
|
url: '/w/{workspace}/jobs/run/f/{path}',
|
|
38
57
|
path: {
|
|
@@ -54,7 +73,7 @@ class JobService {
|
|
|
54
73
|
* @throws ApiError
|
|
55
74
|
*/
|
|
56
75
|
static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, }) {
|
|
57
|
-
return (
|
|
76
|
+
return __request(OpenAPI, {
|
|
58
77
|
method: 'POST',
|
|
59
78
|
url: '/w/{workspace}/jobs/run/h/{hash}',
|
|
60
79
|
path: {
|
|
@@ -76,7 +95,7 @@ class JobService {
|
|
|
76
95
|
* @throws ApiError
|
|
77
96
|
*/
|
|
78
97
|
static runScriptPreview({ workspace, requestBody, }) {
|
|
79
|
-
return (
|
|
98
|
+
return __request(OpenAPI, {
|
|
80
99
|
method: 'POST',
|
|
81
100
|
url: '/w/{workspace}/jobs/run/preview',
|
|
82
101
|
path: {
|
|
@@ -92,7 +111,7 @@ class JobService {
|
|
|
92
111
|
* @throws ApiError
|
|
93
112
|
*/
|
|
94
113
|
static runFlowPreview({ workspace, requestBody, }) {
|
|
95
|
-
return (
|
|
114
|
+
return __request(OpenAPI, {
|
|
96
115
|
method: 'POST',
|
|
97
116
|
url: '/w/{workspace}/jobs/run/preview_flow',
|
|
98
117
|
path: {
|
|
@@ -108,7 +127,7 @@ class JobService {
|
|
|
108
127
|
* @throws ApiError
|
|
109
128
|
*/
|
|
110
129
|
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, success, jobKinds, }) {
|
|
111
|
-
return (
|
|
130
|
+
return __request(OpenAPI, {
|
|
112
131
|
method: 'GET',
|
|
113
132
|
url: '/w/{workspace}/jobs/queue/list',
|
|
114
133
|
path: {
|
|
@@ -133,8 +152,8 @@ class JobService {
|
|
|
133
152
|
* @returns CompletedJob All available completed jobs
|
|
134
153
|
* @throws ApiError
|
|
135
154
|
*/
|
|
136
|
-
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, success, jobKinds, }) {
|
|
137
|
-
return (
|
|
155
|
+
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, success, jobKinds, isSkipped, }) {
|
|
156
|
+
return __request(OpenAPI, {
|
|
138
157
|
method: 'GET',
|
|
139
158
|
url: '/w/{workspace}/jobs/completed/list',
|
|
140
159
|
path: {
|
|
@@ -151,6 +170,7 @@ class JobService {
|
|
|
151
170
|
'created_after': createdAfter,
|
|
152
171
|
'success': success,
|
|
153
172
|
'job_kinds': jobKinds,
|
|
173
|
+
'is_skipped': isSkipped,
|
|
154
174
|
},
|
|
155
175
|
});
|
|
156
176
|
}
|
|
@@ -159,8 +179,8 @@ class JobService {
|
|
|
159
179
|
* @returns Job All jobs
|
|
160
180
|
* @throws ApiError
|
|
161
181
|
*/
|
|
162
|
-
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, jobKinds, success, }) {
|
|
163
|
-
return (
|
|
182
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, jobKinds, isSkipped, success, }) {
|
|
183
|
+
return __request(OpenAPI, {
|
|
164
184
|
method: 'GET',
|
|
165
185
|
url: '/w/{workspace}/jobs/list',
|
|
166
186
|
path: {
|
|
@@ -175,6 +195,7 @@ class JobService {
|
|
|
175
195
|
'created_before': createdBefore,
|
|
176
196
|
'created_after': createdAfter,
|
|
177
197
|
'job_kinds': jobKinds,
|
|
198
|
+
'is_skipped': isSkipped,
|
|
178
199
|
'success': success,
|
|
179
200
|
},
|
|
180
201
|
});
|
|
@@ -185,7 +206,7 @@ class JobService {
|
|
|
185
206
|
* @throws ApiError
|
|
186
207
|
*/
|
|
187
208
|
static getJob({ workspace, id, }) {
|
|
188
|
-
return (
|
|
209
|
+
return __request(OpenAPI, {
|
|
189
210
|
method: 'GET',
|
|
190
211
|
url: '/w/{workspace}/jobs/get/{id}',
|
|
191
212
|
path: {
|
|
@@ -200,7 +221,7 @@ class JobService {
|
|
|
200
221
|
* @throws ApiError
|
|
201
222
|
*/
|
|
202
223
|
static getJobUpdates({ workspace, id, running, logOffset, }) {
|
|
203
|
-
return (
|
|
224
|
+
return __request(OpenAPI, {
|
|
204
225
|
method: 'GET',
|
|
205
226
|
url: '/w/{workspace}/jobs/getupdate/{id}',
|
|
206
227
|
path: {
|
|
@@ -219,7 +240,7 @@ class JobService {
|
|
|
219
240
|
* @throws ApiError
|
|
220
241
|
*/
|
|
221
242
|
static getCompletedJob({ workspace, id, }) {
|
|
222
|
-
return (
|
|
243
|
+
return __request(OpenAPI, {
|
|
223
244
|
method: 'GET',
|
|
224
245
|
url: '/w/{workspace}/jobs/completed/get/{id}',
|
|
225
246
|
path: {
|
|
@@ -234,7 +255,7 @@ class JobService {
|
|
|
234
255
|
* @throws ApiError
|
|
235
256
|
*/
|
|
236
257
|
static deleteCompletedJob({ workspace, id, }) {
|
|
237
|
-
return (
|
|
258
|
+
return __request(OpenAPI, {
|
|
238
259
|
method: 'POST',
|
|
239
260
|
url: '/w/{workspace}/jobs/completed/delete/{id}',
|
|
240
261
|
path: {
|
|
@@ -249,7 +270,7 @@ class JobService {
|
|
|
249
270
|
* @throws ApiError
|
|
250
271
|
*/
|
|
251
272
|
static cancelQueuedJob({ workspace, id, requestBody, }) {
|
|
252
|
-
return (
|
|
273
|
+
return __request(OpenAPI, {
|
|
253
274
|
method: 'POST',
|
|
254
275
|
url: '/w/{workspace}/jobs/queue/cancel/{id}',
|
|
255
276
|
path: {
|
|
@@ -261,4 +282,3 @@ class JobService {
|
|
|
261
282
|
});
|
|
262
283
|
}
|
|
263
284
|
}
|
|
264
|
-
exports.JobService = JobService;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { SlackToken } from '../models/SlackToken';
|
|
2
|
+
import type { TokenResponse } from '../models/TokenResponse';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class OauthService {
|
|
5
|
+
/**
|
|
6
|
+
* connect slack callback
|
|
7
|
+
* @returns SlackToken slack token
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static connectSlackCallback({ requestBody, }: {
|
|
11
|
+
/**
|
|
12
|
+
* code endpoint
|
|
13
|
+
*/
|
|
14
|
+
requestBody: {
|
|
15
|
+
code: string;
|
|
16
|
+
state: string;
|
|
17
|
+
};
|
|
18
|
+
}): CancelablePromise<SlackToken>;
|
|
19
|
+
/**
|
|
20
|
+
* connect callback
|
|
21
|
+
* @returns TokenResponse oauth token
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static connectCallback({ clientName, requestBody, }: {
|
|
25
|
+
clientName: string;
|
|
26
|
+
/**
|
|
27
|
+
* code endpoint
|
|
28
|
+
*/
|
|
29
|
+
requestBody: {
|
|
30
|
+
code: string;
|
|
31
|
+
state: string;
|
|
32
|
+
};
|
|
33
|
+
}): CancelablePromise<TokenResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* create OAuth account
|
|
36
|
+
* @returns string account set
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static createAccount({ workspace, requestBody, }: {
|
|
40
|
+
workspace: string;
|
|
41
|
+
/**
|
|
42
|
+
* code endpoint
|
|
43
|
+
*/
|
|
44
|
+
requestBody: {
|
|
45
|
+
refresh_token: string;
|
|
46
|
+
expires_in: number;
|
|
47
|
+
owner: string;
|
|
48
|
+
client: string;
|
|
49
|
+
};
|
|
50
|
+
}): CancelablePromise<string>;
|
|
51
|
+
/**
|
|
52
|
+
* refresh token
|
|
53
|
+
* @returns string token refreshed
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static refreshToken({ workspace, id, requestBody, }: {
|
|
57
|
+
workspace: string;
|
|
58
|
+
id: string;
|
|
59
|
+
/**
|
|
60
|
+
* variable path
|
|
61
|
+
*/
|
|
62
|
+
requestBody: {
|
|
63
|
+
path: string;
|
|
64
|
+
};
|
|
65
|
+
}): CancelablePromise<string>;
|
|
66
|
+
/**
|
|
67
|
+
* disconnect account
|
|
68
|
+
* @returns string disconnected client
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
static disconnectAccount({ workspace, id, }: {
|
|
72
|
+
workspace: string;
|
|
73
|
+
id: string;
|
|
74
|
+
}): CancelablePromise<string>;
|
|
75
|
+
/**
|
|
76
|
+
* disconnect slack
|
|
77
|
+
* @returns string disconnected slack
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static disconnectSlack({ workspace, }: {
|
|
81
|
+
workspace: string;
|
|
82
|
+
}): CancelablePromise<string>;
|
|
83
|
+
/**
|
|
84
|
+
* set workspace's slack
|
|
85
|
+
* @returns string workspace slack is set
|
|
86
|
+
* @throws ApiError
|
|
87
|
+
*/
|
|
88
|
+
static setWorkspaceSlack({ workspace, requestBody, }: {
|
|
89
|
+
workspace: string;
|
|
90
|
+
requestBody: SlackToken;
|
|
91
|
+
}): CancelablePromise<string>;
|
|
92
|
+
/**
|
|
93
|
+
* list oauth logins
|
|
94
|
+
* @returns string list of oauth login clients
|
|
95
|
+
* @throws ApiError
|
|
96
|
+
*/
|
|
97
|
+
static listOAuthLogins(): CancelablePromise<Array<string>>;
|
|
98
|
+
/**
|
|
99
|
+
* list oauth connects
|
|
100
|
+
* @returns any list of oauth connects clients
|
|
101
|
+
* @throws ApiError
|
|
102
|
+
*/
|
|
103
|
+
static listOAuthConnects(): CancelablePromise<any>;
|
|
104
|
+
}
|