windmill-components 1.13.1 → 1.13.4
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/{lib/common.d.ts → common.d.ts} +0 -0
- package/components/ArgInfo.svelte +1 -1
- package/{lib/components → components}/ArgInfo.svelte.d.ts +0 -0
- package/{lib/components → components}/ArgInput.svelte.d.ts +0 -0
- package/{lib/components → components}/AutosizedTextarea.svelte.d.ts +0 -0
- package/{lib/components → components}/Badge.svelte.d.ts +0 -0
- package/{lib/components → components}/Button.svelte.d.ts +0 -0
- package/{lib/components → components}/ButtonAndDropdown.svelte.d.ts +1 -1
- package/{lib/components → components}/CenteredPage.svelte.d.ts +0 -0
- package/{lib/components → components}/ChevronButton.svelte.d.ts +0 -0
- package/{lib/components → components}/DisplayResult.svelte.d.ts +0 -0
- package/{lib/components → components}/Dropdown.svelte.d.ts +1 -1
- package/components/Editor.svelte +4 -1
- package/{lib/components → components}/Editor.svelte.d.ts +2 -0
- package/{lib/components → components}/FieldHeader.svelte.d.ts +0 -0
- package/components/FlowBuilder.svelte +1 -1
- package/{lib/components → components}/FlowBuilder.svelte.d.ts +1 -1
- package/components/FlowEditor.svelte +1 -1
- package/{lib/components → components}/FlowEditor.svelte.d.ts +1 -1
- package/components/FlowPreview.svelte +1 -1
- package/{lib/components → components}/FlowPreview.svelte.d.ts +2 -2
- package/components/FlowStatusViewer.svelte +1 -1
- package/{lib/components → components}/FlowStatusViewer.svelte.d.ts +1 -1
- package/components/GroupModal.svelte +1 -1
- package/{lib/components → components}/GroupModal.svelte.d.ts +0 -0
- package/{lib/components → components}/IconedResourceType.svelte.d.ts +0 -0
- package/components/InviteGlobalUser.svelte +1 -1
- package/{lib/components → components}/InviteGlobalUser.svelte.d.ts +0 -0
- package/components/InviteUser.svelte +1 -1
- package/{lib/components → components}/InviteUser.svelte.d.ts +0 -0
- package/{lib/components → components}/ItemPicker.svelte.d.ts +0 -0
- package/{lib/components → components}/JobStatus.svelte.d.ts +1 -1
- package/{lib/components → components}/Modal.svelte.d.ts +0 -0
- package/{lib/components → components}/ModuleStep.svelte.d.ts +2 -2
- package/{lib/components → components}/Multiselect.svelte.d.ts +0 -0
- package/components/ObjectResourceInput.svelte +1 -1
- package/{lib/components → components}/ObjectResourceInput.svelte.d.ts +0 -0
- package/{lib/components → components}/ObjectTypeNarrowing.svelte.d.ts +0 -0
- package/{lib/components → components}/PageHeader.svelte.d.ts +0 -0
- package/{lib/components → components}/Password.svelte.d.ts +0 -0
- package/components/Path.svelte +1 -1
- package/{lib/components → components}/Path.svelte.d.ts +1 -1
- package/{lib/components → components}/RadioButton.svelte.d.ts +0 -0
- package/{lib/components → components}/Required.svelte.d.ts +0 -0
- package/components/ResourceEditor.svelte +1 -1
- package/{lib/components → components}/ResourceEditor.svelte.d.ts +0 -0
- package/components/ResourcePicker.svelte +1 -1
- package/{lib/components → components}/ResourcePicker.svelte.d.ts +0 -0
- package/components/ResourceTypePicker.svelte +1 -1
- package/{lib/components → components}/ResourceTypePicker.svelte.d.ts +0 -0
- package/{lib/components → components}/RunForm.svelte.d.ts +1 -1
- package/components/SchemaEditor.svelte +75 -70
- package/{lib/components → components}/SchemaEditor.svelte.d.ts +1 -4
- package/{lib/components → components}/SchemaForm.svelte.d.ts +1 -1
- package/{lib/components → components}/SchemaModal.svelte.d.ts +1 -1
- package/{lib/components → components}/SchemaViewer.svelte.d.ts +1 -1
- package/components/ScriptBuilder.svelte +1 -1
- package/{lib/components → components}/ScriptBuilder.svelte.d.ts +1 -1
- package/components/ScriptEditor.svelte +1 -1
- package/{lib/components → components}/ScriptEditor.svelte.d.ts +2 -2
- package/components/ScriptPicker.svelte +1 -1
- package/{lib/components → components}/ScriptPicker.svelte.d.ts +0 -0
- package/{lib/components → components}/ScriptSchema.svelte.d.ts +1 -1
- package/components/ShareModal.svelte +2 -2
- package/{lib/components → components}/ShareModal.svelte.d.ts +0 -0
- package/{lib/components → components}/SharedBadge.svelte.d.ts +0 -0
- package/{lib/components → components}/StringTypeNarrowing.svelte.d.ts +0 -0
- package/{lib/components → components}/Switch.svelte.d.ts +0 -0
- package/{lib/components → components}/TableCustom.svelte.d.ts +0 -0
- package/{lib/components → components}/TableSimple.svelte.d.ts +0 -0
- package/{lib/components → components}/Tabs.svelte.d.ts +0 -0
- package/{lib/components → components}/Tooltip.svelte.d.ts +0 -0
- package/components/VariableEditor.svelte +1 -1
- package/{lib/components → components}/VariableEditor.svelte.d.ts +0 -0
- package/{lib/components → components}/icons/DbIcon.svelte.d.ts +0 -0
- package/{lib/components → components}/icons/Mail.svelte.d.ts +0 -0
- package/{lib/components → components}/icons/Mysql.svelte.d.ts +0 -0
- package/{lib/components → components}/icons/PostgresIcon.svelte.d.ts +0 -0
- package/{lib/components → components}/icons/Slack.svelte.d.ts +0 -0
- package/gen/core/ApiError.js +10 -0
- package/gen/core/ApiRequestOptions.js +1 -0
- package/gen/core/ApiResult.js +1 -0
- package/gen/core/CancelablePromise.js +86 -0
- package/gen/core/OpenAPI.js +11 -0
- package/gen/core/request.js +261 -0
- package/gen/index.js +30 -0
- package/gen/models/AuditLog.js +29 -0
- package/gen/models/CompletedJob.js +19 -0
- package/gen/models/ContextualVariable.js +4 -0
- package/gen/models/CreateResource.js +4 -0
- package/gen/models/CreateVariable.js +4 -0
- package/gen/models/CreateWorkspace.js +4 -0
- package/gen/models/EditResource.js +4 -0
- package/gen/models/EditResourceType.js +4 -0
- package/gen/models/EditSchedule.js +4 -0
- package/gen/models/EditVariable.js +4 -0
- package/gen/models/EditWorkspaceUser.js +4 -0
- package/gen/models/Flow.js +4 -0
- package/gen/models/FlowModule.js +4 -0
- package/gen/models/FlowModuleValue.js +11 -0
- package/gen/models/FlowPreview.js +4 -0
- package/gen/models/FlowStatus.js +4 -0
- package/gen/models/FlowStatusModule.js +15 -0
- package/gen/models/FlowValue.js +4 -0
- package/gen/models/GlobalUserInfo.js +11 -0
- package/gen/models/Group.js +4 -0
- package/gen/models/InputTransform.js +11 -0
- package/gen/models/Job.js +11 -0
- package/gen/models/ListableVariable.js +4 -0
- package/gen/models/Login.js +4 -0
- package/gen/models/MainArgSignature.js +4 -0
- package/gen/models/NewSchedule.js +4 -0
- package/gen/models/NewToken.js +4 -0
- package/gen/models/NewUser.js +4 -0
- package/gen/models/Preview.js +11 -0
- package/gen/models/QueuedJob.js +19 -0
- package/gen/models/Resource.js +4 -0
- package/gen/models/ResourceType.js +4 -0
- package/gen/models/Schedule.js +4 -0
- package/gen/models/Script.js +11 -0
- package/gen/models/ScriptArgs.js +4 -0
- package/gen/models/TruncatedToken.js +4 -0
- package/gen/models/User.js +4 -0
- package/gen/models/UserWorkspaceList.js +4 -0
- package/gen/models/WorkerPing.js +4 -0
- package/gen/models/Workspace.js +4 -0
- package/gen/models/WorkspaceInvite.js +4 -0
- package/gen/services/AdminService.js +52 -0
- package/gen/services/AuditService.js +43 -0
- package/gen/services/FlowService.js +90 -0
- package/gen/services/GranularAclService.js +56 -0
- package/gen/services/GroupService.js +133 -0
- package/gen/services/JobService.js +260 -0
- package/gen/services/ResourceService.js +177 -0
- package/gen/services/ScheduleService.js +100 -0
- package/gen/services/ScriptService.js +188 -0
- package/gen/services/SettingsService.js +26 -0
- package/gen/services/UserService.js +302 -0
- package/gen/services/VariableService.js +98 -0
- package/gen/services/WorkerService.js +19 -0
- package/gen/services/WorkspaceService.js +185 -0
- package/{lib/infer.d.ts → infer.d.ts} +0 -0
- package/infer.js +1 -1
- package/package.json +63 -1
- package/{lib/stores.d.ts → stores.d.ts} +2 -1
- package/{lib/utils.d.ts → utils.d.ts} +1 -1
- package/utils.js +1 -1
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class JobService {
|
|
4
|
+
/**
|
|
5
|
+
* run script by path
|
|
6
|
+
* @returns string job created
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }) {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'POST',
|
|
12
|
+
url: '/w/{workspace}/jobs/run/p/{path}',
|
|
13
|
+
path: {
|
|
14
|
+
'workspace': workspace,
|
|
15
|
+
'path': path,
|
|
16
|
+
},
|
|
17
|
+
query: {
|
|
18
|
+
'scheduled_for': scheduledFor,
|
|
19
|
+
'scheduled_in_secs': scheduledInSecs,
|
|
20
|
+
'parent_job': parentJob,
|
|
21
|
+
},
|
|
22
|
+
body: requestBody,
|
|
23
|
+
mediaType: 'application/json',
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* run flow by path
|
|
28
|
+
* @returns string job created
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }) {
|
|
32
|
+
return __request(OpenAPI, {
|
|
33
|
+
method: 'POST',
|
|
34
|
+
url: '/w/{workspace}/jobs/run/f/{path}',
|
|
35
|
+
path: {
|
|
36
|
+
'workspace': workspace,
|
|
37
|
+
'path': path,
|
|
38
|
+
},
|
|
39
|
+
query: {
|
|
40
|
+
'scheduled_for': scheduledFor,
|
|
41
|
+
'scheduled_in_secs': scheduledInSecs,
|
|
42
|
+
'parent_job': parentJob,
|
|
43
|
+
},
|
|
44
|
+
body: requestBody,
|
|
45
|
+
mediaType: 'application/json',
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* run script by hash
|
|
50
|
+
* @returns string job created
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, }) {
|
|
54
|
+
return __request(OpenAPI, {
|
|
55
|
+
method: 'POST',
|
|
56
|
+
url: '/w/{workspace}/jobs/run/h/{hash}',
|
|
57
|
+
path: {
|
|
58
|
+
'workspace': workspace,
|
|
59
|
+
'hash': hash,
|
|
60
|
+
},
|
|
61
|
+
query: {
|
|
62
|
+
'scheduled_for': scheduledFor,
|
|
63
|
+
'scheduled_in_secs': scheduledInSecs,
|
|
64
|
+
'parent_job': parentJob,
|
|
65
|
+
},
|
|
66
|
+
body: requestBody,
|
|
67
|
+
mediaType: 'application/json',
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* run script preview
|
|
72
|
+
* @returns string job created
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
static runScriptPreview({ workspace, requestBody, }) {
|
|
76
|
+
return __request(OpenAPI, {
|
|
77
|
+
method: 'POST',
|
|
78
|
+
url: '/w/{workspace}/jobs/run/preview',
|
|
79
|
+
path: {
|
|
80
|
+
'workspace': workspace,
|
|
81
|
+
},
|
|
82
|
+
body: requestBody,
|
|
83
|
+
mediaType: 'application/json',
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* run flow preview
|
|
88
|
+
* @returns string job created
|
|
89
|
+
* @throws ApiError
|
|
90
|
+
*/
|
|
91
|
+
static runFlowPreview({ workspace, requestBody, }) {
|
|
92
|
+
return __request(OpenAPI, {
|
|
93
|
+
method: 'POST',
|
|
94
|
+
url: '/w/{workspace}/jobs/run/preview_flow',
|
|
95
|
+
path: {
|
|
96
|
+
'workspace': workspace,
|
|
97
|
+
},
|
|
98
|
+
body: requestBody,
|
|
99
|
+
mediaType: 'application/json',
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* list all available queued jobs
|
|
104
|
+
* @returns QueuedJob All available queued jobs
|
|
105
|
+
* @throws ApiError
|
|
106
|
+
*/
|
|
107
|
+
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, success, jobKinds, }) {
|
|
108
|
+
return __request(OpenAPI, {
|
|
109
|
+
method: 'GET',
|
|
110
|
+
url: '/w/{workspace}/jobs/queue/list',
|
|
111
|
+
path: {
|
|
112
|
+
'workspace': workspace,
|
|
113
|
+
},
|
|
114
|
+
query: {
|
|
115
|
+
'order_desc': orderDesc,
|
|
116
|
+
'created_by': createdBy,
|
|
117
|
+
'parent_job': parentJob,
|
|
118
|
+
'script_path_exact': scriptPathExact,
|
|
119
|
+
'script_path_start': scriptPathStart,
|
|
120
|
+
'script_hash': scriptHash,
|
|
121
|
+
'created_before': createdBefore,
|
|
122
|
+
'created_after': createdAfter,
|
|
123
|
+
'success': success,
|
|
124
|
+
'job_kinds': jobKinds,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* list all available completed jobs
|
|
130
|
+
* @returns CompletedJob All available completed jobs
|
|
131
|
+
* @throws ApiError
|
|
132
|
+
*/
|
|
133
|
+
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, success, jobKinds, }) {
|
|
134
|
+
return __request(OpenAPI, {
|
|
135
|
+
method: 'GET',
|
|
136
|
+
url: '/w/{workspace}/jobs/completed/list',
|
|
137
|
+
path: {
|
|
138
|
+
'workspace': workspace,
|
|
139
|
+
},
|
|
140
|
+
query: {
|
|
141
|
+
'order_desc': orderDesc,
|
|
142
|
+
'created_by': createdBy,
|
|
143
|
+
'parent_job': parentJob,
|
|
144
|
+
'script_path_exact': scriptPathExact,
|
|
145
|
+
'script_path_start': scriptPathStart,
|
|
146
|
+
'script_hash': scriptHash,
|
|
147
|
+
'created_before': createdBefore,
|
|
148
|
+
'created_after': createdAfter,
|
|
149
|
+
'success': success,
|
|
150
|
+
'job_kinds': jobKinds,
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* list all available jobs
|
|
156
|
+
* @returns Job All jobs
|
|
157
|
+
* @throws ApiError
|
|
158
|
+
*/
|
|
159
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, jobKinds, success, }) {
|
|
160
|
+
return __request(OpenAPI, {
|
|
161
|
+
method: 'GET',
|
|
162
|
+
url: '/w/{workspace}/jobs/list',
|
|
163
|
+
path: {
|
|
164
|
+
'workspace': workspace,
|
|
165
|
+
},
|
|
166
|
+
query: {
|
|
167
|
+
'created_by': createdBy,
|
|
168
|
+
'parent_job': parentJob,
|
|
169
|
+
'script_path_exact': scriptPathExact,
|
|
170
|
+
'script_path_start': scriptPathStart,
|
|
171
|
+
'script_hash': scriptHash,
|
|
172
|
+
'created_before': createdBefore,
|
|
173
|
+
'created_after': createdAfter,
|
|
174
|
+
'job_kinds': jobKinds,
|
|
175
|
+
'success': success,
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* get job
|
|
181
|
+
* @returns Job job details
|
|
182
|
+
* @throws ApiError
|
|
183
|
+
*/
|
|
184
|
+
static getJob({ workspace, id, }) {
|
|
185
|
+
return __request(OpenAPI, {
|
|
186
|
+
method: 'GET',
|
|
187
|
+
url: '/w/{workspace}/jobs/get/{id}',
|
|
188
|
+
path: {
|
|
189
|
+
'workspace': workspace,
|
|
190
|
+
'id': id,
|
|
191
|
+
},
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* get job updates
|
|
196
|
+
* @returns any job details
|
|
197
|
+
* @throws ApiError
|
|
198
|
+
*/
|
|
199
|
+
static getJobUpdates({ workspace, id, running, logOffset, }) {
|
|
200
|
+
return __request(OpenAPI, {
|
|
201
|
+
method: 'GET',
|
|
202
|
+
url: '/w/{workspace}/jobs/getupdate/{id}',
|
|
203
|
+
path: {
|
|
204
|
+
'workspace': workspace,
|
|
205
|
+
'id': id,
|
|
206
|
+
},
|
|
207
|
+
query: {
|
|
208
|
+
'running': running,
|
|
209
|
+
'log_offset': logOffset,
|
|
210
|
+
},
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* get completed job
|
|
215
|
+
* @returns CompletedJob job details
|
|
216
|
+
* @throws ApiError
|
|
217
|
+
*/
|
|
218
|
+
static getCompletedJob({ workspace, id, }) {
|
|
219
|
+
return __request(OpenAPI, {
|
|
220
|
+
method: 'GET',
|
|
221
|
+
url: '/w/{workspace}/jobs/completed/get/{id}',
|
|
222
|
+
path: {
|
|
223
|
+
'workspace': workspace,
|
|
224
|
+
'id': id,
|
|
225
|
+
},
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* delete completed job (erase content but keep run id)
|
|
230
|
+
* @returns CompletedJob job details
|
|
231
|
+
* @throws ApiError
|
|
232
|
+
*/
|
|
233
|
+
static deleteCompletedJob({ workspace, id, }) {
|
|
234
|
+
return __request(OpenAPI, {
|
|
235
|
+
method: 'POST',
|
|
236
|
+
url: '/w/{workspace}/jobs/completed/delete/{id}',
|
|
237
|
+
path: {
|
|
238
|
+
'workspace': workspace,
|
|
239
|
+
'id': id,
|
|
240
|
+
},
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* cancel queued job
|
|
245
|
+
* @returns string job canceled
|
|
246
|
+
* @throws ApiError
|
|
247
|
+
*/
|
|
248
|
+
static cancelQueuedJob({ workspace, id, requestBody, }) {
|
|
249
|
+
return __request(OpenAPI, {
|
|
250
|
+
method: 'POST',
|
|
251
|
+
url: '/w/{workspace}/jobs/queue/cancel/{id}',
|
|
252
|
+
path: {
|
|
253
|
+
'workspace': workspace,
|
|
254
|
+
'id': id,
|
|
255
|
+
},
|
|
256
|
+
body: requestBody,
|
|
257
|
+
mediaType: 'application/json',
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class ResourceService {
|
|
4
|
+
/**
|
|
5
|
+
* create resource
|
|
6
|
+
* @returns string resource created
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static createResource({ workspace, requestBody, }) {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'POST',
|
|
12
|
+
url: '/w/{workspace}/resources/create',
|
|
13
|
+
path: {
|
|
14
|
+
'workspace': workspace,
|
|
15
|
+
},
|
|
16
|
+
body: requestBody,
|
|
17
|
+
mediaType: 'application/json',
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* delete resource
|
|
22
|
+
* @returns string resource deleted
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
static deleteResource({ workspace, path, }) {
|
|
26
|
+
return __request(OpenAPI, {
|
|
27
|
+
method: 'DELETE',
|
|
28
|
+
url: '/w/{workspace}/resources/delete/{path}',
|
|
29
|
+
path: {
|
|
30
|
+
'workspace': workspace,
|
|
31
|
+
'path': path,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* update resource
|
|
37
|
+
* @returns string resource updated
|
|
38
|
+
* @throws ApiError
|
|
39
|
+
*/
|
|
40
|
+
static updateResource({ workspace, path, requestBody, }) {
|
|
41
|
+
return __request(OpenAPI, {
|
|
42
|
+
method: 'POST',
|
|
43
|
+
url: '/w/{workspace}/resources/update/{path}',
|
|
44
|
+
path: {
|
|
45
|
+
'workspace': workspace,
|
|
46
|
+
'path': path,
|
|
47
|
+
},
|
|
48
|
+
body: requestBody,
|
|
49
|
+
mediaType: 'application/json',
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* get resource
|
|
54
|
+
* @returns Resource resource deleted
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
static getResource({ workspace, path, }) {
|
|
58
|
+
return __request(OpenAPI, {
|
|
59
|
+
method: 'GET',
|
|
60
|
+
url: '/w/{workspace}/resources/get/{path}',
|
|
61
|
+
path: {
|
|
62
|
+
'workspace': workspace,
|
|
63
|
+
'path': path,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* list resources
|
|
69
|
+
* @returns Resource resource list
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static listResource({ workspace, page, perPage, resourceType, }) {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: 'GET',
|
|
75
|
+
url: '/w/{workspace}/resources/list',
|
|
76
|
+
path: {
|
|
77
|
+
'workspace': workspace,
|
|
78
|
+
},
|
|
79
|
+
query: {
|
|
80
|
+
'page': page,
|
|
81
|
+
'per_page': perPage,
|
|
82
|
+
'resource_type': resourceType,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* create resource_type
|
|
88
|
+
* @returns string resource_type created
|
|
89
|
+
* @throws ApiError
|
|
90
|
+
*/
|
|
91
|
+
static createResourceType({ workspace, requestBody, }) {
|
|
92
|
+
return __request(OpenAPI, {
|
|
93
|
+
method: 'POST',
|
|
94
|
+
url: '/w/{workspace}/resources/type/create',
|
|
95
|
+
path: {
|
|
96
|
+
'workspace': workspace,
|
|
97
|
+
},
|
|
98
|
+
body: requestBody,
|
|
99
|
+
mediaType: 'application/json',
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* delete resource_type
|
|
104
|
+
* @returns string resource_type deleted
|
|
105
|
+
* @throws ApiError
|
|
106
|
+
*/
|
|
107
|
+
static deleteResourceType({ workspace, path, }) {
|
|
108
|
+
return __request(OpenAPI, {
|
|
109
|
+
method: 'DELETE',
|
|
110
|
+
url: '/w/{workspace}/resources/type/delete/{path}',
|
|
111
|
+
path: {
|
|
112
|
+
'workspace': workspace,
|
|
113
|
+
'path': path,
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* update resource_type
|
|
119
|
+
* @returns string resource_type updated
|
|
120
|
+
* @throws ApiError
|
|
121
|
+
*/
|
|
122
|
+
static updateResourceType({ workspace, path, requestBody, }) {
|
|
123
|
+
return __request(OpenAPI, {
|
|
124
|
+
method: 'POST',
|
|
125
|
+
url: '/w/{workspace}/resources/type/update/{path}',
|
|
126
|
+
path: {
|
|
127
|
+
'workspace': workspace,
|
|
128
|
+
'path': path,
|
|
129
|
+
},
|
|
130
|
+
body: requestBody,
|
|
131
|
+
mediaType: 'application/json',
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* get resource_type
|
|
136
|
+
* @returns ResourceType resource_type deleted
|
|
137
|
+
* @throws ApiError
|
|
138
|
+
*/
|
|
139
|
+
static getResourceType({ workspace, path, }) {
|
|
140
|
+
return __request(OpenAPI, {
|
|
141
|
+
method: 'GET',
|
|
142
|
+
url: '/w/{workspace}/resources/type/get/{path}',
|
|
143
|
+
path: {
|
|
144
|
+
'workspace': workspace,
|
|
145
|
+
'path': path,
|
|
146
|
+
},
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* list resource_types
|
|
151
|
+
* @returns ResourceType resource_type list
|
|
152
|
+
* @throws ApiError
|
|
153
|
+
*/
|
|
154
|
+
static listResourceType({ workspace, }) {
|
|
155
|
+
return __request(OpenAPI, {
|
|
156
|
+
method: 'GET',
|
|
157
|
+
url: '/w/{workspace}/resources/type/list',
|
|
158
|
+
path: {
|
|
159
|
+
'workspace': workspace,
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* list resource_types names
|
|
165
|
+
* @returns string resource_type list
|
|
166
|
+
* @throws ApiError
|
|
167
|
+
*/
|
|
168
|
+
static listResourceTypeNames({ workspace, }) {
|
|
169
|
+
return __request(OpenAPI, {
|
|
170
|
+
method: 'GET',
|
|
171
|
+
url: '/w/{workspace}/resources/type/listnames',
|
|
172
|
+
path: {
|
|
173
|
+
'workspace': workspace,
|
|
174
|
+
},
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class ScheduleService {
|
|
4
|
+
/**
|
|
5
|
+
* preview schedule
|
|
6
|
+
* @returns string the preview of the next 10 time this schedule would apply to
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static previewSchedule({ requestBody, }) {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'POST',
|
|
12
|
+
url: '/schedules/preview',
|
|
13
|
+
body: requestBody,
|
|
14
|
+
mediaType: 'application/json',
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* create schedule
|
|
19
|
+
* @returns string schedule created
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
static createSchedule({ workspace, requestBody, }) {
|
|
23
|
+
return __request(OpenAPI, {
|
|
24
|
+
method: 'POST',
|
|
25
|
+
url: '/w/{workspace}/schedules/create',
|
|
26
|
+
path: {
|
|
27
|
+
'workspace': workspace,
|
|
28
|
+
},
|
|
29
|
+
body: requestBody,
|
|
30
|
+
mediaType: 'application/json',
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* update schedule
|
|
35
|
+
* @returns string schedule updated
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
static updateSchedule({ workspace, path, requestBody, }) {
|
|
39
|
+
return __request(OpenAPI, {
|
|
40
|
+
method: 'POST',
|
|
41
|
+
url: '/w/{workspace}/schedules/update/{path}',
|
|
42
|
+
path: {
|
|
43
|
+
'workspace': workspace,
|
|
44
|
+
'path': path,
|
|
45
|
+
},
|
|
46
|
+
body: requestBody,
|
|
47
|
+
mediaType: 'application/json',
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* set enabled schedule
|
|
52
|
+
* @returns string schedule enabled set
|
|
53
|
+
* @throws ApiError
|
|
54
|
+
*/
|
|
55
|
+
static setScheduleEnabled({ workspace, path, requestBody, }) {
|
|
56
|
+
return __request(OpenAPI, {
|
|
57
|
+
method: 'POST',
|
|
58
|
+
url: '/w/{workspace}/schedules/setenabled/{path}',
|
|
59
|
+
path: {
|
|
60
|
+
'workspace': workspace,
|
|
61
|
+
'path': path,
|
|
62
|
+
},
|
|
63
|
+
body: requestBody,
|
|
64
|
+
mediaType: 'application/json',
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* get schedule
|
|
69
|
+
* @returns Schedule schedule deleted
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static getSchedule({ workspace, path, }) {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: 'GET',
|
|
75
|
+
url: '/w/{workspace}/schedules/get/{path}',
|
|
76
|
+
path: {
|
|
77
|
+
'workspace': workspace,
|
|
78
|
+
'path': path,
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* list schedules
|
|
84
|
+
* @returns Schedule schedule list
|
|
85
|
+
* @throws ApiError
|
|
86
|
+
*/
|
|
87
|
+
static listSchedules({ workspace, page, perPage, }) {
|
|
88
|
+
return __request(OpenAPI, {
|
|
89
|
+
method: 'GET',
|
|
90
|
+
url: '/w/{workspace}/schedules/list',
|
|
91
|
+
path: {
|
|
92
|
+
'workspace': workspace,
|
|
93
|
+
},
|
|
94
|
+
query: {
|
|
95
|
+
'page': page,
|
|
96
|
+
'per_page': perPage,
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|