import gql from 'graphql-tag';
import { fragments } from './eventsQuery';

export const createEventMutation = gql`
mutation($input: CreateEventInput!) {
  createEvent(input: $input) {
    event {
      ...EventFields
    }
  }
}

${fragments.event}
`;

export const createFillerEventMutation = gql`
mutation($input: CreateFillerEventInput!) {
  createFillerEvent(input: $input) {
    event {
      ...EventFields
    }
  }
}

${fragments.event}
`;

export const dropEventMutation = gql`
mutation($input: DropEventInput!) {
  dropEvent(input: $input) {
    event {
      id
      status
    }
  }
}
`;

export const restoreDroppedEventMutation = gql`
mutation($input: RestoreDroppedEventInput!) {
  restoreDroppedEvent(input: $input) {
    event {
      id
      status
    }
  }
}
`;

export const updateEventMutation = gql`
mutation($input: UpdateEventInput!) {
  updateEvent(input: $input) {
    event {
      ...EventFields
    }
  }
}

${fragments.event}
`;

export const createVolunteerEventMutation = gql`
mutation($input: CreateVolunteerEventInput!) {
  createVolunteerEvent(input: $input) {
    event {
      ...EventFields
    }
  }
}

${fragments.event}
`;

export const createRunMutation = gql`
mutation($input: CreateRunInput!) {
  createRun(input: $input) {
    run {
      ...RunFields
    }
  }
}

${fragments.run}
`;

export const createMultipleRunsMutation = gql`
mutation($input: CreateMultipleRunsInput!) {
  createMultipleRuns(input: $input) {
    runs {
      ...RunFields
    }
  }
}

${fragments.run}
`;

export const updateRunMutation = gql`
mutation($input: UpdateRunInput!) {
  updateRun(input: $input) {
    run {
      ...RunFields
    }
  }
}

${fragments.run}
`;

export const deleteRunMutation = gql`
mutation($input: DeleteRunInput!) {
  deleteRun(input: $input) {
    run {
      ...RunFields
    }
  }
}

${fragments.run}
`;

export const createMaximumEventProvidedTicketsOverrideMutation = gql`
mutation($input: CreateMaximumEventProvidedTicketsOverrideInput!) {
  createMaximumEventProvidedTicketsOverride(input: $input) {
    maximum_event_provided_tickets_override {
      ...MaximumEventProvidedTicketsOverrideFields
    }
  }
}

${fragments.maximumEventProvidedTicketsOverride}
`;

export const deleteMaximumEventProvidedTicketsOverrideMutation = gql`
mutation($input: DeleteMaximumEventProvidedTicketsOverrideInput!) {
  deleteMaximumEventProvidedTicketsOverride(input: $input) {
    maximum_event_provided_tickets_override {
      ...MaximumEventProvidedTicketsOverrideFields
    }
  }
}

${fragments.maximumEventProvidedTicketsOverride}
`;

export const updateMaximumEventProvidedTicketsOverrideMutation = gql`
mutation($input: UpdateMaximumEventProvidedTicketsOverrideInput!) {
  updateMaximumEventProvidedTicketsOverride(input: $input) {
    maximum_event_provided_tickets_override {
      ...MaximumEventProvidedTicketsOverrideFields
    }
  }
}

${fragments.maximumEventProvidedTicketsOverride}
`;

@@ -960,213 +960,8 @@
 %60;%0A%0A
-export const createVolunteerEventMutation = gql%60%0Amutation($input: CreateVolunteerEventInput!) %7B%0A  createVolunteerEvent(input: $input) %7B%0A    event %7B%0A      ...EventFields%0A    %7D%0A  %7D%0A%7D%0A%0A$%7Bfragments.event%7D%0A%60;%0A%0A
 expo

Remove unused mutation