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

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

module Types
  module Notes
    # rubocop: disable Graphql/AuthorizeTypes
    class DiffImagePositionInputType < DiffPositionBaseInputType
      graphql_name 'DiffImagePositionInput'

      argument :x, GraphQL::INT_TYPE, required: true,
               description: copy_field_description(Types::Notes::DiffPositionType, :x)
      argument :y, GraphQL::INT_TYPE, required: true,
               description: copy_field_description(Types::Notes::DiffPositionType, :y)
      argument :width, GraphQL::INT_TYPE, required: true,
               description: copy_field_description(Types::Notes::DiffPositionType, :width)
      argument :height, GraphQL::INT_TYPE, required: true,
               description: copy_field_description(Types::Notes::DiffPositionType, :height)
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end