windmill-components 1.13.1 → 1.13.2
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/{lib/components → components}/Editor.svelte.d.ts +0 -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/{lib/components → components}/SchemaEditor.svelte.d.ts +1 -1
- 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,261 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { ApiError } from './ApiError';
|
|
5
|
+
import { CancelablePromise } from './CancelablePromise';
|
|
6
|
+
const isDefined = (value) => {
|
|
7
|
+
return value !== undefined && value !== null;
|
|
8
|
+
};
|
|
9
|
+
const isString = (value) => {
|
|
10
|
+
return typeof value === 'string';
|
|
11
|
+
};
|
|
12
|
+
const isStringWithValue = (value) => {
|
|
13
|
+
return isString(value) && value !== '';
|
|
14
|
+
};
|
|
15
|
+
const isBlob = (value) => {
|
|
16
|
+
return (typeof value === 'object' &&
|
|
17
|
+
typeof value.type === 'string' &&
|
|
18
|
+
typeof value.stream === 'function' &&
|
|
19
|
+
typeof value.arrayBuffer === 'function' &&
|
|
20
|
+
typeof value.constructor === 'function' &&
|
|
21
|
+
typeof value.constructor.name === 'string' &&
|
|
22
|
+
/^(Blob|File)$/.test(value.constructor.name) &&
|
|
23
|
+
/^(Blob|File)$/.test(value[Symbol.toStringTag]));
|
|
24
|
+
};
|
|
25
|
+
const isFormData = (value) => {
|
|
26
|
+
return value instanceof FormData;
|
|
27
|
+
};
|
|
28
|
+
const base64 = (str) => {
|
|
29
|
+
try {
|
|
30
|
+
return btoa(str);
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
return Buffer.from(str).toString('base64');
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const getQueryString = (params) => {
|
|
38
|
+
const qs = [];
|
|
39
|
+
const append = (key, value) => {
|
|
40
|
+
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
|
41
|
+
};
|
|
42
|
+
const process = (key, value) => {
|
|
43
|
+
if (isDefined(value)) {
|
|
44
|
+
if (Array.isArray(value)) {
|
|
45
|
+
value.forEach(v => {
|
|
46
|
+
process(key, v);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
else if (typeof value === 'object') {
|
|
50
|
+
Object.entries(value).forEach(([k, v]) => {
|
|
51
|
+
process(`${key}[${k}]`, v);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
append(key, value);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
60
|
+
process(key, value);
|
|
61
|
+
});
|
|
62
|
+
if (qs.length > 0) {
|
|
63
|
+
return `?${qs.join('&')}`;
|
|
64
|
+
}
|
|
65
|
+
return '';
|
|
66
|
+
};
|
|
67
|
+
const getUrl = (config, options) => {
|
|
68
|
+
const encoder = config.ENCODE_PATH || encodeURI;
|
|
69
|
+
const path = options.url
|
|
70
|
+
.replace('{api-version}', config.VERSION)
|
|
71
|
+
.replace(/{(.*?)}/g, (substring, group) => {
|
|
72
|
+
if (options.path?.hasOwnProperty(group)) {
|
|
73
|
+
return encoder(String(options.path[group]));
|
|
74
|
+
}
|
|
75
|
+
return substring;
|
|
76
|
+
});
|
|
77
|
+
const url = `${config.BASE}${path}`;
|
|
78
|
+
if (options.query) {
|
|
79
|
+
return `${url}${getQueryString(options.query)}`;
|
|
80
|
+
}
|
|
81
|
+
return url;
|
|
82
|
+
};
|
|
83
|
+
const getFormData = (options) => {
|
|
84
|
+
if (options.formData) {
|
|
85
|
+
const formData = new FormData();
|
|
86
|
+
const process = (key, value) => {
|
|
87
|
+
if (isString(value) || isBlob(value)) {
|
|
88
|
+
formData.append(key, value);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
formData.append(key, JSON.stringify(value));
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
Object.entries(options.formData)
|
|
95
|
+
.filter(([_, value]) => isDefined(value))
|
|
96
|
+
.forEach(([key, value]) => {
|
|
97
|
+
if (Array.isArray(value)) {
|
|
98
|
+
value.forEach(v => process(key, v));
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
process(key, value);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
return formData;
|
|
105
|
+
}
|
|
106
|
+
return undefined;
|
|
107
|
+
};
|
|
108
|
+
const resolve = async (options, resolver) => {
|
|
109
|
+
if (typeof resolver === 'function') {
|
|
110
|
+
return resolver(options);
|
|
111
|
+
}
|
|
112
|
+
return resolver;
|
|
113
|
+
};
|
|
114
|
+
const getHeaders = async (config, options) => {
|
|
115
|
+
const token = await resolve(options, config.TOKEN);
|
|
116
|
+
const username = await resolve(options, config.USERNAME);
|
|
117
|
+
const password = await resolve(options, config.PASSWORD);
|
|
118
|
+
const additionalHeaders = await resolve(options, config.HEADERS);
|
|
119
|
+
const headers = Object.entries({
|
|
120
|
+
Accept: 'application/json',
|
|
121
|
+
...additionalHeaders,
|
|
122
|
+
...options.headers,
|
|
123
|
+
})
|
|
124
|
+
.filter(([_, value]) => isDefined(value))
|
|
125
|
+
.reduce((headers, [key, value]) => ({
|
|
126
|
+
...headers,
|
|
127
|
+
[key]: String(value),
|
|
128
|
+
}), {});
|
|
129
|
+
if (isStringWithValue(token)) {
|
|
130
|
+
headers['Authorization'] = `Bearer ${token}`;
|
|
131
|
+
}
|
|
132
|
+
if (isStringWithValue(username) && isStringWithValue(password)) {
|
|
133
|
+
const credentials = base64(`${username}:${password}`);
|
|
134
|
+
headers['Authorization'] = `Basic ${credentials}`;
|
|
135
|
+
}
|
|
136
|
+
if (options.body) {
|
|
137
|
+
if (options.mediaType) {
|
|
138
|
+
headers['Content-Type'] = options.mediaType;
|
|
139
|
+
}
|
|
140
|
+
else if (isBlob(options.body)) {
|
|
141
|
+
headers['Content-Type'] = options.body.type || 'application/octet-stream';
|
|
142
|
+
}
|
|
143
|
+
else if (isString(options.body)) {
|
|
144
|
+
headers['Content-Type'] = 'text/plain';
|
|
145
|
+
}
|
|
146
|
+
else if (!isFormData(options.body)) {
|
|
147
|
+
headers['Content-Type'] = 'application/json';
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return new Headers(headers);
|
|
151
|
+
};
|
|
152
|
+
const getRequestBody = (options) => {
|
|
153
|
+
if (options.body) {
|
|
154
|
+
if (options.mediaType?.includes('/json')) {
|
|
155
|
+
return JSON.stringify(options.body);
|
|
156
|
+
}
|
|
157
|
+
else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
|
|
158
|
+
return options.body;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
return JSON.stringify(options.body);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return undefined;
|
|
165
|
+
};
|
|
166
|
+
export const sendRequest = async (config, options, url, body, formData, headers, onCancel) => {
|
|
167
|
+
const controller = new AbortController();
|
|
168
|
+
const request = {
|
|
169
|
+
headers,
|
|
170
|
+
body: body ?? formData,
|
|
171
|
+
method: options.method,
|
|
172
|
+
signal: controller.signal,
|
|
173
|
+
};
|
|
174
|
+
if (config.WITH_CREDENTIALS) {
|
|
175
|
+
request.credentials = config.CREDENTIALS;
|
|
176
|
+
}
|
|
177
|
+
onCancel(() => controller.abort());
|
|
178
|
+
return await fetch(url, request);
|
|
179
|
+
};
|
|
180
|
+
const getResponseHeader = (response, responseHeader) => {
|
|
181
|
+
if (responseHeader) {
|
|
182
|
+
const content = response.headers.get(responseHeader);
|
|
183
|
+
if (isString(content)) {
|
|
184
|
+
return content;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return undefined;
|
|
188
|
+
};
|
|
189
|
+
const getResponseBody = async (response) => {
|
|
190
|
+
if (response.status !== 204) {
|
|
191
|
+
try {
|
|
192
|
+
const contentType = response.headers.get('Content-Type');
|
|
193
|
+
if (contentType) {
|
|
194
|
+
const isJSON = contentType.toLowerCase().startsWith('application/json');
|
|
195
|
+
if (isJSON) {
|
|
196
|
+
return await response.json();
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
return await response.text();
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
catch (error) {
|
|
204
|
+
console.error(error);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return undefined;
|
|
208
|
+
};
|
|
209
|
+
const catchErrorCodes = (options, result) => {
|
|
210
|
+
const errors = {
|
|
211
|
+
400: 'Bad Request',
|
|
212
|
+
401: 'Unauthorized',
|
|
213
|
+
403: 'Forbidden',
|
|
214
|
+
404: 'Not Found',
|
|
215
|
+
500: 'Internal Server Error',
|
|
216
|
+
502: 'Bad Gateway',
|
|
217
|
+
503: 'Service Unavailable',
|
|
218
|
+
...options.errors,
|
|
219
|
+
};
|
|
220
|
+
const error = errors[result.status];
|
|
221
|
+
if (error) {
|
|
222
|
+
throw new ApiError(result, error);
|
|
223
|
+
}
|
|
224
|
+
if (!result.ok) {
|
|
225
|
+
throw new ApiError(result, 'Generic Error');
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* Request method
|
|
230
|
+
* @param config The OpenAPI configuration object
|
|
231
|
+
* @param options The request options from the service
|
|
232
|
+
* @returns CancelablePromise<T>
|
|
233
|
+
* @throws ApiError
|
|
234
|
+
*/
|
|
235
|
+
export const request = (config, options) => {
|
|
236
|
+
return new CancelablePromise(async (resolve, reject, onCancel) => {
|
|
237
|
+
try {
|
|
238
|
+
const url = getUrl(config, options);
|
|
239
|
+
const formData = getFormData(options);
|
|
240
|
+
const body = getRequestBody(options);
|
|
241
|
+
const headers = await getHeaders(config, options);
|
|
242
|
+
if (!onCancel.isCancelled) {
|
|
243
|
+
const response = await sendRequest(config, options, url, body, formData, headers, onCancel);
|
|
244
|
+
const responseBody = await getResponseBody(response);
|
|
245
|
+
const responseHeader = getResponseHeader(response, options.responseHeader);
|
|
246
|
+
const result = {
|
|
247
|
+
url,
|
|
248
|
+
ok: response.ok,
|
|
249
|
+
status: response.status,
|
|
250
|
+
statusText: response.statusText,
|
|
251
|
+
body: responseHeader ?? responseBody,
|
|
252
|
+
};
|
|
253
|
+
catchErrorCodes(options, result);
|
|
254
|
+
resolve(result.body);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
catch (error) {
|
|
258
|
+
reject(error);
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
};
|
package/gen/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export { ApiError } from './core/ApiError';
|
|
5
|
+
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
6
|
+
export { OpenAPI } from './core/OpenAPI';
|
|
7
|
+
export { AuditLog } from './models/AuditLog';
|
|
8
|
+
export { CompletedJob } from './models/CompletedJob';
|
|
9
|
+
export { FlowModuleValue } from './models/FlowModuleValue';
|
|
10
|
+
export { FlowStatusModule } from './models/FlowStatusModule';
|
|
11
|
+
export { GlobalUserInfo } from './models/GlobalUserInfo';
|
|
12
|
+
export { InputTransform } from './models/InputTransform';
|
|
13
|
+
export { Job } from './models/Job';
|
|
14
|
+
export { Preview } from './models/Preview';
|
|
15
|
+
export { QueuedJob } from './models/QueuedJob';
|
|
16
|
+
export { Script } from './models/Script';
|
|
17
|
+
export { AdminService } from './services/AdminService';
|
|
18
|
+
export { AuditService } from './services/AuditService';
|
|
19
|
+
export { FlowService } from './services/FlowService';
|
|
20
|
+
export { GranularAclService } from './services/GranularAclService';
|
|
21
|
+
export { GroupService } from './services/GroupService';
|
|
22
|
+
export { JobService } from './services/JobService';
|
|
23
|
+
export { ResourceService } from './services/ResourceService';
|
|
24
|
+
export { ScheduleService } from './services/ScheduleService';
|
|
25
|
+
export { ScriptService } from './services/ScriptService';
|
|
26
|
+
export { SettingsService } from './services/SettingsService';
|
|
27
|
+
export { UserService } from './services/UserService';
|
|
28
|
+
export { VariableService } from './services/VariableService';
|
|
29
|
+
export { WorkerService } from './services/WorkerService';
|
|
30
|
+
export { WorkspaceService } from './services/WorkspaceService';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export var AuditLog;
|
|
5
|
+
(function (AuditLog) {
|
|
6
|
+
let operation;
|
|
7
|
+
(function (operation) {
|
|
8
|
+
operation["JOBS_RUN"] = "jobs.run";
|
|
9
|
+
operation["SCRIPTS_CREATE"] = "scripts.create";
|
|
10
|
+
operation["SCRIPTS_UPDATE"] = "scripts.update";
|
|
11
|
+
operation["USERS_CREATE"] = "users.create";
|
|
12
|
+
operation["USERS_DELETE"] = "users.delete";
|
|
13
|
+
operation["USERS_SETPASSWORD"] = "users.setpassword";
|
|
14
|
+
operation["USERS_UPDATE"] = "users.update";
|
|
15
|
+
operation["USERS_LOGIN"] = "users.login";
|
|
16
|
+
operation["USERS_TOKEN_CREATE"] = "users.token.create";
|
|
17
|
+
operation["USERS_TOKEN_DELETE"] = "users.token.delete";
|
|
18
|
+
operation["VARIABLES_CREATE"] = "variables.create";
|
|
19
|
+
operation["VARIABLES_DELETE"] = "variables.delete";
|
|
20
|
+
operation["VARIABLES_UPDATE"] = "variables.update";
|
|
21
|
+
})(operation = AuditLog.operation || (AuditLog.operation = {}));
|
|
22
|
+
let action_kind;
|
|
23
|
+
(function (action_kind) {
|
|
24
|
+
action_kind["CREATED"] = "Created";
|
|
25
|
+
action_kind["UPDATED"] = "Updated";
|
|
26
|
+
action_kind["DELETE"] = "Delete";
|
|
27
|
+
action_kind["EXECUTE"] = "Execute";
|
|
28
|
+
})(action_kind = AuditLog.action_kind || (AuditLog.action_kind = {}));
|
|
29
|
+
})(AuditLog || (AuditLog = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export var CompletedJob;
|
|
5
|
+
(function (CompletedJob) {
|
|
6
|
+
let job_kind;
|
|
7
|
+
(function (job_kind) {
|
|
8
|
+
job_kind["SCRIPT"] = "script";
|
|
9
|
+
job_kind["PREVIEW"] = "preview";
|
|
10
|
+
job_kind["DEPENDENCIES"] = "dependencies";
|
|
11
|
+
job_kind["FLOW"] = "flow";
|
|
12
|
+
job_kind["FLOWPREVIEW"] = "flowpreview";
|
|
13
|
+
})(job_kind = CompletedJob.job_kind || (CompletedJob.job_kind = {}));
|
|
14
|
+
let language;
|
|
15
|
+
(function (language) {
|
|
16
|
+
language["PYTHON3"] = "python3";
|
|
17
|
+
language["DENO"] = "deno";
|
|
18
|
+
})(language = CompletedJob.language || (CompletedJob.language = {}));
|
|
19
|
+
})(CompletedJob || (CompletedJob = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export var FlowModuleValue;
|
|
5
|
+
(function (FlowModuleValue) {
|
|
6
|
+
let type;
|
|
7
|
+
(function (type) {
|
|
8
|
+
type["SCRIPT"] = "script";
|
|
9
|
+
type["FLOW"] = "flow";
|
|
10
|
+
})(type = FlowModuleValue.type || (FlowModuleValue.type = {}));
|
|
11
|
+
})(FlowModuleValue || (FlowModuleValue = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export var FlowStatusModule;
|
|
5
|
+
(function (FlowStatusModule) {
|
|
6
|
+
let type;
|
|
7
|
+
(function (type) {
|
|
8
|
+
type["WAITING_FOR_PRIOR_STEPS"] = "WaitingForPriorSteps";
|
|
9
|
+
type["WAITING_FOR_EVENT"] = "WaitingForEvent";
|
|
10
|
+
type["WAITING_FOR_EXECUTOR"] = "WaitingForExecutor";
|
|
11
|
+
type["IN_PROGRESS"] = "InProgress";
|
|
12
|
+
type["SUCCESS"] = "Success";
|
|
13
|
+
type["FAILURE"] = "Failure";
|
|
14
|
+
})(type = FlowStatusModule.type || (FlowStatusModule.type = {}));
|
|
15
|
+
})(FlowStatusModule || (FlowStatusModule = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export var GlobalUserInfo;
|
|
5
|
+
(function (GlobalUserInfo) {
|
|
6
|
+
let login_type;
|
|
7
|
+
(function (login_type) {
|
|
8
|
+
login_type["PASSWORD"] = "password";
|
|
9
|
+
login_type["GITHUB"] = "github";
|
|
10
|
+
})(login_type = GlobalUserInfo.login_type || (GlobalUserInfo.login_type = {}));
|
|
11
|
+
})(GlobalUserInfo || (GlobalUserInfo = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export var InputTransform;
|
|
5
|
+
(function (InputTransform) {
|
|
6
|
+
let type;
|
|
7
|
+
(function (type) {
|
|
8
|
+
type["STATIC"] = "static";
|
|
9
|
+
type["JAVASCRIPT"] = "javascript";
|
|
10
|
+
})(type = InputTransform.type || (InputTransform.type = {}));
|
|
11
|
+
})(InputTransform || (InputTransform = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export var Job;
|
|
5
|
+
(function (Job) {
|
|
6
|
+
let type;
|
|
7
|
+
(function (type) {
|
|
8
|
+
type["COMPLETED_JOB"] = "CompletedJob";
|
|
9
|
+
type["QUEUED_JOB"] = "QueuedJob";
|
|
10
|
+
})(type = Job.type || (Job.type = {}));
|
|
11
|
+
})(Job || (Job = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export var Preview;
|
|
5
|
+
(function (Preview) {
|
|
6
|
+
let language;
|
|
7
|
+
(function (language) {
|
|
8
|
+
language["PYTHON3"] = "python3";
|
|
9
|
+
language["DENO"] = "deno";
|
|
10
|
+
})(language = Preview.language || (Preview.language = {}));
|
|
11
|
+
})(Preview || (Preview = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export var QueuedJob;
|
|
5
|
+
(function (QueuedJob) {
|
|
6
|
+
let job_kind;
|
|
7
|
+
(function (job_kind) {
|
|
8
|
+
job_kind["SCRIPT"] = "script";
|
|
9
|
+
job_kind["PREVIEW"] = "preview";
|
|
10
|
+
job_kind["DEPENDENCIES"] = "dependencies";
|
|
11
|
+
job_kind["FLOW"] = "flow";
|
|
12
|
+
job_kind["FLOWPREVIEW"] = "flowpreview";
|
|
13
|
+
})(job_kind = QueuedJob.job_kind || (QueuedJob.job_kind = {}));
|
|
14
|
+
let language;
|
|
15
|
+
(function (language) {
|
|
16
|
+
language["PYTHON3"] = "python3";
|
|
17
|
+
language["DENO"] = "deno";
|
|
18
|
+
})(language = QueuedJob.language || (QueuedJob.language = {}));
|
|
19
|
+
})(QueuedJob || (QueuedJob = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export var Script;
|
|
5
|
+
(function (Script) {
|
|
6
|
+
let language;
|
|
7
|
+
(function (language) {
|
|
8
|
+
language["PYTHON3"] = "python3";
|
|
9
|
+
language["DENO"] = "deno";
|
|
10
|
+
})(language = Script.language || (Script.language = {}));
|
|
11
|
+
})(Script || (Script = {}));
|