query getPackageDetails($id: ID!) {
  package(id: $id) {
    id
    name
    packageType
    version
    createdAt
    updatedAt
    status
    canDestroy
    npmUrl
    mavenUrl
    conanUrl
    nugetUrl
    pypiUrl
    pypiSetupUrl
    composerUrl
    composerConfigRepositoryUrl
    project {
      id
      path
      name
    }
    tags(first: 10) {
      nodes {
        id
        name
      }
    }
    pipelines(first: 10) {
      nodes {
        ref
        id
        sha
        createdAt
        commitPath
        path
        user {
          id
          name
        }
        project {
          id
          name
          webUrl
        }
      }
    }
    packageFiles(first: 100) {
      nodes {
        id
        fileMd5
        fileName
        fileSha1
        fileSha256
        size
        createdAt
        downloadPath
      }
    }
    versions(first: 100) {
      nodes {
        id
        name
        createdAt
        version
        status
        tags(first: 1) {
          nodes {
            id
            name
          }
        }
      }
    }
    dependencyLinks {
      nodes {
        id
        dependency {
          id
          name
          versionPattern
        }
        dependencyType
        metadata {
          ... on NugetDependencyLinkMetadata {
            id
            targetFramework
          }
        }
      }
    }
    metadata {
      ... on ComposerMetadata {
        targetSha
        composerJson {
          license
          version
        }
      }
      ... on PypiMetadata {
        id
        requiredPython
      }
      ... on ConanMetadata {
        id
        packageChannel
        packageUsername
        recipe
        recipePath
      }
      ... on MavenMetadata {
        id
        appName
        appGroup
        appVersion
        path
      }

      ... on NugetMetadata {
        id
        iconUrl
        licenseUrl
        projectUrl
      }
    }
  }
}
