diff --git a/packages/backend/src/graphql/types/argument-enum-type.ts b/packages/backend/src/graphql/types/argument-enum-type.ts new file mode 100644 index 00000000..a81a08eb --- /dev/null +++ b/packages/backend/src/graphql/types/argument-enum-type.ts @@ -0,0 +1,13 @@ +import { GraphQLEnumType } from 'graphql'; + +const argumentEnumValues = { + integer: { value: 'integer' }, + string: { value: 'string' } +} + +const ArgumentEnumType = new GraphQLEnumType({ + name: 'ArgumentEnumType', + values: argumentEnumValues +}) + +export default ArgumentEnumType; diff --git a/packages/backend/src/graphql/types/authentication-step.ts b/packages/backend/src/graphql/types/authentication-step.ts index db7e7fab..00fb0f07 100644 --- a/packages/backend/src/graphql/types/authentication-step.ts +++ b/packages/backend/src/graphql/types/authentication-step.ts @@ -1,4 +1,5 @@ import { GraphQLObjectType, GraphQLString, GraphQLList, GraphQLInt } from 'graphql'; +import ArgumentEnumType from './argument-enum-type'; const authenticationStepType = new GraphQLObjectType({ name: 'AuthenticationStep', @@ -13,6 +14,7 @@ const authenticationStepType = new GraphQLObjectType({ fields: { name: { type: GraphQLString }, value: { type: GraphQLString }, + type: { type: ArgumentEnumType }, properties: { type: GraphQLList( new GraphQLObjectType({ diff --git a/packages/backend/src/graphql/types/reconnection-step.ts b/packages/backend/src/graphql/types/reconnection-step.ts index 8c6dd64f..534a24e6 100644 --- a/packages/backend/src/graphql/types/reconnection-step.ts +++ b/packages/backend/src/graphql/types/reconnection-step.ts @@ -1,4 +1,5 @@ import { GraphQLObjectType, GraphQLString, GraphQLList, GraphQLInt } from 'graphql'; +import ArgumentEnumType from './argument-enum-type'; const reconnectionStepType = new GraphQLObjectType({ name: 'ReconnectionStep', @@ -13,6 +14,7 @@ const reconnectionStepType = new GraphQLObjectType({ fields: { name: { type: GraphQLString }, value: { type: GraphQLString }, + type: { type: ArgumentEnumType }, properties: { type: GraphQLList( new GraphQLObjectType({ diff --git a/packages/web/src/graphql/queries/get-app.ts b/packages/web/src/graphql/queries/get-app.ts index 2fa265a8..4c267879 100644 --- a/packages/web/src/graphql/queries/get-app.ts +++ b/packages/web/src/graphql/queries/get-app.ts @@ -27,6 +27,7 @@ export const GET_APP = gql` arguments { name value + type properties { name value @@ -40,6 +41,7 @@ export const GET_APP = gql` arguments { name value + type properties { name value