2018-07-10 14:19:45 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-23 07:55:14 +00:00
|
|
|
module Types
|
|
|
|
class MutationType < BaseObject
|
2018-07-10 14:19:45 +00:00
|
|
|
include Gitlab::Graphql::MountMutation
|
|
|
|
|
2020-02-17 12:09:20 +00:00
|
|
|
graphql_name 'Mutation'
|
2017-08-16 13:04:41 +00:00
|
|
|
|
2020-03-03 15:08:08 +00:00
|
|
|
mount_mutation Mutations::Admin::SidekiqQueues::DeleteJobs
|
2020-05-15 15:08:04 +00:00
|
|
|
mount_mutation Mutations::AlertManagement::CreateAlertIssue
|
2020-05-06 12:09:36 +00:00
|
|
|
mount_mutation Mutations::AlertManagement::UpdateAlertStatus
|
2019-06-21 04:45:27 +00:00
|
|
|
mount_mutation Mutations::AwardEmojis::Add
|
|
|
|
mount_mutation Mutations::AwardEmojis::Remove
|
|
|
|
mount_mutation Mutations::AwardEmojis::Toggle
|
2020-05-05 09:09:37 +00:00
|
|
|
mount_mutation Mutations::Branches::Create, calls_gitaly: true
|
2020-05-29 09:08:06 +00:00
|
|
|
mount_mutation Mutations::Commits::Create, calls_gitaly: true
|
2020-06-01 00:08:25 +00:00
|
|
|
mount_mutation Mutations::Discussions::ToggleResolve
|
2019-12-03 18:06:49 +00:00
|
|
|
mount_mutation Mutations::Issues::SetConfidential
|
2019-11-25 18:06:04 +00:00
|
|
|
mount_mutation Mutations::Issues::SetDueDate
|
2020-02-18 09:09:24 +00:00
|
|
|
mount_mutation Mutations::Issues::Update
|
2020-05-26 09:08:06 +00:00
|
|
|
mount_mutation Mutations::MergeRequests::Create
|
2019-11-15 06:06:13 +00:00
|
|
|
mount_mutation Mutations::MergeRequests::SetLabels
|
|
|
|
mount_mutation Mutations::MergeRequests::SetLocked
|
2019-11-04 09:06:21 +00:00
|
|
|
mount_mutation Mutations::MergeRequests::SetMilestone
|
2019-11-15 06:06:13 +00:00
|
|
|
mount_mutation Mutations::MergeRequests::SetSubscription
|
2019-06-26 10:42:25 +00:00
|
|
|
mount_mutation Mutations::MergeRequests::SetWip, calls_gitaly: true
|
2019-11-15 00:06:05 +00:00
|
|
|
mount_mutation Mutations::MergeRequests::SetAssignees
|
2020-05-19 12:08:21 +00:00
|
|
|
mount_mutation Mutations::Metrics::Dashboard::Annotations::Create
|
2019-07-01 04:34:34 +00:00
|
|
|
mount_mutation Mutations::Notes::Create::Note, calls_gitaly: true
|
|
|
|
mount_mutation Mutations::Notes::Create::DiffNote, calls_gitaly: true
|
|
|
|
mount_mutation Mutations::Notes::Create::ImageDiffNote, calls_gitaly: true
|
2020-02-17 12:09:20 +00:00
|
|
|
mount_mutation Mutations::Notes::Update::Note,
|
|
|
|
description: 'Updates a Note. If the body of the Note contains only quick actions, ' \
|
|
|
|
'the Note will be destroyed during the update, and no Note will be ' \
|
|
|
|
'returned'
|
|
|
|
mount_mutation Mutations::Notes::Update::ImageDiffNote,
|
|
|
|
description: 'Updates a DiffNote on an image (a `Note` where the `position.positionType` is `"image"`). ' \
|
|
|
|
'If the body of the Note contains only quick actions, the Note will be ' \
|
|
|
|
'destroyed during the update, and no Note will be returned'
|
2019-07-01 04:34:34 +00:00
|
|
|
mount_mutation Mutations::Notes::Destroy
|
2019-11-12 15:06:26 +00:00
|
|
|
mount_mutation Mutations::Todos::MarkDone
|
2019-11-21 12:06:40 +00:00
|
|
|
mount_mutation Mutations::Todos::Restore
|
2019-11-21 18:06:26 +00:00
|
|
|
mount_mutation Mutations::Todos::MarkAllDone
|
2020-02-01 03:09:04 +00:00
|
|
|
mount_mutation Mutations::Todos::RestoreMany
|
2019-12-13 09:08:01 +00:00
|
|
|
mount_mutation Mutations::Snippets::Destroy
|
|
|
|
mount_mutation Mutations::Snippets::Update
|
|
|
|
mount_mutation Mutations::Snippets::Create
|
2019-12-17 15:08:15 +00:00
|
|
|
mount_mutation Mutations::Snippets::MarkAsSpam
|
2020-03-31 15:07:53 +00:00
|
|
|
mount_mutation Mutations::JiraImport::Start
|
2020-05-13 15:08:23 +00:00
|
|
|
mount_mutation Mutations::DesignManagement::Upload, calls_gitaly: true
|
|
|
|
mount_mutation Mutations::DesignManagement::Delete, calls_gitaly: true
|
2020-06-03 21:08:23 +00:00
|
|
|
mount_mutation Mutations::ContainerExpirationPolicies::Update
|
2018-05-23 07:55:14 +00:00
|
|
|
end
|
2017-08-16 13:04:41 +00:00
|
|
|
end
|
2019-09-13 13:26:31 +00:00
|
|
|
|
|
|
|
::Types::MutationType.prepend_if_ee('::EE::Types::MutationType')
|