From e5a03d65961c377af4d95593a0187eb418fa4543 Mon Sep 17 00:00:00 2001 From: ruben Date: Tue, 23 Jul 2024 08:39:34 +0000 Subject: [PATCH 1/3] [WM] Script 'f/user/unassailable_script' deployed --- f/user/unassailable_script.script.lock | 5 ++ f/user/unassailable_script.script.yaml | 69 ++++++++++++++++++++++++++ f/user/unassailable_script.ts | 24 +++++++++ 3 files changed, 98 insertions(+) create mode 100644 f/user/unassailable_script.script.lock create mode 100644 f/user/unassailable_script.script.yaml create mode 100644 f/user/unassailable_script.ts diff --git a/f/user/unassailable_script.script.lock b/f/user/unassailable_script.script.lock new file mode 100644 index 0000000..789f01c --- /dev/null +++ b/f/user/unassailable_script.script.lock @@ -0,0 +1,5 @@ +{ + "dependencies": {} +} +//bun.lockb + \ No newline at end of file diff --git a/f/user/unassailable_script.script.yaml b/f/user/unassailable_script.script.yaml new file mode 100644 index 0000000..40cc6a1 --- /dev/null +++ b/f/user/unassailable_script.script.yaml @@ -0,0 +1,69 @@ +summary: '' +description: '' +lock: '!inline f/user/unassailable_script.script.lock' +kind: script +schema: + $schema: 'https://json-schema.org/draft/2020-12/schema' + type: object + properties: + a: + type: number + description: '' + default: null + b: + type: string + description: '' + default: null + enum: + - my + - enum + originalType: enum + e: + type: string + description: '' + default: inferred type string from default arg + originalType: string + f: + type: object + description: '' + default: + nested: object + properties: + nested: + type: string + description: '' + originalType: string + g: + type: object + description: '' + default: null + oneOf: + - type: object + properties: + foo: + type: string + description: '' + originalType: string + label: + type: string + description: '' + enum: + - Variant 1 + originalType: enum + title: Variant 1 + - type: object + properties: + bar: + type: number + description: '' + label: + type: string + description: '' + enum: + - Variant 2 + originalType: enum + title: Variant 2 + required: + - a + - b + - g diff --git a/f/user/unassailable_script.ts b/f/user/unassailable_script.ts new file mode 100644 index 0000000..6b11650 --- /dev/null +++ b/f/user/unassailable_script.ts @@ -0,0 +1,24 @@ +// import { toWords } from "number-to-words@1" +import * as wmill from "windmill-client" + +// fill the type, or use the +Resource type to get a type-safe reference to a resource +// type Postgresql = object + +export async function main( + a: number, + b: "my" | "enum", + //c: Postgresql, + //d: wmill.S3Object, // for large files backed by S3 (https://www.windmill.dev/docs/core_concepts/persistent_storage/large_data_files) + e = "inferred type string from default arg", + f = { nested: "object" }, + g: { + label: "Variant 1", + foo: string + } | { + label: "Variant 2", + bar: number + } +) { + // let x = await wmill.getVariable('u/user/foo') + return { foo: a }; +} From 05ef145c0acef8a17be8ed3229bb860704780543 Mon Sep 17 00:00:00 2001 From: ruben Date: Fri, 6 Sep 2024 06:36:36 +0000 Subject: [PATCH 2/3] [WM] Script 'f/user/unassailable_script' deployed --- f/user/unassailable_script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/f/user/unassailable_script.ts b/f/user/unassailable_script.ts index 6b11650..7069750 100644 --- a/f/user/unassailable_script.ts +++ b/f/user/unassailable_script.ts @@ -3,7 +3,7 @@ import * as wmill from "windmill-client" // fill the type, or use the +Resource type to get a type-safe reference to a resource // type Postgresql = object - +// export async function main( a: number, b: "my" | "enum", From e697e76a6a7d4d798ecad01d35977d3b60909453 Mon Sep 17 00:00:00 2001 From: ruben Date: Mon, 9 Sep 2024 13:26:01 +0000 Subject: [PATCH 3/3] [WM] Script 'f/user/unassailable_script' deployed --- f/user/unassailable_script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/f/user/unassailable_script.ts b/f/user/unassailable_script.ts index 7069750..cf94f7d 100644 --- a/f/user/unassailable_script.ts +++ b/f/user/unassailable_script.ts @@ -3,7 +3,7 @@ import * as wmill from "windmill-client" // fill the type, or use the +Resource type to get a type-safe reference to a resource // type Postgresql = object -// +// foo export async function main( a: number, b: "my" | "enum",