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
|
File without changes
|
|
@@ -4,7 +4,7 @@ import Tooltip from './Tooltip.svelte';
|
|
|
4
4
|
import json from 'svelte-highlight/languages/json';
|
|
5
5
|
import github from 'svelte-highlight/styles/github';
|
|
6
6
|
import { Highlight } from 'svelte-highlight';
|
|
7
|
-
import { ResourceService } from '
|
|
7
|
+
import { ResourceService } from '../gen';
|
|
8
8
|
import { workspaceStore } from '../stores';
|
|
9
9
|
export let value;
|
|
10
10
|
let resourceViewer;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { faPlus } from '@fortawesome/free-solid-svg-icons';
|
|
2
2
|
import { emptySchema, loadSchema } from '../utils';
|
|
3
3
|
import Icon from 'svelte-awesome';
|
|
4
|
-
import { FlowModuleValue, ScriptService } from '
|
|
4
|
+
import { FlowModuleValue, ScriptService } from '../gen';
|
|
5
5
|
import SchemaEditor from './SchemaEditor.svelte';
|
|
6
6
|
import { workspaceStore } from '../stores';
|
|
7
7
|
import ModuleStep from './ModuleStep.svelte';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { faChevronDown, faChevronUp } from '@fortawesome/free-solid-svg-icons';
|
|
2
2
|
import { sendUserToast, truncateRev } from '../utils';
|
|
3
3
|
import Icon from 'svelte-awesome';
|
|
4
|
-
import { Job, JobService, InputTransform } from '
|
|
4
|
+
import { Job, JobService, InputTransform } from '../gen';
|
|
5
5
|
import { workspaceStore } from '../stores';
|
|
6
6
|
import RunForm from './RunForm.svelte';
|
|
7
7
|
import FlowStatusViewer from './FlowStatusViewer.svelte';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { type Flow } from '
|
|
3
|
-
import type { Schema } from '
|
|
2
|
+
import { type Flow } from '../gen';
|
|
3
|
+
import type { Schema } from '../common';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
6
6
|
i: number;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { truncateRev } from '../utils';
|
|
3
3
|
import Icon from 'svelte-awesome';
|
|
4
4
|
import { check } from 'svelte-awesome/icons';
|
|
5
|
-
import { CompletedJob, FlowModuleValue, FlowStatusModule, JobService, QueuedJob } from '
|
|
5
|
+
import { CompletedJob, FlowModuleValue, FlowStatusModule, JobService, QueuedJob } from '../gen';
|
|
6
6
|
import { workspaceStore } from '../stores';
|
|
7
7
|
import DisplayResult from './DisplayResult.svelte';
|
|
8
8
|
import ChevronButton from './ChevronButton.svelte';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>import { userStore, workspaceStore } from '../stores';
|
|
2
2
|
import Modal from './Modal.svelte';
|
|
3
|
-
import { GroupService, UserService } from '
|
|
3
|
+
import { GroupService, UserService } from '../gen';
|
|
4
4
|
import AutoComplete from 'simple-svelte-autocomplete';
|
|
5
5
|
import PageHeader from './PageHeader.svelte';
|
|
6
6
|
import TableCustom from './TableCustom.svelte';
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { sendUserToast } from '../utils';
|
|
2
2
|
import Switch from './Switch.svelte';
|
|
3
3
|
import { createEventDispatcher } from 'svelte';
|
|
4
|
-
import { UserService } from '
|
|
4
|
+
import { UserService } from '../gen';
|
|
5
5
|
const dispatch = createEventDispatcher();
|
|
6
6
|
let valid = true;
|
|
7
7
|
let modal;
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import Switch from './Switch.svelte';
|
|
3
3
|
import { createEventDispatcher } from 'svelte';
|
|
4
4
|
import { workspaceStore } from '../stores';
|
|
5
|
-
import { WorkspaceService } from '
|
|
5
|
+
import { WorkspaceService } from '../gen';
|
|
6
6
|
const dispatch = createEventDispatcher();
|
|
7
7
|
let valid = true;
|
|
8
8
|
let modal;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { Schema } from '
|
|
3
|
-
import type { Flow, FlowModule } from '
|
|
2
|
+
import type { Schema } from '../common';
|
|
3
|
+
import type { Flow, FlowModule } from '../gen';
|
|
4
4
|
import SchemaForm from './SchemaForm.svelte';
|
|
5
5
|
declare const __propDef: {
|
|
6
6
|
props: {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/components/Path.svelte
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script>import { ResourceService, VariableService } from '
|
|
1
|
+
<script>import { ResourceService, VariableService } from '../gen';
|
|
2
2
|
import { allTrue, emptySchema, sendUserToast } from '../utils';
|
|
3
3
|
import { createEventDispatcher } from 'svelte';
|
|
4
4
|
import Modal from './Modal.svelte';
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>import { createEventDispatcher } from 'svelte';
|
|
2
|
-
import { ResourceService } from '
|
|
2
|
+
import { ResourceService } from '../gen';
|
|
3
3
|
import { workspaceStore } from '../stores';
|
|
4
4
|
import IconedResourceType from './IconedResourceType.svelte';
|
|
5
5
|
let resources = [];
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { SchemaProperty } from '
|
|
2
|
+
import type { SchemaProperty } from '../common';
|
|
3
3
|
export declare const ARG_TYPES: readonly ["integer", "number", "string", "boolean", "object", "array"];
|
|
4
4
|
export declare type ArgType = typeof ARG_TYPES[number];
|
|
5
5
|
export interface ModalSchemaProperty {
|
|
@@ -46,7 +46,7 @@ export async function main(x: string, y: string = 'default arg') {
|
|
|
46
46
|
`
|
|
47
47
|
</script>
|
|
48
48
|
|
|
49
|
-
<script>import { ScriptService } from '
|
|
49
|
+
<script>import { ScriptService } from '../gen';
|
|
50
50
|
import { emptySchema, sendUserToast } from '../utils';
|
|
51
51
|
import { onDestroy } from 'svelte';
|
|
52
52
|
import ScriptEditor from './ScriptEditor.svelte';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script>import { JobService, Job, CompletedJob, VariableService, ResourceService, ScriptService } from '
|
|
1
|
+
<script>import { JobService, Job, CompletedJob, VariableService, ResourceService, ScriptService } from '../gen';
|
|
2
2
|
import { sendUserToast, emptySchema, displayDate } from '../utils';
|
|
3
3
|
import { fade } from 'svelte/transition';
|
|
4
4
|
import Icon from 'svelte-awesome';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { Schema } from '
|
|
2
|
+
import type { Schema } from '../common';
|
|
3
3
|
import Editor from './Editor.svelte';
|
|
4
|
-
import type { Preview } from '
|
|
4
|
+
import type { Preview } from '../gen/models/Preview';
|
|
5
5
|
declare const __propDef: {
|
|
6
6
|
props: {
|
|
7
7
|
schema?: Schema | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>import { sendUserToast } from '../utils';
|
|
2
|
-
import { ScriptService, FlowService, Script } from '
|
|
2
|
+
import { ScriptService, FlowService, Script } from '../gen';
|
|
3
3
|
import Icon from 'svelte-awesome';
|
|
4
4
|
import { faSearch } from '@fortawesome/free-solid-svg-icons';
|
|
5
5
|
import { hubScripts, workspaceStore } from '../stores';
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>import Modal from './Modal.svelte';
|
|
2
2
|
import TableCustom from './TableCustom.svelte';
|
|
3
|
-
import { GranularAclService } from '
|
|
3
|
+
import { GranularAclService } from '../gen/services/GranularAclService';
|
|
4
4
|
import { sendUserToast } from '../utils';
|
|
5
|
-
import { GroupService, UserService } from '
|
|
5
|
+
import { GroupService, UserService } from '../gen';
|
|
6
6
|
import { createEventDispatcher } from 'svelte';
|
|
7
7
|
import AutoComplete from 'simple-svelte-autocomplete';
|
|
8
8
|
import { workspaceStore } from '../stores';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>import Password from './Password.svelte';
|
|
2
2
|
import { sendUserToast } from '../utils';
|
|
3
|
-
import { VariableService } from '
|
|
3
|
+
import { VariableService } from '../gen';
|
|
4
4
|
import AutosizedTextarea from './AutosizedTextarea.svelte';
|
|
5
5
|
import Path from './Path.svelte';
|
|
6
6
|
import Modal from './Modal.svelte';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export class CancelError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = 'CancelError';
|
|
8
|
+
}
|
|
9
|
+
get isCancelled() {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export class CancelablePromise {
|
|
14
|
+
constructor(executor) {
|
|
15
|
+
this._isResolved = false;
|
|
16
|
+
this._isRejected = false;
|
|
17
|
+
this._isCancelled = false;
|
|
18
|
+
this._cancelHandlers = [];
|
|
19
|
+
this._promise = new Promise((resolve, reject) => {
|
|
20
|
+
this._resolve = resolve;
|
|
21
|
+
this._reject = reject;
|
|
22
|
+
const onResolve = (value) => {
|
|
23
|
+
if (this._isResolved || this._isRejected || this._isCancelled) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
this._isResolved = true;
|
|
27
|
+
this._resolve?.(value);
|
|
28
|
+
};
|
|
29
|
+
const onReject = (reason) => {
|
|
30
|
+
if (this._isResolved || this._isRejected || this._isCancelled) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this._isRejected = true;
|
|
34
|
+
this._reject?.(reason);
|
|
35
|
+
};
|
|
36
|
+
const onCancel = (cancelHandler) => {
|
|
37
|
+
if (this._isResolved || this._isRejected || this._isCancelled) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
this._cancelHandlers.push(cancelHandler);
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(onCancel, 'isResolved', {
|
|
43
|
+
get: () => this._isResolved,
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(onCancel, 'isRejected', {
|
|
46
|
+
get: () => this._isRejected,
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(onCancel, 'isCancelled', {
|
|
49
|
+
get: () => this._isCancelled,
|
|
50
|
+
});
|
|
51
|
+
return executor(onResolve, onReject, onCancel);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
then(onFulfilled, onRejected) {
|
|
55
|
+
return this._promise.then(onFulfilled, onRejected);
|
|
56
|
+
}
|
|
57
|
+
catch(onRejected) {
|
|
58
|
+
return this._promise.catch(onRejected);
|
|
59
|
+
}
|
|
60
|
+
finally(onFinally) {
|
|
61
|
+
return this._promise.finally(onFinally);
|
|
62
|
+
}
|
|
63
|
+
cancel() {
|
|
64
|
+
if (this._isResolved || this._isRejected || this._isCancelled) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this._isCancelled = true;
|
|
68
|
+
if (this._cancelHandlers.length) {
|
|
69
|
+
try {
|
|
70
|
+
for (const cancelHandler of this._cancelHandlers) {
|
|
71
|
+
cancelHandler();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
console.warn('Cancellation threw an error', error);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
this._cancelHandlers.length = 0;
|
|
80
|
+
this._reject?.(new CancelError('Request aborted'));
|
|
81
|
+
}
|
|
82
|
+
get isCancelled() {
|
|
83
|
+
return this._isCancelled;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
Symbol.toStringTag;
|