windmill-components 1.22.42 → 1.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AppConnect.svelte +93 -47
- package/components/AppConnect.svelte.d.ts +2 -2
- package/components/ArgInfo.svelte +0 -5
- package/components/ArgInput.svelte +91 -64
- package/components/ArgInput.svelte.d.ts +8 -3
- package/components/Button.svelte +4 -4
- package/components/CenteredPage.svelte +1 -1
- package/components/CollapseLink.svelte +12 -0
- package/components/CollapseLink.svelte.d.ts +19 -0
- package/components/CronInput.svelte +84 -0
- package/components/CronInput.svelte.d.ts +18 -0
- package/components/DisplayResult.svelte +23 -7
- package/components/Editor.svelte +136 -66
- package/components/Editor.svelte.d.ts +2 -0
- package/components/EditorBar.svelte +56 -45
- package/components/FlowBuilder.svelte +150 -71
- package/components/FlowEditor.svelte +75 -200
- package/components/FlowEditor.svelte.d.ts +3 -2
- package/components/FlowJobResult.svelte +1 -1
- package/components/FlowPreview.svelte +18 -24
- package/components/FlowPreviewContent.svelte +68 -0
- package/components/FlowPreviewContent.svelte.d.ts +21 -0
- package/components/FlowStatusViewer.svelte +85 -37
- package/components/FlowStatusViewer.svelte.d.ts +3 -2
- package/components/FlowViewer.svelte +77 -45
- package/components/FlowViewer.svelte.d.ts +1 -1
- package/components/IconedResourceType.svelte +30 -5
- package/components/InputTransformForm.svelte +209 -0
- package/components/InputTransformForm.svelte.d.ts +26 -0
- package/components/InviteGlobalUser.svelte +2 -2
- package/components/InviteUser.svelte +2 -2
- package/components/JobStatus.svelte +32 -25
- package/components/Modal.svelte +44 -42
- package/components/ModuleStep.svelte +94 -79
- package/components/ObjectResourceInput.svelte +58 -38
- package/components/ObjectTypeNarrowing.svelte +4 -19
- package/components/Path.svelte +1 -0
- package/components/Path.svelte.d.ts +1 -1
- package/components/RadioButton.svelte +11 -96
- package/components/RadioButton.svelte.d.ts +4 -2
- package/components/ResourceEditor.svelte +4 -5
- package/components/ResourceEditor.svelte.d.ts +2 -2
- package/components/ResourcePicker.svelte +25 -2
- package/components/ResourcePicker.svelte.d.ts +3 -0
- package/components/ResourceTypePicker.svelte +17 -29
- package/components/ResourceTypePicker.svelte.d.ts +1 -0
- package/components/RunForm.svelte +14 -15
- package/components/RunForm.svelte.d.ts +1 -1
- package/components/SchemaEditor.svelte +87 -71
- package/components/SchemaEditor.svelte.d.ts +2 -0
- package/components/SchemaEditorProperty.svelte +11 -0
- package/components/SchemaEditorProperty.svelte.d.ts +17 -0
- package/components/SchemaForm.svelte +21 -127
- package/components/SchemaForm.svelte.d.ts +3 -4
- package/components/SchemaModal.svelte +20 -33
- package/components/SchemaModal.svelte.d.ts +1 -1
- package/components/SchemaViewer.svelte +4 -6
- package/components/ScriptBuilder.svelte +40 -43
- package/components/ScriptEditor.svelte +71 -66
- package/components/ScriptPicker.svelte +10 -12
- package/components/ScriptPicker.svelte.d.ts +1 -1
- package/components/ScriptSchema.svelte +0 -5
- package/components/ShareModal.svelte +1 -1
- package/components/SharedBadge.svelte +12 -10
- package/components/StringTypeNarrowing.svelte +8 -4
- package/components/StringTypeNarrowing.svelte.d.ts +1 -0
- package/components/TableCustom.svelte +7 -9
- package/components/TableSimple.svelte +1 -1
- package/components/Toggle.svelte +8 -10
- package/components/Toggle.svelte.d.ts +5 -11
- package/components/Tooltip.svelte +3 -2
- package/components/VariableEditor.svelte +21 -6
- package/components/flows/CopyFirstStepSchema.svelte +7 -5
- package/components/flows/DynamicInputHelpBox.svelte +1 -1
- package/components/flows/FlowBox.svelte +3 -0
- package/components/flows/FlowBox.svelte.d.ts +23 -0
- package/components/flows/FlowBoxHeader.svelte +9 -0
- package/components/flows/FlowBoxHeader.svelte.d.ts +18 -0
- package/components/flows/FlowInput.svelte +20 -0
- package/components/flows/FlowInput.svelte.d.ts +14 -0
- package/components/flows/FlowInputs.svelte +7 -3
- package/components/flows/FlowModuleHeader.svelte +42 -40
- package/components/flows/FlowModuleHeader.svelte.d.ts +1 -1
- package/components/flows/FlowSettings.svelte +174 -0
- package/components/flows/FlowSettings.svelte.d.ts +21 -0
- package/components/flows/flowStore.d.ts +5 -2
- package/components/flows/flowStore.js +65 -9
- package/components/flows/pickers/FlowScriptPicker.svelte +6 -1
- package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +1 -0
- package/components/flows/utils.d.ts +11 -7
- package/components/flows/utils.js +104 -43
- package/components/icons/AirtableIcon.svelte +17 -0
- package/components/icons/AirtableIcon.svelte.d.ts +17 -0
- package/components/icons/GCloudIcon.svelte +16 -0
- package/components/icons/GCloudIcon.svelte.d.ts +17 -0
- package/components/icons/GItlabIcon.svelte +16 -0
- package/components/icons/GItlabIcon.svelte.d.ts +17 -0
- package/components/icons/GSheetsIcon.svelte +16 -0
- package/components/icons/GSheetsIcon.svelte.d.ts +17 -0
- package/components/icons/GcalIcon.svelte +16 -0
- package/components/icons/GcalIcon.svelte.d.ts +17 -0
- package/components/icons/GdriveIcon.svelte +16 -0
- package/components/icons/GdriveIcon.svelte.d.ts +17 -0
- package/components/icons/GmailIcon.svelte +16 -0
- package/components/icons/GmailIcon.svelte.d.ts +17 -0
- package/components/icons/PostgresIcon.svelte +8 -49
- package/components/icons/Slack.svelte +9 -18
- package/components/icons/TogglIcon.svelte +59 -0
- package/components/icons/TogglIcon.svelte.d.ts +17 -0
- package/components/propertyPicker/ObjectViewer.svelte +35 -37
- package/components/propertyPicker/ObjectViewer.svelte.d.ts +1 -0
- package/components/propertyPicker/OverlayPropertyPicker.svelte +53 -53
- package/components/propertyPicker/OverlayPropertyPicker.svelte.d.ts +5 -2
- package/components/propertyPicker/PropPicker.svelte +13 -15
- package/components/propertyPicker/PropPicker.svelte.d.ts +1 -1
- package/components/propertyPicker/WarningMessage.svelte +14 -41
- package/components/propertyPicker/WarningMessage.svelte.d.ts +11 -8
- package/components/propertyPicker/utils.d.ts +1 -0
- package/components/propertyPicker/utils.js +25 -0
- package/gen/core/OpenAPI.js +1 -1
- package/gen/index.d.ts +11 -2
- package/gen/index.js +1 -2
- package/gen/models/CompletedJob.d.ts +1 -1
- package/gen/models/Flow.d.ts +3 -13
- package/gen/models/FlowMetadata.d.ts +9 -0
- package/gen/models/FlowMetadata.js +4 -0
- package/gen/models/FlowModuleValue.d.ts +5 -22
- package/gen/models/FlowModuleValue.js +1 -15
- package/gen/models/ForloopFlow.d.ts +8 -0
- package/gen/models/ForloopFlow.js +4 -0
- package/gen/models/InputTransform.d.ts +3 -12
- package/gen/models/InputTransform.js +1 -8
- package/gen/models/JavascriptTransform.d.ts +4 -0
- package/gen/models/JavascriptTransform.js +4 -0
- package/gen/models/MainArgSignature.d.ts +1 -1
- package/gen/models/NewSchedule.d.ts +1 -0
- package/gen/models/OpenFlowWPath.d.ts +4 -0
- package/gen/models/OpenFlowWPath.js +4 -0
- package/gen/models/PathFlow.d.ts +4 -0
- package/gen/models/PathFlow.js +4 -0
- package/gen/models/PathScript.d.ts +4 -0
- package/gen/models/PathScript.js +4 -0
- package/gen/models/RawScript.d.ts +12 -0
- package/gen/models/RawScript.js +11 -0
- package/gen/models/Schedule.d.ts +1 -1
- package/gen/models/StaticTransform.d.ts +4 -0
- package/gen/models/StaticTransform.js +4 -0
- package/gen/models/TokenResponse.d.ts +3 -3
- package/gen/models/Usage.d.ts +5 -0
- package/gen/models/Usage.js +4 -0
- package/gen/models/User.d.ts +2 -0
- package/gen/schemas/$AuditLog.d.ts +32 -0
- package/gen/schemas/$AuditLog.js +35 -0
- package/gen/schemas/$CompletedJob.d.ts +98 -0
- package/gen/schemas/$CompletedJob.js +103 -0
- package/gen/schemas/$ContextualVariable.d.ts +16 -0
- package/gen/schemas/$ContextualVariable.js +19 -0
- package/gen/schemas/$CreateResource.d.ts +22 -0
- package/gen/schemas/$CreateResource.js +25 -0
- package/gen/schemas/$CreateVariable.d.ts +26 -0
- package/gen/schemas/$CreateVariable.js +29 -0
- package/gen/schemas/$CreateWorkspace.d.ts +20 -0
- package/gen/schemas/$CreateWorkspace.js +23 -0
- package/gen/schemas/$EditResource.d.ts +13 -0
- package/gen/schemas/$EditResource.js +16 -0
- package/gen/schemas/$EditResourceType.d.ts +10 -0
- package/gen/schemas/$EditResourceType.js +13 -0
- package/gen/schemas/$EditSchedule.d.ts +20 -0
- package/gen/schemas/$EditSchedule.js +23 -0
- package/gen/schemas/$EditVariable.d.ts +16 -0
- package/gen/schemas/$EditVariable.js +19 -0
- package/gen/schemas/$EditWorkspaceUser.d.ts +7 -0
- package/gen/schemas/$EditWorkspaceUser.js +10 -0
- package/gen/schemas/$Flow.d.ts +23 -0
- package/gen/schemas/$Flow.js +26 -0
- package/gen/schemas/$FlowMetadata.d.ts +31 -0
- package/gen/schemas/$FlowMetadata.js +34 -0
- package/gen/schemas/$FlowPreview.d.ts +80 -0
- package/gen/schemas/$FlowPreview.js +83 -0
- package/gen/schemas/$GlobalUserInfo.d.ts +26 -0
- package/gen/schemas/$GlobalUserInfo.js +29 -0
- package/gen/schemas/$Group.d.ts +23 -0
- package/gen/schemas/$Group.js +26 -0
- package/gen/schemas/$Job.d.ts +17 -0
- package/gen/schemas/$Job.js +20 -0
- package/gen/schemas/$ListableVariable.d.ts +35 -0
- package/gen/schemas/$ListableVariable.js +38 -0
- package/gen/schemas/$Login.d.ts +12 -0
- package/gen/schemas/$Login.js +15 -0
- package/gen/schemas/$MainArgSignature.d.ts +50 -0
- package/gen/schemas/$MainArgSignature.js +53 -0
- package/gen/schemas/$NewSchedule.d.ts +30 -0
- package/gen/schemas/$NewSchedule.js +33 -0
- package/gen/schemas/$NewToken.d.ts +11 -0
- package/gen/schemas/$NewToken.js +14 -0
- package/gen/schemas/$NewUser.d.ts +16 -0
- package/gen/schemas/$NewUser.js +19 -0
- package/gen/schemas/$Preview.d.ts +19 -0
- package/gen/schemas/$Preview.js +22 -0
- package/gen/schemas/$QueuedJob.d.ts +139 -0
- package/gen/schemas/$QueuedJob.js +144 -0
- package/gen/schemas/$Resource.d.ts +31 -0
- package/gen/schemas/$Resource.js +34 -0
- package/gen/schemas/$ResourceType.d.ts +17 -0
- package/gen/schemas/$ResourceType.js +20 -0
- package/gen/schemas/$Schedule.d.ts +47 -0
- package/gen/schemas/$Schedule.js +50 -0
- package/gen/schemas/$Script.d.ts +77 -0
- package/gen/schemas/$Script.js +80 -0
- package/gen/schemas/$ScriptArgs.d.ts +6 -0
- package/gen/schemas/$ScriptArgs.js +9 -0
- package/gen/schemas/$SlackToken.d.ts +24 -0
- package/gen/schemas/$SlackToken.js +27 -0
- package/gen/schemas/$TokenResponse.d.ts +23 -0
- package/gen/schemas/$TokenResponse.js +26 -0
- package/gen/schemas/$TruncatedToken.d.ts +25 -0
- package/gen/schemas/$TruncatedToken.js +28 -0
- package/gen/schemas/$Usage.d.ts +13 -0
- package/gen/schemas/$Usage.js +16 -0
- package/gen/schemas/$User.d.ts +42 -0
- package/gen/schemas/$User.js +45 -0
- package/gen/schemas/$UserWorkspaceList.d.ts +28 -0
- package/gen/schemas/$UserWorkspaceList.js +31 -0
- package/gen/schemas/$WorkerPing.d.ts +31 -0
- package/gen/schemas/$WorkerPing.js +34 -0
- package/gen/schemas/$Workspace.d.ts +19 -0
- package/gen/schemas/$Workspace.js +22 -0
- package/gen/schemas/$WorkspaceInvite.d.ts +16 -0
- package/gen/schemas/$WorkspaceInvite.js +19 -0
- package/gen/services/FlowService.d.ts +24 -23
- package/gen/services/FlowService.js +14 -0
- package/gen/services/JobService.d.ts +1 -1
- package/gen/services/ScriptService.d.ts +13 -19
- package/gen/services/ScriptService.js +0 -14
- package/gen/services/WorkspaceService.d.ts +1 -1
- package/gen/services/WorkspaceService.js +1 -1
- package/infer.js +8 -1
- package/package.json +83 -15
- package/script_helpers.d.ts +1 -1
- package/script_helpers.js +7 -6
- package/sql.d.ts +89 -0
- package/sql.js +817 -0
- package/stores.d.ts +0 -1
- package/stores.js +0 -6
- package/utils.d.ts +12 -5
- package/utils.js +55 -9
- package/components/RadioButtonV2.svelte +0 -33
- package/components/RadioButtonV2.svelte.d.ts +0 -20
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export const $SlackToken = {
|
|
5
|
+
properties: {
|
|
6
|
+
access_token: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
isRequired: true,
|
|
9
|
+
},
|
|
10
|
+
team_id: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
},
|
|
14
|
+
team_name: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
},
|
|
18
|
+
bot: {
|
|
19
|
+
properties: {
|
|
20
|
+
bot_access_token: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
isRequired: true,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const $TokenResponse: {
|
|
2
|
+
readonly properties: {
|
|
3
|
+
readonly access_token: {
|
|
4
|
+
readonly type: "string";
|
|
5
|
+
readonly isRequired: true;
|
|
6
|
+
};
|
|
7
|
+
readonly expires_in: {
|
|
8
|
+
readonly type: "number";
|
|
9
|
+
readonly isRequired: true;
|
|
10
|
+
};
|
|
11
|
+
readonly refresh_token: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly isRequired: true;
|
|
14
|
+
};
|
|
15
|
+
readonly scope: {
|
|
16
|
+
readonly type: "array";
|
|
17
|
+
readonly contains: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
};
|
|
20
|
+
readonly isRequired: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export const $TokenResponse = {
|
|
5
|
+
properties: {
|
|
6
|
+
access_token: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
isRequired: true,
|
|
9
|
+
},
|
|
10
|
+
expires_in: {
|
|
11
|
+
type: 'number',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
},
|
|
14
|
+
refresh_token: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
},
|
|
18
|
+
scope: {
|
|
19
|
+
type: 'array',
|
|
20
|
+
contains: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
},
|
|
23
|
+
isRequired: true,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const $TruncatedToken: {
|
|
2
|
+
readonly properties: {
|
|
3
|
+
readonly label: {
|
|
4
|
+
readonly type: "string";
|
|
5
|
+
};
|
|
6
|
+
readonly expiration: {
|
|
7
|
+
readonly type: "string";
|
|
8
|
+
readonly format: "date-time";
|
|
9
|
+
};
|
|
10
|
+
readonly token_prefix: {
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
readonly isRequired: true;
|
|
13
|
+
};
|
|
14
|
+
readonly created_at: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly isRequired: true;
|
|
17
|
+
readonly format: "date-time";
|
|
18
|
+
};
|
|
19
|
+
readonly last_used_at: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly isRequired: true;
|
|
22
|
+
readonly format: "date-time";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export const $TruncatedToken = {
|
|
5
|
+
properties: {
|
|
6
|
+
label: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
},
|
|
9
|
+
expiration: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
format: 'date-time',
|
|
12
|
+
},
|
|
13
|
+
token_prefix: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
isRequired: true,
|
|
16
|
+
},
|
|
17
|
+
created_at: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
isRequired: true,
|
|
20
|
+
format: 'date-time',
|
|
21
|
+
},
|
|
22
|
+
last_used_at: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
isRequired: true,
|
|
25
|
+
format: 'date-time',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const $User: {
|
|
2
|
+
readonly properties: {
|
|
3
|
+
readonly email: {
|
|
4
|
+
readonly type: "string";
|
|
5
|
+
readonly isRequired: true;
|
|
6
|
+
};
|
|
7
|
+
readonly username: {
|
|
8
|
+
readonly type: "string";
|
|
9
|
+
readonly isRequired: true;
|
|
10
|
+
};
|
|
11
|
+
readonly is_admin: {
|
|
12
|
+
readonly type: "boolean";
|
|
13
|
+
readonly isRequired: true;
|
|
14
|
+
};
|
|
15
|
+
readonly is_super_admin: {
|
|
16
|
+
readonly type: "boolean";
|
|
17
|
+
readonly isRequired: true;
|
|
18
|
+
};
|
|
19
|
+
readonly created_at: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly isRequired: true;
|
|
22
|
+
readonly format: "date-time";
|
|
23
|
+
};
|
|
24
|
+
readonly operator: {
|
|
25
|
+
readonly type: "boolean";
|
|
26
|
+
readonly isRequired: true;
|
|
27
|
+
};
|
|
28
|
+
readonly disabled: {
|
|
29
|
+
readonly type: "boolean";
|
|
30
|
+
readonly isRequired: true;
|
|
31
|
+
};
|
|
32
|
+
readonly groups: {
|
|
33
|
+
readonly type: "array";
|
|
34
|
+
readonly contains: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly job_duration_ms: {
|
|
39
|
+
readonly type: "Usage";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export const $User = {
|
|
5
|
+
properties: {
|
|
6
|
+
email: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
isRequired: true,
|
|
9
|
+
},
|
|
10
|
+
username: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
},
|
|
14
|
+
is_admin: {
|
|
15
|
+
type: 'boolean',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
},
|
|
18
|
+
is_super_admin: {
|
|
19
|
+
type: 'boolean',
|
|
20
|
+
isRequired: true,
|
|
21
|
+
},
|
|
22
|
+
created_at: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
isRequired: true,
|
|
25
|
+
format: 'date-time',
|
|
26
|
+
},
|
|
27
|
+
operator: {
|
|
28
|
+
type: 'boolean',
|
|
29
|
+
isRequired: true,
|
|
30
|
+
},
|
|
31
|
+
disabled: {
|
|
32
|
+
type: 'boolean',
|
|
33
|
+
isRequired: true,
|
|
34
|
+
},
|
|
35
|
+
groups: {
|
|
36
|
+
type: 'array',
|
|
37
|
+
contains: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
job_duration_ms: {
|
|
42
|
+
type: 'Usage',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const $UserWorkspaceList: {
|
|
2
|
+
readonly properties: {
|
|
3
|
+
readonly email: {
|
|
4
|
+
readonly type: "string";
|
|
5
|
+
readonly isRequired: true;
|
|
6
|
+
};
|
|
7
|
+
readonly workspaces: {
|
|
8
|
+
readonly type: "array";
|
|
9
|
+
readonly contains: {
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly id: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly isRequired: true;
|
|
14
|
+
};
|
|
15
|
+
readonly name: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly isRequired: true;
|
|
18
|
+
};
|
|
19
|
+
readonly username: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly isRequired: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly isRequired: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export const $UserWorkspaceList = {
|
|
5
|
+
properties: {
|
|
6
|
+
email: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
isRequired: true,
|
|
9
|
+
},
|
|
10
|
+
workspaces: {
|
|
11
|
+
type: 'array',
|
|
12
|
+
contains: {
|
|
13
|
+
properties: {
|
|
14
|
+
id: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
},
|
|
18
|
+
name: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
isRequired: true,
|
|
21
|
+
},
|
|
22
|
+
username: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
isRequired: true,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
isRequired: true,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const $WorkerPing: {
|
|
2
|
+
readonly properties: {
|
|
3
|
+
readonly worker: {
|
|
4
|
+
readonly type: "string";
|
|
5
|
+
readonly isRequired: true;
|
|
6
|
+
};
|
|
7
|
+
readonly worker_instance: {
|
|
8
|
+
readonly type: "string";
|
|
9
|
+
readonly isRequired: true;
|
|
10
|
+
};
|
|
11
|
+
readonly ping_at: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly isRequired: true;
|
|
14
|
+
readonly format: "date-time";
|
|
15
|
+
};
|
|
16
|
+
readonly started_at: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly isRequired: true;
|
|
19
|
+
readonly format: "date-time";
|
|
20
|
+
};
|
|
21
|
+
readonly ip: {
|
|
22
|
+
readonly type: "string";
|
|
23
|
+
readonly isRequired: true;
|
|
24
|
+
};
|
|
25
|
+
readonly jobs_executed: {
|
|
26
|
+
readonly type: "number";
|
|
27
|
+
readonly isRequired: true;
|
|
28
|
+
readonly format: "int32";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export const $WorkerPing = {
|
|
5
|
+
properties: {
|
|
6
|
+
worker: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
isRequired: true,
|
|
9
|
+
},
|
|
10
|
+
worker_instance: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
},
|
|
14
|
+
ping_at: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
format: 'date-time',
|
|
18
|
+
},
|
|
19
|
+
started_at: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
isRequired: true,
|
|
22
|
+
format: 'date-time',
|
|
23
|
+
},
|
|
24
|
+
ip: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
isRequired: true,
|
|
27
|
+
},
|
|
28
|
+
jobs_executed: {
|
|
29
|
+
type: 'number',
|
|
30
|
+
isRequired: true,
|
|
31
|
+
format: 'int32',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const $Workspace: {
|
|
2
|
+
readonly properties: {
|
|
3
|
+
readonly id: {
|
|
4
|
+
readonly type: "string";
|
|
5
|
+
readonly isRequired: true;
|
|
6
|
+
};
|
|
7
|
+
readonly name: {
|
|
8
|
+
readonly type: "string";
|
|
9
|
+
readonly isRequired: true;
|
|
10
|
+
};
|
|
11
|
+
readonly owner: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly isRequired: true;
|
|
14
|
+
};
|
|
15
|
+
readonly domain: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export const $Workspace = {
|
|
5
|
+
properties: {
|
|
6
|
+
id: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
isRequired: true,
|
|
9
|
+
},
|
|
10
|
+
name: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
},
|
|
14
|
+
owner: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
},
|
|
18
|
+
domain: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const $WorkspaceInvite: {
|
|
2
|
+
readonly properties: {
|
|
3
|
+
readonly workspace_id: {
|
|
4
|
+
readonly type: "string";
|
|
5
|
+
readonly isRequired: true;
|
|
6
|
+
};
|
|
7
|
+
readonly email: {
|
|
8
|
+
readonly type: "string";
|
|
9
|
+
readonly isRequired: true;
|
|
10
|
+
};
|
|
11
|
+
readonly is_admin: {
|
|
12
|
+
readonly type: "boolean";
|
|
13
|
+
readonly isRequired: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export const $WorkspaceInvite = {
|
|
5
|
+
properties: {
|
|
6
|
+
workspace_id: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
isRequired: true,
|
|
9
|
+
},
|
|
10
|
+
email: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
},
|
|
14
|
+
is_admin: {
|
|
15
|
+
type: 'boolean',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Flow } from '../models/Flow';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OpenFlow } from '../models/OpenFlow';
|
|
3
|
+
import type { OpenFlowWPath } from '../models/OpenFlowWPath';
|
|
3
4
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
5
|
export declare class FlowService {
|
|
5
6
|
/**
|
|
@@ -7,14 +8,26 @@ export declare class FlowService {
|
|
|
7
8
|
* @returns any hub flows list
|
|
8
9
|
* @throws ApiError
|
|
9
10
|
*/
|
|
10
|
-
static listHubFlows(): CancelablePromise<
|
|
11
|
+
static listHubFlows(): CancelablePromise<{
|
|
12
|
+
flows?: Array<{
|
|
13
|
+
id: number;
|
|
14
|
+
flow_id: number;
|
|
15
|
+
summary: string;
|
|
16
|
+
apps: Array<string>;
|
|
17
|
+
approved: boolean;
|
|
18
|
+
votes: number;
|
|
19
|
+
}>;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* get hub flow by id
|
|
23
|
+
* @returns any flow
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
static getHubFlowById({ id, }: {
|
|
11
27
|
id: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
approved: boolean;
|
|
16
|
-
votes: number;
|
|
17
|
-
}>>;
|
|
28
|
+
}): CancelablePromise<{
|
|
29
|
+
flow?: OpenFlow;
|
|
30
|
+
}>;
|
|
18
31
|
/**
|
|
19
32
|
* list all available flows
|
|
20
33
|
* @returns Flow All available flow
|
|
@@ -39,7 +52,7 @@ export declare class FlowService {
|
|
|
39
52
|
*/
|
|
40
53
|
createdBy?: string;
|
|
41
54
|
/**
|
|
42
|
-
* mask to filter matching starting
|
|
55
|
+
* mask to filter matching starting path
|
|
43
56
|
*/
|
|
44
57
|
pathStart?: string;
|
|
45
58
|
/**
|
|
@@ -83,13 +96,7 @@ export declare class FlowService {
|
|
|
83
96
|
/**
|
|
84
97
|
* Partially filled flow
|
|
85
98
|
*/
|
|
86
|
-
requestBody:
|
|
87
|
-
path: string;
|
|
88
|
-
summary: string;
|
|
89
|
-
description: string;
|
|
90
|
-
value: FlowValue;
|
|
91
|
-
schema?: any;
|
|
92
|
-
};
|
|
99
|
+
requestBody: OpenFlowWPath;
|
|
93
100
|
}): CancelablePromise<string>;
|
|
94
101
|
/**
|
|
95
102
|
* update flow
|
|
@@ -102,13 +109,7 @@ export declare class FlowService {
|
|
|
102
109
|
/**
|
|
103
110
|
* Partially filled flow
|
|
104
111
|
*/
|
|
105
|
-
requestBody:
|
|
106
|
-
path: string;
|
|
107
|
-
summary: string;
|
|
108
|
-
description: string;
|
|
109
|
-
value: FlowValue;
|
|
110
|
-
schema?: any;
|
|
111
|
-
};
|
|
112
|
+
requestBody: OpenFlowWPath;
|
|
112
113
|
}): CancelablePromise<string>;
|
|
113
114
|
/**
|
|
114
115
|
* archive flow by path
|
|
@@ -12,6 +12,20 @@ export class FlowService {
|
|
|
12
12
|
url: '/flows/hub/list',
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* get hub flow by id
|
|
17
|
+
* @returns any flow
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static getHubFlowById({ id, }) {
|
|
21
|
+
return __request(OpenAPI, {
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '/flows/hub/get/{id}',
|
|
24
|
+
path: {
|
|
25
|
+
'id': id,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
15
29
|
/**
|
|
16
30
|
* list all available flows
|
|
17
31
|
* @returns Flow All available flow
|
|
@@ -7,24 +7,18 @@ export declare class ScriptService {
|
|
|
7
7
|
* @returns any hub scripts list
|
|
8
8
|
* @throws ApiError
|
|
9
9
|
*/
|
|
10
|
-
static listHubScripts(): CancelablePromise<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* @returns string flow
|
|
23
|
-
* @throws ApiError
|
|
24
|
-
*/
|
|
25
|
-
static getHubFlowById({ id, }: {
|
|
26
|
-
id: number;
|
|
27
|
-
}): CancelablePromise<string>;
|
|
10
|
+
static listHubScripts(): CancelablePromise<{
|
|
11
|
+
asks?: Array<{
|
|
12
|
+
id: number;
|
|
13
|
+
ask_id: number;
|
|
14
|
+
summary: string;
|
|
15
|
+
app: string;
|
|
16
|
+
approved: boolean;
|
|
17
|
+
is_trigger: boolean;
|
|
18
|
+
votes: number;
|
|
19
|
+
views: number;
|
|
20
|
+
}>;
|
|
21
|
+
}>;
|
|
28
22
|
/**
|
|
29
23
|
* get hub script content by path
|
|
30
24
|
* @returns string script details
|
|
@@ -57,7 +51,7 @@ export declare class ScriptService {
|
|
|
57
51
|
*/
|
|
58
52
|
createdBy?: string;
|
|
59
53
|
/**
|
|
60
|
-
* mask to filter matching starting
|
|
54
|
+
* mask to filter matching starting path
|
|
61
55
|
*/
|
|
62
56
|
pathStart?: string;
|
|
63
57
|
/**
|
|
@@ -12,20 +12,6 @@ export class ScriptService {
|
|
|
12
12
|
url: '/scripts/hub/list',
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* get hub flow by id
|
|
17
|
-
* @returns string flow
|
|
18
|
-
* @throws ApiError
|
|
19
|
-
*/
|
|
20
|
-
static getHubFlowById({ id, }) {
|
|
21
|
-
return __request(OpenAPI, {
|
|
22
|
-
method: 'GET',
|
|
23
|
-
url: '/flows/hub/get/{id}',
|
|
24
|
-
path: {
|
|
25
|
-
'id': id,
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
15
|
/**
|
|
30
16
|
* get hub script content by path
|
|
31
17
|
* @returns string script details
|
|
@@ -17,7 +17,7 @@ export declare class WorkspaceService {
|
|
|
17
17
|
*/
|
|
18
18
|
static listUserWorkspaces(): CancelablePromise<UserWorkspaceList>;
|
|
19
19
|
/**
|
|
20
|
-
* list all workspaces as super admin (require to be super
|
|
20
|
+
* list all workspaces as super admin (require to be super admin)
|
|
21
21
|
* @returns Workspace workspaces
|
|
22
22
|
* @throws ApiError
|
|
23
23
|
*/
|
package/infer.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ScriptService } from './gen';
|
|
2
|
-
import { sendUserToast } from './utils.js';
|
|
3
2
|
export async function inferArgs(language, code, schema) {
|
|
4
3
|
let inferedSchema;
|
|
5
4
|
if (language == 'python3') {
|
|
@@ -45,6 +44,14 @@ function argSigToJsonSchemaType(t, s) {
|
|
|
45
44
|
else if (t === 'str') {
|
|
46
45
|
s.type = 'string';
|
|
47
46
|
}
|
|
47
|
+
else if (t === 'email') {
|
|
48
|
+
s.type = 'string';
|
|
49
|
+
s.format = 'email';
|
|
50
|
+
}
|
|
51
|
+
else if (t === 'sql') {
|
|
52
|
+
s.type = 'string';
|
|
53
|
+
s.format = 'sql';
|
|
54
|
+
}
|
|
48
55
|
else if (t === 'dict') {
|
|
49
56
|
s.type = 'object';
|
|
50
57
|
}
|