@metrichor/epi2me-client-node
Advanced tools
Comparing version 0.2.10605124 to 0.2.10615829
@@ -43,2 +43,8 @@ import type { GraphQLClient } from './GraphQLClient.type'; | ||
}>; | ||
values: import("ts-runtime-typecheck").Optional<{ | ||
source: string; | ||
} | { | ||
label: string; | ||
value: import("ts-runtime-typecheck").Primitive; | ||
}[]>; | ||
}[]>; | ||
@@ -45,0 +51,0 @@ export declare function get_workflow_configuration(gql: GraphQLClient, id_workflow: string): Promise<WorkflowConfiguration>; |
import type { Optional, Primitive } from 'ts-runtime-typecheck'; | ||
export interface WorkflowParam { | ||
cgi_param: string; | ||
component_id: number; | ||
mandatory: boolean; | ||
widget: string; | ||
label: Optional<string>; | ||
default: Optional<Primitive>; | ||
help?: Optional<{ | ||
text: string; | ||
example: string; | ||
readonly cgi_param: string; | ||
readonly component_id: number; | ||
readonly mandatory: boolean; | ||
readonly widget: string; | ||
readonly label: Optional<string>; | ||
readonly default: Optional<Primitive>; | ||
readonly help?: Optional<{ | ||
readonly text: string; | ||
readonly example: string; | ||
}>; | ||
validation?: Optional<{ | ||
type: 'syntactic'; | ||
pattern: Optional<string>; | ||
minLength: Optional<number>; | ||
maxLength: Optional<number>; | ||
message: Optional<string>; | ||
exclude: Optional<boolean>; | ||
}[]>; | ||
filetype?: Optional<string>; | ||
readonly validation?: Optional<ReadonlyArray<{ | ||
readonly type: 'syntactic'; | ||
readonly pattern: Optional<string>; | ||
readonly minLength: Optional<number>; | ||
readonly maxLength: Optional<number>; | ||
readonly message: Optional<string>; | ||
readonly exclude: Optional<boolean>; | ||
}>>; | ||
readonly filetype?: Optional<string>; | ||
readonly values?: Optional<ReadonlyArray<{ | ||
readonly label: string; | ||
readonly value: Primitive; | ||
}>>; | ||
} | ||
@@ -35,9 +39,9 @@ export interface WorkflowConfiguration { | ||
export interface ResolvedWorkflowConfiguration { | ||
idDataset: string | undefined; | ||
idWorkflow: string; | ||
isConsentedHuman: boolean; | ||
computeAccountId: string; | ||
userDefined: { | ||
[component_id: string]: { | ||
[cgi_param: string]: string; | ||
readonly idDataset: string | undefined; | ||
readonly idWorkflow: string; | ||
readonly isConsentedHuman: boolean; | ||
readonly computeAccountId: string; | ||
readonly userDefined: { | ||
readonly [component_id: string]: { | ||
readonly [cgi_param: string]: string; | ||
}; | ||
@@ -44,0 +48,0 @@ }; |
10
index.js
@@ -582,2 +582,8 @@ 'use strict'; | ||
}), | ||
values: tsRuntimeTypecheck.isOptUnion(tsRuntimeTypecheck.isArrayOf(tsRuntimeTypecheck.isStruct({ | ||
label: tsRuntimeTypecheck.isString, | ||
value: tsRuntimeTypecheck.isPrimitive, | ||
})), tsRuntimeTypecheck.isStruct({ | ||
source: tsRuntimeTypecheck.isString | ||
})) | ||
})); | ||
@@ -611,3 +617,3 @@ async function get_workflow_configuration(gql, id_workflow) { | ||
id_workflow, | ||
parameters, | ||
parameters: parameters.map(({ values, ...p }) => tsRuntimeTypecheck.isDictionary(values) ? p : { ...p, values }), | ||
arguments: workflow_arguments, | ||
@@ -639,3 +645,3 @@ accepted_files: input_formats, | ||
id_workflow, | ||
parameters, | ||
parameters: parameters.map(({ values, ...p }) => tsRuntimeTypecheck.isDictionary(values) ? p : { ...p, values }), | ||
arguments: workflow_arguments, | ||
@@ -642,0 +648,0 @@ accepted_files: input_formats, |
{ | ||
"name": "@metrichor/epi2me-client-node", | ||
"version": "0.2.10605124", | ||
"version": "0.2.10615829", | ||
"license": "MPL-2.0", | ||
@@ -5,0 +5,0 @@ "author": "Metrichor <support@nanoporetech.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105959
2100