windmill-client 0.2.1 → 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/OpenAPI.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/models/ListableRawApp.d.ts +9 -0
- package/dist/models/ListableRawApp.js +5 -0
- package/dist/services/AppService.d.ts +19 -18
- package/dist/services/AppService.js +16 -16
- package/dist/services/FavoriteService.d.ts +2 -2
- package/dist/services/GranularAclService.d.ts +3 -3
- package/dist/services/JobService.d.ts +12 -0
- package/dist/services/JobService.js +15 -0
- package/dist/services/RawAppService.d.ts +103 -0
- package/dist/services/RawAppService.js +110 -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/src/core/ApiError.d.ts +0 -10
- package/src/core/ApiRequestOptions.d.ts +0 -13
- package/src/core/ApiResult.d.ts +0 -7
- package/src/core/CancelablePromise.d.ts +0 -26
- package/src/core/OpenAPI.d.ts +0 -16
- package/src/core/request.d.ts +0 -13
- package/src/models/AppWithLastVersion.d.ts +0 -21
- package/src/models/AppWithLastVersionWDraft.d.ts +0 -5
- package/src/models/AuditLog.d.ts +0 -32
- package/src/models/BranchAll.d.ts +0 -10
- package/src/models/BranchOne.d.ts +0 -10
- package/src/models/CompletedJob.d.ts +0 -57
- package/src/models/ContextualVariable.d.ts +0 -5
- package/src/models/CreateInput.d.ts +0 -4
- package/src/models/CreateResource.d.ts +0 -6
- package/src/models/CreateVariable.d.ts +0 -8
- package/src/models/CreateWorkspace.d.ts +0 -5
- package/src/models/EditResource.d.ts +0 -5
- package/src/models/EditResourceType.d.ts +0 -4
- package/src/models/EditSchedule.d.ts +0 -6
- package/src/models/EditVariable.d.ts +0 -6
- package/src/models/EditWorkspaceUser.d.ts +0 -5
- package/src/models/Flow.d.ts +0 -3
- package/src/models/FlowMetadata.d.ts +0 -11
- package/src/models/FlowModule.d.ts +0 -18
- package/src/models/FlowModuleValue.d.ts +0 -8
- package/src/models/FlowPreview.d.ts +0 -7
- package/src/models/FlowStatus.d.ts +0 -12
- package/src/models/FlowStatusModule.d.ts +0 -34
- package/src/models/FlowValue.d.ts +0 -6
- package/src/models/Folder.d.ts +0 -5
- package/src/models/ForloopFlow.d.ts +0 -9
- package/src/models/GlobalUserInfo.d.ts +0 -14
- package/src/models/Group.d.ts +0 -6
- package/src/models/Identity.d.ts +0 -4
- package/src/models/Input.d.ts +0 -8
- package/src/models/InputTransform.d.ts +0 -3
- package/src/models/JavascriptTransform.d.ts +0 -4
- package/src/models/Job.d.ts +0 -11
- package/src/models/ListableApp.d.ts +0 -18
- package/src/models/ListableResource.d.ts +0 -14
- package/src/models/ListableVariable.d.ts +0 -14
- package/src/models/Login.d.ts +0 -4
- package/src/models/MainArgSignature.d.ts +0 -33
- package/src/models/NewSchedule.d.ts +0 -10
- package/src/models/NewScript.d.ts +0 -29
- package/src/models/NewScriptWithDraft.d.ts +0 -5
- package/src/models/NewToken.d.ts +0 -4
- package/src/models/NewTokenImpersonate.d.ts +0 -5
- package/src/models/NewUser.d.ts +0 -5
- package/src/models/OpenFlow.d.ts +0 -7
- package/src/models/OpenFlowWPath.d.ts +0 -4
- package/src/models/PathFlow.d.ts +0 -6
- package/src/models/PathScript.d.ts +0 -7
- package/src/models/Policy.d.ts +0 -13
- package/src/models/Preview.d.ts +0 -16
- package/src/models/QueuedJob.d.ts +0 -55
- package/src/models/RawScript.d.ts +0 -18
- package/src/models/Resource.d.ts +0 -9
- package/src/models/ResourceType.d.ts +0 -6
- package/src/models/Retry.d.ts +0 -11
- package/src/models/RunnableType.d.ts +0 -5
- package/src/models/Schedule.d.ts +0 -15
- package/src/models/Script.d.ts +0 -43
- package/src/models/ScriptArgs.d.ts +0 -1
- package/src/models/SlackToken.d.ts +0 -8
- package/src/models/StaticTransform.d.ts +0 -4
- package/src/models/TokenResponse.d.ts +0 -6
- package/src/models/TruncatedToken.d.ts +0 -7
- package/src/models/UpdateInput.d.ts +0 -5
- package/src/models/Usage.d.ts +0 -3
- package/src/models/User.d.ts +0 -14
- package/src/models/UserWorkspaceList.d.ts +0 -8
- package/src/models/WorkerPing.d.ts +0 -8
- package/src/models/Workspace.d.ts +0 -6
- package/src/models/WorkspaceInvite.d.ts +0 -6
- package/src/services/AdminService.d.ts +0 -39
- package/src/services/AppService.d.ts +0 -194
- package/src/services/AuditService.d.ts +0 -53
- package/src/services/CaptureService.d.ts +0 -30
- package/src/services/DraftService.d.ts +0 -16
- package/src/services/FavoriteService.d.ts +0 -27
- package/src/services/FlowService.d.ts +0 -186
- package/src/services/FolderService.d.ts +0 -128
- package/src/services/GranularAclService.d.ts +0 -46
- package/src/services/GroupService.d.ts +0 -110
- package/src/services/InputService.d.ts +0 -78
- package/src/services/JobService.d.ts +0 -636
- package/src/services/OauthService.d.ts +0 -95
- package/src/services/ResourceService.d.ts +0 -177
- package/src/services/ScheduleService.d.ts +0 -103
- package/src/services/ScriptService.d.ts +0 -303
- package/src/services/SettingsService.d.ts +0 -15
- package/src/services/UserService.d.ts +0 -284
- package/src/services/VariableService.d.ts +0 -83
- package/src/services/WorkerService.d.ts +0 -25
- package/src/services/WorkspaceService.d.ts +0 -227
package/build.sh
CHANGED
package/dist/core/OpenAPI.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export type { InputTransform } from './models/InputTransform';
|
|
|
36
36
|
export type { JavascriptTransform } from './models/JavascriptTransform';
|
|
37
37
|
export { Job } from './models/Job';
|
|
38
38
|
export { ListableApp } from './models/ListableApp';
|
|
39
|
+
export type { ListableRawApp } from './models/ListableRawApp';
|
|
39
40
|
export type { ListableResource } from './models/ListableResource';
|
|
40
41
|
export type { ListableVariable } from './models/ListableVariable';
|
|
41
42
|
export type { Login } from './models/Login';
|
|
@@ -85,6 +86,7 @@ export { GroupService } from './services/GroupService';
|
|
|
85
86
|
export { InputService } from './services/InputService';
|
|
86
87
|
export { JobService } from './services/JobService';
|
|
87
88
|
export { OauthService } from './services/OauthService';
|
|
89
|
+
export { RawAppService } from './services/RawAppService';
|
|
88
90
|
export { ResourceService } from './services/ResourceService';
|
|
89
91
|
export { ScheduleService } from './services/ScheduleService';
|
|
90
92
|
export { ScriptService } from './services/ScriptService';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkspaceService = exports.WorkerService = exports.VariableService = exports.UserService = exports.SettingsService = exports.ScriptService = exports.ScheduleService = exports.ResourceService = exports.OauthService = exports.JobService = exports.InputService = exports.GroupService = exports.GranularAclService = exports.FolderService = exports.FlowService = exports.FavoriteService = exports.DraftService = exports.CaptureService = exports.AuditService = exports.AppService = exports.AdminService = exports.Script = exports.RunnableType = exports.RawScript = exports.QueuedJob = exports.Preview = exports.Policy = exports.NewScript = exports.MainArgSignature = exports.ListableApp = exports.Job = exports.GlobalUserInfo = exports.FlowStatusModule = exports.CompletedJob = exports.AuditLog = exports.AppWithLastVersion = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
3
|
+
exports.WorkspaceService = exports.WorkerService = exports.VariableService = exports.UserService = exports.SettingsService = exports.ScriptService = exports.ScheduleService = exports.ResourceService = exports.RawAppService = exports.OauthService = exports.JobService = exports.InputService = exports.GroupService = exports.GranularAclService = exports.FolderService = exports.FlowService = exports.FavoriteService = exports.DraftService = exports.CaptureService = exports.AuditService = exports.AppService = exports.AdminService = exports.Script = exports.RunnableType = exports.RawScript = exports.QueuedJob = exports.Preview = exports.Policy = exports.NewScript = exports.MainArgSignature = exports.ListableApp = exports.Job = exports.GlobalUserInfo = exports.FlowStatusModule = exports.CompletedJob = exports.AuditLog = exports.AppWithLastVersion = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
4
4
|
/* istanbul ignore file */
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
@@ -67,6 +67,8 @@ var JobService_1 = require("./services/JobService");
|
|
|
67
67
|
Object.defineProperty(exports, "JobService", { enumerable: true, get: function () { return JobService_1.JobService; } });
|
|
68
68
|
var OauthService_1 = require("./services/OauthService");
|
|
69
69
|
Object.defineProperty(exports, "OauthService", { enumerable: true, get: function () { return OauthService_1.OauthService; } });
|
|
70
|
+
var RawAppService_1 = require("./services/RawAppService");
|
|
71
|
+
Object.defineProperty(exports, "RawAppService", { enumerable: true, get: function () { return RawAppService_1.RawAppService; } });
|
|
70
72
|
var ResourceService_1 = require("./services/ResourceService");
|
|
71
73
|
Object.defineProperty(exports, "ResourceService", { enumerable: true, get: function () { return ResourceService_1.ResourceService; } });
|
|
72
74
|
var ScheduleService_1 = require("./services/ScheduleService");
|
|
@@ -70,6 +70,24 @@ export declare class AppService {
|
|
|
70
70
|
*/
|
|
71
71
|
starredOnly?: boolean;
|
|
72
72
|
}): CancelablePromise<Array<ListableApp>>;
|
|
73
|
+
/**
|
|
74
|
+
* create app
|
|
75
|
+
* @returns string app created
|
|
76
|
+
* @throws ApiError
|
|
77
|
+
*/
|
|
78
|
+
static createApp({ workspace, requestBody, }: {
|
|
79
|
+
workspace: string;
|
|
80
|
+
/**
|
|
81
|
+
* new app
|
|
82
|
+
*/
|
|
83
|
+
requestBody: {
|
|
84
|
+
path: string;
|
|
85
|
+
value: any;
|
|
86
|
+
summary: string;
|
|
87
|
+
policy: Policy;
|
|
88
|
+
draft_only?: boolean;
|
|
89
|
+
};
|
|
90
|
+
}): CancelablePromise<string>;
|
|
73
91
|
/**
|
|
74
92
|
* does an app exisst at path
|
|
75
93
|
* @returns boolean app exists
|
|
@@ -124,24 +142,6 @@ export declare class AppService {
|
|
|
124
142
|
workspace: string;
|
|
125
143
|
id: number;
|
|
126
144
|
}): CancelablePromise<AppWithLastVersion>;
|
|
127
|
-
/**
|
|
128
|
-
* create app
|
|
129
|
-
* @returns string app created
|
|
130
|
-
* @throws ApiError
|
|
131
|
-
*/
|
|
132
|
-
static createApp({ workspace, requestBody, }: {
|
|
133
|
-
workspace: string;
|
|
134
|
-
/**
|
|
135
|
-
* new app
|
|
136
|
-
*/
|
|
137
|
-
requestBody: {
|
|
138
|
-
path: string;
|
|
139
|
-
value: any;
|
|
140
|
-
summary: string;
|
|
141
|
-
policy: Policy;
|
|
142
|
-
draft_only?: boolean;
|
|
143
|
-
};
|
|
144
|
-
}): CancelablePromise<string>;
|
|
145
145
|
/**
|
|
146
146
|
* delete app
|
|
147
147
|
* @returns string app deleted
|
|
@@ -181,6 +181,7 @@ export declare class AppService {
|
|
|
181
181
|
* update app
|
|
182
182
|
*/
|
|
183
183
|
requestBody: {
|
|
184
|
+
component: string;
|
|
184
185
|
path?: string;
|
|
185
186
|
args: any;
|
|
186
187
|
raw_code?: {
|
|
@@ -52,6 +52,22 @@ class AppService {
|
|
|
52
52
|
},
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* create app
|
|
57
|
+
* @returns string app created
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
static createApp({ workspace, requestBody, }) {
|
|
61
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
|
+
method: 'POST',
|
|
63
|
+
url: '/w/{workspace}/apps/create',
|
|
64
|
+
path: {
|
|
65
|
+
'workspace': workspace,
|
|
66
|
+
},
|
|
67
|
+
body: requestBody,
|
|
68
|
+
mediaType: 'application/json',
|
|
69
|
+
});
|
|
70
|
+
}
|
|
55
71
|
/**
|
|
56
72
|
* does an app exisst at path
|
|
57
73
|
* @returns boolean app exists
|
|
@@ -142,22 +158,6 @@ class AppService {
|
|
|
142
158
|
},
|
|
143
159
|
});
|
|
144
160
|
}
|
|
145
|
-
/**
|
|
146
|
-
* create app
|
|
147
|
-
* @returns string app created
|
|
148
|
-
* @throws ApiError
|
|
149
|
-
*/
|
|
150
|
-
static createApp({ workspace, requestBody, }) {
|
|
151
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
152
|
-
method: 'POST',
|
|
153
|
-
url: '/w/{workspace}/apps/create',
|
|
154
|
-
path: {
|
|
155
|
-
'workspace': workspace,
|
|
156
|
-
},
|
|
157
|
-
body: requestBody,
|
|
158
|
-
mediaType: 'application/json',
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
161
|
/**
|
|
162
162
|
* delete app
|
|
163
163
|
* @returns string app deleted
|
|
@@ -9,7 +9,7 @@ export declare class FavoriteService {
|
|
|
9
9
|
workspace: string;
|
|
10
10
|
requestBody?: {
|
|
11
11
|
path?: string;
|
|
12
|
-
favorite_kind?: 'flow' | 'app' | 'script';
|
|
12
|
+
favorite_kind?: 'flow' | 'app' | 'script' | 'raw_app';
|
|
13
13
|
};
|
|
14
14
|
}): CancelablePromise<any>;
|
|
15
15
|
/**
|
|
@@ -21,7 +21,7 @@ export declare class FavoriteService {
|
|
|
21
21
|
workspace: string;
|
|
22
22
|
requestBody?: {
|
|
23
23
|
path?: string;
|
|
24
|
-
favorite_kind?: 'flow' | 'app' | 'script';
|
|
24
|
+
favorite_kind?: 'flow' | 'app' | 'script' | 'raw_app';
|
|
25
25
|
};
|
|
26
26
|
}): CancelablePromise<any>;
|
|
27
27
|
}
|
|
@@ -8,7 +8,7 @@ export declare class GranularAclService {
|
|
|
8
8
|
static getGranularAcls({ workspace, path, kind, }: {
|
|
9
9
|
workspace: string;
|
|
10
10
|
path: string;
|
|
11
|
-
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app';
|
|
11
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app';
|
|
12
12
|
}): CancelablePromise<Record<string, boolean>>;
|
|
13
13
|
/**
|
|
14
14
|
* add granular acls
|
|
@@ -18,7 +18,7 @@ export declare class GranularAclService {
|
|
|
18
18
|
static addGranularAcls({ workspace, path, kind, requestBody, }: {
|
|
19
19
|
workspace: string;
|
|
20
20
|
path: string;
|
|
21
|
-
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app';
|
|
21
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app';
|
|
22
22
|
/**
|
|
23
23
|
* acl to add
|
|
24
24
|
*/
|
|
@@ -35,7 +35,7 @@ export declare class GranularAclService {
|
|
|
35
35
|
static removeGranularAcls({ workspace, path, kind, requestBody, }: {
|
|
36
36
|
workspace: string;
|
|
37
37
|
path: string;
|
|
38
|
-
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app';
|
|
38
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app';
|
|
39
39
|
/**
|
|
40
40
|
* acl to add
|
|
41
41
|
*/
|
|
@@ -484,6 +484,18 @@ export declare class JobService {
|
|
|
484
484
|
workspace: string;
|
|
485
485
|
id: string;
|
|
486
486
|
}): CancelablePromise<any>;
|
|
487
|
+
/**
|
|
488
|
+
* get completed job result if job is completed
|
|
489
|
+
* @returns any result
|
|
490
|
+
* @throws ApiError
|
|
491
|
+
*/
|
|
492
|
+
static getCompletedJobResultMaybe({ workspace, id, }: {
|
|
493
|
+
workspace: string;
|
|
494
|
+
id: string;
|
|
495
|
+
}): CancelablePromise<{
|
|
496
|
+
completed: boolean;
|
|
497
|
+
result: any;
|
|
498
|
+
}>;
|
|
487
499
|
/**
|
|
488
500
|
* delete completed job (erase content but keep run id)
|
|
489
501
|
* @returns CompletedJob job details
|
|
@@ -351,6 +351,21 @@ class JobService {
|
|
|
351
351
|
},
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
+
/**
|
|
355
|
+
* get completed job result if job is completed
|
|
356
|
+
* @returns any result
|
|
357
|
+
* @throws ApiError
|
|
358
|
+
*/
|
|
359
|
+
static getCompletedJobResultMaybe({ workspace, id, }) {
|
|
360
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
361
|
+
method: 'GET',
|
|
362
|
+
url: '/w/{workspace}/jobs/completed/get_result_maybe/{id}',
|
|
363
|
+
path: {
|
|
364
|
+
'workspace': workspace,
|
|
365
|
+
'id': id,
|
|
366
|
+
},
|
|
367
|
+
});
|
|
368
|
+
}
|
|
354
369
|
/**
|
|
355
370
|
* delete completed job (erase content but keep run id)
|
|
356
371
|
* @returns CompletedJob job details
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { ListableRawApp } from '../models/ListableRawApp';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class RawAppService {
|
|
4
|
+
/**
|
|
5
|
+
* list all available raw apps
|
|
6
|
+
* @returns ListableRawApp All available raw apps
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static listRawApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }: {
|
|
10
|
+
workspace: string;
|
|
11
|
+
/**
|
|
12
|
+
* which page to return (start at 1, default 1)
|
|
13
|
+
*/
|
|
14
|
+
page?: number;
|
|
15
|
+
/**
|
|
16
|
+
* number of items to return for a given page (default 30, max 100)
|
|
17
|
+
*/
|
|
18
|
+
perPage?: number;
|
|
19
|
+
/**
|
|
20
|
+
* order by desc order (default true)
|
|
21
|
+
*/
|
|
22
|
+
orderDesc?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* mask to filter exact matching user creator
|
|
25
|
+
*/
|
|
26
|
+
createdBy?: string;
|
|
27
|
+
/**
|
|
28
|
+
* mask to filter matching starting path
|
|
29
|
+
*/
|
|
30
|
+
pathStart?: string;
|
|
31
|
+
/**
|
|
32
|
+
* mask to filter exact matching path
|
|
33
|
+
*/
|
|
34
|
+
pathExact?: string;
|
|
35
|
+
/**
|
|
36
|
+
* (default false)
|
|
37
|
+
* show only the starred items
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
starredOnly?: boolean;
|
|
41
|
+
}): CancelablePromise<Array<ListableRawApp>>;
|
|
42
|
+
/**
|
|
43
|
+
* does an app exisst at path
|
|
44
|
+
* @returns boolean app exists
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
static existsRawApp({ workspace, path, }: {
|
|
48
|
+
workspace: string;
|
|
49
|
+
path: string;
|
|
50
|
+
}): CancelablePromise<boolean>;
|
|
51
|
+
/**
|
|
52
|
+
* get app by path
|
|
53
|
+
* @returns string app details
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static getRawAppData({ workspace, version, path, }: {
|
|
57
|
+
workspace: string;
|
|
58
|
+
version: number;
|
|
59
|
+
path: string;
|
|
60
|
+
}): CancelablePromise<string>;
|
|
61
|
+
/**
|
|
62
|
+
* create raw app
|
|
63
|
+
* @returns string raw app created
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
static createRawApp({ workspace, requestBody, }: {
|
|
67
|
+
workspace: string;
|
|
68
|
+
/**
|
|
69
|
+
* new raw app
|
|
70
|
+
*/
|
|
71
|
+
requestBody: {
|
|
72
|
+
path: string;
|
|
73
|
+
value: string;
|
|
74
|
+
summary: string;
|
|
75
|
+
};
|
|
76
|
+
}): CancelablePromise<string>;
|
|
77
|
+
/**
|
|
78
|
+
* update app
|
|
79
|
+
* @returns string app updated
|
|
80
|
+
* @throws ApiError
|
|
81
|
+
*/
|
|
82
|
+
static updateRawApp({ workspace, path, requestBody, }: {
|
|
83
|
+
workspace: string;
|
|
84
|
+
path: string;
|
|
85
|
+
/**
|
|
86
|
+
* updateraw app
|
|
87
|
+
*/
|
|
88
|
+
requestBody: {
|
|
89
|
+
path?: string;
|
|
90
|
+
summary?: string;
|
|
91
|
+
value?: string;
|
|
92
|
+
};
|
|
93
|
+
}): CancelablePromise<string>;
|
|
94
|
+
/**
|
|
95
|
+
* delete raw app
|
|
96
|
+
* @returns string app deleted
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
static deleteRawApp({ workspace, path, }: {
|
|
100
|
+
workspace: string;
|
|
101
|
+
path: string;
|
|
102
|
+
}): CancelablePromise<string>;
|
|
103
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RawAppService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class RawAppService {
|
|
7
|
+
/**
|
|
8
|
+
* list all available raw apps
|
|
9
|
+
* @returns ListableRawApp All available raw apps
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static listRawApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }) {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/w/{workspace}/raw_apps/list',
|
|
16
|
+
path: {
|
|
17
|
+
'workspace': workspace,
|
|
18
|
+
},
|
|
19
|
+
query: {
|
|
20
|
+
'page': page,
|
|
21
|
+
'per_page': perPage,
|
|
22
|
+
'order_desc': orderDesc,
|
|
23
|
+
'created_by': createdBy,
|
|
24
|
+
'path_start': pathStart,
|
|
25
|
+
'path_exact': pathExact,
|
|
26
|
+
'starred_only': starredOnly,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* does an app exisst at path
|
|
32
|
+
* @returns boolean app exists
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
static existsRawApp({ workspace, path, }) {
|
|
36
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
37
|
+
method: 'GET',
|
|
38
|
+
url: '/w/{workspace}/raw_apps/exists/{path}',
|
|
39
|
+
path: {
|
|
40
|
+
'workspace': workspace,
|
|
41
|
+
'path': path,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* get app by path
|
|
47
|
+
* @returns string app details
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
static getRawAppData({ workspace, version, path, }) {
|
|
51
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
52
|
+
method: 'GET',
|
|
53
|
+
url: '/w/{workspace}/apps/get_data/{version}/{path}',
|
|
54
|
+
path: {
|
|
55
|
+
'workspace': workspace,
|
|
56
|
+
'version': version,
|
|
57
|
+
'path': path,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* create raw app
|
|
63
|
+
* @returns string raw app created
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
static createRawApp({ workspace, requestBody, }) {
|
|
67
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
68
|
+
method: 'POST',
|
|
69
|
+
url: '/w/{workspace}/raw_apps/create',
|
|
70
|
+
path: {
|
|
71
|
+
'workspace': workspace,
|
|
72
|
+
},
|
|
73
|
+
body: requestBody,
|
|
74
|
+
mediaType: 'application/json',
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* update app
|
|
79
|
+
* @returns string app updated
|
|
80
|
+
* @throws ApiError
|
|
81
|
+
*/
|
|
82
|
+
static updateRawApp({ workspace, path, requestBody, }) {
|
|
83
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
84
|
+
method: 'POST',
|
|
85
|
+
url: '/w/{workspace}/raw_apps/update/{path}',
|
|
86
|
+
path: {
|
|
87
|
+
'workspace': workspace,
|
|
88
|
+
'path': path,
|
|
89
|
+
},
|
|
90
|
+
body: requestBody,
|
|
91
|
+
mediaType: 'application/json',
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* delete raw app
|
|
96
|
+
* @returns string app deleted
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
static deleteRawApp({ workspace, path, }) {
|
|
100
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
101
|
+
method: 'DELETE',
|
|
102
|
+
url: '/w/{workspace}/raw_apps/delete/{path}',
|
|
103
|
+
path: {
|
|
104
|
+
'workspace': workspace,
|
|
105
|
+
'path': path,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.RawAppService = RawAppService;
|
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
|
*/
|