diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml
index 076fdf0ae6..96b1a138a8 100644
--- a/backend/windmill-api/openapi.yaml
+++ b/backend/windmill-api/openapi.yaml
@@ -2181,8 +2181,7 @@ paths:
schema:
type: string
- name: first_parent_hash
- description:
- mask to filter scripts whom first direct parent has exact hash
+ description: mask to filter scripts whom first direct parent has exact hash
in: query
schema:
type: string
@@ -2350,8 +2349,7 @@ paths:
/workers/custom_tags:
get:
- summary:
- get all instance custom tags (tags are used to dispatch jobs to
+ summary: get all instance custom tags (tags are used to dispatch jobs to
different worker groups)
operationId: getCustomTags
tags:
@@ -2402,8 +2400,7 @@ paths:
/w/{workspace}/scripts/delete/h/{hash}:
post:
- summary:
- delete script by hash (erase content but keep hash, require admin)
+ summary: delete script by hash (erase content but keep hash, require admin)
operationId: deleteScriptByHash
tags:
- script
@@ -2595,16 +2592,14 @@ paths:
type: string
format: date-time
- name: scheduled_in_secs
- description:
- schedule the script to execute in the number of seconds starting now
+ description: schedule the script to execute in the number of seconds starting now
in: query
schema:
type: integer
- $ref: "#/components/parameters/ParentJob"
- $ref: "#/components/parameters/NewJobId"
- name: invisible_to_owner
- description:
- make the run invisible to the the script owner (default false)
+ description: make the run invisible to the the script owner (default false)
in: query
schema:
type: boolean
@@ -3483,8 +3478,7 @@ paths:
type: string
format: date-time
- name: scheduled_in_secs
- description:
- schedule the script to execute in the number of seconds starting now
+ description: schedule the script to execute in the number of seconds starting now
in: query
schema:
type: integer
@@ -3492,8 +3486,7 @@ paths:
- $ref: "#/components/parameters/NewJobId"
- $ref: "#/components/parameters/IncludeHeader"
- name: invisible_to_owner
- description:
- make the run invisible to the the flow owner (default false)
+ description: make the run invisible to the the flow owner (default false)
in: query
schema:
type: boolean
@@ -3531,8 +3524,7 @@ paths:
type: string
format: date-time
- name: scheduled_in_secs
- description:
- schedule the script to execute in the number of seconds starting now
+ description: schedule the script to execute in the number of seconds starting now
in: query
schema:
type: integer
@@ -3540,8 +3532,7 @@ paths:
- $ref: "#/components/parameters/NewJobId"
- $ref: "#/components/parameters/IncludeHeader"
- name: invisible_to_owner
- description:
- make the run invisible to the the script owner (default false)
+ description: make the run invisible to the the script owner (default false)
in: query
schema:
type: boolean
@@ -3572,8 +3563,7 @@ paths:
- $ref: "#/components/parameters/WorkspaceId"
- $ref: "#/components/parameters/IncludeHeader"
- name: invisible_to_owner
- description:
- make the run invisible to the the script owner (default false)
+ description: make the run invisible to the the script owner (default false)
in: query
schema:
type: boolean
@@ -3606,8 +3596,7 @@ paths:
- $ref: "#/components/parameters/WorkspaceId"
- $ref: "#/components/parameters/IncludeHeader"
- name: invisible_to_owner
- description:
- make the run invisible to the the script owner (default false)
+ description: make the run invisible to the the script owner (default false)
in: query
schema:
type: boolean
@@ -3978,8 +3967,7 @@ paths:
/w/{workspace}/jobs/resume_urls/{id}/{resume_id}:
get:
- summary:
- get resume urls given a job_id, resume_id and a nonce to resume a flow
+ summary: get resume urls given a job_id, resume_id and a nonce to resume a flow
operationId: getResumeUrls
tags:
- job
@@ -4451,8 +4439,7 @@ paths:
- $ref: "#/components/parameters/WorkspaceId"
- name: only_member_of
in: query
- description:
- only list the groups the user is member of (default false)
+ description: only list the groups the user is member of (default false)
schema:
type: boolean
responses:
@@ -4640,8 +4627,7 @@ paths:
- $ref: "#/components/parameters/WorkspaceId"
- name: only_member_of
in: query
- description:
- only list the folders the user is member of (default false)
+ description: only list the folders the user is member of (default false)
schema:
type: boolean
responses:
@@ -5279,8 +5265,7 @@ components:
type: integer
PerPage:
name: per_page
- description:
- number of items to return for a given page (default 30, max 100)
+ description: number of items to return for a given page (default 30, max 100)
in: query
schema:
type: integer
@@ -5396,8 +5381,7 @@ components:
type: boolean
ArgsFilter:
name: args
- description:
- filter on jobs containing those args as a json subset (@> in postgres)
+ description: filter on jobs containing those args as a json subset (@> in postgres)
in: query
schema:
type: string
@@ -5409,8 +5393,7 @@ components:
type: string
ResultFilter:
name: result
- description:
- filter on jobs containing those result as a json subset (@> in postgres)
+ description: filter on jobs containing those result as a json subset (@> in postgres)
in: query
schema:
type: string
@@ -5586,7 +5569,7 @@ components:
type: string
language:
type: string
- enum: [python3, deno, go, bash]
+ enum: [python3, deno, go, bash, postgresql]
kind:
type: string
enum: [script, failure, trigger, command, approval]
@@ -5747,7 +5730,7 @@ components:
type: boolean
language:
type: string
- enum: [python3, deno, go, bash]
+ enum: [python3, deno, go, bash, postgresql]
email:
type: string
visible_to_owner:
@@ -5822,6 +5805,7 @@ components:
"identity",
"http",
"graphql",
+ "postgresql",
]
schedule_path:
type: string
@@ -5838,7 +5822,7 @@ components:
type: boolean
language:
type: string
- enum: [python3, deno, go, bash]
+ enum: [python3, deno, go, bash, postgresql]
is_skipped:
type: boolean
email:
@@ -6266,7 +6250,7 @@ components:
$ref: "#/components/schemas/ScriptArgs"
language:
type: string
- enum: [python3, deno, go, bash]
+ enum: [python3, deno, go, bash, postgresql]
tag:
type: string
kind:
diff --git a/frontend/src/lib/components/ArgEnum.svelte b/frontend/src/lib/components/ArgEnum.svelte
index 5f2ad49728..a70ecf2347 100644
--- a/frontend/src/lib/components/ArgEnum.svelte
+++ b/frontend/src/lib/components/ArgEnum.svelte
@@ -28,6 +28,7 @@
{/each}
{:else}
+
void) | undefined = undefined
export let formatAction: (() => void) | undefined = undefined
diff --git a/frontend/src/lib/components/EditorBar.svelte b/frontend/src/lib/components/EditorBar.svelte
index cd06076e6c..b713caad7c 100644
--- a/frontend/src/lib/components/EditorBar.svelte
+++ b/frontend/src/lib/components/EditorBar.svelte
@@ -35,10 +35,10 @@
import Toggle from './Toggle.svelte'
import { Link, Users } from 'lucide-svelte'
import { capitalize } from '$lib/utils'
- import type { Schema, SchemaProperty } from '$lib/common'
+ import type { Schema, SchemaProperty, SupportedLanguage } from '$lib/common'
import ScriptVersionHistory from './ScriptVersionHistory.svelte'
- export let lang: 'python3' | 'deno' | 'go' | 'bash'
+ export let lang: SupportedLanguage
export let editor: Editor | undefined
export let websocketAlive: {
pyright: boolean
@@ -64,8 +64,7 @@
let resourceEditor: ResourceEditor
let codeViewer: Drawer
- let codeObj: { language: 'python3' | 'deno' | 'go' | 'bash'; content: string } | undefined =
- undefined
+ let codeObj: { language: SupportedLanguage; content: string } | undefined = undefined
function addEditorActions() {
editor?.addAction('insert-variable', 'Windmill: Insert variable', () => {
diff --git a/frontend/src/lib/components/HighlightCode.svelte b/frontend/src/lib/components/HighlightCode.svelte
index 3b62d3f22b..747419680c 100644
--- a/frontend/src/lib/components/HighlightCode.svelte
+++ b/frontend/src/lib/components/HighlightCode.svelte
@@ -4,9 +4,10 @@
import typescript from 'svelte-highlight/languages/typescript'
import go from 'svelte-highlight/languages/go'
import shell from 'svelte-highlight/languages/shell'
+ import type { Script } from '$lib/gen'
export let code: string = ''
- export let language: 'python3' | 'deno' | 'go' | 'bash' | undefined
+ export let language: Script.language | undefined
export let lines = false
function getLang(lang: string | undefined) {
diff --git a/frontend/src/lib/components/ScriptBuilder.svelte b/frontend/src/lib/components/ScriptBuilder.svelte
index 9e83a566c9..f693f5b83e 100644
--- a/frontend/src/lib/components/ScriptBuilder.svelte
+++ b/frontend/src/lib/components/ScriptBuilder.svelte
@@ -120,7 +120,7 @@
}
function initContent(
- language: 'deno' | 'python3' | 'go' | 'bash',
+ language: SupportedLanguage,
kind: Script.kind | undefined,
template: 'pgsql' | 'mysql' | 'script' | 'docker'
) {
diff --git a/frontend/src/lib/components/ScriptEditor.svelte b/frontend/src/lib/components/ScriptEditor.svelte
index 83d4b9c97e..4f72494e5d 100644
--- a/frontend/src/lib/components/ScriptEditor.svelte
+++ b/frontend/src/lib/components/ScriptEditor.svelte
@@ -1,7 +1,7 @@
diff --git a/frontend/src/lib/components/flows/content/FlowModuleScript.svelte b/frontend/src/lib/components/flows/content/FlowModuleScript.svelte
index 60be6d7e6d..8b6f1ceba4 100644
--- a/frontend/src/lib/components/flows/content/FlowModuleScript.svelte
+++ b/frontend/src/lib/components/flows/content/FlowModuleScript.svelte
@@ -1,4 +1,5 @@