diff --git a/src/GraphQl/Mutations/EventTaskMutations.ts b/src/GraphQl/Mutations/EventTaskMutations.ts deleted file mode 100644 index d7c784f8ab..0000000000 --- a/src/GraphQl/Mutations/EventTaskMutations.ts +++ /dev/null @@ -1,65 +0,0 @@ -import gql from 'graphql-tag'; - -/** - * GraphQL mutation to update an event project task. - * - * @param title - The updated title of the task. - * @param description - The updated description of the task. - * @param taskId - The ID of the task to be updated. - * @param deadline - The updated deadline for the task. - * @param completed - The updated completion status of the task. - * @returns The updated task object. - */ - -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 - } - } -`; - -/** - * GraphQL mutation to delete an event project task. - * - * @param id - The ID of the task to be deleted. - * @returns The deleted task object. - */ - -export const DELETE_EVENT_TASK_MUTATION = gql` - mutation DeleteTask($id: ID!) { - removeTask(id: $id) { - _id - } - } -`; - -/** - * GraphQL mutation to set volunteers for an event project task. - * - * @param id - The ID of the task for which volunteers are being set. - * @param volunteers - An array of user IDs representing the volunteers for the task. - * @returns The updated task object with the assigned volunteers. - */ - -export const SET_TASK_VOLUNTEERS_MUTATION = gql` - mutation SetTaskVolunteers($id: ID!, $volunteers: [ID]!) { - setTaskVolunteers(id: $id, volunteers: $volunteers) { - _id - } - } -`; diff --git a/src/GraphQl/Mutations/mutations.ts b/src/GraphQl/Mutations/mutations.ts index e27f6733b8..c7fda02b88 100644 --- a/src/GraphQl/Mutations/mutations.ts +++ b/src/GraphQl/Mutations/mutations.ts @@ -550,10 +550,6 @@ export const REGISTER_EVENT = gql` } } `; -// Changes the role of a event in an organization and add and remove the event from the organization -export { UPDATE_EVENT_PROJECT_TASK_MUTATION } from './EventTaskMutations'; -export { DELETE_EVENT_TASK_MUTATION } from './EventTaskMutations'; -export { SET_TASK_VOLUNTEERS_MUTATION } from './EventTaskMutations'; // Changes the role of a event in an organization and add and remove the event from the organization export { ADD_EVENT_ATTENDEE } from './EventAttendeeMutations'; diff --git a/src/GraphQl/Queries/PlugInQueries.ts b/src/GraphQl/Queries/PlugInQueries.ts index b3f671a3a0..76ade412a6 100644 --- a/src/GraphQl/Queries/PlugInQueries.ts +++ b/src/GraphQl/Queries/PlugInQueries.ts @@ -93,49 +93,6 @@ export const ORGANIZATION_EVENTS_CONNECTION = gql` } `; -/** - * GraphQL query to retrieve a list of tasks assigned to a user. - * - * @param id - The ID of the user for which assigned tasks are being retrieved. - * @returns The list of tasks assigned to the user with details such as ID, title, description, deadline, volunteers, creation date, completion status, associated event, and creator. - */ - -export const USER_TASKS_LIST = gql` - query User($id: ID!) { - user(id: $id) { - _id - assignedTasks { - _id - title - description - deadline - volunteers { - _id - firstName - lastName - email - } - createdAt - completed - event { - _id - title - organization { - _id - name - image - } - } - creator { - _id - firstName - lastName - } - } - } - } -`; - /** * GraphQL query to retrieve a list of direct chats based on user ID. * diff --git a/src/GraphQl/Queries/Queries.ts b/src/GraphQl/Queries/Queries.ts index 1941add36a..761307197c 100644 --- a/src/GraphQl/Queries/Queries.ts +++ b/src/GraphQl/Queries/Queries.ts @@ -540,7 +540,6 @@ export const MEMBERSHIP_REQUEST = gql` export { PLUGIN_GET } from './PlugInQueries'; export { ADVERTISEMENTS_GET } from './PlugInQueries'; export { ORGANIZATION_EVENTS_CONNECTION } from './PlugInQueries'; -export { USER_TASKS_LIST } from './PlugInQueries'; export { DIRECT_CHATS_LIST } from './PlugInQueries'; export { IS_SAMPLE_ORGANIZATION_QUERY } from './PlugInQueries'; export { ORGANIZATION_CUSTOM_FIELDS } from './PlugInQueries';