Skip to content
Snippets Groups Projects
Commit 70a4f6a0 authored by stevereis's avatar stevereis
Browse files

Add missing fields to algorithms

parent 83fee2e6
Branches
No related tags found
No related merge requests found
...@@ -19,8 +19,8 @@ export const transformToAlgorithms = jsonata(` ...@@ -19,8 +19,8 @@ export const transformToAlgorithms = jsonata(`
'label': label, 'label': label,
'type': valueType, 'type': valueType,
'defaultValue': defaultValue, 'defaultValue': defaultValue,
'isMultiple': valueMultiple, 'isMultiple': $boolean(valueMultiple),
'isRequired': valueNotBlank, 'isRequired': $boolean(valueNotBlank),
'min': valueMin, 'min': valueMin,
'max': valueMax 'max': valueMax
}) })
......
...@@ -5,8 +5,11 @@ export class AlgorithmParameter { ...@@ -5,8 +5,11 @@ export class AlgorithmParameter {
@Field() @Field()
name: string; name: string;
@Field(() => [String]) @Field(() => [String], { nullable: true })
value: string[]; value?: string[];
@Field({ nullable: true })
label?: string;
@Field({ nullable: true }) @Field({ nullable: true })
description?: string; description?: string;
......
...@@ -9,9 +9,12 @@ export class Algorithm { ...@@ -9,9 +9,12 @@ export class Algorithm {
@Field(() => [AlgorithmParameter], { nullable: true, defaultValue: [] }) @Field(() => [AlgorithmParameter], { nullable: true, defaultValue: [] })
parameters?: AlgorithmParameter[]; parameters?: AlgorithmParameter[];
@Field() @Field({ nullable: true })
type: string; label?: string;
@Field({ nullable: true })
type?: string;
@Field({ nullable: true }) @Field({ nullable: true })
description: string; description?: string;
} }
...@@ -36,7 +36,8 @@ type Domain { ...@@ -36,7 +36,8 @@ type Domain {
type AlgorithmParameter { type AlgorithmParameter {
name: String! name: String!
value: [String!]! value: [String!]
label: String
description: String description: String
defaultValue: String defaultValue: String
isMultiple: Boolean isMultiple: Boolean
...@@ -49,7 +50,8 @@ type AlgorithmParameter { ...@@ -49,7 +50,8 @@ type AlgorithmParameter {
type Algorithm { type Algorithm {
name: String! name: String!
parameters: [AlgorithmParameter!] parameters: [AlgorithmParameter!]
type: String! label: String
type: String
description: String description: String
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment