refactor: Update credential wording with connection

This commit is contained in:
Ali BARIN
2021-10-17 16:08:05 +02:00
parent a1363f7fdd
commit 48ba4565e4
4 changed files with 21 additions and 21 deletions

View File

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

View File

@@ -1,14 +0,0 @@
import { gql } from '@apollo/client';
export const CREATE_CREDENTIAL = gql`
mutation CreateCredential($key: String!, $data: twitterCredentialInput!) {
createCredential(key: $key, data: $data) {
key
id
data {
consumerKey
consumerSecret
}
}
}
`;

View File

@@ -1,14 +1,14 @@
import { CREATE_CREDENTIAL } from './create-credentials';
import { CREATE_CONNECTION } from './create-connection';
import { CREATE_AUTH_LINK } from './create-auth-link';
import { UPDATE_CREDENTIAL } from './update-credential';
import { UPDATE_CONNECTION } from './update-connection';
type Mutations = {
[key: string]: any,
}
const mutations: Mutations = {
createCredential: CREATE_CREDENTIAL,
updateCredential: UPDATE_CREDENTIAL,
createConnection: CREATE_CONNECTION,
updateConnection: UPDATE_CONNECTION,
createAuthLink: CREATE_AUTH_LINK,
};

View File

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