2020-06-23 00:09:42 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
|
|
|
# Authorization is at project level for owners or admins on mutation level
|
|
|
|
class JiraUserType < BaseObject
|
|
|
|
graphql_name 'JiraUser'
|
|
|
|
|
2021-10-27 15:23:28 +05:30
|
|
|
field :jira_account_id, GraphQL::Types::String, null: false,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Account ID of the Jira user.'
|
2021-10-27 15:23:28 +05:30
|
|
|
field :jira_display_name, GraphQL::Types::String, null: false,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Display name of the Jira user.'
|
2021-10-27 15:23:28 +05:30
|
|
|
field :jira_email, GraphQL::Types::String, null: true,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Email of the Jira user, returned only for users with public emails.'
|
2021-10-27 15:23:28 +05:30
|
|
|
field :gitlab_id, GraphQL::Types::Int, null: true,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'ID of the matched GitLab user.'
|
2021-10-27 15:23:28 +05:30
|
|
|
field :gitlab_username, GraphQL::Types::String, null: true,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Username of the matched GitLab user.'
|
2021-10-27 15:23:28 +05:30
|
|
|
field :gitlab_name, GraphQL::Types::String, null: true,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Name of the matched GitLab user.'
|
2020-06-23 00:09:42 +05:30
|
|
|
end
|
|
|
|
# rubocop: enable Graphql/AuthorizeTypes
|
|
|
|
end
|