From 498aad7dcd23b19cf436dba687401aac7647fda9 Mon Sep 17 00:00:00 2001 From: rishabhbizzle Date: Wed, 3 Jan 2024 14:09:13 +0530 Subject: [PATCH] feat: deprecate mutations of project & task feature in events --- src/GraphQl/Mutations/mutations.ts | 79 ------------------------------ 1 file changed, 79 deletions(-) diff --git a/src/GraphQl/Mutations/mutations.ts b/src/GraphQl/Mutations/mutations.ts index f25abab4ef..209a9af3db 100644 --- a/src/GraphQl/Mutations/mutations.ts +++ b/src/GraphQl/Mutations/mutations.ts @@ -525,85 +525,6 @@ export const REGISTER_EVENT = gql` } `; -export const ADD_EVENT_PROJECT_MUTATION = gql` - mutation AddEventProject( - $title: String! - $description: String! - $eventId: ID! - ) { - createEventProject( - data: { title: $title, description: $description, eventId: $eventId } - ) { - _id - } - } -`; - -export const UPDATE_EVENT_PROJECT_MUTATION = gql` - mutation UpdateEventProject($title: String, $description: String, $id: ID!) { - updateEventProject( - id: $id - data: { title: $title, description: $description } - ) { - _id - } - } -`; - -export const DELETE_EVENT_PROJECT_MUTATION = gql` - mutation DeleteEventProject($id: ID!) { - removeEventProject(id: $id) { - _id - } - } -`; - -export const ADD_EVENT_PROJECT_TASK_MUTATION = gql` - mutation AddEventTask( - $title: String! - $description: String! - $projectId: ID! - $deadline: DateTime! - ) { - createTask( - eventProjectId: $projectId - data: { title: $title, description: $description, deadline: $deadline } - ) { - _id - } - } -`; - -export const UPDATE_EVENT_PROJECT_TASK_MUTATION = gql` - mutation UpdateEventTask( - $title: String! - $description: String! - $taskId: ID! - $deadline: DateTime! - $completed: Boolean! - ) { - updateTask( - id: $taskId - data: { - title: $title - description: $description - deadline: $deadline - completed: $completed - } - ) { - _id - } - } -`; - -export const DELETE_EVENT_TASK_MUTATION = gql` - mutation DeleteTask($id: ID!) { - removeTask(id: $id) { - _id - } - } -`; - export const SET_TASK_VOLUNTEERS_MUTATION = gql` mutation SetTaskVolunteers($id: ID!, $volunteers: [ID]!) { setTaskVolunteers(id: $id, volunteers: $volunteers) {