Welcome to mirror list, hosted at ThFree Co, Russian Federation.

type_type.rb « work_items « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b42d73544dc034d423119f18bc164833cef8a7f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true

module Types
  module WorkItems
    class TypeType < BaseObject
      graphql_name 'WorkItemType'

      authorize :read_work_item_type

      field :icon_name, GraphQL::Types::String,
        null: true,
        description: 'Icon name of the work item type.'
      field :id, Types::GlobalIDType[::WorkItems::Type],
        null: false,
        description: 'Global ID of the work item type.'
      field :name, GraphQL::Types::String,
        null: false,
        description: 'Name of the work item type.'
      field :widget_definitions, [Types::WorkItems::WidgetDefinitionInterface],
        null: true,
        description: 'Available widgets for the work item type.',
        method: :widgets,
        alpha: { milestone: '16.7' }
    end
  end
end