From 106de1d7cd7789b6374e2012f9f72e87a2072829 Mon Sep 17 00:00:00 2001 From: ruben Date: Wed, 24 Jan 2024 08:07:54 +0000 Subject: [PATCH 1/2] Script 'f/examples/astounding_scriptttt' deployed --- f/examples/astounding_scriptttt.script.yaml | 38 +++++++++++++++++++++ f/examples/astounding_scriptttt.ts | 22 ++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 f/examples/astounding_scriptttt.script.yaml create mode 100644 f/examples/astounding_scriptttt.ts diff --git a/f/examples/astounding_scriptttt.script.yaml b/f/examples/astounding_scriptttt.script.yaml new file mode 100644 index 0000000..56281fa --- /dev/null +++ b/f/examples/astounding_scriptttt.script.yaml @@ -0,0 +1,38 @@ +summary: '' +description: '' +lock: | + { + "version": "3", + "remote": {} + } +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 + d: + type: string + description: '' + default: inferred type string from default arg + e: + type: object + description: '' + default: + nested: object + properties: + nested: + type: string + required: + - a + - b diff --git a/f/examples/astounding_scriptttt.ts b/f/examples/astounding_scriptttt.ts new file mode 100644 index 0000000..a26735d --- /dev/null +++ b/f/examples/astounding_scriptttt.ts @@ -0,0 +1,22 @@ +// Ctrl/CMD+. to cache dependencies on imports hover. + +// Deno uses "npm:" prefix to import from npm (https://deno.land/manual@v1.36.3/node/npm_specifiers) +// import * as wmill from "npm:windmill-client@1.251.1" + +// fill the type, or use the +Resource type to get a type-safe reference to a resource +// type Postgresql = object +//foooo + +export async function main( + a: number, + b: "my" | "enum", + //c: Postgresql, + d = "inferred type string from default arg", + e = { nested: "object" }, + //e: wmill.Base64 + +) { + //foo + // let x = await wmill.getVariable('u/user/foo') + return { foo: a }; +} From 4456f957894ca1cc2d9072eab1ddfa6469b6d984 Mon Sep 17 00:00:00 2001 From: "guillaume@windmill.dev" Date: Wed, 5 Jun 2024 15:52:11 +0000 Subject: [PATCH 2/2] [WM] Script 'f/examples/astounding_scriptttt' deployed --- f/examples/astounding_scriptttt.script.lock | 4 ++++ f/examples/astounding_scriptttt.script.yaml | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 f/examples/astounding_scriptttt.script.lock diff --git a/f/examples/astounding_scriptttt.script.lock b/f/examples/astounding_scriptttt.script.lock new file mode 100644 index 0000000..37f10ce --- /dev/null +++ b/f/examples/astounding_scriptttt.script.lock @@ -0,0 +1,4 @@ +{ + "version": "3", + "remote": {} +} diff --git a/f/examples/astounding_scriptttt.script.yaml b/f/examples/astounding_scriptttt.script.yaml index 56281fa..0e2581f 100644 --- a/f/examples/astounding_scriptttt.script.yaml +++ b/f/examples/astounding_scriptttt.script.yaml @@ -1,10 +1,6 @@ summary: '' description: '' -lock: | - { - "version": "3", - "remote": {} - } +lock: '!inline f/examples/astounding_scriptttt.script.lock' kind: script schema: $schema: 'https://json-schema.org/draft/2020-12/schema'