summaryrefslogtreecommitdiff
path: root/app/graphql/types/packages/maven/metadatum_type.rb
blob: b59f5235d7bdd86fb4aea96a3bcdd69825dce0c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

module Types
  module Packages
    module Maven
      class MetadatumType < BaseObject
        graphql_name 'MavenMetadata'
        description 'Maven metadata'

        authorize :read_package

        field :app_group, GraphQL::Types::String, null: false, description: 'App group of the Maven package.'
        field :app_name, GraphQL::Types::String, null: false, description: 'App name of the Maven package.'
        field :app_version, GraphQL::Types::String, null: true, description: 'App version of the Maven package.'
        field :created_at, Types::TimeType, null: false, description: 'Date of creation.'
        field :id, ::Types::GlobalIDType[::Packages::Maven::Metadatum], null: false, description: 'ID of the metadatum.'
        field :path, GraphQL::Types::String, null: false, description: 'Path of the Maven package.'
        field :updated_at, Types::TimeType, null: false, description: 'Date of most recent update.'
      end
    end
  end
end