windmill-components 1.13.25 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.js +1 -5
- package/components/AppConnect.svelte +281 -0
- package/components/AppConnect.svelte.d.ts +22 -0
- package/components/ArgInfo.svelte +11 -16
- package/components/ArgInput.svelte +73 -70
- package/components/ArgInput.svelte.d.ts +6 -1
- package/components/AutosizedTextarea.svelte +6 -8
- package/components/Badge.svelte +4 -10
- package/components/Button.svelte +22 -18
- package/components/ButtonAndDropdown.svelte +6 -12
- package/components/CenteredModal.svelte +30 -0
- package/components/CenteredModal.svelte.d.ts +19 -0
- package/components/ChevronButton.svelte +4 -9
- package/components/DisplayResult.svelte +58 -57
- package/components/Dropdown.svelte +8 -13
- package/components/Editor.svelte +108 -149
- package/components/Editor.svelte.d.ts +3 -1
- package/components/FieldHeader.svelte +7 -12
- package/components/FlowBuilder.svelte +72 -121
- package/components/FlowBuilder.svelte.d.ts +0 -2
- package/components/FlowEditor.svelte +185 -73
- package/components/FlowEditor.svelte.d.ts +4 -4
- package/components/FlowJobResult.svelte +23 -0
- package/components/FlowJobResult.svelte.d.ts +17 -0
- package/components/FlowPreview.svelte +36 -51
- package/components/FlowPreview.svelte.d.ts +7 -1
- package/components/FlowStatusViewer.svelte +66 -40
- package/components/FlowStatusViewer.svelte.d.ts +1 -1
- package/components/FlowViewer.svelte +100 -0
- package/components/FlowViewer.svelte.d.ts +24 -0
- package/components/GroupModal.svelte +13 -20
- package/components/IconedResourceType.svelte +15 -18
- package/components/InviteGlobalUser.svelte +8 -15
- package/components/InviteUser.svelte +9 -16
- package/components/ItemPicker.svelte +11 -14
- package/components/JobStatus.svelte +6 -11
- package/components/Modal.svelte +14 -17
- package/components/ModuleStep.svelte +125 -64
- package/components/ModuleStep.svelte.d.ts +4 -8
- package/components/ObjectResourceInput.svelte +15 -20
- package/components/ObjectTypeNarrowing.svelte +7 -12
- package/components/PageHeader.svelte +4 -9
- package/components/Password.svelte +6 -8
- package/components/Path.svelte +78 -38
- package/components/Path.svelte.d.ts +2 -0
- package/components/RadioButton.svelte +7 -8
- package/components/RadioButtonV2.svelte +33 -0
- package/components/RadioButtonV2.svelte.d.ts +20 -0
- package/components/Required.svelte +2 -4
- package/components/ResourceEditor.svelte +44 -48
- package/components/ResourcePicker.svelte +6 -7
- package/components/ResourcePicker.svelte.d.ts +2 -2
- package/components/ResourceTypePicker.svelte +8 -13
- package/components/RunForm.svelte +15 -20
- package/components/SchemaEditor.svelte +31 -61
- package/components/SchemaForm.svelte +126 -134
- package/components/SchemaForm.svelte.d.ts +6 -4
- package/components/SchemaModal.svelte +25 -40
- package/components/SchemaModal.svelte.d.ts +1 -1
- package/components/SchemaViewer.svelte +6 -12
- package/components/ScriptBuilder.svelte +76 -101
- package/components/ScriptEditor.svelte +55 -60
- package/components/ScriptPicker.svelte +28 -34
- package/components/ScriptPicker.svelte.d.ts +1 -0
- package/components/ScriptSchema.svelte +13 -17
- package/components/ShareModal.svelte +23 -29
- package/components/SharedBadge.svelte +11 -16
- package/components/StringTypeNarrowing.svelte +8 -11
- package/components/Switch.svelte.d.ts +2 -2
- package/components/TableCustom.svelte +5 -8
- package/components/TableSimple.svelte +9 -8
- package/components/Tabs.svelte +6 -8
- package/components/Toggle.svelte +34 -0
- package/components/Toggle.svelte.d.ts +28 -0
- package/components/Tooltip.svelte +56 -89
- package/components/Tooltip.svelte.d.ts +1 -5
- package/components/VariableEditor.svelte +30 -29
- package/components/flows/CopyFirstStepSchema.svelte +10 -0
- package/components/flows/CopyFirstStepSchema.svelte.d.ts +14 -0
- package/components/flows/DynamicInputHelpBox.svelte +72 -0
- package/components/flows/DynamicInputHelpBox.svelte.d.ts +14 -0
- package/components/flows/FlowInputs.svelte +27 -0
- package/components/flows/FlowInputs.svelte.d.ts +19 -0
- package/components/flows/FlowModuleHeader.svelte +91 -0
- package/components/flows/FlowModuleHeader.svelte.d.ts +22 -0
- package/components/flows/flowStore.d.ts +17 -0
- package/components/flows/flowStore.js +161 -0
- package/components/flows/pickers/FlowScriptPicker.svelte +11 -0
- package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +22 -0
- package/components/flows/pickers/PickHubScript.svelte +30 -0
- package/components/flows/pickers/PickHubScript.svelte.d.ts +18 -0
- package/components/flows/pickers/PickScript.svelte +38 -0
- package/components/flows/pickers/PickScript.svelte.d.ts +18 -0
- package/components/flows/utils.d.ts +21 -0
- package/components/flows/utils.js +164 -0
- package/components/icons/DbIcon.svelte +2 -5
- package/components/icons/Mail.svelte +2 -5
- package/components/icons/Mysql.svelte +2 -5
- package/components/icons/PostgresIcon.svelte +2 -5
- package/components/icons/Slack.svelte +2 -5
- package/components/propertyPicker/ObjectViewer.svelte +113 -0
- package/components/propertyPicker/ObjectViewer.svelte.d.ts +21 -0
- package/components/propertyPicker/OverlayPropertyPicker.svelte +69 -0
- package/components/propertyPicker/OverlayPropertyPicker.svelte.d.ts +21 -0
- package/components/propertyPicker/PropPicker.svelte +24 -0
- package/components/propertyPicker/PropPicker.svelte.d.ts +18 -0
- package/components/propertyPicker/WarningMessage.svelte +43 -0
- package/components/propertyPicker/WarningMessage.svelte.d.ts +16 -0
- package/components/propertyPicker/utils.d.ts +2 -0
- package/components/propertyPicker/utils.js +40 -0
- package/gen/core/ApiError.d.ts +3 -1
- package/gen/core/ApiError.js +4 -6
- package/gen/core/ApiRequestOptions.js +1 -2
- package/gen/core/ApiResult.js +1 -2
- package/gen/core/CancelablePromise.js +2 -7
- package/gen/core/OpenAPI.js +2 -5
- package/gen/core/request.js +8 -13
- package/gen/index.d.ts +3 -0
- package/gen/index.js +28 -58
- package/gen/models/AuditLog.js +2 -5
- package/gen/models/CompletedJob.d.ts +3 -1
- package/gen/models/CompletedJob.js +3 -5
- package/gen/models/ContextualVariable.js +1 -2
- package/gen/models/CreateResource.d.ts +1 -0
- package/gen/models/CreateResource.js +1 -2
- package/gen/models/CreateVariable.d.ts +2 -0
- package/gen/models/CreateVariable.js +1 -2
- package/gen/models/CreateWorkspace.js +1 -2
- package/gen/models/EditResource.js +1 -2
- package/gen/models/EditResourceType.js +1 -2
- package/gen/models/EditSchedule.js +1 -2
- package/gen/models/EditVariable.js +1 -2
- package/gen/models/EditWorkspaceUser.js +1 -2
- package/gen/models/Flow.js +1 -2
- package/gen/models/FlowModule.d.ts +2 -0
- package/gen/models/FlowModule.js +1 -2
- package/gen/models/FlowModuleValue.d.ts +14 -2
- package/gen/models/FlowModuleValue.js +9 -5
- package/gen/models/FlowPreview.js +1 -2
- package/gen/models/FlowStatus.js +1 -2
- package/gen/models/FlowStatusModule.d.ts +6 -0
- package/gen/models/FlowStatusModule.js +2 -5
- package/gen/models/FlowValue.js +1 -2
- package/gen/models/GlobalUserInfo.js +2 -5
- package/gen/models/Group.js +1 -2
- package/gen/models/InputTransform.js +2 -5
- package/gen/models/Job.js +2 -5
- package/gen/models/ListableVariable.d.ts +2 -0
- package/gen/models/ListableVariable.js +1 -2
- package/gen/models/Login.js +1 -2
- package/gen/models/MainArgSignature.js +1 -2
- package/gen/models/NewSchedule.js +1 -2
- package/gen/models/NewToken.js +1 -2
- package/gen/models/NewUser.js +1 -2
- package/gen/models/Preview.js +2 -5
- package/gen/models/QueuedJob.d.ts +2 -1
- package/gen/models/QueuedJob.js +3 -5
- package/gen/models/Resource.d.ts +1 -0
- package/gen/models/Resource.js +1 -2
- package/gen/models/ResourceType.js +1 -2
- package/gen/models/Schedule.js +1 -2
- package/gen/models/Script.d.ts +1 -0
- package/gen/models/Script.js +2 -5
- package/gen/models/ScriptArgs.js +1 -2
- package/gen/models/SlackToken.d.ts +8 -0
- package/gen/models/SlackToken.js +4 -0
- package/gen/models/TokenResponse.d.ts +6 -0
- package/gen/models/TokenResponse.js +4 -0
- package/gen/models/TruncatedToken.js +1 -2
- package/gen/models/User.js +1 -2
- package/gen/models/UserWorkspaceList.js +1 -2
- package/gen/models/WorkerPing.js +1 -2
- package/gen/models/Workspace.js +1 -2
- package/gen/models/WorkspaceInvite.js +1 -2
- package/gen/services/AdminService.d.ts +6 -2
- package/gen/services/AdminService.js +6 -10
- package/gen/services/AuditService.d.ts +24 -8
- package/gen/services/AuditService.js +5 -9
- package/gen/services/FlowService.d.ts +37 -10
- package/gen/services/FlowService.js +23 -12
- package/gen/services/GranularAclService.d.ts +6 -2
- package/gen/services/GranularAclService.js +6 -10
- package/gen/services/GroupService.d.ts +18 -6
- package/gen/services/GroupService.js +11 -15
- package/gen/services/JobService.d.ts +167 -46
- package/gen/services/JobService.js +42 -22
- package/gen/services/OauthService.d.ts +104 -0
- package/gen/services/OauthService.js +133 -0
- package/gen/services/ResourceService.d.ts +39 -7
- package/gen/services/ResourceService.js +44 -18
- package/gen/services/ScheduleService.d.ts +36 -6
- package/gen/services/ScheduleService.js +39 -13
- package/gen/services/ScriptService.d.ts +66 -19
- package/gen/services/ScriptService.js +32 -20
- package/gen/services/SettingsService.js +5 -9
- package/gen/services/UserService.d.ts +49 -11
- package/gen/services/UserService.js +42 -29
- package/gen/services/VariableService.d.ts +19 -4
- package/gen/services/VariableService.js +24 -13
- package/gen/services/WorkerService.d.ts +6 -2
- package/gen/services/WorkerService.js +4 -8
- package/gen/services/WorkspaceService.d.ts +29 -24
- package/gen/services/WorkspaceService.js +23 -42
- package/infer.js +5 -9
- package/logout.js +20 -18
- package/package.json +51 -24
- package/script_helpers.d.ts +4 -0
- package/script_helpers.js +70 -0
- package/scripts.d.ts +2 -1
- package/scripts.js +11 -15
- package/stores.d.ts +6 -0
- package/stores.js +30 -22
- package/user.js +10 -15
- package/utils.d.ts +15 -1
- package/utils.js +191 -52
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class OauthService {
|
|
4
|
+
/**
|
|
5
|
+
* connect slack callback
|
|
6
|
+
* @returns SlackToken slack token
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static connectSlackCallback({ requestBody, }) {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'POST',
|
|
12
|
+
url: '/oauth/connect_slack_callback',
|
|
13
|
+
body: requestBody,
|
|
14
|
+
mediaType: 'application/json',
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* connect callback
|
|
19
|
+
* @returns TokenResponse oauth token
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
static connectCallback({ clientName, requestBody, }) {
|
|
23
|
+
return __request(OpenAPI, {
|
|
24
|
+
method: 'POST',
|
|
25
|
+
url: '/oauth/connect_callback/{client_name}',
|
|
26
|
+
path: {
|
|
27
|
+
'client_name': clientName,
|
|
28
|
+
},
|
|
29
|
+
body: requestBody,
|
|
30
|
+
mediaType: 'application/json',
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* create OAuth account
|
|
35
|
+
* @returns string account set
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
static createAccount({ workspace, requestBody, }) {
|
|
39
|
+
return __request(OpenAPI, {
|
|
40
|
+
method: 'POST',
|
|
41
|
+
url: '/w/{workspace}/oauth/create_account',
|
|
42
|
+
path: {
|
|
43
|
+
'workspace': workspace,
|
|
44
|
+
},
|
|
45
|
+
body: requestBody,
|
|
46
|
+
mediaType: 'application/json',
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* refresh token
|
|
51
|
+
* @returns string token refreshed
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
static refreshToken({ workspace, id, requestBody, }) {
|
|
55
|
+
return __request(OpenAPI, {
|
|
56
|
+
method: 'POST',
|
|
57
|
+
url: '/w/{workspace}/oauth/refresh_token/{id}',
|
|
58
|
+
path: {
|
|
59
|
+
'workspace': workspace,
|
|
60
|
+
'id': id,
|
|
61
|
+
},
|
|
62
|
+
body: requestBody,
|
|
63
|
+
mediaType: 'application/json',
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* disconnect account
|
|
68
|
+
* @returns string disconnected client
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
static disconnectAccount({ workspace, id, }) {
|
|
72
|
+
return __request(OpenAPI, {
|
|
73
|
+
method: 'POST',
|
|
74
|
+
url: '/w/{workspace}/oauth/disconnect/{id}',
|
|
75
|
+
path: {
|
|
76
|
+
'workspace': workspace,
|
|
77
|
+
'id': id,
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* disconnect slack
|
|
83
|
+
* @returns string disconnected slack
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static disconnectSlack({ workspace, }) {
|
|
87
|
+
return __request(OpenAPI, {
|
|
88
|
+
method: 'POST',
|
|
89
|
+
url: '/w/{workspace}/oauth/disconnect_slack',
|
|
90
|
+
path: {
|
|
91
|
+
'workspace': workspace,
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* set workspace's slack
|
|
97
|
+
* @returns string workspace slack is set
|
|
98
|
+
* @throws ApiError
|
|
99
|
+
*/
|
|
100
|
+
static setWorkspaceSlack({ workspace, requestBody, }) {
|
|
101
|
+
return __request(OpenAPI, {
|
|
102
|
+
method: 'POST',
|
|
103
|
+
url: '/w/{workspace}/oauth/set_workspace_slack',
|
|
104
|
+
path: {
|
|
105
|
+
'workspace': workspace,
|
|
106
|
+
},
|
|
107
|
+
body: requestBody,
|
|
108
|
+
mediaType: 'application/json',
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* list oauth logins
|
|
113
|
+
* @returns string list of oauth login clients
|
|
114
|
+
* @throws ApiError
|
|
115
|
+
*/
|
|
116
|
+
static listOAuthLogins() {
|
|
117
|
+
return __request(OpenAPI, {
|
|
118
|
+
method: 'GET',
|
|
119
|
+
url: '/oauth/list_logins',
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* list oauth connects
|
|
124
|
+
* @returns any list of oauth connects clients
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
static listOAuthConnects() {
|
|
128
|
+
return __request(OpenAPI, {
|
|
129
|
+
method: 'GET',
|
|
130
|
+
url: '/oauth/list_connects',
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -12,7 +12,9 @@ export declare class ResourceService {
|
|
|
12
12
|
*/
|
|
13
13
|
static createResource({ workspace, requestBody, }: {
|
|
14
14
|
workspace: string;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* new resource
|
|
17
|
+
*/
|
|
16
18
|
requestBody: CreateResource;
|
|
17
19
|
}): CancelablePromise<string>;
|
|
18
20
|
/**
|
|
@@ -32,7 +34,9 @@ export declare class ResourceService {
|
|
|
32
34
|
static updateResource({ workspace, path, requestBody, }: {
|
|
33
35
|
workspace: string;
|
|
34
36
|
path: string;
|
|
35
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* updated resource
|
|
39
|
+
*/
|
|
36
40
|
requestBody: EditResource;
|
|
37
41
|
}): CancelablePromise<string>;
|
|
38
42
|
/**
|
|
@@ -44,6 +48,15 @@ export declare class ResourceService {
|
|
|
44
48
|
workspace: string;
|
|
45
49
|
path: string;
|
|
46
50
|
}): CancelablePromise<Resource>;
|
|
51
|
+
/**
|
|
52
|
+
* does resource exists
|
|
53
|
+
* @returns boolean does resource exists
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static existsResource({ workspace, path, }: {
|
|
57
|
+
workspace: string;
|
|
58
|
+
path: string;
|
|
59
|
+
}): CancelablePromise<boolean>;
|
|
47
60
|
/**
|
|
48
61
|
* list resources
|
|
49
62
|
* @returns Resource resource list
|
|
@@ -51,11 +64,17 @@ export declare class ResourceService {
|
|
|
51
64
|
*/
|
|
52
65
|
static listResource({ workspace, page, perPage, resourceType, }: {
|
|
53
66
|
workspace: string;
|
|
54
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* which page to return (start at 1, default 1)
|
|
69
|
+
*/
|
|
55
70
|
page?: number;
|
|
56
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* number of items to return for a given page (default 30, max 100)
|
|
73
|
+
*/
|
|
57
74
|
perPage?: number;
|
|
58
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* resource_type to list from
|
|
77
|
+
*/
|
|
59
78
|
resourceType?: string;
|
|
60
79
|
}): CancelablePromise<Array<Resource>>;
|
|
61
80
|
/**
|
|
@@ -65,7 +84,9 @@ export declare class ResourceService {
|
|
|
65
84
|
*/
|
|
66
85
|
static createResourceType({ workspace, requestBody, }: {
|
|
67
86
|
workspace: string;
|
|
68
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* new resource_type
|
|
89
|
+
*/
|
|
69
90
|
requestBody: ResourceType;
|
|
70
91
|
}): CancelablePromise<string>;
|
|
71
92
|
/**
|
|
@@ -85,7 +106,9 @@ export declare class ResourceService {
|
|
|
85
106
|
static updateResourceType({ workspace, path, requestBody, }: {
|
|
86
107
|
workspace: string;
|
|
87
108
|
path: string;
|
|
88
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* updated resource_type
|
|
111
|
+
*/
|
|
89
112
|
requestBody: EditResourceType;
|
|
90
113
|
}): CancelablePromise<string>;
|
|
91
114
|
/**
|
|
@@ -97,6 +120,15 @@ export declare class ResourceService {
|
|
|
97
120
|
workspace: string;
|
|
98
121
|
path: string;
|
|
99
122
|
}): CancelablePromise<ResourceType>;
|
|
123
|
+
/**
|
|
124
|
+
* does resource_type exists
|
|
125
|
+
* @returns boolean does resource_type exist
|
|
126
|
+
* @throws ApiError
|
|
127
|
+
*/
|
|
128
|
+
static existsResourceType({ workspace, path, }: {
|
|
129
|
+
workspace: string;
|
|
130
|
+
path: string;
|
|
131
|
+
}): CancelablePromise<boolean>;
|
|
100
132
|
/**
|
|
101
133
|
* list resource_types
|
|
102
134
|
* @returns ResourceType resource_type list
|
|
@@ -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, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'POST',
|
|
15
12
|
url: '/w/{workspace}/resources/create',
|
|
16
13
|
path: {
|
|
@@ -26,7 +23,7 @@ class ResourceService {
|
|
|
26
23
|
* @throws ApiError
|
|
27
24
|
*/
|
|
28
25
|
static deleteResource({ workspace, path, }) {
|
|
29
|
-
return (
|
|
26
|
+
return __request(OpenAPI, {
|
|
30
27
|
method: 'DELETE',
|
|
31
28
|
url: '/w/{workspace}/resources/delete/{path}',
|
|
32
29
|
path: {
|
|
@@ -41,7 +38,7 @@ class ResourceService {
|
|
|
41
38
|
* @throws ApiError
|
|
42
39
|
*/
|
|
43
40
|
static updateResource({ workspace, path, requestBody, }) {
|
|
44
|
-
return (
|
|
41
|
+
return __request(OpenAPI, {
|
|
45
42
|
method: 'POST',
|
|
46
43
|
url: '/w/{workspace}/resources/update/{path}',
|
|
47
44
|
path: {
|
|
@@ -58,7 +55,7 @@ class ResourceService {
|
|
|
58
55
|
* @throws ApiError
|
|
59
56
|
*/
|
|
60
57
|
static getResource({ workspace, path, }) {
|
|
61
|
-
return (
|
|
58
|
+
return __request(OpenAPI, {
|
|
62
59
|
method: 'GET',
|
|
63
60
|
url: '/w/{workspace}/resources/get/{path}',
|
|
64
61
|
path: {
|
|
@@ -67,13 +64,28 @@ class ResourceService {
|
|
|
67
64
|
},
|
|
68
65
|
});
|
|
69
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* does resource exists
|
|
69
|
+
* @returns boolean does resource exists
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static existsResource({ workspace, path, }) {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: 'GET',
|
|
75
|
+
url: '/w/{workspace}/resources/exists/{path}',
|
|
76
|
+
path: {
|
|
77
|
+
'workspace': workspace,
|
|
78
|
+
'path': path,
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
}
|
|
70
82
|
/**
|
|
71
83
|
* list resources
|
|
72
84
|
* @returns Resource resource list
|
|
73
85
|
* @throws ApiError
|
|
74
86
|
*/
|
|
75
87
|
static listResource({ workspace, page, perPage, resourceType, }) {
|
|
76
|
-
return (
|
|
88
|
+
return __request(OpenAPI, {
|
|
77
89
|
method: 'GET',
|
|
78
90
|
url: '/w/{workspace}/resources/list',
|
|
79
91
|
path: {
|
|
@@ -92,7 +104,7 @@ class ResourceService {
|
|
|
92
104
|
* @throws ApiError
|
|
93
105
|
*/
|
|
94
106
|
static createResourceType({ workspace, requestBody, }) {
|
|
95
|
-
return (
|
|
107
|
+
return __request(OpenAPI, {
|
|
96
108
|
method: 'POST',
|
|
97
109
|
url: '/w/{workspace}/resources/type/create',
|
|
98
110
|
path: {
|
|
@@ -108,7 +120,7 @@ class ResourceService {
|
|
|
108
120
|
* @throws ApiError
|
|
109
121
|
*/
|
|
110
122
|
static deleteResourceType({ workspace, path, }) {
|
|
111
|
-
return (
|
|
123
|
+
return __request(OpenAPI, {
|
|
112
124
|
method: 'DELETE',
|
|
113
125
|
url: '/w/{workspace}/resources/type/delete/{path}',
|
|
114
126
|
path: {
|
|
@@ -123,7 +135,7 @@ class ResourceService {
|
|
|
123
135
|
* @throws ApiError
|
|
124
136
|
*/
|
|
125
137
|
static updateResourceType({ workspace, path, requestBody, }) {
|
|
126
|
-
return (
|
|
138
|
+
return __request(OpenAPI, {
|
|
127
139
|
method: 'POST',
|
|
128
140
|
url: '/w/{workspace}/resources/type/update/{path}',
|
|
129
141
|
path: {
|
|
@@ -140,7 +152,7 @@ class ResourceService {
|
|
|
140
152
|
* @throws ApiError
|
|
141
153
|
*/
|
|
142
154
|
static getResourceType({ workspace, path, }) {
|
|
143
|
-
return (
|
|
155
|
+
return __request(OpenAPI, {
|
|
144
156
|
method: 'GET',
|
|
145
157
|
url: '/w/{workspace}/resources/type/get/{path}',
|
|
146
158
|
path: {
|
|
@@ -149,13 +161,28 @@ class ResourceService {
|
|
|
149
161
|
},
|
|
150
162
|
});
|
|
151
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* does resource_type exists
|
|
166
|
+
* @returns boolean does resource_type exist
|
|
167
|
+
* @throws ApiError
|
|
168
|
+
*/
|
|
169
|
+
static existsResourceType({ workspace, path, }) {
|
|
170
|
+
return __request(OpenAPI, {
|
|
171
|
+
method: 'GET',
|
|
172
|
+
url: '/w/{workspace}/resources/type/exists/{path}',
|
|
173
|
+
path: {
|
|
174
|
+
'workspace': workspace,
|
|
175
|
+
'path': path,
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
}
|
|
152
179
|
/**
|
|
153
180
|
* list resource_types
|
|
154
181
|
* @returns ResourceType resource_type list
|
|
155
182
|
* @throws ApiError
|
|
156
183
|
*/
|
|
157
184
|
static listResourceType({ workspace, }) {
|
|
158
|
-
return (
|
|
185
|
+
return __request(OpenAPI, {
|
|
159
186
|
method: 'GET',
|
|
160
187
|
url: '/w/{workspace}/resources/type/list',
|
|
161
188
|
path: {
|
|
@@ -169,7 +196,7 @@ class ResourceService {
|
|
|
169
196
|
* @throws ApiError
|
|
170
197
|
*/
|
|
171
198
|
static listResourceTypeNames({ workspace, }) {
|
|
172
|
-
return (
|
|
199
|
+
return __request(OpenAPI, {
|
|
173
200
|
method: 'GET',
|
|
174
201
|
url: '/w/{workspace}/resources/type/listnames',
|
|
175
202
|
path: {
|
|
@@ -178,4 +205,3 @@ class ResourceService {
|
|
|
178
205
|
});
|
|
179
206
|
}
|
|
180
207
|
}
|
|
181
|
-
exports.ResourceService = ResourceService;
|
|
@@ -9,7 +9,9 @@ export declare class ScheduleService {
|
|
|
9
9
|
* @throws ApiError
|
|
10
10
|
*/
|
|
11
11
|
static previewSchedule({ requestBody, }: {
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* schedule
|
|
14
|
+
*/
|
|
13
15
|
requestBody: {
|
|
14
16
|
schedule: string;
|
|
15
17
|
offset?: number;
|
|
@@ -22,7 +24,9 @@ export declare class ScheduleService {
|
|
|
22
24
|
*/
|
|
23
25
|
static createSchedule({ workspace, requestBody, }: {
|
|
24
26
|
workspace: string;
|
|
25
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* new schedule
|
|
29
|
+
*/
|
|
26
30
|
requestBody: NewSchedule;
|
|
27
31
|
}): CancelablePromise<string>;
|
|
28
32
|
/**
|
|
@@ -33,7 +37,9 @@ export declare class ScheduleService {
|
|
|
33
37
|
static updateSchedule({ workspace, path, requestBody, }: {
|
|
34
38
|
workspace: string;
|
|
35
39
|
path: string;
|
|
36
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* updated schedule
|
|
42
|
+
*/
|
|
37
43
|
requestBody: EditSchedule;
|
|
38
44
|
}): CancelablePromise<string>;
|
|
39
45
|
/**
|
|
@@ -44,11 +50,22 @@ export declare class ScheduleService {
|
|
|
44
50
|
static setScheduleEnabled({ workspace, path, requestBody, }: {
|
|
45
51
|
workspace: string;
|
|
46
52
|
path: string;
|
|
47
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* updated schedule enable
|
|
55
|
+
*/
|
|
48
56
|
requestBody: {
|
|
49
57
|
enabled: boolean;
|
|
50
58
|
};
|
|
51
59
|
}): CancelablePromise<string>;
|
|
60
|
+
/**
|
|
61
|
+
* delete schedule
|
|
62
|
+
* @returns string schedule deleted
|
|
63
|
+
* @throws ApiError
|
|
64
|
+
*/
|
|
65
|
+
static deleteSchedule({ workspace, path, }: {
|
|
66
|
+
workspace: string;
|
|
67
|
+
path: string;
|
|
68
|
+
}): CancelablePromise<string>;
|
|
52
69
|
/**
|
|
53
70
|
* get schedule
|
|
54
71
|
* @returns Schedule schedule deleted
|
|
@@ -58,6 +75,15 @@ export declare class ScheduleService {
|
|
|
58
75
|
workspace: string;
|
|
59
76
|
path: string;
|
|
60
77
|
}): CancelablePromise<Schedule>;
|
|
78
|
+
/**
|
|
79
|
+
* does schedule exists
|
|
80
|
+
* @returns boolean schedule deleted
|
|
81
|
+
* @throws ApiError
|
|
82
|
+
*/
|
|
83
|
+
static existsSchedule({ workspace, path, }: {
|
|
84
|
+
workspace: string;
|
|
85
|
+
path: string;
|
|
86
|
+
}): CancelablePromise<boolean>;
|
|
61
87
|
/**
|
|
62
88
|
* list schedules
|
|
63
89
|
* @returns Schedule schedule list
|
|
@@ -65,9 +91,13 @@ export declare class ScheduleService {
|
|
|
65
91
|
*/
|
|
66
92
|
static listSchedules({ workspace, page, perPage, }: {
|
|
67
93
|
workspace: string;
|
|
68
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* which page to return (start at 1, default 1)
|
|
96
|
+
*/
|
|
69
97
|
page?: number;
|
|
70
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* number of items to return for a given page (default 30, max 100)
|
|
100
|
+
*/
|
|
71
101
|
perPage?: number;
|
|
72
102
|
}): CancelablePromise<Array<Schedule>>;
|
|
73
103
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class ScheduleService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class ScheduleService {
|
|
7
4
|
/**
|
|
8
5
|
* preview schedule
|
|
9
6
|
* @returns string the preview of the next 10 time this schedule would apply to
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static previewSchedule({ requestBody, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'POST',
|
|
15
12
|
url: '/schedules/preview',
|
|
16
13
|
body: requestBody,
|
|
@@ -23,7 +20,7 @@ class ScheduleService {
|
|
|
23
20
|
* @throws ApiError
|
|
24
21
|
*/
|
|
25
22
|
static createSchedule({ workspace, requestBody, }) {
|
|
26
|
-
return (
|
|
23
|
+
return __request(OpenAPI, {
|
|
27
24
|
method: 'POST',
|
|
28
25
|
url: '/w/{workspace}/schedules/create',
|
|
29
26
|
path: {
|
|
@@ -39,7 +36,7 @@ class ScheduleService {
|
|
|
39
36
|
* @throws ApiError
|
|
40
37
|
*/
|
|
41
38
|
static updateSchedule({ workspace, path, requestBody, }) {
|
|
42
|
-
return (
|
|
39
|
+
return __request(OpenAPI, {
|
|
43
40
|
method: 'POST',
|
|
44
41
|
url: '/w/{workspace}/schedules/update/{path}',
|
|
45
42
|
path: {
|
|
@@ -56,7 +53,7 @@ class ScheduleService {
|
|
|
56
53
|
* @throws ApiError
|
|
57
54
|
*/
|
|
58
55
|
static setScheduleEnabled({ workspace, path, requestBody, }) {
|
|
59
|
-
return (
|
|
56
|
+
return __request(OpenAPI, {
|
|
60
57
|
method: 'POST',
|
|
61
58
|
url: '/w/{workspace}/schedules/setenabled/{path}',
|
|
62
59
|
path: {
|
|
@@ -67,13 +64,28 @@ class ScheduleService {
|
|
|
67
64
|
mediaType: 'application/json',
|
|
68
65
|
});
|
|
69
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* delete schedule
|
|
69
|
+
* @returns string schedule deleted
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static deleteSchedule({ workspace, path, }) {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: 'DELETE',
|
|
75
|
+
url: '/w/{workspace}/schedules/delete/{path}',
|
|
76
|
+
path: {
|
|
77
|
+
'workspace': workspace,
|
|
78
|
+
'path': path,
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
}
|
|
70
82
|
/**
|
|
71
83
|
* get schedule
|
|
72
84
|
* @returns Schedule schedule deleted
|
|
73
85
|
* @throws ApiError
|
|
74
86
|
*/
|
|
75
87
|
static getSchedule({ workspace, path, }) {
|
|
76
|
-
return (
|
|
88
|
+
return __request(OpenAPI, {
|
|
77
89
|
method: 'GET',
|
|
78
90
|
url: '/w/{workspace}/schedules/get/{path}',
|
|
79
91
|
path: {
|
|
@@ -82,13 +94,28 @@ class ScheduleService {
|
|
|
82
94
|
},
|
|
83
95
|
});
|
|
84
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* does schedule exists
|
|
99
|
+
* @returns boolean schedule deleted
|
|
100
|
+
* @throws ApiError
|
|
101
|
+
*/
|
|
102
|
+
static existsSchedule({ workspace, path, }) {
|
|
103
|
+
return __request(OpenAPI, {
|
|
104
|
+
method: 'GET',
|
|
105
|
+
url: '/w/{workspace}/schedules/exists/{path}',
|
|
106
|
+
path: {
|
|
107
|
+
'workspace': workspace,
|
|
108
|
+
'path': path,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
85
112
|
/**
|
|
86
113
|
* list schedules
|
|
87
114
|
* @returns Schedule schedule list
|
|
88
115
|
* @throws ApiError
|
|
89
116
|
*/
|
|
90
117
|
static listSchedules({ workspace, page, perPage, }) {
|
|
91
|
-
return (
|
|
118
|
+
return __request(OpenAPI, {
|
|
92
119
|
method: 'GET',
|
|
93
120
|
url: '/w/{workspace}/schedules/list',
|
|
94
121
|
path: {
|
|
@@ -101,4 +128,3 @@ class ScheduleService {
|
|
|
101
128
|
});
|
|
102
129
|
}
|
|
103
130
|
}
|
|
104
|
-
exports.ScheduleService = ScheduleService;
|