chore: remove delete-connection mutation

This commit is contained in:
Ali BARIN
2024-08-28 13:28:06 +00:00
parent 990e69143d
commit 59278378e5
5 changed files with 0 additions and 30 deletions

View File

@@ -3,7 +3,6 @@ import createFlow from './mutations/create-flow.js';
import createRole from './mutations/create-role.ee.js'; import createRole from './mutations/create-role.ee.js';
import createStep from './mutations/create-step.js'; import createStep from './mutations/create-step.js';
import createUser from './mutations/create-user.ee.js'; import createUser from './mutations/create-user.ee.js';
import deleteConnection from './mutations/delete-connection.js';
import deleteCurrentUser from './mutations/delete-current-user.ee.js'; import deleteCurrentUser from './mutations/delete-current-user.ee.js';
import deleteFlow from './mutations/delete-flow.js'; import deleteFlow from './mutations/delete-flow.js';
import deleteRole from './mutations/delete-role.ee.js'; import deleteRole from './mutations/delete-role.ee.js';
@@ -33,7 +32,6 @@ const mutationResolvers = {
createRole, createRole,
createStep, createStep,
createUser, createUser,
deleteConnection,
deleteCurrentUser, deleteCurrentUser,
deleteFlow, deleteFlow,
deleteRole, deleteRole,

View File

@@ -1,15 +0,0 @@
const deleteConnection = async (_parent, params, context) => {
context.currentUser.can('delete', 'Connection');
await context.currentUser
.$relatedQuery('connections')
.delete()
.findOne({
id: params.input.id,
})
.throwIfNotFound();
return;
};
export default deleteConnection;

View File

@@ -7,7 +7,6 @@ type Mutation {
createRole(input: CreateRoleInput): Role createRole(input: CreateRoleInput): Role
createStep(input: CreateStepInput): Step createStep(input: CreateStepInput): Step
createUser(input: CreateUserInput): UserWithAcceptInvitationUrl createUser(input: CreateUserInput): UserWithAcceptInvitationUrl
deleteConnection(input: DeleteConnectionInput): Boolean
deleteCurrentUser: Boolean deleteCurrentUser: Boolean
deleteFlow(input: DeleteFlowInput): Boolean deleteFlow(input: DeleteFlowInput): Boolean
deleteRole(input: DeleteRoleInput): Boolean deleteRole(input: DeleteRoleInput): Boolean
@@ -292,10 +291,6 @@ input SamlAuthProviderRoleMappingInput {
remoteRoleName: String! remoteRoleName: String!
} }
input DeleteConnectionInput {
id: String!
}
input CreateFlowInput { input CreateFlowInput {
triggerAppKey: String triggerAppKey: String
connectionId: String connectionId: String

View File

@@ -1,6 +0,0 @@
import { gql } from '@apollo/client';
export const DELETE_CONNECTION = gql`
mutation DeleteConnection($input: DeleteConnectionInput) {
deleteConnection(input: $input)
}
`;

View File

@@ -2,14 +2,12 @@ import { CREATE_CONNECTION } from './create-connection';
import { UPDATE_CONNECTION } from './update-connection'; import { UPDATE_CONNECTION } from './update-connection';
import { VERIFY_CONNECTION } from './verify-connection'; import { VERIFY_CONNECTION } from './verify-connection';
import { RESET_CONNECTION } from './reset-connection'; import { RESET_CONNECTION } from './reset-connection';
import { DELETE_CONNECTION } from './delete-connection';
import { GENERATE_AUTH_URL } from './generate-auth-url'; import { GENERATE_AUTH_URL } from './generate-auth-url';
const mutations = { const mutations = {
createConnection: CREATE_CONNECTION, createConnection: CREATE_CONNECTION,
updateConnection: UPDATE_CONNECTION, updateConnection: UPDATE_CONNECTION,
verifyConnection: VERIFY_CONNECTION, verifyConnection: VERIFY_CONNECTION,
resetConnection: RESET_CONNECTION, resetConnection: RESET_CONNECTION,
deleteConnection: DELETE_CONNECTION,
generateAuthUrl: GENERATE_AUTH_URL, generateAuthUrl: GENERATE_AUTH_URL,
}; };
export default mutations; export default mutations;