feat: introduce reconnect feature for connections

This commit is contained in:
Ali BARIN
2021-10-20 21:01:48 +02:00
parent 258caa81f0
commit ec4dd8a037
16 changed files with 75 additions and 41 deletions

View File

@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const CREATE_CONNECTION = gql`
mutation CreateConnection($key: String!, $data: twitterCredentialInput!) {
mutation CreateConnection($key: String!, $data: TwitterCredentialInput!) {
createConnection(key: $key, data: $data) {
id
key

View File

@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const UPDATE_CONNECTION = gql`
mutation UpdateConnection($id: String!, $data: twitterCredentialInput!) {
mutation UpdateConnection($id: String!, $data: TwitterCredentialInput!) {
updateConnection(id: $id, data: $data) {
id
key

View File

@@ -32,6 +32,19 @@ export const GET_APP = gql`
}
}
}
reconnectionSteps {
step
type
name
fields {
name
value
fields {
name
value
}
}
}
connections {
id
}

View File

@@ -2,6 +2,9 @@ import { gql } from '@apollo/client';
export const TEST_CONNECTION = gql`
query TestConnection($id: String!) {
testConnection(id: $id)
testConnection(id: $id) {
id
verified
}
}
`;