chore: Expose type field of the steps arguments

This commit is contained in:
Faruk AYDIN
2022-01-02 14:29:18 +03:00
committed by Ömer Faruk Aydın
parent 06bfba371d
commit a232408f22
4 changed files with 19 additions and 0 deletions

View File

@@ -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;

View File

@@ -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({

View File

@@ -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({

View File

@@ -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