feat: make step in editor configurable
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
4985fb422e
commit
95a63affe7
15
packages/web/src/graphql/mutations/create-step.ts
Normal file
15
packages/web/src/graphql/mutations/create-step.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const CREATE_STEP = gql`
|
||||
mutation CreateStep($input: StepInput!) {
|
||||
createStep(input: $input) {
|
||||
id
|
||||
type
|
||||
key
|
||||
appKey
|
||||
connection {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
15
packages/web/src/graphql/mutations/update-step.ts
Normal file
15
packages/web/src/graphql/mutations/update-step.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const UPDATE_STEP = gql`
|
||||
mutation UpdateStep($input: StepInput!) {
|
||||
updateStep(input: $input) {
|
||||
id
|
||||
type
|
||||
key
|
||||
appKey
|
||||
connection {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
@@ -55,6 +55,17 @@ export const GET_APP = gql`
|
||||
name
|
||||
key
|
||||
description
|
||||
subSteps {
|
||||
name
|
||||
}
|
||||
}
|
||||
actions {
|
||||
name
|
||||
key
|
||||
description
|
||||
subSteps {
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -5,6 +5,7 @@ export const GET_FLOW = gql`
|
||||
getFlow(id: $id) {
|
||||
id
|
||||
name
|
||||
active
|
||||
steps {
|
||||
id
|
||||
type
|
||||
|
Reference in New Issue
Block a user