Skip to content

Commit

Permalink
Merge branch 'db' into vladimir.antropov/update-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolotin committed Dec 13, 2024
2 parents 3547353 + 3288bf2 commit 5b9ccc3
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
23 changes: 10 additions & 13 deletions model/src/args.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ImportFileHandle, PlRef, Ref, ValueType } from '@platforma-sdk/model';
import { ZodAnyDef, ZodSchema, z } from 'zod';
import { PlId } from './helpers';
import { ImportFileHandle, PlRef } from '@platforma-sdk/model';
import { z } from 'zod';

const Species = z.union([
z.literal('hsa'),
Expand All @@ -25,16 +24,14 @@ export type PresetFile = z.infer<typeof PresetFile>;
export const Preset = z.discriminatedUnion('type', [PresetName, PresetFile]);
export type Preset = z.infer<typeof Preset>;

export const BlockArgsValid = z
.object({
input: PlRef,
preset: Preset,
species: z.string().optional(),
limitInput: z.number().int().optional(),
title: z.string().optional(),
presetCommonName: z.string().optional()
})
.strict();
export const BlockArgsValid = z.object({
input: PlRef,
preset: Preset,
species: z.string().optional(),
limitInput: z.number().int().optional(),
title: z.string().optional(),
presetCommonName: z.string().optional()
});
export type BlockArgsValid = z.infer<typeof BlockArgsValid>;

export const BlockArgs = BlockArgsValid.partial({ input: true, preset: true });
Expand Down
27 changes: 16 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ catalog:
'@milaboratories/helpers': ^1.6.10

'@milaboratories/software-pframes-conv': 2.1.2
'@platforma-open/milaboratories.software-small-binaries': ^1.14.6
'@platforma-open/milaboratories.software-small-binaries': ^1.15.0
'@platforma-open/milaboratories.software-mixcr': 4.7.0-133-develop

'vue': ^3.5.13
'vue-tsc': ^2.1.10

'zod': ^3.23.8
'zod': ^3.24.1
'utility-types': ^3.11.0

'typescript': ~5.5.4
Expand Down
2 changes: 1 addition & 1 deletion ui/src/SampleReportPanelReports.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const app = useApp();
const reportHandle = computed(() => {
const sampleId = props.sampleId;
return app.model.outputs?.reports?.data?.find(
return app.model.outputs.reports?.data?.find(
d => d.key[0] === sampleId &&
d.key[1] === data.currentReport &&
d.key[2] === 'txt')?.value?.handle;
Expand Down
2 changes: 0 additions & 2 deletions ui/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
Expand Down

0 comments on commit 5b9ccc3

Please sign in to comment.