From 9777c62db40e234085ed156a383c38bab096004f Mon Sep 17 00:00:00 2001 From: Gleb Zakharov Date: Fri, 27 Sep 2024 13:42:48 +0200 Subject: [PATCH] remove CHANGELOGs, remove unnecessary model/args.ts --- .github/workflows/build.yaml | 2 +- CHANGELOG.md | 11 ----------- model/CHANGELOG.md | 7 ------- model/src/args.ts | 23 ----------------------- model/src/index.ts | 2 +- test/CHANGELOG.md | 7 ------- ui/CHANGELOG.md | 9 --------- workflow/CHANGELOG.md | 7 ------- 8 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 CHANGELOG.md delete mode 100644 model/CHANGELOG.md delete mode 100644 model/src/args.ts delete mode 100644 test/CHANGELOG.md delete mode 100644 ui/CHANGELOG.md delete mode 100644 workflow/CHANGELOG.md diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 326b372..3d50bcf 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -24,7 +24,7 @@ jobs: uses: milaboratory/github-ci-internal/.github/workflows/node-docker-simple-fast-pnpm.yaml@v4 with: app-name: Block Boilerplate - app-name-slug: 'block-block-boilerplate' + app-name-slug: 'block-boilerplate' notify-telegram: true node-version: '20.x' diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 9260df1..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,11 +0,0 @@ -# @milaboratory/milaboratories.block-boilerplate - -## 1.0.1 - -### Patch Changes - -- 3a4df33: Initial release -- Updated dependencies [3a4df33] - - @milaboratory/milaboratories.block-boilerplate.model@1.0.1 - - @milaboratory/milaboratories.block-boilerplate.ui@1.0.1 - - @milaboratory/milaboratories.block-boilerplate.workflow@1.0.1 diff --git a/model/CHANGELOG.md b/model/CHANGELOG.md deleted file mode 100644 index b759ff9..0000000 --- a/model/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# @milaboratory/milaboratories.block-boilerplate.model - -## 1.0.1 - -### Patch Changes - -- 3a4df33: Initial release diff --git a/model/src/args.ts b/model/src/args.ts deleted file mode 100644 index bbc15dd..0000000 --- a/model/src/args.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { ImportFileHandle, Ref, ValueType } from '@milaboratory/sdk-ui'; -import { ZodAnyDef, ZodSchema, z } from 'zod'; -import { PlId } from './helpers'; - -const Species = z.union([ - z.literal('hsa'), - z.literal('mmu'), - z.literal('lama'), - z.literal('alpaca'), - z.literal('mfas') -]); - -export const BlockArgsValid = z - .object({ - input: Ref, - preset: z.string(), - species: z.string().optional() - }) - .strict(); -export type BlockArgsValid = z.infer; - -export const BlockArgs = BlockArgsValid.partial({ input: true, preset: true }); -export type BlockArgs = z.infer; diff --git a/model/src/index.ts b/model/src/index.ts index f83e7b1..229f558 100644 --- a/model/src/index.ts +++ b/model/src/index.ts @@ -16,7 +16,7 @@ export const platforma = BlockModel.create('Heavy') argument: 'World', }) - .output( 'transformedArg', (ctx) => ctx.outputs?.resolve({ + .output('transformedArg', (ctx) => ctx.outputs?.resolve({ field: 'transformedArg', assertFieldType: 'Input', })?.getDataAsJson()) diff --git a/test/CHANGELOG.md b/test/CHANGELOG.md deleted file mode 100644 index b639a49..0000000 --- a/test/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# @milaboratory/milaboratories.block-boilerplate.test - -## 1.0.1 - -### Patch Changes - -- 3a4df33: Initial release diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md deleted file mode 100644 index 642fd63..0000000 --- a/ui/CHANGELOG.md +++ /dev/null @@ -1,9 +0,0 @@ -# @milaboratory/milaboratories.block-boilerplate.ui - -## 1.0.1 - -### Patch Changes - -- 3a4df33: Initial release -- Updated dependencies [3a4df33] - - @milaboratory/milaboratories.block-boilerplate.model@1.0.1 diff --git a/workflow/CHANGELOG.md b/workflow/CHANGELOG.md deleted file mode 100644 index a937ef6..0000000 --- a/workflow/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# @milaboratory/milaboratories.block-boilerplate.workflow - -## 1.0.1 - -### Patch Changes - -- 3a4df33: Initial release