windmill-client 0.3.7 → 0.3.8
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/client.js +159 -156
- package/dist/core/ApiError.js +1 -5
- package/dist/core/ApiRequestOptions.js +1 -2
- package/dist/core/ApiResult.js +1 -2
- package/dist/core/CancelablePromise.js +2 -7
- package/dist/core/OpenAPI.js +1 -4
- package/dist/core/request.js +66 -92
- package/dist/index.js +42 -88
- package/dist/models/AccountId.js +1 -2
- package/dist/models/ActionKind.js +2 -5
- package/dist/models/After.js +1 -2
- package/dist/models/AppWithLastVersion.js +2 -5
- package/dist/models/AppWithLastVersionWDraft.js +1 -2
- package/dist/models/ArgsFilter.js +1 -2
- package/dist/models/AuditLog.js +2 -5
- package/dist/models/Before.js +1 -2
- package/dist/models/BranchAll.js +1 -2
- package/dist/models/BranchOne.js +1 -2
- package/dist/models/ClientName.js +1 -2
- package/dist/models/CompletedJob.js +2 -5
- package/dist/models/ContextualVariable.js +1 -2
- package/dist/models/CreateInput.js +1 -2
- package/dist/models/CreateResource.js +1 -2
- package/dist/models/CreateVariable.js +1 -2
- package/dist/models/CreateWorkspace.js +1 -2
- package/dist/models/CreatedBy.js +1 -2
- package/dist/models/EditResource.js +1 -2
- package/dist/models/EditResourceType.js +1 -2
- package/dist/models/EditSchedule.js +1 -2
- package/dist/models/EditVariable.js +1 -2
- package/dist/models/EditWorkspaceUser.js +1 -2
- package/dist/models/Flow.js +1 -2
- package/dist/models/FlowMetadata.js +1 -2
- package/dist/models/FlowModule.js +1 -2
- package/dist/models/FlowModuleValue.js +1 -2
- package/dist/models/FlowPreview.js +1 -2
- package/dist/models/FlowStatus.js +1 -2
- package/dist/models/FlowStatusModule.js +2 -5
- package/dist/models/FlowValue.js +1 -2
- package/dist/models/Folder.js +1 -2
- package/dist/models/ForloopFlow.js +1 -2
- package/dist/models/GlobalUserInfo.js +2 -5
- package/dist/models/Graphql.js +1 -2
- package/dist/models/Group.js +1 -2
- package/dist/models/Http.js +1 -2
- package/dist/models/Identity.js +1 -2
- package/dist/models/IncludeHeader.js +1 -2
- package/dist/models/Input.js +1 -2
- package/dist/models/InputId.js +1 -2
- package/dist/models/InputTransform.js +1 -2
- package/dist/models/JavascriptTransform.js +1 -2
- package/dist/models/Job.js +2 -5
- package/dist/models/JobId.js +1 -2
- package/dist/models/JobKinds.js +1 -2
- package/dist/models/ListableApp.js +2 -5
- package/dist/models/ListableRawApp.js +1 -2
- package/dist/models/ListableResource.js +1 -2
- package/dist/models/ListableVariable.js +1 -2
- package/dist/models/Login.js +1 -2
- package/dist/models/MainArgSignature.js +2 -5
- package/dist/models/Name.js +1 -2
- package/dist/models/NewJobId.js +1 -2
- package/dist/models/NewSchedule.js +1 -2
- package/dist/models/NewScript.js +2 -5
- package/dist/models/NewScriptWithDraft.js +1 -2
- package/dist/models/NewToken.js +1 -2
- package/dist/models/NewTokenImpersonate.js +1 -2
- package/dist/models/NewUser.js +1 -2
- package/dist/models/OpenFlow.js +1 -2
- package/dist/models/OpenFlowWPath.js +1 -2
- package/dist/models/Operation.js +1 -2
- package/dist/models/OrderDesc.js +1 -2
- package/dist/models/Page.js +1 -2
- package/dist/models/ParentJob.js +1 -2
- package/dist/models/Path.js +1 -2
- package/dist/models/PathFlow.js +1 -2
- package/dist/models/PathId.js +1 -2
- package/dist/models/PathScript.js +1 -2
- package/dist/models/Payload.js +1 -2
- package/dist/models/PerPage.js +1 -2
- package/dist/models/Policy.js +2 -5
- package/dist/models/Preview.js +2 -5
- package/dist/models/QueueLimit.js +1 -2
- package/dist/models/QueuedJob.js +2 -5
- package/dist/models/RawScript.js +2 -5
- package/dist/models/Resource.js +1 -2
- package/dist/models/ResourceName.js +1 -2
- package/dist/models/ResourceType.js +1 -2
- package/dist/models/ResultFilter.js +1 -2
- package/dist/models/Retry.js +1 -2
- package/dist/models/RunnableId.js +1 -2
- package/dist/models/RunnableType.js +2 -5
- package/dist/models/RunnableTypeQuery.js +1 -2
- package/dist/models/Running.js +1 -2
- package/dist/models/Schedule.js +1 -2
- package/dist/models/SchedulePath.js +1 -2
- package/dist/models/ScheduleWJobs.js +1 -2
- package/dist/models/Script.js +2 -5
- package/dist/models/ScriptArgs.js +1 -2
- package/dist/models/ScriptExactHash.js +1 -2
- package/dist/models/ScriptExactPath.js +1 -2
- package/dist/models/ScriptHash.js +1 -2
- package/dist/models/ScriptPath.js +1 -2
- package/dist/models/ScriptStartPath.js +1 -2
- package/dist/models/SlackToken.js +1 -2
- package/dist/models/StartedAfter.js +1 -2
- package/dist/models/StartedBefore.js +1 -2
- package/dist/models/StaticTransform.js +1 -2
- package/dist/models/Success.js +1 -2
- package/dist/models/Suspended.js +1 -2
- package/dist/models/Tag.js +1 -2
- package/dist/models/Token.js +1 -2
- package/dist/models/TokenResponse.js +1 -2
- package/dist/models/TruncatedToken.js +1 -2
- package/dist/models/UpdateInput.js +1 -2
- package/dist/models/Usage.js +1 -2
- package/dist/models/User.js +1 -2
- package/dist/models/UserWorkspaceList.js +1 -2
- package/dist/models/Username.js +1 -2
- package/dist/models/VersionId.js +1 -2
- package/dist/models/WorkerPing.js +1 -2
- package/dist/models/Workspace.js +1 -2
- package/dist/models/WorkspaceId.js +1 -2
- package/dist/models/WorkspaceInvite.js +1 -2
- package/dist/services/AdminService.js +6 -10
- package/dist/services/AppService.js +16 -20
- package/dist/services/AuditService.js +5 -9
- package/dist/services/CaptureService.js +6 -10
- package/dist/services/DraftService.js +5 -9
- package/dist/services/FavoriteService.js +5 -9
- package/dist/services/FlowService.js +15 -19
- package/dist/services/FolderService.js +12 -16
- package/dist/services/GranularAclService.js +6 -10
- package/dist/services/GroupService.js +11 -15
- package/dist/services/InputService.js +8 -12
- package/dist/services/JobService.js +34 -38
- package/dist/services/OauthService.js +11 -15
- package/dist/services/RawAppService.js +9 -13
- package/dist/services/ResourceService.js +18 -22
- package/dist/services/ScheduleService.js +12 -16
- package/dist/services/ScriptService.js +21 -25
- package/dist/services/SettingsService.js +7 -11
- package/dist/services/UserService.js +32 -36
- package/dist/services/VariableService.js +11 -15
- package/dist/services/WorkerService.js +5 -9
- package/dist/services/WorkspaceService.js +24 -28
- package/package.json +1 -1
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class CaptureService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class CaptureService {
|
|
7
4
|
/**
|
|
8
5
|
* update flow preview capture
|
|
9
6
|
* @returns void
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static updateCapture({ workspace, path, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'POST',
|
|
15
12
|
url: '/w/{workspace}/capture_u/{path}',
|
|
16
13
|
path: {
|
|
@@ -25,7 +22,7 @@ class CaptureService {
|
|
|
25
22
|
* @throws ApiError
|
|
26
23
|
*/
|
|
27
24
|
static createCapture({ workspace, path, }) {
|
|
28
|
-
return (
|
|
25
|
+
return __request(OpenAPI, {
|
|
29
26
|
method: 'PUT',
|
|
30
27
|
url: '/w/{workspace}/capture/{path}',
|
|
31
28
|
path: {
|
|
@@ -40,7 +37,7 @@ class CaptureService {
|
|
|
40
37
|
* @throws ApiError
|
|
41
38
|
*/
|
|
42
39
|
static getCapture({ workspace, path, }) {
|
|
43
|
-
return (
|
|
40
|
+
return __request(OpenAPI, {
|
|
44
41
|
method: 'GET',
|
|
45
42
|
url: '/w/{workspace}/capture/{path}',
|
|
46
43
|
path: {
|
|
@@ -53,4 +50,3 @@ class CaptureService {
|
|
|
53
50
|
});
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
|
-
exports.CaptureService = CaptureService;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class DraftService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class DraftService {
|
|
7
4
|
/**
|
|
8
5
|
* create draft
|
|
9
6
|
* @returns string draft created
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static createDraft({ workspace, requestBody, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'POST',
|
|
15
12
|
url: '/w/{workspace}/drafts/create',
|
|
16
13
|
path: {
|
|
@@ -26,7 +23,7 @@ class DraftService {
|
|
|
26
23
|
* @throws ApiError
|
|
27
24
|
*/
|
|
28
25
|
static deleteDraft({ workspace, kind, path, }) {
|
|
29
|
-
return (
|
|
26
|
+
return __request(OpenAPI, {
|
|
30
27
|
method: 'DELETE',
|
|
31
28
|
url: '/w/{workspace}/drafts/delete/{kind}/{path}',
|
|
32
29
|
path: {
|
|
@@ -37,4 +34,3 @@ class DraftService {
|
|
|
37
34
|
});
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
|
-
exports.DraftService = DraftService;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class FavoriteService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class FavoriteService {
|
|
7
4
|
/**
|
|
8
5
|
* star item
|
|
9
6
|
* @returns any star item
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static star({ workspace, requestBody, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'POST',
|
|
15
12
|
url: '/w/{workspace}/favorites/star',
|
|
16
13
|
path: {
|
|
@@ -26,7 +23,7 @@ class FavoriteService {
|
|
|
26
23
|
* @throws ApiError
|
|
27
24
|
*/
|
|
28
25
|
static unstar({ workspace, requestBody, }) {
|
|
29
|
-
return (
|
|
26
|
+
return __request(OpenAPI, {
|
|
30
27
|
method: 'POST',
|
|
31
28
|
url: '/w/{workspace}/favorites/unstar',
|
|
32
29
|
path: {
|
|
@@ -37,4 +34,3 @@ class FavoriteService {
|
|
|
37
34
|
});
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
|
-
exports.FavoriteService = FavoriteService;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class FlowService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class FlowService {
|
|
7
4
|
/**
|
|
8
5
|
* list all available hub flows
|
|
9
6
|
* @returns any hub flows list
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static listHubFlows() {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'GET',
|
|
15
12
|
url: '/flows/hub/list',
|
|
16
13
|
});
|
|
@@ -21,7 +18,7 @@ class FlowService {
|
|
|
21
18
|
* @throws ApiError
|
|
22
19
|
*/
|
|
23
20
|
static getHubFlowById({ id, }) {
|
|
24
|
-
return (
|
|
21
|
+
return __request(OpenAPI, {
|
|
25
22
|
method: 'GET',
|
|
26
23
|
url: '/flows/hub/get/{id}',
|
|
27
24
|
path: {
|
|
@@ -35,7 +32,7 @@ class FlowService {
|
|
|
35
32
|
* @throws ApiError
|
|
36
33
|
*/
|
|
37
34
|
static listFlowPaths({ workspace, }) {
|
|
38
|
-
return (
|
|
35
|
+
return __request(OpenAPI, {
|
|
39
36
|
method: 'GET',
|
|
40
37
|
url: '/w/{workspace}/flows/list_paths',
|
|
41
38
|
path: {
|
|
@@ -49,7 +46,7 @@ class FlowService {
|
|
|
49
46
|
* @throws ApiError
|
|
50
47
|
*/
|
|
51
48
|
static listFlows({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, showArchived, starredOnly, }) {
|
|
52
|
-
return (
|
|
49
|
+
return __request(OpenAPI, {
|
|
53
50
|
method: 'GET',
|
|
54
51
|
url: '/w/{workspace}/flows/list',
|
|
55
52
|
path: {
|
|
@@ -73,7 +70,7 @@ class FlowService {
|
|
|
73
70
|
* @throws ApiError
|
|
74
71
|
*/
|
|
75
72
|
static getFlowByPath({ workspace, path, }) {
|
|
76
|
-
return (
|
|
73
|
+
return __request(OpenAPI, {
|
|
77
74
|
method: 'GET',
|
|
78
75
|
url: '/w/{workspace}/flows/get/{path}',
|
|
79
76
|
path: {
|
|
@@ -88,7 +85,7 @@ class FlowService {
|
|
|
88
85
|
* @throws ApiError
|
|
89
86
|
*/
|
|
90
87
|
static getFlowByPathWithDraft({ workspace, path, }) {
|
|
91
|
-
return (
|
|
88
|
+
return __request(OpenAPI, {
|
|
92
89
|
method: 'GET',
|
|
93
90
|
url: '/w/{workspace}/flows/get/draft/{path}',
|
|
94
91
|
path: {
|
|
@@ -103,7 +100,7 @@ class FlowService {
|
|
|
103
100
|
* @throws ApiError
|
|
104
101
|
*/
|
|
105
102
|
static existsFlowByPath({ workspace, path, }) {
|
|
106
|
-
return (
|
|
103
|
+
return __request(OpenAPI, {
|
|
107
104
|
method: 'GET',
|
|
108
105
|
url: '/w/{workspace}/flows/exists/{path}',
|
|
109
106
|
path: {
|
|
@@ -118,7 +115,7 @@ class FlowService {
|
|
|
118
115
|
* @throws ApiError
|
|
119
116
|
*/
|
|
120
117
|
static createFlow({ workspace, requestBody, }) {
|
|
121
|
-
return (
|
|
118
|
+
return __request(OpenAPI, {
|
|
122
119
|
method: 'POST',
|
|
123
120
|
url: '/w/{workspace}/flows/create',
|
|
124
121
|
path: {
|
|
@@ -134,7 +131,7 @@ class FlowService {
|
|
|
134
131
|
* @throws ApiError
|
|
135
132
|
*/
|
|
136
133
|
static updateFlow({ workspace, path, requestBody, }) {
|
|
137
|
-
return (
|
|
134
|
+
return __request(OpenAPI, {
|
|
138
135
|
method: 'POST',
|
|
139
136
|
url: '/w/{workspace}/flows/update/{path}',
|
|
140
137
|
path: {
|
|
@@ -151,7 +148,7 @@ class FlowService {
|
|
|
151
148
|
* @throws ApiError
|
|
152
149
|
*/
|
|
153
150
|
static archiveFlowByPath({ workspace, path, requestBody, }) {
|
|
154
|
-
return (
|
|
151
|
+
return __request(OpenAPI, {
|
|
155
152
|
method: 'POST',
|
|
156
153
|
url: '/w/{workspace}/flows/archive/{path}',
|
|
157
154
|
path: {
|
|
@@ -168,7 +165,7 @@ class FlowService {
|
|
|
168
165
|
* @throws ApiError
|
|
169
166
|
*/
|
|
170
167
|
static deleteFlowByPath({ workspace, path, }) {
|
|
171
|
-
return (
|
|
168
|
+
return __request(OpenAPI, {
|
|
172
169
|
method: 'DELETE',
|
|
173
170
|
url: '/w/{workspace}/flows/delete/{path}',
|
|
174
171
|
path: {
|
|
@@ -183,7 +180,7 @@ class FlowService {
|
|
|
183
180
|
* @throws ApiError
|
|
184
181
|
*/
|
|
185
182
|
static getFlowInputHistoryByPath({ workspace, path, page, perPage, }) {
|
|
186
|
-
return (
|
|
183
|
+
return __request(OpenAPI, {
|
|
187
184
|
method: 'GET',
|
|
188
185
|
url: '/w/{workspace}/flows/input_history/p/{path}',
|
|
189
186
|
path: {
|
|
@@ -197,4 +194,3 @@ class FlowService {
|
|
|
197
194
|
});
|
|
198
195
|
}
|
|
199
196
|
}
|
|
200
|
-
exports.FlowService = FlowService;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class FolderService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class FolderService {
|
|
7
4
|
/**
|
|
8
5
|
* list folders
|
|
9
6
|
* @returns Folder folder list
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static listFolders({ workspace, page, perPage, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'GET',
|
|
15
12
|
url: '/w/{workspace}/folders/list',
|
|
16
13
|
path: {
|
|
@@ -28,7 +25,7 @@ class FolderService {
|
|
|
28
25
|
* @throws ApiError
|
|
29
26
|
*/
|
|
30
27
|
static listFolderNames({ workspace, onlyMemberOf, }) {
|
|
31
|
-
return (
|
|
28
|
+
return __request(OpenAPI, {
|
|
32
29
|
method: 'GET',
|
|
33
30
|
url: '/w/{workspace}/folders/listnames',
|
|
34
31
|
path: {
|
|
@@ -45,7 +42,7 @@ class FolderService {
|
|
|
45
42
|
* @throws ApiError
|
|
46
43
|
*/
|
|
47
44
|
static createFolder({ workspace, requestBody, }) {
|
|
48
|
-
return (
|
|
45
|
+
return __request(OpenAPI, {
|
|
49
46
|
method: 'POST',
|
|
50
47
|
url: '/w/{workspace}/folders/create',
|
|
51
48
|
path: {
|
|
@@ -61,7 +58,7 @@ class FolderService {
|
|
|
61
58
|
* @throws ApiError
|
|
62
59
|
*/
|
|
63
60
|
static updateFolder({ workspace, name, requestBody, }) {
|
|
64
|
-
return (
|
|
61
|
+
return __request(OpenAPI, {
|
|
65
62
|
method: 'POST',
|
|
66
63
|
url: '/w/{workspace}/folders/update/{name}',
|
|
67
64
|
path: {
|
|
@@ -78,7 +75,7 @@ class FolderService {
|
|
|
78
75
|
* @throws ApiError
|
|
79
76
|
*/
|
|
80
77
|
static deleteFolder({ workspace, name, }) {
|
|
81
|
-
return (
|
|
78
|
+
return __request(OpenAPI, {
|
|
82
79
|
method: 'DELETE',
|
|
83
80
|
url: '/w/{workspace}/folders/delete/{name}',
|
|
84
81
|
path: {
|
|
@@ -93,7 +90,7 @@ class FolderService {
|
|
|
93
90
|
* @throws ApiError
|
|
94
91
|
*/
|
|
95
92
|
static getFolder({ workspace, name, }) {
|
|
96
|
-
return (
|
|
93
|
+
return __request(OpenAPI, {
|
|
97
94
|
method: 'GET',
|
|
98
95
|
url: '/w/{workspace}/folders/get/{name}',
|
|
99
96
|
path: {
|
|
@@ -108,7 +105,7 @@ class FolderService {
|
|
|
108
105
|
* @throws ApiError
|
|
109
106
|
*/
|
|
110
107
|
static getFolderUsage({ workspace, name, }) {
|
|
111
|
-
return (
|
|
108
|
+
return __request(OpenAPI, {
|
|
112
109
|
method: 'GET',
|
|
113
110
|
url: '/w/{workspace}/folders/getusage/{name}',
|
|
114
111
|
path: {
|
|
@@ -123,7 +120,7 @@ class FolderService {
|
|
|
123
120
|
* @throws ApiError
|
|
124
121
|
*/
|
|
125
122
|
static addOwnerToFolder({ workspace, name, requestBody, }) {
|
|
126
|
-
return (
|
|
123
|
+
return __request(OpenAPI, {
|
|
127
124
|
method: 'POST',
|
|
128
125
|
url: '/w/{workspace}/folders/addowner/{name}',
|
|
129
126
|
path: {
|
|
@@ -140,7 +137,7 @@ class FolderService {
|
|
|
140
137
|
* @throws ApiError
|
|
141
138
|
*/
|
|
142
139
|
static removeOwnerToFolder({ workspace, name, requestBody, }) {
|
|
143
|
-
return (
|
|
140
|
+
return __request(OpenAPI, {
|
|
144
141
|
method: 'POST',
|
|
145
142
|
url: '/w/{workspace}/folders/removeowner/{name}',
|
|
146
143
|
path: {
|
|
@@ -152,4 +149,3 @@ class FolderService {
|
|
|
152
149
|
});
|
|
153
150
|
}
|
|
154
151
|
}
|
|
155
|
-
exports.FolderService = FolderService;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class GranularAclService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class GranularAclService {
|
|
7
4
|
/**
|
|
8
5
|
* get granular acls
|
|
9
6
|
* @returns boolean acls
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static getGranularAcls({ workspace, path, kind, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'GET',
|
|
15
12
|
url: '/w/{workspace}/acls/get/{kind}/{path}',
|
|
16
13
|
path: {
|
|
@@ -26,7 +23,7 @@ class GranularAclService {
|
|
|
26
23
|
* @throws ApiError
|
|
27
24
|
*/
|
|
28
25
|
static addGranularAcls({ workspace, path, kind, requestBody, }) {
|
|
29
|
-
return (
|
|
26
|
+
return __request(OpenAPI, {
|
|
30
27
|
method: 'POST',
|
|
31
28
|
url: '/w/{workspace}/acls/add/{kind}/{path}',
|
|
32
29
|
path: {
|
|
@@ -44,7 +41,7 @@ class GranularAclService {
|
|
|
44
41
|
* @throws ApiError
|
|
45
42
|
*/
|
|
46
43
|
static removeGranularAcls({ workspace, path, kind, requestBody, }) {
|
|
47
|
-
return (
|
|
44
|
+
return __request(OpenAPI, {
|
|
48
45
|
method: 'POST',
|
|
49
46
|
url: '/w/{workspace}/acls/remove/{kind}/{path}',
|
|
50
47
|
path: {
|
|
@@ -57,4 +54,3 @@ class GranularAclService {
|
|
|
57
54
|
});
|
|
58
55
|
}
|
|
59
56
|
}
|
|
60
|
-
exports.GranularAclService = GranularAclService;
|
|
@@ -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, onlyMemberOf, }) {
|
|
31
|
-
return (
|
|
28
|
+
return __request(OpenAPI, {
|
|
32
29
|
method: 'GET',
|
|
33
30
|
url: '/w/{workspace}/groups/listnames',
|
|
34
31
|
path: {
|
|
@@ -45,7 +42,7 @@ class GroupService {
|
|
|
45
42
|
* @throws ApiError
|
|
46
43
|
*/
|
|
47
44
|
static createGroup({ workspace, requestBody, }) {
|
|
48
|
-
return (
|
|
45
|
+
return __request(OpenAPI, {
|
|
49
46
|
method: 'POST',
|
|
50
47
|
url: '/w/{workspace}/groups/create',
|
|
51
48
|
path: {
|
|
@@ -61,7 +58,7 @@ class GroupService {
|
|
|
61
58
|
* @throws ApiError
|
|
62
59
|
*/
|
|
63
60
|
static updateGroup({ workspace, name, requestBody, }) {
|
|
64
|
-
return (
|
|
61
|
+
return __request(OpenAPI, {
|
|
65
62
|
method: 'POST',
|
|
66
63
|
url: '/w/{workspace}/groups/update/{name}',
|
|
67
64
|
path: {
|
|
@@ -78,7 +75,7 @@ class GroupService {
|
|
|
78
75
|
* @throws ApiError
|
|
79
76
|
*/
|
|
80
77
|
static deleteGroup({ workspace, name, }) {
|
|
81
|
-
return (
|
|
78
|
+
return __request(OpenAPI, {
|
|
82
79
|
method: 'DELETE',
|
|
83
80
|
url: '/w/{workspace}/groups/delete/{name}',
|
|
84
81
|
path: {
|
|
@@ -93,7 +90,7 @@ class GroupService {
|
|
|
93
90
|
* @throws ApiError
|
|
94
91
|
*/
|
|
95
92
|
static getGroup({ workspace, name, }) {
|
|
96
|
-
return (
|
|
93
|
+
return __request(OpenAPI, {
|
|
97
94
|
method: 'GET',
|
|
98
95
|
url: '/w/{workspace}/groups/get/{name}',
|
|
99
96
|
path: {
|
|
@@ -108,7 +105,7 @@ class GroupService {
|
|
|
108
105
|
* @throws ApiError
|
|
109
106
|
*/
|
|
110
107
|
static addUserToGroup({ workspace, name, requestBody, }) {
|
|
111
|
-
return (
|
|
108
|
+
return __request(OpenAPI, {
|
|
112
109
|
method: 'POST',
|
|
113
110
|
url: '/w/{workspace}/groups/adduser/{name}',
|
|
114
111
|
path: {
|
|
@@ -125,7 +122,7 @@ class GroupService {
|
|
|
125
122
|
* @throws ApiError
|
|
126
123
|
*/
|
|
127
124
|
static removeUserToGroup({ workspace, name, requestBody, }) {
|
|
128
|
-
return (
|
|
125
|
+
return __request(OpenAPI, {
|
|
129
126
|
method: 'POST',
|
|
130
127
|
url: '/w/{workspace}/groups/removeuser/{name}',
|
|
131
128
|
path: {
|
|
@@ -137,4 +134,3 @@ class GroupService {
|
|
|
137
134
|
});
|
|
138
135
|
}
|
|
139
136
|
}
|
|
140
|
-
exports.GroupService = GroupService;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class InputService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class InputService {
|
|
7
4
|
/**
|
|
8
5
|
* List Inputs used in previously completed jobs
|
|
9
6
|
* @returns Input Input history for completed jobs
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static getInputHistory({ workspace, runnableId, runnableType, page, perPage, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'GET',
|
|
15
12
|
url: '/w/{workspace}/inputs/history',
|
|
16
13
|
path: {
|
|
@@ -30,7 +27,7 @@ class InputService {
|
|
|
30
27
|
* @throws ApiError
|
|
31
28
|
*/
|
|
32
29
|
static listInputs({ workspace, runnableId, runnableType, page, perPage, }) {
|
|
33
|
-
return (
|
|
30
|
+
return __request(OpenAPI, {
|
|
34
31
|
method: 'GET',
|
|
35
32
|
url: '/w/{workspace}/inputs/list',
|
|
36
33
|
path: {
|
|
@@ -50,7 +47,7 @@ class InputService {
|
|
|
50
47
|
* @throws ApiError
|
|
51
48
|
*/
|
|
52
49
|
static createInput({ workspace, requestBody, runnableId, runnableType, }) {
|
|
53
|
-
return (
|
|
50
|
+
return __request(OpenAPI, {
|
|
54
51
|
method: 'POST',
|
|
55
52
|
url: '/w/{workspace}/inputs/create',
|
|
56
53
|
path: {
|
|
@@ -70,7 +67,7 @@ class InputService {
|
|
|
70
67
|
* @throws ApiError
|
|
71
68
|
*/
|
|
72
69
|
static updateInput({ workspace, requestBody, }) {
|
|
73
|
-
return (
|
|
70
|
+
return __request(OpenAPI, {
|
|
74
71
|
method: 'POST',
|
|
75
72
|
url: '/w/{workspace}/inputs/update',
|
|
76
73
|
path: {
|
|
@@ -86,7 +83,7 @@ class InputService {
|
|
|
86
83
|
* @throws ApiError
|
|
87
84
|
*/
|
|
88
85
|
static deleteInput({ workspace, input, }) {
|
|
89
|
-
return (
|
|
86
|
+
return __request(OpenAPI, {
|
|
90
87
|
method: 'POST',
|
|
91
88
|
url: '/w/{workspace}/inputs/delete/{input}',
|
|
92
89
|
path: {
|
|
@@ -96,4 +93,3 @@ class InputService {
|
|
|
96
93
|
});
|
|
97
94
|
}
|
|
98
95
|
}
|
|
99
|
-
exports.InputService = InputService;
|