windmill-client 0.2.0 → 0.3.1
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/build.sh +0 -1
- package/dist/core/ApiError.js +15 -0
- package/dist/core/ApiRequestOptions.js +2 -0
- package/dist/core/ApiResult.js +2 -0
- package/dist/core/CancelablePromise.js +94 -0
- package/dist/core/OpenAPI.js +14 -0
- package/dist/core/request.js +269 -0
- package/dist/index.d.ts +97 -0
- package/dist/index.js +87 -0
- package/dist/models/AppWithLastVersion.js +15 -0
- package/dist/models/AppWithLastVersionWDraft.js +5 -0
- package/dist/models/AuditLog.js +32 -0
- package/dist/models/BranchAll.js +5 -0
- package/dist/models/BranchOne.js +5 -0
- package/dist/models/CompletedJob.js +26 -0
- package/dist/models/ContextualVariable.js +5 -0
- package/dist/models/CreateInput.js +5 -0
- package/dist/models/CreateResource.js +5 -0
- package/dist/models/CreateVariable.js +5 -0
- package/dist/models/CreateWorkspace.js +5 -0
- package/dist/models/EditResource.js +5 -0
- package/dist/models/EditResourceType.js +5 -0
- package/dist/models/EditSchedule.js +5 -0
- package/dist/models/EditVariable.js +5 -0
- package/dist/models/EditWorkspaceUser.js +5 -0
- package/dist/models/Flow.js +5 -0
- package/dist/models/FlowMetadata.js +5 -0
- package/dist/models/FlowModule.js +5 -0
- package/dist/models/FlowModuleValue.js +5 -0
- package/dist/models/FlowPreview.js +5 -0
- package/dist/models/FlowStatus.js +5 -0
- package/dist/models/FlowStatusModule.js +18 -0
- package/dist/models/FlowValue.js +5 -0
- package/dist/models/Folder.js +5 -0
- package/dist/models/ForloopFlow.js +5 -0
- package/dist/models/GlobalUserInfo.js +14 -0
- package/dist/models/Group.js +5 -0
- package/dist/models/Identity.js +5 -0
- package/dist/models/Input.js +5 -0
- package/dist/models/InputTransform.js +5 -0
- package/dist/models/JavascriptTransform.js +5 -0
- package/dist/models/Job.js +14 -0
- package/dist/models/ListableApp.js +15 -0
- package/dist/models/ListableRawApp.d.ts +9 -0
- package/dist/models/ListableRawApp.js +5 -0
- package/dist/models/ListableResource.js +5 -0
- package/dist/models/ListableVariable.js +5 -0
- package/dist/models/Login.js +5 -0
- package/dist/models/MainArgSignature.js +14 -0
- package/dist/models/NewSchedule.js +5 -0
- package/dist/models/NewScript.js +24 -0
- package/dist/models/NewScriptWithDraft.js +5 -0
- package/dist/models/NewToken.js +5 -0
- package/dist/models/NewTokenImpersonate.js +5 -0
- package/dist/models/NewUser.js +5 -0
- package/dist/models/OpenFlow.js +5 -0
- package/dist/models/OpenFlowWPath.js +5 -0
- package/dist/models/PathFlow.js +5 -0
- package/dist/models/PathScript.js +5 -0
- package/dist/models/Policy.js +15 -0
- package/dist/models/Preview.js +16 -0
- package/dist/models/QueuedJob.js +26 -0
- package/dist/models/RawScript.js +16 -0
- package/dist/models/Resource.js +5 -0
- package/dist/models/ResourceType.js +5 -0
- package/dist/models/Retry.js +5 -0
- package/dist/models/RunnableType.js +12 -0
- package/dist/models/Schedule.js +5 -0
- package/dist/models/Script.js +24 -0
- package/dist/models/ScriptArgs.js +5 -0
- package/dist/models/SlackToken.js +5 -0
- package/dist/models/StaticTransform.js +5 -0
- package/dist/models/TokenResponse.js +5 -0
- package/dist/models/TruncatedToken.js +5 -0
- package/dist/models/UpdateInput.js +5 -0
- package/dist/models/Usage.js +5 -0
- package/dist/models/User.js +5 -0
- package/dist/models/UserWorkspaceList.js +5 -0
- package/dist/models/WorkerPing.js +5 -0
- package/dist/models/Workspace.js +5 -0
- package/dist/models/WorkspaceInvite.js +5 -0
- package/dist/services/AdminService.js +56 -0
- package/{src → dist}/services/AppService.d.ts +19 -18
- package/dist/services/AppService.js +211 -0
- package/dist/services/AuditService.js +47 -0
- package/dist/services/CaptureService.js +56 -0
- package/dist/services/DraftService.js +24 -0
- package/{src → dist}/services/FavoriteService.d.ts +2 -2
- package/dist/services/FavoriteService.js +40 -0
- package/dist/services/FlowService.js +200 -0
- package/dist/services/FolderService.js +155 -0
- package/{src → dist}/services/GranularAclService.d.ts +3 -3
- package/dist/services/GranularAclService.js +60 -0
- package/dist/services/GroupService.js +140 -0
- package/dist/services/InputService.js +99 -0
- package/{src → dist}/services/JobService.d.ts +12 -0
- package/dist/services/JobService.js +579 -0
- package/dist/services/OauthService.js +124 -0
- package/dist/services/RawAppService.d.ts +103 -0
- package/dist/services/RawAppService.js +110 -0
- package/dist/services/ResourceService.js +244 -0
- package/dist/services/ScheduleService.js +134 -0
- package/dist/services/ScriptService.js +339 -0
- package/dist/services/SettingsService.js +30 -0
- package/dist/services/UserService.js +376 -0
- package/dist/services/VariableService.js +123 -0
- package/dist/services/WorkerService.js +34 -0
- package/dist/services/WorkspaceService.js +275 -0
- package/package.json +1 -1
- package/publish.sh +3 -0
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +2 -0
- package/src/models/ListableRawApp.ts +14 -0
- package/src/services/AppService.ts +33 -32
- package/src/services/FavoriteService.ts +2 -2
- package/src/services/GranularAclService.ts +3 -3
- package/src/services/JobService.ts +25 -0
- package/src/services/RawAppService.ts +209 -0
- package/tsconfig.json +1 -1
- /package/{src → dist}/core/ApiError.d.ts +0 -0
- /package/{src → dist}/core/ApiRequestOptions.d.ts +0 -0
- /package/{src → dist}/core/ApiResult.d.ts +0 -0
- /package/{src → dist}/core/CancelablePromise.d.ts +0 -0
- /package/{src → dist}/core/OpenAPI.d.ts +0 -0
- /package/{src → dist}/core/request.d.ts +0 -0
- /package/{src → dist}/models/AppWithLastVersion.d.ts +0 -0
- /package/{src → dist}/models/AppWithLastVersionWDraft.d.ts +0 -0
- /package/{src → dist}/models/AuditLog.d.ts +0 -0
- /package/{src → dist}/models/BranchAll.d.ts +0 -0
- /package/{src → dist}/models/BranchOne.d.ts +0 -0
- /package/{src → dist}/models/CompletedJob.d.ts +0 -0
- /package/{src → dist}/models/ContextualVariable.d.ts +0 -0
- /package/{src → dist}/models/CreateInput.d.ts +0 -0
- /package/{src → dist}/models/CreateResource.d.ts +0 -0
- /package/{src → dist}/models/CreateVariable.d.ts +0 -0
- /package/{src → dist}/models/CreateWorkspace.d.ts +0 -0
- /package/{src → dist}/models/EditResource.d.ts +0 -0
- /package/{src → dist}/models/EditResourceType.d.ts +0 -0
- /package/{src → dist}/models/EditSchedule.d.ts +0 -0
- /package/{src → dist}/models/EditVariable.d.ts +0 -0
- /package/{src → dist}/models/EditWorkspaceUser.d.ts +0 -0
- /package/{src → dist}/models/Flow.d.ts +0 -0
- /package/{src → dist}/models/FlowMetadata.d.ts +0 -0
- /package/{src → dist}/models/FlowModule.d.ts +0 -0
- /package/{src → dist}/models/FlowModuleValue.d.ts +0 -0
- /package/{src → dist}/models/FlowPreview.d.ts +0 -0
- /package/{src → dist}/models/FlowStatus.d.ts +0 -0
- /package/{src → dist}/models/FlowStatusModule.d.ts +0 -0
- /package/{src → dist}/models/FlowValue.d.ts +0 -0
- /package/{src → dist}/models/Folder.d.ts +0 -0
- /package/{src → dist}/models/ForloopFlow.d.ts +0 -0
- /package/{src → dist}/models/GlobalUserInfo.d.ts +0 -0
- /package/{src → dist}/models/Group.d.ts +0 -0
- /package/{src → dist}/models/Identity.d.ts +0 -0
- /package/{src → dist}/models/Input.d.ts +0 -0
- /package/{src → dist}/models/InputTransform.d.ts +0 -0
- /package/{src → dist}/models/JavascriptTransform.d.ts +0 -0
- /package/{src → dist}/models/Job.d.ts +0 -0
- /package/{src → dist}/models/ListableApp.d.ts +0 -0
- /package/{src → dist}/models/ListableResource.d.ts +0 -0
- /package/{src → dist}/models/ListableVariable.d.ts +0 -0
- /package/{src → dist}/models/Login.d.ts +0 -0
- /package/{src → dist}/models/MainArgSignature.d.ts +0 -0
- /package/{src → dist}/models/NewSchedule.d.ts +0 -0
- /package/{src → dist}/models/NewScript.d.ts +0 -0
- /package/{src → dist}/models/NewScriptWithDraft.d.ts +0 -0
- /package/{src → dist}/models/NewToken.d.ts +0 -0
- /package/{src → dist}/models/NewTokenImpersonate.d.ts +0 -0
- /package/{src → dist}/models/NewUser.d.ts +0 -0
- /package/{src → dist}/models/OpenFlow.d.ts +0 -0
- /package/{src → dist}/models/OpenFlowWPath.d.ts +0 -0
- /package/{src → dist}/models/PathFlow.d.ts +0 -0
- /package/{src → dist}/models/PathScript.d.ts +0 -0
- /package/{src → dist}/models/Policy.d.ts +0 -0
- /package/{src → dist}/models/Preview.d.ts +0 -0
- /package/{src → dist}/models/QueuedJob.d.ts +0 -0
- /package/{src → dist}/models/RawScript.d.ts +0 -0
- /package/{src → dist}/models/Resource.d.ts +0 -0
- /package/{src → dist}/models/ResourceType.d.ts +0 -0
- /package/{src → dist}/models/Retry.d.ts +0 -0
- /package/{src → dist}/models/RunnableType.d.ts +0 -0
- /package/{src → dist}/models/Schedule.d.ts +0 -0
- /package/{src → dist}/models/Script.d.ts +0 -0
- /package/{src → dist}/models/ScriptArgs.d.ts +0 -0
- /package/{src → dist}/models/SlackToken.d.ts +0 -0
- /package/{src → dist}/models/StaticTransform.d.ts +0 -0
- /package/{src → dist}/models/TokenResponse.d.ts +0 -0
- /package/{src → dist}/models/TruncatedToken.d.ts +0 -0
- /package/{src → dist}/models/UpdateInput.d.ts +0 -0
- /package/{src → dist}/models/Usage.d.ts +0 -0
- /package/{src → dist}/models/User.d.ts +0 -0
- /package/{src → dist}/models/UserWorkspaceList.d.ts +0 -0
- /package/{src → dist}/models/WorkerPing.d.ts +0 -0
- /package/{src → dist}/models/Workspace.d.ts +0 -0
- /package/{src → dist}/models/WorkspaceInvite.d.ts +0 -0
- /package/{src → dist}/services/AdminService.d.ts +0 -0
- /package/{src → dist}/services/AuditService.d.ts +0 -0
- /package/{src → dist}/services/CaptureService.d.ts +0 -0
- /package/{src → dist}/services/DraftService.d.ts +0 -0
- /package/{src → dist}/services/FlowService.d.ts +0 -0
- /package/{src → dist}/services/FolderService.d.ts +0 -0
- /package/{src → dist}/services/GroupService.d.ts +0 -0
- /package/{src → dist}/services/InputService.d.ts +0 -0
- /package/{src → dist}/services/OauthService.d.ts +0 -0
- /package/{src → dist}/services/ResourceService.d.ts +0 -0
- /package/{src → dist}/services/ScheduleService.d.ts +0 -0
- /package/{src → dist}/services/ScriptService.d.ts +0 -0
- /package/{src → dist}/services/SettingsService.d.ts +0 -0
- /package/{src → dist}/services/UserService.d.ts +0 -0
- /package/{src → dist}/services/VariableService.d.ts +0 -0
- /package/{src → dist}/services/WorkerService.d.ts +0 -0
- /package/{src → dist}/services/WorkspaceService.d.ts +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkspaceService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class WorkspaceService {
|
|
7
|
+
/**
|
|
8
|
+
* list all workspaces visible to me
|
|
9
|
+
* @returns Workspace all workspaces
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static listWorkspaces() {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/workspaces/list',
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* is domain allowed for auto invi
|
|
20
|
+
* @returns boolean domain allowed or not
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static isDomainAllowed() {
|
|
24
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
25
|
+
method: 'GET',
|
|
26
|
+
url: '/workspaces/allowed_domain_auto_invite',
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* list all workspaces visible to me with user info
|
|
31
|
+
* @returns UserWorkspaceList workspace with associated username
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static listUserWorkspaces() {
|
|
35
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
36
|
+
method: 'GET',
|
|
37
|
+
url: '/workspaces/users',
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* list all workspaces as super admin (require to be super admin)
|
|
42
|
+
* @returns Workspace workspaces
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
static listWorkspacesAsSuperAdmin({ page, perPage, }) {
|
|
46
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
47
|
+
method: 'GET',
|
|
48
|
+
url: '/workspaces/list_as_superadmin',
|
|
49
|
+
query: {
|
|
50
|
+
'page': page,
|
|
51
|
+
'per_page': perPage,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* create workspace
|
|
57
|
+
* @returns string token created
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
static createWorkspace({ requestBody, }) {
|
|
61
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
|
+
method: 'POST',
|
|
63
|
+
url: '/workspaces/create',
|
|
64
|
+
body: requestBody,
|
|
65
|
+
mediaType: 'application/json',
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* exists workspace
|
|
70
|
+
* @returns boolean status
|
|
71
|
+
* @throws ApiError
|
|
72
|
+
*/
|
|
73
|
+
static existsWorkspace({ requestBody, }) {
|
|
74
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
75
|
+
method: 'POST',
|
|
76
|
+
url: '/workspaces/exists',
|
|
77
|
+
body: requestBody,
|
|
78
|
+
mediaType: 'application/json',
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* exists username
|
|
83
|
+
* @returns boolean status
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static existsUsername({ requestBody, }) {
|
|
87
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
88
|
+
method: 'POST',
|
|
89
|
+
url: '/workspaces/exists_username',
|
|
90
|
+
body: requestBody,
|
|
91
|
+
mediaType: 'application/json',
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* invite user to workspace
|
|
96
|
+
* @returns string status
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
static inviteUser({ workspace, requestBody, }) {
|
|
100
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
101
|
+
method: 'POST',
|
|
102
|
+
url: '/w/{workspace}/workspaces/invite_user',
|
|
103
|
+
path: {
|
|
104
|
+
'workspace': workspace,
|
|
105
|
+
},
|
|
106
|
+
body: requestBody,
|
|
107
|
+
mediaType: 'application/json',
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* add user to workspace
|
|
112
|
+
* @returns string status
|
|
113
|
+
* @throws ApiError
|
|
114
|
+
*/
|
|
115
|
+
static addUser({ workspace, requestBody, }) {
|
|
116
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
117
|
+
method: 'POST',
|
|
118
|
+
url: '/w/{workspace}/workspaces/add_user',
|
|
119
|
+
path: {
|
|
120
|
+
'workspace': workspace,
|
|
121
|
+
},
|
|
122
|
+
body: requestBody,
|
|
123
|
+
mediaType: 'application/json',
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* delete user invite
|
|
128
|
+
* @returns string status
|
|
129
|
+
* @throws ApiError
|
|
130
|
+
*/
|
|
131
|
+
static deleteInvite({ workspace, requestBody, }) {
|
|
132
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
133
|
+
method: 'POST',
|
|
134
|
+
url: '/w/{workspace}/workspaces/delete_invite',
|
|
135
|
+
path: {
|
|
136
|
+
'workspace': workspace,
|
|
137
|
+
},
|
|
138
|
+
body: requestBody,
|
|
139
|
+
mediaType: 'application/json',
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* archive workspace
|
|
144
|
+
* @returns string status
|
|
145
|
+
* @throws ApiError
|
|
146
|
+
*/
|
|
147
|
+
static archiveWorkspace({ workspace, }) {
|
|
148
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
149
|
+
method: 'POST',
|
|
150
|
+
url: '/w/{workspace}/workspaces/archive',
|
|
151
|
+
path: {
|
|
152
|
+
'workspace': workspace,
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* unarchive workspace
|
|
158
|
+
* @returns string status
|
|
159
|
+
* @throws ApiError
|
|
160
|
+
*/
|
|
161
|
+
static unarchiveWorkspace({ workspace, }) {
|
|
162
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
163
|
+
method: 'POST',
|
|
164
|
+
url: '/workspaces/unarchive/{workspace}',
|
|
165
|
+
path: {
|
|
166
|
+
'workspace': workspace,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* delete workspace (require super admin)
|
|
172
|
+
* @returns string status
|
|
173
|
+
* @throws ApiError
|
|
174
|
+
*/
|
|
175
|
+
static deleteWorkspace({ workspace, }) {
|
|
176
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
177
|
+
method: 'DELETE',
|
|
178
|
+
url: '/workspaces/delete/{workspace}',
|
|
179
|
+
path: {
|
|
180
|
+
'workspace': workspace,
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* list pending invites for a workspace
|
|
186
|
+
* @returns WorkspaceInvite user
|
|
187
|
+
* @throws ApiError
|
|
188
|
+
*/
|
|
189
|
+
static listPendingInvites({ workspace, }) {
|
|
190
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
191
|
+
method: 'GET',
|
|
192
|
+
url: '/w/{workspace}/workspaces/list_pending_invites',
|
|
193
|
+
path: {
|
|
194
|
+
'workspace': workspace,
|
|
195
|
+
},
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* get settings
|
|
200
|
+
* @returns any status
|
|
201
|
+
* @throws ApiError
|
|
202
|
+
*/
|
|
203
|
+
static getSettings({ workspace, }) {
|
|
204
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
205
|
+
method: 'GET',
|
|
206
|
+
url: '/w/{workspace}/workspaces/get_settings',
|
|
207
|
+
path: {
|
|
208
|
+
'workspace': workspace,
|
|
209
|
+
},
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* get premium info
|
|
214
|
+
* @returns any status
|
|
215
|
+
* @throws ApiError
|
|
216
|
+
*/
|
|
217
|
+
static getPremiumInfo({ workspace, }) {
|
|
218
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
219
|
+
method: 'GET',
|
|
220
|
+
url: '/w/{workspace}/workspaces/premium_info',
|
|
221
|
+
path: {
|
|
222
|
+
'workspace': workspace,
|
|
223
|
+
},
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* edit slack command
|
|
228
|
+
* @returns string status
|
|
229
|
+
* @throws ApiError
|
|
230
|
+
*/
|
|
231
|
+
static editSlackCommand({ workspace, requestBody, }) {
|
|
232
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
233
|
+
method: 'POST',
|
|
234
|
+
url: '/w/{workspace}/workspaces/edit_slack_command',
|
|
235
|
+
path: {
|
|
236
|
+
'workspace': workspace,
|
|
237
|
+
},
|
|
238
|
+
body: requestBody,
|
|
239
|
+
mediaType: 'application/json',
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* edit auto invite
|
|
244
|
+
* @returns string status
|
|
245
|
+
* @throws ApiError
|
|
246
|
+
*/
|
|
247
|
+
static editAutoInvite({ workspace, requestBody, }) {
|
|
248
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
249
|
+
method: 'POST',
|
|
250
|
+
url: '/w/{workspace}/workspaces/edit_auto_invite',
|
|
251
|
+
path: {
|
|
252
|
+
'workspace': workspace,
|
|
253
|
+
},
|
|
254
|
+
body: requestBody,
|
|
255
|
+
mediaType: 'application/json',
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* edit webhook
|
|
260
|
+
* @returns string status
|
|
261
|
+
* @throws ApiError
|
|
262
|
+
*/
|
|
263
|
+
static editWebhook({ workspace, requestBody, }) {
|
|
264
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
265
|
+
method: 'POST',
|
|
266
|
+
url: '/w/{workspace}/workspaces/edit_webhook',
|
|
267
|
+
path: {
|
|
268
|
+
'workspace': workspace,
|
|
269
|
+
},
|
|
270
|
+
body: requestBody,
|
|
271
|
+
mediaType: 'application/json',
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
exports.WorkspaceService = WorkspaceService;
|
package/package.json
CHANGED
package/publish.sh
ADDED
package/src/core/OpenAPI.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -40,6 +40,7 @@ export type { InputTransform } from './models/InputTransform';
|
|
|
40
40
|
export type { JavascriptTransform } from './models/JavascriptTransform';
|
|
41
41
|
export { Job } from './models/Job';
|
|
42
42
|
export { ListableApp } from './models/ListableApp';
|
|
43
|
+
export type { ListableRawApp } from './models/ListableRawApp';
|
|
43
44
|
export type { ListableResource } from './models/ListableResource';
|
|
44
45
|
export type { ListableVariable } from './models/ListableVariable';
|
|
45
46
|
export type { Login } from './models/Login';
|
|
@@ -90,6 +91,7 @@ export { GroupService } from './services/GroupService';
|
|
|
90
91
|
export { InputService } from './services/InputService';
|
|
91
92
|
export { JobService } from './services/JobService';
|
|
92
93
|
export { OauthService } from './services/OauthService';
|
|
94
|
+
export { RawAppService } from './services/RawAppService';
|
|
93
95
|
export { ResourceService } from './services/ResourceService';
|
|
94
96
|
export { ScheduleService } from './services/ScheduleService';
|
|
95
97
|
export { ScriptService } from './services/ScriptService';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
export type ListableRawApp = {
|
|
6
|
+
workspace_id: string;
|
|
7
|
+
path: string;
|
|
8
|
+
summary: string;
|
|
9
|
+
extra_perms: Record<string, boolean>;
|
|
10
|
+
starred?: boolean;
|
|
11
|
+
version: number;
|
|
12
|
+
edited_at: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -122,6 +122,38 @@ export class AppService {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
/**
|
|
126
|
+
* create app
|
|
127
|
+
* @returns string app created
|
|
128
|
+
* @throws ApiError
|
|
129
|
+
*/
|
|
130
|
+
public static createApp({
|
|
131
|
+
workspace,
|
|
132
|
+
requestBody,
|
|
133
|
+
}: {
|
|
134
|
+
workspace: string,
|
|
135
|
+
/**
|
|
136
|
+
* new app
|
|
137
|
+
*/
|
|
138
|
+
requestBody: {
|
|
139
|
+
path: string;
|
|
140
|
+
value: any;
|
|
141
|
+
summary: string;
|
|
142
|
+
policy: Policy;
|
|
143
|
+
draft_only?: boolean;
|
|
144
|
+
},
|
|
145
|
+
}): CancelablePromise<string> {
|
|
146
|
+
return __request(OpenAPI, {
|
|
147
|
+
method: 'POST',
|
|
148
|
+
url: '/w/{workspace}/apps/create',
|
|
149
|
+
path: {
|
|
150
|
+
'workspace': workspace,
|
|
151
|
+
},
|
|
152
|
+
body: requestBody,
|
|
153
|
+
mediaType: 'application/json',
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
|
|
125
157
|
/**
|
|
126
158
|
* does an app exisst at path
|
|
127
159
|
* @returns boolean app exists
|
|
@@ -254,38 +286,6 @@ export class AppService {
|
|
|
254
286
|
});
|
|
255
287
|
}
|
|
256
288
|
|
|
257
|
-
/**
|
|
258
|
-
* create app
|
|
259
|
-
* @returns string app created
|
|
260
|
-
* @throws ApiError
|
|
261
|
-
*/
|
|
262
|
-
public static createApp({
|
|
263
|
-
workspace,
|
|
264
|
-
requestBody,
|
|
265
|
-
}: {
|
|
266
|
-
workspace: string,
|
|
267
|
-
/**
|
|
268
|
-
* new app
|
|
269
|
-
*/
|
|
270
|
-
requestBody: {
|
|
271
|
-
path: string;
|
|
272
|
-
value: any;
|
|
273
|
-
summary: string;
|
|
274
|
-
policy: Policy;
|
|
275
|
-
draft_only?: boolean;
|
|
276
|
-
},
|
|
277
|
-
}): CancelablePromise<string> {
|
|
278
|
-
return __request(OpenAPI, {
|
|
279
|
-
method: 'POST',
|
|
280
|
-
url: '/w/{workspace}/apps/create',
|
|
281
|
-
path: {
|
|
282
|
-
'workspace': workspace,
|
|
283
|
-
},
|
|
284
|
-
body: requestBody,
|
|
285
|
-
mediaType: 'application/json',
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
|
|
289
289
|
/**
|
|
290
290
|
* delete app
|
|
291
291
|
* @returns string app deleted
|
|
@@ -358,6 +358,7 @@ export class AppService {
|
|
|
358
358
|
* update app
|
|
359
359
|
*/
|
|
360
360
|
requestBody: {
|
|
361
|
+
component: string;
|
|
361
362
|
path?: string;
|
|
362
363
|
args: any;
|
|
363
364
|
raw_code?: {
|
|
@@ -19,7 +19,7 @@ export class FavoriteService {
|
|
|
19
19
|
workspace: string,
|
|
20
20
|
requestBody?: {
|
|
21
21
|
path?: string;
|
|
22
|
-
favorite_kind?: 'flow' | 'app' | 'script';
|
|
22
|
+
favorite_kind?: 'flow' | 'app' | 'script' | 'raw_app';
|
|
23
23
|
},
|
|
24
24
|
}): CancelablePromise<any> {
|
|
25
25
|
return __request(OpenAPI, {
|
|
@@ -45,7 +45,7 @@ export class FavoriteService {
|
|
|
45
45
|
workspace: string,
|
|
46
46
|
requestBody?: {
|
|
47
47
|
path?: string;
|
|
48
|
-
favorite_kind?: 'flow' | 'app' | 'script';
|
|
48
|
+
favorite_kind?: 'flow' | 'app' | 'script' | 'raw_app';
|
|
49
49
|
},
|
|
50
50
|
}): CancelablePromise<any> {
|
|
51
51
|
return __request(OpenAPI, {
|
|
@@ -19,7 +19,7 @@ export class GranularAclService {
|
|
|
19
19
|
}: {
|
|
20
20
|
workspace: string,
|
|
21
21
|
path: string,
|
|
22
|
-
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app',
|
|
22
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app',
|
|
23
23
|
}): CancelablePromise<Record<string, boolean>> {
|
|
24
24
|
return __request(OpenAPI, {
|
|
25
25
|
method: 'GET',
|
|
@@ -45,7 +45,7 @@ export class GranularAclService {
|
|
|
45
45
|
}: {
|
|
46
46
|
workspace: string,
|
|
47
47
|
path: string,
|
|
48
|
-
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app',
|
|
48
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app',
|
|
49
49
|
/**
|
|
50
50
|
* acl to add
|
|
51
51
|
*/
|
|
@@ -80,7 +80,7 @@ export class GranularAclService {
|
|
|
80
80
|
}: {
|
|
81
81
|
workspace: string,
|
|
82
82
|
path: string,
|
|
83
|
-
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app',
|
|
83
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app',
|
|
84
84
|
/**
|
|
85
85
|
* acl to add
|
|
86
86
|
*/
|
|
@@ -883,6 +883,31 @@ export class JobService {
|
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
885
|
|
|
886
|
+
/**
|
|
887
|
+
* get completed job result if job is completed
|
|
888
|
+
* @returns any result
|
|
889
|
+
* @throws ApiError
|
|
890
|
+
*/
|
|
891
|
+
public static getCompletedJobResultMaybe({
|
|
892
|
+
workspace,
|
|
893
|
+
id,
|
|
894
|
+
}: {
|
|
895
|
+
workspace: string,
|
|
896
|
+
id: string,
|
|
897
|
+
}): CancelablePromise<{
|
|
898
|
+
completed: boolean;
|
|
899
|
+
result: any;
|
|
900
|
+
}> {
|
|
901
|
+
return __request(OpenAPI, {
|
|
902
|
+
method: 'GET',
|
|
903
|
+
url: '/w/{workspace}/jobs/completed/get_result_maybe/{id}',
|
|
904
|
+
path: {
|
|
905
|
+
'workspace': workspace,
|
|
906
|
+
'id': id,
|
|
907
|
+
},
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
|
|
886
911
|
/**
|
|
887
912
|
* delete completed job (erase content but keep run id)
|
|
888
913
|
* @returns CompletedJob job details
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { ListableRawApp } from '../models/ListableRawApp';
|
|
5
|
+
|
|
6
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
8
|
+
import { request as __request } from '../core/request';
|
|
9
|
+
|
|
10
|
+
export class RawAppService {
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* list all available raw apps
|
|
14
|
+
* @returns ListableRawApp All available raw apps
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
public static listRawApps({
|
|
18
|
+
workspace,
|
|
19
|
+
page,
|
|
20
|
+
perPage,
|
|
21
|
+
orderDesc,
|
|
22
|
+
createdBy,
|
|
23
|
+
pathStart,
|
|
24
|
+
pathExact,
|
|
25
|
+
starredOnly,
|
|
26
|
+
}: {
|
|
27
|
+
workspace: string,
|
|
28
|
+
/**
|
|
29
|
+
* which page to return (start at 1, default 1)
|
|
30
|
+
*/
|
|
31
|
+
page?: number,
|
|
32
|
+
/**
|
|
33
|
+
* number of items to return for a given page (default 30, max 100)
|
|
34
|
+
*/
|
|
35
|
+
perPage?: number,
|
|
36
|
+
/**
|
|
37
|
+
* order by desc order (default true)
|
|
38
|
+
*/
|
|
39
|
+
orderDesc?: boolean,
|
|
40
|
+
/**
|
|
41
|
+
* mask to filter exact matching user creator
|
|
42
|
+
*/
|
|
43
|
+
createdBy?: string,
|
|
44
|
+
/**
|
|
45
|
+
* mask to filter matching starting path
|
|
46
|
+
*/
|
|
47
|
+
pathStart?: string,
|
|
48
|
+
/**
|
|
49
|
+
* mask to filter exact matching path
|
|
50
|
+
*/
|
|
51
|
+
pathExact?: string,
|
|
52
|
+
/**
|
|
53
|
+
* (default false)
|
|
54
|
+
* show only the starred items
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
starredOnly?: boolean,
|
|
58
|
+
}): CancelablePromise<Array<ListableRawApp>> {
|
|
59
|
+
return __request(OpenAPI, {
|
|
60
|
+
method: 'GET',
|
|
61
|
+
url: '/w/{workspace}/raw_apps/list',
|
|
62
|
+
path: {
|
|
63
|
+
'workspace': workspace,
|
|
64
|
+
},
|
|
65
|
+
query: {
|
|
66
|
+
'page': page,
|
|
67
|
+
'per_page': perPage,
|
|
68
|
+
'order_desc': orderDesc,
|
|
69
|
+
'created_by': createdBy,
|
|
70
|
+
'path_start': pathStart,
|
|
71
|
+
'path_exact': pathExact,
|
|
72
|
+
'starred_only': starredOnly,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* does an app exisst at path
|
|
79
|
+
* @returns boolean app exists
|
|
80
|
+
* @throws ApiError
|
|
81
|
+
*/
|
|
82
|
+
public static existsRawApp({
|
|
83
|
+
workspace,
|
|
84
|
+
path,
|
|
85
|
+
}: {
|
|
86
|
+
workspace: string,
|
|
87
|
+
path: string,
|
|
88
|
+
}): CancelablePromise<boolean> {
|
|
89
|
+
return __request(OpenAPI, {
|
|
90
|
+
method: 'GET',
|
|
91
|
+
url: '/w/{workspace}/raw_apps/exists/{path}',
|
|
92
|
+
path: {
|
|
93
|
+
'workspace': workspace,
|
|
94
|
+
'path': path,
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* get app by path
|
|
101
|
+
* @returns string app details
|
|
102
|
+
* @throws ApiError
|
|
103
|
+
*/
|
|
104
|
+
public static getRawAppData({
|
|
105
|
+
workspace,
|
|
106
|
+
version,
|
|
107
|
+
path,
|
|
108
|
+
}: {
|
|
109
|
+
workspace: string,
|
|
110
|
+
version: number,
|
|
111
|
+
path: string,
|
|
112
|
+
}): CancelablePromise<string> {
|
|
113
|
+
return __request(OpenAPI, {
|
|
114
|
+
method: 'GET',
|
|
115
|
+
url: '/w/{workspace}/apps/get_data/{version}/{path}',
|
|
116
|
+
path: {
|
|
117
|
+
'workspace': workspace,
|
|
118
|
+
'version': version,
|
|
119
|
+
'path': path,
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* create raw app
|
|
126
|
+
* @returns string raw app created
|
|
127
|
+
* @throws ApiError
|
|
128
|
+
*/
|
|
129
|
+
public static createRawApp({
|
|
130
|
+
workspace,
|
|
131
|
+
requestBody,
|
|
132
|
+
}: {
|
|
133
|
+
workspace: string,
|
|
134
|
+
/**
|
|
135
|
+
* new raw app
|
|
136
|
+
*/
|
|
137
|
+
requestBody: {
|
|
138
|
+
path: string;
|
|
139
|
+
value: string;
|
|
140
|
+
summary: string;
|
|
141
|
+
},
|
|
142
|
+
}): CancelablePromise<string> {
|
|
143
|
+
return __request(OpenAPI, {
|
|
144
|
+
method: 'POST',
|
|
145
|
+
url: '/w/{workspace}/raw_apps/create',
|
|
146
|
+
path: {
|
|
147
|
+
'workspace': workspace,
|
|
148
|
+
},
|
|
149
|
+
body: requestBody,
|
|
150
|
+
mediaType: 'application/json',
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* update app
|
|
156
|
+
* @returns string app updated
|
|
157
|
+
* @throws ApiError
|
|
158
|
+
*/
|
|
159
|
+
public static updateRawApp({
|
|
160
|
+
workspace,
|
|
161
|
+
path,
|
|
162
|
+
requestBody,
|
|
163
|
+
}: {
|
|
164
|
+
workspace: string,
|
|
165
|
+
path: string,
|
|
166
|
+
/**
|
|
167
|
+
* updateraw app
|
|
168
|
+
*/
|
|
169
|
+
requestBody: {
|
|
170
|
+
path?: string;
|
|
171
|
+
summary?: string;
|
|
172
|
+
value?: string;
|
|
173
|
+
},
|
|
174
|
+
}): CancelablePromise<string> {
|
|
175
|
+
return __request(OpenAPI, {
|
|
176
|
+
method: 'POST',
|
|
177
|
+
url: '/w/{workspace}/raw_apps/update/{path}',
|
|
178
|
+
path: {
|
|
179
|
+
'workspace': workspace,
|
|
180
|
+
'path': path,
|
|
181
|
+
},
|
|
182
|
+
body: requestBody,
|
|
183
|
+
mediaType: 'application/json',
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* delete raw app
|
|
189
|
+
* @returns string app deleted
|
|
190
|
+
* @throws ApiError
|
|
191
|
+
*/
|
|
192
|
+
public static deleteRawApp({
|
|
193
|
+
workspace,
|
|
194
|
+
path,
|
|
195
|
+
}: {
|
|
196
|
+
workspace: string,
|
|
197
|
+
path: string,
|
|
198
|
+
}): CancelablePromise<string> {
|
|
199
|
+
return __request(OpenAPI, {
|
|
200
|
+
method: 'DELETE',
|
|
201
|
+
url: '/w/{workspace}/raw_apps/delete/{path}',
|
|
202
|
+
path: {
|
|
203
|
+
'workspace': workspace,
|
|
204
|
+
'path': path,
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
}
|