feat: introduce reconnect feature for connections
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -32,6 +32,19 @@ export const GET_APP = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
reconnectionSteps {
|
||||
step
|
||||
type
|
||||
name
|
||||
fields {
|
||||
name
|
||||
value
|
||||
fields {
|
||||
name
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
connections {
|
||||
id
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user