diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-18 12:15:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-18 12:15:50 +0300 |
commit | 5d7b3c05e5c502d090a13515dc5cdaf6b647f215 (patch) | |
tree | 317a34626ee210ce687f941f75d512b32b015c4d /app/graphql/types | |
parent | 20ab32fe1094c9781e5b39381412898b6dce6657 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/types')
-rw-r--r-- | app/graphql/types/work_items/award_emoji_update_action_enum.rb | 13 | ||||
-rw-r--r-- | app/graphql/types/work_items/widgets/award_emoji_update_input_type.rb | 20 |
2 files changed, 33 insertions, 0 deletions
diff --git a/app/graphql/types/work_items/award_emoji_update_action_enum.rb b/app/graphql/types/work_items/award_emoji_update_action_enum.rb new file mode 100644 index 00000000000..5b2512a215f --- /dev/null +++ b/app/graphql/types/work_items/award_emoji_update_action_enum.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Types + module WorkItems + class AwardEmojiUpdateActionEnum < BaseEnum + graphql_name 'WorkItemAwardEmojiUpdateAction' + description 'Values for work item award emoji update enum' + + value 'ADD', 'Adds the emoji.', value: :add + value 'REMOVE', 'Removes the emoji.', value: :remove + end + end +end diff --git a/app/graphql/types/work_items/widgets/award_emoji_update_input_type.rb b/app/graphql/types/work_items/widgets/award_emoji_update_input_type.rb new file mode 100644 index 00000000000..1d43d4913d2 --- /dev/null +++ b/app/graphql/types/work_items/widgets/award_emoji_update_input_type.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module Types + module WorkItems + module Widgets + class AwardEmojiUpdateInputType < BaseInputObject + graphql_name 'WorkItemWidgetAwardEmojiUpdateInput' + + argument :action, ::Types::WorkItems::AwardEmojiUpdateActionEnum, + required: true, + description: 'Action for the update.' + + argument :name, + GraphQL::Types::String, + required: true, + description: copy_field_description(Types::AwardEmojis::AwardEmojiType, :name) + end + end + end +end |