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 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, jobId, invisibleToOwner, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'POST',
|
|
15
12
|
url: '/w/{workspace}/jobs/run/p/{path}',
|
|
16
13
|
path: {
|
|
@@ -34,7 +31,7 @@ class JobService {
|
|
|
34
31
|
* @throws ApiError
|
|
35
32
|
*/
|
|
36
33
|
static openaiSyncScriptByPath({ workspace, path, requestBody, parentJob, jobId, includeHeader, queueLimit, }) {
|
|
37
|
-
return (
|
|
34
|
+
return __request(OpenAPI, {
|
|
38
35
|
method: 'POST',
|
|
39
36
|
url: '/w/{workspace}/jobs/openai_sync/p/{path}',
|
|
40
37
|
path: {
|
|
@@ -57,7 +54,7 @@ class JobService {
|
|
|
57
54
|
* @throws ApiError
|
|
58
55
|
*/
|
|
59
56
|
static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, jobId, includeHeader, queueLimit, }) {
|
|
60
|
-
return (
|
|
57
|
+
return __request(OpenAPI, {
|
|
61
58
|
method: 'POST',
|
|
62
59
|
url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
|
|
63
60
|
path: {
|
|
@@ -80,7 +77,7 @@ class JobService {
|
|
|
80
77
|
* @throws ApiError
|
|
81
78
|
*/
|
|
82
79
|
static runWaitResultScriptByPathGet({ workspace, path, parentJob, jobId, includeHeader, queueLimit, payload, }) {
|
|
83
|
-
return (
|
|
80
|
+
return __request(OpenAPI, {
|
|
84
81
|
method: 'GET',
|
|
85
82
|
url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
|
|
86
83
|
path: {
|
|
@@ -102,7 +99,7 @@ class JobService {
|
|
|
102
99
|
* @throws ApiError
|
|
103
100
|
*/
|
|
104
101
|
static openaiSyncFlowByPath({ workspace, path, requestBody, includeHeader, queueLimit, jobId, }) {
|
|
105
|
-
return (
|
|
102
|
+
return __request(OpenAPI, {
|
|
106
103
|
method: 'POST',
|
|
107
104
|
url: '/w/{workspace}/jobs/openai_sync/f/{path}',
|
|
108
105
|
path: {
|
|
@@ -124,7 +121,7 @@ class JobService {
|
|
|
124
121
|
* @throws ApiError
|
|
125
122
|
*/
|
|
126
123
|
static runWaitResultFlowByPath({ workspace, path, requestBody, includeHeader, queueLimit, jobId, }) {
|
|
127
|
-
return (
|
|
124
|
+
return __request(OpenAPI, {
|
|
128
125
|
method: 'POST',
|
|
129
126
|
url: '/w/{workspace}/jobs/run_wait_result/f/{path}',
|
|
130
127
|
path: {
|
|
@@ -146,7 +143,7 @@ class JobService {
|
|
|
146
143
|
* @throws ApiError
|
|
147
144
|
*/
|
|
148
145
|
static resultById({ workspace, flowJobId, nodeId, }) {
|
|
149
|
-
return (
|
|
146
|
+
return __request(OpenAPI, {
|
|
150
147
|
method: 'GET',
|
|
151
148
|
url: '/w/{workspace}/jobs/result_by_id/{flow_job_id}/{node_id}',
|
|
152
149
|
path: {
|
|
@@ -162,7 +159,7 @@ class JobService {
|
|
|
162
159
|
* @throws ApiError
|
|
163
160
|
*/
|
|
164
161
|
static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, includeHeader, invisibleToOwner, }) {
|
|
165
|
-
return (
|
|
162
|
+
return __request(OpenAPI, {
|
|
166
163
|
method: 'POST',
|
|
167
164
|
url: '/w/{workspace}/jobs/run/f/{path}',
|
|
168
165
|
path: {
|
|
@@ -187,7 +184,7 @@ class JobService {
|
|
|
187
184
|
* @throws ApiError
|
|
188
185
|
*/
|
|
189
186
|
static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, includeHeader, invisibleToOwner, }) {
|
|
190
|
-
return (
|
|
187
|
+
return __request(OpenAPI, {
|
|
191
188
|
method: 'POST',
|
|
192
189
|
url: '/w/{workspace}/jobs/run/h/{hash}',
|
|
193
190
|
path: {
|
|
@@ -212,7 +209,7 @@ class JobService {
|
|
|
212
209
|
* @throws ApiError
|
|
213
210
|
*/
|
|
214
211
|
static runScriptPreview({ workspace, requestBody, includeHeader, invisibleToOwner, jobId, }) {
|
|
215
|
-
return (
|
|
212
|
+
return __request(OpenAPI, {
|
|
216
213
|
method: 'POST',
|
|
217
214
|
url: '/w/{workspace}/jobs/run/preview',
|
|
218
215
|
path: {
|
|
@@ -233,7 +230,7 @@ class JobService {
|
|
|
233
230
|
* @throws ApiError
|
|
234
231
|
*/
|
|
235
232
|
static runFlowPreview({ workspace, requestBody, includeHeader, invisibleToOwner, jobId, }) {
|
|
236
|
-
return (
|
|
233
|
+
return __request(OpenAPI, {
|
|
237
234
|
method: 'POST',
|
|
238
235
|
url: '/w/{workspace}/jobs/run/preview_flow',
|
|
239
236
|
path: {
|
|
@@ -254,7 +251,7 @@ class JobService {
|
|
|
254
251
|
* @throws ApiError
|
|
255
252
|
*/
|
|
256
253
|
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, tag, }) {
|
|
257
|
-
return (
|
|
254
|
+
return __request(OpenAPI, {
|
|
258
255
|
method: 'GET',
|
|
259
256
|
url: '/w/{workspace}/jobs/queue/list',
|
|
260
257
|
path: {
|
|
@@ -286,7 +283,7 @@ class JobService {
|
|
|
286
283
|
* @throws ApiError
|
|
287
284
|
*/
|
|
288
285
|
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, }) {
|
|
289
|
-
return (
|
|
286
|
+
return __request(OpenAPI, {
|
|
290
287
|
method: 'GET',
|
|
291
288
|
url: '/w/{workspace}/jobs/completed/list',
|
|
292
289
|
path: {
|
|
@@ -318,7 +315,7 @@ class JobService {
|
|
|
318
315
|
* @throws ApiError
|
|
319
316
|
*/
|
|
320
317
|
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }) {
|
|
321
|
-
return (
|
|
318
|
+
return __request(OpenAPI, {
|
|
322
319
|
method: 'GET',
|
|
323
320
|
url: '/w/{workspace}/jobs/list',
|
|
324
321
|
path: {
|
|
@@ -349,7 +346,7 @@ class JobService {
|
|
|
349
346
|
* @throws ApiError
|
|
350
347
|
*/
|
|
351
348
|
static getJob({ workspace, id, }) {
|
|
352
|
-
return (
|
|
349
|
+
return __request(OpenAPI, {
|
|
353
350
|
method: 'GET',
|
|
354
351
|
url: '/w/{workspace}/jobs_u/get/{id}',
|
|
355
352
|
path: {
|
|
@@ -364,7 +361,7 @@ class JobService {
|
|
|
364
361
|
* @throws ApiError
|
|
365
362
|
*/
|
|
366
363
|
static getJobLogs({ workspace, id, }) {
|
|
367
|
-
return (
|
|
364
|
+
return __request(OpenAPI, {
|
|
368
365
|
method: 'GET',
|
|
369
366
|
url: '/w/{workspace}/jobs_u/get_logs/{id}',
|
|
370
367
|
path: {
|
|
@@ -379,7 +376,7 @@ class JobService {
|
|
|
379
376
|
* @throws ApiError
|
|
380
377
|
*/
|
|
381
378
|
static getJobUpdates({ workspace, id, running, logOffset, }) {
|
|
382
|
-
return (
|
|
379
|
+
return __request(OpenAPI, {
|
|
383
380
|
method: 'GET',
|
|
384
381
|
url: '/w/{workspace}/jobs_u/getupdate/{id}',
|
|
385
382
|
path: {
|
|
@@ -398,7 +395,7 @@ class JobService {
|
|
|
398
395
|
* @throws ApiError
|
|
399
396
|
*/
|
|
400
397
|
static getCompletedJob({ workspace, id, }) {
|
|
401
|
-
return (
|
|
398
|
+
return __request(OpenAPI, {
|
|
402
399
|
method: 'GET',
|
|
403
400
|
url: '/w/{workspace}/jobs_u/completed/get/{id}',
|
|
404
401
|
path: {
|
|
@@ -413,7 +410,7 @@ class JobService {
|
|
|
413
410
|
* @throws ApiError
|
|
414
411
|
*/
|
|
415
412
|
static getCompletedJobResult({ workspace, id, }) {
|
|
416
|
-
return (
|
|
413
|
+
return __request(OpenAPI, {
|
|
417
414
|
method: 'GET',
|
|
418
415
|
url: '/w/{workspace}/jobs_u/completed/get_result/{id}',
|
|
419
416
|
path: {
|
|
@@ -428,7 +425,7 @@ class JobService {
|
|
|
428
425
|
* @throws ApiError
|
|
429
426
|
*/
|
|
430
427
|
static getCompletedJobResultMaybe({ workspace, id, }) {
|
|
431
|
-
return (
|
|
428
|
+
return __request(OpenAPI, {
|
|
432
429
|
method: 'GET',
|
|
433
430
|
url: '/w/{workspace}/jobs_u/completed/get_result_maybe/{id}',
|
|
434
431
|
path: {
|
|
@@ -443,7 +440,7 @@ class JobService {
|
|
|
443
440
|
* @throws ApiError
|
|
444
441
|
*/
|
|
445
442
|
static deleteCompletedJob({ workspace, id, }) {
|
|
446
|
-
return (
|
|
443
|
+
return __request(OpenAPI, {
|
|
447
444
|
method: 'POST',
|
|
448
445
|
url: '/w/{workspace}/jobs/completed/delete/{id}',
|
|
449
446
|
path: {
|
|
@@ -458,7 +455,7 @@ class JobService {
|
|
|
458
455
|
* @throws ApiError
|
|
459
456
|
*/
|
|
460
457
|
static cancelQueuedJob({ workspace, id, requestBody, }) {
|
|
461
|
-
return (
|
|
458
|
+
return __request(OpenAPI, {
|
|
462
459
|
method: 'POST',
|
|
463
460
|
url: '/w/{workspace}/jobs_u/queue/cancel/{id}',
|
|
464
461
|
path: {
|
|
@@ -475,7 +472,7 @@ class JobService {
|
|
|
475
472
|
* @throws ApiError
|
|
476
473
|
*/
|
|
477
474
|
static forceCancelQueuedJob({ workspace, id, requestBody, }) {
|
|
478
|
-
return (
|
|
475
|
+
return __request(OpenAPI, {
|
|
479
476
|
method: 'POST',
|
|
480
477
|
url: '/w/{workspace}/jobs_u/queue/force_cancel/{id}',
|
|
481
478
|
path: {
|
|
@@ -492,7 +489,7 @@ class JobService {
|
|
|
492
489
|
* @throws ApiError
|
|
493
490
|
*/
|
|
494
491
|
static createJobSignature({ workspace, id, resumeId, approver, }) {
|
|
495
|
-
return (
|
|
492
|
+
return __request(OpenAPI, {
|
|
496
493
|
method: 'GET',
|
|
497
494
|
url: '/w/{workspace}/jobs/job_signature/{id}/{resume_id}',
|
|
498
495
|
path: {
|
|
@@ -511,7 +508,7 @@ class JobService {
|
|
|
511
508
|
* @throws ApiError
|
|
512
509
|
*/
|
|
513
510
|
static getResumeUrls({ workspace, id, resumeId, approver, }) {
|
|
514
|
-
return (
|
|
511
|
+
return __request(OpenAPI, {
|
|
515
512
|
method: 'GET',
|
|
516
513
|
url: '/w/{workspace}/jobs/resume_urls/{id}/{resume_id}',
|
|
517
514
|
path: {
|
|
@@ -530,7 +527,7 @@ class JobService {
|
|
|
530
527
|
* @throws ApiError
|
|
531
528
|
*/
|
|
532
529
|
static resumeSuspendedJobGet({ workspace, id, resumeId, signature, payload, approver, }) {
|
|
533
|
-
return (
|
|
530
|
+
return __request(OpenAPI, {
|
|
534
531
|
method: 'GET',
|
|
535
532
|
url: '/w/{workspace}/jobs_u/resume/{id}/{resume_id}/{signature}',
|
|
536
533
|
path: {
|
|
@@ -551,7 +548,7 @@ class JobService {
|
|
|
551
548
|
* @throws ApiError
|
|
552
549
|
*/
|
|
553
550
|
static resumeSuspendedJobPost({ workspace, id, resumeId, signature, requestBody, approver, }) {
|
|
554
|
-
return (
|
|
551
|
+
return __request(OpenAPI, {
|
|
555
552
|
method: 'POST',
|
|
556
553
|
url: '/w/{workspace}/jobs_u/resume/{id}/{resume_id}/{signature}',
|
|
557
554
|
path: {
|
|
@@ -573,7 +570,7 @@ class JobService {
|
|
|
573
570
|
* @throws ApiError
|
|
574
571
|
*/
|
|
575
572
|
static resumeSuspendedFlowAsOwner({ workspace, id, requestBody, }) {
|
|
576
|
-
return (
|
|
573
|
+
return __request(OpenAPI, {
|
|
577
574
|
method: 'POST',
|
|
578
575
|
url: '/w/{workspace}/jobs/flow/resume/{id}',
|
|
579
576
|
path: {
|
|
@@ -590,7 +587,7 @@ class JobService {
|
|
|
590
587
|
* @throws ApiError
|
|
591
588
|
*/
|
|
592
589
|
static cancelSuspendedJobGet({ workspace, id, resumeId, signature, approver, }) {
|
|
593
|
-
return (
|
|
590
|
+
return __request(OpenAPI, {
|
|
594
591
|
method: 'GET',
|
|
595
592
|
url: '/w/{workspace}/jobs_u/cancel/{id}/{resume_id}/{signature}',
|
|
596
593
|
path: {
|
|
@@ -610,7 +607,7 @@ class JobService {
|
|
|
610
607
|
* @throws ApiError
|
|
611
608
|
*/
|
|
612
609
|
static cancelSuspendedJobPost({ workspace, id, resumeId, signature, requestBody, approver, }) {
|
|
613
|
-
return (
|
|
610
|
+
return __request(OpenAPI, {
|
|
614
611
|
method: 'POST',
|
|
615
612
|
url: '/w/{workspace}/jobs_u/cancel/{id}/{resume_id}/{signature}',
|
|
616
613
|
path: {
|
|
@@ -632,7 +629,7 @@ class JobService {
|
|
|
632
629
|
* @throws ApiError
|
|
633
630
|
*/
|
|
634
631
|
static getSuspendedJobFlow({ workspace, id, resumeId, signature, approver, }) {
|
|
635
|
-
return (
|
|
632
|
+
return __request(OpenAPI, {
|
|
636
633
|
method: 'GET',
|
|
637
634
|
url: '/w/{workspace}/jobs_u/get_flow/{id}/{resume_id}/{signature}',
|
|
638
635
|
path: {
|
|
@@ -647,4 +644,3 @@ class JobService {
|
|
|
647
644
|
});
|
|
648
645
|
}
|
|
649
646
|
}
|
|
650
|
-
exports.JobService = JobService;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class OauthService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class OauthService {
|
|
7
4
|
/**
|
|
8
5
|
* connect slack callback
|
|
9
6
|
* @returns string slack token
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static connectSlackCallback({ workspace, requestBody, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'POST',
|
|
15
12
|
url: '/w/{workspace}/oauth/connect_slack_callback',
|
|
16
13
|
path: {
|
|
@@ -26,7 +23,7 @@ class OauthService {
|
|
|
26
23
|
* @throws ApiError
|
|
27
24
|
*/
|
|
28
25
|
static connectCallback({ clientName, requestBody, }) {
|
|
29
|
-
return (
|
|
26
|
+
return __request(OpenAPI, {
|
|
30
27
|
method: 'POST',
|
|
31
28
|
url: '/oauth/connect_callback/{client_name}',
|
|
32
29
|
path: {
|
|
@@ -42,7 +39,7 @@ class OauthService {
|
|
|
42
39
|
* @throws ApiError
|
|
43
40
|
*/
|
|
44
41
|
static createAccount({ workspace, requestBody, }) {
|
|
45
|
-
return (
|
|
42
|
+
return __request(OpenAPI, {
|
|
46
43
|
method: 'POST',
|
|
47
44
|
url: '/w/{workspace}/oauth/create_account',
|
|
48
45
|
path: {
|
|
@@ -58,7 +55,7 @@ class OauthService {
|
|
|
58
55
|
* @throws ApiError
|
|
59
56
|
*/
|
|
60
57
|
static refreshToken({ workspace, id, requestBody, }) {
|
|
61
|
-
return (
|
|
58
|
+
return __request(OpenAPI, {
|
|
62
59
|
method: 'POST',
|
|
63
60
|
url: '/w/{workspace}/oauth/refresh_token/{id}',
|
|
64
61
|
path: {
|
|
@@ -75,7 +72,7 @@ class OauthService {
|
|
|
75
72
|
* @throws ApiError
|
|
76
73
|
*/
|
|
77
74
|
static disconnectAccount({ workspace, id, }) {
|
|
78
|
-
return (
|
|
75
|
+
return __request(OpenAPI, {
|
|
79
76
|
method: 'POST',
|
|
80
77
|
url: '/w/{workspace}/oauth/disconnect/{id}',
|
|
81
78
|
path: {
|
|
@@ -90,7 +87,7 @@ class OauthService {
|
|
|
90
87
|
* @throws ApiError
|
|
91
88
|
*/
|
|
92
89
|
static disconnectSlack({ workspace, }) {
|
|
93
|
-
return (
|
|
90
|
+
return __request(OpenAPI, {
|
|
94
91
|
method: 'POST',
|
|
95
92
|
url: '/w/{workspace}/oauth/disconnect_slack',
|
|
96
93
|
path: {
|
|
@@ -104,7 +101,7 @@ class OauthService {
|
|
|
104
101
|
* @throws ApiError
|
|
105
102
|
*/
|
|
106
103
|
static listOAuthLogins() {
|
|
107
|
-
return (
|
|
104
|
+
return __request(OpenAPI, {
|
|
108
105
|
method: 'GET',
|
|
109
106
|
url: '/oauth/list_logins',
|
|
110
107
|
});
|
|
@@ -115,10 +112,9 @@ class OauthService {
|
|
|
115
112
|
* @throws ApiError
|
|
116
113
|
*/
|
|
117
114
|
static listOAuthConnects() {
|
|
118
|
-
return (
|
|
115
|
+
return __request(OpenAPI, {
|
|
119
116
|
method: 'GET',
|
|
120
117
|
url: '/oauth/list_connects',
|
|
121
118
|
});
|
|
122
119
|
}
|
|
123
120
|
}
|
|
124
|
-
exports.OauthService = OauthService;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class RawAppService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class RawAppService {
|
|
7
4
|
/**
|
|
8
5
|
* list all available raw apps
|
|
9
6
|
* @returns ListableRawApp All available raw apps
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static listRawApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'GET',
|
|
15
12
|
url: '/w/{workspace}/raw_apps/list',
|
|
16
13
|
path: {
|
|
@@ -33,7 +30,7 @@ class RawAppService {
|
|
|
33
30
|
* @throws ApiError
|
|
34
31
|
*/
|
|
35
32
|
static existsRawApp({ workspace, path, }) {
|
|
36
|
-
return (
|
|
33
|
+
return __request(OpenAPI, {
|
|
37
34
|
method: 'GET',
|
|
38
35
|
url: '/w/{workspace}/raw_apps/exists/{path}',
|
|
39
36
|
path: {
|
|
@@ -48,7 +45,7 @@ class RawAppService {
|
|
|
48
45
|
* @throws ApiError
|
|
49
46
|
*/
|
|
50
47
|
static getRawAppData({ workspace, version, path, }) {
|
|
51
|
-
return (
|
|
48
|
+
return __request(OpenAPI, {
|
|
52
49
|
method: 'GET',
|
|
53
50
|
url: '/w/{workspace}/apps/get_data/{version}/{path}',
|
|
54
51
|
path: {
|
|
@@ -64,7 +61,7 @@ class RawAppService {
|
|
|
64
61
|
* @throws ApiError
|
|
65
62
|
*/
|
|
66
63
|
static createRawApp({ workspace, requestBody, }) {
|
|
67
|
-
return (
|
|
64
|
+
return __request(OpenAPI, {
|
|
68
65
|
method: 'POST',
|
|
69
66
|
url: '/w/{workspace}/raw_apps/create',
|
|
70
67
|
path: {
|
|
@@ -80,7 +77,7 @@ class RawAppService {
|
|
|
80
77
|
* @throws ApiError
|
|
81
78
|
*/
|
|
82
79
|
static updateRawApp({ workspace, path, requestBody, }) {
|
|
83
|
-
return (
|
|
80
|
+
return __request(OpenAPI, {
|
|
84
81
|
method: 'POST',
|
|
85
82
|
url: '/w/{workspace}/raw_apps/update/{path}',
|
|
86
83
|
path: {
|
|
@@ -97,7 +94,7 @@ class RawAppService {
|
|
|
97
94
|
* @throws ApiError
|
|
98
95
|
*/
|
|
99
96
|
static deleteRawApp({ workspace, path, }) {
|
|
100
|
-
return (
|
|
97
|
+
return __request(OpenAPI, {
|
|
101
98
|
method: 'DELETE',
|
|
102
99
|
url: '/w/{workspace}/raw_apps/delete/{path}',
|
|
103
100
|
path: {
|
|
@@ -107,4 +104,3 @@ class RawAppService {
|
|
|
107
104
|
});
|
|
108
105
|
}
|
|
109
106
|
}
|
|
110
|
-
exports.RawAppService = RawAppService;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class ResourceService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class ResourceService {
|
|
7
4
|
/**
|
|
8
5
|
* create resource
|
|
9
6
|
* @returns string resource created
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static createResource({ workspace, requestBody, updateIfExists, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'POST',
|
|
15
12
|
url: '/w/{workspace}/resources/create',
|
|
16
13
|
path: {
|
|
@@ -29,7 +26,7 @@ class ResourceService {
|
|
|
29
26
|
* @throws ApiError
|
|
30
27
|
*/
|
|
31
28
|
static deleteResource({ workspace, path, }) {
|
|
32
|
-
return (
|
|
29
|
+
return __request(OpenAPI, {
|
|
33
30
|
method: 'DELETE',
|
|
34
31
|
url: '/w/{workspace}/resources/delete/{path}',
|
|
35
32
|
path: {
|
|
@@ -44,7 +41,7 @@ class ResourceService {
|
|
|
44
41
|
* @throws ApiError
|
|
45
42
|
*/
|
|
46
43
|
static updateResource({ workspace, path, requestBody, }) {
|
|
47
|
-
return (
|
|
44
|
+
return __request(OpenAPI, {
|
|
48
45
|
method: 'POST',
|
|
49
46
|
url: '/w/{workspace}/resources/update/{path}',
|
|
50
47
|
path: {
|
|
@@ -61,7 +58,7 @@ class ResourceService {
|
|
|
61
58
|
* @throws ApiError
|
|
62
59
|
*/
|
|
63
60
|
static updateResourceValue({ workspace, path, requestBody, }) {
|
|
64
|
-
return (
|
|
61
|
+
return __request(OpenAPI, {
|
|
65
62
|
method: 'POST',
|
|
66
63
|
url: '/w/{workspace}/resources/update_value/{path}',
|
|
67
64
|
path: {
|
|
@@ -78,7 +75,7 @@ class ResourceService {
|
|
|
78
75
|
* @throws ApiError
|
|
79
76
|
*/
|
|
80
77
|
static getResource({ workspace, path, }) {
|
|
81
|
-
return (
|
|
78
|
+
return __request(OpenAPI, {
|
|
82
79
|
method: 'GET',
|
|
83
80
|
url: '/w/{workspace}/resources/get/{path}',
|
|
84
81
|
path: {
|
|
@@ -93,7 +90,7 @@ class ResourceService {
|
|
|
93
90
|
* @throws ApiError
|
|
94
91
|
*/
|
|
95
92
|
static getResourceValue({ workspace, path, }) {
|
|
96
|
-
return (
|
|
93
|
+
return __request(OpenAPI, {
|
|
97
94
|
method: 'GET',
|
|
98
95
|
url: '/w/{workspace}/resources/get_value/{path}',
|
|
99
96
|
path: {
|
|
@@ -108,7 +105,7 @@ class ResourceService {
|
|
|
108
105
|
* @throws ApiError
|
|
109
106
|
*/
|
|
110
107
|
static existsResource({ workspace, path, }) {
|
|
111
|
-
return (
|
|
108
|
+
return __request(OpenAPI, {
|
|
112
109
|
method: 'GET',
|
|
113
110
|
url: '/w/{workspace}/resources/exists/{path}',
|
|
114
111
|
path: {
|
|
@@ -123,7 +120,7 @@ class ResourceService {
|
|
|
123
120
|
* @throws ApiError
|
|
124
121
|
*/
|
|
125
122
|
static listResource({ workspace, page, perPage, resourceType, resourceTypeExclude, }) {
|
|
126
|
-
return (
|
|
123
|
+
return __request(OpenAPI, {
|
|
127
124
|
method: 'GET',
|
|
128
125
|
url: '/w/{workspace}/resources/list',
|
|
129
126
|
path: {
|
|
@@ -143,7 +140,7 @@ class ResourceService {
|
|
|
143
140
|
* @throws ApiError
|
|
144
141
|
*/
|
|
145
142
|
static createResourceType({ workspace, requestBody, }) {
|
|
146
|
-
return (
|
|
143
|
+
return __request(OpenAPI, {
|
|
147
144
|
method: 'POST',
|
|
148
145
|
url: '/w/{workspace}/resources/type/create',
|
|
149
146
|
path: {
|
|
@@ -159,7 +156,7 @@ class ResourceService {
|
|
|
159
156
|
* @throws ApiError
|
|
160
157
|
*/
|
|
161
158
|
static deleteResourceType({ workspace, path, }) {
|
|
162
|
-
return (
|
|
159
|
+
return __request(OpenAPI, {
|
|
163
160
|
method: 'DELETE',
|
|
164
161
|
url: '/w/{workspace}/resources/type/delete/{path}',
|
|
165
162
|
path: {
|
|
@@ -174,7 +171,7 @@ class ResourceService {
|
|
|
174
171
|
* @throws ApiError
|
|
175
172
|
*/
|
|
176
173
|
static updateResourceType({ workspace, path, requestBody, }) {
|
|
177
|
-
return (
|
|
174
|
+
return __request(OpenAPI, {
|
|
178
175
|
method: 'POST',
|
|
179
176
|
url: '/w/{workspace}/resources/type/update/{path}',
|
|
180
177
|
path: {
|
|
@@ -191,7 +188,7 @@ class ResourceService {
|
|
|
191
188
|
* @throws ApiError
|
|
192
189
|
*/
|
|
193
190
|
static getResourceType({ workspace, path, }) {
|
|
194
|
-
return (
|
|
191
|
+
return __request(OpenAPI, {
|
|
195
192
|
method: 'GET',
|
|
196
193
|
url: '/w/{workspace}/resources/type/get/{path}',
|
|
197
194
|
path: {
|
|
@@ -206,7 +203,7 @@ class ResourceService {
|
|
|
206
203
|
* @throws ApiError
|
|
207
204
|
*/
|
|
208
205
|
static existsResourceType({ workspace, path, }) {
|
|
209
|
-
return (
|
|
206
|
+
return __request(OpenAPI, {
|
|
210
207
|
method: 'GET',
|
|
211
208
|
url: '/w/{workspace}/resources/type/exists/{path}',
|
|
212
209
|
path: {
|
|
@@ -221,7 +218,7 @@ class ResourceService {
|
|
|
221
218
|
* @throws ApiError
|
|
222
219
|
*/
|
|
223
220
|
static listResourceType({ workspace, }) {
|
|
224
|
-
return (
|
|
221
|
+
return __request(OpenAPI, {
|
|
225
222
|
method: 'GET',
|
|
226
223
|
url: '/w/{workspace}/resources/type/list',
|
|
227
224
|
path: {
|
|
@@ -235,7 +232,7 @@ class ResourceService {
|
|
|
235
232
|
* @throws ApiError
|
|
236
233
|
*/
|
|
237
234
|
static listResourceTypeNames({ workspace, }) {
|
|
238
|
-
return (
|
|
235
|
+
return __request(OpenAPI, {
|
|
239
236
|
method: 'GET',
|
|
240
237
|
url: '/w/{workspace}/resources/type/listnames',
|
|
241
238
|
path: {
|
|
@@ -244,4 +241,3 @@ class ResourceService {
|
|
|
244
241
|
});
|
|
245
242
|
}
|
|
246
243
|
}
|
|
247
|
-
exports.ResourceService = ResourceService;
|