chore: Expose type field of the steps arguments
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
06bfba371d
commit
a232408f22
13
packages/backend/src/graphql/types/argument-enum-type.ts
Normal file
13
packages/backend/src/graphql/types/argument-enum-type.ts
Normal 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;
|
@@ -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({
|
||||
|
@@ -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({
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user