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 { GraphQLObjectType, GraphQLString, GraphQLList, GraphQLInt } from 'graphql';
|
||||||
|
import ArgumentEnumType from './argument-enum-type';
|
||||||
|
|
||||||
const authenticationStepType = new GraphQLObjectType({
|
const authenticationStepType = new GraphQLObjectType({
|
||||||
name: 'AuthenticationStep',
|
name: 'AuthenticationStep',
|
||||||
@@ -13,6 +14,7 @@ const authenticationStepType = new GraphQLObjectType({
|
|||||||
fields: {
|
fields: {
|
||||||
name: { type: GraphQLString },
|
name: { type: GraphQLString },
|
||||||
value: { type: GraphQLString },
|
value: { type: GraphQLString },
|
||||||
|
type: { type: ArgumentEnumType },
|
||||||
properties: {
|
properties: {
|
||||||
type: GraphQLList(
|
type: GraphQLList(
|
||||||
new GraphQLObjectType({
|
new GraphQLObjectType({
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
import { GraphQLObjectType, GraphQLString, GraphQLList, GraphQLInt } from 'graphql';
|
import { GraphQLObjectType, GraphQLString, GraphQLList, GraphQLInt } from 'graphql';
|
||||||
|
import ArgumentEnumType from './argument-enum-type';
|
||||||
|
|
||||||
const reconnectionStepType = new GraphQLObjectType({
|
const reconnectionStepType = new GraphQLObjectType({
|
||||||
name: 'ReconnectionStep',
|
name: 'ReconnectionStep',
|
||||||
@@ -13,6 +14,7 @@ const reconnectionStepType = new GraphQLObjectType({
|
|||||||
fields: {
|
fields: {
|
||||||
name: { type: GraphQLString },
|
name: { type: GraphQLString },
|
||||||
value: { type: GraphQLString },
|
value: { type: GraphQLString },
|
||||||
|
type: { type: ArgumentEnumType },
|
||||||
properties: {
|
properties: {
|
||||||
type: GraphQLList(
|
type: GraphQLList(
|
||||||
new GraphQLObjectType({
|
new GraphQLObjectType({
|
||||||
|
@@ -27,6 +27,7 @@ export const GET_APP = gql`
|
|||||||
arguments {
|
arguments {
|
||||||
name
|
name
|
||||||
value
|
value
|
||||||
|
type
|
||||||
properties {
|
properties {
|
||||||
name
|
name
|
||||||
value
|
value
|
||||||
@@ -40,6 +41,7 @@ export const GET_APP = gql`
|
|||||||
arguments {
|
arguments {
|
||||||
name
|
name
|
||||||
value
|
value
|
||||||
|
type
|
||||||
properties {
|
properties {
|
||||||
name
|
name
|
||||||
value
|
value
|
||||||
|
Reference in New Issue
Block a user